Implement custom permission system for plugins

This commit is contained in:
MM20
2023-12-18 16:51:48 +01:00
parent 1c542f38ba
commit cb7f6b6693
20 changed files with 294 additions and 126 deletions
@@ -0,0 +1 @@
package de.mm20.launcher2.weather.settings
@@ -0,0 +1,27 @@
package de.mm20.launcher2.weather.settings
import kotlinx.serialization.Serializable
@Serializable
data class LatLon(
val lat: Double,
val lon: Double,
)
@Serializable
data class ProviderSettings(
val lastUpdate: Long = 0,
val locationId: String? = null,
val locationName: String? = null,
)
@Serializable
data class WeatherSettingsData(
val provider: String = "metno",
val autoLocation: Boolean = true,
val location: LatLon? = null,
val locationName: String? = null,
val lastLocation: LatLon? = null,
val providerSettings: Map<String, ProviderSettings>
)