Skip to content

Commit 05d4864

Browse files
Merge branch 'MarketingIcon'
2 parents c744912 + 849ab4c commit 05d4864

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

XCAssetPacker/DeviceIdiom.swift

+5-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import Foundation
1010

1111

1212
public enum DeviceIdiom: String {
13-
case watch, iPhone, iPad
13+
case watch, iPhone, iPad, iOSMarketing
1414

15-
static var all: [DeviceIdiom] = [watch, iPhone, iPad]
15+
static var all: [DeviceIdiom] = [watch, iPhone, iPad, iOSMarketing]
1616

1717

1818
init?(_ idiomString: String) {
@@ -39,6 +39,9 @@ public enum DeviceIdiom: String {
3939

4040
case .iPad:
4141
return "ipad"
42+
43+
case .iOSMarketing:
44+
return "ios-marketing"
4245
}
4346
}
4447

XCAssetPacker/ImageProperties.swift

+11-2
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ struct ImageProperties {
131131

132132

133133
enum ImageType {
134-
case watch, watch38, watch42, universal, notification, settings, spotlight, iPhoneAppIcon, iPadAppIcon, iPadProAppIcon
134+
case watch, watch38, watch42, universal, notification, settings, spotlight, iPhoneAppIcon, iPadAppIcon, iPadProAppIcon, iTunesPreview
135135

136136

137137
static var all: [ImageType] {
138-
return [watch, watch38, watch42, universal, notification, settings, spotlight, iPhoneAppIcon, iPadAppIcon, iPadProAppIcon]
138+
return [watch, watch38, watch42, universal, notification, settings, spotlight, iPhoneAppIcon, iPadAppIcon, iPadProAppIcon, iTunesPreview]
139139
}
140140

141141

@@ -152,6 +152,9 @@ enum ImageType {
152152
case .iPadAppIcon, .iPadProAppIcon:
153153
idiom = .iPad
154154

155+
case .iTunesPreview:
156+
idiom = .iOSMarketing
157+
155158
default:
156159
idiom = nil
157160
}
@@ -225,6 +228,9 @@ enum ImageType {
225228
case .iPadProAppIcon:
226229
return "-83.5"
227230

231+
case .iTunesPreview:
232+
return "-1024"
233+
228234
case .universal:
229235
return nil
230236
}
@@ -250,6 +256,9 @@ enum ImageType {
250256

251257
case .iPadProAppIcon:
252258
return "83.5x83.5"
259+
260+
case .iTunesPreview:
261+
return "1024x1024"
253262

254263
default:
255264
return nil

XCAssetPacker/main.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import Foundation
2424
import Cocoa
2525

2626

27-
let versionNumber = "1.11"
27+
let versionNumber = "1.2"
2828

2929
// Setup command line options
3030
let inputPathOption = StringOption(shortFlag: "i", longFlag: "input", helpMessage: "Path to the input folder.")

0 commit comments

Comments
 (0)