From e7942fba0a5aaf0df9b5ee31710807cac0770d04 Mon Sep 17 00:00:00 2001 From: Hepolise Date: Sat, 7 Mar 2026 15:14:46 +0300 Subject: [PATCH] Fix(build): resolve build warnings - Delete `android.nonFinalResIds=false` from gradle.properties (deprecated) - Convert non-exhaustive when statement to exhaustive branches in VibrationEffectSetting.kt --- .../ui/component/VibrationEffectSetting.kt | 1 - gradle.properties | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/ru/hepolise/volumekeytrackcontrol/ui/component/VibrationEffectSetting.kt b/app/src/main/java/ru/hepolise/volumekeytrackcontrol/ui/component/VibrationEffectSetting.kt index c3c2539..1aef250 100644 --- a/app/src/main/java/ru/hepolise/volumekeytrackcontrol/ui/component/VibrationEffectSetting.kt +++ b/app/src/main/java/ru/hepolise/volumekeytrackcontrol/ui/component/VibrationEffectSetting.kt @@ -61,7 +61,6 @@ private val VibrationEffectTitles = VibrationType.values.associateWith { VibrationType.DoubleClick -> R.string.vibration_effect_double_click VibrationType.HeavyClick -> R.string.vibration_effect_heavy_click VibrationType.Tick -> R.string.vibration_effect_tick - else -> throw IllegalStateException("Unknown VibrationType: $it") } } else { throw IllegalStateException("VibrationType is not supported on this API level") diff --git a/gradle.properties b/gradle.properties index 2a7ec69..cd0519b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -20,5 +20,4 @@ kotlin.code.style=official # Enables namespacing of each library's R class so that its R class includes only the # resources declared in the library itself and none from the library's dependencies, # thereby reducing the size of the R class for that library -android.nonTransitiveRClass=true -android.nonFinalResIds=false \ No newline at end of file +android.nonTransitiveRClass=true \ No newline at end of file