From 9743e27403079456dd7d8fb15da90d64a173b8c6 Mon Sep 17 00:00:00 2001 From: Lucas Lima Date: Mon, 17 Aug 2020 23:39:29 -0300 Subject: [PATCH] Bump min Sdk to 21 --- app/build.gradle | 2 +- .../lucasnlm/antimine/theme/ThemeActivity.kt | 2 - app/src/main/res/layout/activity_tv_game.xml | 2 +- common/build.gradle | 2 +- .../antimine/core/themes/repository/Themes.kt | 8 +- common/src/main/res/values-v21/themes.xml | 228 ------------------ common/src/main/res/values/themes.xml | 122 ++++++++-- external/build.gradle | 2 +- foss/build.gradle | 2 +- proprietary/build.gradle | 2 +- 10 files changed, 110 insertions(+), 262 deletions(-) delete mode 100644 common/src/main/res/values-v21/themes.xml diff --git a/app/build.gradle b/app/build.gradle index 79d06f6f..db315526 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,7 +11,7 @@ android { // versionCode and versionName must be hardcoded to support F-droid versionCode 800051 versionName '8.0.5' - minSdkVersion 16 + minSdkVersion 21 targetSdkVersion 30 multiDexEnabled true vectorDrawables.useSupportLibrary true diff --git a/app/src/main/java/dev/lucasnlm/antimine/theme/ThemeActivity.kt b/app/src/main/java/dev/lucasnlm/antimine/theme/ThemeActivity.kt index c6e4cc70..c4d0a6ac 100644 --- a/app/src/main/java/dev/lucasnlm/antimine/theme/ThemeActivity.kt +++ b/app/src/main/java/dev/lucasnlm/antimine/theme/ThemeActivity.kt @@ -42,8 +42,6 @@ class ThemeActivity : ThematicActivity(R.layout.activity_theme) { } } } - - showUnlockDialog() } private fun showUnlockDialog() { diff --git a/app/src/main/res/layout/activity_tv_game.xml b/app/src/main/res/layout/activity_tv_game.xml index 0a28d7a6..3c2b2a8c 100644 --- a/app/src/main/res/layout/activity_tv_game.xml +++ b/app/src/main/res/layout/activity_tv_game.xml @@ -10,7 +10,7 @@ android:layout_height="wrap_content" android:elevation="0dp" android:minHeight="30dp" - android:theme="@style/AppTheme.AppBarOverlay" + android:theme="@style/AppTheme" tools:targetApi="lollipop" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/common/src/main/res/values/themes.xml b/common/src/main/res/values/themes.xml index 758684f5..2da9e261 100644 --- a/common/src/main/res/values/themes.xml +++ b/common/src/main/res/values/themes.xml @@ -4,28 +4,36 @@ @color/primary @color/primary_dark @color/accent - @color/primary + true + @android:color/transparent + true + true + + + - - - - - diff --git a/external/build.gradle b/external/build.gradle index 09bdf1d5..4a884360 100644 --- a/external/build.gradle +++ b/external/build.gradle @@ -7,7 +7,7 @@ android { compileSdkVersion 30 defaultConfig { - minSdkVersion 16 + minSdkVersion 21 targetSdkVersion 30 versionCode 1 versionName '1.0' diff --git a/foss/build.gradle b/foss/build.gradle index 6c972a31..0d8fec68 100644 --- a/foss/build.gradle +++ b/foss/build.gradle @@ -8,7 +8,7 @@ android { defaultConfig { versionCode 800051 // MMmmPPv versionName '8.0.5' - minSdkVersion 16 + minSdkVersion 21 targetSdkVersion 30 } diff --git a/proprietary/build.gradle b/proprietary/build.gradle index a40e2150..bd221dc9 100644 --- a/proprietary/build.gradle +++ b/proprietary/build.gradle @@ -12,7 +12,7 @@ android { defaultConfig { versionCode 800051 versionName '8.0.5' - minSdkVersion 16 + minSdkVersion 21 targetSdkVersion 30 }