Implement plugin weather provider

This commit is contained in:
MM20
2023-12-22 01:02:13 +01:00
parent d80e4c66a4
commit 211f30170c
7 changed files with 366 additions and 9 deletions
@@ -53,7 +53,7 @@ abstract class WeatherProvider(
checkPermissionOrThrow(context)
when {
uri.pathSegments.size == 1 && uri.pathSegments.first() == WeatherPluginContract.Paths.Weather -> {
uri.pathSegments.size == 1 && uri.pathSegments.first() == WeatherPluginContract.Paths.Forecasts -> {
val lat = uri.getQueryParameter(WeatherPluginContract.ForecastParams.Lat)
?.toDoubleOrNull()
val lon = uri.getQueryParameter(WeatherPluginContract.ForecastParams.Lon)