In our project, due to some limitations, we still ...
# compose
k
In our project, due to some limitations, we still use kotlin version 1.9.22 and compose version 1.6.3. We would like to turn on strong skipping mode, which I've heard is default in Kotlin 2.0.20. If we turn it on like this in gradle:
Copy code
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
    compilerOptions {
        freeCompilerArgs += [
            "-P",
            "plugin:androidx.compose.compiler.plugins.kotlin:experimentalStrongSkipping=true"
        ]
    }
}
Is there any difference between using the mode like this and using it in the newer Kotlin version? Thanks a lot 🙂
j
Not sure of difference of strong skipping itself, I think same. But one major difference is in 2.0.0+ its part of jetbrains instead of androidx repo. So the compiler of compose "automatic" work with each new Kotlin version. See more here: https://android-developers.googleblog.com/2024/04/jetpack-compose-compiler-moving-to-kotlin-repository.html
thank you color 1