mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 20:59:00 +00:00
try speeding up gradle builds
This commit is contained in:
parent
0ed79c8b53
commit
d42aed877d
1 changed files with 22 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue