| # |
| # 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=-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -XX:MaxMetaspaceSize=512m -Dkotlin.daemon.jvm.options=-XX:MaxMetaspaceSize=1g -Dlint.nullness.ignore-deprecated=true |
| android.useAndroidX=true |
| # Disable features we do not use |
| android.defaults.buildfeatures.aidl=false |
| android.defaults.buildfeatures.buildconfig=false |
| android.defaults.buildfeatures.renderscript=false |
| android.defaults.buildfeatures.resvalues=false |
| android.defaults.buildfeatures.shaders=false |
| android.disableAutomaticComponentCreation=true |
| |
| org.gradle.configureondemand=true |
| org.gradle.parallel=true |
| org.gradle.caching=true |
| # Disabled due to https://github.com/gradle/gradle/issues/18626 |
| # org.gradle.vfs.watch=true |
| org.gradle.unsafe.configuration-cache=true |
| org.gradle.unsafe.configuration-cache-problems=warn |
| org.gradle.unsafe.configuration-cache.max-problems=4000 |