Yigit Boyar | a4abb18 | 2020-07-31 21:44:05 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2020 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | # Properties that are copied from main properties file |
| 18 | # We set playground properties in two steps: |
| 19 | # * This file is linked into gradle.properties under the project and limited to |
| 20 | # just copying properties from the androidx properties file without any change. |
| 21 | # Its integrity is validated as part of the buildOnServer task in AndroidX. |
| 22 | # (validatePlaygroundGradleProperties task) |
| 23 | # * Additional settings are in playground.properties which are loaded dynamically |
| 24 | # This separation is necessary to ensure gradle can read certain properties |
| 25 | # at configuration time. |
| 26 | |
Aurimas | 1d002fb | 2022-02-22 23:18:00 +0000 | [diff] [blame] | 27 | org.gradle.jvmargs=-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -XX:MaxMetaspaceSize=512m -Dkotlin.daemon.jvm.options=-XX:MaxMetaspaceSize=1g -Dlint.nullness.ignore-deprecated=true |
Dustin Lam | 3fd7b2f | 2022-04-19 18:27:21 -0700 | [diff] [blame] | 28 | org.gradle.configureondemand=true |
| 29 | org.gradle.parallel=true |
| 30 | org.gradle.caching=true |
| 31 | # Disabled due to https://github.com/gradle/gradle/issues/18626 |
| 32 | # org.gradle.vfs.watch=true |
| 33 | org.gradle.dependency.verification.console=verbose |
| 34 | org.gradle.unsafe.configuration-cache=true |
| 35 | org.gradle.unsafe.configuration-cache-problems=warn |
| 36 | org.gradle.unsafe.configuration-cache.max-problems=4000 |
| 37 | |
Aurimas Liutikas | 113e372 | 2023-05-24 13:41:42 -0700 | [diff] [blame] | 38 | android.lint.printStackTrace=true |
Dustin Lam | 3fd7b2f | 2022-04-19 18:27:21 -0700 | [diff] [blame] | 39 | android.uniquePackageNames=false |
| 40 | android.enableAdditionalTestOutput=true |
Yigit Boyar | a4abb18 | 2020-07-31 21:44:05 -0700 | [diff] [blame] | 41 | android.useAndroidX=true |
Dustin Lam | 3fd7b2f | 2022-04-19 18:27:21 -0700 | [diff] [blame] | 42 | android.nonTransitiveRClass=true |
Dustin Lam | 3fd7b2f | 2022-04-19 18:27:21 -0700 | [diff] [blame] | 43 | # Workaround for b/141364941 |
| 44 | android.forceJacocoOutOfProcess=true |
| 45 | android.experimental.lint.missingBaselineIsEmptyBaseline=true |
| 46 | |
| 47 | # Generate versioned API files |
| 48 | androidx.writeVersionedApiFiles=true |
| 49 | |
Yigit Boyar | a4abb18 | 2020-07-31 21:44:05 -0700 | [diff] [blame] | 50 | # Disable features we do not use |
| 51 | android.defaults.buildfeatures.aidl=false |
| 52 | android.defaults.buildfeatures.buildconfig=false |
| 53 | android.defaults.buildfeatures.renderscript=false |
| 54 | android.defaults.buildfeatures.resvalues=false |
| 55 | android.defaults.buildfeatures.shaders=false |
Aurimas Liutikas | 8df0ecc | 2021-11-02 13:26:16 -0700 | [diff] [blame] | 56 | |
Dustin Lam | 3fd7b2f | 2022-04-19 18:27:21 -0700 | [diff] [blame] | 57 | # Enable adding baseline-prof.txt files to AAR artifacts |
| 58 | android.experimental.enableArtProfiles=true |
| 59 | |
| 60 | # Disallow resolving dependencies at configuration time, which is a slight performance problem |
| 61 | android.dependencyResolutionAtConfigurationTime.disallow=true |
Aurimas Liutikas | 113e372 | 2023-05-24 13:41:42 -0700 | [diff] [blame] | 62 | android.suppressUnsupportedOptionWarnings=android.suppressUnsupportedOptionWarnings,android.dependencyResolutionAtConfigurationTime.disallow,android.experimental.lint.missingBaselineIsEmptyBaseline,android.experimental.lint.version,android.lint.printStackTrace |
Dustin Lam | 3fd7b2f | 2022-04-19 18:27:21 -0700 | [diff] [blame] | 63 | # Workaround for b/162074215 |
| 64 | android.includeDependencyInfoInApks=false |
| 65 | |
Aurimas Liutikas | 84d086e | 2022-09-29 13:24:04 -0700 | [diff] [blame] | 66 | kotlin.stdlib.default.dependency=false |
| 67 | # mac targets cannot be built on linux, suppress the warning. |
| 68 | kotlin.native.ignoreDisabledTargets=true |
| 69 | kotlin.mpp.enableCInteropCommonization=true |
| 70 | # Suppress pointless warning about mpp being experimental |
| 71 | kotlin.mpp.stability.nowarn=true |
| 72 | # b/227307216 |
| 73 | kotlin.mpp.absentAndroidTarget.nowarn=true |
Jim Sproch | ef5fb01 | 2022-12-06 15:28:12 -0800 | [diff] [blame] | 74 | # As of October 3 2022, AGP 7.4.0-alpha08 is higher than AGP 7.3 |
| 75 | # Presumably complains if using a non-stable AGP, which we are regularly doing to test pre-stable. |
| 76 | kotlin.mpp.androidGradlePluginCompatibility.nowarn=true |
Aurimas Liutikas | 84d086e | 2022-09-29 13:24:04 -0700 | [diff] [blame] | 77 | |
Dustin Lam | 3fd7b2f | 2022-04-19 18:27:21 -0700 | [diff] [blame] | 78 | # Properties we often want to toggle |
| 79 | # ksp.version.check=false |
| 80 | # androidx.compose.multiplatformEnabled=true |
Jim Sproch | ef5fb01 | 2022-12-06 15:28:12 -0800 | [diff] [blame] | 81 | |
| 82 | kotlin.mpp.androidSourceSetLayoutVersion=1 |
| 83 | |
| 84 | |