From feba14e1858aaf3fad2673b362f4c6b91bad83eb Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Wed, 26 Jan 2022 23:16:11 -0600 Subject: Implemented dependency injection with Swift property wrappers --- .../kotlin/mx/trackermap/TrackerMap/controllers/GeofencesController.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/GeofencesController.kt') diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/GeofencesController.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/GeofencesController.kt index 0e4c5c9..e16bb72 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/GeofencesController.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/GeofencesController.kt @@ -21,13 +21,14 @@ import kotlinx.coroutines.DelicateCoroutinesApi import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.launch +import mx.trackermap.TrackerMap.Injectable import mx.trackermap.TrackerMap.client.apis.GeofencesApi import mx.trackermap.TrackerMap.client.models.Geofence @DelicateCoroutinesApi class GeofencesController( private val geofencesApi: GeofencesApi -) { +): Injectable { val geofencesFlow = MutableStateFlow>(emptyMap()) init { -- cgit v1.2.3