doc(nc-android): add notes for AAB build
This commit is contained in:
@@ -37,7 +37,7 @@ RELEASE=true ./build-android.sh aarch64 x86_64
|
||||
The shared library for each ABIs will be automatically moved into
|
||||
`app/src/main/jniLibs/*` directories.
|
||||
|
||||
### APK build (from terminal)
|
||||
### APK/AAB build (from terminal)
|
||||
|
||||
This project is setup with multiple [product flavors](app/build.gradle) to
|
||||
build for specific architectures.\
|
||||
@@ -48,12 +48,18 @@ Supported archs:
|
||||
- x86_64
|
||||
- x86
|
||||
|
||||
For example to build for _arm64_ in _release_ mode use
|
||||
For example to build an APK for _arm64_ in _release_ mode use
|
||||
|
||||
```shell
|
||||
./gradlew :app:assembleArm64Release
|
||||
```
|
||||
|
||||
Instead of building an APK, to build an app bundle (`.aab`) run
|
||||
|
||||
```shell
|
||||
./gradlew :app:bundleArm64Release
|
||||
```
|
||||
|
||||
**NOTE**: you likely want _arch64_ (`arm64` & `x86_64`) for APK distribution
|
||||
|
||||
To build a _universal_ APK which includes all ABI use
|
||||
|
||||
@@ -22,6 +22,18 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
bundle {
|
||||
language {
|
||||
enableSplit = true
|
||||
}
|
||||
density {
|
||||
enableSplit = true
|
||||
}
|
||||
abi {
|
||||
enableSplit = true
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = true
|
||||
|
||||
Reference in New Issue
Block a user