Skip to content

Commit

Permalink
implement APK splits for architecture specific builds
Browse files Browse the repository at this point in the history
  • Loading branch information
n8fr8 committed May 9, 2018
1 parent 142d934 commit 49b7228
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion app/build.gradle
Expand Up @@ -16,7 +16,7 @@ android {
}
buildTypes {
release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
Expand All @@ -43,6 +43,31 @@ android {
versionName '16.0.1-BETA-1'
}
}

splits {

// Configures multiple APKs based on ABI. This helps keep the size down, since PT binaries can be large.
abi {

// Enables building multiple APKs per ABI.
enable true

// By default all ABIs are included, so use reset() and include to specify that we only
// want APKs for x86 and x86_64.

// Resets the list of ABIs that Gradle should create APKs for to none.
reset()

// Specifies a list of ABIs that Gradle should create APKs for.
include "x86", "armeabi"

// Specifies that we do not want to also generate a universal APK that includes all ABIs.
universalApk true
}


}

}

dependencies {
Expand Down

0 comments on commit 49b7228

Please sign in to comment.