Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Creating an Android bundle #2712

Closed
cosmith opened this issue Sep 15, 2015 · 2 comments
Closed

[Android] Creating an Android bundle #2712

cosmith opened this issue Sep 15, 2015 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@cosmith
Copy link
Contributor

cosmith commented Sep 15, 2015

Hi, I'm not sure if this is me not finding the relevant info in the docs or if the functionality is not there yet.
How do I create an Android bundle?

react-native bundle
Building package...
transforming [========================================] 100% 309/309
Build complete
Successfully saved bundle to ios/main.jsbundle

No mention of android, and if I delete index.ios.js the bundling breaks.

Also there's no mention that I could find of creating a release APK, any info on this? Are we supposed to run ./gradlew assembleRelease in the android folder or something similar?

Sorry for all the questions ;)

@foghina
Copy link
Contributor

foghina commented Sep 15, 2015

See #2703 for more discussion on this topic.

Basically, you need to manually download the Android bundle (e.g. http://localhost:8081/index.android.bundle) and put it in android/app/src/main/assets. ./gradlew assembleRelease should work after that.

@cosmith
Copy link
Contributor Author

cosmith commented Sep 15, 2015

Thanks, I hadn't realized it was the same thing. I'll close this then.

@cosmith cosmith closed this as completed Sep 15, 2015
@facebook facebook locked as resolved and limited conversation to collaborators Jul 21, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants