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-07-12 14:23:13 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
290c05afbb80ab44bce7a32a4f585a853426dc3b
290c05af
1 parent
05c82068
fix webview events crashing
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
View file @
290c05a
...
...
@@ -59,7 +59,9 @@ import SwiftEventBus
let
couponEvent
=
swiftApi
.
CouponEventModel
()
SwiftEventBus
.
post
(
"coupon_retrieved"
,
sender
:
couponEvent
)
}
}
else
if
(
eventArray
[
1
]
==
"couponShared"
)
{
}
// else if (eventArray[2] == "serviceDisabled") {
// let pacingService = swiftApi.WarplyPacingEventModel()
// pacingService._isEnabled = false
...
...
@@ -71,12 +73,12 @@ import SwiftEventBus
// SwiftEventBus.post("pacing", sender: pacingService)
// }
else
if
(
eventArray
[
2
]
==
"shortcutEnabled"
)
{
else
if
(
eventArray
[
1
]
==
"steps"
&&
eventArray
[
2
]
==
"shortcutEnabled"
)
{
let
pacingEvent
=
swiftApi
.
WarplyPacingEventModel
()
pacingEvent
.
_isVisible
=
true
SwiftEventBus
.
post
(
"pacing"
,
sender
:
pacingEvent
)
}
else
if
(
eventArray
[
2
]
==
"shortcutDisabled"
)
{
}
else
if
(
eventArray
[
1
]
==
"steps"
&&
eventArray
[
2
]
==
"shortcutDisabled"
)
{
let
pacingEvent
=
swiftApi
.
WarplyPacingEventModel
()
pacingEvent
.
_isVisible
=
false
SwiftEventBus
.
post
(
"pacing"
,
sender
:
pacingEvent
)
...
...
Please
register
or
login
to post a comment