Skip to content

Commit 1494a7a

Browse files
authored
Merge pull request #627 from kizitonwose/compose_1.9
2 parents 7eb03e2 + b09dad7 commit 1494a7a

File tree

14 files changed

+933
-3491
lines changed

14 files changed

+933
-3491
lines changed

.github/workflows/gradle-wrapper.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ For the compose calendar library, ensure that you are using the library version
138138
| 1.6.x | 2.5.x | 2.5.x |
139139
| 1.7.x | 2.6.x | 2.6.x |
140140
| 1.8.x | 2.7.x - 2.8.x | 2.7.x - 2.8.x |
141+
| 1.9.x | 2.9.x | 2.9.x |
141142

142143
## Usage
143144

build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
import com.kizitonwose.calendar.buildsrc.Version
33
import com.kizitonwose.calendar.buildsrc.Version.isNoPublish
4-
import com.kizitonwose.calendar.buildsrc.androidProjects
5-
import com.kizitonwose.calendar.buildsrc.multiplatformProjects
4+
import com.kizitonwose.calendar.buildsrc.androidLibProjects
5+
import com.kizitonwose.calendar.buildsrc.multiplatformLibProjects
66
import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension
77
import org.jetbrains.kotlin.gradle.plugin.KotlinBasePlugin
88
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
@@ -45,8 +45,8 @@ allprojects {
4545
afterEvaluate {
4646
// Android and Multiplatform libraries are published separately
4747
// See https://github.com/kizitonwose/Calendar/pull/561
48-
disableMavenPublicationsIfNeeded(multiplatformProjects, Version.multiplatform)
49-
disableMavenPublicationsIfNeeded(androidProjects, Version.android)
48+
disableMavenPublicationsIfNeeded(multiplatformLibProjects, Version.multiplatform)
49+
disableMavenPublicationsIfNeeded(androidLibProjects, Version.android)
5050
}
5151
}
5252

buildSrc/src/main/java/com/kizitonwose/calendar/buildsrc/Build.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ object Config {
1111
}
1212

1313
object Version {
14-
const val android = "2.8.1-SNAPSHOT"
15-
const val multiplatform = "2.8.1-SNAPSHOT"
14+
const val android = "2.9.1-SNAPSHOT"
15+
const val multiplatform = "2.9.1-SNAPSHOT"
1616

1717
fun String.isNoPublish() = this == VERSION_NO_PUBLISH
1818
}
@@ -21,9 +21,9 @@ private const val VERSION_NO_PUBLISH = "NO_PUBLISH"
2121

2222
object Android {
2323
const val minSdk = 21
24-
const val targetSdk = 35
25-
const val compileSdk = 35
24+
const val targetSdk = 36
25+
const val compileSdk = 36
2626
}
2727

28-
val multiplatformProjects = listOf("library")
29-
val androidProjects = listOf("core", "data", "view", "compose")
28+
val multiplatformLibProjects = listOf("library")
29+
val androidLibProjects = listOf("core", "data", "view", "compose")

compose-multiplatform/library/api/library.klib.api

Lines changed: 0 additions & 32 deletions
Large diffs are not rendered by default.

