Skip to content

Commit 5a33f25

Browse files
author
Kelvin Kao
committed
Update to Ignite 1.16.1 (TMFoundation 1.4.4, Retail 3.6.1)
1 parent 2868b31 commit 5a33f25

File tree

4 files changed

+186
-9
lines changed

4 files changed

+186
-9
lines changed

TMSDKDemoIntegration.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@
999999
repositoryURL = "https://github.com/ticketmaster/iOS-TicketmasterSDK.git";
10001000
requirement = {
10011001
kind = exactVersion;
1002-
version = 1.15.1;
1002+
version = 1.16.1;
10031003
};
10041004
};
10051005
/* End XCRemoteSwiftPackageReference section */

TMSDKDemoIntegration/Logic/PrePurchase/PrePurchaseHelper+NavigationDelegate.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ extension PrePurchaseHelper: TMPrePurchaseNavigationDelegate {
1919
///
2020
/// - Parameters:
2121
/// - eventIdentifier: Event identifier
22-
func prePurchaseViewController(_ viewController: TMPrePurchaseViewController, navigateToEventDetailsPageWithIdentifier eventIdentifier: String) {
22+
func prePurchaseViewController(_ viewController: TMPrePurchaseViewController, navigateToEventDetailsPageWithIdentifier eventIdentifier: String,
23+
domain: MarketDomain?) {
2324
print("navigateToEventDetailsPageWithIdentifier: \(eventIdentifier)")
2425
// REQUIRED:
2526
// PrePurchase is asking us to present the Purchase SDK for this event

TMSDKDemoIntegration/Menus/PrePurchase/MarketLocation+AdditionalMarkets.swift

Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@ extension MarketLocation {
1818
case .NZ: MarketLocation.newZealand_Auckland()
1919
case .UK: MarketLocation.uk_London()
2020
case .IE: MarketLocation.ie_Dublin()
21+
case .AT: MarketLocation.austria_Vienna()
22+
case .PL: MarketLocation.poland_Warsaw()
23+
case .NO: MarketLocation.norway_Oslo()
24+
case .FI: MarketLocation.finland_Helsinki()
25+
case .BE: MarketLocation.belgium_Brussels()
26+
case .CZ: MarketLocation.czechRepublic_Prague()
27+
case .SE: MarketLocation.sweden_Stockholm()
28+
case .ZA: MarketLocation.southAfrica_Johannesburg()
29+
case .ES: MarketLocation.spain_Madrid()
30+
case .DE: MarketLocation.germany_Berlin()
31+
case .AE: MarketLocation.uae_Dubai()
32+
case .NL: MarketLocation.netherlands_Amsterdam()
33+
case .CH: MarketLocation.switzerland_Zurich()
34+
case .DK: MarketLocation.denmark_Copenhagen()
2135
default: MarketLocation.California_LosAngeles()
2236
}
2337
}
@@ -74,4 +88,172 @@ extension MarketLocation {
7488

7589
return MarketLocation(domain: domain, identifier: "\(marketID)", name: marketName, localizedName: description, dmaId: nil, countryCode: domain.countryCode, userLocation: UserLocation(location: clLocation, source: .appMarketList), source: .appMarketList)
7690
}
91+
92+
static func austria_Vienna() -> MarketLocation {
93+
let domain = MarketDomain.AT
94+
return MarketLocation(domain: domain,
95+
identifier: "",
96+
name: "Vienna",
97+
localizedName: "Vienna, AT",
98+
dmaId: nil,
99+
countryCode: domain.countryCode,
100+
userLocation: UserLocation(location: CLLocation(latitude: 48.2082, longitude: 16.3738), source: .appMarketList),
101+
source: .appMarketList)
102+
}
103+
104+
static func poland_Warsaw() -> MarketLocation {
105+
let domain = MarketDomain.PL
106+
return MarketLocation(domain: domain,
107+
identifier: "",
108+
name: "Warsaw",
109+
localizedName: "Warsaw, PL",
110+
dmaId: nil,
111+
countryCode: domain.countryCode,
112+
userLocation: UserLocation(location: CLLocation(latitude: 52.2297, longitude: 21.0122), source: .appMarketList),
113+
source: .appMarketList)
114+
}
115+
116+
static func norway_Oslo() -> MarketLocation {
117+
let domain = MarketDomain.NO
118+
return MarketLocation(domain: domain,
119+
identifier: "",
120+
name: "Oslo",
121+
localizedName: "Oslo, NO",
122+
dmaId: nil,
123+
countryCode: domain.countryCode,
124+
userLocation: UserLocation(location: CLLocation(latitude: 59.9139, longitude: 10.7522), source: .appMarketList),
125+
source: .appMarketList)
126+
}
127+
128+
static func finland_Helsinki() -> MarketLocation {
129+
let domain = MarketDomain.FI
130+
return MarketLocation(domain: domain,
131+
identifier: "",
132+
name: "Helsinki",
133+
localizedName: "Helsinki, FI",
134+
dmaId: nil,
135+
countryCode: domain.countryCode,
136+
userLocation: UserLocation(location: CLLocation(latitude: 60.1695, longitude: 24.9354), source: .appMarketList),
137+
source: .appMarketList)
138+
}
139+
140+
static func belgium_Brussels() -> MarketLocation {
141+
let domain = MarketDomain.BE
142+
return MarketLocation(domain: domain,
143+
identifier: "",
144+
name: "Brussels",
145+
localizedName: "Brussels, BE",
146+
dmaId: nil,
147+
countryCode: domain.countryCode,
148+
userLocation: UserLocation(location: CLLocation(latitude: 50.8503, longitude: 4.3517), source: .appMarketList),
149+
source: .appMarketList)
150+
}
151+
152+
static func czechRepublic_Prague() -> MarketLocation {
153+
let domain = MarketDomain.CZ
154+
return MarketLocation(domain: domain,
155+
identifier: "",
156+
name: "Prague",
157+
localizedName: "Prague, CZ",
158+
dmaId: nil,
159+
countryCode: domain.countryCode,
160+
userLocation: UserLocation(location: CLLocation(latitude: 50.0755, longitude: 14.4378), source: .appMarketList),
161+
source: .appMarketList)
162+
}
163+
164+
static func sweden_Stockholm() -> MarketLocation {
165+
let domain = MarketDomain.SE
166+
return MarketLocation(domain: domain,
167+
identifier: "",
168+
name: "Stockholm",
169+
localizedName: "Stockholm, SE",
170+
dmaId: nil,
171+
countryCode: domain.countryCode,
172+
userLocation: UserLocation(location: CLLocation(latitude: 59.3293, longitude: 18.0686), source: .appMarketList),
173+
source: .appMarketList)
174+
}
175+
176+
static func southAfrica_Johannesburg() -> MarketLocation {
177+
let domain = MarketDomain.ZA
178+
return MarketLocation(domain: domain,
179+
identifier: "",
180+
name: "Johannesburg",
181+
localizedName: "Johannesburg, ZA",
182+
dmaId: nil,
183+
countryCode: domain.countryCode,
184+
userLocation: UserLocation(location: CLLocation(latitude: -26.2041, longitude: 28.0473), source: .appMarketList),
185+
source: .appMarketList)
186+
}
187+
188+
static func spain_Madrid() -> MarketLocation {
189+
let domain = MarketDomain.ES
190+
return MarketLocation(domain: domain,
191+
identifier: "",
192+
name: "Madrid",
193+
localizedName: "Madrid, ES",
194+
dmaId: nil,
195+
countryCode: domain.countryCode,
196+
userLocation: UserLocation(location: CLLocation(latitude: 40.4168, longitude: -3.7038), source: .appMarketList),
197+
source: .appMarketList)
198+
}
199+
200+
static func germany_Berlin() -> MarketLocation {
201+
let domain = MarketDomain.DE
202+
return MarketLocation(domain: domain,
203+
identifier: "",
204+
name: "Berlin",
205+
localizedName: "Berlin, DE",
206+
dmaId: nil,
207+
countryCode: domain.countryCode,
208+
userLocation: UserLocation(location: CLLocation(latitude: 52.5200, longitude: 13.4050), source: .appMarketList),
209+
source: .appMarketList)
210+
}
211+
212+
static func uae_Dubai() -> MarketLocation {
213+
let domain = MarketDomain.AE
214+
return MarketLocation(domain: domain,
215+
identifier: "",
216+
name: "Dubai",
217+
localizedName: "Dubai, AE",
218+
dmaId: nil,
219+
countryCode: domain.countryCode,
220+
userLocation: UserLocation(location: CLLocation(latitude: 25.276987, longitude: 55.296249), source: .appMarketList),
221+
source: .appMarketList)
222+
}
223+
224+
static func netherlands_Amsterdam() -> MarketLocation {
225+
let domain = MarketDomain.NL
226+
return MarketLocation(domain: domain,
227+
identifier: "",
228+
name: "Amsterdam",
229+
localizedName: "Amsterdam, NL",
230+
dmaId: nil,
231+
countryCode: domain.countryCode,
232+
userLocation: UserLocation(location: CLLocation(latitude: 52.3676, longitude: 4.9041), source: .appMarketList),
233+
source: .appMarketList)
234+
}
235+
236+
static func switzerland_Zurich() -> MarketLocation {
237+
let domain = MarketDomain.CH
238+
return MarketLocation(domain: domain,
239+
identifier: "",
240+
name: "Zurich",
241+
localizedName: "Zurich, CH",
242+
dmaId: nil,
243+
countryCode: domain.countryCode,
244+
userLocation: UserLocation(location: CLLocation(latitude: 47.3769, longitude: 8.5417), source: .appMarketList),
245+
source: .appMarketList)
246+
}
247+
248+
static func denmark_Copenhagen() -> MarketLocation {
249+
let domain = MarketDomain.DK
250+
return MarketLocation(domain: domain,
251+
identifier: "",
252+
name: "Copenhagen",
253+
localizedName: "Copenhagen, DK",
254+
dmaId: nil,
255+
countryCode: domain.countryCode,
256+
userLocation: UserLocation(location: CLLocation(latitude: 55.6761, longitude: 12.5683), source: .appMarketList),
257+
source: .appMarketList)
258+
}
77259
}

TMSDKDemoIntegration/Menus/PrePurchase/PrePurchaseVC+BuildMenu.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,7 @@ extension PrePurchaseViewController {
105105
extension MarketDomain {
106106

107107
static var sampleKeys: [String] {
108-
return [MarketDomain.US.stringValue.uppercased(),
109-
MarketDomain.CA.stringValue.uppercased(),
110-
MarketDomain.AU.stringValue.uppercased(),
111-
MarketDomain.NZ.stringValue.uppercased(),
112-
MarketDomain.UK.stringValue.uppercased(),
113-
MarketDomain.IE.stringValue.uppercased(),
114-
MarketDomain.MX.stringValue.uppercased()]
108+
return MarketDomain.allCases.map { $0.stringValue.uppercased() }
115109
}
116110

117111
var defaultSampleLocale: DiscoveryLocale {

0 commit comments

Comments
 (0)