diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index d37bbe6..9770bb1 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -16,13 +16,13 @@ if (keystorePropertiesFile.exists()) { android { namespace = "app.cogwheel.conduit" - compileSdk = flutter.compileSdkVersion + compileSdk = 36 ndkVersion = "27.0.12077973" defaultConfig { applicationId = "app.cogwheel.conduit" minSdk = flutter.minSdkVersion - targetSdk = flutter.targetSdkVersion + targetSdk = 36 versionCode = flutter.versionCode versionName = flutter.versionName } diff --git a/android/app/src/main/kotlin/app/cogwheel/conduit/MainActivity.kt b/android/app/src/main/kotlin/app/cogwheel/conduit/MainActivity.kt index e6e996f..edecfcf 100644 --- a/android/app/src/main/kotlin/app/cogwheel/conduit/MainActivity.kt +++ b/android/app/src/main/kotlin/app/cogwheel/conduit/MainActivity.kt @@ -5,15 +5,22 @@ import io.flutter.embedding.engine.FlutterEngine import android.os.Build import android.os.Bundle import androidx.core.view.WindowCompat +import androidx.core.view.WindowInsetsControllerCompat class MainActivity : FlutterActivity() { private lateinit var backgroundStreamingHandler: BackgroundStreamingHandler - + override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - // Enable edge-to-edge display (backwards compatible) + // Enable edge-to-edge display for all Android versions + // This is the official way to enable edge-to-edge that works with Android 15+ WindowCompat.setDecorFitsSystemWindows(window, false) + + // Configure system bar appearance for edge-to-edge + val windowInsetsController = WindowCompat.getInsetsController(window, window.decorView) + windowInsetsController.isAppearanceLightStatusBars = false + windowInsetsController.isAppearanceLightNavigationBars = false } override fun configureFlutterEngine(flutterEngine: FlutterEngine) { diff --git a/android/app/src/main/res/values-night-v35/styles.xml b/android/app/src/main/res/values-night-v35/styles.xml deleted file mode 100644 index 7eaf8dd..0000000 --- a/android/app/src/main/res/values-night-v35/styles.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - diff --git a/android/app/src/main/res/values-v35/styles.xml b/android/app/src/main/res/values-v35/styles.xml deleted file mode 100644 index db6df00..0000000 --- a/android/app/src/main/res/values-v35/styles.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - -