Skip to content

Commit

Permalink
Upgrade to Kotlin 1.7.20 (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
benasher44 authored Nov 9, 2022
1 parent e58d383 commit e3d0ce1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
project adheres to [Semantic Versioning](https://semver.org/).

## [0.6.0] - 2022-11-07
## [0.6.0] - 2022-11-08
### Changed
- Rework source sets to form a rich hierarchy (#130)
- Upgrade to Kotlin 1.7.20 (#131)

## [0.5.0] - 2022-07-13
### Changed
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompileTool
import org.jetbrains.kotlin.konan.target.HostManager

plugins {
kotlin("multiplatform") version "1.7.10"
kotlin("multiplatform") version "1.7.20"
id("org.jetbrains.dokka") version "0.9.18"
id("maven-publish")
id("signing")
Expand Down
6 changes: 0 additions & 6 deletions src/appleTest/kotlin/AppleUuidTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import kotlinx.cinterop.usePinned
import platform.Foundation.NSData
import platform.Foundation.NSUUID
import platform.Foundation.dataWithContentsOfFile
import kotlin.native.concurrent.isFrozen
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertTrue
Expand All @@ -35,11 +34,6 @@ class CocoaUuidTest {
assertTrue(uuidL.bytes.contentEquals(nativeBytes))
}

@Test
fun `UUID is frozen after initialization`() {
assertTrue(uuid4().isFrozen)
}

@Test
fun `test uuid5`() {
enumerateUuid5Data { namespace, name, result ->
Expand Down
2 changes: 2 additions & 0 deletions src/nativeMain/kotlin/platform.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.benasher44.uuid

import kotlin.native.FreezingIsDeprecated
import kotlin.native.concurrent.freeze

@OptIn(FreezingIsDeprecated::class)
internal actual fun <T> T.freeze() = this.freeze()

0 comments on commit e3d0ce1

Please sign in to comment.