Skip to content

Commit d94da5a

Browse files
authored
Merge pull request #39 from joreilly/update_dependencies
update dependencies
2 parents 8b769e3 + 508b194 commit d94da5a

File tree

48 files changed

+88
-1690
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+88
-1690
lines changed

SharedCode/SharedCode.podspec

Lines changed: 0 additions & 39 deletions
This file was deleted.

SharedCode/build.gradle.kts

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ plugins {
33
kotlin("multiplatform")
44
id("kotlinx-serialization")
55
id("com.android.library")
6-
id("org.jetbrains.kotlin.native.cocoapods")
76
id("com.squareup.sqldelight")
87
id("com.google.devtools.ksp")
98
id("com.rickclephas.kmp.nativecoroutines")
@@ -13,12 +12,12 @@ plugins {
1312
version = "1.0"
1413

1514

16-
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
17-
kotlinOptions {
18-
jvmTarget = "1.8"
19-
freeCompilerArgs = listOf("-Xuse-experimental=kotlin.time.ExperimentalTime", "-Xobjc-generics")
20-
}
21-
}
15+
//tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
16+
// kotlinOptions {
17+
// jvmTarget = "1.8"
18+
// freeCompilerArgs = listOf("-Xuse-experimental=kotlin.time.ExperimentalTime", "-Xobjc-generics")
19+
// }
20+
//}
2221

2322

2423
android {
@@ -30,6 +29,10 @@ android {
3029

3130
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
3231
}
32+
compileOptions {
33+
sourceCompatibility = JavaVersion.VERSION_17
34+
targetCompatibility = JavaVersion.VERSION_17
35+
}
3336
namespace = "com.surrus.galwaybus.lib"
3437
}
3538

@@ -41,20 +44,23 @@ kotlin {
4144
System.getenv("NATIVE_ARCH")?.startsWith("arm") == true -> ::iosSimulatorArm64 // available to KT 1.5.30
4245
else -> ::iosX64
4346
}
44-
iosTarget("iOS") {}
47+
iosTarget("iOS") {
48+
binaries.framework {
49+
baseName = "SharedCode"
50+
51+
// re. https://youtrack.jetbrains.com/issue/KT-60230/Native-unknown-options-iossimulatorversionmin-sdkversion-with-Xcode-15-beta-3
52+
// due to be fixed in Kotlin 1.9.10
53+
if (System.getenv("XCODE_VERSION_MAJOR") == "1500") {
54+
linkerOpts += "-ld64"
55+
}
56+
}
57+
}
4558

4659
macosX64("macOS")
4760
androidTarget()
4861
jvm()
4962
}
5063

