add split APK support to the sample

This commit is contained in:
n8fr8 2018-05-14 11:27:01 -04:00
parent 549fb14077
commit d2342ed7ec
1 changed files with 24 additions and 0 deletions

View File

@ -23,6 +23,30 @@ android {
}
}
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", "armeabi-v7a"
// Specifies that we do not want to also generate a universal APK that includes all ABIs.
universalApk true
}
}
}
dependencies {