-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
constants.dart
209 lines (163 loc) · 8.34 KB
/
constants.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
import '../src/version.dart';
/// Start message for the CLI
const String START_MESSAGE = '''\n
╔════════════════════════════════════════════════════╗
║ ✨✨ ICONS LAUNCHER ✨✨ ║
╠════════════════════════════════════════════════════╣
║ Version: $packageVersion ║
╚════════════════════════════════════════════════════╝
\n''';
/// End message for the CLI
const String END_MESSAGE = '''\n
==> GENERATE LAUNCHER ICONS SUCCESSFULLY <==
❤️ THANK YOU! ❤️
''';
/// Flutter sdk gradle file location
const String FLUTTER_SDK_GRADLE_FILE =
'/packages/flutter_tools/gradle/flutter.gradle';
/// Android local properties file location
const String ANDROID_LOCAL_PROPERTIES = 'android/local.properties';
/// Android build gradle file location
const String ANDROID_GRADLE_FILE = 'android/app/build.gradle';
/// Android colors xml file location
const String ANDROID_COLOR_FILE = 'values/colors.xml';
/// Android AndroidManifest file location
const String ANDROID_MANIFEST_FILE = 'android/app/src/main/AndroidManifest.xml';
/// Android icon name
const String ANDROID_ICON_NAME = 'ic_launcher';
/// Android icon name with extension
const String ANDROID_ICON_FILE_NAME = '$ANDROID_ICON_NAME.png';
/// Android playstore icon name
const String ANDROID_PLAYSTORE_ICON_NAME = 'ic_launcher-playstore';
/// Android playstore icon name with extension
const String ANDROID_PLAYSTORE_ICON_FILE_NAME =
'$ANDROID_PLAYSTORE_ICON_NAME.png';
/// Android adaptive round icon name
const String ANDROID_ADAPTIVE_ROUND_ICON_NAME = 'ic_launcher_round';
/// Android adaptive round icon name with extension
const String ANDROID_ADAPTIVE_ROUND_ICON_FILE_NAME =
'$ANDROID_ADAPTIVE_ROUND_ICON_NAME.png';
/// Android adaptive monochrome icon name
const String ANDROID_ADAPTIVE_MONOCHROME_ICON_NAME = 'ic_launcher_monochrome';
/// Android adaptive monochrome icon name with extension
const String ANDROID_ADAPTIVE_MONOCHROME_ICON_FILE_NAME =
'$ANDROID_ADAPTIVE_MONOCHROME_ICON_NAME.png';
/// Android adaptive foreground icon name
const String ANDROID_ADAPTIVE_FOREGROUND_ICON_NAME = 'ic_launcher_foreground';
/// Android adaptive foreground icon name with extension
const String ANDROID_ADAPTIVE_FOREGROUND_ICON_FILE_NAME =
'$ANDROID_ADAPTIVE_FOREGROUND_ICON_NAME.png';
/// Android adaptive background icon name
const String ANDROID_ADAPTIVE_BACKGROUND_ICON_NAME = 'ic_launcher_background';
/// Android adaptive background icon name with extension
const String ANDROID_ADAPTIVE_BACKGROUND_ICON_FILE_NAME =
'$ANDROID_ADAPTIVE_BACKGROUND_ICON_NAME.png';
/// Android adaptive folder name
const String ANDROID_ADAPTIVE_XML_DIR = 'mipmap-anydpi-v26';
/// Android adaptive icon file
const String ANDROID_ADAPTIVE_XML_FILE_NAME = '$ANDROID_ICON_NAME.xml';
/// Android adapttive round xml file without extension
const String ANDROID_ADAPTIVE_ROUND_XML_FILE_NAME_WITHOUT_EXTENSION =
'ic_launcher_rounded';
/// Android adaptive round icon file
const String ANDROID_ADAPTIVE_ROUND_XML_FILE_NAME =
'$ANDROID_ADAPTIVE_ROUND_XML_FILE_NAME_WITHOUT_EXTENSION.xml';
/// Android launcher background color xml
const String IC_LAUNCHER_BACKGROUND_COLOR_XML = '''
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/$ANDROID_ADAPTIVE_BACKGROUND_ICON_NAME"/>
<foreground android:drawable="@mipmap/$ANDROID_ADAPTIVE_FOREGROUND_ICON_NAME"/>
<monochrome android:drawable="@mipmap/$ANDROID_ADAPTIVE_MONOCHROME_ICON_NAME"/>
</adaptive-icon>
''';
/// Android launcher background color with no monochrome xml
const String IC_LAUNCHER_BACKGROUND_COLOR_NO_MONOCHROME_XML = '''
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/$ANDROID_ADAPTIVE_BACKGROUND_ICON_NAME"/>
<foreground android:drawable="@mipmap/$ANDROID_ADAPTIVE_FOREGROUND_ICON_NAME"/>
</adaptive-icon>
''';
/// Android launcher background image xml
const String IC_LAUNCHER_MIP_MAP_XML = '''
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/$ANDROID_ADAPTIVE_BACKGROUND_ICON_NAME"/>
<foreground android:drawable="@mipmap/$ANDROID_ADAPTIVE_FOREGROUND_ICON_NAME"/>
<monochrome android:drawable="@mipmap/$ANDROID_ADAPTIVE_MONOCHROME_ICON_NAME"/>
</adaptive-icon>
''';
/// Android launcher background image with no monochrome xml
const String IC_LAUNCHER_MIP_MAP_NO_MONOCHROME_XML = '''
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/$ANDROID_ADAPTIVE_BACKGROUND_ICON_NAME"/>
<foreground android:drawable="@mipmap/$ANDROID_ADAPTIVE_FOREGROUND_ICON_NAME"/>
</adaptive-icon>
''';
/// Android launcher background round color xml
const String IC_LAUNCHER_ROUND_BACKGROUND_COLOR_XML = '''
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/$ANDROID_ADAPTIVE_BACKGROUND_ICON_NAME"/>
<foreground android:drawable="@mipmap/$ANDROID_ADAPTIVE_ROUND_ICON_NAME"/>
<monochrome android:drawable="@mipmap/$ANDROID_ADAPTIVE_MONOCHROME_ICON_NAME"/>
</adaptive-icon>
''';
/// Android launcher background round color with no monochrome xml
const String IC_LAUNCHER_ROUND_BACKGROUND_COLOR_NO_MONOCHROME_XML = '''
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/$ANDROID_ADAPTIVE_BACKGROUND_ICON_NAME"/>
<foreground android:drawable="@mipmap/$ANDROID_ADAPTIVE_ROUND_ICON_NAME"/>
</adaptive-icon>
''';
/// Android launcher background round image xml
const String IC_LAUNCHER_ROUND_MIP_MAP_XML = '''
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/$ANDROID_ADAPTIVE_BACKGROUND_ICON_NAME"/>
<foreground android:drawable="@mipmap/$ANDROID_ADAPTIVE_ROUND_ICON_NAME"/>
<monochrome android:drawable="@mipmap/$ANDROID_ADAPTIVE_MONOCHROME_ICON_NAME"/>
</adaptive-icon>
''';
/// Android launcher background round image with no monochrome xml
const String IC_LAUNCHER_ROUND_MIP_MAP_NO_MONOCHROME_XML = '''
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/$ANDROID_ADAPTIVE_BACKGROUND_ICON_NAME"/>
<foreground android:drawable="@mipmap/$ANDROID_ADAPTIVE_ROUND_ICON_NAME"/>
</adaptive-icon>
''';
/// IOS config file location
const String IOS_CONFIG_FILE = 'ios/Runner.xcodeproj/project.pbxproj';
/// IOS default icon name
const String IOS_DEFAULT_ICON_NAME = 'Icon-App';
/// Web default favicon folder
const String WEB_DEFAULT_FAVICON_DIR = 'web/';
/// Web default icon folder
const String WEB_DEFAULT_ICON_DIR = 'web/icons/';
/// MacOS default app icon folder
const String MACOS_DEFAULT_APP_ICON_DIR =
'macos/Runner/Assets.xcassets/AppIcon.appiconset/';
/// MacOS asset folder
const String MACOS_ASSET_DIR = 'macos/Runner/Assets.xcassets/';
/// MacOS config file location
const String MACOS_CONFIG_FILE = 'macos/Runner.xcodeproj/project.pbxproj';
/// MacOS default icon name
const String MACOS_DEFAULT_ICON_NAME = 'app_icon';
/// MacOS default icon file with extension
const String MACOS_DEFAULT_ICON_FILE_NAME = '$MACOS_DEFAULT_ICON_NAME.png';
/// Windows default icon folder
const String WINDOWS_DEFAULT_ICON_DIR = 'windows/runner/resources/';
/// Windows default icon name
const String WINDOWS_DEFAULT_ICON_NAME = 'app_icon';
/// Windows default icon file with extension
const String WINDOWS_DEFAULT_ICON_FILE_NAME = '$WINDOWS_DEFAULT_ICON_NAME.ico';
/// Linux default icon folder
const String LINUX_DEFAULT_ICON_DIR = 'snap/gui/';
/// Linux default icon name
const String LINUX_DEFAULT_ICON_NAME = 'app_icon';
/// Linux default icon file with extension
const String LINUX_DEFAULT_ICON_FILE_NAME = '$LINUX_DEFAULT_ICON_NAME.png';