[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [orbot/master] implement APK splits for architecture specific builds
commit 49b72280643179cccd43939e669725d8f43deb70
Author: n8fr8 <nathan@xxxxxxxxxxx>
Date: Wed May 9 13:30:20 2018 -0400
implement APK splits for architecture specific builds
---
app/build.gradle | 27 ++++++++++++++++++++++++++-
1 file changed, 26 insertions(+), 1 deletion(-)
diff --git a/app/build.gradle b/app/build.gradle
index 88c7424a..da6d9ff8 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -16,7 +16,7 @@ android {
}
buildTypes {
release {
- minifyEnabled false
+ minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
@@ -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 {
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits