From 4aca4da9f25eeae8cbc9a0a1f675a17bcba041e8 Mon Sep 17 00:00:00 2001 From: Yerzhan Tulepov Date: Tue, 2 Jan 2024 15:41:47 +0600 Subject: [PATCH] Fix android splash screen --- android/app/build.gradle | 5 +++-- android/app/src/main/res/drawable-v21/launch_background.xml | 2 +- android/app/src/main/res/drawable/launch_background.xml | 2 +- android/app/src/main/res/values-v31/colors.xml | 4 ++++ android/app/src/main/res/values-v31/styles.xml | 6 ++++++ android/app/src/main/res/values/colors.xml | 4 ++++ 6 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 android/app/src/main/res/values-v31/colors.xml create mode 100644 android/app/src/main/res/values-v31/styles.xml create mode 100644 android/app/src/main/res/values/colors.xml diff --git a/android/app/build.gradle b/android/app/build.gradle index 4241d09..7b101fa 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -49,7 +49,7 @@ android { defaultConfig { multiDexEnabled true applicationId "ru.azan.tafsir" - minSdkVersion flutter.minSdkVersion + minSdkVersion 21 // flutter.minSdkVersion targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName @@ -76,5 +76,6 @@ flutter { } dependencies { - implementation 'androidx.multidex:multidex:2.0.1' + implementation "androidx.multidex:multidex:2.0.1" + implementation "androidx.core:core-splashscreen:1.0.1" } diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml index d9664d1..3c2bec9 100644 --- a/android/app/src/main/res/drawable-v21/launch_background.xml +++ b/android/app/src/main/res/drawable-v21/launch_background.xml @@ -1,6 +1,6 @@ - + - + + + #066EB2 + diff --git a/android/app/src/main/res/values-v31/styles.xml b/android/app/src/main/res/values-v31/styles.xml new file mode 100644 index 0000000..cbcd4a6 --- /dev/null +++ b/android/app/src/main/res/values-v31/styles.xml @@ -0,0 +1,6 @@ + + + + diff --git a/android/app/src/main/res/values/colors.xml b/android/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..1fd73ef --- /dev/null +++ b/android/app/src/main/res/values/colors.xml @@ -0,0 +1,4 @@ + + + #0F6BC4 +