Skip to content

Commit 01cfedf

Browse files
Fixed launcher icon app crash
1 parent 91c7b50 commit 01cfedf

File tree

87 files changed

+71
-77
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+71
-77
lines changed

android/app/src/main/AndroidManifest.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2-
<uses-permission android:name="android.permission.INTERNET" />
32
<application
43
android:label="yliw"
54
android:name="${applicationName}"
6-
android:icon="@mipmap/launcher_icon">
5+
android:icon="@mipmap/ic_launcher">
76
<activity
87
android:name=".MainActivity"
98
android:exported="true"
0 Bytes

android/app/src/main/res/mipmap-anydpi-v26/launcher_icon.xml

-3
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

android/app/src/main/res/values-night-v31/styles.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<item name="android:windowFullscreen">false</item>
77
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
88
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
9-
<item name="android:windowSplashScreenBackground">#01579B</item>
9+
<item name="android:windowSplashScreenBackground">#000000</item>
1010
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
11-
<item name="android:windowSplashScreenIconBackgroundColor">#54C5F8</item>
11+
<item name="android:windowSplashScreenIconBackgroundColor">#000000</item>
1212
</style>
1313
<!-- Theme applied to the Android Window as soon as the process has started.
1414
This theme determines the color of the Android Window while your

android/app/src/main/res/values-v31/styles.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<item name="android:windowFullscreen">false</item>
77
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
88
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
9-
<item name="android:windowSplashScreenBackground">#54C5F8</item>
9+
<item name="android:windowSplashScreenBackground">#000000</item>
1010
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
11-
<item name="android:windowSplashScreenIconBackgroundColor">#54C5F8</item>
11+
<item name="android:windowSplashScreenIconBackgroundColor">#000000</item>
1212
</style>
1313
<!-- Theme applied to the Android Window as soon as the process has started.
1414
This theme determines the color of the Android Window while your

assets/images/yliw.png

303 KB

flutter_launcher_icons.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
flutter_launcher_icons:
33
image_path: "assets/images/yliw.png"
44

5-
android: "launcher_icon"
5+
android: true
66
# image_path_android: "assets/images/icon.png"
77
min_sdk_android: 21 # android min sdk min:16, default 21
8-
adaptive_icon_background: "#ffffff"
98
# adaptive_icon_background: "assets/images/background.png"
109
# adaptive_icon_foreground: "assets/images/foreground.png"
1110
# adaptive_icon_monochrome: "assets/images/monochrome.png"

ios/Runner/Base.lproj/LaunchScreen.storyboard

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</scene>
3939
</scenes>
4040
<resources>
41-
<image name="LaunchImage" width="351" height="231"/>
41+
<image name="LaunchImage" width="1024" height="1024"/>
4242
<image name="LaunchBackground" width="1" height="1"/>
4343
</resources>
4444
</document>

ios/Runner/Info.plist

+51-49
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,55 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
4-
<dict>
5-
<key>CFBundleDevelopmentRegion</key>
6-
<string>$(DEVELOPMENT_LANGUAGE)</string>
7-
<key>CFBundleDisplayName</key>
8-
<string>Yliw</string>
9-
<key>CFBundleExecutable</key>
10-
<string>$(EXECUTABLE_NAME)</string>
11-
<key>CFBundleIdentifier</key>
12-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13-
<key>CFBundleInfoDictionaryVersion</key>
14-
<string>6.0</string>
15-
<key>CFBundleName</key>
16-
<string>yliw</string>
17-
<key>CFBundlePackageType</key>
18-
<string>APPL</string>
19-
<key>CFBundleShortVersionString</key>
20-
<string>$(FLUTTER_BUILD_NAME)</string>
21-
<key>CFBundleSignature</key>
22-
<string>????</string>
23-
<key>CFBundleVersion</key>
24-
<string>$(FLUTTER_BUILD_NUMBER)</string>
25-
<key>LSRequiresIPhoneOS</key>
26-
<true/>
27-
<key>UILaunchStoryboardName</key>
28-
<string>LaunchScreen</string>
29-
<key>UIMainStoryboardFile</key>
30-
<string>Main</string>
31-
<key>UISupportedInterfaceOrientations</key>
32-
<array>
33-
<string>UIInterfaceOrientationPortrait</string>
34-
<string>UIInterfaceOrientationLandscapeLeft</string>
35-
<string>UIInterfaceOrientationLandscapeRight</string>
36-
</array>
37-
<key>UISupportedInterfaceOrientations~ipad</key>
38-
<array>
39-
<string>UIInterfaceOrientationPortrait</string>
40-
<string>UIInterfaceOrientationPortraitUpsideDown</string>
41-
<string>UIInterfaceOrientationLandscapeLeft</string>
42-
<string>UIInterfaceOrientationLandscapeRight</string>
43-
</array>
44-
<key>CADisableMinimumFrameDurationOnPhone</key>
45-
<true/>
46-
<key>UIApplicationSupportsIndirectInputEvents</key>
47-
<true/>
48-
<key>CFBundleLocalizations</key>
49-
<array>
50-
<string>en</string>
51-
</array>
52-
</dict>
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleDisplayName</key>
8+
<string>Yliw</string>
9+
<key>CFBundleExecutable</key>
10+
<string>$(EXECUTABLE_NAME)</string>
11+
<key>CFBundleIdentifier</key>
12+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13+
<key>CFBundleInfoDictionaryVersion</key>
14+
<string>6.0</string>
15+
<key>CFBundleName</key>
16+
<string>yliw</string>
17+
<key>CFBundlePackageType</key>
18+
<string>APPL</string>
19+
<key>CFBundleShortVersionString</key>
20+
<string>$(FLUTTER_BUILD_NAME)</string>
21+
<key>CFBundleSignature</key>
22+
<string>????</string>
23+
<key>CFBundleVersion</key>
24+
<string>$(FLUTTER_BUILD_NUMBER)</string>
25+
<key>LSRequiresIPhoneOS</key>
26+
<true/>
27+
<key>UILaunchStoryboardName</key>
28+
<string>LaunchScreen</string>
29+
<key>UIMainStoryboardFile</key>
30+
<string>Main</string>
31+
<key>UISupportedInterfaceOrientations</key>
32+
<array>
33+
<string>UIInterfaceOrientationPortrait</string>
34+
<string>UIInterfaceOrientationLandscapeLeft</string>
35+
<string>UIInterfaceOrientationLandscapeRight</string>
36+
</array>
37+
<key>UISupportedInterfaceOrientations~ipad</key>
38+
<array>
39+
<string>UIInterfaceOrientationPortrait</string>
40+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
41+
<string>UIInterfaceOrientationLandscapeLeft</string>
42+
<string>UIInterfaceOrientationLandscapeRight</string>
43+
</array>
44+
<key>CADisableMinimumFrameDurationOnPhone</key>
45+
<true/>
46+
<key>UIApplicationSupportsIndirectInputEvents</key>
47+
<true/>
48+
<key>CFBundleLocalizations</key>
49+
<array>
50+
<string>en</string>
51+
</array>
52+
<key>UIStatusBarHidden</key>
53+
<false/>
54+
</dict>
5355
</plist>

