From 4e7d5cabd2a91cd2a7fab436ecda3bd230908477 Mon Sep 17 00:00:00 2001 From: Karan Sharma <55722391+ksharma-xyz@users.noreply.github.com> Date: Sat, 14 Dec 2024 14:32:09 +1100 Subject: [PATCH] Remove gtfs_Static dependency, unless it is ready to use --- composeApp/build.gradle.kts | 1 - .../src/commonMain/kotlin/xyz/ksharma/krail/di/AppModule.kt | 4 ---- feature/trip-planner/ui/build.gradle.kts | 1 - .../krail/trip/planner/ui/savedtrips/SavedTripsViewModel.kt | 2 -- 4 files changed, 8 deletions(-) diff --git a/composeApp/build.gradle.kts b/composeApp/build.gradle.kts index 23fc76bf..095af009 100644 --- a/composeApp/build.gradle.kts +++ b/composeApp/build.gradle.kts @@ -101,7 +101,6 @@ kotlin { implementation(projects.feature.tripPlanner.network) implementation(projects.feature.tripPlanner.ui) implementation(projects.feature.tripPlanner.state) - implementation(projects.gtfsStatic) implementation(libs.navigation.compose) diff --git a/composeApp/src/commonMain/kotlin/xyz/ksharma/krail/di/AppModule.kt b/composeApp/src/commonMain/kotlin/xyz/ksharma/krail/di/AppModule.kt index 4122dfc8..c1060f39 100644 --- a/composeApp/src/commonMain/kotlin/xyz/ksharma/krail/di/AppModule.kt +++ b/composeApp/src/commonMain/kotlin/xyz/ksharma/krail/di/AppModule.kt @@ -6,8 +6,6 @@ import org.koin.dsl.includes import org.koin.dsl.koinConfiguration import org.koin.dsl.module import xyz.ksharma.krail.core.appinfo.di.appInfoModule -import xyz.ksharma.krail.gtfs_static.di.fileStorageModule -import xyz.ksharma.krail.gtfs_static.di.gtfsModule import xyz.ksharma.krail.sandook.di.sandookModule import xyz.ksharma.krail.splash.SplashViewModel import xyz.ksharma.krail.trip.planner.network.api.di.networkModule @@ -22,8 +20,6 @@ val koinConfig = koinConfiguration { sandookModule, splashModule, appInfoModule, - gtfsModule, - fileStorageModule, alertsCacheModule, ) } diff --git a/feature/trip-planner/ui/build.gradle.kts b/feature/trip-planner/ui/build.gradle.kts index 7f2502eb..04669933 100644 --- a/feature/trip-planner/ui/build.gradle.kts +++ b/feature/trip-planner/ui/build.gradle.kts @@ -30,7 +30,6 @@ kotlin { implementation(projects.feature.tripPlanner.state) implementation(projects.sandook) implementation(projects.taj) - implementation(projects.gtfsStatic) implementation(compose.foundation) implementation(compose.animation) diff --git a/feature/trip-planner/ui/src/commonMain/kotlin/xyz/ksharma/krail/trip/planner/ui/savedtrips/SavedTripsViewModel.kt b/feature/trip-planner/ui/src/commonMain/kotlin/xyz/ksharma/krail/trip/planner/ui/savedtrips/SavedTripsViewModel.kt index 25c4aabe..f9143cf8 100644 --- a/feature/trip-planner/ui/src/commonMain/kotlin/xyz/ksharma/krail/trip/planner/ui/savedtrips/SavedTripsViewModel.kt +++ b/feature/trip-planner/ui/src/commonMain/kotlin/xyz/ksharma/krail/trip/planner/ui/savedtrips/SavedTripsViewModel.kt @@ -9,7 +9,6 @@ import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.update import kotlinx.coroutines.launch -import xyz.ksharma.krail.gtfs_static.NswGtfsService import xyz.ksharma.krail.sandook.Sandook import xyz.ksharma.krail.sandook.SavedTrip import xyz.ksharma.krail.trip.planner.ui.state.savedtrip.SavedTripUiEvent @@ -18,7 +17,6 @@ import xyz.ksharma.krail.trip.planner.ui.state.timetable.Trip class SavedTripsViewModel( private val sandook: Sandook, - private val nswGtfsService: NswGtfsService, ) : ViewModel() { private val _uiState: MutableStateFlow = MutableStateFlow(SavedTripsState())