Recent release of Kotlin SDK (2.0.0) added support for Appwrite 1.3.x features but also bumped Kotlin version to 1.8.0, which is great, but open-runtimes and Appwrite only supports Kotlin 1.6 for functions.
So SDK is there, but it is not possible to create a function and use it - build fails with obvious message that Kotlin version is not compatible.
Am I missing something here maybe 🧐?
Summary
The Kotlin SDK for Appwrite was updated to version 2.0.0, which added support for Appwrite 1.3.x features but also bumped the Kotlin version to 1.8.0. However, Appwrite and open-runtimes only support Kotlin 1.6 for functions. So, currently, the only solution is to downgrade to an older version of the Kotlin SDK and not use the new features. It is possible that a runtime for Kotlin 1.8.0 will be released in the future.
safwan
May 5, 2023, 19:46
Recent release of Kotlin SDK (2.0.0) added support for Appwrite 1.3.x features but also bumped Kotlin version to 1.8.0
What do you mean by this? How did Appwrite upgrade Kotlin to 1.8.0? I'm a little confused 😅
safwan
May 5, 2023, 19:47
oh wait
safwan
May 5, 2023, 19:47
you mean the Kotlin SDK uses 1.8.0
safwan
May 5, 2023, 19:47
ah okay got it. let me see what I can find on this
safwan
May 5, 2023, 19:52
Well as you said, it seems like there is a mismatch in the supported version for cloud functions, and the latest version of the Kotlin SDK for Appwrite.
maybe they'll release a runtime for kotlin 1.8.0 soon
zlmr
Rank 1: Thread
May 5, 2023, 20:01
Yea exactly, SDK uses 1.8.0 but runtime only goes up to 1.6.0.
Only way to use it is to downgrade to older Kotlin SDK and not use new features for now.