Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bpedryc committed Jan 5, 2024
1 parent 4f4f82b commit b7c7937
Show file tree
Hide file tree
Showing 11 changed files with 60 additions and 56 deletions.
8 changes: 7 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,19 @@ android {

buildFeatures {
compose = true
buildConfig = true
}

kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.RequiresOptIn"
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
}
Expand Down
38 changes: 19 additions & 19 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
[versions]
kotlin = "1.8.21"
kotlin = "1.9.21"

## SDK Versions
minSdk = "21"
targetSdk = "33"
compileSdk = "33"
compileSdk = "34"

# Dependencies
android-gradle-plugin = "7.4.1"
android-gradle-plugin = "8.2.0"
ktlint-gradle = "11.2.0"
gradle-versions = "0.42.0"

compose = "1.4.3"
composeCompiler = "1.4.7"
compose = "1.5.4"
composeCompiler = "1.5.7"

android-desugaring = "1.1.8" # Don't bump to 1.2.x until AGP is 7.3.x
androidx-core = "1.9.0"
androidx-test-junit = "1.1.3"
androidx-activity-compose = "1.5.1"
androidx-lifecycle = "2.6.0"
androidx-navigation-compose = "2.5.3"
android-desugaring = "2.0.4"
androidx-core = "1.12.0"
androidx-test-junit = "1.1.5"
androidx-activity-compose = "1.8.2"
androidx-lifecycle = "2.6.2"
androidx-navigation-compose = "2.7.6"

junit = "4.13.2"

coroutines = "1.7.1"
kotlinx-datetime = "0.4.0"
ktor = "2.1.1"
coroutines = "1.7.3"
kotlinx-datetime = "0.5.0"
ktor = "2.3.7"

robolectric = "4.8.2"
robolectric = "4.11.1"

kermit = "1.2.2"
stately = "1.2.3"
kermit = "2.0.2"
stately = "1.2.5"

accompanist-swiperefresh = "0.25.1"
koin = "3.2.0"
koin = "3.5.0"
multiplatformSettings = "1.0.0-alpha01"
turbine = "0.12.1"
turbine = "1.0.0"
sqlDelight = "1.5.5"

[libraries]
Expand Down
6 changes: 3 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Feb 16 12:29:00 CST 2023
#Thu Jan 04 14:59:03 CET 2024
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion ios/KaMPKitiOS/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
self.window?.rootViewController = navController
self.window?.makeKeyAndVisible()

log.v(message: {"App Started"})
log.v(throwable: nil, tag: "AppDelegate", message: {"App Started"})
return true
}
}
2 changes: 1 addition & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: d5a73f50a47bad1893e4fbf8978f1bef946ebdf6

COCOAPODS: 1.12.1
COCOAPODS: 1.14.3
2 changes: 1 addition & 1 deletion ios/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 2 additions & 11 deletions ios/Pods/Pods.xcodeproj/project.pbxproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ pluginManagement {

include(":app", ":shared")
rootProject.name = "KaMPKit"

enableFeaturePreview("VERSION_CATALOGS")
30 changes: 14 additions & 16 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ plugins {
kotlin("plugin.serialization")
id("com.android.library")
id("com.squareup.sqldelight")
id("com.google.devtools.ksp") version "1.8.21-1.0.11"
id("com.rickclephas.kmp.nativecoroutines") version "1.0.0-ALPHA-9"
id("com.google.devtools.ksp") version "1.9.21-1.0.16"
id("com.rickclephas.kmp.nativecoroutines") version "1.0.0-ALPHA-23"
}

android {
Expand All @@ -22,6 +22,11 @@ android {
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

lint {
warningsAsErrors = true
abortOnError = true
Expand All @@ -32,9 +37,9 @@ android {
version = "1.2"

kotlin {
android()
ios()
// Note: iosSimulatorArm64 target requires that all dependencies have M1 support
androidTarget()
iosX64()
iosArm64()
iosSimulatorArm64()

sourceSets {
Expand All @@ -47,7 +52,7 @@ kotlin {
}
}

val commonMain by getting {
commonMain {
dependencies {
implementation(libs.koin.core)
implementation(libs.coroutines.core)
Expand All @@ -59,12 +64,12 @@ kotlin {
api(libs.touchlab.kermit)
}
}
val commonTest by getting {
commonTest {
dependencies {
implementation(libs.bundles.shared.commonTest)
}
}
val androidMain by getting {
androidMain {
dependencies {
implementation(libs.androidx.lifecycle.viewmodel)
implementation(libs.sqlDelight.android)
Expand All @@ -76,19 +81,12 @@ kotlin {
implementation(libs.bundles.shared.androidTest)
}
}
val iosMain by getting {
iosMain {
dependencies {
implementation(libs.sqlDelight.native)
implementation(libs.ktor.client.ios)
}
}
val iosTest by getting
val iosSimulatorArm64Main by getting {
dependsOn(iosMain)
}
val iosSimulatorArm64Test by getting {
dependsOn(iosTest)
}
}

sourceSets.matching { it.name.endsWith("Test") }
Expand Down
11 changes: 11 additions & 0 deletions shared/shared.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ Pod::Spec.new do |spec|
spec.ios.deployment_target = '12.4'


if !Dir.exist?('build/cocoapods/framework/shared.framework') || Dir.empty?('build/cocoapods/framework/shared.framework')
raise "
Kotlin framework 'shared' doesn't exist yet, so a proper Xcode project can't be generated.
'pod install' should be executed after running ':generateDummyFramework' Gradle task:
./gradlew :shared:generateDummyFramework
Alternatively, proper pod installation is performed during Gradle sync in the IDE (if Podfile location is set)"
end

spec.pod_target_xcconfig = {
'KOTLIN_PROJECT_PATH' => ':shared',
'PRODUCT_MODULE_NAME' => 'shared',
Expand Down

0 comments on commit b7c7937

Please sign in to comment.