Skip to content

Commit

Permalink
Merge pull request #390 from joreilly/dependency_upddates
Browse files Browse the repository at this point in the history
dependency updates + some cleanup
  • Loading branch information
joreilly authored Oct 5, 2024
2 parents d802953 + dfc6abb commit b684878
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 69 deletions.
8 changes: 0 additions & 8 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,6 @@ dependencies {
implementation(libs.koin.android)
implementation(libs.koin.androidx.compose)

testImplementation(libs.koin.test)
testImplementation(libs.koin.test.junit4)
testImplementation(libs.androidx.test.junit)
testImplementation(libs.androidx.test.core)
testImplementation(libs.mockito)
testImplementation(libs.robolectric)
testImplementation(libs.junit)

// Compose testing dependencies
androidTestImplementation(platform(libs.androidx.compose.bom))
androidTestImplementation(libs.androidx.compose.ui.test)
Expand Down
35 changes: 0 additions & 35 deletions app/src/test/java/com/surrus/peopleinspace/TestKoinGraph.kt

This file was deleted.

12 changes: 6 additions & 6 deletions backend/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ kotlin {
implementation(libs.kotlinx.coroutines)
implementation(libs.kotlinx.serialization)

implementation("io.ktor:ktor-server-core:2.3.6")
implementation("io.ktor:ktor-server-netty:2.3.6")
implementation("io.ktor:ktor-server-cors:2.3.6")
implementation("io.ktor:ktor-serialization-kotlinx-json:2.3.6")
implementation("io.ktor:ktor-server-content-negotiation:2.3.6")
implementation("io.ktor:ktor-server-core:2.3.12")
implementation("io.ktor:ktor-server-netty:2.3.12")
implementation("io.ktor:ktor-server-cors:2.3.12")
implementation("io.ktor:ktor-serialization-kotlinx-json:2.3.12")
implementation("io.ktor:ktor-server-content-negotiation:2.3.12")

implementation("ch.qos.logback:logback-classic:1.4.14")
implementation("ch.qos.logback:logback-classic:1.5.8")

implementation(projects.common)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package dev.johnoreilly.peopleinspace

import com.surrus.common.di.commonModule
import com.surrus.common.repository.platformModule
import com.surrus.peopleinspace.db.PeopleInSpaceDatabase
import io.ktor.client.HttpClientConfig
import io.ktor.client.engine.HttpClientEngine
import org.koin.core.annotation.KoinExperimentalAPI
import org.koin.dsl.module
import org.koin.test.verify.verify
import kotlin.test.Test


@OptIn(KoinExperimentalAPI::class)
class TestKoinGraph {

@Test
fun checkKoinModules() {
val modules = module {
includes(commonModule(false), platformModule())
}

modules.verify(
extraTypes = listOf(HttpClientEngine::class, HttpClientConfig::class, PeopleInSpaceDatabase::class)
)
}
}
16 changes: 2 additions & 14 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ ksp = "2.0.20-1.0.25"
compose-multiplatform = "1.7.0-rc01"
composeUiTooling = "1.4.0"
coroutines = "1.9.0"
kotlinxSerialization = "1.7.2"
kotlinxSerialization = "1.7.3"
androidGradlePlugin = "8.7.0"
koin = "4.0.0"
koinCompose = "4.0.0"
koinComposeMultiplatform = "4.0.0"
ktor = "3.0.0-rc-1"
osmdroidAndroid = "6.1.18"
osmdroidAndroid = "6.1.20"
osmAndroidCompose = "0.0.5"
slf4j = "2.0.16"
sqlDelight = "2.0.2"
Expand All @@ -33,13 +33,6 @@ horologist = "0.6.20"
glanceWearTiles = "1.0.0-alpha05"
glanceAppWidget = "1.0.0"
okhttp = "5.0.0-alpha.14"

junit = "4.13.2"
androidxTestJUnit = "1.2.1"
robolectric = "4.13"
androidxTestCore = "1.6.1"
mockito = "3.11.2"

kermit = "2.0.4"

gradleVersionsPlugin = "0.51.0"
Expand Down Expand Up @@ -138,11 +131,6 @@ sqldelight-sqlite-driver = { module = "app.cash.sqldelight:sqlite-driver", versi

kermit = { module = "co.touchlab:kermit", version.ref = "kermit" }

junit = { module = "junit:junit", version.ref = "junit" }
robolectric = { module = "org.robolectric:robolectric", version.ref = "robolectric" }
mockito = { module = "org.mockito:mockito-inline", version.ref = "mockito" }
androidx-test-junit = { module = "androidx.test.ext:junit", version.ref = "androidxTestJUnit" }
androidx-test-core = { module = "androidx.test:core", version.ref = "androidxTestCore" }
androidx-compose-ui-test = { group = "androidx.compose.ui", name = "ui-test" }
androidx-compose-ui-test-junit = { group = "androidx.compose.ui", name = "ui-test-junit4" }
androidx-compose-ui-test-manifest = { group = "androidx.compose.ui", name = "ui-test-manifest" }
Expand Down
6 changes: 3 additions & 3 deletions graphql-server/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

plugins {
kotlin("multiplatform")
id("org.jetbrains.kotlin.plugin.spring") version("1.8.20")
id("org.jetbrains.kotlin.plugin.spring") version("1.9.25")
kotlin("plugin.serialization")
id("org.springframework.boot") version("3.1.5")
//id("com.google.cloud.tools.appengine") version("2.4.2")
Expand All @@ -18,8 +18,8 @@ kotlin {
val jvmMain by getting {
dependencies {
implementation("com.expediagroup:graphql-kotlin-spring-server:5.5.0")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.1")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.1")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3")

implementation("ch.qos.logback:logback-classic:1.5.8")

Expand Down
3 changes: 0 additions & 3 deletions wearApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ dependencies {
implementation(libs.okhttp)
implementation(libs.loggingInterceptor)

testImplementation(libs.robolectric)
testImplementation(libs.junit)

// Compose testing dependencies
androidTestImplementation(platform(libs.androidx.compose.bom))
androidTestImplementation(libs.androidx.compose.ui.test)
Expand Down

0 comments on commit b684878

Please sign in to comment.