https://kotlinlang.org logo
#random
Title
# random
c

Colton Idle

07/07/2022, 3:02 AM
I'm starting a new kotlin+android project. What settings should I have enabled in gradle.properties from your POV?
t

therealbluepandabear

07/07/2022, 3:32 AM
None, leave them as is. I've never had to change them and my apps work fine
e

ephemient

07/07/2022, 3:32 AM
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

Colton Idle

07/07/2022, 12:53 PM
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
20 Views