I'm starting a new kotlin+android project. What s...
# random
c
I'm starting a new kotlin+android project. What settings should I have enabled in gradle.properties from your POV?
t
None, leave them as is. I've never had to change them and my apps work fine
e
Copy code
org.gradle.caching=true # https://docs.gradle.org/current/userguide/build_cache.html#sec:build_cache_enable
org.gradle.parallel=true # https://docs.gradle.org/current/userguide/performance.html#parallel_execution
org.gradle.jvmargs=-XX:+UseParallelGC # tune for your project; https://developer.android.com/studio/build/optimize-your-build#configure-the-jvm-garbage-collector
Copy code
kotlin.code.style=official # https://kotlinlang.org/docs/code-style-migration-guide.html#in-gradle
kotlin.daemon.jvmargs= # like org.gradle.jvmargs, tune for your project
Copy code
android.useAndroidX=true # mandatory in most projects
android.enableAdditionalTestOutput=true # https://developer.android.com/topic/performance/benchmarking/macrobenchmark-overview
android.enableAppCompileTimeRClass=true # https://www.mobileit.cz/Blog/Pages/r-class.aspx
c
Thanks! I didn't have a few of those. I wish there was a scan or something of like "hey you should probably turn these flags on". maybe i can file a report with gradle doctor