Skip to content

Commit

Permalink
Update kotlin to 2.0.0
Browse files Browse the repository at this point in the history
closes #383
  • Loading branch information
mariobodemann committed Jul 12, 2024
1 parent 952cf55 commit 52a0ad4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions zeapp/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.jetbrains.compose.compiler)
alias(libs.plugins.ktlint.gradle)
alias(libs.plugins.detekt.gradle)
alias(libs.plugins.dagger.hilt)
Expand Down
1 change: 1 addition & 0 deletions zeapp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
alias(libs.plugins.android.library) apply false
alias(libs.plugins.android.test) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.jetbrains.compose.compiler) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.kotlin.serialization) apply false
Expand Down
8 changes: 5 additions & 3 deletions zeapp/desktop/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm")
alias(libs.plugins.jetbrains.compose.compiler)
alias(libs.plugins.jetbrains.compose)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.roborazzi)
Expand Down Expand Up @@ -49,8 +50,9 @@ roborazzi {
outputDir.set(project.layout.projectDirectory.dir("src/snapshots/roborazzi/images"))
}

tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs += "-Xcontext-receivers"
kotlin{
compilerOptions {
freeCompilerArgs.add("-Xcontext-receivers")
freeCompilerArgs.add("-Xexpect-actual-classes")
}
}
5 changes: 3 additions & 2 deletions zeapp/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ coil = "2.6.0"
dagger-hilt = "2.51.1"
detekt-gradle = "1.23.6"
jSerialComm = "2.11.0"
kotlin = "1.9.24"
kotlin = "2.0.0"
kotlinx-coroutines-core = "1.8.1"
kotlinxSerializationJson = "1.6.3"
ksp = "1.9.24-1.0.20"
ksp = "2.0.0-1.0.22"
ktlint-gradle = "12.1.1"
material3-wsc = "1.2.1"
mik3y-usb-serial = "3.7.0"
Expand Down Expand Up @@ -54,6 +54,7 @@ ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
ktlint-gradle = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint-gradle" }
aboutlibraries-gradle = { id = "com.mikepenz.aboutlibraries.plugin", version.ref = "aboutlibraries" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
jetbrains-compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
jetbrains-compose = { id = "org.jetbrains.compose", version.ref = "jetbrains-compose" }
roborazzi = { id = "io.github.takahirom.roborazzi", version.ref = "roborazzi" }
Expand Down

0 comments on commit 52a0ad4

Please sign in to comment.