Skip to content

Commit aba3a88

Browse files
chore: replace manual command with CLI command (#3688)
1 parent f166d0a commit aba3a88

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/signed-apk-android.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,13 @@ android {
9494

9595
## Generating the release AAB
9696

97-
Run the following in a terminal:
97+
Run the following command in a terminal:
9898

9999
```shell
100-
cd android
101-
./gradlew bundleRelease
100+
npx react-native build-android --mode=release
102101
```
103102

104-
Gradle's `bundleRelease` will bundle all the JavaScript needed to run your app into the AAB ([Android App Bundle](https://developer.android.com/guide/app-bundle)). 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.
103+
This command uses Gradle's `bundleRelease` under the hood that bundles all the JavaScript needed to run your app into the AAB ([Android App Bundle](https://developer.android.com/guide/app-bundle)). 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.
105104

106105
:::note
107106
Make sure `gradle.properties` does not include `org.gradle.configureondemand=true` as that will make the release build skip bundling JS and assets into the app binary.

0 commit comments

Comments
 (0)