Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build #41

Merged
merged 1 commit into from
Dec 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package com.mohamedrejeb.calf.geo

import androidx.compose.runtime.MutableState
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf

actual class LocationTracker {
actual suspend fun startTracking() {
println("startTracking")
}

actual fun stopTracking() {
println("stopTracking")
}

private val _locationState: MutableState<LatLng> = mutableStateOf(LatLng(0.0, 0.0))
actual val locationState: State<LatLng> = _locationState

private val _extendedLocationState = mutableStateOf(
ExtendedLocation(
location = Location(
coordinates = LatLng(0.0, 0.0),
coordinatesAccuracyMeters = 0.0
),
azimuth = Azimuth(
azimuthDegrees = 0.0,
azimuthAccuracyDegrees = null
),
speed = Speed(
speedMps = 0.0,
speedAccuracyMps = null
),
altitude = Altitude(
altitudeMeters = 0.0,
altitudeAccuracyMeters = null
),
timestampMs = 0L
)
)
actual val extendedLocationState: State<ExtendedLocation> = _extendedLocationState
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package com.mohamedrejeb.calf.geo

import androidx.compose.runtime.MutableState
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf

actual class LocationTracker {
actual suspend fun startTracking() {
println("startTracking")
}

actual fun stopTracking() {
println("stopTracking")
}

private val _locationState: MutableState<LatLng> = mutableStateOf(LatLng(0.0, 0.0))
actual val locationState: State<LatLng> = _locationState

private val _extendedLocationState = mutableStateOf(
ExtendedLocation(
location = Location(
coordinates = LatLng(0.0, 0.0),
coordinatesAccuracyMeters = 0.0
),
azimuth = Azimuth(
azimuthDegrees = 0.0,
azimuthAccuracyDegrees = null
),
speed = Speed(
speedMps = 0.0,
speedAccuracyMps = null
),
altitude = Altitude(
altitudeMeters = 0.0,
altitudeAccuracyMeters = null
),
timestampMs = 0L
)
)
actual val extendedLocationState: State<ExtendedLocation> = _extendedLocationState
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package com.mohamedrejeb.calf.geo

import androidx.compose.runtime.MutableState
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf

actual class LocationTracker {
actual suspend fun startTracking() {
println("startTracking")
}

actual fun stopTracking() {
println("stopTracking")
}

private val _locationState: MutableState<LatLng> = mutableStateOf(LatLng(0.0, 0.0))
actual val locationState: State<LatLng> = _locationState

private val _extendedLocationState = mutableStateOf(
ExtendedLocation(
location = Location(
coordinates = LatLng(0.0, 0.0),
coordinatesAccuracyMeters = 0.0
),
azimuth = Azimuth(
azimuthDegrees = 0.0,
azimuthAccuracyDegrees = null
),
speed = Speed(
speedMps = 0.0,
speedAccuracyMps = null
),
altitude = Altitude(
altitudeMeters = 0.0,
altitudeAccuracyMeters = null
),
timestampMs = 0L
)
)
actual val extendedLocationState: State<ExtendedLocation> = _extendedLocationState
}