Skip to content

Commit

Permalink
reduce android app apk size
Browse files Browse the repository at this point in the history
  • Loading branch information
dongyuwei committed May 24, 2019
1 parent 26acff9 commit a55c4d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ apply from: "../../node_modules/react-native/react.gradle"
* Upload all the APKs to the Play Store and people will download
* the correct one based on the CPU architecture of their device.
*/
def enableSeparateBuildPerCPUArchitecture = false
def enableSeparateBuildPerCPUArchitecture = true

/**
* Run Proguard to shrink the Java bytecode in release builds.
*/
def enableProguardInReleaseBuilds = false
def enableProguardInReleaseBuilds = true

android {
compileSdkVersion rootProject.ext.compileSdkVersion
Expand Down Expand Up @@ -129,6 +129,7 @@ android {
buildTypes {
release {
minifyEnabled enableProguardInReleaseBuilds
shrinkResources true
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
Expand Down

0 comments on commit a55c4d0

Please sign in to comment.