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 --- .../mx/trackermap/TrackerMap/client/infrastructure/SessionManager.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure') diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/SessionManager.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/SessionManager.kt index 6287b0c..caf2da1 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/SessionManager.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/infrastructure/SessionManager.kt @@ -3,10 +3,11 @@ package mx.trackermap.TrackerMap.client.infrastructure import com.russhwolf.settings.Settings import com.russhwolf.settings.get import com.russhwolf.settings.set +import mx.trackermap.TrackerMap.Injectable class SessionManager( private val defaultBaseUrl: String -) { +): Injectable { companion object { const val SERVER_URL_KEY = "server_url" -- cgit v1.2.3