From 39aac015740a2aacad75f51dd543241d71a570ec Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 2 Apr 2022 09:00:33 +0200 Subject: [PATCH] updating commons and target SDK to 31 --- app/build.gradle | 6 +- app/src/main/AndroidManifest.xml | 134 +++++++++++------- .../thankyou/activities/MainActivity.kt | 1 + .../thankyou/activities/SettingsActivity.kt | 4 +- build.gradle | 2 +- gradle/wrapper/gradle-wrapper.properties | 2 +- 6 files changed, 91 insertions(+), 58 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 40a4e133..9f25a9ff 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,12 +9,12 @@ if (keystorePropertiesFile.exists()) { } android { - compileSdkVersion 30 + compileSdkVersion 31 defaultConfig { applicationId "com.simplemobiletools.thankyou" minSdkVersion 21 - targetSdkVersion 30 + targetSdkVersion 31 versionCode 23 versionName "5.4.2" setProperty("archivesBaseName", "thank-you") @@ -61,5 +61,5 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:03e4d214b1' + implementation 'com.github.SimpleMobileTools:Simple-Commons:a6fa9c19ac' } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 3dda3f95..9f273c79 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,16 +1,16 @@ + xmlns:tools="http://schemas.android.com/tools" + package="com.simplemobiletools.thankyou" + android:installLocation="auto"> + tools:node="remove" /> + android:required="false" /> + android:theme="@style/SplashTheme" /> - + + android:parentActivityName=".activities.MainActivity"> + + + + + + + android:parentActivityName=".activities.MainActivity" /> + android:parentActivityName="com.simplemobiletools.commons.activities.AboutActivity" /> + android:parentActivityName=".activities.SettingsActivity" /> + android:parentActivityName="com.simplemobiletools.commons.activities.AboutActivity" /> + android:exported="true" /> - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + diff --git a/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/MainActivity.kt index 79feebd1..ee5aaf8c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/MainActivity.kt @@ -29,6 +29,7 @@ class MainActivity : SimpleActivity() { override fun onCreateOptionsMenu(menu: Menu): Boolean { menuInflater.inflate(R.menu.menu_main, menu) + updateMenuItemColors(menu) return true } diff --git a/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/SettingsActivity.kt index 2b2a0517..4e3a94ff 100644 --- a/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/SettingsActivity.kt @@ -24,11 +24,11 @@ class SettingsActivity : SimpleActivity() { updateTextColors(settings_holder) arrayOf(settings_color_customization_label, settings_general_settings_label).forEach { - it.setTextColor(getAdjustedPrimaryColor()) + it.setTextColor(getProperPrimaryColor()) } arrayOf(settings_color_customization_holder, settings_general_settings_holder).forEach { - it.background.applyColorFilter(baseConfig.backgroundColor.getContrastColor()) + it.background.applyColorFilter(getProperBackgroundColor().getContrastColor()) } } diff --git a/build.gradle b/build.gradle index 41057703..8f697cfc 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.0.4' + classpath 'com.android.tools.build:gradle:7.1.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 7fa4a205..5706b400 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip