[go: nahoru, domu]

blob: 8ae78c03caf52be0801a1129af407ea5426f52e9 [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
38android.uniquePackageNames=false
39android.enableAdditionalTestOutput=true
Yigit Boyara4abb182020-07-31 21:44:05 -070040android.useAndroidX=true
Dustin Lam3fd7b2f2022-04-19 18:27:21 -070041android.nonTransitiveRClass=true
Dustin Lam3fd7b2f2022-04-19 18:27:21 -070042# Workaround for b/141364941
43android.forceJacocoOutOfProcess=true
44android.experimental.lint.missingBaselineIsEmptyBaseline=true
45
46# Generate versioned API files
47androidx.writeVersionedApiFiles=true
48
Yigit Boyara4abb182020-07-31 21:44:05 -070049# Disable features we do not use
50android.defaults.buildfeatures.aidl=false
51android.defaults.buildfeatures.buildconfig=false
52android.defaults.buildfeatures.renderscript=false
53android.defaults.buildfeatures.resvalues=false
54android.defaults.buildfeatures.shaders=false
Aurimas Liutikas8df0ecc2021-11-02 13:26:16 -070055
Dustin Lam3fd7b2f2022-04-19 18:27:21 -070056# Enable adding baseline-prof.txt files to AAR artifacts
57android.experimental.enableArtProfiles=true
58
59# Disallow resolving dependencies at configuration time, which is a slight performance problem
60android.dependencyResolutionAtConfigurationTime.disallow=true
61android.suppressUnsupportedOptionWarnings=android.suppressUnsupportedOptionWarnings,android.dependencyResolutionAtConfigurationTime.disallow,android.experimental.lint.missingBaselineIsEmptyBaseline
62# Workaround for b/162074215
63android.includeDependencyInfoInApks=false
64
Aurimas Liutikas84d086e2022-09-29 13:24:04 -070065kotlin.stdlib.default.dependency=false
66# mac targets cannot be built on linux, suppress the warning.
67kotlin.native.ignoreDisabledTargets=true
68kotlin.mpp.enableCInteropCommonization=true
69# Suppress pointless warning about mpp being experimental
70kotlin.mpp.stability.nowarn=true
71# b/227307216
72kotlin.mpp.absentAndroidTarget.nowarn=true
73
Dustin Lam3fd7b2f2022-04-19 18:27:21 -070074# Properties we often want to toggle
75# ksp.version.check=false
76# androidx.compose.multiplatformEnabled=true