Last active
October 28, 2022 22:12
-
-
Save rodrigooler/8ccbedd8aabf331df6bb6dba5b030bc3 to your computer and use it in GitHub Desktop.
Build Android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rimraf ./android/app/src/main/res/drawable-* | |
| yarn react-native bundle --platform android --dev false \ | |
| --entry-file index.js \ | |
| --bundle-output android/app/src/main/assets/index.android.bundle \ | |
| --assets-dest android/app/build/intermediates/res/merged/release/ | |
| cd android && ./gradlew assembleRelease | |
| cd .. | |
| cp -R ./android/app/build/outputs/apk/release/app-release.apk app-release-$(date +%Y-%m-%d_%H-%M-%S).apk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment