org.gradle.jvmargs=-Xmx4g -XX:MaxPermSize=1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC
org.gradle.caching=true
org.gradle.configureondemand=true
org.gradle.daemon=true
org.gradle.parallel=true
android.enableBuildCache=true
android.enableD8=true
android.enableR8=true
android.enableR8.fullMode=true
android.enableD8.desugaring=true
android.databinding.enableV2=true
android.namespacedRClass=true
android.enableSeparateAnnotationProcessing=true
# Kotlin
## Running kapt tasks in parallel (since 1.2.60)
kapt.use.worker.api=true
## Compile avoidance for kapt (since 1.3.20)
#kapt.include.compile.classpath=false
kotlin.parallel.tasks.in.project=true
### Compilation Performance Improvements
kotlin.incremental=true
kotlin.incremental.usePreciseJavaTracking=true
## Incremental annotation processing (since 1.3.30)
kapt.incremental.apt=true
android {
buildTypes {
debug {
ext.enableCrashlytics = false
ext.alwaysUpdateBuildId = false
}
}
lintOptions {
// check 'Interoperability'
// checkDependencies true
ignoreTestSources true
}
dexOptions {
preDexLibraries true
// javaMaxHeapSize "4G"
}
if (project.hasProperty('devBuild')) {
splits.abi.enable = false
splits.density.enable = false
aaptOptions.cruncherEnabled = false
}
}
kapt {
useBuildCache = true
}
// Initializes Fabric for builds that don't use the debug build type.
val crashlyticsKit = Crashlytics.Builder()
.core(CrashlyticsCore.Builder().disabled(BuildConfig.DEBUG).build())
.build()
Fabric.with(this, crashlyticsKit)