Is there any way to set `nonTransitiveRClass` in ...
# android
m
Is there any way to set
nonTransitiveRClass
in build.gradle.kts of a spesific module ? I want to still use transitiveRClass in 1 module while disabling the rest of the project
e
note that you should probably fix your code to work with
android.nonTransitiveRClass=true
everywhere, it is the default as of AGP 8.0.0 https://developer.android.com/build/releases/gradle-plugin#default-changes
but configuring AGP isn't really a Kotlin issue, so see the channel topic for where to discuss instead of here.
m
Yes that is the problem actually, I have ~50 modules and all the modules except 1 works with
android.nonTransitiveRClass=true
so I just want to set
android.nonTransitiveRClass=false
for that spesific module
c
I think android.nonTransitiveRClass=true is an all or nothing thing since its set in the root gradle file.
m
Yea that’s why i wanted to ask, it is actually not gradle file at all, it is a property in gradle.properties so effects entire project
387 Views