Skip to content

Commit

Permalink
Kotlin updated to 1.6.21, Coroutines to 1.6.1. #412
Browse files Browse the repository at this point in the history
  • Loading branch information
czyzby committed Apr 24, 2022
1 parent f182a3d commit 4d17252
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ _See also: [the official libGDX changelog](https://github.com/libgdx/libgdx/blob

#### 1.10.0-SNAPSHOT

- **[UPDATE]** Updated to Kotlin 1.6.21.
- **[UPDATE]** Updated to Kotlin Coroutines 1.6.1.
- **[FEATURE]** (`ktx-ashley`) Added utilities for working with Ashley's `EntityListener` interface:
- `EntityAdditionListener`: an interface extending `EntityListener` that only requires implementation of the `entityAdded` method.
- `EntityRemovalListener`: an interface extending `EntityListener` that only requires implementation of the `entityRemoved` method.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![GitHub Build](https://github.com/libktx/ktx/workflows/build/badge.svg)](https://github.com/libktx/ktx/actions?query=workflow%3Abuild)
[![Kotlin](https://img.shields.io/badge/kotlin-1.6.10-orange.svg)](http://kotlinlang.org/)
[![Kotlin](https://img.shields.io/badge/kotlin-1.6.21-orange.svg)](http://kotlinlang.org/)
[![libGDX](https://img.shields.io/badge/libgdx-1.10.0-red.svg)](https://libgdx.com/)
[![Maven Central](https://img.shields.io/maven-central/v/io.github.libktx/ktx-async.svg)](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22io.github.libktx%22)

Expand Down
1 change: 1 addition & 0 deletions assets-async/src/main/kotlin/ktx/assets/async/storage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ class AssetStorage(
*
* See also [get] and [getAsync].
*/
@OptIn(ExperimentalCoroutinesApi::class)
fun <T> getOrNull(identifier: Identifier<T>): T? {
val asset = assets[identifier]
@Suppress("UNCHECKED_CAST", "EXPERIMENTAL_API_USAGE") // Avoids runBlocking call.
Expand Down
2 changes: 1 addition & 1 deletion async/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Kotlin Coroutines](https://img.shields.io/badge/kotlin--coroutines-1.6.0-orange.svg)](http://kotlinlang.org/)
[![Kotlin Coroutines](https://img.shields.io/badge/kotlin--coroutines-1.6.1-orange.svg)](http://kotlinlang.org/)
[![Maven Central](https://img.shields.io/maven-central/v/io.github.libktx/ktx-async.svg)](https://search.maven.org/artifact/io.github.libktx/ktx-async)

# KTX: Coroutines support and parallelization utilities
Expand Down
2 changes: 1 addition & 1 deletion async/src/main/kotlin/ktx/async/http.kt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class HttpRequestResult(
override fun toString() = "HttpRequestResult(url=$url, method=$method, status=$statusCode)"
override fun equals(other: Any?) = when (other) {
null -> false
other === this -> true
(other === this) -> true
is HttpRequestResult ->
url == other.url &&
method == other.method &&
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ subprojects {
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
}
}

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/ktx/Versions.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ktx

const val gdxVersion = "1.10.0"
const val kotlinCoroutinesVersion = "1.6.0"
const val kotlinCoroutinesVersion = "1.6.1"

const val ashleyVersion = "1.7.4"
const val visUiVersion = "1.5.0"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
libGroup=io.github.libktx

kotlinVersion=1.6.10
kotlinVersion=1.6.21

dokkaVersion=1.5.30
junitPlatformVersion=1.2.0
Expand Down

0 comments on commit 4d17252

Please sign in to comment.