Skip to content

Instantly share code, notes, and snippets.

@pradeep1991singh
Last active February 22, 2017 17:35
Show Gist options
  • Save pradeep1991singh/de9f23049d1fd062780324a212f06148 to your computer and use it in GitHub Desktop.
Save pradeep1991singh/de9f23049d1fd062780324a212f06148 to your computer and use it in GitHub Desktop.

Dev build

Bundle debug build:

$ react-native bundle --dev false --platform android --entry-file index.android.js \
  --bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle \
  --assets-dest ./android/app/build/intermediates/res/merged/debug

Create debug build:

$ cd android && ./gradlew assembleDebug

Release build

$ react-native bundle --platform android --dev false --entry-file index.android.js \
  --bundle-output android/app/src/main/assets/index.android.bundle \
  --assets-dest android/app/src/main/res/
$ cd android && ./gradlew assembleRelease

Test build

Dev build

$ cd android && ./gradlew installDebug

Release build

$ cd android && ./gradlew installRelease
  • Another approach might be to modify gradle scripts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment