Skip to content

Instantly share code, notes, and snippets.

@canhnm
Created June 28, 2019 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save canhnm/fd8a9023f3555c2a35550ba0f0af033f to your computer and use it in GitHub Desktop.
Save canhnm/fd8a9023f3555c2a35550ba0f0af033f to your computer and use it in GitHub Desktop.
React Native - Clean all cache to rebuild signed APK release
watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro-_ && rm -rf \$TMPDIR/haste-_ && npm cache clean --force && npm cache verify && rm -rf android/build && rm -rf node_modules/ && npm i && rm android/app/src/main/assets/index.android.bundle && 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/src/main/res && cd android && ./gradlew clean && ENVFILE=.env ./gradlew assembleRelease
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment