-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgradle.properties
35 lines (35 loc) · 1.21 KB
/
gradle.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# JVM section:
# Recommendations
# 8 RAM: -Xmx2g -XX:MaxMetaspaceSize=358m (default)
# 16 RAM: -Xmx3g -XX:MaxMetaspaceSize=512m
# 32 RAM: -Xmx10g -XX:MaxMetaspaceSize=1g
org.gradle.jvmargs=-Xmx3g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC
# Android X section:
android.useAndroidX=true
android.enableJetifier=false
# Kotlin section:
kotlin.code.style=official
# Android R class:
android.nonTransitiveRClass=true
android.nonConstantRClass=true
# Gradle flags section:
org.gradle.parallel=true
org.gradle.caching=true
org.gradle.daemon=true
org.gradle.configuration-cache=true
# Or
# org.gradle.configuration-cache.problems=warn
# Android buildfeatures flags section:
# Disable buildfeatures, default false to Gradle 8.0
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
# Default is Gradle 8.0
android.nonFinalResIds=true
# Removed is Gradle 8.0. Enable if Gradle version is less than 8.
# android.disableAutomaticComponentCreation=true
# R8 section:
# Default is Gradle 8.0
android.enableR8.fullMode=true