-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve native splash screen android ios (#24)
* chore: change launcher icon * chore: update library version * docs: update syntax to generate launcher icon * fix: resolve splashscreen issue on iOS * fix: resolve splashscreen issue on android <12 and >=12 * fix(test): resolve the test issue regarding new flutter version
- Loading branch information
Showing
95 changed files
with
121 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
android/app/src/main/kotlin/com/lazycatlabs/base/MainActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
package com.lazycatlabs.auth | ||
|
||
import android.os.Build | ||
import android.os.Bundle | ||
import androidx.core.view.WindowCompat | ||
import io.flutter.embedding.android.FlutterActivity | ||
|
||
class MainActivity: FlutterActivity() { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
// Aligns the Flutter view vertically with the window. | ||
WindowCompat.setDecorFitsSystemWindows(getWindow(), false) | ||
|
||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { | ||
// Disable the Android splash screen fade out animation to avoid | ||
// a flicker before the similar frame is drawn in Flutter. | ||
splashScreen.setOnExitAnimationListener { splashScreenView -> splashScreenView.remove() } | ||
} | ||
|
||
super.onCreate(savedInstanceState) | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-7.16 KB
android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Modify this file to customize your launch splash screen --> | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:drawable="@color/ic_launcher_background" /> | ||
|
||
<!-- You can insert your own image assets here --> | ||
<!-- <item> | ||
<item android:drawable="@color/ic_launcher_background"/> | ||
<item | ||
android:height="350dp" | ||
android:width="350dp" | ||
android:gravity="center"> | ||
<bitmap | ||
android:gravity="center" | ||
android:src="@mipmap/launch_image" /> | ||
</item> --> | ||
android:gravity="fill_horizontal|fill_vertical" | ||
android:src="@drawable/ic_splash"/> | ||
</item> | ||
</layer-list> |
14 changes: 14 additions & 0 deletions
14
android/app/src/main/res/drawable/launch_background_12.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Modify this file to customize your launch splash screen --> | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<!-- You can insert your own image assets here --> | ||
<item android:drawable="@color/ic_launcher_background"/> | ||
<item | ||
android:height="350dp" | ||
android:width="350dp" | ||
android:gravity="fill_horizontal|fill_vertical"> | ||
<bitmap | ||
android:gravity="fill_horizontal|fill_vertical" | ||
android:src="@drawable/ic_splash"/> | ||
</item> | ||
</layer-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="ic_launcher_background">#ffffff</color> | ||
<color name="ic_launcher_background">#1E1E2E</color> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-1.88 KB
(56%)
android/app/src/prd/res/drawable-hdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.14 KB
(60%)
android/app/src/prd/res/drawable-mdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.56 KB
(54%)
android/app/src/prd/res/drawable-xhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.94 KB
(53%)
android/app/src/prd/res/drawable-xxhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-5.18 KB
(53%)
android/app/src/prd/res/drawable-xxxhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.79 KB
(66%)
android/app/src/stg/res/drawable-hdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.3 KB
(64%)
android/app/src/stg/res/drawable-mdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.25 KB
(67%)
android/app/src/stg/res/drawable-xhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.18 KB
(68%)
android/app/src/stg/res/drawable-xxhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.97 KB
(69%)
android/app/src/stg/res/drawable-xxxhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-4.57 KB
(79%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+57 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-42 Bytes
(95%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-38 Bytes
(97%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-25 Bytes
(96%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-117 Bytes
(91%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-298 Bytes
(84%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-42 Bytes
(95%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-200 Bytes
(88%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-503 Bytes
(81%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-87 Bytes
(92%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-372 Bytes
(83%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-120 Bytes
(90%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-486 Bytes
(80%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-503 Bytes
(81%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-719 Bytes
(81%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-171 Bytes
(89%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-512 Bytes
(83%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-161 Bytes
(90%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-599 Bytes
(81%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
-642 Bytes
(82%)
ios/Runner/Assets.xcassets/AppIcon-prd.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+1.68 KB
(110%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+115 Bytes
(120%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+140 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+192 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+60 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+100 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+250 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+140 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+120 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+128 Bytes
(100%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+234 Bytes
(120%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+155 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+100 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+151 Bytes
(100%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+128 Bytes
(100%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+226 Bytes
(100%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+216 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+271 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+164 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+223 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
Binary file modified
BIN
+294 Bytes
(110%)
ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/[email protected]
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "ic_launcher_foreground 2.png", | ||
"idiom" : "universal", | ||
"filename" : "LaunchImage.png", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "ic_launcher_foreground 1.png", | ||
"idiom" : "universal", | ||
"filename" : "[email protected]", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "ic_launcher_foreground.png", | ||
"idiom" : "universal", | ||
"filename" : "[email protected]", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file added
BIN
+17.6 KB
ios/Runner/Assets.xcassets/LaunchImage.imageset/ic_launcher_foreground 1.png
Oops, something went wrong.
Binary file added
BIN
+17.6 KB
ios/Runner/Assets.xcassets/LaunchImage.imageset/ic_launcher_foreground 2.png
Oops, something went wrong.
Binary file added
BIN
+17.6 KB
ios/Runner/Assets.xcassets/LaunchImage.imageset/ic_launcher_foreground.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.