This is an automated email from the ASF dual-hosted git repository. surajpindoria pushed a commit to branch 4.5.x in repository https://gitbox.apache.org/repos/asf/cordova-ios.git
commit 53a3ff478ce062a42909e1c32e68a7047e3ba318 Author: Suraj Pindoria <pindoria.su...@gmail.com> AuthorDate: Thu Sep 28 15:49:45 2017 -0700 CB-12896: (ios) Update icon mapping --- .../AppIcon.appiconset/Contents.json | 40 +++++++++++++++++++++- bin/templates/scripts/cordova/lib/prepare.js | 26 +++++++++----- 2 files changed, 57 insertions(+), 9 deletions(-) diff --git a/bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/Contents.json b/bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/Contents.json index 917881d..4c005a7 100644 --- a/bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/Contents.json +++ b/bin/templates/project/__PROJECT_NAME__/Images.xcassets/AppIcon.appiconset/Contents.json @@ -2,6 +2,18 @@ "images" : [ { "idiom" : "iphone", + "size" : "20x20", + "filename" : "icon...@2x.png", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "filename" : "icon...@3x.png", + "scale" : "3x" + }, + { + "idiom" : "iphone", "size" : "29x29", "filename" : "icon-small.png", "scale" : "1x" @@ -56,6 +68,18 @@ }, { "idiom" : "ipad", + "size" : "20x20", + "filename" : "icon-20.png", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "filename" : "icon...@2x.png", + "scale" : "2x" + }, + { + "idiom" : "ipad", "size" : "29x29", "filename" : "icon-small.png", "scale" : "1x" @@ -129,6 +153,7 @@ { "size" : "24x24", "idiom" : "watch", + "filename" : "appicon24...@2x.png", "scale" : "2x", "role" : "notificationCenter", "subtype" : "38mm" @@ -136,6 +161,7 @@ { "size" : "27.5x27.5", "idiom" : "watch", + "filename" : "appicon27.5x2...@2x.png", "scale" : "2x", "role" : "notificationCenter", "subtype" : "42mm" @@ -143,18 +169,21 @@ { "size" : "29x29", "idiom" : "watch", + "filename" : "appicon29...@2x.png", "role" : "companionSettings", "scale" : "2x" }, { "size" : "29x29", "idiom" : "watch", + "filename" : "appicon29...@3x.png", "role" : "companionSettings", "scale" : "3x" }, { "size" : "40x40", "idiom" : "watch", + "filename" : "appicon40...@2x.png", "scale" : "2x", "role" : "appLauncher", "subtype" : "38mm" @@ -162,6 +191,7 @@ { "size" : "44x44", "idiom" : "watch", + "filename" : "appicon44...@2x.png", "scale" : "2x", "role" : "longLook", "subtype" : "42mm" @@ -169,6 +199,7 @@ { "size" : "86x86", "idiom" : "watch", + "filename" : "appicon86...@2x.png", "scale" : "2x", "role" : "quickLook", "subtype" : "38mm" @@ -176,13 +207,20 @@ { "size" : "98x98", "idiom" : "watch", + "filename" : "appicon98...@2x.png", "scale" : "2x", "role" : "quickLook", "subtype" : "42mm" + }, + { + "size" : "1024x1024", + "idiom" : "watch-marketing", + "filename" : "icon-1024.png", + "scale" : "1x" } ], "info" : { "version" : 1, "author" : "xcode" } -} \ No newline at end of file +} diff --git a/bin/templates/scripts/cordova/lib/prepare.js b/bin/templates/scripts/cordova/lib/prepare.js index d4fb8b3..17bbfeb 100644 --- a/bin/templates/scripts/cordova/lib/prepare.js +++ b/bin/templates/scripts/cordova/lib/prepare.js @@ -313,23 +313,33 @@ function mapIconResources (icons, iconsDir) { // See https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html // for launch images sizes reference. var platformIcons = [ + {dest: 'icon-20.png', width: 20, height: 20}, + {dest: 'icon...@2x.png', width: 40, height: 40}, + {dest: 'icon...@3x.png', width: 60, height: 60}, + {dest: 'icon-40.png', width: 40, height: 40}, + {dest: 'icon-50.png', width: 50, height: 50}, + {dest: 'icon...@2x.png', width: 100, height: 100}, {dest: 'icon...@2x.png', width: 120, height: 120}, {dest: 'icon...@3x.png', width: 180, height: 180}, + {dest: 'icon-72.png', width: 72, height: 72}, + {dest: 'icon...@2x.png', width: 144, height: 144}, {dest: 'icon-76.png', width: 76, height: 76}, {dest: 'icon...@2x.png', width: 152, height: 152}, + {dest: 'icon-8...@2x.png', width: 167, height: 167}, + {dest: 'icon-1024.png', width: 1024, height: 1024}, {dest: 'icon-small.png', width: 29, height: 29}, {dest: 'icon-sm...@2x.png', width: 58, height: 58}, - {dest: 'icon-40.png', width: 40, height: 40}, - {dest: 'icon...@2x.png', width: 80, height: 80}, {dest: 'icon-sm...@3x.png', width: 87, height: 87}, {dest: 'icon.png', width: 57, height: 57}, {dest: 'i...@2x.png', width: 114, height: 114}, - {dest: 'icon-72.png', width: 72, height: 72}, - {dest: 'icon...@2x.png', width: 144, height: 144}, - {dest: 'icon-50.png', width: 50, height: 50}, - {dest: 'icon...@2x.png', width: 100, height: 100}, - {dest: 'icon-8...@2x.png', width: 167, height: 167}, - {dest: 'icon-1024.png', width: 1024, height: 1024} + {dest: 'appicon24...@2x.png', width: 48, height: 48}, + {dest: 'appicon27.5x2...@2x.png', width: 55, height: 55}, + {dest: 'appicon29...@2x.png', width: 58, height: 58}, + {dest: 'appicon29...@3x.png', width: 87, height: 87}, + {dest: 'appicon40...@2x.png', width: 80, height: 80}, + {dest: 'appicon44...@2x.png', width: 88, height: 88}, + {dest: 'appicon86...@2x.png', width: 172, height: 172}, + {dest: 'appicon98...@2x.png', width: 196, height: 196} ]; var pathMap = {}; -- To stop receiving notification emails like this one, please contact "commits@cordova.apache.org" <commits@cordova.apache.org>. --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org