Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2022-10-13 16:01:10 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ccad3084104df37462974d345ecc5c0ce58fbeaf
ccad3084
1 parent
4dc50f44
add trackers v3
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
25 additions
and
2 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/LoyaltyAnalysisViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/MapsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/ShareViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
ccad308
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
View file @
ccad308
...
...
@@ -116,6 +116,7 @@ import SwiftEventBus
alert
.
addAction
(
UIAlertAction
(
title
:
"Ενεργοποίηση"
,
style
:
.
default
,
handler
:
{
action
in
switch
action
.
style
{
case
.
default
:
swiftApi
()
.
logTrackersEvent
(
"click"
,
(
"ActivateContextual:"
+
(
self
.
ccms
?
.
_sessionId
??
""
)))
self
.
submitOrderRequest
()
case
.
cancel
:
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
View file @
ccad308
...
...
@@ -274,6 +274,11 @@ import AVFoundation
// MARK: - Actions
@IBAction
func
redeemButtomAction
(
_
sender
:
Any
)
{
let
couponSetData
:
swiftApi
.
CouponSetItemModel
?
=
self
.
coupon
?
.
couponset_data
let
couponName
=
couponSetData
?
.
name
??
""
swiftApi
()
.
logTrackersEvent
(
"click"
,
(
"ShareCoupon:"
+
couponName
))
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"ShareViewController"
)
as!
SwiftWarplyFramework
.
ShareViewController
vc
.
coupon
=
self
.
coupon
...
...
@@ -292,6 +297,8 @@ import AVFoundation
}
@IBAction
func
mapButtonAction
(
_
sender
:
Any
)
{
swiftApi
()
.
logTrackersEvent
(
"click"
,
"SeeShops"
)
let
vc
=
SwiftWarplyFramework
.
MapsViewController
(
nibName
:
"MapsViewController"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
vc
.
couponSet
=
coupon
?
.
couponset_data
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
View file @
ccad308
...
...
@@ -294,6 +294,8 @@ import SwiftEventBus
@IBAction
func
redeemButtomAction
(
_
sender
:
Any
)
{
// SwiftEventBus.post("couponRedeem", sender: coupon)
swiftApi
()
.
logTrackersEvent
(
"click"
,
(
"RetrieveCoupon:"
+
(
couponset
?
.
uuid
??
""
)))
redeemCouponSetRequest
(
uuid
:
couponset
?
.
uuid
??
""
,
communication_uuid
:
campaign
?
.
session_uuid
??
""
)
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
View file @
ccad308
...
...
@@ -96,13 +96,15 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{
public
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
// SwiftEventBus.post("couponBarcodePressed", sender: coupons[indexPath.row])
// Logs
let
couponSetData
:
swiftApi
.
CouponSetItemModel
?
=
coupons
[
indexPath
.
row
]
.
couponset_data
print
(
"Coupon clicked: "
+
(
coupons
[
indexPath
.
row
]
.
coupon
??
""
))
print
(
"Coupon Name clicked: "
+
(
couponSetData
?
.
name
??
""
))
print
(
"Coupon Description clicked: "
+
(
couponSetData
?
.
short_description
??
""
))
print
(
"Coupon Expiration clicked: "
+
(
coupons
[
indexPath
.
row
]
.
expiration
??
""
))
swiftApi
()
.
logTrackersEvent
(
"click"
,
(
"Coupon:"
+
(
couponSetData
?
.
name
??
""
)))
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CouponBarcodeViewController"
)
as!
SwiftWarplyFramework
.
CouponBarcodeViewController
...
...
SwiftWarplyFramework/SwiftWarplyFramework/LoyaltyAnalysisViewController.swift
View file @
ccad308
...
...
@@ -115,12 +115,16 @@ import SwiftEventBus
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
if
(
index
==
1
)
{
swiftApi
()
.
logTrackersEvent
(
"click"
,
(
"LoyaltyHistoryScreen:"
+
"TabShared"
))
let
analysisVC
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"SharingHistoryViewController"
)
as!
SwiftWarplyFramework
.
SharingHistoryViewController
analysisVC
.
index
=
index
;
return
analysisVC
;
}
swiftApi
()
.
logTrackersEvent
(
"click"
,
(
"LoyaltyHistoryScreen:"
+
"TabExpired"
))
let
analysisVC
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"HistoryViewController"
)
as!
SwiftWarplyFramework
.
HistoryViewController
analysisVC
.
index
=
index
;
...
...
SwiftWarplyFramework/SwiftWarplyFramework/MapsViewController.swift
View file @
ccad308
...
...
@@ -273,6 +273,9 @@ import MapKit
public
func
mapView
(
_
mapView
:
MKMapView
,
didSelect
view
:
MKAnnotationView
)
{
let
merchant
=
view
.
annotation
as?
MerchantAnnotation
let
merchantModel
=
merchant
!.
model
swiftApi
()
.
logTrackersEvent
(
"click"
,
(
"ShopsScreenMarker:"
+
(
merchantModel
.
_uuid
)))
loadPinDetailsView
(
merchant
!
)
showPinDetailsView
()
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/ShareViewController.swift
View file @
ccad308
...
...
@@ -169,6 +169,9 @@ import SwiftEventBus
alert
.
addAction
(
UIAlertAction
(
title
:
"Αποστολή"
,
style
:
.
default
,
handler
:
{
action
in
switch
action
.
style
{
case
.
default
:
let
couponSetData
:
swiftApi
.
CouponSetItemModel
?
=
self
.
coupon
?
.
couponset_data
let
couponName
=
couponSetData
?
.
name
??
""
swiftApi
()
.
logTrackersEvent
(
"click"
,
(
"ShareCoupon:"
+
couponName
))
self
.
cosmoteCouponSharingRequest
()
case
.
cancel
:
...
...
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
View file @
ccad308
...
...
@@ -170,6 +170,7 @@ import SwiftEventBus
alert
.
addAction
(
UIAlertAction
(
title
:
"Ενεργοποίηση"
,
style
:
.
default
,
handler
:
{
action
in
switch
action
.
style
{
case
.
default
:
swiftApi
()
.
logTrackersEvent
(
"click"
,
(
"ActivateTelco:"
+
(
self
.
ccms
?
.
_sessionId
??
""
)))
self
.
submitOrderRequest
()
case
.
cancel
:
...
...
Please
register
or
login
to post a comment