2020-12-22 11:52:19 +01:00
|
|
|
# When configured, Gradle will run in incubating parallel mode.
|
|
|
|
# This option should only be used with decoupled projects. More details, visit
|
|
|
|
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
|
|
|
org.gradle.parallel=true
|
|
|
|
org.gradle.configureondemand=true
|
|
|
|
org.gradle.caching=true
|
2017-07-29 06:10:37 +02:00
|
|
|
|
2020-12-22 11:52:19 +01:00
|
|
|
# Enable Kotlin incremental compilation
|
|
|
|
kotlin.incremental=true
|
2017-07-29 06:10:37 +02:00
|
|
|
|
2021-07-28 11:54:47 +02:00
|
|
|
# Enable AndroidX support
|
|
|
|
android.useAndroidX=true
|
|
|
|
|
2017-07-29 06:10:37 +02:00
|
|
|
# Specifies the JVM arguments used for the daemon process.
|
|
|
|
# The setting is particularly useful for tweaking memory settings.
|
|
|
|
org.gradle.jvmargs=-Xmx1536m
|
|
|
|
|
2020-12-22 11:52:19 +01:00
|
|
|
# Turn off AP discovery in compile path to enable compile avoidance
|
|
|
|
kapt.include.compile.classpath=false
|
2020-03-29 07:20:47 +02:00
|
|
|
|
2020-12-22 11:52:19 +01:00
|
|
|
# Enable non-transitive R class namespacing where each library only contains
|
2020-03-29 07:20:47 +02:00
|
|
|
# references to the resources it declares instead of declarations plus all
|
|
|
|
# transitive dependency references.
|
2020-12-22 11:52:19 +01:00
|
|
|
android.nonTransitiveRClass=true
|
|
|
|
|
|
|
|
# Experimental AGP flags
|
|
|
|
# Generate compile-time only R class for app modules.
|
|
|
|
android.enableAppCompileTimeRClass=true
|
|
|
|
# Keep AAPT2 daemons alive between incremental builds.
|
|
|
|
android.keepWorkerActionServicesBetweenBuilds=true
|
|
|
|
# Make R fields non-final to improve build speeds.
|
|
|
|
# http://tools.android.com/tips/non-constant-fields
|
|
|
|
android.nonFinalResIds=true
|
|
|
|
# Enable the newly refactored resource shrinker.
|
|
|
|
android.experimental.enableNewResourceShrinker=true
|
|
|
|
# Enable precise shrinking in the new resource shrinker.
|
|
|
|
android.experimental.enableNewResourceShrinker.preciseShrinking=true
|
|
|
|
# Generate manifest class as a .class directly rather than a Java source file.
|
|
|
|
android.generateManifestClass=true
|
|
|
|
# Generate the text map of source sets and absolute paths to allow
|
|
|
|
# generating relative paths from absolute paths later in the build.
|
|
|
|
android.experimental.enableSourceSetPathsMap=true
|
|
|
|
# Use relative paths for better Gradle caching of library build tasks
|
|
|
|
android.experimental.cacheCompileLibResources=true
|
|
|
|
|
|
|
|
# Default Android build features
|
|
|
|
# Disable BuildConfig generation by default
|
|
|
|
android.defaults.buildfeatures.buildconfig=false
|
|
|
|
# Disable AIDL stub generation by default
|
|
|
|
android.defaults.buildfeatures.aidl=false
|
|
|
|
# Disable RenderScript compilation by default
|
|
|
|
android.defaults.buildfeatures.renderscript=false
|
|
|
|
# Disable resource values generation by default in libraries
|
|
|
|
android.defaults.buildfeatures.resvalues=false
|
|
|
|
# Disable shader compilation by default
|
|
|
|
android.defaults.buildfeatures.shaders=false
|
|
|
|
# Disable Android resource processing by default
|
|
|
|
android.library.defaults.buildfeatures.androidresources=false
|
2020-03-29 07:20:47 +02:00
|
|
|
|
|
|
|
# Suppress warnings for some features that aren't yet stabilized
|
2020-12-22 11:52:19 +01:00
|
|
|
android.suppressUnsupportedOptionWarnings=android.keepWorkerActionServicesBetweenBuilds,\
|
2023-04-27 13:51:25 +02:00
|
|
|
android.experimental.enableNewResourceShrinker.preciseShrinking,\
|
|
|
|
android.enableAppCompileTimeRClass,\
|
2020-12-22 11:52:19 +01:00
|
|
|
android.suppressUnsupportedOptionWarnings
|
2021-05-07 10:36:24 +02:00
|
|
|
|
|
|
|
# OSSRH sometimes struggles with slow deployments, so this makes Gradle
|
|
|
|
# more tolerant to those delays.
|
|
|
|
systemProp.org.gradle.internal.http.connectionTimeout=500000
|
|
|
|
systemProp.org.gradle.internal.http.socketTimeout=500000
|