blob: d44a1646e68300073a8afae9dccbc020746c216b [file] [log] [blame]
Jeff Gaston8127c9a2023-05-16 16:28:35 -04001# TODO(https://github.com/spdx/spdx-gradle-plugin/issues/16) remove `-DSPDXParser.OnlyUseLocalLicenses=true`
2org.gradle.jvmargs=-Xmx8g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -Dkotlin.daemon.jvm.options=-XX:MaxMetaspaceSize=1g -Dlint.nullness.ignore-deprecated=true -Dorg.gradle.configuration-cache.internal.load-after-store=false -DSPDXParser.OnlyUseLocalLicenses=true
Yigit Boyarf77697d2016-08-16 10:55:36 -07003org.gradle.daemon=true
Aurimas Liutikas59e5b6f92017-08-23 10:11:32 -07004org.gradle.configureondemand=true
Aurimas Liutikasa64f1ce2018-05-18 11:29:03 -07005org.gradle.parallel=true
Aurimas Liutikasd9950fa2018-05-23 03:08:26 +00006org.gradle.caching=true
Aurimas Liutikasb5a2e522022-04-22 14:18:27 -07007org.gradle.welcome=never
Aurimas Liutikasc0fef3a2021-10-12 15:07:05 -07008# Disabled due to https://github.com/gradle/gradle/issues/18626
9# org.gradle.vfs.watch=true
Jeff Gastondc9c8cb2023-02-08 16:24:38 -050010# Reenabled in gradlew, but disabled in Studio until these errors become shown (b/268380971) or computed more quickly (https://github.com/gradle/gradle/issues/23272)
11org.gradle.dependency.verification=off
Aurimas Liutikas3ae82fa2021-09-23 09:19:23 -070012org.gradle.dependency.verification.console=verbose
Jeff Gaston96eb6012021-09-27 14:55:36 +000013org.gradle.unsafe.configuration-cache=true
14org.gradle.unsafe.configuration-cache-problems=warn
15org.gradle.unsafe.configuration-cache.max-problems=4000
Aurimas Liutikasac0e9fc2020-10-29 14:10:54 -070016
Aurimas Liutikas005dea02017-06-29 17:00:29 -070017android.builder.sdkDownload=false
Aurimas Liutikas28514e222020-06-01 16:20:08 +000018android.uniquePackageNames=false
Dustin Lamf14ad352019-09-30 15:30:55 -070019android.enableAdditionalTestOutput=true
20android.useAndroidX=true
Aurimas Liutikas2b1a09c2021-05-18 16:45:30 -070021android.nonTransitiveRClass=true
Chris Warrington2e38a612022-11-25 18:07:04 +000022# Pending cleanup to support non-constant R class IDs b/260409846
23android.nonFinalResIds=false
Aurimas Liutikasa737b422019-12-10 16:35:38 -080024# Workaround for b/141364941
Aurimas Liutikasd4fcb1c2019-12-17 15:50:11 -080025android.forceJacocoOutOfProcess=true
Aurimas Liutikas0ededfb2022-04-11 21:25:00 -070026android.experimental.lint.missingBaselineIsEmptyBaseline=true
Alan Viveretted62a1842021-01-28 15:08:55 -050027
28# Don't generate versioned API files
29androidx.writeVersionedApiFiles=false
Aurimas Liutikas59d77d92020-03-27 17:29:44 -070030
Alan Viverette5cba57a2023-03-23 12:49:13 -040031# Don't run the CheckAarMetadata task
Alan Viveretteb49fc012023-03-03 10:38:35 -050032android.experimental.disableCompileSdkChecks=true
Alan Viverette5cba57a2023-03-23 12:49:13 -040033
Alan Viverettec9686d62022-11-15 14:31:39 -050034# Don't restrict compileSdkPreview usage
35androidx.allowCustomCompileSdk=true
36
Alan Viverette1568bab2023-05-05 14:15:33 -040037# Comma-delimited lists of project path prefixes which have been opted-out of or opted-in to the
38# Suppress Compatibility migration. Opt-out is matched first.
Alan Viverette77e8b012023-05-16 10:24:49 -040039
40# First stage of Suppress Compatibility migration.
Alan Viverette77e8b012023-05-16 10:24:49 -040041androidx.suppress.compatibility.optin.abc=a,b,c
42
43# Second stage of Suppress Compatibility migration
Alan Viverette77e8b012023-05-16 10:24:49 -040044androidx.suppress.compatibility.optin.defg=d,e,f,g
45
46# Third stage of Suppress Compatibility migration
Alan Viverette67dd4452023-05-16 14:51:09 -040047androidx.suppress.compatibility.optin.hijklm=h,i,j,k,l,m
Alan Viverette77e8b012023-05-16 10:24:49 -040048
49# Fourth stage of Suppress Compatibility migration
Alan Viverette40fa8062023-05-16 16:11:01 -040050androidx.suppress.compatibility.optin.nopqrst=n,o,p,q,r,s,t
Alan Viverette77e8b012023-05-16 10:24:49 -040051
52# Fifth stage of Suppress Compatibility migration
Alan Viveretteb3cc1da2023-05-16 16:12:26 -040053androidx.suppress.compatibility.optin.uvwxyz=u,v,w,x,y,z
Alan Viverette1568bab2023-05-05 14:15:33 -040054
Alan Viverette75747922021-11-09 17:50:49 +000055# Don't warn about needing to update AGP
Alan Viverette93ceb222023-05-02 15:25:55 -040056android.suppressUnsupportedCompileSdk=UpsideDownCake,VanillaIceCream,33,34
Alan Viverette75747922021-11-09 17:50:49 +000057
Aurimas Liutikas59d77d92020-03-27 17:29:44 -070058# Disable features we do not use
59android.defaults.buildfeatures.aidl=false
60android.defaults.buildfeatures.buildconfig=false
61android.defaults.buildfeatures.renderscript=false
62android.defaults.buildfeatures.resvalues=false
Aurimas Liutikas33ebdb92020-08-17 08:53:12 -070063android.defaults.buildfeatures.shaders=false
64
Leland Richardsone368cec2021-06-04 15:45:31 -070065# Enable adding baseline-prof.txt files to AAR artifacts
Jeff Gaston62394412021-07-30 13:47:34 -040066android.experimental.enableArtProfiles=true
67
68# Disallow resolving dependencies at configuration time, which is a slight performance problem
69android.dependencyResolutionAtConfigurationTime.disallow=true
Aurimas Liutikasba72fdd2023-02-28 14:56:22 -080070android.suppressUnsupportedOptionWarnings=android.suppressUnsupportedOptionWarnings,android.dependencyResolutionAtConfigurationTime.disallow,android.experimental.lint.missingBaselineIsEmptyBaseline,android.experimental.lint.version
Aurimas Liutikasab45dbe2021-08-11 10:26:22 -070071# Workaround for b/162074215
Jim Sproch666614b2021-08-18 07:43:56 -070072android.includeDependencyInfoInApks=false
Jeff Gaston5126dca2022-11-18 11:30:47 -050073# Allow multiple r8 tasks at once because otherwise they can make the critical path longer: b/256187923
74android.r8.maxWorkers=2
Jim Sproch666614b2021-08-18 07:43:56 -070075
Aurimas Liutikas84d086e2022-09-29 13:24:04 -070076kotlin.stdlib.default.dependency=false
77# mac targets cannot be built on linux, suppress the warning.
78kotlin.native.ignoreDisabledTargets=true
79kotlin.mpp.enableCInteropCommonization=true
80# Suppress pointless warning about mpp being experimental
81kotlin.mpp.stability.nowarn=true
82# b/227307216
83kotlin.mpp.absentAndroidTarget.nowarn=true
Jim Sprocha0fc8102022-12-06 15:28:12 -080084# b/261241595
85kotlin.mpp.androidSourceSetLayoutVersion=1
86kotlin.mpp.androidSourceSetLayoutVersion1.nowarn=true
Jim Sproch0507f652022-08-03 05:04:31 -070087# As of October 3 2022, AGP 7.4.0-alpha08 is higher than AGP 7.3
88# Presumably complains if using a non-stable AGP, which we are regularly doing to test pre-stable.
89kotlin.mpp.androidGradlePluginCompatibility.nowarn=true
Jim Sprocha0fc8102022-12-06 15:28:12 -080090# Until we get a newer AGP which doesn't do this
91kotlin.options.suppressFreeCompilerArgsModificationWarning=true
Jim Sf0b820e02023-02-14 10:02:59 -080092# b/275795136
93ksp.incremental=false
Aurimas Liutikas84d086e2022-09-29 13:24:04 -070094
Jim Sproch666614b2021-08-18 07:43:56 -070095# Properties we often want to toggle
Jim Sf0b820e02023-02-14 10:02:59 -080096ksp.version.check=false
Jim Sproch666614b2021-08-18 07:43:56 -070097# androidx.compose.multiplatformEnabled=true