Delete some files that are no longer used
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
package app.klottr.location
|
||||
|
||||
//import android.content.Context
|
||||
//import com.google.android.gms.location.LocationServices
|
||||
//import com.google.android.gms.location.Priority
|
||||
//import kotlinx.coroutines.tasks.await
|
||||
//
|
||||
///** Android-implementation som använder FusedLocationProvider. */
|
||||
//object AndroidLocationProvider : LocationProvider {
|
||||
//
|
||||
// /** Hämtar lastLocation och faller tillbaka till getCurrentLocation. */
|
||||
// suspend fun currentOrLastKnown(context: Context): GeoPoint? {
|
||||
// val client = LocationServices.getFusedLocationProviderClient(context)
|
||||
// return try {
|
||||
// val last = client.lastLocation.await()
|
||||
// val loc = last ?: client.getCurrentLocation(Priority.PRIORITY_HIGH_ACCURACY, null).await()
|
||||
// loc?.let { GeoPoint(it.latitude, it.longitude) }
|
||||
// } catch (_: Exception) {
|
||||
// null
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// // Interface-override finns för framtida DI utan Context (används ej av :app idag).
|
||||
// override suspend fun currentOrLastKnown(): GeoPoint? = null
|
||||
//}
|
||||
@@ -1,7 +0,0 @@
|
||||
package app.klottr.location
|
||||
|
||||
///** Android-implementationen håller bara ett volatilt fält. */
|
||||
//actual object LastLocationStore {
|
||||
// @Volatile
|
||||
// actual var lastKnown: GeoPoint? = null
|
||||
//}
|
||||
@@ -1,6 +0,0 @@
|
||||
package app.klottr.location
|
||||
|
||||
///** Delad platsstore: senaste kända position som enkel GeoPoint. */
|
||||
//expect object LastLocationStore {
|
||||
// var lastKnown: GeoPoint?
|
||||
//}
|
||||
@@ -1,10 +0,0 @@
|
||||
package app.klottr.location
|
||||
|
||||
///** Enkel delad platsmodell för KMP. */
|
||||
//data class GeoPoint(val lat: Double, val lon: Double)
|
||||
//
|
||||
///** Gränssnitt för plattforms-specifik platsinhämtning. */
|
||||
//interface LocationProvider {
|
||||
// /** Returnerar aktuell plats eller senaste kända, eller null vid fel/tidsutlöpning. */
|
||||
// suspend fun currentOrLastKnown(): GeoPoint?
|
||||
//}
|
||||
@@ -1,6 +0,0 @@
|
||||
package app.klottr.location
|
||||
//
|
||||
///** iOS-stub tills riktig plats läggs till. */
|
||||
//object IosLocationProvider : LocationProvider {
|
||||
// override suspend fun currentOrLastKnown(): GeoPoint? = null
|
||||
//}
|
||||
@@ -1,6 +0,0 @@
|
||||
package app.klottr.location
|
||||
|
||||
///** iOS implementation keeps the last known point in memory. */
|
||||
//actual object LastLocationStore {
|
||||
// actual var lastKnown: GeoPoint? = null
|
||||
//}
|
||||
Reference in New Issue
Block a user