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 {
release {
isMinifyEnabled = false
ndk {
abiFilters += listOf("armeabi-v7a", "arm64-v8a")
}
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"

View File

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