c

    Conrad Kramer

    6 months ago
    Is there a way to use different versions of Kotlin, depending on the target platform? I need to use Kotlin 1.6.20 for a macOS framework fix, but I need Kotlin 1.6.10 in order to use Jetpack Compose on Android
    even being able to override it in the command line invocation would work
    figured it out! I: • Made the Kotlin version configurable in
    grade.properties
    • I override the property in the Xcode command invocation
    Big Chungus

    Big Chungus

    6 months ago
    This sounds flakey. I'd go for two separate included builds with hard coded kotlin versions instead. Shared module would use the lower version.
    John O'Reilly

    John O'Reilly

    6 months ago
    pretty much what was mentioned above but posting here in case of use https://johnoreilly.dev/posts/kmm-using-different-kotlin-versions/