From 37af4fccdf6c9a904705255f36193c53bc8bb369 Mon Sep 17 00:00:00 2001 From: Zongle Wang Date: Tue, 3 Sep 2024 15:33:53 -0400 Subject: [PATCH] chore: fully get rid of AppCompat lib (#620) * chore: get rid of AppCompat themes It's unnecessary in a pure Compose App, we can also decrease the App size after this change. * deps: remove com.google.android.material:material We don't need it after dropping AppCompat. --- app/build.gradle.kts | 1 - app/src/main/res/values-night/themes.xml | 34 ------------------------ app/src/main/res/values/colors.xml | 26 ------------------ app/src/main/res/values/themes.xml | 18 ++----------- gradle/libs.versions.toml | 2 -- 5 files changed, 2 insertions(+), 79 deletions(-) delete mode 100644 app/src/main/res/values-night/themes.xml delete mode 100644 app/src/main/res/values/colors.xml diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 55f3ac657..d85f5d18a 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -51,7 +51,6 @@ dependencies { implementation(libs.androidx.compose.material) implementation(libs.kotlin) implementation(libs.kotlinx.coroutines.android) - implementation(libs.material) implementation(libs.androidx.compose.ui.preview.tooling) debugImplementation(libs.androidx.compose.ui.tooling) diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml deleted file mode 100644 index afa5f9614..000000000 --- a/app/src/main/res/values-night/themes.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml deleted file mode 100644 index a455e4cc2..000000000 --- a/app/src/main/res/values/colors.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - #FFBB86FC - #FF6200EE - #FF3700B3 - #FF03DAC5 - #FF018786 - #FF000000 - #FFFFFFFF - \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index d0561733b..a76439997 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -14,21 +14,7 @@ limitations under the License. --> - + - +