From e082e74c2d1578b3c095f616b753d8391e9bff59 Mon Sep 17 00:00:00 2001 From: Yang Date: Sat, 26 Aug 2023 17:16:51 +1000 Subject: [PATCH] Replace `systemuicontroller` with `enableEdgeToEdge()`, add splash theme. --- android/app/build.gradle.kts | 4 ---- android/app/src/main/AndroidManifest.xml | 2 +- .../kstreamlined/android/KSActivity.kt | 19 ++++++++++++++----- .../kstreamlined/android/theme/Theme.kt | 14 -------------- .../app/src/main/res/values-night/themes.xml | 11 ++++++----- android/app/src/main/res/values/themes.xml | 13 ++++++++----- gradle/libs.versions.toml | 1 - 7 files changed, 29 insertions(+), 35 deletions(-) diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 2a25e7ef..7577b7d9 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -241,10 +241,6 @@ dependencies { implementation(libs.androidx.coreSplashscreen) implementation(libs.androidx.profileinstaller) - // TODO move to design module - // Compose companion libraries - implementation(libs.accompanist.systemUiController) - // Hilt implementation(libs.hilt.android) kapt(libs.hilt.compiler) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 194c5a74..0adc2599 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -10,7 +10,7 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" - android:theme="@style/Theme.KS"> + android:theme="@style/Theme.KS.Splash"> - - diff --git a/android/app/src/main/res/values/themes.xml b/android/app/src/main/res/values/themes.xml index 9f5dcab6..67dd70bc 100644 --- a/android/app/src/main/res/values/themes.xml +++ b/android/app/src/main/res/values/themes.xml @@ -1,7 +1,10 @@ - - - diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index fa4084f6..7106652d 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -113,7 +113,6 @@ androidx-espresso-intents = { module = "androidx.test.espresso:espresso-intents" accompanist-insetsUi = { module = "com.google.accompanist:accompanist-insets-ui", version.ref = "accompanist" } accompanist-placeholder = { module = "com.google.accompanist:accompanist-placeholder-material", version.ref = "accompanist" } accompanist-swipeRefresh = { module = "com.google.accompanist:accompanist-swiperefresh", version.ref = "accompanist" } -accompanist-systemUiController = { module = "com.google.accompanist:accompanist-systemuicontroller", version.ref = "accompanist" } accompanist-navigationAnimation = { module = "com.google.accompanist:accompanist-navigation-animation", version.ref = "accompanist" } accompanist-navigationMaterial = { module = "com.google.accompanist:accompanist-navigation-material", version.ref = "accompanist" } accompanist-pager = { module = "com.google.accompanist:accompanist-pager", version.ref = "accompanist" }