From b0f4bfb7bc5c3e754471d79e8aec3cbeed89e35e Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 9 Oct 2015 16:32:42 +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 1b560703680..a36ee6d9739 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 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:

... +$ 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. React Native also has several components written in C/C++, Proguard only strips Java code.

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 {