hi 👋
I upgraded the gradle plugin to 8.0.0 in my project with the Android Studio assistant and I got this new flag in the properties: android.nonFinalResIds
It has been set to
false
, but I see in the documentation that AGP 8.0 has changed this to
true
I am not really sure what's the benefit or downside of this and I would like to get some insights.
c
Colton Idle
06/06/2023, 3:51 PM
non final fields are more "performant"
Colton Idle
06/06/2023, 3:52 PM
and so since it was false by default. it keeps it on false apparently so that it doesn't introduce (breaking?) changes into your app.
Colton Idle
06/06/2023, 3:52 PM
id set it to true, and see if anything breaks
g
gts13
06/06/2023, 3:59 PM
oh nice, thanks for the tip.
I will enable it and see how it works