https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
c

Conrad Kramer

03/19/2022, 6:21 PM
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
b

Big Chungus

03/19/2022, 7:15 PM
This sounds flakey. I'd go for two separate included builds with hard coded kotlin versions instead. Shared module would use the lower version.
☝️ 1
j

John O'Reilly

03/19/2022, 7:24 PM
pretty much what was mentioned above but posting here in case of use https://johnoreilly.dev/posts/kmm-using-different-kotlin-versions/
👍 1
3 Views