Skip to content

Commit f97034f

Browse files
Update Kotlin version to 1.9.21 (#318)
1 parent 2f6ade2 commit f97034f

File tree

9 files changed

+25
-429
lines changed

9 files changed

+25
-429
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![JetBrains official project](https://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
55
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)
66
[![Maven Central](https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-datetime.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22org.jetbrains.kotlinx%22%20AND%20a:%22kotlinx-datetime%22)
7-
[![Kotlin](https://img.shields.io/badge/kotlin-1.8.21-blue.svg?logo=kotlin)](http://kotlinlang.org)
7+
[![Kotlin](https://img.shields.io/badge/kotlin-1.9.21-blue.svg?logo=kotlin)](http://kotlinlang.org)
88
[![KDoc link](https://img.shields.io/badge/API_reference-KDoc-blue)](https://kotlinlang.org/api/kotlinx-datetime/)
99
[![Slack channel](https://img.shields.io/badge/chat-slack-blue.svg?logo=slack)](https://kotlinlang.slack.com/messages/kotlinx-datetime/)
1010
[![TeamCity build](https://img.shields.io/teamcity/build/s/KotlinTools_KotlinxDatetime_Build_All.svg?server=http%3A%2F%2Fteamcity.jetbrains.com)](https://teamcity.jetbrains.com/viewType.html?buildTypeId=KotlinTools_KotlinxDatetime_Build_All&guest=1)

core/build.gradle.kts

-3
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ kotlin {
7272
target("iosArm64")
7373
// Tier 3
7474
target("watchosDeviceArm64")
75-
// Deprecated for removal
76-
target("iosArm32")
77-
target("watchosX86")
7875
}
7976
}
8077

core/darwin/src/Converters.kt

+3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
* Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file.
44
*/
55

6+
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class, kotlinx.cinterop.UnsafeNumber::class)
7+
68
package kotlinx.datetime
9+
710
import kotlinx.cinterop.*
811
import platform.Foundation.*
912

core/darwin/src/TimeZoneNative.kt

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file.
44
*/
55

6+
@file:OptIn(kotlinx.cinterop.UnsafeNumber::class)
7+
68
package kotlinx.datetime
79

810
import platform.Foundation.*

core/darwin/test/ConvertersTest.kt

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ class ConvertersTest {
9494
assertEquals(str + "Z", dateFormatter.stringFromDate(nsDate))
9595
}
9696

97+
@OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
9798
private fun zoneOffsetCheck(timeZone: FixedOffsetTimeZone, hours: Int, minutes: Int) {
9899
val nsTimeZone = timeZone.toNSTimeZone()
99100
val kotlinTimeZone = nsTimeZone.toKotlinTimeZone()

core/native/cinterop_actuals/TimeZoneNative.kt

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
* Copyright 2019-2020 JetBrains s.r.o.
33
* Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file.
44
*/
5+
6+
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
7+
58
package kotlinx.datetime
69

710
import kotlinx.datetime.internal.*

gradle.properties

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@ group=org.jetbrains.kotlinx
55
version=0.4.1
66
versionSuffix=SNAPSHOT
77

8-
defaultKotlinVersion=1.8.21
8+
defaultKotlinVersion=1.9.21
99
dokkaVersion=1.8.20
1010
serializationVersion=1.5.1
1111

1212
java.mainToolchainVersion=8
1313
java.modularToolchainVersion=11
1414

15-
kotlin.mpp.stability.nowarn=true
16-
kotlin.mpp.enableCompatibilityMetadataVariant=true
17-
kotlin.js.compiler=both
15+
kotlin.js.compiler=ir
1816
kotlin.native.ignoreIncorrectDependencies=true
1917
kotlin.native.ignoreDisabledTargets=true
2018

kotlin-js-store/yarn.lock

+13-419
Large diffs are not rendered by default.

serialization/build.gradle.kts

-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ kotlin {
2222
target("macosArm64")
2323
target("iosX64")
2424
target("iosArm64")
25-
target("iosArm32")
2625
target("iosSimulatorArm64")
2726
target("watchosArm32")
2827
target("watchosArm64")
29-
target("watchosX86")
3028
target("watchosX64")
3129
target("watchosSimulatorArm64")
3230
target("watchosDeviceArm64")

0 commit comments

Comments
 (0)