Jeff Gaston | 3588ea3 | 2023-01-04 10:32:08 -0500 | [diff] [blame] | 1 | org.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 |
Yigit Boyar | f77697d | 2016-08-16 10:55:36 -0700 | [diff] [blame] | 2 | org.gradle.daemon=true |
Aurimas Liutikas | 59e5b6f9 | 2017-08-23 10:11:32 -0700 | [diff] [blame] | 3 | org.gradle.configureondemand=true |
Aurimas Liutikas | a64f1ce | 2018-05-18 11:29:03 -0700 | [diff] [blame] | 4 | org.gradle.parallel=true |
Aurimas Liutikas | d9950fa | 2018-05-23 03:08:26 +0000 | [diff] [blame] | 5 | org.gradle.caching=true |
Aurimas Liutikas | b5a2e52 | 2022-04-22 14:18:27 -0700 | [diff] [blame] | 6 | org.gradle.welcome=never |
Aurimas Liutikas | c0fef3a | 2021-10-12 15:07:05 -0700 | [diff] [blame] | 7 | # Disabled due to https://github.com/gradle/gradle/issues/18626 |
| 8 | # org.gradle.vfs.watch=true |
Jeff Gaston | dc9c8cb | 2023-02-08 16:24:38 -0500 | [diff] [blame] | 9 | # 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) |
| 10 | org.gradle.dependency.verification=off |
Aurimas Liutikas | 3ae82fa | 2021-09-23 09:19:23 -0700 | [diff] [blame] | 11 | org.gradle.dependency.verification.console=verbose |
Jeff Gaston | 96eb601 | 2021-09-27 14:55:36 +0000 | [diff] [blame] | 12 | org.gradle.unsafe.configuration-cache=true |
| 13 | org.gradle.unsafe.configuration-cache-problems=warn |
| 14 | org.gradle.unsafe.configuration-cache.max-problems=4000 |
Aurimas Liutikas | ac0e9fc | 2020-10-29 14:10:54 -0700 | [diff] [blame] | 15 | |
Aurimas Liutikas | 005dea0 | 2017-06-29 17:00:29 -0700 | [diff] [blame] | 16 | android.builder.sdkDownload=false |
Aurimas Liutikas | 28514e22 | 2020-06-01 16:20:08 +0000 | [diff] [blame] | 17 | android.uniquePackageNames=false |
Dustin Lam | f14ad35 | 2019-09-30 15:30:55 -0700 | [diff] [blame] | 18 | android.enableAdditionalTestOutput=true |
| 19 | android.useAndroidX=true |
Aurimas Liutikas | 2b1a09c | 2021-05-18 16:45:30 -0700 | [diff] [blame] | 20 | android.nonTransitiveRClass=true |
Chris Warrington | 2e38a61 | 2022-11-25 18:07:04 +0000 | [diff] [blame] | 21 | # Pending cleanup to support non-constant R class IDs b/260409846 |
| 22 | android.nonFinalResIds=false |
Aurimas Liutikas | a737b42 | 2019-12-10 16:35:38 -0800 | [diff] [blame] | 23 | # Workaround for b/141364941 |
Aurimas Liutikas | d4fcb1c | 2019-12-17 15:50:11 -0800 | [diff] [blame] | 24 | android.forceJacocoOutOfProcess=true |
Aurimas Liutikas | 0ededfb | 2022-04-11 21:25:00 -0700 | [diff] [blame] | 25 | android.experimental.lint.missingBaselineIsEmptyBaseline=true |
Aurimas Liutikas | ba72fdd | 2023-02-28 14:56:22 -0800 | [diff] [blame] | 26 | android.experimental.lint.version = 8.1.0-alpha07 |
Alan Viverette | d62a184 | 2021-01-28 15:08:55 -0500 | [diff] [blame] | 27 | |
| 28 | # Don't generate versioned API files |
Alan Viverette | ac702b8 | 2021-07-30 14:20:02 -0400 | [diff] [blame] | 29 | androidx.writeVersionedApiFiles=true |
Aurimas Liutikas | 59d77d9 | 2020-03-27 17:29:44 -0700 | [diff] [blame] | 30 | |
Alan Viverette | a360e96 | 2022-11-15 14:31:39 -0500 | [diff] [blame] | 31 | # Do restrict compileSdkPreview usage |
| 32 | androidx.allowCustomCompileSdk=false |
| 33 | |
Alan Viverette | 7574792 | 2021-11-09 17:50:49 +0000 | [diff] [blame] | 34 | # Don't warn about needing to update AGP |
Aurimas Liutikas | d680766 | 2023-03-13 04:31:11 +0000 | [diff] [blame] | 35 | android.suppressUnsupportedCompileSdk=Tiramisu,33 |
Alan Viverette | 7574792 | 2021-11-09 17:50:49 +0000 | [diff] [blame] | 36 | |
Aurimas Liutikas | 59d77d9 | 2020-03-27 17:29:44 -0700 | [diff] [blame] | 37 | # Disable features we do not use |
| 38 | android.defaults.buildfeatures.aidl=false |
| 39 | android.defaults.buildfeatures.buildconfig=false |
| 40 | android.defaults.buildfeatures.renderscript=false |
| 41 | android.defaults.buildfeatures.resvalues=false |
Aurimas Liutikas | 33ebdb9 | 2020-08-17 08:53:12 -0700 | [diff] [blame] | 42 | android.defaults.buildfeatures.shaders=false |
| 43 | |
Leland Richardson | e368cec | 2021-06-04 15:45:31 -0700 | [diff] [blame] | 44 | # Enable adding baseline-prof.txt files to AAR artifacts |
Jeff Gaston | 6239441 | 2021-07-30 13:47:34 -0400 | [diff] [blame] | 45 | android.experimental.enableArtProfiles=true |
| 46 | |
| 47 | # Disallow resolving dependencies at configuration time, which is a slight performance problem |
| 48 | android.dependencyResolutionAtConfigurationTime.disallow=true |
Aurimas Liutikas | ba72fdd | 2023-02-28 14:56:22 -0800 | [diff] [blame] | 49 | android.suppressUnsupportedOptionWarnings=android.suppressUnsupportedOptionWarnings,android.dependencyResolutionAtConfigurationTime.disallow,android.experimental.lint.missingBaselineIsEmptyBaseline,android.experimental.lint.version |
Aurimas Liutikas | ab45dbe | 2021-08-11 10:26:22 -0700 | [diff] [blame] | 50 | # Workaround for b/162074215 |
Jim Sproch | 666614b | 2021-08-18 07:43:56 -0700 | [diff] [blame] | 51 | android.includeDependencyInfoInApks=false |
Jeff Gaston | 5126dca | 2022-11-18 11:30:47 -0500 | [diff] [blame] | 52 | # Allow multiple r8 tasks at once because otherwise they can make the critical path longer: b/256187923 |
| 53 | android.r8.maxWorkers=2 |
Jim Sproch | 666614b | 2021-08-18 07:43:56 -0700 | [diff] [blame] | 54 | |
Aurimas Liutikas | 84d086e | 2022-09-29 13:24:04 -0700 | [diff] [blame] | 55 | kotlin.stdlib.default.dependency=false |
| 56 | # mac targets cannot be built on linux, suppress the warning. |
| 57 | kotlin.native.ignoreDisabledTargets=true |
| 58 | kotlin.mpp.enableCInteropCommonization=true |
| 59 | # Suppress pointless warning about mpp being experimental |
| 60 | kotlin.mpp.stability.nowarn=true |
| 61 | # b/227307216 |
| 62 | kotlin.mpp.absentAndroidTarget.nowarn=true |
Jim Sproch | ef5fb01 | 2022-12-06 15:28:12 -0800 | [diff] [blame] | 63 | # b/261241595 |
| 64 | kotlin.mpp.androidSourceSetLayoutVersion=1 |
| 65 | kotlin.mpp.androidSourceSetLayoutVersion1.nowarn=true |
Jim Sproch | 0507f65 | 2022-08-03 05:04:31 -0700 | [diff] [blame] | 66 | # As of October 3 2022, AGP 7.4.0-alpha08 is higher than AGP 7.3 |
| 67 | # Presumably complains if using a non-stable AGP, which we are regularly doing to test pre-stable. |
| 68 | kotlin.mpp.androidGradlePluginCompatibility.nowarn=true |
Jim Sproch | ef5fb01 | 2022-12-06 15:28:12 -0800 | [diff] [blame] | 69 | # Until we get a newer AGP which doesn't do this |
| 70 | kotlin.options.suppressFreeCompilerArgsModificationWarning=true |
Aurimas Liutikas | 84d086e | 2022-09-29 13:24:04 -0700 | [diff] [blame] | 71 | |
Jim Sproch | 666614b | 2021-08-18 07:43:56 -0700 | [diff] [blame] | 72 | # Properties we often want to toggle |
| 73 | # ksp.version.check=false |
| 74 | # androidx.compose.multiplatformEnabled=true |