-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kotlin 2.0 support #1614
Comments
Update SDK code base to support compilation with K2 in #1721 |
Any plan for a version that supports Kotlin 2.0? |
@dhng22 With #1721 the SDK will actually compile with K2, but due to binary compatibilities we will have to ship separate distributables for 1.9 and 2.0. The intention is to make a branch compiled with K2 with a version suffix until things settles or we find another path. Intention is that this will happen within a week or three. |
@rorbech If there's any progress or change, please let me know, I'd love to track it |
Is there any progress? |
Hi guys, we've been waiting for this one as well. Any updates? As of now v1.16 also does not offer support for K2. |
Any updates after 1 month? |
Any update? K2 has just released |
When will 2.0.0 be released? |
Issue closed, ReadMe updated to Realm 2.0.0 but Realm 2.0 isn't actually rolled out yet |
Latest |
Plugin [id: 'io.realm.kotlin', version: '2.0.0-SNAPSHOT', apply: false] was not found in any of the following sources:
|
Is there any update? There are some plugins incompatible with language version 2.0: |
@bidadh It seems like the providers for version catalogs doesn't resolve plugins from the classpath, so you have to apply the plugin with
instead of by |
I am trying to use realm for KMP project targeting Exception is:
|
@rorbech It didn't work either. I've tried many options already and have had no success so far. I've decided to wait until 2.0.0 is released unless there is a clear way. When should we expect 2.0.0? |
I've found a way to get it to work. It seems the gradle plugin doesn't follow the classic gradle plugin name convention and it can't be resolved (i.e. tries to download it from https://oss.sonatype.org/content/repositories/snapshots/io/realm/kotlin/io.realm.kotlin.gradle-plugin/2.0.0-SNAPSHOT/maven-metadata.xml which gives 404). The objective is to let it download the plugin from https://oss.sonatype.org/content/repositories/snapshots/io/realm/kotlin/gradle-plugin/2.0.0-SNAPSHOT/maven-metadata.xml Following the README I've found the working combination: Project build.gradle.kts (root) buildscript {
dependencies {
classpath("io.realm.kotlin:gradle-plugin:2.0.0-SNAPSHOT")
}
} Module build.gradle.kts id("io.realm.kotlin") |
@maicol07 you still need to add
|
Yeah, I have implied it |
I've just seen that 2.0.0 was released yesterday 🙂 |
Just updated to K2 and Realm version 2.0.0. It fails to compile with the following stack trace:
|
@bamsbamx Which version did you migrate from? And did you also remember to update the version of the realm-depenedencies? |
My bad, I updated from 1.8.0, but just forgot to also update the dependencies. After updating, everything went ok: io.realm.kotlin:library-base |
The Realm Kotlin plugin is not compatible with K2.
Trying to build https://github.com/realm/realm-kotlin-samples/tree/main/Intro with
2.0.0-Beta2
yields:The text was updated successfully, but these errors were encountered: