Skip to content

Commit c5b3de9

Browse files
committed
reduce app size
1 parent aa9be9a commit c5b3de9

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
@@ -90,12 +90,12 @@ apply from: "../../node_modules/react-native/react.gradle"
9090
* Upload all the APKs to the Play Store and people will download
9191
* the correct one based on the CPU architecture of their device.
9292
*/
93-
def enableSeparateBuildPerCPUArchitecture = false
93+
def enableSeparateBuildPerCPUArchitecture = true
9494

9595
/**
9696
* Run Proguard to shrink the Java bytecode in release builds.
9797
*/
98-
def enableProguardInReleaseBuilds = false
98+
def enableProguardInReleaseBuilds = true
9999

100100
/**
101101
* The preferred build flavor of JavaScriptCore.
@@ -159,6 +159,7 @@ android {
159159
// see https://facebook.github.io/react-native/docs/signed-apk-android.
160160
signingConfig signingConfigs.debug
161161
minifyEnabled enableProguardInReleaseBuilds
162+
shrinkResources true
162163
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
163164
}
164165
}

0 commit comments

Comments
 (0)