Skip to content

Commit a55c4d0

Browse files
committed
reduce android app apk size
1 parent 26acff9 commit a55c4d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

android/app/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ apply from: "../../node_modules/react-native/react.gradle"
8686
* Upload all the APKs to the Play Store and people will download
8787
* the correct one based on the CPU architecture of their device.
8888
*/
89-
def enableSeparateBuildPerCPUArchitecture = false
89+
def enableSeparateBuildPerCPUArchitecture = true
9090

9191
/**
9292
* Run Proguard to shrink the Java bytecode in release builds.
9393
*/
94-
def enableProguardInReleaseBuilds = false
94+
def enableProguardInReleaseBuilds = true
9595

9696
android {
9797
compileSdkVersion rootProject.ext.compileSdkVersion
@@ -129,6 +129,7 @@ android {
129129
buildTypes {
130130
release {
131131
minifyEnabled enableProguardInReleaseBuilds
132+
shrinkResources true
132133
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
133134
signingConfig signingConfigs.release
134135
}

0 commit comments

Comments
 (0)