Skip to content

Commit 4893bdd

Browse files
authored
Merge pull request #60 from joreilly/dep_updates
dependency updates
2 parents 5437ca8 + 23822db commit 4893bdd

File tree

9 files changed

+77
-34
lines changed

9 files changed

+77
-34
lines changed

SharedCode/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

22
@file:Suppress("OPT_IN_USAGE")
33

4+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
5+
6+
47
plugins {
58
kotlin("multiplatform")
69
id("kotlinx-serialization")
@@ -119,6 +122,6 @@ kotlin.sourceSets.all {
119122
}
120123

121124
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
122-
kotlinOptions.jvmTarget = "17"
125+
compilerOptions.jvmTarget.set(JvmTarget.JVM_17)
123126
}
124127

SharedCode/src/commonMain/kotlin/com/surrus/galwaybus/common/GalwayBusRepository.kt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ import com.surrus.galwaybus.db.MyDatabase
1313
import kotlinx.coroutines.CoroutineScope
1414
import kotlinx.coroutines.Dispatchers
1515
import kotlinx.coroutines.MainScope
16+
import kotlinx.coroutines.flow.Flow
1617
import kotlinx.coroutines.flow.combine
17-
import kotlinx.datetime.Clock
18-
import kotlinx.datetime.Instant
1918
import org.koin.core.component.KoinComponent
2019
import org.koin.core.component.get
2120
import org.koin.core.component.inject
21+
import kotlin.time.Clock
2222
import kotlin.time.Duration
23+
import kotlin.time.ExperimentalTime
24+
import kotlin.time.Instant
2325

2426

2527
open class GalwayBusRepository : KoinComponent {
@@ -38,11 +40,11 @@ open class GalwayBusRepository : KoinComponent {
3840
}).asFlow().mapToList(Dispatchers.Default)
3941

4042
@NativeCoroutines
41-
val favorites = appSettings.favorites
43+
val favorites: Flow<Set<String>> = appSettings.favorites
4244

4345
val favoriteBusStopList = busStops.combine(favorites) { busStops, favorites ->
4446
Logger.i { "favoriteBusStopList, favorites = $favorites, busStops size = ${busStops.size}" }
45-
favorites.map { favorite -> busStops.firstOrNull { it.stopRef == favorite } }.filterNotNull()
47+
favorites.mapNotNull { favorite -> busStops.firstOrNull { it.stopRef == favorite } }
4648
}
4749

4850
suspend fun fetchAndStoreBusStops() {
@@ -84,6 +86,7 @@ open class GalwayBusRepository : KoinComponent {
8486
}
8587
}
8688

