From de5b093d62c6bdc9f6abbd21addde8c3dc11979b Mon Sep 17 00:00:00 2001 From: Denozordec Date: Mon, 5 Oct 2026 00:41:51 +0700 Subject: [PATCH] android: keep jniLibs compressed after the minSdk 23 bump minSdk 23 flipped AGP's useLegacyPackaging default to false (uncompressed .so, extractNativeLibs=false): the APK grew 12 -> 23 MB. Updates are downloaded over cellular, so pin useLegacyPackaging = true; APK is back to ~12 MB (2.14.0 re-published with the same versionCode, sha updated in the manifest before any device fetched it). --- src/frontends/android/app/build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/frontends/android/app/build.gradle b/src/frontends/android/app/build.gradle index a12a2d377..a073d0216 100644 --- a/src/frontends/android/app/build.gradle +++ b/src/frontends/android/app/build.gradle @@ -31,6 +31,15 @@ def keystoreKeyPassword = envOr('KEY_PASSWORD', '') android { namespace = 'org.strongswan.android' + /* minSdk 23 flipped AGP's default to uncompressed .so (extractNativeLibs=false): + * the APK grew 12 -> 23 MB. Updates are downloaded over cellular, so keep + * the libraries compressed as before. */ + packaging { + jniLibs { + useLegacyPackaging = true + } + } + defaultConfig { applicationId "one.shx.strongswan.ext" compileSdk = 36