-
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
K2 support #1525
K2 support #1525
Changes from 17 commits
cc0581c
c2cc7f3
bfb8a95
d09c235
52ad21e
4304e0c
3f47a0a
7d9a97d
6107783
1b7a678
4a391be
e9e6309
b7a7b06
8ce75ca
52b2099
23197be
bd6a05d
311f2ae
4662be1
23e4b12
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* None. | ||
|
||
### Enhancements | ||
* None. | ||
* Support for experimental K2-compilation with `kotlin.experimental.tryK2=true`. (Issue [#1483](https://github.com/realm/realm-kotlin/issues/1483)) | ||
|
||
### Fixed | ||
* None. | ||
|
@@ -13,7 +13,7 @@ | |
* File format: Generates Realms with file format v23. | ||
* Realm Studio 13.0.0 or above is required to open Realms created by this version. | ||
* This release is compatible with the following Kotlin releases: | ||
* Kotlin 1.8.0 and above. The K2 compiler is not supported yet. | ||
* Kotlin 1.9.0 and above. Support for experimental K2-compilation with `kotlin.experimental.tryK2=true`. | ||
* Ktor 2.1.2 and above. | ||
* Coroutines 1.7.0 and above. | ||
* AtomicFu 0.18.3 and above. | ||
|
@@ -22,6 +22,7 @@ | |
* Minimum Gradle version: 6.8.3. | ||
* Minimum Android Gradle Plugin version: 4.1.3. | ||
* Minimum Android SDK: 16. | ||
* Minimum R8: 8.0.27. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any reason we are bumping the minimum? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Earlier versions of R8 does not know how to read Kotlin 1.9 metadata. This will cause the consumer project to fail because it will not properly honor the configuration when obfuscating out library. https://developer.android.com/build/kotlin-support |
||
|
||
### Internal | ||
* None. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2023 Realm Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package io.realm.kotlin.compiler.fir | ||
|
||
import org.jetbrains.kotlin.GeneratedDeclarationKey | ||
|
||
/** | ||
* Key to mark all additions made by our compile plugin. | ||
*/ | ||
object RealmPluginGeneratorKey : GeneratedDeclarationKey() { | ||
override fun toString(): String { | ||
return "RealmApiGenerator" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add the restriction about companion classes and Serialization or maybe reference some other place (either issue or documentation about it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created #1567 to track it. This should enable users to find and workaround the issue. Do we also need it as known issues?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not, my guess is that more people will find it if we just pin #1567.