2023-09-14 08:55:50 +00:00
|
|
|
# Android
|
|
|
|
android.useAndroidX=true
|
|
|
|
android.enableJetifier=false
|
|
|
|
android.nonTransitiveRClass=true
|
|
|
|
## Disable buildFeatures flags by default
|
2022-12-07 03:16:04 +00:00
|
|
|
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
|
2023-09-14 08:55:39 +00:00
|
|
|
# Gradle
|
2023-09-14 08:54:57 +00:00
|
|
|
## Ensure important default jvmargs aren't overwritten. See https://github.com/gradle/gradle/issues/19750
|
2023-09-18 13:49:14 +00:00
|
|
|
org.gradle.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:+HeapDumpOnOutOfMemoryError
|
2019-11-13 15:43:20 +00:00
|
|
|
org.gradle.parallel=true
|
2022-12-06 15:05:54 +00:00
|
|
|
org.gradle.caching=true
|
2023-10-19 10:31:50 +00:00
|
|
|
org.gradle.configuration-cache=false
|
2023-09-06 13:24:46 +00:00
|
|
|
org.gradle.kotlin.dsl.allWarningsAsErrors=true
|
2023-12-05 10:35:10 +00:00
|
|
|
## Workaround for AGP still using old versions of xerces and having issues with Gradle > 8.3
|
|
|
|
## https://docs.gradle.org/current/userguide/upgrading_version_8.html#xml_parsing_now_requires_recent_parsers
|
2024-02-21 13:16:07 +00:00
|
|
|
## A fix is available in AGP 8.3.0-alpha12: https://issuetracker.google.com/issues/306301014
|
|
|
|
## Remove this once AGP 8.3.0 works with Intellij IDEA
|
2023-12-05 10:35:10 +00:00
|
|
|
systemProp.javax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
|
|
|
|
systemProp.javax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
|
|
|
|
systemProp.javax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
|