Showing
19 changed files
with
307 additions
and
344 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
... | @@ -8,7 +8,7 @@ | ... | @@ -8,7 +8,7 @@ |
8 | import Foundation | 8 | import Foundation |
9 | import UIKit | 9 | import UIKit |
10 | import WebKit | 10 | import WebKit |
11 | -import SwiftEventBus | 11 | +// import SwiftEventBus |
12 | 12 | ||
13 | // Location Permissions | 13 | // Location Permissions |
14 | import CoreLocation | 14 | import CoreLocation |
... | @@ -441,8 +441,8 @@ var timer2: DispatchSourceTimer? | ... | @@ -441,8 +441,8 @@ var timer2: DispatchSourceTimer? |
441 | questionnaireEvent._parameter = "" | 441 | questionnaireEvent._parameter = "" |
442 | swiftApi().setUserTag("") | 442 | swiftApi().setUserTag("") |
443 | } | 443 | } |
444 | - SwiftEventBus.post("questionnaire", sender: questionnaireEvent) | 444 | + // SwiftEventBus.post("questionnaire", sender: questionnaireEvent) |
445 | - SwiftEventBus.post("campaigns_retrieved") | 445 | + // SwiftEventBus.post("campaigns_retrieved") |
446 | } | 446 | } |
447 | } else { | 447 | } else { |
448 | } | 448 | } |
... | @@ -456,7 +456,7 @@ var timer2: DispatchSourceTimer? | ... | @@ -456,7 +456,7 @@ var timer2: DispatchSourceTimer? |
456 | 456 | ||
457 | } else if (eventArray[1] == "couponRetrieved") { | 457 | } else if (eventArray[1] == "couponRetrieved") { |
458 | let couponEvent = swiftApi.CouponEventModel() | 458 | let couponEvent = swiftApi.CouponEventModel() |
459 | - SwiftEventBus.post("coupon_retrieved", sender: couponEvent) | 459 | + // SwiftEventBus.post("coupon_retrieved", sender: couponEvent) |
460 | 460 | ||
461 | swiftApi().getCouponsAsync(getCouponsCallback, failureCallback: {errorCode in }) | 461 | swiftApi().getCouponsAsync(getCouponsCallback, failureCallback: {errorCode in }) |
462 | swiftApi().getCampaignsAsyncNew(language: "en", filters: [String : Any](), getCampaignsCallback, failureCallback: {errorCode in }) | 462 | swiftApi().getCampaignsAsyncNew(language: "en", filters: [String : Any](), getCampaignsCallback, failureCallback: {errorCode in }) |
... | @@ -465,7 +465,7 @@ var timer2: DispatchSourceTimer? | ... | @@ -465,7 +465,7 @@ var timer2: DispatchSourceTimer? |
465 | if (couponsData != nil) { | 465 | if (couponsData != nil) { |
466 | 466 | ||
467 | DispatchQueue.main.async { | 467 | DispatchQueue.main.async { |
468 | - SwiftEventBus.post("coupons_fetched") | 468 | + // SwiftEventBus.post("coupons_fetched") |
469 | } | 469 | } |
470 | } else { | 470 | } else { |
471 | } | 471 | } |
... | @@ -474,7 +474,7 @@ var timer2: DispatchSourceTimer? | ... | @@ -474,7 +474,7 @@ var timer2: DispatchSourceTimer? |
474 | func getCampaignsCallback (_ campaignsData: Array<swiftApi.CampaignItemModel>?) -> Void { | 474 | func getCampaignsCallback (_ campaignsData: Array<swiftApi.CampaignItemModel>?) -> Void { |
475 | if (campaignsData != nil) { | 475 | if (campaignsData != nil) { |
476 | DispatchQueue.main.async { | 476 | DispatchQueue.main.async { |
477 | - SwiftEventBus.post("campaigns_retrieved") | 477 | + // SwiftEventBus.post("campaigns_retrieved") |
478 | } | 478 | } |
479 | } else { | 479 | } else { |
480 | } | 480 | } |
... | @@ -483,7 +483,7 @@ var timer2: DispatchSourceTimer? | ... | @@ -483,7 +483,7 @@ var timer2: DispatchSourceTimer? |
483 | } else if (eventArray[1] == "ccmsRetrieved") { | 483 | } else if (eventArray[1] == "ccmsRetrieved") { |
484 | let ccmsEnabled = swiftApi.WarplyCCMSEnabledModel() | 484 | let ccmsEnabled = swiftApi.WarplyCCMSEnabledModel() |
485 | ccmsEnabled._isActivated = true | 485 | ccmsEnabled._isActivated = true |
486 | - SwiftEventBus.post("ccms_enabled", sender: ccmsEnabled) | 486 | + // SwiftEventBus.post("ccms_enabled", sender: ccmsEnabled) |
487 | 487 | ||
488 | } else if (eventArray[1] == "couponShared") { | 488 | } else if (eventArray[1] == "couponShared") { |
489 | 489 | ||
... | @@ -491,24 +491,24 @@ var timer2: DispatchSourceTimer? | ... | @@ -491,24 +491,24 @@ var timer2: DispatchSourceTimer? |
491 | else if (eventArray[1] == "steps" && eventArray[2] == "widgetDisabled") { | 491 | else if (eventArray[1] == "steps" && eventArray[2] == "widgetDisabled") { |
492 | let pacingWidget = swiftApi.WarplyPacingCardEventModel() | 492 | let pacingWidget = swiftApi.WarplyPacingCardEventModel() |
493 | pacingWidget._isVisible = false | 493 | pacingWidget._isVisible = false |
494 | - SwiftEventBus.post("pacing_widget", sender: pacingWidget) | 494 | + // SwiftEventBus.post("pacing_widget", sender: pacingWidget) |
495 | 495 | ||
496 | } else if (eventArray[1] == "steps" && eventArray[2] == "widgetEnabled") { | 496 | } else if (eventArray[1] == "steps" && eventArray[2] == "widgetEnabled") { |
497 | let pacingWidget = swiftApi.WarplyPacingCardEventModel() | 497 | let pacingWidget = swiftApi.WarplyPacingCardEventModel() |
498 | pacingWidget._isVisible = true | 498 | pacingWidget._isVisible = true |
499 | - SwiftEventBus.post("pacing_widget", sender: pacingWidget) | 499 | + // SwiftEventBus.post("pacing_widget", sender: pacingWidget) |
500 | 500 | ||
501 | } | 501 | } |
502 | else if (eventArray[1] == "steps" && eventArray[2] == "shortcutEnabled") { | 502 | else if (eventArray[1] == "steps" && eventArray[2] == "shortcutEnabled") { |
503 | let pacingEvent = swiftApi.WarplyPacingEventModel() | 503 | let pacingEvent = swiftApi.WarplyPacingEventModel() |
504 | pacingEvent._isVisible = true | 504 | pacingEvent._isVisible = true |
505 | - SwiftEventBus.post("pacing", sender: pacingEvent) | 505 | + // SwiftEventBus.post("pacing", sender: pacingEvent) |
506 | 506 | ||
507 | if (swiftApi().getTrackingStepsEnabled() == false) { | 507 | if (swiftApi().getTrackingStepsEnabled() == false) { |
508 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 508 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
509 | firebaseEvent._eventName = "loyalty_steps_activation" | 509 | firebaseEvent._eventName = "loyalty_steps_activation" |
510 | firebaseEvent._parameters = nil | 510 | firebaseEvent._parameters = nil |
511 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 511 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
512 | 512 | ||
513 | self.startTrackingSteps() | 513 | self.startTrackingSteps() |
514 | } | 514 | } |
... | @@ -516,7 +516,7 @@ var timer2: DispatchSourceTimer? | ... | @@ -516,7 +516,7 @@ var timer2: DispatchSourceTimer? |
516 | } else if (eventArray[1] == "steps" && eventArray[2] == "shortcutDisabled") { | 516 | } else if (eventArray[1] == "steps" && eventArray[2] == "shortcutDisabled") { |
517 | let pacingEvent = swiftApi.WarplyPacingEventModel() | 517 | let pacingEvent = swiftApi.WarplyPacingEventModel() |
518 | pacingEvent._isVisible = false | 518 | pacingEvent._isVisible = false |
519 | - SwiftEventBus.post("pacing", sender: pacingEvent) | 519 | + // SwiftEventBus.post("pacing", sender: pacingEvent) |
520 | swiftApi().stopTrackingSteps() | 520 | swiftApi().stopTrackingSteps() |
521 | 521 | ||
522 | } else if (eventArray[1] == "request" || eventArray[1] == "response") { | 522 | } else if (eventArray[1] == "request" || eventArray[1] == "response") { |
... | @@ -528,25 +528,25 @@ var timer2: DispatchSourceTimer? | ... | @@ -528,25 +528,25 @@ var timer2: DispatchSourceTimer? |
528 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 528 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
529 | firebaseEvent._eventName = "loyalty_questionnaire_selected" | 529 | firebaseEvent._eventName = "loyalty_questionnaire_selected" |
530 | firebaseEvent.setParameter = ("completed", "true") | 530 | firebaseEvent.setParameter = ("completed", "true") |
531 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 531 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
532 | 532 | ||
533 | } else if (eventArray[1] == "loyalty_questionnaire_answer_again") { | 533 | } else if (eventArray[1] == "loyalty_questionnaire_answer_again") { |
534 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 534 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
535 | firebaseEvent._eventName = "loyalty_questionnaire_answer_again" | 535 | firebaseEvent._eventName = "loyalty_questionnaire_answer_again" |
536 | firebaseEvent._parameters = nil | 536 | firebaseEvent._parameters = nil |
537 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 537 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
538 | 538 | ||
539 | } else if (eventArray[1] == "loyalty_questionnaire_answers_deleted") { | 539 | } else if (eventArray[1] == "loyalty_questionnaire_answers_deleted") { |
540 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 540 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
541 | firebaseEvent._eventName = "loyalty_questionnaire_answers_deleted" | 541 | firebaseEvent._eventName = "loyalty_questionnaire_answers_deleted" |
542 | firebaseEvent._parameters = nil | 542 | firebaseEvent._parameters = nil |
543 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 543 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
544 | 544 | ||
545 | } else if (eventArray[1] == "loyalty_questionnaire_later") { | 545 | } else if (eventArray[1] == "loyalty_questionnaire_later") { |
546 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 546 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
547 | firebaseEvent._eventName = "loyalty_questionnaire_later" | 547 | firebaseEvent._eventName = "loyalty_questionnaire_later" |
548 | firebaseEvent.setParameter = ("completed", "false") | 548 | firebaseEvent.setParameter = ("completed", "false") |
549 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 549 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
550 | 550 | ||
551 | } else if (eventArray[1] == "loyalty_sdk_offer_selected") { | 551 | } else if (eventArray[1] == "loyalty_sdk_offer_selected") { |
552 | var name: String = "" | 552 | var name: String = "" |
... | @@ -567,7 +567,7 @@ var timer2: DispatchSourceTimer? | ... | @@ -567,7 +567,7 @@ var timer2: DispatchSourceTimer? |
567 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" | 567 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" |
568 | firebaseEvent.setParameter = ("name", name) | 568 | firebaseEvent.setParameter = ("name", name) |
569 | firebaseEvent.setParameter = ("type", type) | 569 | firebaseEvent.setParameter = ("type", type) |
570 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 570 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
571 | 571 | ||
572 | } else if (eventArray[1] == "loyalty_offer_activated") { | 572 | } else if (eventArray[1] == "loyalty_offer_activated") { |
573 | var name: String = "" | 573 | var name: String = "" |
... | @@ -596,10 +596,10 @@ var timer2: DispatchSourceTimer? | ... | @@ -596,10 +596,10 @@ var timer2: DispatchSourceTimer? |
596 | firebaseEvent.setParameter = ("name", name) | 596 | firebaseEvent.setParameter = ("name", name) |
597 | firebaseEvent.setParameter = ("type", type) | 597 | firebaseEvent.setParameter = ("type", type) |
598 | firebaseEvent.setParameter = ("successful", successful) | 598 | firebaseEvent.setParameter = ("successful", successful) |
599 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 599 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
600 | 600 | ||
601 | } else if (eventArray[1] == "unified_coupon_activated") { | 601 | } else if (eventArray[1] == "unified_coupon_activated") { |
602 | - SwiftEventBus.post("unified_coupon_activated") | 602 | + // SwiftEventBus.post("unified_coupon_activated") |
603 | 603 | ||
604 | var name: String = "" | 604 | var name: String = "" |
605 | if (eventArray.count > 2) { | 605 | if (eventArray.count > 2) { |
... | @@ -627,7 +627,7 @@ var timer2: DispatchSourceTimer? | ... | @@ -627,7 +627,7 @@ var timer2: DispatchSourceTimer? |
627 | firebaseEvent.setParameter = ("name", name) | 627 | firebaseEvent.setParameter = ("name", name) |
628 | firebaseEvent.setParameter = ("type", type) | 628 | firebaseEvent.setParameter = ("type", type) |
629 | firebaseEvent.setParameter = ("successful", successful) | 629 | firebaseEvent.setParameter = ("successful", successful) |
630 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 630 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
631 | 631 | ||
632 | } else if (eventArray[1] == "time_spent_on_loyalty_sdk") { | 632 | } else if (eventArray[1] == "time_spent_on_loyalty_sdk") { |
633 | var name: String = "" | 633 | var name: String = "" |
... | @@ -648,7 +648,7 @@ var timer2: DispatchSourceTimer? | ... | @@ -648,7 +648,7 @@ var timer2: DispatchSourceTimer? |
648 | firebaseEvent._eventName = "time_spent_on_loyalty_sdk" | 648 | firebaseEvent._eventName = "time_spent_on_loyalty_sdk" |
649 | firebaseEvent.setParameter = ("name", name) | 649 | firebaseEvent.setParameter = ("name", name) |
650 | firebaseEvent.setParameter = ("seconds", seconds) | 650 | firebaseEvent.setParameter = ("seconds", seconds) |
651 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 651 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
652 | 652 | ||
653 | } else if (eventArray[1] == "refreshToken") { | 653 | } else if (eventArray[1] == "refreshToken") { |
654 | var access_token: String = "" | 654 | var access_token: String = "" |
... | @@ -671,7 +671,7 @@ var timer2: DispatchSourceTimer? | ... | @@ -671,7 +671,7 @@ var timer2: DispatchSourceTimer? |
671 | 671 | ||
672 | } else if (eventArray[1] == "loyaltyWallet") { | 672 | } else if (eventArray[1] == "loyaltyWallet") { |
673 | // event:loyaltyWallet | 673 | // event:loyaltyWallet |
674 | - SwiftEventBus.post("refresh_vouchers") | 674 | + // SwiftEventBus.post("refresh_vouchers") |
675 | 675 | ||
676 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 676 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
677 | let vc = storyboard.instantiateViewController(withIdentifier: "WalletViewController") as! SwiftWarplyFramework.WalletViewController | 677 | let vc = storyboard.instantiateViewController(withIdentifier: "WalletViewController") as! SwiftWarplyFramework.WalletViewController |
... | @@ -682,46 +682,46 @@ var timer2: DispatchSourceTimer? | ... | @@ -682,46 +682,46 @@ var timer2: DispatchSourceTimer? |
682 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 682 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
683 | dynatraceEvent._eventName = "custom_success_cancel_unified_loyalty" | 683 | dynatraceEvent._eventName = "custom_success_cancel_unified_loyalty" |
684 | dynatraceEvent._parameters = nil | 684 | dynatraceEvent._parameters = nil |
685 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 685 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
686 | 686 | ||
687 | - SwiftEventBus.post("refresh_unified_coupons") | 687 | + // SwiftEventBus.post("refresh_unified_coupons") |
688 | 688 | ||
689 | } else if (eventArray[1] == "cancel_unified_failed") { | 689 | } else if (eventArray[1] == "cancel_unified_failed") { |
690 | // event:cancel_unified_failed | 690 | // event:cancel_unified_failed |
691 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 691 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
692 | dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty" | 692 | dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty" |
693 | dynatraceEvent._parameters = nil | 693 | dynatraceEvent._parameters = nil |
694 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 694 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
695 | 695 | ||
696 | } else if (eventArray[1] == "create_unified_success") { | 696 | } else if (eventArray[1] == "create_unified_success") { |
697 | // event:create_unified_success | 697 | // event:create_unified_success |
698 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 698 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
699 | dynatraceEvent._eventName = "custom_success_create_unified_loyalty" | 699 | dynatraceEvent._eventName = "custom_success_create_unified_loyalty" |
700 | dynatraceEvent._parameters = nil | 700 | dynatraceEvent._parameters = nil |
701 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 701 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
702 | 702 | ||
703 | - SwiftEventBus.post("refresh_unified_coupons") | 703 | + // SwiftEventBus.post("refresh_unified_coupons") |
704 | 704 | ||
705 | } else if (eventArray[1] == "create_unified_failed") { | 705 | } else if (eventArray[1] == "create_unified_failed") { |
706 | // event:create_unified_failed | 706 | // event:create_unified_failed |
707 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 707 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
708 | dynatraceEvent._eventName = "custom_error_create_unified_loyalty" | 708 | dynatraceEvent._eventName = "custom_error_create_unified_loyalty" |
709 | dynatraceEvent._parameters = nil | 709 | dynatraceEvent._parameters = nil |
710 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 710 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
711 | 711 | ||
712 | } else if (eventArray[1] == "get_unified_success") { | 712 | } else if (eventArray[1] == "get_unified_success") { |
713 | // event:get_unified_success | 713 | // event:get_unified_success |
714 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 714 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
715 | dynatraceEvent._eventName = "custom_success_unified_coupons_loyalty" | 715 | dynatraceEvent._eventName = "custom_success_unified_coupons_loyalty" |
716 | dynatraceEvent._parameters = nil | 716 | dynatraceEvent._parameters = nil |
717 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 717 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
718 | 718 | ||
719 | } else if (eventArray[1] == "get_unified_failed") { | 719 | } else if (eventArray[1] == "get_unified_failed") { |
720 | // event:get_unified_failed | 720 | // event:get_unified_failed |
721 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 721 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
722 | dynatraceEvent._eventName = "custom_error_unified_coupons_loyalty" | 722 | dynatraceEvent._eventName = "custom_error_unified_coupons_loyalty" |
723 | dynatraceEvent._parameters = nil | 723 | dynatraceEvent._parameters = nil |
724 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 724 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
725 | 725 | ||
726 | } | 726 | } |
727 | 727 | ... | ... |
... | @@ -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() | ... | ... |
... | @@ -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 WalletViewController: UIViewController { | 12 | @objc public class WalletViewController: UIViewController { |
13 | @IBOutlet weak var headerImage: UIImageView! | 13 | @IBOutlet weak var headerImage: UIImageView! |
... | @@ -87,52 +87,52 @@ import SwiftEventBus | ... | @@ -87,52 +87,52 @@ import SwiftEventBus |
87 | 87 | ||
88 | self.hidesBottomBarWhenPushed = true | 88 | self.hidesBottomBarWhenPushed = true |
89 | 89 | ||
90 | - SwiftEventBus.onBackgroundThread(self, name: "coupons_fetched") { result in | 90 | +// SwiftEventBus.onBackgroundThread(self, name: "coupons_fetched") { result in |
91 | 91 | ||
92 | - DispatchQueue.main.async { | 92 | +// DispatchQueue.main.async { |
93 | - self.coupons = swiftApi().getCouponList() | 93 | +// self.coupons = swiftApi().getCouponList() |
94 | - self.totalCouponDiscount = Float(round(100 * swiftApi().getLoyaltyBadge()._value) / 100) | 94 | +// self.totalCouponDiscount = Float(round(100 * swiftApi().getLoyaltyBadge()._value) / 100) |
95 | - self.loyaltyBadge = swiftApi().getLoyaltyBadge() | 95 | +// self.loyaltyBadge = swiftApi().getLoyaltyBadge() |
96 | 96 | ||
97 | - self.handleSpinnerAndEmptyView() | 97 | +// self.handleSpinnerAndEmptyView() |
98 | - self.tableView.reloadData() | 98 | +// self.tableView.reloadData() |
99 | - } | 99 | +// } |
100 | - } | 100 | +// } |
101 | 101 | ||
102 | - SwiftEventBus.onBackgroundThread(self, name: "unified_coupons_fetched") { result in | 102 | +// SwiftEventBus.onBackgroundThread(self, name: "unified_coupons_fetched") { result in |
103 | 103 | ||
104 | - DispatchQueue.main.async { | 104 | +// DispatchQueue.main.async { |
105 | - self.unifiedCoupons = swiftApi().getUnifiedCouponList() | 105 | +// self.unifiedCoupons = swiftApi().getUnifiedCouponList() |
106 | - // TODO: Maybe add this | 106 | +// // TODO: Maybe add this |
107 | - // TODO: Uncomment if discounts are shown again in wallet | 107 | +// // TODO: Uncomment if discounts are shown again in wallet |
108 | -// self.matchOldSMCoupons() | 108 | +// // self.matchOldSMCoupons() |
109 | -// self.updateMarketBadge() | 109 | +// // self.updateMarketBadge() |
110 | - self.handleSpinnerAndEmptyView() | 110 | +// self.handleSpinnerAndEmptyView() |
111 | - self.tableView.reloadData() | 111 | +// self.tableView.reloadData() |
112 | - } | 112 | +// } |
113 | - } | 113 | +// } |
114 | 114 | ||
115 | - SwiftEventBus.onBackgroundThread(self, name: "vouchers_fetched") { result in | 115 | +// SwiftEventBus.onBackgroundThread(self, name: "vouchers_fetched") { result in |
116 | 116 | ||
117 | - DispatchQueue.main.async { | 117 | +// DispatchQueue.main.async { |
118 | - print("=== vouchers_fetched event ===") | 118 | +// print("=== vouchers_fetched event ===") |
119 | 119 | ||
120 | - self.handleSpinnerAndEmptyView() | 120 | +// self.handleSpinnerAndEmptyView() |
121 | -// self.showSpinner = false | 121 | +// // self.showSpinner = false |
122 | - self.tableView.reloadData() | 122 | +// self.tableView.reloadData() |
123 | 123 | ||
124 | - } | 124 | +// } |
125 | - } | 125 | +// } |
126 | 126 | ||
127 | - SwiftEventBus.onBackgroundThread(self, name: "vouchers_service_unavailable") { result in | 127 | +// SwiftEventBus.onBackgroundThread(self, name: "vouchers_service_unavailable") { result in |
128 | 128 | ||
129 | - DispatchQueue.main.async { | 129 | +// DispatchQueue.main.async { |
130 | - print("=== vouchers_service_unavailable event ===") | 130 | +// print("=== vouchers_service_unavailable event ===") |
131 | 131 | ||
132 | - self.showVouchersFailureDialog() | 132 | +// self.showVouchersFailureDialog() |
133 | 133 | ||
134 | - } | 134 | +// } |
135 | - } | 135 | +// } |
136 | 136 | ||
137 | // TODO: DELETE ===> | 137 | // TODO: DELETE ===> |
138 | // let coupon = swiftApi.ActiveDFYCouponModel() | 138 | // let coupon = swiftApi.ActiveDFYCouponModel() |
... | @@ -668,7 +668,7 @@ import SwiftEventBus | ... | @@ -668,7 +668,7 @@ import SwiftEventBus |
668 | firebaseEvent._eventName = "time_spent_on_loyalty_sdk" | 668 | firebaseEvent._eventName = "time_spent_on_loyalty_sdk" |
669 | firebaseEvent.setParameter = ("name", "MyRewards") | 669 | firebaseEvent.setParameter = ("name", "MyRewards") |
670 | firebaseEvent.setParameter = ("seconds", String(seconds)) | 670 | firebaseEvent.setParameter = ("seconds", String(seconds)) |
671 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 671 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
672 | 672 | ||
673 | seconds = 0 | 673 | seconds = 0 |
674 | } | 674 | } |
... | @@ -822,7 +822,7 @@ import SwiftEventBus | ... | @@ -822,7 +822,7 @@ import SwiftEventBus |
822 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 822 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
823 | firebaseEvent._eventName = "did_tap_history_badge" | 823 | firebaseEvent._eventName = "did_tap_history_badge" |
824 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") | 824 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") |
825 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 825 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
826 | 826 | ||
827 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "LoyaltyHistoryBadge")) | 827 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "LoyaltyHistoryBadge")) |
828 | 828 | ||
... | @@ -836,12 +836,12 @@ import SwiftEventBus | ... | @@ -836,12 +836,12 @@ import SwiftEventBus |
836 | // analysis_pressed event | 836 | // analysis_pressed event |
837 | let dealsAnalysis = swiftApi.WarplyDealsAnalysisEventModel() | 837 | let dealsAnalysis = swiftApi.WarplyDealsAnalysisEventModel() |
838 | dealsAnalysis._isPressed = true | 838 | dealsAnalysis._isPressed = true |
839 | - SwiftEventBus.post("analysis_pressed", sender: dealsAnalysis) | 839 | + // SwiftEventBus.post("analysis_pressed", sender: dealsAnalysis) |
840 | 840 | ||
841 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 841 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
842 | firebaseEvent._eventName = "did_tap_gifts_for_you_badge" | 842 | firebaseEvent._eventName = "did_tap_gifts_for_you_badge" |
843 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") | 843 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") |
844 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 844 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
845 | 845 | ||
846 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "DealsBanner")) | 846 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "DealsBanner")) |
847 | } | 847 | } |
... | @@ -850,7 +850,7 @@ import SwiftEventBus | ... | @@ -850,7 +850,7 @@ import SwiftEventBus |
850 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 850 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
851 | firebaseEvent._eventName = "did_tap_deals_for_you_badge" | 851 | firebaseEvent._eventName = "did_tap_deals_for_you_badge" |
852 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") | 852 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") |
853 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 853 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
854 | 854 | ||
855 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "LoyaltyBanner")) | 855 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "LoyaltyBanner")) |
856 | 856 | ||
... | @@ -865,7 +865,7 @@ import SwiftEventBus | ... | @@ -865,7 +865,7 @@ import SwiftEventBus |
865 | 865 | ||
866 | let couponDetails = swiftApi.ActiveDFYCouponEventModel() | 866 | let couponDetails = swiftApi.ActiveDFYCouponEventModel() |
867 | couponDetails._isPressed = true | 867 | couponDetails._isPressed = true |
868 | - SwiftEventBus.post("dfy_coupon_details", sender: couponDetails) | 868 | + // SwiftEventBus.post("dfy_coupon_details", sender: couponDetails) |
869 | } | 869 | } |
870 | 870 | ||
871 | @IBAction func dfyBadgeButtonAction(_ sender: Any) { | 871 | @IBAction func dfyBadgeButtonAction(_ sender: Any) { |
... | @@ -875,12 +875,12 @@ import SwiftEventBus | ... | @@ -875,12 +875,12 @@ import SwiftEventBus |
875 | // analysis_pressed event | 875 | // analysis_pressed event |
876 | let dealsAnalysis = swiftApi.WarplyDealsAnalysisEventModel() | 876 | let dealsAnalysis = swiftApi.WarplyDealsAnalysisEventModel() |
877 | dealsAnalysis._isPressed = true | 877 | dealsAnalysis._isPressed = true |
878 | - SwiftEventBus.post("analysis_pressed", sender: dealsAnalysis) | 878 | + // SwiftEventBus.post("analysis_pressed", sender: dealsAnalysis) |
879 | 879 | ||
880 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 880 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
881 | firebaseEvent._eventName = "did_tap_gifts_for_you_badge" | 881 | firebaseEvent._eventName = "did_tap_gifts_for_you_badge" |
882 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") | 882 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") |
883 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 883 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
884 | 884 | ||
885 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "DealsBanner")) | 885 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "DealsBanner")) |
886 | } | 886 | } |
... | @@ -891,7 +891,7 @@ import SwiftEventBus | ... | @@ -891,7 +891,7 @@ import SwiftEventBus |
891 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 891 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
892 | firebaseEvent._eventName = "did_tap_deals_for_you_badge" | 892 | firebaseEvent._eventName = "did_tap_deals_for_you_badge" |
893 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") | 893 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") |
894 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 894 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
895 | 895 | ||
896 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "LoyaltyBanner")) | 896 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "LoyaltyBanner")) |
897 | 897 | ||
... | @@ -908,7 +908,7 @@ import SwiftEventBus | ... | @@ -908,7 +908,7 @@ import SwiftEventBus |
908 | // let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 908 | // let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
909 | // firebaseEvent._eventName = "did_tap_deals_for_you_badge" | 909 | // firebaseEvent._eventName = "did_tap_deals_for_you_badge" |
910 | // firebaseEvent.setParameter = ("screen", "Loyalty Wallet") | 910 | // firebaseEvent.setParameter = ("screen", "Loyalty Wallet") |
911 | -// SwiftEventBus.post("firebase", sender: firebaseEvent) | 911 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
912 | 912 | ||
913 | // swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "LoyaltyBanner")) | 913 | // swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "LoyaltyBanner")) |
914 | 914 | ||
... | @@ -933,17 +933,17 @@ import SwiftEventBus | ... | @@ -933,17 +933,17 @@ import SwiftEventBus |
933 | // analysis_pressed event | 933 | // analysis_pressed event |
934 | let dealsAnalysis = swiftApi.WarplyDealsAnalysisEventModel() | 934 | let dealsAnalysis = swiftApi.WarplyDealsAnalysisEventModel() |
935 | dealsAnalysis._isPressed = true | 935 | dealsAnalysis._isPressed = true |
936 | - SwiftEventBus.post("analysis_pressed", sender: dealsAnalysis) | 936 | + // SwiftEventBus.post("analysis_pressed", sender: dealsAnalysis) |
937 | 937 | ||
938 | // let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 938 | // let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
939 | // firebaseEvent._eventName = "did_tap_gifts_for_you_badge" | 939 | // firebaseEvent._eventName = "did_tap_gifts_for_you_badge" |
940 | // firebaseEvent.setParameter = ("screen", "Loyalty Wallet") | 940 | // firebaseEvent.setParameter = ("screen", "Loyalty Wallet") |
941 | -// SwiftEventBus.post("firebase", sender: firebaseEvent) | 941 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
942 | 942 | ||
943 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 943 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
944 | firebaseEvent._eventName = "did_tap_deals_for_you_badge" | 944 | firebaseEvent._eventName = "did_tap_deals_for_you_badge" |
945 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") | 945 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") |
946 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 946 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
947 | 947 | ||
948 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "DealsBanner")) | 948 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "DealsBanner")) |
949 | } | 949 | } |
... | @@ -954,12 +954,12 @@ import SwiftEventBus | ... | @@ -954,12 +954,12 @@ import SwiftEventBus |
954 | // let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 954 | // let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
955 | // firebaseEvent._eventName = "did_tap_deals_for_you_badge" | 955 | // firebaseEvent._eventName = "did_tap_deals_for_you_badge" |
956 | // firebaseEvent.setParameter = ("screen", "Loyalty Wallet") | 956 | // firebaseEvent.setParameter = ("screen", "Loyalty Wallet") |
957 | -// SwiftEventBus.post("firebase", sender: firebaseEvent) | 957 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
958 | 958 | ||
959 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 959 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
960 | firebaseEvent._eventName = "did_tap_gifts_for_you_badge" | 960 | firebaseEvent._eventName = "did_tap_gifts_for_you_badge" |
961 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") | 961 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") |
962 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 962 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
963 | 963 | ||
964 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "LoyaltyBanner")) | 964 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "LoyaltyBanner")) |
965 | 965 | ||
... | @@ -974,7 +974,7 @@ import SwiftEventBus | ... | @@ -974,7 +974,7 @@ import SwiftEventBus |
974 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 974 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
975 | firebaseEvent._eventName = "did_tap_market_badge" | 975 | firebaseEvent._eventName = "did_tap_market_badge" |
976 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") | 976 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") |
977 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 977 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
978 | 978 | ||
979 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "MarketBanner")) | 979 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "MarketBanner")) |
980 | 980 | ||
... | @@ -991,14 +991,14 @@ import SwiftEventBus | ... | @@ -991,14 +991,14 @@ import SwiftEventBus |
991 | 991 | ||
992 | let couponDetails = swiftApi.ActiveDFYCouponEventModel() | 992 | let couponDetails = swiftApi.ActiveDFYCouponEventModel() |
993 | couponDetails._isPressed = true | 993 | couponDetails._isPressed = true |
994 | - SwiftEventBus.post("dfy_coupon_details", sender: couponDetails) | 994 | + // SwiftEventBus.post("dfy_coupon_details", sender: couponDetails) |
995 | } | 995 | } |
996 | 996 | ||
997 | @IBAction func smActiveCouponsBannerButtonAction(_ sender: Any) { | 997 | @IBAction func smActiveCouponsBannerButtonAction(_ sender: Any) { |
998 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 998 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
999 | firebaseEvent._eventName = "did_tap_market_active_badge" | 999 | firebaseEvent._eventName = "did_tap_market_active_badge" |
1000 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") | 1000 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") |
1001 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 1001 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
1002 | 1002 | ||
1003 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "ActiveMarketBanner")) | 1003 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "ActiveMarketBanner")) |
1004 | 1004 | ||
... | @@ -1011,7 +1011,7 @@ import SwiftEventBus | ... | @@ -1011,7 +1011,7 @@ import SwiftEventBus |
1011 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 1011 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
1012 | firebaseEvent._eventName = "did_tap_gifts_for_you_active_badge" | 1012 | firebaseEvent._eventName = "did_tap_gifts_for_you_active_badge" |
1013 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") | 1013 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") |
1014 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 1014 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
1015 | 1015 | ||
1016 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "ActiveLoyaltyBanner")) | 1016 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "ActiveLoyaltyBanner")) |
1017 | 1017 | ||
... | @@ -1356,7 +1356,7 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{ | ... | @@ -1356,7 +1356,7 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{ |
1356 | // | 1356 | // |
1357 | // let couponDetails = swiftApi.ActiveDFYCouponEventModel() | 1357 | // let couponDetails = swiftApi.ActiveDFYCouponEventModel() |
1358 | // couponDetails._isPressed = true | 1358 | // couponDetails._isPressed = true |
1359 | -// SwiftEventBus.post("dfy_coupon_details", sender: couponDetails) | 1359 | + // SwiftEventBus.post("dfy_coupon_details", sender: couponDetails) |
1360 | // | 1360 | // |
1361 | // } else if (indexPath.section == 3) { | 1361 | // } else if (indexPath.section == 3) { |
1362 | // let couponSetData: swiftApi.CouponSetItemModel? = coupons[indexPath.row].couponset_data | 1362 | // let couponSetData: swiftApi.CouponSetItemModel? = coupons[indexPath.row].couponset_data |
... | @@ -1379,11 +1379,11 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{ | ... | @@ -1379,11 +1379,11 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{ |
1379 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() | 1379 | let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel() |
1380 | firebaseEvent._eventName = "did_tap_vouchers_badge" | 1380 | firebaseEvent._eventName = "did_tap_vouchers_badge" |
1381 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") | 1381 | firebaseEvent.setParameter = ("screen", "Loyalty Wallet") |
1382 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 1382 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
1383 | 1383 | ||
1384 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "VouchersBadge")) | 1384 | swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "VouchersBadge")) |
1385 | 1385 | ||
1386 | - SwiftEventBus.post("vouchers_banner_pressed") | 1386 | + // SwiftEventBus.post("vouchers_banner_pressed") |
1387 | 1387 | ||
1388 | } else if (indexPath.section == 2) { | 1388 | } else if (indexPath.section == 2) { |
1389 | // Do nothing | 1389 | // Do nothing | ... | ... |
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
7 | 7 | ||
8 | import Foundation | 8 | import Foundation |
9 | import SwiftUI | 9 | import SwiftUI |
10 | -import SwiftEventBus | 10 | +// import SwiftEventBus |
11 | 11 | ||
12 | public struct GlobalVariables { | 12 | public struct GlobalVariables { |
13 | static var campaigns: Array<swiftApi.CampaignItemModel> = [] | 13 | static var campaigns: Array<swiftApi.CampaignItemModel> = [] |
... | @@ -199,7 +199,7 @@ public class swiftApi { | ... | @@ -199,7 +199,7 @@ public class swiftApi { |
199 | setShowVouchersBanner("null") | 199 | setShowVouchersBanner("null") |
200 | } | 200 | } |
201 | 201 | ||
202 | - SwiftEventBus.post("vouchers_fetched") | 202 | + // SwiftEventBus.post("vouchers_fetched") |
203 | } | 203 | } |
204 | 204 | ||
205 | 205 | ||
... | @@ -265,7 +265,7 @@ public class swiftApi { | ... | @@ -265,7 +265,7 @@ public class swiftApi { |
265 | 265 | ||
266 | let pacingEvent = swiftApi.HealthEventModel() | 266 | let pacingEvent = swiftApi.HealthEventModel() |
267 | pacingEvent._meters = metersCount + oldDayMeters | 267 | pacingEvent._meters = metersCount + oldDayMeters |
268 | - SwiftEventBus.post("meters_sent", sender: pacingEvent) | 268 | + // SwiftEventBus.post("meters_sent", sender: pacingEvent) |
269 | 269 | ||
270 | // print("=== MetersCount ===") | 270 | // print("=== MetersCount ===") |
271 | // print(metersCount) | 271 | // print(metersCount) |
... | @@ -416,7 +416,7 @@ public class swiftApi { | ... | @@ -416,7 +416,7 @@ public class swiftApi { |
416 | 416 | ||
417 | GlobalVariables.ccmsCampaigns = campaigns | 417 | GlobalVariables.ccmsCampaigns = campaigns |
418 | 418 | ||
419 | - SwiftEventBus.post("ccms_retrieved") | 419 | + // SwiftEventBus.post("ccms_retrieved") |
420 | } | 420 | } |
421 | 421 | ||
422 | public func mergeGFYCCMSLoyaltyCampaigns(campaigns: Array<LoyaltyContextualOfferModel>) -> Array<CampaignItemModel> { | 422 | public func mergeGFYCCMSLoyaltyCampaigns(campaigns: Array<LoyaltyContextualOfferModel>) -> Array<CampaignItemModel> { |
... | @@ -602,7 +602,7 @@ public class swiftApi { | ... | @@ -602,7 +602,7 @@ public class swiftApi { |
602 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 602 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
603 | dynatraceEvent._eventName = "custom_success_couponset_loyalty" | 603 | dynatraceEvent._eventName = "custom_success_couponset_loyalty" |
604 | dynatraceEvent._parameters = nil | 604 | dynatraceEvent._parameters = nil |
605 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 605 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
606 | 606 | ||
607 | let couponSetsData = (myCouponsSetsDictionary["MAPP_COUPON"] as! NSArray) | 607 | let couponSetsData = (myCouponsSetsDictionary["MAPP_COUPON"] as! NSArray) |
608 | 608 | ||
... | @@ -615,7 +615,7 @@ public class swiftApi { | ... | @@ -615,7 +615,7 @@ public class swiftApi { |
615 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 615 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
616 | dynatraceEvent._eventName = "custom_error_couponset_loyalty" | 616 | dynatraceEvent._eventName = "custom_error_couponset_loyalty" |
617 | dynatraceEvent._parameters = nil | 617 | dynatraceEvent._parameters = nil |
618 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 618 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
619 | } | 619 | } |
620 | 620 | ||
621 | swiftApi().setCouponSetList(couponSetsArray) | 621 | swiftApi().setCouponSetList(couponSetsArray) |
... | @@ -628,7 +628,7 @@ public class swiftApi { | ... | @@ -628,7 +628,7 @@ public class swiftApi { |
628 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 628 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
629 | dynatraceEvent._eventName = "custom_error_couponset_loyalty" | 629 | dynatraceEvent._eventName = "custom_error_couponset_loyalty" |
630 | dynatraceEvent._parameters = nil | 630 | dynatraceEvent._parameters = nil |
631 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 631 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
632 | 632 | ||
633 | getCouponSetsCallback(nil) | 633 | getCouponSetsCallback(nil) |
634 | } | 634 | } |
... | @@ -659,7 +659,7 @@ public class swiftApi { | ... | @@ -659,7 +659,7 @@ public class swiftApi { |
659 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 659 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
660 | dynatraceEvent._eventName = "custom_success_couponsets_sm_loyalty" | 660 | dynatraceEvent._eventName = "custom_success_couponsets_sm_loyalty" |
661 | dynatraceEvent._parameters = nil | 661 | dynatraceEvent._parameters = nil |
662 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 662 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
663 | 663 | ||
664 | if let responseDataResult = responseDataDictionary["result"] as? [[String : Any]?] { | 664 | if let responseDataResult = responseDataDictionary["result"] as? [[String : Any]?] { |
665 | 665 | ||
... | @@ -671,21 +671,21 @@ public class swiftApi { | ... | @@ -671,21 +671,21 @@ public class swiftApi { |
671 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 671 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
672 | dynatraceEvent._eventName = "custom_error_couponsets_sm_loyalty" | 672 | dynatraceEvent._eventName = "custom_error_couponsets_sm_loyalty" |
673 | dynatraceEvent._parameters = nil | 673 | dynatraceEvent._parameters = nil |
674 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 674 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
675 | } | 675 | } |
676 | 676 | ||
677 | } else { | 677 | } else { |
678 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 678 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
679 | dynatraceEvent._eventName = "custom_error_couponsets_sm_loyalty" | 679 | dynatraceEvent._eventName = "custom_error_couponsets_sm_loyalty" |
680 | dynatraceEvent._parameters = nil | 680 | dynatraceEvent._parameters = nil |
681 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 681 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
682 | } | 682 | } |
683 | 683 | ||
684 | } else { | 684 | } else { |
685 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 685 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
686 | dynatraceEvent._eventName = "custom_error_couponsets_sm_loyalty" | 686 | dynatraceEvent._eventName = "custom_error_couponsets_sm_loyalty" |
687 | dynatraceEvent._parameters = nil | 687 | dynatraceEvent._parameters = nil |
688 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 688 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
689 | } | 689 | } |
690 | 690 | ||
691 | swiftApi().setCouponSetsDealsList(couponSetsArray) | 691 | swiftApi().setCouponSetsDealsList(couponSetsArray) |
... | @@ -698,7 +698,7 @@ public class swiftApi { | ... | @@ -698,7 +698,7 @@ public class swiftApi { |
698 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 698 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
699 | dynatraceEvent._eventName = "custom_error_couponsets_sm_loyalty" | 699 | dynatraceEvent._eventName = "custom_error_couponsets_sm_loyalty" |
700 | dynatraceEvent._parameters = nil | 700 | dynatraceEvent._parameters = nil |
701 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 701 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
702 | 702 | ||
703 | if let error = error as? NSError { | 703 | if let error = error as? NSError { |
704 | // if (error.code == 401) { | 704 | // if (error.code == 401) { |
... | @@ -899,7 +899,7 @@ public class swiftApi { | ... | @@ -899,7 +899,7 @@ public class swiftApi { |
899 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 899 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
900 | dynatraceEvent._eventName = "custom_success_user_coupons_loyalty" | 900 | dynatraceEvent._eventName = "custom_success_user_coupons_loyalty" |
901 | dynatraceEvent._parameters = nil | 901 | dynatraceEvent._parameters = nil |
902 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 902 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
903 | 903 | ||
904 | // setAllOldCouponList uncluding Supermarkets ==> | 904 | // setAllOldCouponList uncluding Supermarkets ==> |
905 | var allOldCouponsArray:Array<CouponItemModel> = [] | 905 | var allOldCouponsArray:Array<CouponItemModel> = [] |
... | @@ -929,13 +929,13 @@ public class swiftApi { | ... | @@ -929,13 +929,13 @@ public class swiftApi { |
929 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 929 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
930 | dynatraceEvent._eventName = "custom_error_user_coupons_loyalty" | 930 | dynatraceEvent._eventName = "custom_error_user_coupons_loyalty" |
931 | dynatraceEvent._parameters = nil | 931 | dynatraceEvent._parameters = nil |
932 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 932 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
933 | 933 | ||
934 | if let error = error as? NSError { | 934 | if let error = error as? NSError { |
935 | // if (error.code == 401) { | 935 | // if (error.code == 401) { |
936 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() | 936 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() |
937 | // sessionEvent._sessionExpired = true | 937 | // sessionEvent._sessionExpired = true |
938 | -// SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) | 938 | + // SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) |
939 | // } | 939 | // } |
940 | 940 | ||
941 | failureCallback(error.code) | 941 | failureCallback(error.code) |
... | @@ -951,7 +951,7 @@ public class swiftApi { | ... | @@ -951,7 +951,7 @@ public class swiftApi { |
951 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 951 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
952 | dynatraceEvent._eventName = "custom_success_couponset_loyalty" | 952 | dynatraceEvent._eventName = "custom_success_couponset_loyalty" |
953 | dynatraceEvent._parameters = nil | 953 | dynatraceEvent._parameters = nil |
954 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 954 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
955 | 955 | ||
956 | let couponSetsData = (myCouponsSetsDictionary["MAPP_COUPON"] as! NSArray) | 956 | let couponSetsData = (myCouponsSetsDictionary["MAPP_COUPON"] as! NSArray) |
957 | 957 | ||
... | @@ -964,7 +964,7 @@ public class swiftApi { | ... | @@ -964,7 +964,7 @@ public class swiftApi { |
964 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 964 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
965 | dynatraceEvent._eventName = "custom_error_couponset_loyalty" | 965 | dynatraceEvent._eventName = "custom_error_couponset_loyalty" |
966 | dynatraceEvent._parameters = nil | 966 | dynatraceEvent._parameters = nil |
967 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 967 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
968 | } | 968 | } |
969 | swiftApi().setCouponSetList(couponSetsArray) | 969 | swiftApi().setCouponSetList(couponSetsArray) |
970 | 970 | ||
... | @@ -1000,7 +1000,7 @@ public class swiftApi { | ... | @@ -1000,7 +1000,7 @@ public class swiftApi { |
1000 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 1000 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
1001 | dynatraceEvent._eventName = "custom_error_couponset_loyalty" | 1001 | dynatraceEvent._eventName = "custom_error_couponset_loyalty" |
1002 | dynatraceEvent._parameters = nil | 1002 | dynatraceEvent._parameters = nil |
1003 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 1003 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
1004 | 1004 | ||
1005 | getCouponsCallback(nil) | 1005 | getCouponsCallback(nil) |
1006 | } | 1006 | } |
... | @@ -1464,7 +1464,7 @@ public class swiftApi { | ... | @@ -1464,7 +1464,7 @@ public class swiftApi { |
1464 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 1464 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
1465 | dynatraceEvent._eventName = "custom_success_campaigns_loyalty" | 1465 | dynatraceEvent._eventName = "custom_success_campaigns_loyalty" |
1466 | dynatraceEvent._parameters = nil | 1466 | dynatraceEvent._parameters = nil |
1467 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 1467 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
1468 | 1468 | ||
1469 | if let responseDataMapp = responseDataDictionary["MAPP_CAMPAIGNING"] as? [String: Any] { | 1469 | if let responseDataMapp = responseDataDictionary["MAPP_CAMPAIGNING"] as? [String: Any] { |
1470 | if let responseDataCampaigns = responseDataMapp["campaigns"] as? [[String : Any]?] { | 1470 | if let responseDataCampaigns = responseDataMapp["campaigns"] as? [[String : Any]?] { |
... | @@ -1522,7 +1522,7 @@ public class swiftApi { | ... | @@ -1522,7 +1522,7 @@ public class swiftApi { |
1522 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 1522 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
1523 | dynatraceEvent._eventName = "custom_error_campaigns_loyalty" | 1523 | dynatraceEvent._eventName = "custom_error_campaigns_loyalty" |
1524 | dynatraceEvent._parameters = nil | 1524 | dynatraceEvent._parameters = nil |
1525 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 1525 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
1526 | 1526 | ||
1527 | getCampaignsCallback(nil) | 1527 | getCampaignsCallback(nil) |
1528 | } | 1528 | } |
... | @@ -1531,7 +1531,7 @@ public class swiftApi { | ... | @@ -1531,7 +1531,7 @@ public class swiftApi { |
1531 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 1531 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
1532 | dynatraceEvent._eventName = "custom_error_campaigns_loyalty" | 1532 | dynatraceEvent._eventName = "custom_error_campaigns_loyalty" |
1533 | dynatraceEvent._parameters = nil | 1533 | dynatraceEvent._parameters = nil |
1534 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 1534 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
1535 | 1535 | ||
1536 | getCampaignsCallback(nil) | 1536 | getCampaignsCallback(nil) |
1537 | } | 1537 | } |
... | @@ -1545,7 +1545,7 @@ public class swiftApi { | ... | @@ -1545,7 +1545,7 @@ public class swiftApi { |
1545 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 1545 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
1546 | dynatraceEvent._eventName = "custom_error_campaigns_loyalty" | 1546 | dynatraceEvent._eventName = "custom_error_campaigns_loyalty" |
1547 | dynatraceEvent._parameters = nil | 1547 | dynatraceEvent._parameters = nil |
1548 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 1548 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
1549 | 1549 | ||
1550 | getCampaignsCallback(nil) | 1550 | getCampaignsCallback(nil) |
1551 | } | 1551 | } |
... | @@ -1567,7 +1567,7 @@ public class swiftApi { | ... | @@ -1567,7 +1567,7 @@ public class swiftApi { |
1567 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 1567 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
1568 | dynatraceEvent._eventName = "custom_success_campaigns_personalized_loyalty" | 1568 | dynatraceEvent._eventName = "custom_success_campaigns_personalized_loyalty" |
1569 | dynatraceEvent._parameters = nil | 1569 | dynatraceEvent._parameters = nil |
1570 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 1570 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
1571 | 1571 | ||
1572 | if let responseDataContext = responseDataDictionary["context"] as? [String: Any] { | 1572 | if let responseDataContext = responseDataDictionary["context"] as? [String: Any] { |
1573 | 1573 | ||
... | @@ -1600,7 +1600,7 @@ public class swiftApi { | ... | @@ -1600,7 +1600,7 @@ public class swiftApi { |
1600 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 1600 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
1601 | dynatraceEvent._eventName = "custom_error_campaigns_personalized_loyalty" | 1601 | dynatraceEvent._eventName = "custom_error_campaigns_personalized_loyalty" |
1602 | dynatraceEvent._parameters = nil | 1602 | dynatraceEvent._parameters = nil |
1603 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 1603 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
1604 | 1604 | ||
1605 | getCampaignsCallback(nil) | 1605 | getCampaignsCallback(nil) |
1606 | } | 1606 | } |
... | @@ -1609,7 +1609,7 @@ public class swiftApi { | ... | @@ -1609,7 +1609,7 @@ public class swiftApi { |
1609 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 1609 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
1610 | dynatraceEvent._eventName = "custom_error_campaigns_personalized_loyalty" | 1610 | dynatraceEvent._eventName = "custom_error_campaigns_personalized_loyalty" |
1611 | dynatraceEvent._parameters = nil | 1611 | dynatraceEvent._parameters = nil |
1612 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 1612 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
1613 | 1613 | ||
1614 | getCampaignsCallback(nil) | 1614 | getCampaignsCallback(nil) |
1615 | } | 1615 | } |
... | @@ -1623,13 +1623,13 @@ public class swiftApi { | ... | @@ -1623,13 +1623,13 @@ public class swiftApi { |
1623 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 1623 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
1624 | dynatraceEvent._eventName = "custom_error_campaigns_personalized_loyalty" | 1624 | dynatraceEvent._eventName = "custom_error_campaigns_personalized_loyalty" |
1625 | dynatraceEvent._parameters = nil | 1625 | dynatraceEvent._parameters = nil |
1626 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 1626 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
1627 | 1627 | ||
1628 | if let error = error as? NSError { | 1628 | if let error = error as? NSError { |
1629 | // if (error.code == 401) { | 1629 | // if (error.code == 401) { |
1630 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() | 1630 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() |
1631 | // sessionEvent._sessionExpired = true | 1631 | // sessionEvent._sessionExpired = true |
1632 | -// SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) | 1632 | + // SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) |
1633 | // } | 1633 | // } |
1634 | 1634 | ||
1635 | failureCallback(error.code) | 1635 | failureCallback(error.code) |
... | @@ -2634,7 +2634,7 @@ public class swiftApi { | ... | @@ -2634,7 +2634,7 @@ public class swiftApi { |
2634 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 2634 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
2635 | dynatraceEvent._eventName = "custom_success_profile_loyalty" | 2635 | dynatraceEvent._eventName = "custom_success_profile_loyalty" |
2636 | dynatraceEvent._parameters = nil | 2636 | dynatraceEvent._parameters = nil |
2637 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 2637 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
2638 | 2638 | ||
2639 | let profileDataResult = (profileDataDictionary["result"] as? [String: Any] ?? ["":""]) | 2639 | let profileDataResult = (profileDataDictionary["result"] as? [String: Any] ?? ["":""]) |
2640 | 2640 | ||
... | @@ -2652,7 +2652,7 @@ public class swiftApi { | ... | @@ -2652,7 +2652,7 @@ public class swiftApi { |
2652 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 2652 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
2653 | dynatraceEvent._eventName = "custom_error_profile_loyalty" | 2653 | dynatraceEvent._eventName = "custom_error_profile_loyalty" |
2654 | dynatraceEvent._parameters = nil | 2654 | dynatraceEvent._parameters = nil |
2655 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 2655 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
2656 | 2656 | ||
2657 | getProfileCallback(nil) | 2657 | getProfileCallback(nil) |
2658 | } | 2658 | } |
... | @@ -2665,13 +2665,13 @@ public class swiftApi { | ... | @@ -2665,13 +2665,13 @@ public class swiftApi { |
2665 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 2665 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
2666 | dynatraceEvent._eventName = "custom_error_profile_loyalty" | 2666 | dynatraceEvent._eventName = "custom_error_profile_loyalty" |
2667 | dynatraceEvent._parameters = nil | 2667 | dynatraceEvent._parameters = nil |
2668 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 2668 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
2669 | 2669 | ||
2670 | if let error = error as? NSError { | 2670 | if let error = error as? NSError { |
2671 | // if (error.code == 401) { | 2671 | // if (error.code == 401) { |
2672 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() | 2672 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() |
2673 | // sessionEvent._sessionExpired = true | 2673 | // sessionEvent._sessionExpired = true |
2674 | -// SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) | 2674 | + // SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) |
2675 | // } | 2675 | // } |
2676 | 2676 | ||
2677 | failureCallback(error.code) | 2677 | failureCallback(error.code) |
... | @@ -2737,7 +2737,7 @@ public class swiftApi { | ... | @@ -2737,7 +2737,7 @@ public class swiftApi { |
2737 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 2737 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
2738 | dynatraceEvent._eventName = "custom_success_login_loyalty" | 2738 | dynatraceEvent._eventName = "custom_success_login_loyalty" |
2739 | dynatraceEvent._parameters = nil | 2739 | dynatraceEvent._parameters = nil |
2740 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 2740 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
2741 | 2741 | ||
2742 | verifyTicketCallback(tempResponse); | 2742 | verifyTicketCallback(tempResponse); |
2743 | 2743 | ||
... | @@ -2747,7 +2747,7 @@ public class swiftApi { | ... | @@ -2747,7 +2747,7 @@ public class swiftApi { |
2747 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 2747 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
2748 | dynatraceEvent._eventName = "custom_error_login_loyalty" | 2748 | dynatraceEvent._eventName = "custom_error_login_loyalty" |
2749 | dynatraceEvent._parameters = nil | 2749 | dynatraceEvent._parameters = nil |
2750 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 2750 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
2751 | 2751 | ||
2752 | verifyTicketCallback(tempResponse); | 2752 | verifyTicketCallback(tempResponse); |
2753 | } | 2753 | } |
... | @@ -2756,7 +2756,7 @@ public class swiftApi { | ... | @@ -2756,7 +2756,7 @@ public class swiftApi { |
2756 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 2756 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
2757 | dynatraceEvent._eventName = "custom_error_login_loyalty" | 2757 | dynatraceEvent._eventName = "custom_error_login_loyalty" |
2758 | dynatraceEvent._parameters = nil | 2758 | dynatraceEvent._parameters = nil |
2759 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 2759 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
2760 | 2760 | ||
2761 | verifyTicketCallback(nil) | 2761 | verifyTicketCallback(nil) |
2762 | } | 2762 | } |
... | @@ -2771,7 +2771,7 @@ public class swiftApi { | ... | @@ -2771,7 +2771,7 @@ public class swiftApi { |
2771 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 2771 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
2772 | dynatraceEvent._eventName = "custom_error_login_loyalty" | 2772 | dynatraceEvent._eventName = "custom_error_login_loyalty" |
2773 | dynatraceEvent._parameters = nil | 2773 | dynatraceEvent._parameters = nil |
2774 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 2774 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
2775 | 2775 | ||
2776 | verifyTicketCallback(nil) | 2776 | verifyTicketCallback(nil) |
2777 | } | 2777 | } |
... | @@ -3669,7 +3669,7 @@ public class swiftApi { | ... | @@ -3669,7 +3669,7 @@ public class swiftApi { |
3669 | func getCouponsCallback (_ couponsData: Array<swiftApi.CouponItemModel>?) -> Void { | 3669 | func getCouponsCallback (_ couponsData: Array<swiftApi.CouponItemModel>?) -> Void { |
3670 | if (couponsData != nil) { | 3670 | if (couponsData != nil) { |
3671 | DispatchQueue.main.async { | 3671 | DispatchQueue.main.async { |
3672 | - SwiftEventBus.post("coupons_fetched") | 3672 | + // SwiftEventBus.post("coupons_fetched") |
3673 | } | 3673 | } |
3674 | } else { | 3674 | } else { |
3675 | } | 3675 | } |
... | @@ -3736,7 +3736,7 @@ public class swiftApi { | ... | @@ -3736,7 +3736,7 @@ public class swiftApi { |
3736 | func getCouponsCallback (_ couponsData: Array<swiftApi.CouponItemModel>?) -> Void { | 3736 | func getCouponsCallback (_ couponsData: Array<swiftApi.CouponItemModel>?) -> Void { |
3737 | if (couponsData != nil) { | 3737 | if (couponsData != nil) { |
3738 | DispatchQueue.main.async { | 3738 | DispatchQueue.main.async { |
3739 | - SwiftEventBus.post("coupons_fetched") | 3739 | + // SwiftEventBus.post("coupons_fetched") |
3740 | } | 3740 | } |
3741 | } else { | 3741 | } else { |
3742 | } | 3742 | } |
... | @@ -4394,13 +4394,13 @@ public class swiftApi { | ... | @@ -4394,13 +4394,13 @@ public class swiftApi { |
4394 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 4394 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
4395 | dynatraceEvent._eventName = "custom_success_customer_state_loyalty" | 4395 | dynatraceEvent._eventName = "custom_success_customer_state_loyalty" |
4396 | dynatraceEvent._parameters = nil | 4396 | dynatraceEvent._parameters = nil |
4397 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 4397 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
4398 | 4398 | ||
4399 | } else { | 4399 | } else { |
4400 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 4400 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
4401 | dynatraceEvent._eventName = "custom_error_customer_state_loyalty" | 4401 | dynatraceEvent._eventName = "custom_error_customer_state_loyalty" |
4402 | dynatraceEvent._parameters = nil | 4402 | dynatraceEvent._parameters = nil |
4403 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 4403 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
4404 | 4404 | ||
4405 | } | 4405 | } |
4406 | } | 4406 | } |
... | @@ -4408,7 +4408,7 @@ public class swiftApi { | ... | @@ -4408,7 +4408,7 @@ public class swiftApi { |
4408 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 4408 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
4409 | dynatraceEvent._eventName = "custom_error_customer_state_loyalty" | 4409 | dynatraceEvent._eventName = "custom_error_customer_state_loyalty" |
4410 | dynatraceEvent._parameters = nil | 4410 | dynatraceEvent._parameters = nil |
4411 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 4411 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
4412 | } | 4412 | } |
4413 | 4413 | ||
4414 | consumerIntegrationCallback(tempResponse); | 4414 | consumerIntegrationCallback(tempResponse); |
... | @@ -4417,7 +4417,7 @@ public class swiftApi { | ... | @@ -4417,7 +4417,7 @@ public class swiftApi { |
4417 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 4417 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
4418 | dynatraceEvent._eventName = "custom_error_customer_state_loyalty" | 4418 | dynatraceEvent._eventName = "custom_error_customer_state_loyalty" |
4419 | dynatraceEvent._parameters = nil | 4419 | dynatraceEvent._parameters = nil |
4420 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 4420 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
4421 | 4421 | ||
4422 | consumerIntegrationCallback(nil) | 4422 | consumerIntegrationCallback(nil) |
4423 | } | 4423 | } |
... | @@ -4432,13 +4432,13 @@ public class swiftApi { | ... | @@ -4432,13 +4432,13 @@ public class swiftApi { |
4432 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 4432 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
4433 | dynatraceEvent._eventName = "custom_error_customer_state_loyalty" | 4433 | dynatraceEvent._eventName = "custom_error_customer_state_loyalty" |
4434 | dynatraceEvent._parameters = nil | 4434 | dynatraceEvent._parameters = nil |
4435 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 4435 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
4436 | 4436 | ||
4437 | if let error = error as? NSError { | 4437 | if let error = error as? NSError { |
4438 | // if (error.code == 401) { | 4438 | // if (error.code == 401) { |
4439 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() | 4439 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() |
4440 | // sessionEvent._sessionExpired = true | 4440 | // sessionEvent._sessionExpired = true |
4441 | -// SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) | 4441 | + // SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) |
4442 | // } | 4442 | // } |
4443 | 4443 | ||
4444 | failureCallback(error.code) | 4444 | failureCallback(error.code) |
... | @@ -4465,13 +4465,13 @@ public class swiftApi { | ... | @@ -4465,13 +4465,13 @@ public class swiftApi { |
4465 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 4465 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
4466 | dynatraceEvent._eventName = "custom_success_retrieve_coupon_loyalty" | 4466 | dynatraceEvent._eventName = "custom_success_retrieve_coupon_loyalty" |
4467 | dynatraceEvent._parameters = nil | 4467 | dynatraceEvent._parameters = nil |
4468 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 4468 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
4469 | 4469 | ||
4470 | } else { | 4470 | } else { |
4471 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 4471 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
4472 | dynatraceEvent._eventName = "custom_error_retrieve_coupon_loyalty" | 4472 | dynatraceEvent._eventName = "custom_error_retrieve_coupon_loyalty" |
4473 | dynatraceEvent._parameters = nil | 4473 | dynatraceEvent._parameters = nil |
4474 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 4474 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
4475 | 4475 | ||
4476 | } | 4476 | } |
4477 | } | 4477 | } |
... | @@ -4479,7 +4479,7 @@ public class swiftApi { | ... | @@ -4479,7 +4479,7 @@ public class swiftApi { |
4479 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 4479 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
4480 | dynatraceEvent._eventName = "custom_error_retrieve_coupon_loyalty" | 4480 | dynatraceEvent._eventName = "custom_error_retrieve_coupon_loyalty" |
4481 | dynatraceEvent._parameters = nil | 4481 | dynatraceEvent._parameters = nil |
4482 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 4482 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
4483 | } | 4483 | } |
4484 | 4484 | ||
4485 | redeemCouponSetCallback(tempResponse); | 4485 | redeemCouponSetCallback(tempResponse); |
... | @@ -4488,7 +4488,7 @@ public class swiftApi { | ... | @@ -4488,7 +4488,7 @@ public class swiftApi { |
4488 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 4488 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
4489 | dynatraceEvent._eventName = "custom_error_retrieve_coupon_loyalty" | 4489 | dynatraceEvent._eventName = "custom_error_retrieve_coupon_loyalty" |
4490 | dynatraceEvent._parameters = nil | 4490 | dynatraceEvent._parameters = nil |
4491 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 4491 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
4492 | 4492 | ||
4493 | redeemCouponSetCallback(nil) | 4493 | redeemCouponSetCallback(nil) |
4494 | } | 4494 | } |
... | @@ -4503,13 +4503,13 @@ public class swiftApi { | ... | @@ -4503,13 +4503,13 @@ public class swiftApi { |
4503 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 4503 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
4504 | dynatraceEvent._eventName = "custom_error_retrieve_coupon_loyalty" | 4504 | dynatraceEvent._eventName = "custom_error_retrieve_coupon_loyalty" |
4505 | dynatraceEvent._parameters = nil | 4505 | dynatraceEvent._parameters = nil |
4506 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 4506 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
4507 | 4507 | ||
4508 | if let error = error as? NSError { | 4508 | if let error = error as? NSError { |
4509 | // if (error.code == 401) { | 4509 | // if (error.code == 401) { |
4510 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() | 4510 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() |
4511 | // sessionEvent._sessionExpired = true | 4511 | // sessionEvent._sessionExpired = true |
4512 | -// SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) | 4512 | + // SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) |
4513 | // } | 4513 | // } |
4514 | 4514 | ||
4515 | failureCallback(error.code) | 4515 | failureCallback(error.code) |
... | @@ -4548,7 +4548,7 @@ public class swiftApi { | ... | @@ -4548,7 +4548,7 @@ public class swiftApi { |
4548 | // if (error.code == 401) { | 4548 | // if (error.code == 401) { |
4549 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() | 4549 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() |
4550 | // sessionEvent._sessionExpired = true | 4550 | // sessionEvent._sessionExpired = true |
4551 | -// SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) | 4551 | + // SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) |
4552 | // } | 4552 | // } |
4553 | 4553 | ||
4554 | failureCallback(error.code) | 4554 | failureCallback(error.code) |
... | @@ -4939,7 +4939,7 @@ public class swiftApi { | ... | @@ -4939,7 +4939,7 @@ public class swiftApi { |
4939 | public func setSeasonalList(_ seasonalCoupons: Array<LoyaltyGiftsForYouPackage>) { | 4939 | public func setSeasonalList(_ seasonalCoupons: Array<LoyaltyGiftsForYouPackage>) { |
4940 | GlobalVariables.seasonalList = seasonalCoupons | 4940 | GlobalVariables.seasonalList = seasonalCoupons |
4941 | 4941 | ||
4942 | - SwiftEventBus.post("seasonals_retrieved") | 4942 | + // SwiftEventBus.post("seasonals_retrieved") |
4943 | } | 4943 | } |
4944 | 4944 | ||
4945 | 4945 | ||
... | @@ -5249,7 +5249,7 @@ public class swiftApi { | ... | @@ -5249,7 +5249,7 @@ public class swiftApi { |
5249 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5249 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5250 | dynatraceEvent._eventName = "custom_success_pacing_loyalty" | 5250 | dynatraceEvent._eventName = "custom_success_pacing_loyalty" |
5251 | dynatraceEvent._parameters = nil | 5251 | dynatraceEvent._parameters = nil |
5252 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5252 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5253 | 5253 | ||
5254 | getPacingDetailsCallback(tempPacingDetails); | 5254 | getPacingDetailsCallback(tempPacingDetails); |
5255 | 5255 | ||
... | @@ -5257,14 +5257,14 @@ public class swiftApi { | ... | @@ -5257,14 +5257,14 @@ public class swiftApi { |
5257 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5257 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5258 | dynatraceEvent._eventName = "custom_error_pacing_loyalty" | 5258 | dynatraceEvent._eventName = "custom_error_pacing_loyalty" |
5259 | dynatraceEvent._parameters = nil | 5259 | dynatraceEvent._parameters = nil |
5260 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5260 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5261 | } | 5261 | } |
5262 | 5262 | ||
5263 | } else { | 5263 | } else { |
5264 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5264 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5265 | dynatraceEvent._eventName = "custom_error_pacing_loyalty" | 5265 | dynatraceEvent._eventName = "custom_error_pacing_loyalty" |
5266 | dynatraceEvent._parameters = nil | 5266 | dynatraceEvent._parameters = nil |
5267 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5267 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5268 | 5268 | ||
5269 | getPacingDetailsCallback(nil) | 5269 | getPacingDetailsCallback(nil) |
5270 | } | 5270 | } |
... | @@ -5277,13 +5277,13 @@ public class swiftApi { | ... | @@ -5277,13 +5277,13 @@ public class swiftApi { |
5277 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5277 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5278 | dynatraceEvent._eventName = "custom_error_pacing_loyalty" | 5278 | dynatraceEvent._eventName = "custom_error_pacing_loyalty" |
5279 | dynatraceEvent._parameters = nil | 5279 | dynatraceEvent._parameters = nil |
5280 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5280 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5281 | 5281 | ||
5282 | if let error = error as? NSError { | 5282 | if let error = error as? NSError { |
5283 | // if (error.code == 401) { | 5283 | // if (error.code == 401) { |
5284 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() | 5284 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() |
5285 | // sessionEvent._sessionExpired = true | 5285 | // sessionEvent._sessionExpired = true |
5286 | -// SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) | 5286 | + // SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) |
5287 | // } | 5287 | // } |
5288 | 5288 | ||
5289 | failureCallback(error.code) | 5289 | failureCallback(error.code) |
... | @@ -5332,7 +5332,7 @@ public class swiftApi { | ... | @@ -5332,7 +5332,7 @@ public class swiftApi { |
5332 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5332 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5333 | dynatraceEvent._eventName = "custom_success_save_pacing_loyalty" | 5333 | dynatraceEvent._eventName = "custom_success_save_pacing_loyalty" |
5334 | dynatraceEvent._parameters = nil | 5334 | dynatraceEvent._parameters = nil |
5335 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5335 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5336 | 5336 | ||
5337 | let tempResponse = GenericResponseModel(dictionary: responseDataDictionary) | 5337 | let tempResponse = GenericResponseModel(dictionary: responseDataDictionary) |
5338 | setPacingDetailsCallback(tempResponse); | 5338 | setPacingDetailsCallback(tempResponse); |
... | @@ -5345,7 +5345,7 @@ public class swiftApi { | ... | @@ -5345,7 +5345,7 @@ public class swiftApi { |
5345 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5345 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5346 | dynatraceEvent._eventName = "custom_error_save_pacing_loyalty" | 5346 | dynatraceEvent._eventName = "custom_error_save_pacing_loyalty" |
5347 | dynatraceEvent._parameters = nil | 5347 | dynatraceEvent._parameters = nil |
5348 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5348 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5349 | 5349 | ||
5350 | setPacingDetailsCallback(nil) | 5350 | setPacingDetailsCallback(nil) |
5351 | } | 5351 | } |
... | @@ -5354,7 +5354,7 @@ public class swiftApi { | ... | @@ -5354,7 +5354,7 @@ public class swiftApi { |
5354 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5354 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5355 | dynatraceEvent._eventName = "custom_error_save_pacing_loyalty" | 5355 | dynatraceEvent._eventName = "custom_error_save_pacing_loyalty" |
5356 | dynatraceEvent._parameters = nil | 5356 | dynatraceEvent._parameters = nil |
5357 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5357 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5358 | 5358 | ||
5359 | setPacingDetailsCallback(nil) | 5359 | setPacingDetailsCallback(nil) |
5360 | } | 5360 | } |
... | @@ -5366,13 +5366,13 @@ public class swiftApi { | ... | @@ -5366,13 +5366,13 @@ public class swiftApi { |
5366 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5366 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5367 | dynatraceEvent._eventName = "custom_error_save_pacing_loyalty" | 5367 | dynatraceEvent._eventName = "custom_error_save_pacing_loyalty" |
5368 | dynatraceEvent._parameters = nil | 5368 | dynatraceEvent._parameters = nil |
5369 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5369 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5370 | 5370 | ||
5371 | if let error = error as? NSError { | 5371 | if let error = error as? NSError { |
5372 | // if (error.code == 401) { | 5372 | // if (error.code == 401) { |
5373 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() | 5373 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() |
5374 | // sessionEvent._sessionExpired = true | 5374 | // sessionEvent._sessionExpired = true |
5375 | -// SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) | 5375 | + // SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) |
5376 | // } | 5376 | // } |
5377 | 5377 | ||
5378 | failureCallback(error.code) | 5378 | failureCallback(error.code) |
... | @@ -5469,7 +5469,7 @@ public class swiftApi { | ... | @@ -5469,7 +5469,7 @@ public class swiftApi { |
5469 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5469 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5470 | dynatraceEvent._eventName = "custom_success_sharing_loyalty" | 5470 | dynatraceEvent._eventName = "custom_success_sharing_loyalty" |
5471 | dynatraceEvent._parameters = nil | 5471 | dynatraceEvent._parameters = nil |
5472 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5472 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5473 | 5473 | ||
5474 | let tempResponse = SharingResponseModel(dictionary: responseDataDictionary) | 5474 | let tempResponse = SharingResponseModel(dictionary: responseDataDictionary) |
5475 | cosmoteSharingCallback(tempResponse); | 5475 | cosmoteSharingCallback(tempResponse); |
... | @@ -5477,7 +5477,7 @@ public class swiftApi { | ... | @@ -5477,7 +5477,7 @@ public class swiftApi { |
5477 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5477 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5478 | dynatraceEvent._eventName = "custom_error_sharing_loyalty" | 5478 | dynatraceEvent._eventName = "custom_error_sharing_loyalty" |
5479 | dynatraceEvent._parameters = nil | 5479 | dynatraceEvent._parameters = nil |
5480 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5480 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5481 | 5481 | ||
5482 | cosmoteSharingCallback(nil) | 5482 | cosmoteSharingCallback(nil) |
5483 | } | 5483 | } |
... | @@ -5487,7 +5487,7 @@ public class swiftApi { | ... | @@ -5487,7 +5487,7 @@ public class swiftApi { |
5487 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5487 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5488 | dynatraceEvent._eventName = "custom_error_sharing_loyalty" | 5488 | dynatraceEvent._eventName = "custom_error_sharing_loyalty" |
5489 | dynatraceEvent._parameters = nil | 5489 | dynatraceEvent._parameters = nil |
5490 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5490 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5491 | 5491 | ||
5492 | cosmoteSharingCallback(nil) | 5492 | cosmoteSharingCallback(nil) |
5493 | } | 5493 | } |
... | @@ -5502,13 +5502,13 @@ public class swiftApi { | ... | @@ -5502,13 +5502,13 @@ public class swiftApi { |
5502 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5502 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5503 | dynatraceEvent._eventName = "custom_error_sharing_loyalty" | 5503 | dynatraceEvent._eventName = "custom_error_sharing_loyalty" |
5504 | dynatraceEvent._parameters = nil | 5504 | dynatraceEvent._parameters = nil |
5505 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5505 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5506 | 5506 | ||
5507 | if let error = error as? NSError { | 5507 | if let error = error as? NSError { |
5508 | // if (error.code == 401) { | 5508 | // if (error.code == 401) { |
5509 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() | 5509 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() |
5510 | // sessionEvent._sessionExpired = true | 5510 | // sessionEvent._sessionExpired = true |
5511 | -// SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) | 5511 | + // SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) |
5512 | // } | 5512 | // } |
5513 | 5513 | ||
5514 | failureCallback(error.code) | 5514 | failureCallback(error.code) |
... | @@ -5532,7 +5532,7 @@ public class swiftApi { | ... | @@ -5532,7 +5532,7 @@ public class swiftApi { |
5532 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5532 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5533 | dynatraceEvent._eventName = "custom_success_retrieve_sharing_loyalty" | 5533 | dynatraceEvent._eventName = "custom_success_retrieve_sharing_loyalty" |
5534 | dynatraceEvent._parameters = nil | 5534 | dynatraceEvent._parameters = nil |
5535 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5535 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5536 | 5536 | ||
5537 | if let responseDataDictionary = responseData as? [String: Any] { | 5537 | if let responseDataDictionary = responseData as? [String: Any] { |
5538 | 5538 | ||
... | @@ -5547,7 +5547,7 @@ public class swiftApi { | ... | @@ -5547,7 +5547,7 @@ public class swiftApi { |
5547 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5547 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5548 | dynatraceEvent._eventName = "custom_error_retrieve_sharing_loyalty" | 5548 | dynatraceEvent._eventName = "custom_error_retrieve_sharing_loyalty" |
5549 | dynatraceEvent._parameters = nil | 5549 | dynatraceEvent._parameters = nil |
5550 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5550 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5551 | 5551 | ||
5552 | cosmoteSharingCallback(nil) | 5552 | cosmoteSharingCallback(nil) |
5553 | } | 5553 | } |
... | @@ -5556,7 +5556,7 @@ public class swiftApi { | ... | @@ -5556,7 +5556,7 @@ public class swiftApi { |
5556 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5556 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5557 | dynatraceEvent._eventName = "custom_error_retrieve_sharing_loyalty" | 5557 | dynatraceEvent._eventName = "custom_error_retrieve_sharing_loyalty" |
5558 | dynatraceEvent._parameters = nil | 5558 | dynatraceEvent._parameters = nil |
5559 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5559 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5560 | 5560 | ||
5561 | cosmoteSharingCallback(nil) | 5561 | cosmoteSharingCallback(nil) |
5562 | } | 5562 | } |
... | @@ -5571,13 +5571,13 @@ public class swiftApi { | ... | @@ -5571,13 +5571,13 @@ public class swiftApi { |
5571 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5571 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5572 | dynatraceEvent._eventName = "custom_error_retrieve_sharing_loyalty" | 5572 | dynatraceEvent._eventName = "custom_error_retrieve_sharing_loyalty" |
5573 | dynatraceEvent._parameters = nil | 5573 | dynatraceEvent._parameters = nil |
5574 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5574 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5575 | 5575 | ||
5576 | if let error = error as? NSError { | 5576 | if let error = error as? NSError { |
5577 | // if (error.code == 401) { | 5577 | // if (error.code == 401) { |
5578 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() | 5578 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() |
5579 | // sessionEvent._sessionExpired = true | 5579 | // sessionEvent._sessionExpired = true |
5580 | -// SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) | 5580 | + // SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) |
5581 | // } | 5581 | // } |
5582 | 5582 | ||
5583 | failureCallback(error.code) | 5583 | failureCallback(error.code) |
... | @@ -5646,13 +5646,13 @@ public class swiftApi { | ... | @@ -5646,13 +5646,13 @@ public class swiftApi { |
5646 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5646 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5647 | dynatraceEvent._eventName = "custom_success_coupon_sharing_loyalty" | 5647 | dynatraceEvent._eventName = "custom_success_coupon_sharing_loyalty" |
5648 | dynatraceEvent._parameters = nil | 5648 | dynatraceEvent._parameters = nil |
5649 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5649 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5650 | 5650 | ||
5651 | } else { | 5651 | } else { |
5652 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5652 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5653 | dynatraceEvent._eventName = "custom_error_coupon_sharing_loyalty" | 5653 | dynatraceEvent._eventName = "custom_error_coupon_sharing_loyalty" |
5654 | dynatraceEvent._parameters = nil | 5654 | dynatraceEvent._parameters = nil |
5655 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5655 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5656 | 5656 | ||
5657 | } | 5657 | } |
5658 | } | 5658 | } |
... | @@ -5660,7 +5660,7 @@ public class swiftApi { | ... | @@ -5660,7 +5660,7 @@ public class swiftApi { |
5660 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5660 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5661 | dynatraceEvent._eventName = "custom_error_coupon_sharing_loyalty" | 5661 | dynatraceEvent._eventName = "custom_error_coupon_sharing_loyalty" |
5662 | dynatraceEvent._parameters = nil | 5662 | dynatraceEvent._parameters = nil |
5663 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5663 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5664 | } | 5664 | } |
5665 | 5665 | ||
5666 | couponSharingCallback(tempResponse); | 5666 | couponSharingCallback(tempResponse); |
... | @@ -5669,7 +5669,7 @@ public class swiftApi { | ... | @@ -5669,7 +5669,7 @@ public class swiftApi { |
5669 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5669 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5670 | dynatraceEvent._eventName = "custom_error_coupon_sharing_loyalty" | 5670 | dynatraceEvent._eventName = "custom_error_coupon_sharing_loyalty" |
5671 | dynatraceEvent._parameters = nil | 5671 | dynatraceEvent._parameters = nil |
5672 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5672 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5673 | 5673 | ||
5674 | couponSharingCallback(nil) | 5674 | couponSharingCallback(nil) |
5675 | } | 5675 | } |
... | @@ -5684,13 +5684,13 @@ public class swiftApi { | ... | @@ -5684,13 +5684,13 @@ public class swiftApi { |
5684 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5684 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5685 | dynatraceEvent._eventName = "custom_error_coupon_sharing_loyalty" | 5685 | dynatraceEvent._eventName = "custom_error_coupon_sharing_loyalty" |
5686 | dynatraceEvent._parameters = nil | 5686 | dynatraceEvent._parameters = nil |
5687 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5687 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5688 | 5688 | ||
5689 | if let error = error as? NSError { | 5689 | if let error = error as? NSError { |
5690 | // if (error.code == 401) { | 5690 | // if (error.code == 401) { |
5691 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() | 5691 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() |
5692 | // sessionEvent._sessionExpired = true | 5692 | // sessionEvent._sessionExpired = true |
5693 | -// SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) | 5693 | + // SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) |
5694 | // } | 5694 | // } |
5695 | 5695 | ||
5696 | failureCallback(error.code) | 5696 | failureCallback(error.code) |
... | @@ -5718,13 +5718,13 @@ public class swiftApi { | ... | @@ -5718,13 +5718,13 @@ public class swiftApi { |
5718 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5718 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5719 | dynatraceEvent._eventName = "custom_success_submit_order_loyalty" | 5719 | dynatraceEvent._eventName = "custom_success_submit_order_loyalty" |
5720 | dynatraceEvent._parameters = nil | 5720 | dynatraceEvent._parameters = nil |
5721 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5721 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5722 | 5722 | ||
5723 | } else { | 5723 | } else { |
5724 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5724 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5725 | dynatraceEvent._eventName = "custom_error_submit_order_loyalty" | 5725 | dynatraceEvent._eventName = "custom_error_submit_order_loyalty" |
5726 | dynatraceEvent._parameters = nil | 5726 | dynatraceEvent._parameters = nil |
5727 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5727 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5728 | 5728 | ||
5729 | } | 5729 | } |
5730 | } | 5730 | } |
... | @@ -5732,7 +5732,7 @@ public class swiftApi { | ... | @@ -5732,7 +5732,7 @@ public class swiftApi { |
5732 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5732 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5733 | dynatraceEvent._eventName = "custom_error_submit_order_loyalty" | 5733 | dynatraceEvent._eventName = "custom_error_submit_order_loyalty" |
5734 | dynatraceEvent._parameters = nil | 5734 | dynatraceEvent._parameters = nil |
5735 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5735 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5736 | } | 5736 | } |
5737 | 5737 | ||
5738 | submitOrderCallback(tempResponse); | 5738 | submitOrderCallback(tempResponse); |
... | @@ -5741,7 +5741,7 @@ public class swiftApi { | ... | @@ -5741,7 +5741,7 @@ public class swiftApi { |
5741 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5741 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5742 | dynatraceEvent._eventName = "custom_error_submit_order_loyalty" | 5742 | dynatraceEvent._eventName = "custom_error_submit_order_loyalty" |
5743 | dynatraceEvent._parameters = nil | 5743 | dynatraceEvent._parameters = nil |
5744 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5744 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5745 | 5745 | ||
5746 | submitOrderCallback(nil) | 5746 | submitOrderCallback(nil) |
5747 | } | 5747 | } |
... | @@ -5756,13 +5756,13 @@ public class swiftApi { | ... | @@ -5756,13 +5756,13 @@ public class swiftApi { |
5756 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5756 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5757 | dynatraceEvent._eventName = "custom_error_submit_order_loyalty" | 5757 | dynatraceEvent._eventName = "custom_error_submit_order_loyalty" |
5758 | dynatraceEvent._parameters = nil | 5758 | dynatraceEvent._parameters = nil |
5759 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5759 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5760 | 5760 | ||
5761 | if let error = error as? NSError { | 5761 | if let error = error as? NSError { |
5762 | // if (error.code == 401) { | 5762 | // if (error.code == 401) { |
5763 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() | 5763 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() |
5764 | // sessionEvent._sessionExpired = true | 5764 | // sessionEvent._sessionExpired = true |
5765 | -// SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) | 5765 | + // SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) |
5766 | // } | 5766 | // } |
5767 | 5767 | ||
5768 | failureCallback(error.code) | 5768 | failureCallback(error.code) |
... | @@ -5790,13 +5790,13 @@ public class swiftApi { | ... | @@ -5790,13 +5790,13 @@ public class swiftApi { |
5790 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5790 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5791 | dynatraceEvent._eventName = "custom_success_post_event_loyalty" | 5791 | dynatraceEvent._eventName = "custom_success_post_event_loyalty" |
5792 | dynatraceEvent._parameters = nil | 5792 | dynatraceEvent._parameters = nil |
5793 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5793 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5794 | 5794 | ||
5795 | } else { | 5795 | } else { |
5796 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5796 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5797 | dynatraceEvent._eventName = "custom_error_post_event_loyalty" | 5797 | dynatraceEvent._eventName = "custom_error_post_event_loyalty" |
5798 | dynatraceEvent._parameters = nil | 5798 | dynatraceEvent._parameters = nil |
5799 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5799 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5800 | 5800 | ||
5801 | } | 5801 | } |
5802 | } | 5802 | } |
... | @@ -5804,7 +5804,7 @@ public class swiftApi { | ... | @@ -5804,7 +5804,7 @@ public class swiftApi { |
5804 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5804 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5805 | dynatraceEvent._eventName = "custom_error_post_event_loyalty" | 5805 | dynatraceEvent._eventName = "custom_error_post_event_loyalty" |
5806 | dynatraceEvent._parameters = nil | 5806 | dynatraceEvent._parameters = nil |
5807 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5807 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5808 | } | 5808 | } |
5809 | 5809 | ||
5810 | postEventCallback(tempResponse); | 5810 | postEventCallback(tempResponse); |
... | @@ -5813,7 +5813,7 @@ public class swiftApi { | ... | @@ -5813,7 +5813,7 @@ public class swiftApi { |
5813 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5813 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5814 | dynatraceEvent._eventName = "custom_error_post_event_loyalty" | 5814 | dynatraceEvent._eventName = "custom_error_post_event_loyalty" |
5815 | dynatraceEvent._parameters = nil | 5815 | dynatraceEvent._parameters = nil |
5816 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5816 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5817 | 5817 | ||
5818 | postEventCallback(nil) | 5818 | postEventCallback(nil) |
5819 | } | 5819 | } |
... | @@ -5828,13 +5828,13 @@ public class swiftApi { | ... | @@ -5828,13 +5828,13 @@ public class swiftApi { |
5828 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 5828 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
5829 | dynatraceEvent._eventName = "custom_error_post_event_loyalty" | 5829 | dynatraceEvent._eventName = "custom_error_post_event_loyalty" |
5830 | dynatraceEvent._parameters = nil | 5830 | dynatraceEvent._parameters = nil |
5831 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 5831 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
5832 | 5832 | ||
5833 | if let error = error as? NSError { | 5833 | if let error = error as? NSError { |
5834 | // if (error.code == 401) { | 5834 | // if (error.code == 401) { |
5835 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() | 5835 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() |
5836 | // sessionEvent._sessionExpired = true | 5836 | // sessionEvent._sessionExpired = true |
5837 | -// SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) | 5837 | + // SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) |
5838 | // } | 5838 | // } |
5839 | 5839 | ||
5840 | failureCallback(error.code) | 5840 | failureCallback(error.code) |
... | @@ -6048,7 +6048,7 @@ public class swiftApi { | ... | @@ -6048,7 +6048,7 @@ public class swiftApi { |
6048 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 6048 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
6049 | dynatraceEvent._eventName = "custom_success_sharing_history_loyalty" | 6049 | dynatraceEvent._eventName = "custom_success_sharing_history_loyalty" |
6050 | dynatraceEvent._parameters = nil | 6050 | dynatraceEvent._parameters = nil |
6051 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 6051 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
6052 | 6052 | ||
6053 | if let responseDataResult = responseDataDictionary["result"] as? [[String : Any]?] { | 6053 | if let responseDataResult = responseDataDictionary["result"] as? [[String : Any]?] { |
6054 | 6054 | ||
... | @@ -6078,7 +6078,7 @@ public class swiftApi { | ... | @@ -6078,7 +6078,7 @@ public class swiftApi { |
6078 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 6078 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
6079 | dynatraceEvent._eventName = "custom_error_sharing_history_loyalty" | 6079 | dynatraceEvent._eventName = "custom_error_sharing_history_loyalty" |
6080 | dynatraceEvent._parameters = nil | 6080 | dynatraceEvent._parameters = nil |
6081 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 6081 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
6082 | 6082 | ||
6083 | getSharingHistoryCallback(nil) | 6083 | getSharingHistoryCallback(nil) |
6084 | } | 6084 | } |
... | @@ -6087,7 +6087,7 @@ public class swiftApi { | ... | @@ -6087,7 +6087,7 @@ public class swiftApi { |
6087 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 6087 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
6088 | dynatraceEvent._eventName = "custom_error_sharing_history_loyalty" | 6088 | dynatraceEvent._eventName = "custom_error_sharing_history_loyalty" |
6089 | dynatraceEvent._parameters = nil | 6089 | dynatraceEvent._parameters = nil |
6090 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 6090 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
6091 | 6091 | ||
6092 | getSharingHistoryCallback(nil) | 6092 | getSharingHistoryCallback(nil) |
6093 | } | 6093 | } |
... | @@ -6103,7 +6103,7 @@ public class swiftApi { | ... | @@ -6103,7 +6103,7 @@ public class swiftApi { |
6103 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 6103 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
6104 | dynatraceEvent._eventName = "custom_success_sharing_history_loyalty" | 6104 | dynatraceEvent._eventName = "custom_success_sharing_history_loyalty" |
6105 | dynatraceEvent._parameters = nil | 6105 | dynatraceEvent._parameters = nil |
6106 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 6106 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
6107 | 6107 | ||
6108 | if let responseDataResult = responseDataDictionary["result"] as? [[String : Any]?] { | 6108 | if let responseDataResult = responseDataDictionary["result"] as? [[String : Any]?] { |
6109 | 6109 | ||
... | @@ -6132,7 +6132,7 @@ public class swiftApi { | ... | @@ -6132,7 +6132,7 @@ public class swiftApi { |
6132 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 6132 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
6133 | dynatraceEvent._eventName = "custom_error_sharing_history_loyalty" | 6133 | dynatraceEvent._eventName = "custom_error_sharing_history_loyalty" |
6134 | dynatraceEvent._parameters = nil | 6134 | dynatraceEvent._parameters = nil |
6135 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 6135 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
6136 | 6136 | ||
6137 | getSharingHistoryCallback(nil) | 6137 | getSharingHistoryCallback(nil) |
6138 | } | 6138 | } |
... | @@ -6141,7 +6141,7 @@ public class swiftApi { | ... | @@ -6141,7 +6141,7 @@ public class swiftApi { |
6141 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 6141 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
6142 | dynatraceEvent._eventName = "custom_error_sharing_history_loyalty" | 6142 | dynatraceEvent._eventName = "custom_error_sharing_history_loyalty" |
6143 | dynatraceEvent._parameters = nil | 6143 | dynatraceEvent._parameters = nil |
6144 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 6144 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
6145 | 6145 | ||
6146 | getSharingHistoryCallback(nil) | 6146 | getSharingHistoryCallback(nil) |
6147 | } | 6147 | } |
... | @@ -6155,13 +6155,13 @@ public class swiftApi { | ... | @@ -6155,13 +6155,13 @@ public class swiftApi { |
6155 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 6155 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
6156 | dynatraceEvent._eventName = "custom_error_sharing_history_loyalty" | 6156 | dynatraceEvent._eventName = "custom_error_sharing_history_loyalty" |
6157 | dynatraceEvent._parameters = nil | 6157 | dynatraceEvent._parameters = nil |
6158 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 6158 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
6159 | 6159 | ||
6160 | if let error = error as? NSError { | 6160 | if let error = error as? NSError { |
6161 | // if (error.code == 401) { | 6161 | // if (error.code == 401) { |
6162 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() | 6162 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() |
6163 | // sessionEvent._sessionExpired = true | 6163 | // sessionEvent._sessionExpired = true |
6164 | -// SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) | 6164 | + // SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) |
6165 | // } | 6165 | // } |
6166 | 6166 | ||
6167 | failureCallback(error.code) | 6167 | failureCallback(error.code) |
... | @@ -6188,7 +6188,7 @@ public class swiftApi { | ... | @@ -6188,7 +6188,7 @@ public class swiftApi { |
6188 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" | 6188 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" |
6189 | firebaseEvent.setParameter = ("name", (item.name ?? "")) | 6189 | firebaseEvent.setParameter = ("name", (item.name ?? "")) |
6190 | firebaseEvent.setParameter = ("type", "coupon") | 6190 | firebaseEvent.setParameter = ("type", "coupon") |
6191 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 6191 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
6192 | 6192 | ||
6193 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 6193 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
6194 | let vc = storyboard.instantiateViewController(withIdentifier: "CouponViewController") as! SwiftWarplyFramework.CouponViewController | 6194 | let vc = storyboard.instantiateViewController(withIdentifier: "CouponViewController") as! SwiftWarplyFramework.CouponViewController |
... | @@ -6252,7 +6252,7 @@ public class swiftApi { | ... | @@ -6252,7 +6252,7 @@ public class swiftApi { |
6252 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" | 6252 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" |
6253 | firebaseEvent.setParameter = ("name", (ccms._title)) | 6253 | firebaseEvent.setParameter = ("name", (ccms._title)) |
6254 | firebaseEvent.setParameter = ("type", "gift") | 6254 | firebaseEvent.setParameter = ("type", "gift") |
6255 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 6255 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
6256 | 6256 | ||
6257 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 6257 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
6258 | let vc = storyboard.instantiateViewController(withIdentifier: "ContextualViewController") as! SwiftWarplyFramework.ContextualViewController | 6258 | let vc = storyboard.instantiateViewController(withIdentifier: "ContextualViewController") as! SwiftWarplyFramework.ContextualViewController |
... | @@ -6297,7 +6297,7 @@ public class swiftApi { | ... | @@ -6297,7 +6297,7 @@ public class swiftApi { |
6297 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" | 6297 | firebaseEvent._eventName = "loyalty_sdk_offer_selected" |
6298 | firebaseEvent.setParameter = ("name", (ccms._title)) | 6298 | firebaseEvent.setParameter = ("name", (ccms._title)) |
6299 | firebaseEvent.setParameter = ("type", "gift") | 6299 | firebaseEvent.setParameter = ("type", "gift") |
6300 | - SwiftEventBus.post("firebase", sender: firebaseEvent) | 6300 | + // SwiftEventBus.post("firebase", sender: firebaseEvent) |
6301 | 6301 | ||
6302 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 6302 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
6303 | let vc = storyboard.instantiateViewController(withIdentifier: "TelcoViewController") as! SwiftWarplyFramework.TelcoViewController | 6303 | let vc = storyboard.instantiateViewController(withIdentifier: "TelcoViewController") as! SwiftWarplyFramework.TelcoViewController |
... | @@ -6343,7 +6343,7 @@ public class swiftApi { | ... | @@ -6343,7 +6343,7 @@ public class swiftApi { |
6343 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 6343 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
6344 | dynatraceEvent._eventName = "custom_success_shops_loyalty" | 6344 | dynatraceEvent._eventName = "custom_success_shops_loyalty" |
6345 | dynatraceEvent._parameters = nil | 6345 | dynatraceEvent._parameters = nil |
6346 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 6346 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
6347 | 6347 | ||
6348 | if let responseDataMappShops = responseDataDictionary["MAPP_SHOPS"] as? [String: Any] { | 6348 | if let responseDataMappShops = responseDataDictionary["MAPP_SHOPS"] as? [String: Any] { |
6349 | 6349 | ||
... | @@ -6372,7 +6372,7 @@ public class swiftApi { | ... | @@ -6372,7 +6372,7 @@ public class swiftApi { |
6372 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 6372 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
6373 | dynatraceEvent._eventName = "custom_error_shops_loyalty" | 6373 | dynatraceEvent._eventName = "custom_error_shops_loyalty" |
6374 | dynatraceEvent._parameters = nil | 6374 | dynatraceEvent._parameters = nil |
6375 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 6375 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
6376 | 6376 | ||
6377 | getMerchantsCallback(nil) | 6377 | getMerchantsCallback(nil) |
6378 | } | 6378 | } |
... | @@ -6381,7 +6381,7 @@ public class swiftApi { | ... | @@ -6381,7 +6381,7 @@ public class swiftApi { |
6381 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 6381 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
6382 | dynatraceEvent._eventName = "custom_error_shops_loyalty" | 6382 | dynatraceEvent._eventName = "custom_error_shops_loyalty" |
6383 | dynatraceEvent._parameters = nil | 6383 | dynatraceEvent._parameters = nil |
6384 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 6384 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
6385 | 6385 | ||
6386 | getMerchantsCallback(nil) | 6386 | getMerchantsCallback(nil) |
6387 | } | 6387 | } |
... | @@ -6395,7 +6395,7 @@ public class swiftApi { | ... | @@ -6395,7 +6395,7 @@ public class swiftApi { |
6395 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 6395 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
6396 | dynatraceEvent._eventName = "custom_error_shops_loyalty" | 6396 | dynatraceEvent._eventName = "custom_error_shops_loyalty" |
6397 | dynatraceEvent._parameters = nil | 6397 | dynatraceEvent._parameters = nil |
6398 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 6398 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
6399 | 6399 | ||
6400 | getMerchantsCallback(nil) | 6400 | getMerchantsCallback(nil) |
6401 | } | 6401 | } |
... | @@ -6962,7 +6962,7 @@ public class swiftApi { | ... | @@ -6962,7 +6962,7 @@ public class swiftApi { |
6962 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 6962 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
6963 | dynatraceEvent._eventName = "custom_success_logout_loyalty" | 6963 | dynatraceEvent._eventName = "custom_success_logout_loyalty" |
6964 | dynatraceEvent._parameters = nil | 6964 | dynatraceEvent._parameters = nil |
6965 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 6965 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
6966 | 6966 | ||
6967 | swiftApi().setUserTag("") | 6967 | swiftApi().setUserTag("") |
6968 | swiftApi().setUserNonTelco(false) | 6968 | swiftApi().setUserNonTelco(false) |
... | @@ -6977,7 +6977,7 @@ public class swiftApi { | ... | @@ -6977,7 +6977,7 @@ public class swiftApi { |
6977 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 6977 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
6978 | dynatraceEvent._eventName = "custom_error_logout_loyalty" | 6978 | dynatraceEvent._eventName = "custom_error_logout_loyalty" |
6979 | dynatraceEvent._parameters = nil | 6979 | dynatraceEvent._parameters = nil |
6980 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 6980 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
6981 | } | 6981 | } |
6982 | 6982 | ||
6983 | logoutCallback(tempResponse); | 6983 | logoutCallback(tempResponse); |
... | @@ -6986,7 +6986,7 @@ public class swiftApi { | ... | @@ -6986,7 +6986,7 @@ public class swiftApi { |
6986 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 6986 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
6987 | dynatraceEvent._eventName = "custom_error_logout_loyalty" | 6987 | dynatraceEvent._eventName = "custom_error_logout_loyalty" |
6988 | dynatraceEvent._parameters = nil | 6988 | dynatraceEvent._parameters = nil |
6989 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 6989 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
6990 | 6990 | ||
6991 | logoutCallback(nil) | 6991 | logoutCallback(nil) |
6992 | } | 6992 | } |
... | @@ -7139,7 +7139,7 @@ public class swiftApi { | ... | @@ -7139,7 +7139,7 @@ public class swiftApi { |
7139 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7139 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7140 | dynatraceEvent._eventName = "custom_success_edit_profile_loyalty" | 7140 | dynatraceEvent._eventName = "custom_success_edit_profile_loyalty" |
7141 | dynatraceEvent._parameters = nil | 7141 | dynatraceEvent._parameters = nil |
7142 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7142 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7143 | 7143 | ||
7144 | swiftApi().getProfileAsync(getProfileCallback, failureCallback: {errorCode in }) | 7144 | swiftApi().getProfileAsync(getProfileCallback, failureCallback: {errorCode in }) |
7145 | } | 7145 | } |
... | @@ -7148,7 +7148,7 @@ public class swiftApi { | ... | @@ -7148,7 +7148,7 @@ public class swiftApi { |
7148 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7148 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7149 | dynatraceEvent._eventName = "custom_error_edit_profile_loyalty" | 7149 | dynatraceEvent._eventName = "custom_error_edit_profile_loyalty" |
7150 | dynatraceEvent._parameters = nil | 7150 | dynatraceEvent._parameters = nil |
7151 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7151 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7152 | 7152 | ||
7153 | editProfileCallback(nil) | 7153 | editProfileCallback(nil) |
7154 | } | 7154 | } |
... | @@ -7163,13 +7163,13 @@ public class swiftApi { | ... | @@ -7163,13 +7163,13 @@ public class swiftApi { |
7163 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7163 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7164 | dynatraceEvent._eventName = "custom_error_edit_profile_loyalty" | 7164 | dynatraceEvent._eventName = "custom_error_edit_profile_loyalty" |
7165 | dynatraceEvent._parameters = nil | 7165 | dynatraceEvent._parameters = nil |
7166 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7166 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7167 | 7167 | ||
7168 | if let error = error as? NSError { | 7168 | if let error = error as? NSError { |
7169 | // if (error.code == 401) { | 7169 | // if (error.code == 401) { |
7170 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() | 7170 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() |
7171 | // sessionEvent._sessionExpired = true | 7171 | // sessionEvent._sessionExpired = true |
7172 | -// SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) | 7172 | + // SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) |
7173 | // } | 7173 | // } |
7174 | 7174 | ||
7175 | failureCallback(error.code) | 7175 | failureCallback(error.code) |
... | @@ -7235,7 +7235,7 @@ public class swiftApi { | ... | @@ -7235,7 +7235,7 @@ public class swiftApi { |
7235 | func getCampaignsCallback (_ campaignsData: Array<swiftApi.CampaignItemModel>?) -> Void { | 7235 | func getCampaignsCallback (_ campaignsData: Array<swiftApi.CampaignItemModel>?) -> Void { |
7236 | if (campaignsData != nil) { | 7236 | if (campaignsData != nil) { |
7237 | DispatchQueue.main.async { | 7237 | DispatchQueue.main.async { |
7238 | - SwiftEventBus.post("campaigns_retrieved") | 7238 | + // SwiftEventBus.post("campaigns_retrieved") |
7239 | } | 7239 | } |
7240 | } else { | 7240 | } else { |
7241 | } | 7241 | } |
... | @@ -7251,14 +7251,14 @@ public class swiftApi { | ... | @@ -7251,14 +7251,14 @@ public class swiftApi { |
7251 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7251 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7252 | dynatraceEvent._eventName = "custom_success_read_campaign_loyalty" | 7252 | dynatraceEvent._eventName = "custom_success_read_campaign_loyalty" |
7253 | dynatraceEvent._parameters = nil | 7253 | dynatraceEvent._parameters = nil |
7254 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7254 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7255 | } | 7255 | } |
7256 | 7256 | ||
7257 | } else { | 7257 | } else { |
7258 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7258 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7259 | dynatraceEvent._eventName = "custom_success_read_campaign_loyalty" // custom_error_read_campaign_loyalty | 7259 | dynatraceEvent._eventName = "custom_success_read_campaign_loyalty" // custom_error_read_campaign_loyalty |
7260 | dynatraceEvent._parameters = nil | 7260 | dynatraceEvent._parameters = nil |
7261 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7261 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7262 | 7262 | ||
7263 | getSingleCampaignCallback(nil) | 7263 | getSingleCampaignCallback(nil) |
7264 | } | 7264 | } |
... | @@ -7272,7 +7272,7 @@ public class swiftApi { | ... | @@ -7272,7 +7272,7 @@ public class swiftApi { |
7272 | func getCampaignsCallback (_ campaignsData: Array<swiftApi.CampaignItemModel>?) -> Void { | 7272 | func getCampaignsCallback (_ campaignsData: Array<swiftApi.CampaignItemModel>?) -> Void { |
7273 | if (campaignsData != nil) { | 7273 | if (campaignsData != nil) { |
7274 | DispatchQueue.main.async { | 7274 | DispatchQueue.main.async { |
7275 | - SwiftEventBus.post("campaigns_retrieved") | 7275 | + // SwiftEventBus.post("campaigns_retrieved") |
7276 | } | 7276 | } |
7277 | } else { | 7277 | } else { |
7278 | } | 7278 | } |
... | @@ -7285,7 +7285,7 @@ public class swiftApi { | ... | @@ -7285,7 +7285,7 @@ public class swiftApi { |
7285 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7285 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7286 | dynatraceEvent._eventName = "custom_success_read_campaign_loyalty" // custom_error_read_campaign_loyalty | 7286 | dynatraceEvent._eventName = "custom_success_read_campaign_loyalty" // custom_error_read_campaign_loyalty |
7287 | dynatraceEvent._parameters = nil | 7287 | dynatraceEvent._parameters = nil |
7288 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7288 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7289 | 7289 | ||
7290 | getSingleCampaignCallback(nil) | 7290 | getSingleCampaignCallback(nil) |
7291 | } | 7291 | } |
... | @@ -7438,7 +7438,7 @@ public class swiftApi { | ... | @@ -7438,7 +7438,7 @@ public class swiftApi { |
7438 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7438 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7439 | dynatraceEvent._eventName = "custom_success_unified_coupons_loyalty" | 7439 | dynatraceEvent._eventName = "custom_success_unified_coupons_loyalty" |
7440 | dynatraceEvent._parameters = nil | 7440 | dynatraceEvent._parameters = nil |
7441 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7441 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7442 | 7442 | ||
7443 | if let responseDataResult = responseDataDictionary["result"] as? [String: Any] { | 7443 | if let responseDataResult = responseDataDictionary["result"] as? [String: Any] { |
7444 | if let responseDataCoupons = responseDataResult["coupons"] as? [[String : Any]?] { | 7444 | if let responseDataCoupons = responseDataResult["coupons"] as? [[String : Any]?] { |
... | @@ -7495,7 +7495,7 @@ public class swiftApi { | ... | @@ -7495,7 +7495,7 @@ public class swiftApi { |
7495 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7495 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7496 | dynatraceEvent._eventName = "custom_error_unified_coupons_loyalty" | 7496 | dynatraceEvent._eventName = "custom_error_unified_coupons_loyalty" |
7497 | dynatraceEvent._parameters = nil | 7497 | dynatraceEvent._parameters = nil |
7498 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7498 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7499 | 7499 | ||
7500 | successCallback(nil) | 7500 | successCallback(nil) |
7501 | } | 7501 | } |
... | @@ -7504,7 +7504,7 @@ public class swiftApi { | ... | @@ -7504,7 +7504,7 @@ public class swiftApi { |
7504 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7504 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7505 | dynatraceEvent._eventName = "custom_error_unified_coupons_loyalty" | 7505 | dynatraceEvent._eventName = "custom_error_unified_coupons_loyalty" |
7506 | dynatraceEvent._parameters = nil | 7506 | dynatraceEvent._parameters = nil |
7507 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7507 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7508 | 7508 | ||
7509 | successCallback(nil) | 7509 | successCallback(nil) |
7510 | } | 7510 | } |
... | @@ -7518,7 +7518,7 @@ public class swiftApi { | ... | @@ -7518,7 +7518,7 @@ public class swiftApi { |
7518 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7518 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7519 | dynatraceEvent._eventName = "custom_error_unified_coupons_loyalty" | 7519 | dynatraceEvent._eventName = "custom_error_unified_coupons_loyalty" |
7520 | dynatraceEvent._parameters = nil | 7520 | dynatraceEvent._parameters = nil |
7521 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7521 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7522 | 7522 | ||
7523 | successCallback(nil) | 7523 | successCallback(nil) |
7524 | } | 7524 | } |
... | @@ -7560,7 +7560,7 @@ public class swiftApi { | ... | @@ -7560,7 +7560,7 @@ public class swiftApi { |
7560 | if (couponsData != nil) { | 7560 | if (couponsData != nil) { |
7561 | DispatchQueue.main.async { | 7561 | DispatchQueue.main.async { |
7562 | // self.matchOldSMCoupons() | 7562 | // self.matchOldSMCoupons() |
7563 | - SwiftEventBus.post("unified_coupons_fetched") | 7563 | + // SwiftEventBus.post("unified_coupons_fetched") |
7564 | successCallback(couponsData) | 7564 | successCallback(couponsData) |
7565 | } | 7565 | } |
7566 | } else { | 7566 | } else { |
... | @@ -7626,13 +7626,13 @@ public class swiftApi { | ... | @@ -7626,13 +7626,13 @@ public class swiftApi { |
7626 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7626 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7627 | dynatraceEvent._eventName = "custom_success_cancel_unified_loyalty" | 7627 | dynatraceEvent._eventName = "custom_success_cancel_unified_loyalty" |
7628 | dynatraceEvent._parameters = nil | 7628 | dynatraceEvent._parameters = nil |
7629 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7629 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7630 | 7630 | ||
7631 | } else { | 7631 | } else { |
7632 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7632 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7633 | dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty" | 7633 | dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty" |
7634 | dynatraceEvent._parameters = nil | 7634 | dynatraceEvent._parameters = nil |
7635 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7635 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7636 | 7636 | ||
7637 | } | 7637 | } |
7638 | } | 7638 | } |
... | @@ -7640,7 +7640,7 @@ public class swiftApi { | ... | @@ -7640,7 +7640,7 @@ public class swiftApi { |
7640 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7640 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7641 | dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty" | 7641 | dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty" |
7642 | dynatraceEvent._parameters = nil | 7642 | dynatraceEvent._parameters = nil |
7643 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7643 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7644 | } | 7644 | } |
7645 | 7645 | ||
7646 | cancelUnifiedCouponCallback(tempResponse); | 7646 | cancelUnifiedCouponCallback(tempResponse); |
... | @@ -7649,7 +7649,7 @@ public class swiftApi { | ... | @@ -7649,7 +7649,7 @@ public class swiftApi { |
7649 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7649 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7650 | dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty" | 7650 | dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty" |
7651 | dynatraceEvent._parameters = nil | 7651 | dynatraceEvent._parameters = nil |
7652 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7652 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7653 | 7653 | ||
7654 | cancelUnifiedCouponCallback(nil) | 7654 | cancelUnifiedCouponCallback(nil) |
7655 | } | 7655 | } |
... | @@ -7664,13 +7664,13 @@ public class swiftApi { | ... | @@ -7664,13 +7664,13 @@ public class swiftApi { |
7664 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() | 7664 | let dynatraceEvent = swiftApi.LoyaltySDKDynatraceEventModel() |
7665 | dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty" | 7665 | dynatraceEvent._eventName = "custom_error_cancel_unified_loyalty" |
7666 | dynatraceEvent._parameters = nil | 7666 | dynatraceEvent._parameters = nil |
7667 | - SwiftEventBus.post("dynatrace", sender: dynatraceEvent) | 7667 | + // SwiftEventBus.post("dynatrace", sender: dynatraceEvent) |
7668 | 7668 | ||
7669 | if let error = error as? NSError { | 7669 | if let error = error as? NSError { |
7670 | // if (error.code == 401) { | 7670 | // if (error.code == 401) { |
7671 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() | 7671 | // let sessionEvent = swiftApi.LoyaltySDKSessionExpiredEventModel() |
7672 | // sessionEvent._sessionExpired = true | 7672 | // sessionEvent._sessionExpired = true |
7673 | -// SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) | 7673 | + // SwiftEventBus.post("sdk_session_expired", sender: sessionEvent) |
7674 | // } | 7674 | // } |
7675 | 7675 | ||
7676 | failureCallback(error.code) | 7676 | failureCallback(error.code) | ... | ... |
-
Please register or login to post a comment