51-
cocoapods {
52-
// Configure fields required by CocoaPods.
53-
summary = "Some description for a Kotlin/Native module"
54-
homepage = "Link to a Kotlin/Native module homepage"
55-
}
56-
57-
5864
sourceSets {
5965
val commonMain by getting {
6066
dependencies {
@@ -145,3 +151,7 @@ kotlin.sourceSets.all {
145151
languageSettings.optIn("kotlin.experimental.ExperimentalObjCName")
146152
}
147153

154+
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
155+
kotlinOptions.jvmTarget = "17"
156+
}
157+

android-app/build.gradle.kts

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,13 @@ android {
9191
signingConfig = signingConfigs.getByName("release")
9292
}
9393
}
94+
9495
compileOptions {
9596
// Flag to enable support for the new language APIs
9697
isCoreLibraryDesugaringEnabled = true
9798

98-
sourceCompatibility = JavaVersion.VERSION_1_8
99-
targetCompatibility = JavaVersion.VERSION_1_8
99+
sourceCompatibility = JavaVersion.VERSION_17
100+
targetCompatibility = JavaVersion.VERSION_17
100101
}
101102

102103
packaging {
@@ -108,23 +109,13 @@ android {
108109
namespace = "dev.johnoreilly.galwaybus"
109110
}
110111

111-
tasks.withType<KotlinCompile> {
112-
kotlinOptions {
113-
jvmTarget = JavaVersion.VERSION_1_8.toString()
114-
freeCompilerArgs = listOf(
115-
"-Xallow-jvm-ir-dependencies", "-Xskip-prerelease-check",
116-
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
117-
"-Xuse-experimental=kotlin.time.ExperimentalTime"
118-
)
119-
}
120-
}
121112

122113
dependencies {
123114
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.3")
124115

125116
implementation(platform("com.google.firebase:firebase-bom:26.2.0"))
126117
implementation("com.google.firebase:firebase-analytics-ktx")
127-
implementation("androidx.activity:activity-compose:1.7.1")
118+
implementation("androidx.activity:activity-compose:1.7.2")
128119

129120

130121
with(Deps.Koin) {

android-app/src/main/java/dev/johnoreilly/galwaybus/ui/screens/NearbyBusStopsScreen.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ fun BusStopView(stop: BusStop, stopSelected : (stop : BusStop) -> Unit, isFavori
202202
ListItem(
203203
colors = ListItemDefaults.colors(containerColor = Color.Transparent),
204204
modifier = Modifier.clickable(onClick = { stopSelected(stop) }),
205-
headlineText = { Text(headlineText, fontWeight = FontWeight.Bold) },
206-
supportingText = { Text(supportingText) },
205+
headlineContent = { Text(headlineText, fontWeight = FontWeight.Bold) },
206+
supportingContent = { Text(supportingText) },
207207
trailingContent = {
208208
FavoritesButton(isFavorite = isFavorite, onClick = onToggleFavorite)
209209
}
@@ -212,7 +212,7 @@ fun BusStopView(stop: BusStop, stopSelected : (stop : BusStop) -> Unit, isFavori
212212
ListItem(
213213
colors = ListItemDefaults.colors(containerColor = Color.Transparent),
214214
modifier = Modifier.clickable(onClick = { stopSelected(stop) }),
215-
headlineText = { Text(headlineText) },
215+
headlineContent = { Text(headlineText) },
216216
trailingContent = {
217217
FavoritesButton(isFavorite = isFavorite, onClick = onToggleFavorite)
218218
}

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
}
88

99
dependencies {
10-
classpath("com.android.tools.build:gradle:8.0.2")
10+
classpath("com.android.tools.build:gradle:8.1.0")
1111
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}")
1212
classpath("org.jetbrains.kotlin:kotlin-serialization:${Versions.kotlin}")
1313
classpath("com.squareup.sqldelight:gradle-plugin:${Versions.sqlDelight}")

buildSrc/src/main/java/Dependencies.kt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11

22
object Versions {
3-
const val kotlin = "1.9.0-Beta"
4-
const val kspPlugin = "1.9.0-Beta-1.0.11"
5-
const val kotlinCoroutines = "1.7.1"
3+
const val kotlin = "1.9.0"
4+
const val kspPlugin = "1.9.0-1.0.12"
5+
const val kotlinCoroutines = "1.7.3"
66
const val kotlinxSerialization = "1.5.1"
7-
const val ktor = "2.3.0"
8-
const val koinCore = "3.4.0"
9-
const val koinAndroid = "3.4.0"
10-
const val koinAndroidCompose = "3.4.4"
7+
const val ktor = "2.3.2"
8+
const val koinCore = "3.4.3"
9+
const val koinAndroid = "3.4.3"
10+
const val koinAndroidCompose = "3.4.6"
1111

1212
const val sqlDelight = "1.5.5"
1313
const val kotlinxDateTime = "0.4.0"
1414
const val multiplatformSettings = "1.0.0"
1515

16-
const val kmpNativeCoroutines = "1.0.0-ALPHA-10-kotlin-1.9.0-Beta"
16+
const val kmpNativeCoroutines = "1.0.0-ALPHA-13"
1717

1818
const val compose = "1.4.3"
19-
const val composeCompiler = "1.4.7-dev-k1.9.0-Beta-bb7dc8b44eb"
19+
const val composeCompiler = "1.5.1"
2020
const val navCompose = "2.5.3"
2121
const val accompanist = "0.29.0-alpha"
2222
const val mapsCompose = "2.11.0"
23-
const val composeMaterial3 = "1.0.0"
23+
const val composeMaterial3 = "1.1.1"
2424

2525
const val kermit = "1.0.0"
2626
const val slf4j = "1.7.30"
@@ -33,7 +33,7 @@ object Versions {
3333

3434
object AndroidSdk {
3535
const val min = 21
36-
const val compile = 33
36+
const val compile = 34
3737
const val target = compile
3838
}
3939

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ org.gradle.caching=true
1919

2020
android.useAndroidX=true
2121
android.enableJetifier=true
22+
23+
#kotlin.experimental.tryK2=true

0 commit comments

Comments
 (0)