shared(location): add expect/actual LastLocationStore (GeoPoint)
app(util): adapt LastLocationStore to delegate to shared store while keeping android.location.Location API
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package app.klottr.location
|
||||
|
||||
/** Android-implementationen håller bara ett volatilt fält. */
|
||||
actual object LastLocationStore {
|
||||
@Volatile
|
||||
actual var lastKnown: GeoPoint? = null
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package app.klottr.location
|
||||
|
||||
/** Delad platsstore: senaste kända position som enkel GeoPoint. */
|
||||
expect object LastLocationStore {
|
||||
var lastKnown: GeoPoint?
|
||||
}
|
||||
Reference in New Issue
Block a user