aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-02-07 01:54:59 -0600
committerIván Ávalos <avalos@disroot.org>2022-02-07 01:54:59 -0600
commit4deec59962afcaabd6f136b71fbd654e7526efad (patch)
tree2c1647991144c1200a17bd254817de30cbfc87de
parent4f0129a70bafeca1d9e565ba2076213eb183c779 (diff)
downloadetbsa-trackermap-mobile-4deec59962afcaabd6f136b71fbd654e7526efad.tar.gz
etbsa-trackermap-mobile-4deec59962afcaabd6f136b71fbd654e7526efad.tar.bz2
etbsa-trackermap-mobile-4deec59962afcaabd6f136b71fbd654e7526efad.zip
Removed now unnecessary CommandsApi on Android app
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/TrackerApp.kt2
-rw-r--r--androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/commands/UnitCommandsViewModel.kt5
2 files changed, 2 insertions, 5 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 f8c236e..aa92c91 100644
--- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/TrackerApp.kt
+++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/TrackerApp.kt
@@ -64,7 +64,7 @@ open class TrackerApp : Application() {
viewModel { LoginViewModel() }
viewModel { UnitInformationViewModel(get()) }
- viewModel { UnitCommandsViewModel(get()) }
+ viewModel { UnitCommandsViewModel() }
viewModel { UnitsViewModel(get()) }
viewModel { UnitReportsViewModel(get()) }
viewModel { UserInformationViewModel() }
diff --git a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/commands/UnitCommandsViewModel.kt b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/commands/UnitCommandsViewModel.kt
index 312d67e..d1b1e69 100644
--- a/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/commands/UnitCommandsViewModel.kt
+++ b/androidApp/src/main/java/mx/trackermap/TrackerMap/android/details/commands/UnitCommandsViewModel.kt
@@ -23,16 +23,13 @@ import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.launch
-import mx.trackermap.TrackerMap.client.apis.CommandsApi
import mx.trackermap.TrackerMap.client.models.Command
import mx.trackermap.TrackerMap.controllers.CommandsController
import org.koin.core.component.KoinComponent
import org.koin.core.component.inject
@DelicateCoroutinesApi
-class UnitCommandsViewModel(
- private val commandsApi: CommandsApi
-) : ViewModel(), KoinComponent {
+class UnitCommandsViewModel : ViewModel(), KoinComponent {
private val commandsController: CommandsController by inject()