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-09-09 19:26:33 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2927840ca58c0f20dfbfc85ffec02ddcbb08feb0
2927840c
1 parent
354e0c86
fix questionnaire shown at carusel
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
15 deletions
SwiftWarplyFramework/Pods/Pods.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
SwiftWarplyFramework/SwiftWarplyFramework.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
SwiftWarplyFramework/Pods/Pods.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
2927840
...
...
@@ -7,7 +7,7 @@
<key>
Pods-SwiftWarplyFramework.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
1
</integer>
<integer>
0
</integer>
</dict>
</dict>
</dict>
...
...
SwiftWarplyFramework/SwiftWarplyFramework.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
2927840
...
...
@@ -7,7 +7,7 @@
<key>
SwiftWarplyFramework.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
0
</integer>
<integer>
1
</integer>
</dict>
</dict>
</dict>
...
...
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
2927840
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
View file @
2927840
...
...
@@ -132,6 +132,11 @@ var timer2: DispatchSourceTimer?
if
(
eventArray
[
0
]
==
"event"
)
{
if
(
eventArray
[
1
]
==
"closeArtwork"
)
{
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
else
if
(
eventArray
[
1
]
==
"addUserTag"
)
{
// SwiftEventBus.post("questionnaire", sender: questionnaireEvent)
swiftApi
()
.
getProfileAsync
(
getProfileCallback
)
func
getProfileCallback
(
_
profileData
:
swiftApi
.
ProfileModel
?)
->
Void
{
...
...
@@ -142,6 +147,16 @@ var timer2: DispatchSourceTimer?
func
getCampaignsCallback
(
_
campaignsData
:
Array
<
swiftApi
.
CampaignItemModel
>
?)
->
Void
{
if
(
campaignsData
!=
nil
)
{
DispatchQueue
.
main
.
async
{
let
questionnaireEvent
=
swiftApi
.
QuestionnaireEventModel
()
questionnaireEvent
.
_name
=
String
(
eventArray
[
1
])
if
(
eventArray
.
count
>
2
)
{
questionnaireEvent
.
_parameter
=
String
(
eventArray
[
2
])
swiftApi
()
.
setUserTag
(
String
(
eventArray
[
2
]))
}
else
{
questionnaireEvent
.
_parameter
=
""
swiftApi
()
.
setUserTag
(
""
)
}
SwiftEventBus
.
post
(
"questionnaire"
,
sender
:
questionnaireEvent
)
}
}
else
{
}
...
...
@@ -152,19 +167,6 @@ var timer2: DispatchSourceTimer?
}
}
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
else
if
(
eventArray
[
1
]
==
"addUserTag"
)
{
let
questionnaireEvent
=
swiftApi
.
QuestionnaireEventModel
()
questionnaireEvent
.
_name
=
String
(
eventArray
[
1
])
if
(
eventArray
.
count
>
2
)
{
questionnaireEvent
.
_parameter
=
String
(
eventArray
[
2
])
swiftApi
()
.
setUserTag
(
String
(
eventArray
[
2
]))
}
else
{
questionnaireEvent
.
_parameter
=
""
swiftApi
()
.
setUserTag
(
""
)
}
SwiftEventBus
.
post
(
"questionnaire"
,
sender
:
questionnaireEvent
)
}
else
if
(
eventArray
[
1
]
==
"couponRetrieved"
)
{
// let couponEvent = swiftApi.CouponEventModel()
...
...
Please
register
or
login
to post a comment