refactor: Set minSdk to 32 and remove legacy code

This commit increases the minimum SDK version to 32 (Android 12L), allowing for the removal of compatibility code for older Android versions.

Key changes include:
*   Updated `MIN_SDK` from 26 to 32.
*   Removed conditional logic for API levels below 32, particularly for permissions, foreground services, and UI components.
*   Simplified Bluetooth permission handling to only target modern APIs.
*   Cleaned up AndroidManifest by removing legacy permission tags.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2025-12-28 17:06:20 -06:00
parent 56760412cb
commit 88f0522927
11 changed files with 25 additions and 122 deletions

View file

@ -19,7 +19,6 @@
package org.meshtastic.core.ui.theme
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.ExperimentalMaterial3ExpressiveApi
import androidx.compose.material3.MaterialExpressiveTheme
@ -283,7 +282,7 @@ fun AppTheme(
) {
val colorScheme =
when {
dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> {
dynamicColor -> {
val context = LocalContext.current
if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context)
}