aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/java/mx/trackermap/TrackerMap/android/TrackerApp.kt
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-14 22:35:23 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-14 22:35:23 -0600
commitb7c2bd81c92fadd654fcd7db999d2be891458ea6 (patch)
treec51c043f9c05e0cf5b80d8d6f3a09d9bdbd0a87c /androidApp/src/main/java/mx/trackermap/TrackerMap/android/TrackerApp.kt
parent5259951de702a8e827701e227fc564b7cffa8066 (diff)
downloadetbsa-trackermap-mobile-b7c2bd81c92fadd654fcd7db999d2be891458ea6.tar.gz
etbsa-trackermap-mobile-b7c2bd81c92fadd654fcd7db999d2be891458ea6.tar.bz2
etbsa-trackermap-mobile-b7c2bd81c92fadd654fcd7db999d2be891458ea6.zip
Deleted unused controllers and refactored session management code into SessionController
Diffstat (limited to 'androidApp/src/main/java/mx/trackermap/TrackerMap/android/TrackerApp.kt')
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/TrackerApp.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/TrackerApp.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/TrackerApp.kt
index d591b0b..a9d4a8b 100644
--- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/TrackerApp.kt
+++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/TrackerApp.kt
@@ -11,6 +11,7 @@ import mx.trackermap.TrackerMap.android.units.UnitsViewModel
import mx.trackermap.TrackerMap.client.apis.*
import mx.trackermap.TrackerMap.controllers.GeofencesController
import mx.trackermap.TrackerMap.controllers.ReportController
+import mx.trackermap.TrackerMap.controllers.SessionController
import mx.trackermap.TrackerMap.controllers.UnitsController
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
@@ -34,11 +35,12 @@ open class TrackerApp : Application() {
factory { ReportsApi(get()) }
factory { GeofencesApi(get()) }
+ factory { SessionController(get()) }
factory { UnitsController(get(), get()) }
factory { GeofencesController(get()) }
factory { ReportController(get(), get()) }
- viewModel { LoginViewModel(get(), get()) }
+ viewModel { LoginViewModel(get()) }
viewModel { UnitInformationViewModel(get()) }
viewModel { UnitCommandsViewModel(get()) }
viewModel { UnitsViewModel(get()) }