Skip to content

Commit 43dbe04

Browse files
committed
fix the icons 50 and 57 in contents.json
the 50x50 icons are actually meant for ipad, but in our ios.dart they are marked as iphone. while the 57x57 should be 1x and 2x, while in our ios.dart we're using 1x and 3x
1 parent 29d9535 commit 43dbe04

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/ios.dart

+5-4
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ void createIcons(FlutterLauncherIconsConfig config, String? flavor) {
5454
image.channels = Channels.rgb;
5555
}
5656
if (image.channels == Channels.rgba) {
57-
print('\nWARNING: Icons with alpha channel are not allowed in the Apple App Store.\nSet "remove_alpha_ios: true" to remove it.\n');
57+
print(
58+
'\nWARNING: Icons with alpha channel are not allowed in the Apple App Store.\nSet "remove_alpha_ios: true" to remove it.\n');
5859
}
5960
String iconName;
6061
final dynamic iosConfig = config.ios;
@@ -262,13 +263,13 @@ List<Map<String, String>> createImageList(String fileNamePrefix) {
262263
.toJson(),
263264
ContentsImageObject(
264265
size: '50x50',
265-
idiom: 'iphone',
266+
idiom: 'ipad',
266267
filename: '$fileNamePrefix[email protected]',
267268
scale: '1x')
268269
.toJson(),
269270
ContentsImageObject(
270271
size: '50x50',
271-
idiom: 'iphone',
272+
idiom: 'ipad',
272273
filename: '$fileNamePrefix[email protected]',
273274
scale: '2x')
274275
.toJson(),
@@ -281,7 +282,7 @@ List<Map<String, String>> createImageList(String fileNamePrefix) {
281282
ContentsImageObject(
282283
size: '57x57',
283284
idiom: 'iphone',
284-
filename: '$fileNamePrefix-57x57@3x.png',
285+
filename: '$fileNamePrefix-57x57@2x.png',
285286
scale: '2x')
286287
.toJson(),
287288
ContentsImageObject(

0 commit comments

Comments
 (0)