Manos Chorianopoulos

add trackers v2

......@@ -7,7 +7,7 @@
<key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>0</integer>
</dict>
</dict>
</dict>
......
......@@ -7,7 +7,7 @@
<key>SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>1</integer>
</dict>
</dict>
</dict>
......
......@@ -84,6 +84,14 @@ import SwiftEventBus
}
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
swiftApi().logTrackersEvent("screen", "ContextualScreen")
}
// MARK: - Functions
func showConfirmDialog() -> Void {
......
......@@ -171,6 +171,13 @@ import AVFoundation
}
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
swiftApi().logTrackersEvent("screen", "CouponScreen")
}
// MARK: - Functions
func toggleTerms() {
if (termsVisible) {
......
......@@ -112,6 +112,13 @@ import SwiftEventBus
}
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
swiftApi().logTrackersEvent("screen", "CouponsetScreen")
}
// MARK: - Functions
func nonTelcoDialog(_ alertTitle: String, _ alertSubTitle: String) -> Void {
......
......@@ -39,6 +39,8 @@ import SwiftEventBus
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
swiftApi().logTrackersEvent("screen", "ActiveCouponsScreen")
self.coupons = swiftApi().getCouponList()
self.tableView.reloadData()
......
......@@ -90,6 +90,8 @@ import SwiftEventBus
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
swiftApi().logTrackersEvent("screen", "GiftsForYouScreen")
self.refreshData()
self.startTimer()
......
......@@ -64,6 +64,8 @@ import SwiftEventBus
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
swiftApi().logTrackersEvent("screen", "LoyaltyHistoryScreen")
self.startTimer()
}
......
......@@ -81,6 +81,8 @@ import SwiftEventBus
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
swiftApi().logTrackersEvent("screen", "MoreForYouScreen")
self.refreshData()
self.startTimer()
......
......@@ -99,6 +99,13 @@ import MapKit
load()
}
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
swiftApi().logTrackersEvent("screen", "ShopsScreen")
}
// mvp
@objc func load() {
......
......@@ -111,6 +111,13 @@ import SwiftEventBus
}
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
swiftApi().logTrackersEvent("screen", "CouponShareScreen")
}
deinit {
NotificationCenter.default.removeObserver(self)
}
......
......@@ -124,6 +124,13 @@ import SwiftEventBus
toggleMore()
}
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
swiftApi().logTrackersEvent("screen", "TelcoScreen")
}
// MARK: - Functions
func toggleMore() {
if (moreVisible) {
......
......@@ -292,6 +292,8 @@ import SwiftEventBus
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
swiftApi().logTrackersEvent("screen", "LoyaltyWalletScreen")
addNavShadow()
let userTag = swiftApi().getUserTag()
......