Skip to content

Commit

Permalink
Update Kotlin version in components, tutorials and examples to 2.1.0 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
eymar authored Jan 21, 2025
1 parent 8be4ab8 commit 50b5708
Show file tree
Hide file tree
Showing 57 changed files with 1,158 additions and 1,798 deletions.
2 changes: 1 addition & 1 deletion ci/compose-uber-jar/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
compose.version=1.7.1
compose.version=1.7.3
kotlin.code.style=official
4 changes: 2 additions & 2 deletions ci/templates/desktop-template/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
kotlin.code.style=official
kotlin.version=2.0.20
compose.version=1.7.1
kotlin.version=2.1.0
compose.version=1.7.3
4 changes: 2 additions & 2 deletions ci/templates/html-library-template/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
kotlin.code.style=official
kotlin.version=2.0.20
compose.version=1.7.1
kotlin.version=2.1.0
compose.version=1.7.3
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 2 additions & 2 deletions ci/templates/multiplatform-template/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
android.useAndroidX=true
android.enableJetifier=true
kotlin.code.style=official
kotlin.version=2.0.20
kotlin.version=2.1.0
agp.version=8.1.0
compose.version=1.7.1
compose.version=1.7.3
1 change: 1 addition & 0 deletions components/AnimatedImage/demo/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
}

kotlin {
Expand Down
1 change: 1 addition & 0 deletions components/AnimatedImage/library/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
id("maven-publish")
}

Expand Down
1 change: 1 addition & 0 deletions components/SplitPane/demo/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
}

kotlin {
Expand Down
1 change: 1 addition & 0 deletions components/SplitPane/library/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
id("maven-publish")
}

Expand Down
2 changes: 1 addition & 1 deletion components/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ org.gradle.configuration-cache=true
android.useAndroidX=true

#Versions
kotlin.version=1.9.24
kotlin.version=2.1.0
agp.version=8.2.2
compose.version=1.8.0-alpha01
deploy.version=0.1.0-SNAPSHOT
Expand Down
1 change: 1 addition & 0 deletions components/resources/demo/androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id("com.android.application")
kotlin("android")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
}

android {
Expand Down
1 change: 1 addition & 0 deletions components/resources/demo/desktopApp/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
}

kotlin {
Expand Down
1 change: 1 addition & 0 deletions components/resources/demo/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
kotlin("multiplatform")
id("com.android.library")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
}

kotlin {
Expand Down
1 change: 1 addition & 0 deletions components/resources/library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
id("maven-publish")
id("com.android.library")
id("org.jetbrains.kotlinx.binary-compatibility-validator")
Expand Down
3 changes: 2 additions & 1 deletion components/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ pluginManagement {
plugins {
kotlin("jvm").version(extra["kotlin.version"] as String)
kotlin("multiplatform").version(extra["kotlin.version"] as String)
id("org.jetbrains.kotlin.plugin.compose").version(extra["kotlin.version"] as String)
id("org.jetbrains.compose").version(extra["compose.version"] as String)
id("com.android.library").version(extra["agp.version"] as String)
id("org.jetbrains.kotlinx.binary-compatibility-validator").version("0.15.0-Beta.2")
id("org.jetbrains.kotlinx.binary-compatibility-validator").version("0.17.0")
}

val gradlePluginDir = rootDir.resolve("../gradle-plugins")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
}

kotlin {
Expand Down
1 change: 1 addition & 0 deletions components/ui-tooling-preview/demo/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
kotlin("multiplatform")
id("com.android.library")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
}

kotlin {
Expand Down
4 changes: 2 additions & 2 deletions examples/chat/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ kotlin.native.useEmbeddableCompilerJar=true
kotlin.mpp.androidSourceSetLayoutVersion=2
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
kotlin.version=2.0.20
kotlin.version=2.1.0
agp.version=8.5.0
compose.version=1.7.1
compose.version=1.7.3
4 changes: 2 additions & 2 deletions examples/cocoapods-ios-example/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ android.minSdk=24
#Compose

#Versions
kotlin.version=2.0.20
kotlin.version=2.1.0
agp.version=8.5.0
compose.version=1.7.1
compose.version=1.7.3
4 changes: 2 additions & 2 deletions examples/codeviewer/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ kotlin.native.useEmbeddableCompilerJar=true
kotlin.mpp.androidSourceSetLayoutVersion=2
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
kotlin.version=2.0.20
kotlin.version=2.1.0
agp.version=8.5.0
compose.version=1.7.1
compose.version=1.7.3
4 changes: 2 additions & 2 deletions examples/graphics-2d/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ kotlin.native.useEmbeddableCompilerJar=true
kotlin.mpp.androidSourceSetLayoutVersion=2
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
kotlin.version=2.0.20
kotlin.version=2.1.0
agp.version=8.5.0
compose.version=1.7.1
compose.version=1.7.3

# TODO: remove when switching to 1.9.10. See: https://youtrack.jetbrains.com/issue/KT-60852
# usage: ./gradlew :jsApp:jsBrowserRun -Pworkaround.kotlin.js.kt60852=true
Expand Down
2 changes: 1 addition & 1 deletion examples/html/compose-bird/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ kotlin {
dependencies {
implementation(compose.html.core)
implementation(compose.runtime)
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0-RC")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1")
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/html/compose-bird/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kotlin.code.style=official
kotlin.version=2.0.20
compose.version=1.7.1
kotlin.version=2.1.0
compose.version=1.7.3
org.gradle.configuration-cache=true
org.gradle.caching=true
4 changes: 2 additions & 2 deletions examples/html/compose-in-js/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kotlin.code.style=official
kotlin.js.webpack.major.version=4
kotlin.version=2.0.20
compose.version=1.7.1
kotlin.version=2.1.0
compose.version=1.7.3
org.gradle.configuration-cache=true
org.gradle.caching=true
4 changes: 2 additions & 2 deletions examples/html/landing/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kotlin.code.style=official
kotlin.version=2.0.20
compose.version=1.7.1
kotlin.version=2.1.0
compose.version=1.7.3
org.gradle.configuration-cache=true
org.gradle.caching=true
4 changes: 2 additions & 2 deletions examples/html/with-react/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kotlin.code.style=official
kotlin.version=2.0.20
compose.version=1.7.1
kotlin.version=2.1.0
compose.version=1.7.3
org.gradle.configuration-cache=true
org.gradle.caching=true
5 changes: 2 additions & 3 deletions examples/imageviewer/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ org.gradle.configuration-cache=true
org.gradle.caching=true
org.jetbrains.compose.experimental.jscanvas.enabled=true
org.jetbrains.compose.experimental.macos.enabled=true
org.jetbrains.compose.experimental.wasm.enabled=true
kotlin.version=2.0.20
kotlin.version=2.1.0
agp.version=8.5.0
compose.version=1.7.1
compose.version=1.7.3
Loading

0 comments on commit 50b5708

Please sign in to comment.