summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2019-10-13 11:36:19 +0530
committerHarsh Shandilya <msfjarvis@gmail.com>2019-10-13 11:36:19 +0530
commitdd4b98804bc0e0e24621c9b0e9ea0662c9432954 (patch)
treef8dcf7d16e862beef84d392f4cb7388b00a625fa
parent90b534e2eaaead6d449a2eca6b009351c4021f05 (diff)
build: Update gradle properties
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
-rw-r--r--gradle.properties22
1 files changed, 22 insertions, 0 deletions
diff --git a/gradle.properties b/gradle.properties
index dbb7bf70..a418d2f5 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,2 +1,24 @@
+# AndroidX
android.enableJetifier=true
android.useAndroidX=true
+
+# R8 Full mode
+android.enableR8.fullMode=true
+
+# Reduce memory usage in CI pipeline
+org.gradle.daemon=false
+org.gradle.parallel=true
+org.gradle.caching=true
+org.gradle.configureondemand=true
+org.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+
+# Disable warnings for experimental options
+android.suppressUnsupportedOptionWarnings=android.suppressUnsupportedOptionWarnings,android.enableR8.fullMode,android.namespacedRClass
+
+# https://jakewharton.com/increased-accuracy-of-aapt2-keep-rules/
+android.useMinimalKeepRules=true
+
+# Enable rudimentary R class namespacing where each library only contains
+# references to the resources it declares instead of declarations plus all
+# transitive dependency references.
+android.namespacedRClass=true