Skip to content

Commit

Permalink
Migrate to Kotlin 2.0 (#336)
Browse files Browse the repository at this point in the history
* K2

* K2
  • Loading branch information
michaelbel authored May 25, 2024
1 parent 3199b54 commit 5d33832
Show file tree
Hide file tree
Showing 26 changed files with 28 additions and 95 deletions.
5 changes: 1 addition & 4 deletions androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import org.jetbrains.kotlin.konan.properties.Properties
@Suppress("dsl_scope_violation")

plugins {
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.androidx.navigation.safeargs)
Expand Down Expand Up @@ -143,10 +144,6 @@ android {

/*dynamicFeatures += setOf(":instant")*/

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

compileOptions {
sourceCompatibility = JavaVersion.toVersion(libs.versions.jdk.get().toInt())
targetCompatibility = JavaVersion.toVersion(libs.versions.jdk.get().toInt())
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ plugins {
alias(libs.plugins.kotlin.cocoapods) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.kotlin.parcelize) apply false
alias(libs.plugins.kotlin.compose) apply false
alias(libs.plugins.compose) apply false
alias(libs.plugins.google.ksp) apply false
alias(libs.plugins.google.services) apply false
Expand Down
5 changes: 1 addition & 4 deletions core/common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -56,10 +57,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

lint {
quiet = true
abortOnError = false
Expand Down
1 change: 1 addition & 0 deletions core/interactor/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.android.library)
alias(libs.plugins.compose)
}
Expand Down
5 changes: 1 addition & 4 deletions core/ui/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -57,10 +58,6 @@ android {
compileSdk = libs.versions.compile.sdk.get().toInt()
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

compileOptions {
sourceCompatibility = JavaVersion.toVersion(rootProject.extra.get("jvmTarget") as String)
targetCompatibility = JavaVersion.toVersion(rootProject.extra.get("jvmTarget") as String)
Expand Down
5 changes: 1 addition & 4 deletions core/widget/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -42,10 +43,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

lint {
quiet = true
abortOnError = false
Expand Down
1 change: 1 addition & 0 deletions desktopApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import org.jetbrains.compose.desktop.application.dsl.TargetFormat

plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
}

Expand Down
5 changes: 1 addition & 4 deletions feature/account-impl/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -48,10 +49,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

compileOptions {
sourceCompatibility = JavaVersion.toVersion(rootProject.extra.get("jvmTarget") as String)
targetCompatibility = JavaVersion.toVersion(rootProject.extra.get("jvmTarget") as String)
Expand Down
5 changes: 1 addition & 4 deletions feature/account/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -37,10 +38,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

lint {
quiet = true
abortOnError = false
Expand Down
5 changes: 1 addition & 4 deletions feature/auth-impl/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -45,10 +46,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

compileOptions {
sourceCompatibility = JavaVersion.toVersion(rootProject.extra.get("jvmTarget") as String)
targetCompatibility = JavaVersion.toVersion(rootProject.extra.get("jvmTarget") as String)
Expand Down
5 changes: 1 addition & 4 deletions feature/auth/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -38,10 +39,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

lint {
quiet = true
abortOnError = false
Expand Down
5 changes: 1 addition & 4 deletions feature/debug-impl/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -39,10 +40,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

lint {
quiet = true
abortOnError = false
Expand Down
5 changes: 1 addition & 4 deletions feature/debug/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -35,10 +36,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

lint {
quiet = true
abortOnError = false
Expand Down
5 changes: 1 addition & 4 deletions feature/details-impl/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -46,10 +47,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

compileOptions {
sourceCompatibility = JavaVersion.toVersion(rootProject.extra.get("jvmTarget") as String)
targetCompatibility = JavaVersion.toVersion(rootProject.extra.get("jvmTarget") as String)
Expand Down
5 changes: 1 addition & 4 deletions feature/details/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -38,10 +39,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

lint {
quiet = true
abortOnError = false
Expand Down
5 changes: 1 addition & 4 deletions feature/feed-impl/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -60,10 +61,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

compileOptions {
sourceCompatibility = JavaVersion.toVersion(rootProject.extra.get("jvmTarget") as String)
targetCompatibility = JavaVersion.toVersion(rootProject.extra.get("jvmTarget") as String)
Expand Down
5 changes: 1 addition & 4 deletions feature/feed/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -38,10 +39,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

lint {
quiet = true
abortOnError = false
Expand Down
5 changes: 1 addition & 4 deletions feature/gallery-impl/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -45,10 +46,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

compileOptions {
sourceCompatibility = JavaVersion.toVersion(rootProject.extra.get("jvmTarget") as String)
targetCompatibility = JavaVersion.toVersion(rootProject.extra.get("jvmTarget") as String)
Expand Down
5 changes: 1 addition & 4 deletions feature/gallery/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -38,10 +39,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

lint {
quiet = true
abortOnError = false
Expand Down
5 changes: 1 addition & 4 deletions feature/main-impl/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -62,10 +63,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

compileOptions {
sourceCompatibility = JavaVersion.toVersion(rootProject.extra.get("jvmTarget") as String)
targetCompatibility = JavaVersion.toVersion(rootProject.extra.get("jvmTarget") as String)
Expand Down
5 changes: 1 addition & 4 deletions feature/search-impl/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -48,10 +49,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

compileOptions {
sourceCompatibility = JavaVersion.toVersion(rootProject.extra.get("jvmTarget") as String)
targetCompatibility = JavaVersion.toVersion(rootProject.extra.get("jvmTarget") as String)
Expand Down
5 changes: 1 addition & 4 deletions feature/search/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -38,10 +39,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

lint {
quiet = true
abortOnError = false
Expand Down
5 changes: 1 addition & 4 deletions feature/settings-impl/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.compose)
alias(libs.plugins.android.library)
}
Expand Down Expand Up @@ -51,10 +52,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
Expand Down
Loading

0 comments on commit 5d33832

Please sign in to comment.