[go: nahoru, domu]

blob: 7252dbcfaaac4ec136be577caf0fd8460c8e8208 [file] [log] [blame]
Yigit Boyara4abb182020-07-31 21:44:05 -07001#
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
Aurimas1d002fb2022-02-22 23:18:00 +000027org.gradle.jvmargs=-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -XX:MaxMetaspaceSize=512m -Dkotlin.daemon.jvm.options=-XX:MaxMetaspaceSize=1g -Dlint.nullness.ignore-deprecated=true
Dustin Lam3fd7b2f2022-04-19 18:27:21 -070028org.gradle.configureondemand=true
29org.gradle.parallel=true
30org.gradle.caching=true
31# Disabled due to https://github.com/gradle/gradle/issues/18626
32# org.gradle.vfs.watch=true
33org.gradle.dependency.verification.console=verbose
34org.gradle.unsafe.configuration-cache=true
35org.gradle.unsafe.configuration-cache-problems=warn
36org.gradle.unsafe.configuration-cache.max-problems=4000
37
Aurimas Liutikas113e3722023-05-24 13:41:42 -070038android.lint.printStackTrace=true
Dustin Lam3fd7b2f2022-04-19 18:27:21 -070039android.uniquePackageNames=false
40android.enableAdditionalTestOutput=true
Yigit Boyara4abb182020-07-31 21:44:05 -070041android.useAndroidX=true
Dustin Lam3fd7b2f2022-04-19 18:27:21 -070042android.nonTransitiveRClass=true
Dustin Lam3fd7b2f2022-04-19 18:27:21 -070043# Workaround for b/141364941
44android.forceJacocoOutOfProcess=true
45android.experimental.lint.missingBaselineIsEmptyBaseline=true
46
47# Generate versioned API files
48androidx.writeVersionedApiFiles=true
49
Yigit Boyara4abb182020-07-31 21:44:05 -070050# Disable features we do not use
51android.defaults.buildfeatures.aidl=false
52android.defaults.buildfeatures.buildconfig=false
53android.defaults.buildfeatures.renderscript=false
54android.defaults.buildfeatures.resvalues=false
55android.defaults.buildfeatures.shaders=false
Aurimas Liutikas8df0ecc2021-11-02 13:26:16 -070056
Dustin Lam3fd7b2f2022-04-19 18:27:21 -070057# Enable adding baseline-prof.txt files to AAR artifacts
58android.experimental.enableArtProfiles=true
59
60# Disallow resolving dependencies at configuration time, which is a slight performance problem
61android.dependencyResolutionAtConfigurationTime.disallow=true
Aurimas Liutikas113e3722023-05-24 13:41:42 -070062android.suppressUnsupportedOptionWarnings=android.suppressUnsupportedOptionWarnings,android.dependencyResolutionAtConfigurationTime.disallow,android.experimental.lint.missingBaselineIsEmptyBaseline,android.experimental.lint.version,android.lint.printStackTrace
Dustin Lam3fd7b2f2022-04-19 18:27:21 -070063# Workaround for b/162074215
64android.includeDependencyInfoInApks=false
65
Aurimas Liutikas84d086e2022-09-29 13:24:04 -070066kotlin.stdlib.default.dependency=false
67# mac targets cannot be built on linux, suppress the warning.
68kotlin.native.ignoreDisabledTargets=true
69kotlin.mpp.enableCInteropCommonization=true
70# Suppress pointless warning about mpp being experimental
71kotlin.mpp.stability.nowarn=true
72# b/227307216
73kotlin.mpp.absentAndroidTarget.nowarn=true
Jim Sprochef5fb012022-12-06 15:28:12 -080074# 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.
76kotlin.mpp.androidGradlePluginCompatibility.nowarn=true
Aurimas Liutikas84d086e2022-09-29 13:24:04 -070077
Dustin Lam3fd7b2f2022-04-19 18:27:21 -070078# Properties we often want to toggle
79# ksp.version.check=false
80# androidx.compose.multiplatformEnabled=true
Jim Sprochef5fb012022-12-06 15:28:12 -080081
82kotlin.mpp.androidSourceSetLayoutVersion=1
83
84