Skip to content

Commit

Permalink
split abi and shirinkresources & minify
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve-Mr committed May 12, 2024
1 parent 2f6ede5 commit babbcd5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
.cxx
local.properties
/.idea/
/app/release/
21 changes: 19 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ android {
minSdk = 31
targetSdk = 34
versionCode = 1
versionName = "1.0"
versionName = "1.0Alpha"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand All @@ -24,7 +24,8 @@ android {

buildTypes {
release {
isMinifyEnabled = false
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
Expand All @@ -49,6 +50,22 @@ android {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}

splits {
abi {
// Enable building multiple APKs per ABI.
isEnable = true

// Specify a list of ABIs to build APKs for.
include("armv8", "armeabi-v7a", "x86", "x86_64")

// Optionally, specify a list of ABIs to exclude.
// exclude("armeabi")

// Specify whether to also build a universal APK that includes all ABIs.
// isUniversalApk = false
}
}
}

kapt {
Expand Down

0 comments on commit babbcd5

Please sign in to comment.