9dc036d2b9
Summary: This adds gradle tasks that call `react-native bundle` with the correct args to bundle dev/release JS and assets. The dev task is disabled by default, as in dev mode people only use reload JS in most cases. Submitting this as a pull request to have community visibility, although we have this code internally as well now and this will require an import. * generate a project with `react-native init`, add some assets, run `./gradlew assembleRelease`, sign & zipalign generated APK, run it -> works * enable dev bundling task, run `./gradlew installDebug` (not `react-native run-android` so as to not start the packager) -> works Reviewed By: svcscm Differential Revision: D2555071 Pulled By: foghina fb-gh-sync-id: c3d9fcd4c77862e6a4db4e4d8d8cc39ee9dff3ab |
||
---|---|---|
.. | ||
__mocks__ | ||
__tests__ | ||
generator | ||
generator-android | ||
generator-ios | ||
bundle.js | ||
cli.js | ||
generate-android.js | ||
generator-utils.js | ||
init.js | ||
new-library.js | ||
run-android.js | ||
run-packager.js | ||
wrong-react-native.js |