Manos Chorianopoulos

comment out SwiftEventBus

......@@ -27,7 +27,7 @@ Pod::Spec.new do |spec|
spec.exclude_files = "Classes/Exclude"
# spec.dependency 'RSBarcodes_Swift', '~> 5.1.1'
spec.dependency 'SwiftEventBus'
# spec.dependency 'SwiftEventBus'
# spec.resource_bundles = { 'ResourcesBundle' => ['SwiftWarplyFramework/**/*.{png,jpeg,jpg,storyboard,xib,xcassets,json,ttf,imageset,strings}'] }
spec.resource_bundles = { 'ResourcesBundle' => ['SwiftWarplyFramework/**/*.{storyboard,xib,otf,ttf,xcassets}'] }
......
......@@ -58,7 +58,6 @@
1EEA9FD02B7371670019C854 /* OffersTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EEA9FCF2B7371670019C854 /* OffersTableViewCell.swift */; };
1EEA9FD22B737D900019C854 /* LoyaltyViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EEA9FD12B737D900019C854 /* LoyaltyViewController.swift */; };
1EEA9FD42B7384260019C854 /* FiltersTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EEA9FD32B7384260019C854 /* FiltersTableViewCell.swift */; };
1EEAA0152B73B0EA0019C854 /* SwiftEventBus in Frameworks */ = {isa = PBXBuildFile; productRef = 1EEAA0142B73B0EA0019C854 /* SwiftEventBus */; };
7630AD9A6242D60846D6750C /* Pods_SwiftWarplyFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C0D5F56DD4E5371A50AD2D87 /* Pods_SwiftWarplyFramework.framework */; };
A02F34052882B6E60086465F /* TelcoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A02F34042882B6E60086465F /* TelcoViewController.swift */; };
A04D31DE288FF670000E43B5 /* HistoryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A04D31DD288FF670000E43B5 /* HistoryViewController.swift */; };
......@@ -396,7 +395,6 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
1EEAA0152B73B0EA0019C854 /* SwiftEventBus in Frameworks */,
7630AD9A6242D60846D6750C /* Pods_SwiftWarplyFramework.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
......@@ -884,7 +882,6 @@
);
name = SwiftWarplyFramework;
packageProductDependencies = (
1EEAA0142B73B0EA0019C854 /* SwiftEventBus */,
);
productName = SwiftWarplyFramework;
productReference = E6A7784E282933340045BBA8 /* SwiftWarplyFramework.framework */;
......@@ -915,7 +912,6 @@
);
mainGroup = E6A77844282933340045BBA8;
packageReferences = (
1EEAA0132B73B0EA0019C854 /* XCRemoteSwiftPackageReference "SwiftEventBus" */,
);
productRefGroup = E6A7784F282933340045BBA8 /* Products */;
projectDirPath = "";
......@@ -1321,25 +1317,6 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
/* Begin XCRemoteSwiftPackageReference section */
1EEAA0132B73B0EA0019C854 /* XCRemoteSwiftPackageReference "SwiftEventBus" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/cesarferreira/SwiftEventBus";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 5.1.0;
};
};
/* End XCRemoteSwiftPackageReference section */
/* Begin XCSwiftPackageProductDependency section */
1EEAA0142B73B0EA0019C854 /* SwiftEventBus */ = {
isa = XCSwiftPackageProductDependency;
package = 1EEAA0132B73B0EA0019C854 /* XCRemoteSwiftPackageReference "SwiftEventBus" */;
productName = SwiftEventBus;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = E6A77845282933340045BBA8 /* Project object */;
}
......
{
"pins" : [
{
"identity" : "swifteventbus",
"kind" : "remoteSourceControl",
"location" : "https://github.com/cesarferreira/SwiftEventBus",
"state" : {
"revision" : "a30ff35e616f507d8a8d122dac32a2150371a87e",
"version" : "5.1.0"
}
}
],
"version" : 2
}
......@@ -6,7 +6,7 @@
//
import UIKit
import SwiftEventBus
// import SwiftEventBus
@objc public class ContextualViewController: UIViewController, UIPopoverControllerDelegate {
@IBOutlet weak var mainView: UIView!
......@@ -180,7 +180,7 @@ import SwiftEventBus
firebaseEvent.setParameter = ("name", (self.ccms?._title ?? ""))
firebaseEvent.setParameter = ("type", "gift")
firebaseEvent.setParameter = ("successful", "false")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
self.showDialog("Αποτυχία","Κάτι πήγε στραβά")
})
......@@ -196,11 +196,11 @@ import SwiftEventBus
firebaseEvent.setParameter = ("name", (self.ccms?._title ?? ""))
firebaseEvent.setParameter = ("type", "gift")
firebaseEvent.setParameter = ("successful", "true")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
let ccmsEnabled = swiftApi.WarplyCCMSEnabledModel()
ccmsEnabled._isActivated = true
SwiftEventBus.post("ccms_enabled", sender: ccmsEnabled)
// SwiftEventBus.post("ccms_enabled", sender: ccmsEnabled)
self.showDialog("Το αίτημά σου ολοκληρώθηκε επιτυχώς!","Θα ενημερωθείς άμεσα για την ενεργοποίηση του πακέτου σου.")
// self.postEventRequest()
......@@ -211,7 +211,7 @@ import SwiftEventBus
firebaseEvent.setParameter = ("name", (self.ccms?._title ?? ""))
firebaseEvent.setParameter = ("type", "gift")
firebaseEvent.setParameter = ("successful", "false")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
self.showDialog("Αποτυχία","Κάτι πήγε στραβά")
}
......@@ -222,7 +222,7 @@ import SwiftEventBus
firebaseEvent.setParameter = ("name", (self.ccms?._title ?? ""))
firebaseEvent.setParameter = ("type", "gift")
firebaseEvent.setParameter = ("successful", "false")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
self.showDialog("Αποτυχία","Κάτι πήγε στραβά")
}
......
......@@ -6,7 +6,7 @@
//
import UIKit
import SwiftEventBus
// import SwiftEventBus
@objc public class CouponViewController: UIViewController, UITextViewDelegate {
@IBOutlet weak var mainView: UIView!
......@@ -221,7 +221,7 @@ import SwiftEventBus
firebaseEvent.setParameter = ("name", (self.couponset?.name ?? ""))
firebaseEvent.setParameter = ("type", "coupon")
firebaseEvent.setParameter = ("successful", "false")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
self.showDialog("Αποτυχία","Κάτι πήγε στραβά")
})
......@@ -235,7 +235,7 @@ import SwiftEventBus
firebaseEvent.setParameter = ("name", (self.couponset?.name ?? ""))
firebaseEvent.setParameter = ("type", "coupon")
firebaseEvent.setParameter = ("successful", "false")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
self.showDialog("Αποτυχία","Κάτι πήγε στραβά")
})
......@@ -253,12 +253,12 @@ import SwiftEventBus
firebaseEvent.setParameter = ("name", (self.couponset?.name ?? ""))
firebaseEvent.setParameter = ("type", "coupon")
firebaseEvent.setParameter = ("successful", "true")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
if (self.ccms != nil) {
let ccmsEnabled = swiftApi.WarplyCCMSEnabledModel()
ccmsEnabled._isActivated = true
SwiftEventBus.post("ccms_enabled", sender: ccmsEnabled)
// SwiftEventBus.post("ccms_enabled", sender: ccmsEnabled)
}
self.showSuccessDialog("Επιτυχής ενεργοποίηση","Το κουπόνι σου έχει ενεργοποιηθεί στην ενότητα My Rewards.")
......@@ -270,7 +270,7 @@ import SwiftEventBus
if (couponsData != nil) {
DispatchQueue.main.async {
SwiftEventBus.post("coupons_fetched")
// SwiftEventBus.post("coupons_fetched")
}
} else {
}
......@@ -279,7 +279,7 @@ import SwiftEventBus
func getCampaignsCallback (_ campaignsData: Array<swiftApi.CampaignItemModel>?) -> Void {
if (campaignsData != nil) {
DispatchQueue.main.async {
SwiftEventBus.post("campaigns_retrieved")
// SwiftEventBus.post("campaigns_retrieved")
}
} else {
}
......@@ -291,7 +291,7 @@ import SwiftEventBus
firebaseEvent.setParameter = ("name", (self.couponset?.name ?? ""))
firebaseEvent.setParameter = ("type", "coupon")
firebaseEvent.setParameter = ("successful", "false")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
self.showDialog("Αποτυχία","Το κουπόνι δεν είναι διαθέσιμο για αγορά")
......@@ -301,7 +301,7 @@ import SwiftEventBus
firebaseEvent.setParameter = ("name", (self.couponset?.name ?? ""))
firebaseEvent.setParameter = ("type", "coupon")
firebaseEvent.setParameter = ("successful", "false")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
self.showDialog("Αποτυχία","Δεν έχεις αρκετούς πόντους")
......@@ -311,7 +311,7 @@ import SwiftEventBus
firebaseEvent.setParameter = ("name", (self.couponset?.name ?? ""))
firebaseEvent.setParameter = ("type", "coupon")
firebaseEvent.setParameter = ("successful", "false")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
self.showDialog("Το κουπόνι εξαντλήθηκε","Μείνε συντονισμένος για νέες προσφορές και κουπόνια.")
......@@ -321,7 +321,7 @@ import SwiftEventBus
firebaseEvent.setParameter = ("name", (self.couponset?.name ?? ""))
firebaseEvent.setParameter = ("type", "coupon")
firebaseEvent.setParameter = ("successful", "false")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
self.showDialog("Αποτυχία","Κάτι πήγε στραβά")
}
......@@ -332,7 +332,7 @@ import SwiftEventBus
firebaseEvent.setParameter = ("name", (self.couponset?.name ?? ""))
firebaseEvent.setParameter = ("type", "coupon")
firebaseEvent.setParameter = ("successful", "false")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
self.showDialog("Αποτυχία","Κάτι πήγε στραβά")
}
......@@ -379,7 +379,7 @@ import SwiftEventBus
// MARK: - Actions
@IBAction func redeemButtomAction(_ sender: Any) {
// SwiftEventBus.post("couponRedeem", sender: coupon)
// SwiftEventBus.post("couponRedeem", sender: coupon)
swiftApi().logTrackersEvent("click", ("RetrieveCoupon:" + (couponset?.uuid ?? "")))
......
......@@ -7,7 +7,7 @@
import Foundation
import UIKit
import SwiftEventBus
// import SwiftEventBus
@objc public class CouponsViewController: UIViewController {
@IBOutlet weak var backgroundImage: UIImageView!
......@@ -75,7 +75,7 @@ import SwiftEventBus
self.coupons = activeCouponData
DispatchQueue.main.async {
SwiftEventBus.post("coupons_fetched")
// SwiftEventBus.post("coupons_fetched")
self.tableView.reloadData()
if (self.coupons.count == 0) {
......
......@@ -7,7 +7,7 @@
import Foundation
import UIKit
import SwiftEventBus
// import SwiftEventBus
@objc public class GiftsViewController: UIViewController {
@IBOutlet weak var mainView: UIView!
......@@ -39,26 +39,26 @@ import SwiftEventBus
tableView.delegate = self
tableView.dataSource = self
SwiftEventBus.onMainThread(self, name: "ccms_retrieved") { result in
print("===== SwiftEventBus ccms_retrieved =====")
// SwiftEventBus.onMainThread(self, name: "ccms_retrieved") { result in
// print("===== SwiftEventBus ccms_retrieved =====")
self.refreshData()
// self.refreshData()
}
// }
SwiftEventBus.onMainThread(self, name: "campaigns_retrieved") { result in
print("===== SwiftEventBus campaigns_retrieved =====")
// SwiftEventBus.onMainThread(self, name: "campaigns_retrieved") { result in
// print("===== SwiftEventBus campaigns_retrieved =====")
self.refreshData()
// self.refreshData()
}
// }
SwiftEventBus.onMainThread(self, name: "seasonals_retrieved") { result in
print("===== SwiftEventBus seasonals_retrieved =====")
// SwiftEventBus.onMainThread(self, name: "seasonals_retrieved") { result in
// print("===== SwiftEventBus seasonals_retrieved =====")
self.refreshData()
// self.refreshData()
}
// }
// tableView.clipsToBounds = true
// tableView.layer.cornerRadius = 30
......@@ -174,7 +174,7 @@ import SwiftEventBus
firebaseEvent._eventName = "time_spent_on_loyalty_sdk"
firebaseEvent.setParameter = ("name", "GiftsForYou")
firebaseEvent.setParameter = ("seconds", String(seconds))
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
seconds = 0
}
......@@ -243,7 +243,7 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{
firebaseEvent._eventName = "loyalty_sdk_offer_selected"
firebaseEvent.setParameter = ("name", (campaigns[indexPath.row]._ccms?._title ?? ""))
firebaseEvent.setParameter = ("type", "gift")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
swiftApi().logTrackersEvent("click", ("Contextual:" + (campaigns[indexPath.row]._ccms?._sessionId ?? "")))
......@@ -270,7 +270,7 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{
firebaseEvent._eventName = "loyalty_sdk_offer_selected"
firebaseEvent.setParameter = ("name", (item._title))
firebaseEvent.setParameter = ("type", "gift")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "TelcoViewController") as! SwiftWarplyFramework.TelcoViewController
......@@ -301,7 +301,7 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{
firebaseEvent._eventName = "loyalty_sdk_offer_selected"
firebaseEvent.setParameter = ("name", (item.name ?? ""))
firebaseEvent.setParameter = ("type", "coupon")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "CouponViewController") as! SwiftWarplyFramework.CouponViewController
......@@ -401,13 +401,13 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{
seasonalEvent._title = campaigns[indexPath.row]._title ?? ""
seasonalEvent._imageUrl = campaigns[indexPath.row]._logo_url ?? ""
seasonalEvent._loyaltyPackageId = campaigns[indexPath.row]._loyaltyPackageId ?? ""
SwiftEventBus.post("seasonal", sender: seasonalEvent)
// SwiftEventBus.post("seasonal", sender: seasonalEvent)
let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel()
firebaseEvent._eventName = "loyalty_sdk_offer_selected"
firebaseEvent.setParameter = ("name", (campaigns[indexPath.row]._title ?? ""))
firebaseEvent.setParameter = ("type", "seasonal")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
}
}
}
......
......@@ -6,7 +6,7 @@
//
import UIKit
import SwiftEventBus
// import SwiftEventBus
@objc public class LoyaltyAnalysisViewController: UIViewController {
......@@ -106,7 +106,7 @@ import SwiftEventBus
firebaseEvent._eventName = "time_spent_on_loyalty_sdk"
firebaseEvent.setParameter = ("name", "GiftsCalculator")
firebaseEvent.setParameter = ("seconds", String(seconds))
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
seconds = 0
}
......
......@@ -7,7 +7,7 @@
import Foundation
import UIKit
import SwiftEventBus
// import SwiftEventBus
@objc public class LoyaltyHistoryViewController: UIViewController {
@IBOutlet weak var sectionTitleLabel: UILabel!
......@@ -51,28 +51,28 @@ import SwiftEventBus
self.hidesBottomBarWhenPushed = true
SwiftEventBus.onBackgroundThread(self, name: "coupons_fetched") { result in
// SwiftEventBus.onBackgroundThread(self, name: "coupons_fetched") { result in
DispatchQueue.main.async {
self.coupons = swiftApi().getCouponList()
self.totalCouponDiscount = Float(round(100 * swiftApi().getLoyaltyBadge()._value) / 100)
self.loyaltyBadge = swiftApi().getLoyaltyBadge()
// self.tableView.reloadData()
self.updateUI()
}
}
// DispatchQueue.main.async {
// self.coupons = swiftApi().getCouponList()
// self.totalCouponDiscount = Float(round(100 * swiftApi().getLoyaltyBadge()._value) / 100)
// self.loyaltyBadge = swiftApi().getLoyaltyBadge()
// // self.tableView.reloadData()
// self.updateUI()
// }
// }
SwiftEventBus.onBackgroundThread(self, name: "unified_coupons_fetched") { result in
// SwiftEventBus.onBackgroundThread(self, name: "unified_coupons_fetched") { result in
DispatchQueue.main.async {
self.unifiedCoupons = swiftApi().getUnifiedCouponList()
// DispatchQueue.main.async {
// self.unifiedCoupons = swiftApi().getUnifiedCouponList()
self.matchOldSMCoupons()
self.updateMarketBadge()
// self.tableView.reloadData()
self.updateUI()
}
}
// self.matchOldSMCoupons()
// self.updateMarketBadge()
// // self.tableView.reloadData()
// self.updateUI()
// }
// }
setBackButton()
setNavigationTitle("Ιστορικό")
......@@ -302,7 +302,7 @@ import SwiftEventBus
// analysis_pressed event
let dealsAnalysis = swiftApi.WarplyDealsAnalysisEventModel()
dealsAnalysis._isPressed = true
SwiftEventBus.post("analysis_pressed", sender: dealsAnalysis)
// SwiftEventBus.post("analysis_pressed", sender: dealsAnalysis)
// let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel()
// firebaseEvent._eventName = "did_tap_gifts_for_you_badge"
......@@ -312,7 +312,7 @@ import SwiftEventBus
let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel()
firebaseEvent._eventName = "did_tap_deals_for_you_badge"
firebaseEvent.setParameter = ("screen", "Loyalty History")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
swiftApi().logTrackersEvent("click", ("LoyaltyHistoryScreen:" + "DealsBanner"))
// }
......@@ -328,7 +328,7 @@ import SwiftEventBus
let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel()
firebaseEvent._eventName = "did_tap_gifts_for_you_badge"
firebaseEvent.setParameter = ("screen", "Loyalty History")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
swiftApi().logTrackersEvent("click", ("LoyaltyHistoryScreen:" + "LoyaltyBanner"))
......@@ -343,7 +343,7 @@ import SwiftEventBus
let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel()
firebaseEvent._eventName = "did_tap_market_badge"
firebaseEvent.setParameter = ("screen", "Loyalty History")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
swiftApi().logTrackersEvent("click", ("LoyaltyHistoryScreen:" + "MarketBanner"))
......
......@@ -7,7 +7,7 @@
import Foundation
import UIKit
import SwiftEventBus
// import SwiftEventBus
@objc public class MFYViewController: UIViewController {
@IBOutlet weak var mainView: UIView!
......@@ -41,15 +41,15 @@ import SwiftEventBus
tableView.delegate = self
tableView.dataSource = self
SwiftEventBus.onMainThread(self, name: "ccms_retrieved") { result in
print("===== SwiftEventBus ccms_retrieved =====")
self.refreshData()
}
// SwiftEventBus.onMainThread(self, name: "ccms_retrieved") { result in
// print("===== SwiftEventBus ccms_retrieved =====")
// self.refreshData()
// }
SwiftEventBus.onMainThread(self, name: "campaigns_retrieved") { result in
print("===== SwiftEventBus campaigns_retrieved =====")
self.refreshData()
}
// SwiftEventBus.onMainThread(self, name: "campaigns_retrieved") { result in
// print("===== SwiftEventBus campaigns_retrieved =====")
// self.refreshData()
// }
// tableView.clipsToBounds = true
// tableView.layer.cornerRadius = 30
......@@ -183,7 +183,7 @@ import SwiftEventBus
firebaseEvent._eventName = "time_spent_on_loyalty_sdk"
firebaseEvent.setParameter = ("name", "MoreForYou")
firebaseEvent.setParameter = ("seconds", String(seconds))
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
seconds = 0
}
......@@ -283,7 +283,7 @@ extension MFYViewController: UITableViewDelegate, UITableViewDataSource{
firebaseEvent._eventName = "loyalty_sdk_offer_selected"
firebaseEvent.setParameter = ("name", (campaign._ccms?._title ?? ""))
firebaseEvent.setParameter = ("type", "gift")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
swiftApi().logTrackersEvent("click", ("Contextual:" + (campaign._ccms?._sessionId ?? "")))
......@@ -310,7 +310,7 @@ extension MFYViewController: UITableViewDelegate, UITableViewDataSource{
firebaseEvent._eventName = "loyalty_sdk_offer_selected"
firebaseEvent.setParameter = ("name", (item._title))
firebaseEvent.setParameter = ("type", "gift")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "TelcoViewController") as! SwiftWarplyFramework.TelcoViewController
......@@ -340,7 +340,7 @@ extension MFYViewController: UITableViewDelegate, UITableViewDataSource{
firebaseEvent._eventName = "loyalty_sdk_offer_selected"
firebaseEvent.setParameter = ("name", (item.name ?? ""))
firebaseEvent.setParameter = ("type", "coupon")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "CouponViewController") as! SwiftWarplyFramework.CouponViewController
......
......@@ -6,7 +6,7 @@
//
import UIKit
import SwiftEventBus
// import SwiftEventBus
@objc public class MarketLoyaltyAnalysisViewController: UIViewController {
......@@ -107,7 +107,7 @@ import SwiftEventBus
firebaseEvent._eventName = "time_spent_on_loyalty_sdk"
firebaseEvent.setParameter = ("name", "GiftsCalculator")
firebaseEvent.setParameter = ("seconds", String(seconds))
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
seconds = 0
}
......
......@@ -6,7 +6,7 @@
//
import UIKit
import SwiftEventBus
// import SwiftEventBus
@objc public class ShareViewController: UIViewController, UITextFieldDelegate, UIPopoverControllerDelegate {
@IBOutlet weak var mainView: UIView!
......@@ -290,7 +290,7 @@ import SwiftEventBus
if (couponsData != nil) {
DispatchQueue.main.async {
SwiftEventBus.post("coupons_fetched")
// SwiftEventBus.post("coupons_fetched")
self.showSuccessDialog("Συγχαρητήρια!","Μόλις έκανες δώρο ένα κουπόνι!")
}
} else {
......
......@@ -6,7 +6,7 @@
//
import UIKit
import SwiftEventBus
// import SwiftEventBus
@objc public class TelcoViewController: UIViewController, UIPopoverControllerDelegate {
@IBOutlet weak var mainView: UIView!
......@@ -234,7 +234,7 @@ import SwiftEventBus
firebaseEvent.setParameter = ("name", (self.ccms?._title ?? ""))
firebaseEvent.setParameter = ("type", "gift")
firebaseEvent.setParameter = ("successful", "false")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
self.showDialog("Αποτυχία","Κάτι πήγε στραβά")
})
......@@ -249,11 +249,11 @@ import SwiftEventBus
firebaseEvent.setParameter = ("name", (self.ccms?._title ?? ""))
firebaseEvent.setParameter = ("type", "gift")
firebaseEvent.setParameter = ("successful", "true")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
let ccmsEnabled = swiftApi.WarplyCCMSEnabledModel()
ccmsEnabled._isActivated = true
SwiftEventBus.post("ccms_enabled", sender: ccmsEnabled)
// SwiftEventBus.post("ccms_enabled", sender: ccmsEnabled)
self.showDialog("Το αίτημά σου ολοκληρώθηκε επιτυχώς!","Θα ενημερωθείς άμεσα για την ενεργοποίηση του πακέτου σου.")
// self.postEventRequest()
......@@ -264,7 +264,7 @@ import SwiftEventBus
firebaseEvent.setParameter = ("name", (self.ccms?._title ?? ""))
firebaseEvent.setParameter = ("type", "gift")
firebaseEvent.setParameter = ("successful", "false")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
self.showDialog("Αποτυχία","Κάτι πήγε στραβά")
}
......@@ -275,7 +275,7 @@ import SwiftEventBus
firebaseEvent.setParameter = ("name", (self.ccms?._title ?? ""))
firebaseEvent.setParameter = ("type", "gift")
firebaseEvent.setParameter = ("successful", "false")
SwiftEventBus.post("firebase", sender: firebaseEvent)
// SwiftEventBus.post("firebase", sender: firebaseEvent)
self.showDialog("Αποτυχία","Κάτι πήγε στραβά")
}
......
......@@ -8,7 +8,7 @@
import UIKit
// import RSBarcodes_Swift
import AVFoundation
import SwiftEventBus
// import SwiftEventBus
@objc public class UnifiedCouponBarcodeViewController: UIViewController {
@IBOutlet weak var mainView: UIView!
......@@ -100,7 +100,7 @@ import SwiftEventBus
alert.addAction(UIAlertAction(title: "OK", style: .default, handler: { action in
switch action.style{
case .default:
SwiftEventBus.post("refresh_unified_coupons")
// SwiftEventBus.post("refresh_unified_coupons")
self.navigationController?.popViewController(animated: true)
// self.dismiss(animated: true, completion: {})
......
......@@ -7,7 +7,7 @@
import Foundation
import UIKit
import SwiftEventBus
// import SwiftEventBus
@objc public class UnifiedCouponsViewController: UIViewController {
@IBOutlet weak var backgroundImage: UIImageView!
......@@ -23,7 +23,7 @@ import SwiftEventBus
self.hidesBottomBarWhenPushed = true
SwiftEventBus.onBackgroundThread(self, name: "unified_coupons_fetched") { result in
// SwiftEventBus.onBackgroundThread(self, name: "unified_coupons_fetched") { result in
DispatchQueue.main.async {
self.unifiedCoupons = swiftApi().getUnifiedCouponList()
......