Skip to content

Commit

Permalink
apk压缩至原本的二分之一
Browse files Browse the repository at this point in the history
  • Loading branch information
THU-liuyukun committed Apr 29, 2023
1 parent 7ca767b commit 5266d83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

ndk {
// 如果想压缩apk,则删去x86
abiFilters "armeabi-v7a", "x86"
}

Expand All @@ -33,7 +34,9 @@ android {

buildTypes {
release {
// 如果想压缩apk,则将minifyEnabled和shrinkResources设为true
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand Down
Binary file not shown.

0 comments on commit 5266d83

Please sign in to comment.