forked from firka/firka
firka(android): optimize build time
This commit is contained in:
@@ -40,9 +40,6 @@ subprojects {
|
||||
|
||||
project.layout.buildDirectory.value(newSubprojectBuildDir)
|
||||
}
|
||||
subprojects {
|
||||
project.evaluationDependsOn(":app")
|
||||
}
|
||||
|
||||
tasks.register<Delete>("clean") {
|
||||
delete(rootProject.layout.buildDirectory)
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
|
||||
android.useAndroidX=true
|
||||
android.enableJetifier=true
|
||||
# Disabled for faster config and incremental builds; re-enable if any dependency needs support-library
|
||||
android.enableJetifier=false
|
||||
|
||||
# Build performance (cold and warm)
|
||||
org.gradle.caching=true
|
||||
org.gradle.parallel=true
|
||||
# Configuration cache disabled: Flutter/AGP/Kotlin plugin not fully compatible (KotlinBaseApiPlugin / ProjectServices)
|
||||
# org.gradle.configuration-cache=true
|
||||
org.gradle.daemon=true
|
||||
# Better Kotlin incremental compilation (warm builds)
|
||||
kotlin.incremental.useClasspathSnapshot=true
|
||||
|
||||
Reference in New Issue
Block a user