diff --git a/releases/next/docs/signed-apk-android.html b/releases/next/docs/signed-apk-android.html index 5f55bae1f1c..9c7cdd7e161 100644 --- a/releases/next/docs/signed-apk-android.html +++ b/releases/next/docs/signed-apk-android.html @@ -20,21 +20,10 @@ android { } } } -...
react.gradle file in android/app #Simply run the following in a terminal:
If you need to change the way the JavaScript bundle and/or drawable resources are bundled (e.g. if you changed the default file/folder names or the general structure of the project), have a look at android/app/build.gradle to see how you can update it to reflect these changes.
react.gradle file: #You can upgrade to the latest version of React Native to get this file. Alternatively, you can bundle the JavaScript package and drawable resources manually by doing the following in a terminal:
In both cases the generated APK can be found under android/app/build/outputs/apk/app-release.apk, and is ready to be distributed.
Before uploading the release build to the Play Store, make sure you test it thoroughly. Install it on the device using:
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.
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.
IMPORTANT: 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: