This compose doc <page> has this line, but this <s...
# compose
c
This compose doc page has this line, but this setup doc does not. Which doc is right?
Copy code
freeCompilerArgs += ["-Xallow-jvm-ir-dependencies"]
a
The former is out of date. Use
useIR = true
now.
v
The right is as following:
Copy code
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
    kotlinOptions {
        jvmTarget = "1.8"
        useIR = true
        freeCompilerArgs += ["-Xallow-jvm-ir-dependencies",
                    
                             "-P",
                             "plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=true"
                             ]
    }
}