compose-multiplatform/library/build.gradle.kts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ kotlin {
4747

4848
sourceSets {
4949
val commonMain by getting
50-
val jsMain by getting
51-
val wasmJsMain by getting
50+
val webMain by getting
5251
val nativeMain by getting
5352
val desktopMain by getting
5453
val androidMain by getting
@@ -66,16 +65,10 @@ kotlin {
6665
implementation(compose.components.resources)
6766
implementation(compose.components.uiToolingPreview)
6867
implementation(libs.androidx.annotation)
69-
compileOnly(libs.kotlinx.serialization.core)
68+
implementation(libs.kotlinx.serialization.core)
7069
api(libs.kotlinx.datetime)
7170
}
7271

73-
val webMain by creating {
74-
dependsOn(commonMain)
75-
jsMain.dependsOn(this)
76-
wasmJsMain.dependsOn(this)
77-
}
78-
7972
val nonJvmMain by creating {
8073
dependsOn(commonMain)
8174
nativeMain.dependsOn(this)

compose-multiplatform/sample/build.gradle.kts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,10 @@ kotlin {
6767

6868
sourceSets {
6969
val commonMain by getting
70-
val jsMain by getting
71-
val wasmJsMain by getting
7270
val nativeMain by getting
7371
val desktopMain by getting
7472
val androidMain by getting
73+
val webMain by getting
7574
val jvmMain by creating {
7675
dependsOn(commonMain)
7776
}
@@ -91,11 +90,6 @@ kotlin {
9190
implementation(libs.jetbrains.compose.navigation)
9291
implementation(libs.jetbrains.material.icons)
9392
}
94-
val webMain by creating {
95-
dependsOn(commonMain)
96-
jsMain.dependsOn(this)
97-
wasmJsMain.dependsOn(this)
98-
}
9993
val nonJvmMain by creating {
10094
dependsOn(commonMain)
10195
nativeMain.dependsOn(this)

gradle/libs.versions.toml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[versions]
2-
agp = "8.11.1"
3-
kotlin = "2.2.0"
4-
composeAndroid = "1.8.3"
5-
composeMultiplatform = "1.8.2"
6-
espresso = "3.6.1"
7-
junit5 = "5.13.3"
2+
agp = "8.13.0"
3+
kotlin = "2.2.20"
4+
composeAndroid = "1.9.1"
5+
composeMultiplatform = "1.9.0"
6+
espresso = "3.7.0"
7+
junit5 = "5.13.4"
88
kotlinxSerialization = "1.9.0"
99

1010
[libraries]
@@ -17,17 +17,17 @@ desugar = { module = "com.android.tools:desugar_jdk_libs", version = "2.1.5" }
1717

1818
androidx-annotation = { module = "androidx.annotation:annotation", version = "1.9.1" }
1919
androidx-appcompat = { module = "androidx.appcompat:appcompat", version = "1.7.1" }
20-
androidx-core-ktx = { module = "androidx.core:core-ktx", version = "1.16.0" }
20+
androidx-core-ktx = { module = "androidx.core:core-ktx", version = "1.17.0" }
2121
androidx-constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version = "2.2.1" }
2222
androidx-recyclerview = { module = "androidx.recyclerview:recyclerview", version = "1.4.0" }
2323
androidx-cardview = { module = "androidx.cardview:cardview", version = "1.0.0" }
24-
material-view = { module = "com.google.android.material:material", version = "1.12.0" }
24+
material-view = { module = "com.google.android.material:material", version = "1.13.0" }
2525

2626
androidx-test-espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "espresso" }
2727
androidx-test-espresso-contrib = { module = "androidx.test.espresso:espresso-contrib", version.ref = "espresso" }
28-
androidx-test-runner = { module = "androidx.test:runner", version = "1.6.2" }
29-
androidx-test-rules = { module = "androidx.test:rules", version = "1.6.1" }
30-
androidx-test-junit = { module = "androidx.test.ext:junit", version = "1.2.1" }
28+
androidx-test-runner = { module = "androidx.test:runner", version = "1.7.0" }
29+
androidx-test-rules = { module = "androidx.test:rules", version = "1.7.0" }
30+
androidx-test-junit = { module = "androidx.test.ext:junit", version = "1.3.0" }
3131
test-junit4 = { module = "junit:junit", version = "4.13.2" }
3232
test-junit5-bom = { group = "org.junit", name = "junit-bom", version.ref = "junit5" }
3333
test-junit5-api = { group = "org.junit.jupiter", name = "junit-jupiter-api" }
@@ -39,13 +39,13 @@ compose-foundation = { module = "androidx.compose.foundation:foundation", versio
3939
compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "composeAndroid" }
4040
compose-runtime = { module = "androidx.compose.runtime:runtime", version.ref = "composeAndroid" }
4141
compose-material3 = { module = "androidx.compose.material3:material3", version = "1.3.2" }
42-
compose-activity = { module = "androidx.activity:activity-compose", version = "1.10.1" }
43-
compose-navigation = { module = "androidx.navigation:navigation-compose", version = "2.9.1" }
42+
compose-activity = { module = "androidx.activity:activity-compose", version = "1.11.0" }
43+
compose-navigation = { module = "androidx.navigation:navigation-compose", version = "2.9.4" }
4444

4545
compose-ui-test-junit4 = { module = "androidx.compose.ui:ui-test-junit4", version.ref = "composeAndroid" }
4646
compose-ui-test-manifest = { module = "androidx.compose.ui:ui-test-manifest", version.ref = "composeAndroid" }
4747

48-
jetbrains-compose-navigation = { module = "org.jetbrains.androidx.navigation:navigation-compose", version = "2.9.0-beta03" }
48+
jetbrains-compose-navigation = { module = "org.jetbrains.androidx.navigation:navigation-compose", version = "2.9.0" }
4949
jetbrains-material-icons = { module = "org.jetbrains.compose.material:material-icons-core", version = "1.7.3" }
5050

5151
[plugins]
@@ -54,8 +54,8 @@ androidLibrary = { id = "com.android.library", version.ref = "agp" }
5454
composeCompiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
5555
kotlinJvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
5656
kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
57-
kotlinter = { id = "org.jmailen.kotlinter", version = "5.1.1" }
58-
mavenPublish = { id = "com.vanniktech.maven.publish", version = "0.33.0" }
57+
kotlinter = { id = "org.jmailen.kotlinter", version = "5.2.0" }
58+
mavenPublish = { id = "com.vanniktech.maven.publish", version = "0.34.0" }
5959
versionCheck = { id = "com.github.ben-manes.versions", version = "0.52.0" }
6060
bcv = "org.jetbrains.kotlinx.binary-compatibility-validator:0.18.1"
6161

gradle/wrapper/gradle-wrapper.jar

59 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)