Android: signed, smaller release APKs
Release builds now come out one APK per ABI, signed from a gitignored keystore.properties. Oboe is built from source with libopus and a static libc++ into the one native library, which exports only its JNI entry points; dex and native code are compressed in the APK and library translations dropped. The arm64 APK went from 11.6 MB to 5.5 MB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -14,15 +14,11 @@ android {
|
||||
}
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
arguments += "-DANDROID_STL=c++_shared"
|
||||
arguments += "-DANDROID_STL=c++_static"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
prefab = true
|
||||
}
|
||||
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
path = file("src/main/cpp/CMakeLists.txt")
|
||||
@@ -38,5 +34,4 @@ android {
|
||||
|
||||
dependencies {
|
||||
api(project(":core"))
|
||||
implementation(libs.oboe)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user