refactor(shared): move FoundEntry to commonMain and remove duplicate in :app
This commit is contained in:
@@ -3,14 +3,6 @@ package app.klottr.util
|
|||||||
import android.content.Context
|
import android.content.Context
|
||||||
import org.json.JSONObject
|
import org.json.JSONObject
|
||||||
|
|
||||||
data class FoundEntry(
|
|
||||||
val layer: String,
|
|
||||||
val id: String, // ex. klotter-id, wiki pageId eller DigitaltMuseum-id
|
|
||||||
val label: String, // visningsnamn: klottertext / wikititel / DM-titel
|
|
||||||
val lat: Double,
|
|
||||||
val lon: Double,
|
|
||||||
val timeMillis: Long
|
|
||||||
)
|
|
||||||
|
|
||||||
object FoundStore {
|
object FoundStore {
|
||||||
private const val PREF = "klottr_found_store"
|
private const val PREF = "klottr_found_store"
|
||||||
|
|||||||
10
shared/src/commonMain/kotlin/app/klottr/util/FoundEntry.kt
Normal file
10
shared/src/commonMain/kotlin/app/klottr/util/FoundEntry.kt
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
package app.klottr.util
|
||||||
|
|
||||||
|
data class FoundEntry(
|
||||||
|
val layer: String,
|
||||||
|
val id: String, // ex. klotter-id, wiki pageId eller DigitaltMuseum-id
|
||||||
|
val label: String, // visningsnamn: klottertext / wikititel / DM-titel
|
||||||
|
val lat: Double,
|
||||||
|
val lon: Double,
|
||||||
|
val timeMillis: Long
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user