Skip to content

Commit b72cac7

Browse files
authored
Merge pull request #23 from mhmzdev/app-icon-updated
UI: app_icon updated android, ios, macos
2 parents 309d8f4 + 2cb0693 commit b72cac7

Some content is hidden

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

41 files changed

+86
-74
lines changed

android/app/src/main/AndroidManifest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
22
<uses-permission android:name="android.permission.INTERNET" />
33
<application
4-
android:label="devfolio"
4+
android:label="Devfolio"
55
android:name="${applicationName}"
6-
android:icon="@mipmap/ic_launcher">
6+
android:icon="@mipmap/launcher_icon">
77
<activity
88
android:name=".MainActivity"
99
android:exported="true"

assets/app/1024.png

24.1 KB

ios/Runner.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@
539539
isa = XCBuildConfiguration;
540540
buildSettings = {
541541
ALWAYS_SEARCH_USER_PATHS = NO;
542-
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
542+
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
543543
CLANG_ANALYZER_NONNULL = YES;
544544
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
545545
CLANG_CXX_LIBRARY = "libc++";
@@ -596,7 +596,7 @@
596596
isa = XCBuildConfiguration;
597597
buildSettings = {
598598
ALWAYS_SEARCH_USER_PATHS = NO;
599-
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
599+
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
600600
CLANG_ANALYZER_NONNULL = YES;
601601
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
602602
CLANG_CXX_LIBRARY = "libc++";

lib/utils/utils.dart

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import 'package:folio/widget/footer.dart';
88

99
class StaticUtils {
1010
static const String hi = 'assets/hi.gif';
11+
static const String logo1024 = 'assets/app/1024.png';
1112

1213
// photos
1314
static const String mobilePhoto = 'assets/photos/mobile.png';

macos/Flutter/GeneratedPluginRegistrant.swift

-4
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@ import Foundation
77

88
import shared_preferences_foundation
99
import url_launcher_macos
10-
import video_player_avfoundation
11-
import wakelock_macos
1210

1311
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
1412
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
1513
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
16-
FVPVideoPlayerPlugin.register(with: registry.registrar(forPlugin: "FVPVideoPlayerPlugin"))
17-
WakelockMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockMacosPlugin"))
1814
}
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
11
{
2-
"images" : [
3-
{
4-
"size" : "16x16",
5-
"idiom" : "mac",
6-
"filename" : "app_icon_16.png",
7-
"scale" : "1x"
2+
"info": {
3+
"version": 1,
4+
"author": "xcode"
85
},
9-
{
10-
"size" : "16x16",
11-
"idiom" : "mac",
12-
"filename" : "app_icon_32.png",
13-
"scale" : "2x"
14-
},
15-
{
16-
"size" : "32x32",
17-
"idiom" : "mac",
18-
"filename" : "app_icon_32.png",
19-
"scale" : "1x"
20-
},
21-
{
22-
"size" : "32x32",
23-
"idiom" : "mac",
24-
"filename" : "app_icon_64.png",
25-
"scale" : "2x"
26-
},
27-
{
28-
"size" : "128x128",
29-
"idiom" : "mac",
30-
"filename" : "app_icon_128.png",
31-
"scale" : "1x"
32-
},
33-
{
34-
"size" : "128x128",
35-
"idiom" : "mac",
36-
"filename" : "app_icon_256.png",
37-
"scale" : "2x"
38-
},
39-
{
40-
"size" : "256x256",
41-
"idiom" : "mac",
42-
"filename" : "app_icon_256.png",
43-
"scale" : "1x"
44-
},
45-
{
46-
"size" : "256x256",
47-
"idiom" : "mac",
48-
"filename" : "app_icon_512.png",
49-
"scale" : "2x"
50-
},
51-
{
52-
"size" : "512x512",
53-
"idiom" : "mac",
54-
"filename" : "app_icon_512.png",
55-
"scale" : "1x"
56-
},
57-
{
58-
"size" : "512x512",
59-
"idiom" : "mac",
60-
"filename" : "app_icon_1024.png",
61-
"scale" : "2x"
62-
}
63-
],
64-
"info" : {
65-
"version" : 1,
66-
"author" : "xcode"
67-
}
68-
}
6+
"images": [
7+
{
8+
"size": "16x16",
9+
"idiom": "mac",
10+
"filename": "app_icon_16.png",
11+
"scale": "1x"
12+
},
13+
{
14+
"size": "16x16",
15+
"idiom": "mac",
16+
"filename": "app_icon_32.png",
17+
"scale": "2x"
18+
},
19+
{
20+
"size": "32x32",
21+
"idiom": "mac",
22+
"filename": "app_icon_32.png",
23+
"scale": "1x"
24+
},
25+
{
26+
"size": "32x32",
27+
"idiom": "mac",
28+
"filename": "app_icon_64.png",
29+
"scale": "2x"
30+
},
31+
{
32+
"size": "128x128",
33+
"idiom": "mac",
34+
"filename": "app_icon_128.png",
35+
"scale": "1x"
36+
},
37+
{
38+
"size": "128x128",
39+
"idiom": "mac",
40+
"filename": "app_icon_256.png",
41+
"scale": "2x"
42+
},
43+
{
44+
"size": "256x256",
45+
"idiom": "mac",
46+
"filename": "app_icon_256.png",
47+
"scale": "1x"
48+
},
49+
{
50+
"size": "256x256",
51+
"idiom": "mac",
52+
"filename": "app_icon_512.png",
53+
"scale": "2x"
54+
},
55+
{
56+
"size": "512x512",
57+
"idiom": "mac",
58+
"filename": "app_icon_512.png",
59+
"scale": "1x"
60+
},
61+
{
62+
"size": "512x512",
63+
"idiom": "mac",
64+
"filename": "app_icon_1024.png",
65+
"scale": "2x"
66+
}
67+
]
68+
}

pubspec.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@ dev_dependencies:
4646
sdk: flutter
4747

4848
flutter_lints: ^4.0.0
49+
# flutter_launcher_icons: ^0.13.1
50+
51+
flutter_launcher_icons:
52+
android: "launcher_icon"
53+
ios: true
54+
image_path: "assets/app/1024.png"
55+
min_sdk_android: 21 # android min sdk min:16, default 21
56+
windows:
57+
generate: true
58+
image_path: "assets/app/1024.png"
59+
icon_size: 48 # min:48, max:256, default: 48
60+
macos:
61+
generate: true
62+
image_path: "assets/app/1024.png"
4963

5064
# For information on the generic Dart part of this file, see the
5165
# following page: https://dart.dev/tools/pub/pubspec
@@ -57,6 +71,7 @@ flutter:
5771
# To add assets to your application, add an assets section, like this:
5872
assets:
5973
- assets/
74+
- assets/app/
6075
- assets/work/
6176
- assets/photos/
6277
- assets/services/

windows/runner/resources/app_icon.ico

-31.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)