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

Kotlin 2.0.0 #54

Merged
merged 33 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
de524b1
Update Kotlin to 2.0.0-Beta1
rickclephas Nov 18, 2023
97a8399
Add Kotlin version suffix
rickclephas Nov 18, 2023
680d97e
Merge branch 'master' into feature/kotlin-2.0.0
rickclephas Dec 31, 2023
8b83039
Update Kotlin to 2.0.0-Beta2
rickclephas Dec 31, 2023
329f645
Merge branch 'master' into feature/kotlin-2.0.0
rickclephas Dec 31, 2023
0154392
Merge branch 'feature/coroutines-1.8.0' into feature/kotlin-2.0.0
rickclephas Dec 31, 2023
0d2ecfd
Add Kotlin version suffix
rickclephas Dec 31, 2023
16315c6
Merge branch 'master' into feature/kotlin-2.0.0
rickclephas Jan 4, 2024
8c9030d
Update AndroidX Compose compiler version
rickclephas Jan 4, 2024
a3764c8
Merge branch 'master' into feature/kotlin-2.0.0
rickclephas Jan 27, 2024
e8756d3
Update Kotlin to 2.0.0-Beta3
rickclephas Jan 27, 2024
6525f10
Add Kotlin version suffix
rickclephas Jan 27, 2024
35be08c
Merge branch 'master' into feature/kotlin-2.0.0
rickclephas Feb 18, 2024
861d073
Update Kotlin to 2.0.0-Beta4
rickclephas Feb 18, 2024
0b399d4
Merge branch 'master' into feature/kotlin-2.0.0
rickclephas Feb 18, 2024
fcb52f4
Add Kotlin version suffix
rickclephas Feb 18, 2024
0641b70
Merge branch 'master' into feature/kotlin-2.0.0
rickclephas Mar 25, 2024
230dbd4
Update Kotlin to 2.0.0-Beta5
rickclephas Mar 25, 2024
d9ffea4
Migrate kotlinOptions to compilerOptions and use compileTaskProvider
rickclephas Mar 25, 2024
5f33a6b
Add Kotlin version suffix
rickclephas Mar 25, 2024
79abdc3
Merge branch 'master' into feature/kotlin-2.0.0
rickclephas Apr 14, 2024
58bb18a
Update Kotlin to 2.0.0-RC1
rickclephas Apr 14, 2024
77304e5
Update Kotlin version suffix
rickclephas Apr 14, 2024
1093a94
Update Kotlin to 2.0.0-RC2
rickclephas May 1, 2024
b528298
Migrate to new Kotlin Compose compiler plugin
rickclephas May 1, 2024
27d79dd
Update Kotlin version suffix
rickclephas May 1, 2024
4be2f1c
Merge branch 'master' into feature/kotlin-2.0.0
rickclephas May 11, 2024
67ea141
Remove DSL_SCOPE_VIOLATION suppression
rickclephas May 11, 2024
02ebd59
Add Kotlin version suffix
rickclephas May 11, 2024
0559589
Merge branch 'master' into feature/kotlin-2.0.0
rickclephas May 15, 2024
7bac8b0
Update Kotlin to 2.0.0-RC3
rickclephas May 15, 2024
3d1b99e
Add Kotlin version suffix
rickclephas May 15, 2024
f1d624e
Update Kotlin to 2.0.0
rickclephas May 22, 2024
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.kotlin/
local.properties

# Created by https://www.toptal.com/developers/gitignore/api/swift,xcode,gradle,kotlin,intellij
Expand Down
2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ buildscript {

allprojects {
group = "com.rickclephas.kmp"
version = "1.0.0-BETA-2"
version = "1.0.0-BETA-2-kotlin-2.0.0-RC3"

repositories {
mavenCentral()
Expand Down
8 changes: 4 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
[versions]
kotlin = "1.9.24"
kotlin = "2.0.0"
kotlinx-coroutines = "1.8.1"
android = "8.2.0"
androidx-lifecycle = "2.8.0"
atomicfu = "0.24.0"

# Sample versions
androidx-compose = "2023.10.01"
androidx-compose-compiler = "1.5.8-dev-k1.9.22-42b6ec2b037"
androidx-fragment = "1.6.2"
ksp = "1.9.24-1.0.20"
nativecoroutines = "1.0.0-ALPHA-30"
ksp = "2.0.0-1.0.21"
nativecoroutines = "1.0.0-ALPHA-31"

[libraries]
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
Expand All @@ -34,6 +33,7 @@ android-library = { id = "com.android.library", version.ref = "android" }

# Sample plugins
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
android-application = { id = "com.android.application", version.ref = "android" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
nativecoroutines = { id = "com.rickclephas.kmp.nativecoroutines", version.ref = "nativecoroutines" }
6 changes: 4 additions & 2 deletions kmp-observableviewmodel-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ kotlin {

targets.all {
compilations.all {
compilerOptions.configure {
freeCompilerArgs.add("-Xexpect-actual-classes")
compileTaskProvider.configure {
compilerOptions {
freeCompilerArgs.add("-Xexpect-actual-classes")
}
}
}
}
Expand Down
11 changes: 1 addition & 10 deletions sample/androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.compose.compiler)
}

android {
Expand All @@ -16,9 +17,6 @@ android {
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
Expand All @@ -35,13 +33,6 @@ kotlin {
jvmToolchain(11)
}

// Ignore Compose Kotlin version compatibility check
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class.java).configureEach {
kotlinOptions {
freeCompilerArgs += listOf("-P", "plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=true")
}
}

dependencies {
implementation(project(":shared"))
implementation(platform(libs.androidx.compose.bom))
Expand Down
1 change: 1 addition & 0 deletions sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.compose.compiler) apply false
}

buildscript {
Expand Down