
Starting with v2.2.2, it zeroes out timestamps in the APK's ZIP header https://android-developers.googleblog.com/2016/11/understanding-apk-packaging-in-android-studio-2-2.html This version is also the version that is included in Debian/stretch.
27 lines
897 B
Groovy
27 lines
897 B
Groovy
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
}
|
|
dependencies {
|
|
// 2.2.2 is the version that is included in Debian/stretch
|
|
classpath 'com.android.tools.build:gradle:2.2.2'
|
|
classpath files('libs/gradle-witness.jar')
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Improve build server performance by allowing disabling of pre-dexing
|
|
* (see http://tools.android.com/tech-docs/new-build-system/tips#TOC-Improving-Build-Server-performance.)
|
|
*/
|
|
project.ext.preDexLibs = !project.hasProperty('disablePreDex')
|
|
|
|
subprojects {
|
|
project.plugins.whenPluginAdded { plugin ->
|
|
if ("com.android.build.gradle.AppPlugin".equals(plugin.class.name)) {
|
|
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
|
} else if ("com.android.build.gradle.LibraryPlugin".equals(plugin.class.name)) {
|
|
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
|
}
|
|
}
|
|
}
|