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
-2
View File
@@ -6,7 +6,6 @@ activityCompose = "1.13.0"
lifecycle = "2.11.0"
bouncycastle = "1.86"
ini4j = "0.5.1"
oboe = "1.11.0"
androidsvg = "1.4"
[libraries]
@@ -20,7 +19,6 @@ androidx-lifecycle-service = { module = "androidx.lifecycle:lifecycle-service",
androidsvg = { module = "com.caverock:androidsvg-aar", version.ref = "androidsvg" }
bouncycastle = { module = "org.bouncycastle:bcprov-jdk18on", version.ref = "bouncycastle" }
ini4j = { module = "org.ini4j:ini4j", version.ref = "ini4j" }
oboe = { module = "com.google.oboe:oboe", version.ref = "oboe" }
[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }