Skip to content

Commit 1b88df9

Browse files
authored
Merge pull request #16 from joreilly/dep_updates
dependency updates
2 parents a51e5ec + 91783f6 commit 1b88df9

File tree

5 files changed

+21
-18
lines changed

5 files changed

+21
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# WordMasterKMP
22

3-
![kotlin-version](https://img.shields.io/badge/kotlin-1.8.0-orange)
3+
![kotlin-version](https://img.shields.io/badge/kotlin-2.2.0-blue?logo=kotlin)
44

55
Kotlin Multiplatform sample heavily inspired by [Wordle](https://www.powerlanguage.co.uk/wordle/) game and also [Word Master](https://github.com/octokatherine/word-master) and [wordle-solver](https://github.com/dlew/wordle-solver) samples. The main game logic/state is included in shared KMP code with basic UI then in following clients
66
- iOS (SwiftUI)

gradle/libs.versions.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
[versions]
2-
kotlin = "2.0.20"
3-
ksp = "2.0.20-1.0.25"
4-
kotlinx-coroutines = "1.9.0"
2+
kotlin = "2.2.0"
3+
ksp = "2.2.0-2.0.2"
4+
kotlinx-coroutines = "1.10.2"
55

66

7-
agp = "8.5.2"
8-
android-compileSdk = "34"
7+
agp = "8.11.0"
8+
android-compileSdk = "36"
99
android-minSdk = "24"
10-
android-targetSdk = "34"
11-
androidx-activityCompose = "1.9.2"
12-
androidxComposeBom = "2024.09.02"
13-
compose-plugin = "1.6.10"
10+
android-targetSdk = "36"
11+
androidx-activityCompose = "1.10.1"
12+
androidxComposeBom = "2025.06.01"
13+
compose-plugin = "1.8.2"
1414
accompanist = "0.30.1"
15-
kmp-nativecoroutines = "1.0.0-ALPHA-35"
16-
okio = "3.9.0"
15+
kmp-nativecoroutines = "1.0.0-ALPHA-45"
16+
okio = "3.15.0"
1717

1818
[libraries]
1919
kotlinx-coroutines = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Sat Jan 21 13:46:25 GMT 2023
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

iosApp/iosApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shared/src/commonMain/kotlin/dev/johnoreilly/wordmaster/shared/WordMasterService.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import okio.Path.Companion.toPath
99
import dev.johnoreilly.wordmaster.shared.LetterStatus.*
1010
import kotlinx.coroutines.CoroutineScope
1111
import kotlinx.coroutines.MainScope
12+
import kotlinx.coroutines.flow.StateFlow
13+
import okio.SYSTEM
1214

1315

1416
enum class LetterStatus {
@@ -26,10 +28,10 @@ class WordMasterService(wordsFilePath: String) {
2628
var currentGuessAttempt = 0
2729

2830
@NativeCoroutines
29-
val boardGuesses = MutableStateFlow<ArrayList<ArrayList<String>>>(arrayListOf())
31+
val boardGuesses: MutableStateFlow<ArrayList<ArrayList<String>>> = MutableStateFlow<ArrayList<ArrayList<String>>>(arrayListOf())
3032

3133
@NativeCoroutines
32-
val boardStatus = MutableStateFlow<ArrayList<ArrayList<LetterStatus>>>(arrayListOf())
34+
val boardStatus: MutableStateFlow<ArrayList<ArrayList<LetterStatus>>> = MutableStateFlow<ArrayList<ArrayList<LetterStatus>>>(arrayListOf())
3335

3436

3537
init {

0 commit comments

Comments
 (0)