Skip to content
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

Enable Support k2 compiler #48

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion KDeviceInfo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ kotlin {

//https://kotlinlang.org/docs/native-objc-interop.html#export-of-kdoc-comments-to-generated-objective-c-headers
targets.withType<KotlinNativeTarget> {
compilations["main"].compilerOptions.options.freeCompilerArgs.add("-Xexport-kdoc")
compilations["main"].compileTaskProvider.configure {
compilerOptions.freeCompilerArgs.add("-Xexport-kdoc")
}
}

tasks.withType<KotlinCommonCompile> {
Expand Down
4 changes: 4 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ org.gradle.parallel=true
kotlin.code.style=official
kotlin.js.compiler=ir

#K2 Compiler (Remove this lines once Kotline 2.0 is available in stable release)
android.experimental.lint.version=8.5.0-alpha06
android.lint.useK2Uast=true

#Android
android.useAndroidX=true
android.nonTransitiveRClass=true
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
# Plugin Versions
kotlin = "1.9.23"
kotlin = "2.0.0-RC1"
androidGrdlePlugin = "8.3.2"
jetbrainsCompose = "1.6.2"
mavenPublish = "0.28.0"
Expand Down
Loading