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:
2026-10-10 12:23:09 +00:00
co-authored by Claude Opus 5.5
parent 44ecc15bd8
commit 55e8b7bccb
5 changed files with 58 additions and 15 deletions
+1 -6
View File
@@ -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)
}