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 27org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -XX:MaxMetaspaceSize=512m -Dkotlin.daemon.jvm.options=-XX:MaxMetaspaceSize=1g -Dlint.nullness.ignore-deprecated=true -Dlint.nullness.ignore-deprecated=true 28org.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.configuration-cache=true 35org.gradle.configuration-cache.problems=fail 36 37android.lint.useK2Uast=true 38android.lint.printStackTrace=true 39android.uniquePackageNames=true 40android.enableAdditionalTestOutput=true 41android.useAndroidX=true 42android.nonTransitiveRClass=true 43android.experimental.lint.missingBaselineIsEmptyBaseline=true 44# Remove when AGP defaults to 2.1.0 45android.prefabVersion=2.1.0 46 47# Generate versioned API files 48androidx.writeVersionedApiFiles=true 49 50androidx.compileSdk=34 51androidx.targetSdkVersion=34 52androidx.allowCustomCompileSdk=true 53 54# Playground does not support constraints 55androidx.constraints=false 56 57# Disable features we do not use 58android.defaults.buildfeatures.resvalues=false 59android.defaults.buildfeatures.shaders=false 60 61# Enable adding baseline-prof.txt files to AAR artifacts 62android.experimental.enableArtProfiles=true 63# Disables dependency constraints for libraries (b/276714425) 64android.experimental.dependency.excludeLibraryComponentsFromConstraints=true 65# Disallow resolving dependencies at configuration time, which is a slight performance problem 66android.dependencyResolutionAtConfigurationTime.disallow=true 67android.suppressUnsupportedOptionWarnings=android.suppressUnsupportedOptionWarnings,android.dependencyResolutionAtConfigurationTime.disallow,android.experimental.lint.missingBaselineIsEmptyBaseline,android.lint.printStackTrace,android.lint.baselineOmitLineNumbers,android.experimental.disableCompileSdkChecks,android.overrideVersionCheck,android.r8.maxWorkers,android.experimental.lint.reservedMemoryPerTask,android.experimental.dependency.excludeLibraryComponentsFromConstraints,android.prefabVersion,android.experimental.privacysandboxsdk.plugin.enable,android.experimental.privacysandboxsdk.requireServices,android.lint.useK2Uast,android.experimental.skipApksViaBundleIfPossible 68# Workaround for b/162074215 69android.includeDependencyInfoInApks=false 70 71kotlin.stdlib.default.dependency=false 72# mac targets cannot be built on linux, suppress the warning. 73kotlin.native.ignoreDisabledTargets=true 74kotlin.mpp.enableCInteropCommonization=true 75# Suppress pointless warning about mpp being experimental 76kotlin.mpp.stability.nowarn=true 77# b/227307216 78kotlin.mpp.absentAndroidTarget.nowarn=true 79 80# Properties we often want to toggle 81# ksp.version.check=false 82 83kotlin.mpp.androidSourceSetLayoutVersion=2 84# Suppress warnings about https://kotl.in/hierarchy-template 85kotlin.mpp.applyDefaultHierarchyTemplate=false 86 87# Enable com.android.privacy-sandbox-sdk plugin 88android.experimental.privacysandboxsdk.plugin.enable=true 89# Allow non-shim usage 90android.experimental.privacysandboxsdk.requireServices=false 91# Use fast-path APKs from AGP, ensuring that single APK will be used (for FTL configs) 92android.experimental.skipApksViaBundleIfPossible=true 93