Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/latest ios icon sizes (fixes #528) #567

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
151 changes: 69 additions & 82 deletions lib/ios.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,19 @@ class IosIconTemplate {

/// details of the ios icons which need to be generated
List<IosIconTemplate> iosIcons = <IosIconTemplate>[
IosIconTemplate(name: '-20x20@1x', size: 20),
IosIconTemplate(name: '-20x20@2x', size: 40),
IosIconTemplate(name: '-20x20@3x', size: 60),
IosIconTemplate(name: '-29x29@1x', size: 29),
IosIconTemplate(name: '-29x29@2x', size: 58),
IosIconTemplate(name: '-29x29@3x', size: 87),
IosIconTemplate(name: '-40x40@1x', size: 40),
IosIconTemplate(name: '-38x38@2x', size: 76),
IosIconTemplate(name: '-38x38@3x', size: 114),
IosIconTemplate(name: '-40x40@2x', size: 80),
IosIconTemplate(name: '-40x40@3x', size: 120),
IosIconTemplate(name: '-50x50@1x', size: 50),
IosIconTemplate(name: '-50x50@2x', size: 100),
IosIconTemplate(name: '-57x57@1x', size: 57),
IosIconTemplate(name: '-57x57@2x', size: 114),
IosIconTemplate(name: '-60x60@2x', size: 120),
IosIconTemplate(name: '-60x60@3x', size: 180),
IosIconTemplate(name: '-72x72@1x', size: 72),
IosIconTemplate(name: '-72x72@2x', size: 144),
IosIconTemplate(name: '-76x76@1x', size: 76),
IosIconTemplate(name: '-64x64@2x', size: 128),
IosIconTemplate(name: '-64x64@3x', size: 192),
IosIconTemplate(name: '-68x68@2x', size: 136),
IosIconTemplate(name: '-76x76@2x', size: 152),
IosIconTemplate(name: '-83.5x83.5@2x', size: 167),
IosIconTemplate(name: '-1024x1024@1x', size: 1024),
Expand Down Expand Up @@ -206,19 +201,22 @@ class ContentsImageObject {
ContentsImageObject({
required this.size,
required this.idiom,
required this.platform,
required this.filename,
required this.scale,
});

final String size;
final String idiom;
final String platform;
final String filename;
final String scale;

Map<String, String> toJson() {
return <String, String>{
'size': size,
'idiom': idiom,
'platform': platform,
'filename': filename,
'scale': scale,
};
Expand All @@ -243,151 +241,140 @@ List<Map<String, String>> createImageList(String fileNamePrefix) {
final List<Map<String, String>> imageList = <Map<String, String>>[
ContentsImageObject(
size: '20x20',
idiom: 'iphone',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '2x',
).toJson(),
ContentsImageObject(
size: '20x20',
idiom: 'iphone',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '3x',
).toJson(),
ContentsImageObject(
size: '29x29',
idiom: 'iphone',
filename: '[email protected]',
scale: '1x',
).toJson(),
ContentsImageObject(
size: '29x29',
idiom: 'iphone',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '2x',
).toJson(),
ContentsImageObject(
size: '29x29',
idiom: 'iphone',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '3x',
).toJson(),
ContentsImageObject(
size: '38x38',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '2x',
).toJson(),
ContentsImageObject(
size: '38x38',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '3x',
).toJson(), ContentsImageObject(
size: '40x40',
idiom: 'iphone',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '2x',
).toJson(),
ContentsImageObject(
size: '40x40',
idiom: 'iphone',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '3x',
).toJson(),
ContentsImageObject(
size: '50x50',
idiom: 'ipad',
filename: '[email protected]',
scale: '1x',
).toJson(),
ContentsImageObject(
size: '50x50',
idiom: 'ipad',
filename: '[email protected]',
scale: '2x',
).toJson(),
ContentsImageObject(
size: '57x57',
idiom: 'iphone',
filename: '[email protected]',
scale: '1x',
).toJson(),
ContentsImageObject(
size: '57x57',
idiom: 'iphone',
filename: '[email protected]',
scale: '2x',
).toJson(),
ContentsImageObject(
size: '60x60',
idiom: 'iphone',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '2x',
).toJson(),
ContentsImageObject(
size: '60x60',
idiom: 'iphone',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '3x',
).toJson(),
ContentsImageObject(
size: '20x20',
idiom: 'ipad',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '1x',
).toJson(),
ContentsImageObject(
size: '20x20',
idiom: 'ipad',
filename: '[email protected]',
scale: '2x',
).toJson(),
ContentsImageObject(
size: '29x29',
idiom: 'ipad',
filename: '[email protected]',
scale: '1x',
).toJson(),
ContentsImageObject(
size: '29x29',
idiom: 'ipad',
filename: '[email protected]',
size: '60x60',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '2x',
).toJson(),
ContentsImageObject(
size: '40x40',
idiom: 'ipad',
filename: '[email protected]',
scale: '1x',
size: '60x60',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '3x',
).toJson(),
ContentsImageObject(
size: '40x40',
idiom: 'ipad',
filename: '[email protected]',
size: '64x64',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '2x',
).toJson(),
ContentsImageObject(
size: '72x72',
idiom: 'ipad',
filename: '[email protected]',
scale: '1x',
size: '64x64',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '3x',
).toJson(),
ContentsImageObject(
size: '72x72',
idiom: 'ipad',
filename: '[email protected]',
size: '68x68',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '2x',
).toJson(),
ContentsImageObject(
size: '76x76',
idiom: 'ipad',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '1x',
).toJson(),
ContentsImageObject(
size: '76x76',
idiom: 'ipad',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '2x',
).toJson(),
ContentsImageObject(
size: '83.5x83.5',
idiom: 'ipad',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '2x',
).toJson(),
ContentsImageObject(
size: '1024x1024',
idiom: 'ios-marketing',
idiom: 'universal',
platform: 'ios',
filename: '[email protected]',
scale: '1x',
).toJson(),
Expand Down