From 8af291c767a5a7b84fd08c8d6a32d23d88cf287c Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 9 Oct 2015 16:26:29 +0000 Subject: [PATCH] update website --- docs/signed-apk-android.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/signed-apk-android.html b/docs/signed-apk-android.html index 0a762eea01b..1b560703680 100644 --- a/docs/signed-apk-android.html +++ b/docs/signed-apk-android.html @@ -22,7 +22,7 @@ android { } ...

Generating the release APK #

  1. Start the packager by running npm start in your project folder
  2. In your project folder, run the following in a Terminal,
$ mkdir -p android/app/src/main/assets $ curl "http://localhost:8081/index.android.bundle?platform=android&dev=false&minify=true" -o "android/app/src/main/assets/index.android.bundle" -$ cd android && ./gradlew assembleRelease

The generated APK can be found under android/app/build/outputs/apk/app-release.apk, and is ready to be distributed.

Testing the release build of your app #

Before uploading the release build to the Play Store, make sure you test it thoroughly. Install it on the device using:

$ cd android && ./gradlew installRelease

Note that installRelease is only available if you've set up signing as described above.

You can kill any running packager instances, all your and framework JavaScript code is bundled in the APK's assets.

Enabling Proguard to reduce the size of the APK (optional) #

Proguard is a tool that can reduce the size of the APK. It does this by stripping parts of the React Native Java bytecode (and its dependencies) that your app is not using. Don't expect massive reductions though.

Note: Make sure to thoroughly test your app if you've enabled Proguard. Proguard often requires configuration specific to each native library you're using. See app/proguard-rules.pro.

To enable Proguard, set minifyEnabled to true:

... +$ cd android && ./gradlew assembleRelease

The generated APK can be found under android/app/build/outputs/apk/app-release.apk, and is ready to be distributed.

Testing the release build of your app #

Before uploading the release build to the Play Store, make sure you test it thoroughly. Install it on the device using:

$ cd android && ./gradlew installRelease

Note that installRelease is only available if you've set up signing as described above.

You can kill any running packager instances, all your and framework JavaScript code is bundled in the APK's assets.

Enabling Proguard to reduce the size of the APK (optional) #

Proguard is a tool that can slightly reduce the size of the APK. It does this by stripping parts of the React Native Java bytecode (and its dependencies) that your app is not using.

Note: Make sure to thoroughly test your app if you've enabled Proguard. Proguard often requires configuration specific to each native library you're using. See app/proguard-rules.pro.

To enable Proguard, set minifyEnabled to true:

... android { ... buildTypes {