Reduce APK size by removing x86 and minifying

This commit is contained in:
Pierre-Yves Nicolas
2025-06-05 10:13:33 +02:00
parent 6a90723fb3
commit 88e56a0ec4
2 changed files with 9 additions and 2 deletions

View File

@@ -20,7 +20,11 @@ android {
buildTypes { buildTypes {
release { release {
isMinifyEnabled = false ndk {
abiFilters += listOf("armeabi-v7a", "arm64-v8a")
}
isMinifyEnabled = true
isShrinkResources = true
proguardFiles( proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"), getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro" "proguard-rules.pro"

View File

@@ -18,4 +18,7 @@
# If you keep the line number information, uncomment this to # If you keep the line number information, uncomment this to
# hide the original source file name. # hide the original source file name.
#-renamesourcefileattribute SourceFile #-renamesourcefileattribute SourceFile
-dontwarn com.gemalto.jp2.JP2Decoder
-dontwarn com.gemalto.jp2.JP2Encoder