lib/src/common/constants/gen/assets.gen.dart

-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pubspec.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: yliw
22
description: "A new Flutter project."
33
publish_to: "none"
4-
version: 0.1.1
4+
version: 0.1.2
55

66
environment:
77
sdk: ^3.5.4
@@ -62,10 +62,10 @@ flutter_gen:
6262
output: lib/src/common/constants/gen/
6363

6464
flutter_native_splash:
65-
color: "#54C5F8"
66-
image: assets/images/yliw_no_bg.png
67-
color_dark: "#01579B"
65+
color: "#000000"
66+
image: assets/images/yliw.png
67+
color_dark: "#000000"
6868
android_12:
69-
color: "#54C5F8"
70-
icon_background_color: "#54C5F8"
71-
image: assets/images/yliw_no_bg.png
69+
color: "#000000"
70+
icon_background_color: "#000000"
71+
image: assets/images/yliw.png

web/favicon.png

215 Bytes

web/icons/Icon-192.png

13.6 KB

web/icons/Icon-512.png

65.4 KB

web/icons/Icon-maskable-192.png

13.6 KB

web/icons/Icon-maskable-512.png

65.4 KB

web/index.html

+6-3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929

3030
<title>yliw</title>
3131
<link rel="manifest" href="manifest.json">
32+
33+
34+
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
3235
<style id="splash-screen-style">
3336
html {
3437
height: 100%
@@ -37,7 +40,7 @@
3740
body {
3841
margin: 0;
3942
min-height: 100%;
40-
background-color: #54C5F8;
43+
background-color: #000000;
4144
background-size: 100% 100%;
4245
}
4346

@@ -89,7 +92,7 @@
8992

9093
@media (prefers-color-scheme: dark) {
9194
body {
92-
background-color: #01579B;
95+
background-color: #000000;
9396
}
9497
}
9598
</style>
@@ -100,14 +103,14 @@
100103
document.body.style.background = "transparent";
101104
}
102105
</script>
103-
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
104106
</head>
105107
<body>
106108
<picture id="splash">
107109
<source srcset="splash/img/light-1x.png 1x, splash/img/light-2x.png 2x, splash/img/light-3x.png 3x, splash/img/light-4x.png 4x" media="(prefers-color-scheme: light)">
108110
<source srcset="splash/img/dark-1x.png 1x, splash/img/dark-2x.png 2x, splash/img/dark-3x.png 3x, splash/img/dark-4x.png 4x" media="(prefers-color-scheme: dark)">
109111
<img class="center" aria-hidden="true" src="splash/img/light-1x.png" alt="">
110112
</picture>
113+
111114
<script src="flutter_bootstrap.js" async=""></script>
112115

113116

web/splash/img/dark-1x.png

28.1 KB

web/splash/img/dark-2x.png

85.3 KB

web/splash/img/dark-3x.png

154 KB

web/splash/img/dark-4x.png

235 KB

web/splash/img/light-1x.png

28.1 KB

web/splash/img/light-2x.png

85.3 KB

web/splash/img/light-3x.png

154 KB

web/splash/img/light-4x.png

235 KB

windows/runner/resources/app_icon.ico

1.48 KB
Binary file not shown.

0 commit comments

Comments
 (0)