Showing
19 changed files
with
94 additions
and
131 deletions
... | @@ -27,7 +27,7 @@ Pod::Spec.new do |spec| | ... | @@ -27,7 +27,7 @@ Pod::Spec.new do |spec| |
27 | spec.exclude_files = "Classes/Exclude" | 27 | spec.exclude_files = "Classes/Exclude" |
28 | 28 | ||
29 | # spec.dependency 'RSBarcodes_Swift', '~> 5.1.1' | 29 | # spec.dependency 'RSBarcodes_Swift', '~> 5.1.1' |
30 | - spec.dependency 'SwiftEventBus' | 30 | + # spec.dependency 'SwiftEventBus' |
31 | 31 | ||
32 | # spec.resource_bundles = { 'ResourcesBundle' => ['SwiftWarplyFramework/**/*.{png,jpeg,jpg,storyboard,xib,xcassets,json,ttf,imageset,strings}'] } | 32 | # spec.resource_bundles = { 'ResourcesBundle' => ['SwiftWarplyFramework/**/*.{png,jpeg,jpg,storyboard,xib,xcassets,json,ttf,imageset,strings}'] } |
33 | spec.resource_bundles = { 'ResourcesBundle' => ['SwiftWarplyFramework/**/*.{storyboard,xib,otf,ttf,xcassets}'] } | 33 | spec.resource_bundles = { 'ResourcesBundle' => ['SwiftWarplyFramework/**/*.{storyboard,xib,otf,ttf,xcassets}'] } | ... | ... |
... | @@ -58,7 +58,6 @@ | ... | @@ -58,7 +58,6 @@ |
58 | 1EEA9FD02B7371670019C854 /* OffersTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EEA9FCF2B7371670019C854 /* OffersTableViewCell.swift */; }; | 58 | 1EEA9FD02B7371670019C854 /* OffersTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EEA9FCF2B7371670019C854 /* OffersTableViewCell.swift */; }; |
59 | 1EEA9FD22B737D900019C854 /* LoyaltyViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EEA9FD12B737D900019C854 /* LoyaltyViewController.swift */; }; | 59 | 1EEA9FD22B737D900019C854 /* LoyaltyViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EEA9FD12B737D900019C854 /* LoyaltyViewController.swift */; }; |
60 | 1EEA9FD42B7384260019C854 /* FiltersTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EEA9FD32B7384260019C854 /* FiltersTableViewCell.swift */; }; | 60 | 1EEA9FD42B7384260019C854 /* FiltersTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EEA9FD32B7384260019C854 /* FiltersTableViewCell.swift */; }; |
61 | - 1EEAA0152B73B0EA0019C854 /* SwiftEventBus in Frameworks */ = {isa = PBXBuildFile; productRef = 1EEAA0142B73B0EA0019C854 /* SwiftEventBus */; }; | ||
62 | 7630AD9A6242D60846D6750C /* Pods_SwiftWarplyFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C0D5F56DD4E5371A50AD2D87 /* Pods_SwiftWarplyFramework.framework */; }; | 61 | 7630AD9A6242D60846D6750C /* Pods_SwiftWarplyFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C0D5F56DD4E5371A50AD2D87 /* Pods_SwiftWarplyFramework.framework */; }; |
63 | A02F34052882B6E60086465F /* TelcoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A02F34042882B6E60086465F /* TelcoViewController.swift */; }; | 62 | A02F34052882B6E60086465F /* TelcoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A02F34042882B6E60086465F /* TelcoViewController.swift */; }; |
64 | A04D31DE288FF670000E43B5 /* HistoryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A04D31DD288FF670000E43B5 /* HistoryViewController.swift */; }; | 63 | A04D31DE288FF670000E43B5 /* HistoryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A04D31DD288FF670000E43B5 /* HistoryViewController.swift */; }; |
... | @@ -396,7 +395,6 @@ | ... | @@ -396,7 +395,6 @@ |
396 | isa = PBXFrameworksBuildPhase; | 395 | isa = PBXFrameworksBuildPhase; |
397 | buildActionMask = 2147483647; | 396 | buildActionMask = 2147483647; |
398 | files = ( | 397 | files = ( |
399 | - 1EEAA0152B73B0EA0019C854 /* SwiftEventBus in Frameworks */, | ||
400 | 7630AD9A6242D60846D6750C /* Pods_SwiftWarplyFramework.framework in Frameworks */, | 398 | 7630AD9A6242D60846D6750C /* Pods_SwiftWarplyFramework.framework in Frameworks */, |
401 | ); | 399 | ); |
402 | runOnlyForDeploymentPostprocessing = 0; | 400 | runOnlyForDeploymentPostprocessing = 0; |
... | @@ -884,7 +882,6 @@ | ... | @@ -884,7 +882,6 @@ |
884 | ); | 882 | ); |
885 | name = SwiftWarplyFramework; | 883 | name = SwiftWarplyFramework; |
886 | packageProductDependencies = ( | 884 | packageProductDependencies = ( |
887 | - 1EEAA0142B73B0EA0019C854 /* SwiftEventBus */, | ||
888 | ); | 885 | ); |
889 | productName = SwiftWarplyFramework; | 886 | productName = SwiftWarplyFramework; |
890 | productReference = E6A7784E282933340045BBA8 /* SwiftWarplyFramework.framework */; | 887 | productReference = E6A7784E282933340045BBA8 /* SwiftWarplyFramework.framework */; |
... | @@ -915,7 +912,6 @@ | ... | @@ -915,7 +912,6 @@ |
915 | ); | 912 | ); |
916 | mainGroup = E6A77844282933340045BBA8; | 913 | mainGroup = E6A77844282933340045BBA8; |
917 | packageReferences = ( | 914 | packageReferences = ( |
918 | - 1EEAA0132B73B0EA0019C854 /* XCRemoteSwiftPackageReference "SwiftEventBus" */, | ||
919 | ); | 915 | ); |
920 | productRefGroup = E6A7784F282933340045BBA8 /* Products */; | 916 | productRefGroup = E6A7784F282933340045BBA8 /* Products */; |
921 | projectDirPath = ""; | 917 | projectDirPath = ""; |
... | @@ -1321,25 +1317,6 @@ | ... | @@ -1321,25 +1317,6 @@ |
1321 | defaultConfigurationName = Release; | 1317 | defaultConfigurationName = Release; |
1322 | }; | 1318 | }; |
1323 | /* End XCConfigurationList section */ | 1319 | /* End XCConfigurationList section */ |
1324 | - | ||
1325 | -/* Begin XCRemoteSwiftPackageReference section */ | ||
1326 | - 1EEAA0132B73B0EA0019C854 /* XCRemoteSwiftPackageReference "SwiftEventBus" */ = { | ||
1327 | - isa = XCRemoteSwiftPackageReference; | ||
1328 | - repositoryURL = "https://github.com/cesarferreira/SwiftEventBus"; | ||
1329 | - requirement = { | ||
1330 | - kind = upToNextMajorVersion; | ||
1331 | - minimumVersion = 5.1.0; | ||
1332 | - }; | ||
1333 | - }; | ||
1334 | -/* End XCRemoteSwiftPackageReference section */ | ||
1335 | - | ||
1336 | -/* Begin XCSwiftPackageProductDependency section */ | ||
1337 | - 1EEAA0142B73B0EA0019C854 /* SwiftEventBus */ = { | ||
1338 | - isa = XCSwiftPackageProductDependency; | ||
1339 | - package = 1EEAA0132B73B0EA0019C854 /* XCRemoteSwiftPackageReference "SwiftEventBus" */; | ||
1340 | - productName = SwiftEventBus; | ||
1341 | - }; | ||
1342 | -/* End XCSwiftPackageProductDependency section */ | ||
1343 | }; | 1320 | }; |
1344 | rootObject = E6A77845282933340045BBA8 /* Project object */; | 1321 | rootObject = E6A77845282933340045BBA8 /* Project object */; |
1345 | } | 1322 | } | ... | ... |
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcshareddata/swiftpm/Package.resolved
deleted
100644 → 0
1 | -{ | ||
2 | - "pins" : [ | ||
3 | - { | ||
4 | - "identity" : "swifteventbus", | ||
5 | - "kind" : "remoteSourceControl", | ||
6 | - "location" : "https://github.com/cesarferreira/SwiftEventBus", | ||
7 | - "state" : { | ||
8 | - "revision" : "a30ff35e616f507d8a8d122dac32a2150371a87e", | ||
9 | - "version" : "5.1.0" | ||
10 | - } | ||
11 | - } | ||
12 | - ], | ||
13 | - "version" : 2 | ||
14 | -} |
No preview for this file type
This diff is collapsed. Click to expand it.
... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
6 | // | 6 | // |
7 | 7 | ||
8 | import UIKit | 8 | import UIKit |
9 | -import SwiftEventBus | 9 | +// import SwiftEventBus |
10 | 10 | ||
11 | @objc public class ContextualViewController: UIViewController, UIPopoverControllerDelegate { | 11 | @objc public class ContextualViewController: UIViewController, UIPopoverControllerDelegate { |
12 | @IBOutlet weak var mainView: UIView! | 12 | @IBOutlet weak var mainView: UIView! |
... | @@ -180,7 +180,7 @@ import SwiftEventBus | ... | @@ -180,7 +180,7 @@ import SwiftEventBus |
180 | firebaseEvent.setParameter = ("name", (self.ccms?._title ?? "")) | 180 | firebaseEvent.setParameter = ("name", (self.ccms?._title ?? "")) |
181 | firebaseEvent.setParameter = ("type", "gift") | 181 | firebaseEvent.setParameter = ("type", "gift") |
182 | firebaseEvent.setParameter = ("successful", "false") | 182 | firebaseEvent.setParameter = ("successful", "false") |
183 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 183 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
184 | 184 | ||
185 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") | 185 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") |
186 | }) | 186 | }) |
... | @@ -196,11 +196,11 @@ import SwiftEventBus | ... | @@ -196,11 +196,11 @@ import SwiftEventBus |
196 | firebaseEvent.setParameter = ("name", (self.ccms?._title ?? "")) | 196 | firebaseEvent.setParameter = ("name", (self.ccms?._title ?? "")) |
197 | firebaseEvent.setParameter = ("type", "gift") | 197 | firebaseEvent.setParameter = ("type", "gift") |
198 | firebaseEvent.setParameter = ("successful", "true") | 198 | firebaseEvent.setParameter = ("successful", "true") |
199 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 199 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
200 | 200 | ||
201 | let ccmsEnabled = swiftApi.WarplyCCMSEnabledModel() | 201 | let ccmsEnabled = swiftApi.WarplyCCMSEnabledModel() |
202 | ccmsEnabled._isActivated = true | 202 | ccmsEnabled._isActivated = true |
203 | - SwiftEventBus.post("ccms_enabled", sender: ccmsEnabled) | 203 | + // SwiftEventBus.post("ccms_enabled", sender: ccmsEnabled) |
204 | 204 | ||
205 | self.showDialog("Το αίτημά σου ολοκληρώθηκε επιτυχώς!","Θα ενημερωθείς άμεσα για την ενεργοποίηση του πακέτου σου.") | 205 | self.showDialog("Το αίτημά σου ολοκληρώθηκε επιτυχώς!","Θα ενημερωθείς άμεσα για την ενεργοποίηση του πακέτου σου.") |
206 | // self.postEventRequest() | 206 | // self.postEventRequest() |
... | @@ -211,7 +211,7 @@ import SwiftEventBus | ... | @@ -211,7 +211,7 @@ import SwiftEventBus |
211 | firebaseEvent.setParameter = ("name", (self.ccms?._title ?? "")) | 211 | firebaseEvent.setParameter = ("name", (self.ccms?._title ?? "")) |
212 | firebaseEvent.setParameter = ("type", "gift") | 212 | firebaseEvent.setParameter = ("type", "gift") |
213 | firebaseEvent.setParameter = ("successful", "false") | 213 | firebaseEvent.setParameter = ("successful", "false") |
214 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 214 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
215 | 215 | ||
216 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") | 216 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") |
217 | } | 217 | } |
... | @@ -222,7 +222,7 @@ import SwiftEventBus | ... | @@ -222,7 +222,7 @@ import SwiftEventBus |
222 | firebaseEvent.setParameter = ("name", (self.ccms?._title ?? "")) | 222 | firebaseEvent.setParameter = ("name", (self.ccms?._title ?? "")) |
223 | firebaseEvent.setParameter = ("type", "gift") | 223 | firebaseEvent.setParameter = ("type", "gift") |
224 | firebaseEvent.setParameter = ("successful", "false") | 224 | firebaseEvent.setParameter = ("successful", "false") |
225 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 225 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
226 | 226 | ||
227 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") | 227 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") |
228 | } | 228 | } | ... | ... |
... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
6 | // | 6 | // |
7 | 7 | ||
8 | import UIKit | 8 | import UIKit |
9 | -import SwiftEventBus | 9 | +// import SwiftEventBus |
10 | 10 | ||
11 | @objc public class CouponViewController: UIViewController, UITextViewDelegate { | 11 | @objc public class CouponViewController: UIViewController, UITextViewDelegate { |
12 | @IBOutlet weak var mainView: UIView! | 12 | @IBOutlet weak var mainView: UIView! |
... | @@ -221,7 +221,7 @@ import SwiftEventBus | ... | @@ -221,7 +221,7 @@ import SwiftEventBus |
221 | firebaseEvent.setParameter = ("name", (self.couponset?.name ?? "")) | 221 | firebaseEvent.setParameter = ("name", (self.couponset?.name ?? "")) |
222 | firebaseEvent.setParameter = ("type", "coupon") | 222 | firebaseEvent.setParameter = ("type", "coupon") |
223 | firebaseEvent.setParameter = ("successful", "false") | 223 | firebaseEvent.setParameter = ("successful", "false") |
224 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 224 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
225 | 225 | ||
226 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") | 226 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") |
227 | }) | 227 | }) |
... | @@ -235,7 +235,7 @@ import SwiftEventBus | ... | @@ -235,7 +235,7 @@ import SwiftEventBus |
235 | firebaseEvent.setParameter = ("name", (self.couponset?.name ?? "")) | 235 | firebaseEvent.setParameter = ("name", (self.couponset?.name ?? "")) |
236 | firebaseEvent.setParameter = ("type", "coupon") | 236 | firebaseEvent.setParameter = ("type", "coupon") |
237 | firebaseEvent.setParameter = ("successful", "false") | 237 | firebaseEvent.setParameter = ("successful", "false") |
238 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 238 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
239 | 239 | ||
240 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") | 240 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") |
241 | }) | 241 | }) |
... | @@ -253,12 +253,12 @@ import SwiftEventBus | ... | @@ -253,12 +253,12 @@ import SwiftEventBus |
253 | firebaseEvent.setParameter = ("name", (self.couponset?.name ?? "")) | 253 | firebaseEvent.setParameter = ("name", (self.couponset?.name ?? "")) |
254 | firebaseEvent.setParameter = ("type", "coupon") | 254 | firebaseEvent.setParameter = ("type", "coupon") |
255 | firebaseEvent.setParameter = ("successful", "true") | 255 | firebaseEvent.setParameter = ("successful", "true") |
256 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 256 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
257 | 257 | ||
258 | if (self.ccms != nil) { | 258 | if (self.ccms != nil) { |
259 | let ccmsEnabled = swiftApi.WarplyCCMSEnabledModel() | 259 | let ccmsEnabled = swiftApi.WarplyCCMSEnabledModel() |
260 | ccmsEnabled._isActivated = true | 260 | ccmsEnabled._isActivated = true |
261 | - SwiftEventBus.post("ccms_enabled", sender: ccmsEnabled) | 261 | + // SwiftEventBus.post("ccms_enabled", sender: ccmsEnabled) |
262 | } | 262 | } |
263 | 263 | ||
264 | self.showSuccessDialog("Επιτυχής ενεργοποίηση","Το κουπόνι σου έχει ενεργοποιηθεί στην ενότητα My Rewards.") | 264 | self.showSuccessDialog("Επιτυχής ενεργοποίηση","Το κουπόνι σου έχει ενεργοποιηθεί στην ενότητα My Rewards.") |
... | @@ -270,7 +270,7 @@ import SwiftEventBus | ... | @@ -270,7 +270,7 @@ import SwiftEventBus |
270 | if (couponsData != nil) { | 270 | if (couponsData != nil) { |
271 | 271 | ||
272 | DispatchQueue.main.async { | 272 | DispatchQueue.main.async { |
273 | - SwiftEventBus.post("coupons_fetched") | 273 | + // SwiftEventBus.post("coupons_fetched") |
274 | } | 274 | } |
275 | } else { | 275 | } else { |
276 | } | 276 | } |
... | @@ -279,7 +279,7 @@ import SwiftEventBus | ... | @@ -279,7 +279,7 @@ import SwiftEventBus |
279 | func getCampaignsCallback (_ campaignsData: Array<swiftApi.CampaignItemModel>?) -> Void { | 279 | func getCampaignsCallback (_ campaignsData: Array<swiftApi.CampaignItemModel>?) -> Void { |
280 | if (campaignsData != nil) { | 280 | if (campaignsData != nil) { |
281 | DispatchQueue.main.async { | 281 | DispatchQueue.main.async { |
282 | - SwiftEventBus.post("campaigns_retrieved") | 282 | + // SwiftEventBus.post("campaigns_retrieved") |
283 | } | 283 | } |
284 | } else { | 284 | } else { |
285 | } | 285 | } |
... | @@ -291,7 +291,7 @@ import SwiftEventBus | ... | @@ -291,7 +291,7 @@ import SwiftEventBus |
291 | firebaseEvent.setParameter = ("name", (self.couponset?.name ?? "")) | 291 | firebaseEvent.setParameter = ("name", (self.couponset?.name ?? "")) |
292 | firebaseEvent.setParameter = ("type", "coupon") | 292 | firebaseEvent.setParameter = ("type", "coupon") |
293 | firebaseEvent.setParameter = ("successful", "false") | 293 | firebaseEvent.setParameter = ("successful", "false") |
294 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 294 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
295 | 295 | ||
296 | self.showDialog("Αποτυχία","Το κουπόνι δεν είναι διαθέσιμο για αγορά") | 296 | self.showDialog("Αποτυχία","Το κουπόνι δεν είναι διαθέσιμο για αγορά") |
297 | 297 | ||
... | @@ -301,7 +301,7 @@ import SwiftEventBus | ... | @@ -301,7 +301,7 @@ import SwiftEventBus |
301 | firebaseEvent.setParameter = ("name", (self.couponset?.name ?? "")) | 301 | firebaseEvent.setParameter = ("name", (self.couponset?.name ?? "")) |
302 | firebaseEvent.setParameter = ("type", "coupon") | 302 | firebaseEvent.setParameter = ("type", "coupon") |
303 | firebaseEvent.setParameter = ("successful", "false") | 303 | firebaseEvent.setParameter = ("successful", "false") |
304 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 304 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
305 | 305 | ||
306 | self.showDialog("Αποτυχία","Δεν έχεις αρκετούς πόντους") | 306 | self.showDialog("Αποτυχία","Δεν έχεις αρκετούς πόντους") |
307 | 307 | ||
... | @@ -311,7 +311,7 @@ import SwiftEventBus | ... | @@ -311,7 +311,7 @@ import SwiftEventBus |
311 | firebaseEvent.setParameter = ("name", (self.couponset?.name ?? "")) | 311 | firebaseEvent.setParameter = ("name", (self.couponset?.name ?? "")) |
312 | firebaseEvent.setParameter = ("type", "coupon") | 312 | firebaseEvent.setParameter = ("type", "coupon") |
313 | firebaseEvent.setParameter = ("successful", "false") | 313 | firebaseEvent.setParameter = ("successful", "false") |
314 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 314 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
315 | 315 | ||
316 | self.showDialog("Το κουπόνι εξαντλήθηκε","Μείνε συντονισμένος για νέες προσφορές και κουπόνια.") | 316 | self.showDialog("Το κουπόνι εξαντλήθηκε","Μείνε συντονισμένος για νέες προσφορές και κουπόνια.") |
317 | 317 | ||
... | @@ -321,7 +321,7 @@ import SwiftEventBus | ... | @@ -321,7 +321,7 @@ import SwiftEventBus |
321 | firebaseEvent.setParameter = ("name", (self.couponset?.name ?? "")) | 321 | firebaseEvent.setParameter = ("name", (self.couponset?.name ?? "")) |
322 | firebaseEvent.setParameter = ("type", "coupon") | 322 | firebaseEvent.setParameter = ("type", "coupon") |
323 | firebaseEvent.setParameter = ("successful", "false") | 323 | firebaseEvent.setParameter = ("successful", "false") |
324 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 324 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
325 | 325 | ||
326 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") | 326 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") |
327 | } | 327 | } |
... | @@ -332,7 +332,7 @@ import SwiftEventBus | ... | @@ -332,7 +332,7 @@ import SwiftEventBus |
332 | firebaseEvent.setParameter = ("name", (self.couponset?.name ?? "")) | 332 | firebaseEvent.setParameter = ("name", (self.couponset?.name ?? "")) |
333 | firebaseEvent.setParameter = ("type", "coupon") | 333 | firebaseEvent.setParameter = ("type", "coupon") |
334 | firebaseEvent.setParameter = ("successful", "false") | 334 | firebaseEvent.setParameter = ("successful", "false") |
335 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 335 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
336 | 336 | ||
337 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") | 337 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") |
338 | } | 338 | } |
... | @@ -379,7 +379,7 @@ import SwiftEventBus | ... | @@ -379,7 +379,7 @@ import SwiftEventBus |
379 | // MARK: - Actions | 379 | // MARK: - Actions |
380 | 380 | ||
381 | @IBAction func redeemButtomAction(_ sender: Any) { | 381 | @IBAction func redeemButtomAction(_ sender: Any) { |
382 | -// SwiftEventBus.post("couponRedeem", sender: coupon) | 382 | + // SwiftEventBus.post("couponRedeem", sender: coupon) |
383 | 383 | ||
384 | swiftApi().logTrackersEvent("click", ("RetrieveCoupon:" + (couponset?.uuid ?? ""))) | 384 | swiftApi().logTrackersEvent("click", ("RetrieveCoupon:" + (couponset?.uuid ?? ""))) |
385 | 385 | ... | ... |
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
7 | 7 | ||
8 | import Foundation | 8 | import Foundation |
9 | import UIKit | 9 | import UIKit |
10 | -import SwiftEventBus | 10 | +// import SwiftEventBus |
11 | 11 | ||
12 | @objc public class CouponsViewController: UIViewController { | 12 | @objc public class CouponsViewController: UIViewController { |
13 | @IBOutlet weak var backgroundImage: UIImageView! | 13 | @IBOutlet weak var backgroundImage: UIImageView! |
... | @@ -75,7 +75,7 @@ import SwiftEventBus | ... | @@ -75,7 +75,7 @@ import SwiftEventBus |
75 | self.coupons = activeCouponData | 75 | self.coupons = activeCouponData |
76 | 76 | ||
77 | DispatchQueue.main.async { | 77 | DispatchQueue.main.async { |
78 | - SwiftEventBus.post("coupons_fetched") | 78 | + // SwiftEventBus.post("coupons_fetched") |
79 | self.tableView.reloadData() | 79 | self.tableView.reloadData() |
80 | 80 | ||
81 | if (self.coupons.count == 0) { | 81 | if (self.coupons.count == 0) { | ... | ... |
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
7 | 7 | ||
8 | import Foundation | 8 | import Foundation |
9 | import UIKit | 9 | import UIKit |
10 | -import SwiftEventBus | 10 | +// import SwiftEventBus |
11 | 11 | ||
12 | @objc public class GiftsViewController: UIViewController { | 12 | @objc public class GiftsViewController: UIViewController { |
13 | @IBOutlet weak var mainView: UIView! | 13 | @IBOutlet weak var mainView: UIView! |
... | @@ -39,26 +39,26 @@ import SwiftEventBus | ... | @@ -39,26 +39,26 @@ import SwiftEventBus |
39 | tableView.delegate = self | 39 | tableView.delegate = self |
40 | tableView.dataSource = self | 40 | tableView.dataSource = self |
41 | 41 | ||
42 | - SwiftEventBus.onMainThread(self, name: "ccms_retrieved") { result in | 42 | + // SwiftEventBus.onMainThread(self, name: "ccms_retrieved") { result in |
43 | - print("===== SwiftEventBus ccms_retrieved =====") | 43 | + // print("===== SwiftEventBus ccms_retrieved =====") |
44 | 44 | ||
45 | - self.refreshData() | 45 | + // self.refreshData() |
46 | 46 | ||
47 | - } | 47 | + // } |
48 | 48 | ||
49 | - SwiftEventBus.onMainThread(self, name: "campaigns_retrieved") { result in | 49 | + // SwiftEventBus.onMainThread(self, name: "campaigns_retrieved") { result in |
50 | - print("===== SwiftEventBus campaigns_retrieved =====") | 50 | + // print("===== SwiftEventBus campaigns_retrieved =====") |
51 | 51 | ||
52 | - self.refreshData() | 52 | + // self.refreshData() |
53 | 53 | ||
54 | - } | 54 | + // } |
55 | 55 | ||
56 | - SwiftEventBus.onMainThread(self, name: "seasonals_retrieved") { result in | 56 | + // SwiftEventBus.onMainThread(self, name: "seasonals_retrieved") { result in |
57 | - print("===== SwiftEventBus seasonals_retrieved =====") | 57 | + // print("===== SwiftEventBus seasonals_retrieved =====") |
58 | 58 | ||
59 | - self.refreshData() | 59 | + // self.refreshData() |
60 | 60 | ||
61 | - } | 61 | + // } |
62 | 62 | ||
63 | // tableView.clipsToBounds = true | 63 | // tableView.clipsToBounds = true |
64 | // tableView.layer.cornerRadius = 30 | 64 | // tableView.layer.cornerRadius = 30 |
... | @@ -174,7 +174,7 @@ import SwiftEventBus | ... | @@ -174,7 +174,7 @@ import SwiftEventBus |
174 | firebaseEvent._eventName = "time_spent_on_loyalty_sdk" | 174 | firebaseEvent._eventName = "time_spent_on_loyalty_sdk" |
175 | firebaseEvent.setParameter = ("name", "GiftsForYou") | 175 | firebaseEvent.setParameter = ("name", "GiftsForYou") |
176 | firebaseEvent.setParameter = ("seconds", String(seconds)) | 176 | firebaseEvent.setParameter = ("seconds", String(seconds)) |
177 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 177 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
178 | 178 | ||
179 | seconds = 0 | 179 | seconds = 0 |
180 | } | 180 | } |
... | @@ -243,7 +243,7 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{ | ... | @@ -243,7 +243,7 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{ |
243 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" | 243 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" |
244 | firebaseEvent.setParameter = ("name", (campaigns[indexPath.row]._ccms?._title ?? "")) | 244 | firebaseEvent.setParameter = ("name", (campaigns[indexPath.row]._ccms?._title ?? "")) |
245 | firebaseEvent.setParameter = ("type", "gift") | 245 | firebaseEvent.setParameter = ("type", "gift") |
246 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 246 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
247 | 247 | ||
248 | swiftApi().logTrackersEvent("click", ("Contextual:" + (campaigns[indexPath.row]._ccms?._sessionId ?? ""))) | 248 | swiftApi().logTrackersEvent("click", ("Contextual:" + (campaigns[indexPath.row]._ccms?._sessionId ?? ""))) |
249 | 249 | ||
... | @@ -270,7 +270,7 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{ | ... | @@ -270,7 +270,7 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{ |
270 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" | 270 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" |
271 | firebaseEvent.setParameter = ("name", (item._title)) | 271 | firebaseEvent.setParameter = ("name", (item._title)) |
272 | firebaseEvent.setParameter = ("type", "gift") | 272 | firebaseEvent.setParameter = ("type", "gift") |
273 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 273 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
274 | 274 | ||
275 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 275 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
276 | let vc = storyboard.instantiateViewController(withIdentifier: "TelcoViewController") as! SwiftWarplyFramework.TelcoViewController | 276 | let vc = storyboard.instantiateViewController(withIdentifier: "TelcoViewController") as! SwiftWarplyFramework.TelcoViewController |
... | @@ -301,7 +301,7 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{ | ... | @@ -301,7 +301,7 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{ |
301 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" | 301 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" |
302 | firebaseEvent.setParameter = ("name", (item.name ?? "")) | 302 | firebaseEvent.setParameter = ("name", (item.name ?? "")) |
303 | firebaseEvent.setParameter = ("type", "coupon") | 303 | firebaseEvent.setParameter = ("type", "coupon") |
304 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 304 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
305 | 305 | ||
306 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 306 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
307 | let vc = storyboard.instantiateViewController(withIdentifier: "CouponViewController") as! SwiftWarplyFramework.CouponViewController | 307 | let vc = storyboard.instantiateViewController(withIdentifier: "CouponViewController") as! SwiftWarplyFramework.CouponViewController |
... | @@ -401,13 +401,13 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{ | ... | @@ -401,13 +401,13 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{ |
401 | seasonalEvent._title = campaigns[indexPath.row]._title ?? "" | 401 | seasonalEvent._title = campaigns[indexPath.row]._title ?? "" |
402 | seasonalEvent._imageUrl = campaigns[indexPath.row]._logo_url ?? "" | 402 | seasonalEvent._imageUrl = campaigns[indexPath.row]._logo_url ?? "" |
403 | seasonalEvent._loyaltyPackageId = campaigns[indexPath.row]._loyaltyPackageId ?? "" | 403 | seasonalEvent._loyaltyPackageId = campaigns[indexPath.row]._loyaltyPackageId ?? "" |
404 | - SwiftEventBus.post("seasonal", sender: seasonalEvent) | 404 | + // SwiftEventBus.post("seasonal", sender: seasonalEvent) |
405 | 405 | ||
406 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 406 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
407 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" | 407 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" |
408 | firebaseEvent.setParameter = ("name", (campaigns[indexPath.row]._title ?? "")) | 408 | firebaseEvent.setParameter = ("name", (campaigns[indexPath.row]._title ?? "")) |
409 | firebaseEvent.setParameter = ("type", "seasonal") | 409 | firebaseEvent.setParameter = ("type", "seasonal") |
410 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 410 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
411 | } | 411 | } |
412 | } | 412 | } |
413 | } | 413 | } | ... | ... |
... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
6 | // | 6 | // |
7 | 7 | ||
8 | import UIKit | 8 | import UIKit |
9 | -import SwiftEventBus | 9 | +// import SwiftEventBus |
10 | 10 | ||
11 | @objc public class LoyaltyAnalysisViewController: UIViewController { | 11 | @objc public class LoyaltyAnalysisViewController: UIViewController { |
12 | 12 | ||
... | @@ -106,7 +106,7 @@ import SwiftEventBus | ... | @@ -106,7 +106,7 @@ import SwiftEventBus |
106 | firebaseEvent._eventName = "time_spent_on_loyalty_sdk" | 106 | firebaseEvent._eventName = "time_spent_on_loyalty_sdk" |
107 | firebaseEvent.setParameter = ("name", "GiftsCalculator") | 107 | firebaseEvent.setParameter = ("name", "GiftsCalculator") |
108 | firebaseEvent.setParameter = ("seconds", String(seconds)) | 108 | firebaseEvent.setParameter = ("seconds", String(seconds)) |
109 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 109 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
110 | 110 | ||
111 | seconds = 0 | 111 | seconds = 0 |
112 | } | 112 | } | ... | ... |
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
7 | 7 | ||
8 | import Foundation | 8 | import Foundation |
9 | import UIKit | 9 | import UIKit |
10 | -import SwiftEventBus | 10 | +// import SwiftEventBus |
11 | 11 | ||
12 | @objc public class LoyaltyHistoryViewController: UIViewController { | 12 | @objc public class LoyaltyHistoryViewController: UIViewController { |
13 | @IBOutlet weak var sectionTitleLabel: UILabel! | 13 | @IBOutlet weak var sectionTitleLabel: UILabel! |
... | @@ -51,28 +51,28 @@ import SwiftEventBus | ... | @@ -51,28 +51,28 @@ import SwiftEventBus |
51 | 51 | ||
52 | self.hidesBottomBarWhenPushed = true | 52 | self.hidesBottomBarWhenPushed = true |
53 | 53 | ||
54 | - SwiftEventBus.onBackgroundThread(self, name: "coupons_fetched") { result in | 54 | +// SwiftEventBus.onBackgroundThread(self, name: "coupons_fetched") { result in |
55 | 55 | ||
56 | - DispatchQueue.main.async { | 56 | +// DispatchQueue.main.async { |
57 | - self.coupons = swiftApi().getCouponList() | 57 | +// self.coupons = swiftApi().getCouponList() |
58 | - self.totalCouponDiscount = Float(round(100 * swiftApi().getLoyaltyBadge()._value) / 100) | 58 | +// self.totalCouponDiscount = Float(round(100 * swiftApi().getLoyaltyBadge()._value) / 100) |
59 | - self.loyaltyBadge = swiftApi().getLoyaltyBadge() | 59 | +// self.loyaltyBadge = swiftApi().getLoyaltyBadge() |
60 | -// self.tableView.reloadData() | 60 | +// // self.tableView.reloadData() |
61 | - self.updateUI() | 61 | +// self.updateUI() |
62 | - } | 62 | +// } |
63 | - } | 63 | +// } |
64 | - | 64 | + |
65 | - SwiftEventBus.onBackgroundThread(self, name: "unified_coupons_fetched") { result in | 65 | +// SwiftEventBus.onBackgroundThread(self, name: "unified_coupons_fetched") { result in |
66 | 66 | ||
67 | - DispatchQueue.main.async { | 67 | +// DispatchQueue.main.async { |
68 | - self.unifiedCoupons = swiftApi().getUnifiedCouponList() | 68 | +// self.unifiedCoupons = swiftApi().getUnifiedCouponList() |
69 | 69 | ||
70 | - self.matchOldSMCoupons() | 70 | +// self.matchOldSMCoupons() |
71 | - self.updateMarketBadge() | 71 | +// self.updateMarketBadge() |
72 | -// self.tableView.reloadData() | 72 | +// // self.tableView.reloadData() |
73 | - self.updateUI() | 73 | +// self.updateUI() |
74 | - } | 74 | +// } |
75 | - } | 75 | +// } |
76 | 76 | ||
77 | setBackButton() | 77 | setBackButton() |
78 | setNavigationTitle("Ιστορικό") | 78 | setNavigationTitle("Ιστορικό") |
... | @@ -302,7 +302,7 @@ import SwiftEventBus | ... | @@ -302,7 +302,7 @@ import SwiftEventBus |
302 | // analysis_pressed event | 302 | // analysis_pressed event |
303 | let dealsAnalysis = swiftApi.WarplyDealsAnalysisEventModel() | 303 | let dealsAnalysis = swiftApi.WarplyDealsAnalysisEventModel() |
304 | dealsAnalysis._isPressed = true | 304 | dealsAnalysis._isPressed = true |
305 | - SwiftEventBus.post("analysis_pressed", sender: dealsAnalysis) | 305 | + // SwiftEventBus.post("analysis_pressed", sender: dealsAnalysis) |
306 | 306 | ||
307 | // let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 307 | // let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
308 | // firebaseEvent._eventName = "did_tap_gifts_for_you_badge" | 308 | // firebaseEvent._eventName = "did_tap_gifts_for_you_badge" |
... | @@ -312,7 +312,7 @@ import SwiftEventBus | ... | @@ -312,7 +312,7 @@ import SwiftEventBus |
312 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 312 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
313 | firebaseEvent._eventName = "did_tap_deals_for_you_badge" | 313 | firebaseEvent._eventName = "did_tap_deals_for_you_badge" |
314 | firebaseEvent.setParameter = ("screen", "Loyalty History") | 314 | firebaseEvent.setParameter = ("screen", "Loyalty History") |
315 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 315 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
316 | 316 | ||
317 | swiftApi().logTrackersEvent("click", ("LoyaltyHistoryScreen:" + "DealsBanner")) | 317 | swiftApi().logTrackersEvent("click", ("LoyaltyHistoryScreen:" + "DealsBanner")) |
318 | // } | 318 | // } |
... | @@ -328,7 +328,7 @@ import SwiftEventBus | ... | @@ -328,7 +328,7 @@ import SwiftEventBus |
328 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 328 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
329 | firebaseEvent._eventName = "did_tap_gifts_for_you_badge" | 329 | firebaseEvent._eventName = "did_tap_gifts_for_you_badge" |
330 | firebaseEvent.setParameter = ("screen", "Loyalty History") | 330 | firebaseEvent.setParameter = ("screen", "Loyalty History") |
331 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 331 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
332 | 332 | ||
333 | swiftApi().logTrackersEvent("click", ("LoyaltyHistoryScreen:" + "LoyaltyBanner")) | 333 | swiftApi().logTrackersEvent("click", ("LoyaltyHistoryScreen:" + "LoyaltyBanner")) |
334 | 334 | ||
... | @@ -343,7 +343,7 @@ import SwiftEventBus | ... | @@ -343,7 +343,7 @@ import SwiftEventBus |
343 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 343 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
344 | firebaseEvent._eventName = "did_tap_market_badge" | 344 | firebaseEvent._eventName = "did_tap_market_badge" |
345 | firebaseEvent.setParameter = ("screen", "Loyalty History") | 345 | firebaseEvent.setParameter = ("screen", "Loyalty History") |
346 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 346 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
347 | 347 | ||
348 | swiftApi().logTrackersEvent("click", ("LoyaltyHistoryScreen:" + "MarketBanner")) | 348 | swiftApi().logTrackersEvent("click", ("LoyaltyHistoryScreen:" + "MarketBanner")) |
349 | 349 | ... | ... |
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
7 | 7 | ||
8 | import Foundation | 8 | import Foundation |
9 | import UIKit | 9 | import UIKit |
10 | -import SwiftEventBus | 10 | +// import SwiftEventBus |
11 | 11 | ||
12 | @objc public class MFYViewController: UIViewController { | 12 | @objc public class MFYViewController: UIViewController { |
13 | @IBOutlet weak var mainView: UIView! | 13 | @IBOutlet weak var mainView: UIView! |
... | @@ -41,15 +41,15 @@ import SwiftEventBus | ... | @@ -41,15 +41,15 @@ import SwiftEventBus |
41 | tableView.delegate = self | 41 | tableView.delegate = self |
42 | tableView.dataSource = self | 42 | tableView.dataSource = self |
43 | 43 | ||
44 | - SwiftEventBus.onMainThread(self, name: "ccms_retrieved") { result in | 44 | + // SwiftEventBus.onMainThread(self, name: "ccms_retrieved") { result in |
45 | - print("===== SwiftEventBus ccms_retrieved =====") | 45 | + // print("===== SwiftEventBus ccms_retrieved =====") |
46 | - self.refreshData() | 46 | + // self.refreshData() |
47 | - } | 47 | + // } |
48 | 48 | ||
49 | - SwiftEventBus.onMainThread(self, name: "campaigns_retrieved") { result in | 49 | + // SwiftEventBus.onMainThread(self, name: "campaigns_retrieved") { result in |
50 | - print("===== SwiftEventBus campaigns_retrieved =====") | 50 | + // print("===== SwiftEventBus campaigns_retrieved =====") |
51 | - self.refreshData() | 51 | + // self.refreshData() |
52 | - } | 52 | + // } |
53 | 53 | ||
54 | // tableView.clipsToBounds = true | 54 | // tableView.clipsToBounds = true |
55 | // tableView.layer.cornerRadius = 30 | 55 | // tableView.layer.cornerRadius = 30 |
... | @@ -183,7 +183,7 @@ import SwiftEventBus | ... | @@ -183,7 +183,7 @@ import SwiftEventBus |
183 | firebaseEvent._eventName = "time_spent_on_loyalty_sdk" | 183 | firebaseEvent._eventName = "time_spent_on_loyalty_sdk" |
184 | firebaseEvent.setParameter = ("name", "MoreForYou") | 184 | firebaseEvent.setParameter = ("name", "MoreForYou") |
185 | firebaseEvent.setParameter = ("seconds", String(seconds)) | 185 | firebaseEvent.setParameter = ("seconds", String(seconds)) |
186 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 186 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
187 | 187 | ||
188 | seconds = 0 | 188 | seconds = 0 |
189 | } | 189 | } |
... | @@ -283,7 +283,7 @@ extension MFYViewController: UITableViewDelegate, UITableViewDataSource{ | ... | @@ -283,7 +283,7 @@ extension MFYViewController: UITableViewDelegate, UITableViewDataSource{ |
283 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" | 283 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" |
284 | firebaseEvent.setParameter = ("name", (campaign._ccms?._title ?? "")) | 284 | firebaseEvent.setParameter = ("name", (campaign._ccms?._title ?? "")) |
285 | firebaseEvent.setParameter = ("type", "gift") | 285 | firebaseEvent.setParameter = ("type", "gift") |
286 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 286 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
287 | 287 | ||
288 | swiftApi().logTrackersEvent("click", ("Contextual:" + (campaign._ccms?._sessionId ?? ""))) | 288 | swiftApi().logTrackersEvent("click", ("Contextual:" + (campaign._ccms?._sessionId ?? ""))) |
289 | 289 | ||
... | @@ -310,7 +310,7 @@ extension MFYViewController: UITableViewDelegate, UITableViewDataSource{ | ... | @@ -310,7 +310,7 @@ extension MFYViewController: UITableViewDelegate, UITableViewDataSource{ |
310 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" | 310 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" |
311 | firebaseEvent.setParameter = ("name", (item._title)) | 311 | firebaseEvent.setParameter = ("name", (item._title)) |
312 | firebaseEvent.setParameter = ("type", "gift") | 312 | firebaseEvent.setParameter = ("type", "gift") |
313 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 313 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
314 | 314 | ||
315 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 315 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
316 | let vc = storyboard.instantiateViewController(withIdentifier: "TelcoViewController") as! SwiftWarplyFramework.TelcoViewController | 316 | let vc = storyboard.instantiateViewController(withIdentifier: "TelcoViewController") as! SwiftWarplyFramework.TelcoViewController |
... | @@ -340,7 +340,7 @@ extension MFYViewController: UITableViewDelegate, UITableViewDataSource{ | ... | @@ -340,7 +340,7 @@ extension MFYViewController: UITableViewDelegate, UITableViewDataSource{ |
340 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" | 340 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" |
341 | firebaseEvent.setParameter = ("name", (item.name ?? "")) | 341 | firebaseEvent.setParameter = ("name", (item.name ?? "")) |
342 | firebaseEvent.setParameter = ("type", "coupon") | 342 | firebaseEvent.setParameter = ("type", "coupon") |
343 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 343 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
344 | 344 | ||
345 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 345 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
346 | let vc = storyboard.instantiateViewController(withIdentifier: "CouponViewController") as! SwiftWarplyFramework.CouponViewController | 346 | let vc = storyboard.instantiateViewController(withIdentifier: "CouponViewController") as! SwiftWarplyFramework.CouponViewController | ... | ... |
... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
6 | // | 6 | // |
7 | 7 | ||
8 | import UIKit | 8 | import UIKit |
9 | -import SwiftEventBus | 9 | +// import SwiftEventBus |
10 | 10 | ||
11 | @objc public class MarketLoyaltyAnalysisViewController: UIViewController { | 11 | @objc public class MarketLoyaltyAnalysisViewController: UIViewController { |
12 | 12 | ||
... | @@ -107,7 +107,7 @@ import SwiftEventBus | ... | @@ -107,7 +107,7 @@ import SwiftEventBus |
107 | firebaseEvent._eventName = "time_spent_on_loyalty_sdk" | 107 | firebaseEvent._eventName = "time_spent_on_loyalty_sdk" |
108 | firebaseEvent.setParameter = ("name", "GiftsCalculator") | 108 | firebaseEvent.setParameter = ("name", "GiftsCalculator") |
109 | firebaseEvent.setParameter = ("seconds", String(seconds)) | 109 | firebaseEvent.setParameter = ("seconds", String(seconds)) |
110 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 110 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
111 | 111 | ||
112 | seconds = 0 | 112 | seconds = 0 |
113 | } | 113 | } | ... | ... |
... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
6 | // | 6 | // |
7 | 7 | ||
8 | import UIKit | 8 | import UIKit |
9 | -import SwiftEventBus | 9 | +// import SwiftEventBus |
10 | 10 | ||
11 | @objc public class ShareViewController: UIViewController, UITextFieldDelegate, UIPopoverControllerDelegate { | 11 | @objc public class ShareViewController: UIViewController, UITextFieldDelegate, UIPopoverControllerDelegate { |
12 | @IBOutlet weak var mainView: UIView! | 12 | @IBOutlet weak var mainView: UIView! |
... | @@ -290,7 +290,7 @@ import SwiftEventBus | ... | @@ -290,7 +290,7 @@ import SwiftEventBus |
290 | if (couponsData != nil) { | 290 | if (couponsData != nil) { |
291 | 291 | ||
292 | DispatchQueue.main.async { | 292 | DispatchQueue.main.async { |
293 | - SwiftEventBus.post("coupons_fetched") | 293 | + // SwiftEventBus.post("coupons_fetched") |
294 | self.showSuccessDialog("Συγχαρητήρια!","Μόλις έκανες δώρο ένα κουπόνι!") | 294 | self.showSuccessDialog("Συγχαρητήρια!","Μόλις έκανες δώρο ένα κουπόνι!") |
295 | } | 295 | } |
296 | } else { | 296 | } else { | ... | ... |
... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
6 | // | 6 | // |
7 | 7 | ||
8 | import UIKit | 8 | import UIKit |
9 | -import SwiftEventBus | 9 | +// import SwiftEventBus |
10 | 10 | ||
11 | @objc public class TelcoViewController: UIViewController, UIPopoverControllerDelegate { | 11 | @objc public class TelcoViewController: UIViewController, UIPopoverControllerDelegate { |
12 | @IBOutlet weak var mainView: UIView! | 12 | @IBOutlet weak var mainView: UIView! |
... | @@ -234,7 +234,7 @@ import SwiftEventBus | ... | @@ -234,7 +234,7 @@ import SwiftEventBus |
234 | firebaseEvent.setParameter = ("name", (self.ccms?._title ?? "")) | 234 | firebaseEvent.setParameter = ("name", (self.ccms?._title ?? "")) |
235 | firebaseEvent.setParameter = ("type", "gift") | 235 | firebaseEvent.setParameter = ("type", "gift") |
236 | firebaseEvent.setParameter = ("successful", "false") | 236 | firebaseEvent.setParameter = ("successful", "false") |
237 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 237 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
238 | 238 | ||
239 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") | 239 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") |
240 | }) | 240 | }) |
... | @@ -249,11 +249,11 @@ import SwiftEventBus | ... | @@ -249,11 +249,11 @@ import SwiftEventBus |
249 | firebaseEvent.setParameter = ("name", (self.ccms?._title ?? "")) | 249 | firebaseEvent.setParameter = ("name", (self.ccms?._title ?? "")) |
250 | firebaseEvent.setParameter = ("type", "gift") | 250 | firebaseEvent.setParameter = ("type", "gift") |
251 | firebaseEvent.setParameter = ("successful", "true") | 251 | firebaseEvent.setParameter = ("successful", "true") |
252 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 252 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
253 | 253 | ||
254 | let ccmsEnabled = swiftApi.WarplyCCMSEnabledModel() | 254 | let ccmsEnabled = swiftApi.WarplyCCMSEnabledModel() |
255 | ccmsEnabled._isActivated = true | 255 | ccmsEnabled._isActivated = true |
256 | - SwiftEventBus.post("ccms_enabled", sender: ccmsEnabled) | 256 | + // SwiftEventBus.post("ccms_enabled", sender: ccmsEnabled) |
257 | 257 | ||
258 | self.showDialog("Το αίτημά σου ολοκληρώθηκε επιτυχώς!","Θα ενημερωθείς άμεσα για την ενεργοποίηση του πακέτου σου.") | 258 | self.showDialog("Το αίτημά σου ολοκληρώθηκε επιτυχώς!","Θα ενημερωθείς άμεσα για την ενεργοποίηση του πακέτου σου.") |
259 | // self.postEventRequest() | 259 | // self.postEventRequest() |
... | @@ -264,7 +264,7 @@ import SwiftEventBus | ... | @@ -264,7 +264,7 @@ import SwiftEventBus |
264 | firebaseEvent.setParameter = ("name", (self.ccms?._title ?? "")) | 264 | firebaseEvent.setParameter = ("name", (self.ccms?._title ?? "")) |
265 | firebaseEvent.setParameter = ("type", "gift") | 265 | firebaseEvent.setParameter = ("type", "gift") |
266 | firebaseEvent.setParameter = ("successful", "false") | 266 | firebaseEvent.setParameter = ("successful", "false") |
267 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 267 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
268 | 268 | ||
269 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") | 269 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") |
270 | } | 270 | } |
... | @@ -275,7 +275,7 @@ import SwiftEventBus | ... | @@ -275,7 +275,7 @@ import SwiftEventBus |
275 | firebaseEvent.setParameter = ("name", (self.ccms?._title ?? "")) | 275 | firebaseEvent.setParameter = ("name", (self.ccms?._title ?? "")) |
276 | firebaseEvent.setParameter = ("type", "gift") | 276 | firebaseEvent.setParameter = ("type", "gift") |
277 | firebaseEvent.setParameter = ("successful", "false") | 277 | firebaseEvent.setParameter = ("successful", "false") |
278 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 278 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
279 | 279 | ||
280 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") | 280 | self.showDialog("Αποτυχία","Κάτι πήγε στραβά") |
281 | } | 281 | } | ... | ... |
... | @@ -8,7 +8,7 @@ | ... | @@ -8,7 +8,7 @@ |
8 | import UIKit | 8 | import UIKit |
9 | // import RSBarcodes_Swift | 9 | // import RSBarcodes_Swift |
10 | import AVFoundation | 10 | import AVFoundation |
11 | -import SwiftEventBus | 11 | +// import SwiftEventBus |
12 | 12 | ||
13 | @objc public class UnifiedCouponBarcodeViewController: UIViewController { | 13 | @objc public class UnifiedCouponBarcodeViewController: UIViewController { |
14 | @IBOutlet weak var mainView: UIView! | 14 | @IBOutlet weak var mainView: UIView! |
... | @@ -100,7 +100,7 @@ import SwiftEventBus | ... | @@ -100,7 +100,7 @@ import SwiftEventBus |
100 | alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { action in | 100 | alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { action in |
101 | switch action.style{ | 101 | switch action.style{ |
102 | case .default: | 102 | case .default: |
103 | - SwiftEventBus.post("refresh_unified_coupons") | 103 | + // SwiftEventBus.post("refresh_unified_coupons") |
104 | self.navigationController?.popViewController(animated: true) | 104 | self.navigationController?.popViewController(animated: true) |
105 | // self.dismiss(animated: true, completion: {}) | 105 | // self.dismiss(animated: true, completion: {}) |
106 | 106 | ... | ... |
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
7 | 7 | ||
8 | import Foundation | 8 | import Foundation |
9 | import UIKit | 9 | import UIKit |
10 | -import SwiftEventBus | 10 | +// import SwiftEventBus |
11 | 11 | ||
12 | @objc public class UnifiedCouponsViewController: UIViewController { | 12 | @objc public class UnifiedCouponsViewController: UIViewController { |
13 | @IBOutlet weak var backgroundImage: UIImageView! | 13 | @IBOutlet weak var backgroundImage: UIImageView! |
... | @@ -23,7 +23,7 @@ import SwiftEventBus | ... | @@ -23,7 +23,7 @@ import SwiftEventBus |
23 | 23 | ||
24 | self.hidesBottomBarWhenPushed = true | 24 | self.hidesBottomBarWhenPushed = true |
25 | 25 | ||
26 | - SwiftEventBus.onBackgroundThread(self, name: "unified_coupons_fetched") { result in | 26 | + // SwiftEventBus.onBackgroundThread(self, name: "unified_coupons_fetched") { result in |
27 | 27 | ||
28 | DispatchQueue.main.async { | 28 | DispatchQueue.main.async { |
29 | self.unifiedCoupons = swiftApi().getUnifiedCouponList() | 29 | self.unifiedCoupons = swiftApi().getUnifiedCouponList() | ... | ... |
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment