MindscapeHQ / raygun4android

Android crash reporting provider for Raygun
https://raygun.com
MIT License
21 stars 14 forks source link

Look into new Gradle 8 build performance settings #97

Closed TheRealAgentK closed 2 months ago

TheRealAgentK commented 12 months ago

Added by Gradle 8 automatically - can probably be changed for perf improvement of builds.

android.nonTransitiveRClass=false
android.nonFinalResIds=false
TheRealAgentK commented 2 months ago

android.nonFinalResIds=false

This is the correct setting and leads to better performance and the benefits that we'd get from non-final resourceIds are not required as we don't modify resourceIDs at runtime for instance.

TheRealAgentK commented 2 months ago

android.nonTransitiveRClass=false

This could be set to true for performance improvements at - in our case - no cost or loss/restriction of resource-linking convenience. I will ensure various build scenarios still work fine before I commit to the change.

Some interesting resources (cc: @sumitramanga)

https://www.mobileit.cz/Blog/Pages/r-class.aspx https://developer.android.com/build/optimize-your-build#use-non-transitive-r-classes