From d2342ed7ecf9d585c5aefd4a056b4e1d92d3e5dc Mon Sep 17 00:00:00 2001 From: n8fr8 Date: Mon, 14 May 2018 11:27:01 -0400 Subject: [PATCH] add split APK support to the sample --- sampletorapp/build.gradle | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/sampletorapp/build.gradle b/sampletorapp/build.gradle index 565538cf..315b35ab 100644 --- a/sampletorapp/build.gradle +++ b/sampletorapp/build.gradle @@ -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 {