Skip to content

Instantly share code, notes, and snippets.

@MHaris404
MHaris404 / Set Up CI CD for Android Using GitHub Actions
Created April 16, 2025 11:19
Set Up CI CD for Android Using GitHub Actions
Release Notes
create file {appname}/whatsNew/whatsnew-en-US
text=
Initial Release
@MHaris404
MHaris404 / Enable Terminal in VS Code
Created April 7, 2025 15:23
Enable Terminal in VS Code
open powersehll -> Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
@MHaris404
MHaris404 / ImageCaching404
Last active April 7, 2025 16:40
Image Caching in Kotlin Android by mharis404
SubcomposeAsyncImage(
model = imageUrl,
contentDescription = null,
modifier = Modifier
.fillMaxWidth()
.aspectRatio(1280f/847f)
)
AsyncImage(
model = imageUrl2,
contentDescription = null,
@MHaris404
MHaris404 / Android_Studio_custom_installation.txt
Created October 26, 2023 05:49
Android Studio (plus React Native) custom installation steps
A
custom installation path of Android Studio
1- Android Studio
while installing -> path
2- Android SDK
Project Settings -> Languages and FW -> Android SDK -> path
2- Gradle
Settings -> Build, Exec, Deploy -> Build Tools -> Gradle -> Gradle user home -> path
------------------------------------------------------------------------------------------
@MHaris404
MHaris404 / How to remove node_modules after they have been added to a repo
Created August 25, 2023 17:13
How to remove node_modules after they have been added to a repo
# How to remove node_modules
## Create a `.gitignore` file
1. Check for an existing `.gitignore` file in the project directory
```Bash
ls -a
```
https://blog.jscrambler.com/how-to-handle-deep-linking-in-a-react-native-app
https://www.w3schools.com/REACT/react_lifecycle.asp#:%7E:text=Lifecycle%20of%20Components,Mounting%2C%20Updating%2C%20and%20Unmounting
https://medium.com/@devesu/how-to-change-bundle-identifier-of-ios-app-and-package-name-of-android-app-within-react-native-app-4fbdd6679aa2
"scripts": {
"android": "react-native run-android",
"android_r": "react-native run-android --variant release",
"ios": "react-native run-ios",
"start": "react-native start",
"ios simulator": "npx react-native run-ios --udid='4376F683-7DE9-4F74-8DA9-C4C47385EF79'",
"test": "jest",
"lint": "eslint .",
"resetcache":"npm start -- --reset-cache",
"androidclean": "cd android && ./gradlew clean && cd ..",
#window
adb logcat *:E
#mac
brew install libimobiledevice
idevice_id --list
idevicesyslog -u <devid>