From 336be39aa9a6ea3e2e0a9124fb750fedd62b5f22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20W=C3=BCrl?= Date: Sun, 20 Oct 2024 20:53:09 +0200 Subject: [PATCH] update dependencies and cleanup --- .../main/java/org/blitzortung/android/app/Preferences.kt | 2 +- .../android/map/overlay/color/StrikeColorHandlerTest.kt | 2 +- build.gradle | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/org/blitzortung/android/app/Preferences.kt b/app/src/main/java/org/blitzortung/android/app/Preferences.kt index 30666ff4..57e9ea65 100644 --- a/app/src/main/java/org/blitzortung/android/app/Preferences.kt +++ b/app/src/main/java/org/blitzortung/android/app/Preferences.kt @@ -61,7 +61,7 @@ class Preferences : PreferenceActivity(), OnSharedPreferenceChangeListener { PreferenceKey.LOCATION_MODE -> { val provider = configureLocationProviderPreferences(sharedPreferences) - getSystemService(Context.LOCATION_SERVICE) as LocationManager + getSystemService(LOCATION_SERVICE) as LocationManager if (provider != LocationHandler.MANUAL_PROVIDER && !(getSystemService(LOCATION_SERVICE) as LocationManager).isProviderEnabled(provider) ) { diff --git a/app/src/test/java/org/blitzortung/android/map/overlay/color/StrikeColorHandlerTest.kt b/app/src/test/java/org/blitzortung/android/map/overlay/color/StrikeColorHandlerTest.kt index 730a6bdb..8d6c611d 100644 --- a/app/src/test/java/org/blitzortung/android/map/overlay/color/StrikeColorHandlerTest.kt +++ b/app/src/test/java/org/blitzortung/android/map/overlay/color/StrikeColorHandlerTest.kt @@ -13,7 +13,7 @@ import org.robolectric.annotation.Config @Config(manifest = Config.NONE) class StrikeColorHandlerTest { - lateinit var strikeColorHandler: StrikeColorHandler; + lateinit var strikeColorHandler: StrikeColorHandler @Before fun setUp() { diff --git a/build.gradle b/build.gradle index e20b5137..327add29 100644 --- a/build.gradle +++ b/build.gradle @@ -1,8 +1,8 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { - id 'com.android.application' version '8.7.0' apply false - id 'com.android.library' version '8.7.0' apply false - id 'org.jetbrains.kotlin.android' version '1.9.25' apply false + id 'com.android.application' version '8.7.1' apply false + id 'com.android.library' version '8.7.1' apply false + id 'org.jetbrains.kotlin.android' version '2.0.20' apply false id "org.sonarqube" version "5.1.0.4882" }