Skip to content

Commit 195a089

Browse files
Prepared for deployment & release build.
Added icons as well.
1 parent 5ab0142 commit 195a089

Some content is hidden

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

49 files changed

+156
-194
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,4 @@ app.*.map.json
5252
/lib/src/bincode
5353
/lib/src/serde
5454
/lib/src/bindings
55+
/release_builds

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<application
33
android:label="pcb_fault_detection_ui"
44
android:name="${applicationName}"
5-
android:icon="@mipmap/ic_launcher">
5+
android:icon="@mipmap/launcher_icon">
66
<activity
77
android:name=".MainActivity"
88
android:exported="true"
3.01 KB
Loading
2.07 KB
Loading
3.84 KB
Loading
5.66 KB
Loading
7.42 KB
Loading

assets/icon/icon.png

18.2 KB
Loading

flutter_launcher_icons.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# flutter pub run flutter_launcher_icons
2+
flutter_launcher_icons:
3+
image_path: "assets/icon/icon.png"
4+
5+
android: "launcher_icon"
6+
# image_path_android: "assets/icon/icon.png"
7+
min_sdk_android: 21 # android min sdk min:16, default 21
8+
# adaptive_icon_background: "assets/icon/background.png"
9+
# adaptive_icon_foreground: "assets/icon/foreground.png"
10+
# adaptive_icon_foreground_inset: 16
11+
# adaptive_icon_monochrome: "assets/icon/monochrome.png"
12+
13+
ios: true
14+
# image_path_ios: "assets/icon/icon.png"
15+
remove_alpha_ios: true
16+
# image_path_ios_dark_transparent: "assets/icon/icon_dark.png"
17+
# image_path_ios_tinted_grayscale: "assets/icon/icon_tinted.png"
18+
# desaturate_tinted_to_grayscale_ios: true
19+
# background_color_ios: "#ffffff"
20+
21+
web:
22+
generate: true
23+
image_path: "assets/icon/icon.png"
24+
background_color: "#hexcode"
25+
theme_color: "#hexcode"
26+
27+
windows:
28+
generate: true
29+
image_path: "assets/icon/icon.png"
30+
icon_size: 48 # min:48, max:256, default: 48
31+
32+
macos:
33+
generate: true
34+
image_path: "assets/icon/icon.png"

ios/Runner.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@
427427
isa = XCBuildConfiguration;
428428
buildSettings = {
429429
ALWAYS_SEARCH_USER_PATHS = NO;
430-
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
430+
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
431431
CLANG_ANALYZER_NONNULL = YES;
432432
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
433433
CLANG_CXX_LIBRARY = "libc++";
@@ -484,7 +484,7 @@
484484
isa = XCBuildConfiguration;
485485
buildSettings = {
486486
ALWAYS_SEARCH_USER_PATHS = NO;
487-
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
487+
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
488488
CLANG_ANALYZER_NONNULL = YES;
489489
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
490490
CLANG_CXX_LIBRARY = "libc++";

0 commit comments

Comments
 (0)