try speeding up gradle builds

This commit is contained in:
Phillip Thelen 2016-05-10 12:43:30 +02:00
parent 0ed79c8b53
commit d42aed877d

View file

@ -151,6 +151,15 @@ android {
}
}
productFlavors {
dev {
minSdkVersion 21
}
prod {
minSdkVersion 15
}
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
@ -174,6 +183,12 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
dexOptions {
preDexLibraries true
javaMaxHeapSize "2g" // Use gig increments depending on needs
incremental true
}
}
def Properties props = new Properties()
@ -215,6 +230,12 @@ if (HRPG_PROPS_FILE.canRead()) {
throw new MissingResourceException('habitica.properties not found')
}
tasks.whenTaskAdded { task ->
if (task.name.equals("lint")) {
task.enabled = false
}
}
apply plugin: 'com.getkeepsafe.dexcount'
apply plugin: 'com.android.application' //or apply plugin: 'java'
apply plugin: 'me.tatarka.retrolambda'
apply plugin: 'me.tatarka.retrolambda'