Skip to content

Commit

Permalink
Update Kotlin to 1.9.20-Beta
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedRejeb committed Sep 23, 2023
1 parent fcf1ae1 commit 07e5beb
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 47 deletions.
8 changes: 5 additions & 3 deletions calf-file-picker/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi

plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.composeMultiplatform)
Expand All @@ -6,17 +8,17 @@ plugins {
}

kotlin {
targetHierarchy.default()
kotlin.applyDefaultHierarchyTemplate()
androidTarget {
publishLibraryVariants("release")
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "11"
}
}
}
jvm("desktop") {
jvmToolchain(17)
jvmToolchain(11)
}
js(IR) {
browser()
Expand Down
4 changes: 2 additions & 2 deletions calf-io/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ plugins {
}

kotlin {
targetHierarchy.default()
kotlin.applyDefaultHierarchyTemplate()
androidTarget {
publishLibraryVariants("release")
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "11"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions calf-maps/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ plugins {
}

kotlin {
targetHierarchy.default()
kotlin.applyDefaultHierarchyTemplate()
androidTarget {
publishLibraryVariants("release")
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "11"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions calf-media/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ plugins {
}

kotlin {
targetHierarchy.default()
kotlin.applyDefaultHierarchyTemplate()
androidTarget {
publishLibraryVariants("release")
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "11"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions calf-navigation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ plugins {
}

kotlin {
targetHierarchy.default()
kotlin.applyDefaultHierarchyTemplate()
androidTarget {
publishLibraryVariants("release")
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "11"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions calf-notifications/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ plugins {
}

kotlin {
targetHierarchy.default()
kotlin.applyDefaultHierarchyTemplate()
androidTarget {
publishLibraryVariants("release")
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "11"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions calf-permissions/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ plugins {
}

kotlin {
targetHierarchy.default()
kotlin.applyDefaultHierarchyTemplate()
androidTarget {
publishLibraryVariants("release")
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "11"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions calf-sf-symbols/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ plugins {
}

kotlin {
targetHierarchy.default()
kotlin.applyDefaultHierarchyTemplate()
androidTarget {
publishLibraryVariants("release")
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "11"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions calf-ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ plugins {
}

kotlin {
targetHierarchy.default()
kotlin.applyDefaultHierarchyTemplate()
androidTarget {
publishLibraryVariants("release")
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "11"
}
}
}
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ kotlin.code.style=official

#MPP
kotlin.mpp.androidSourceSetLayoutVersion=2
kotlin.mpp.androidGradlePluginCompatibility.nowarn=true
kotlin.mpp.enableCInteropCommonization=true

#Android
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[versions]
agp = "7.4.2"
kotlin = "1.9.10"
agp = "8.3.0-alpha02"
kotlin = "1.9.20-Beta"
compose = "1.5.10-beta01"
kotlinx-serialization-json = "1.6.0-RC"
nexus-publish = "2.0.0-rc-1"

# For sample
compose-compiler = "1.5.0"
compose-compiler = "1.5.3"
activity-compose = "1.7.2"
navigation-compose = "2.7.3"
android-minSdk = "24"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
8 changes: 4 additions & 4 deletions sample/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ android {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "11"
}
packagingOptions {
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
Expand Down
27 changes: 8 additions & 19 deletions sample/common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ plugins {
}

kotlin {
kotlin.applyDefaultHierarchyTemplate()
androidTarget {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "11"
}
}
}
Expand Down Expand Up @@ -58,27 +59,15 @@ kotlin {
}
}

val androidMain by getting {
dependencies {}
}
val androidMain by getting

val desktopMain by getting {
dependencies {}
}
val desktopMain by getting

// val jsMain by getting {
// dependencies {}
// }

val iosX64Main by getting
val iosArm64Main by getting
val iosSimulatorArm64Main by getting
val iosMain by creating {
dependsOn(commonMain)
iosX64Main.dependsOn(this)
iosArm64Main.dependsOn(this)
iosSimulatorArm64Main.dependsOn(this)
}
val iosMain by getting
}
}

Expand All @@ -92,10 +81,10 @@ android {
minSdk = libs.versions.android.minSdk.get().toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlin {
jvmToolchain(8)
jvmToolchain(11)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ fun ListItem(
.fillMaxWidth()
.clip(CircleShape)
.background(
color = MaterialTheme.colorScheme.primary.copy(.2f)
color = MaterialTheme.colorScheme.primary
)
.clickable {
onClick()
Expand Down

0 comments on commit 07e5beb

Please sign in to comment.