89+
@OptIn(ExperimentalTime::class)
8790
@NativeCoroutines
8891
suspend fun fetchBusStopDepartures(stopRef: String): Result<List<GalwayBusDeparture>> {
8992
try {

fastlane/Fastfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ default_platform :android
1717

1818
platform :android do
1919

20-
versionNum = 86
20+
versionNum = 87
2121

2222
before_all do
2323
end

gradle/libs.versions.toml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
[versions]
2-
kotlin = "2.1.21"
3-
ksp = "2.1.21-2.0.1"
2+
kotlin = "2.2.0"
3+
ksp = "2.2.0-2.0.2"
44
kotlinx-coroutines = "1.10.2"
5-
kotlinx-serialization = "1.8.1"
6-
kotlinx-dateTime = "0.6.2"
5+
kotlinx-serialization = "1.9.0"
6+
kotlinx-dateTime = "0.7.0"
77

88

9-
androidGradlePlugin = "8.10.1"
10-
koin = "4.0.4"
11-
ktor = "3.1.2"
9+
androidGradlePlugin = "8.11.0"
10+
koin = "4.1.0"
11+
ktor = "3.2.1"
1212
slf4j = "2.0.17"
1313
sqlDelight = "2.1.0"
14-
kmpNativeCoroutines = "1.0.0-ALPHA-42"
15-
googleServices = "4.4.2"
14+
kmpNativeCoroutines = "1.0.0-ALPHA-45"
15+
googleServices = "4.4.3"
1616

1717
androidxActivity = "1.10.1"
18-
androidxComposeBom = "2025.06.00"
19-
androidxNavigationCompose = "2.9.0"
20-
uiToolingPreview = "1.8.2"
18+
androidxComposeBom = "2025.06.01"
19+
androidxNavigationCompose = "2.9.1"
20+
uiToolingPreview = "1.8.3"
2121
androidxLifecycle = "2.9.1"
22-
imageLoader = "1.9.0"
22+
imageLoader = "1.10.0"
2323
osmdroidAndroid = "6.1.20"
24-
googleMapsCompose = "5.0.3"
24+
googleMapsCompose = "6.6.0"
2525

2626
accompanist = "0.36.0"
2727
coilCompose = "2.7.0"
28-
horologist = "0.6.20"
29-
okhttp = "5.0.0-alpha.14"
28+
horologist = "0.6.23"
29+
okhttp = "5.0.0"
3030

3131
junit = "4.13.2"
3232
androidxTestJUnit = "1.2.1"
33-
robolectric = "4.14.1"
33+
robolectric = "4.15.1"
3434
androidxTestCore = "1.6.1"
35-
mockito = "3.11.2"
35+
mockito = "5.2.0"
3636

3737
multiplatformSettings = "1.3.0"
38-
kermit = "2.0.5"
38+
kermit = "2.0.6"
3939

4040
minSdk = "24"
41-
targetSdk = "35"
42-
compileSdk = "35"
41+
targetSdk = "36"
42+
compileSdk = "36"
4343
coreKtx = "1.16.0"
4444
espressoCore = "3.6.1"
4545
appcompat = "1.7.1"
4646
material = "1.12.0"
4747
constraintlayout = "2.2.1"
4848
lifecycleLivedataKtx = "2.9.1"
49-
navigationFragmentKtx = "2.9.0"
50-
navigationUiKtx = "2.9.0"
49+
navigationFragmentKtx = "2.9.1"
50+
navigationUiKtx = "2.9.1"
5151

5252
mcp = "0.5.0"
5353
shadowPlugin = "8.1.1"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Sun May 28 21:12:18 IST 2023
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
version = "1.3">
4+
<BuildAction>
5+
<BuildActionEntries>
6+
<BuildActionEntry
7+
buildForRunning = "YES">
8+
<BuildableReference
9+
BuildableIdentifier = "primary"
10+
BlueprintIdentifier = "1A91940D249E81BD008E2AC8"
11+
BuildableName = "GalwayBus.app"
12+
BlueprintName = "GalwayBus"
13+
ReferencedContainer = "container:GalwayBus.xcodeproj">
14+
</BuildableReference>
15+
</BuildActionEntry>
16+
</BuildActionEntries>
17+
</BuildAction>
18+
<LaunchAction
19+
useCustomWorkingDirectory = "NO"
20+
buildConfiguration = "Debug"
21+
allowLocationSimulation = "YES">
22+
<BuildableProductRunnable>
23+
<BuildableReference
24+
BuildableIdentifier = "primary"
25+
BlueprintIdentifier = "1A91940D249E81BD008E2AC8"
26+
BuildableName = "GalwayBus.app"
27+
BlueprintName = "GalwayBus"
28+
ReferencedContainer = "container:GalwayBus.xcodeproj">
29+
</BuildableReference>
30+
</BuildableProductRunnable>
31+
</LaunchAction>
32+
</Scheme>

macOS/GalwayBus/GalwayBus.xcodeproj/xcuserdata/joreilly.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<dict>
55
<key>SchemeUserState</key>
66
<dict>
7-
<key>GalwayBus.xcscheme_^#shared#^_</key>
7+
<key>GalwayBus.xcscheme</key>
88
<dict>
99
<key>orderHint</key>
1010
<integer>2</integer>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict />
5+
</plist>

macOS/GalwayBus/Pods/Pods.xcodeproj/xcuserdata/joreilly.xcuserdatad/xcschemes/xcschememanagement.plist

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

0 commit comments

Comments
 (0)