hey how do you opt into the new IR backend , for a...
# android
r
hey how do you opt into the new IR backend , for a multi module android project
s
Copy code
android {
   kotlinOptions {
       useIR = true
   }
}
Apply this to your modules
r
sigh there is no way to just apply it globally?
s
Maybe there is a way, but this is how i did it. My setup is such that i have a common gradle file that i use for settings like this that will be common to all library modules, so i only have to declare this in two places (common + app)
a
Copy code
subprojects {
    tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
        kotlinOptions {
            useIR = true
        }
    }
}
Put this in your project level
build.gradle
to enable IR backend for all the modules.
r
Thank yall for the info!