blob: c68903716e4895a880147d99f86a33f6e05d4acb [file]
#
# Copyright 2020 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Properties that are copied from main properties file
# We set playground properties in two steps:
# * This file is linked into gradle.properties under the project and limited to
# just copying properties from the androidx properties file without any change.
# Its integrity is validated as part of the buildOnServer task in AndroidX.
# (validatePlaygroundGradleProperties task)
# * Additional settings are in playground.properties which are loaded dynamically
# This separation is necessary to ensure gradle can read certain properties
# at configuration time.
org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g -Dkotlin.daemon.jvm.options=-XX:MaxMetaspaceSize=1g -Dlint.nullness.ignore-deprecated=true -Dlint.nullness.ignore-deprecated=true
org.gradle.configureondemand=true
org.gradle.parallel=true
org.gradle.tooling.parallel=true
org.gradle.caching=true
# Disabled due to https://github.com/gradle/gradle/issues/18626
# org.gradle.vfs.watch=true
org.gradle.configuration-cache.parallel=true
org.gradle.dependency.verification.console=verbose
org.gradle.configuration-cache=true
org.gradle.configuration-cache.problems=fail
org.gradle.configuration-cache.entries-per-key=2
org.gradle.welcome=never
# Remove when https://youtrack.jetbrains.com/issue/KT-70013 is fixed
org.gradle.configuration-cache.inputs.unsafe.ignore.file-system-checks=**/out/.gradle/nodejs;**/out/.gradle/yarn;**/out/.gradle/binaryen
android.javaCompile.suppressSourceTargetDeprecationWarning=true
android.lint.baselineOmitLineNumbers=true
android.lint.printStackTrace=true
android.uniquePackageNames=true
android.enableAdditionalTestOutput=true
android.useAndroidX=true
android.nonTransitiveRClass=true
android.experimental.lint.missingBaselineIsEmptyBaseline=true
android.experimental.lint.reservedMemoryPerTask=1g
# Remove when AGP defaults to 2.1.0
android.prefabVersion=2.1.0
android.disableAgpUpgradePrompt=true
# Generate versioned API files
androidx.writeVersionedApiFiles=true
androidx.compileSdk=34
androidx.latestStableCompileSdk=37
androidx.latestStableMinorApiLevel=0
androidx.targetSdkVersion=36
androidx.ndkVersion=27.0.12077973
# Playground does not support constraints
androidx.constraints=false
# Disable features we do not use
android.defaults.buildfeatures.resvalues=false
android.defaults.buildfeatures.shaders=false
# Enable adding baseline-prof.txt files to AAR artifacts
android.experimental.enableArtProfiles=true
# Disables dependency constraints for libraries (b/276714425)
android.experimental.dependency.excludeLibraryComponentsFromConstraints=true
# Disallow resolving dependencies at configuration time, which is a slight performance problem
android.dependencyResolutionAtConfigurationTime.disallow=true
android.suppressUnsupportedOptionWarnings=android.suppressUnsupportedOptionWarnings,android.dependencyResolutionAtConfigurationTime.disallow,android.experimental.lint.missingBaselineIsEmptyBaseline,android.lint.printStackTrace,android.lint.baselineOmitLineNumbers,android.experimental.disableCompileSdkChecks,android.experimental.disableCompileSdkChecks.tests,android.overrideVersionCheck,android.r8.maxWorkers,android.experimental.lint.reservedMemoryPerTask,android.experimental.dependency.excludeLibraryComponentsFromConstraints,android.prefabVersion,android.experimental.skipApksViaBundleIfPossible,android.enableCompileRuntimeClasspathAlignment,android.proguard.failOnMissingFiles,android.enableAppCompileTimeRClass,android.r8.optimizedResourceShrinking,android.disallowKotlinSourceSets
# Workaround for b/162074215
android.includeDependencyInfoInApks=false
# Enable compileSdk enforcement for production dependencies
android.experimental.disableCompileSdkChecks=false
# Disable compileSdk enforcement for test dependencies
android.experimental.disableCompileSdkChecks.tests=true
# Use fast-path APKs from AGP, ensuring that single APK will be used (for FTL configs)
android.experimental.skipApksViaBundleIfPossible=true
# Preserve the test APKs after a test run
android.injected.androidTest.leaveApksInstalledAfterRun=true
# TODO(https://youtrack.jetbrains.com/issue/KT-86858/): Remove when enabling SwiftPM import does not break XCFramework setup in benchmark/benchmark-darwin/build.gradle
kotlin.disableSwiftPMImport=true
# mac targets cannot be built on linux, suppress the warning.
kotlin.native.ignoreDisabledTargets=true
kotlin.native.enableKlibsCrossCompilation=true
kotlin.mpp.enableCInteropCommonization=true
# Suppress pointless warning about mpp being experimental
kotlin.mpp.stability.nowarn=true
# b/227307216
kotlin.mpp.absentAndroidTarget.nowarn=true
# Workaround for KT-84610
kotlin.incremental.js=false
kotlin.incremental.js.klib=false
kotlin.suppressGradlePluginWarnings=ConfigurationOnDemandNotSupported,DeprecatedKotlinAndroidPlugin
# Until we get a newer AGP which doesn't do this
kotlin.options.suppressFreeCompilerArgsModificationWarning=true
kotlin.mpp.androidSourceSetLayoutVersion=2
# Properties we often want to toggle
#ksp.version.check=false
ksp.project.isolation.enabled=true
# Allow target-specific KSP tasks to inherit global 'ksp' dependencies (required for KSP 2.3.10+).
ksp.allow.all.target.configuration=true
# Annotation processors discovery from compile classpath is deprecated
kapt.include.compile.classpath=false
# Workaround for https://github.com/Kotlin/kotlinx-benchmark/issues/258
benchmarks_jmh_version_skip_check=true
# Use kapt with K2 compiler: https://kotlinlang.org/docs/kapt.html#annotation-processor-arguments
kapt.use.k2=true
# Disable dependency analysis compatibility check
dependency.analysis.compatibility=NONE