Showing
4 changed files
with
17 additions
and
15 deletions
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
7 | <key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key> | 7 | <key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key> |
8 | <dict> | 8 | <dict> |
9 | <key>orderHint</key> | 9 | <key>orderHint</key> |
10 | - <integer>1</integer> | 10 | + <integer>0</integer> |
11 | </dict> | 11 | </dict> |
12 | </dict> | 12 | </dict> |
13 | </dict> | 13 | </dict> | ... | ... |
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
7 | <key>SwiftWarplyFramework.xcscheme_^#shared#^_</key> | 7 | <key>SwiftWarplyFramework.xcscheme_^#shared#^_</key> |
8 | <dict> | 8 | <dict> |
9 | <key>orderHint</key> | 9 | <key>orderHint</key> |
10 | - <integer>0</integer> | 10 | + <integer>1</integer> |
11 | </dict> | 11 | </dict> |
12 | </dict> | 12 | </dict> |
13 | </dict> | 13 | </dict> | ... | ... |
No preview for this file type
... | @@ -132,6 +132,11 @@ var timer2: DispatchSourceTimer? | ... | @@ -132,6 +132,11 @@ var timer2: DispatchSourceTimer? |
132 | if (eventArray[0] == "event") { | 132 | if (eventArray[0] == "event") { |
133 | if (eventArray[1] == "closeArtwork") { | 133 | if (eventArray[1] == "closeArtwork") { |
134 | 134 | ||
135 | + self.navigationController?.popViewController(animated: true) | ||
136 | + | ||
137 | + } else if (eventArray[1] == "addUserTag") { | ||
138 | + // SwiftEventBus.post("questionnaire", sender: questionnaireEvent) | ||
139 | + | ||
135 | swiftApi().getProfileAsync(getProfileCallback) | 140 | swiftApi().getProfileAsync(getProfileCallback) |
136 | 141 | ||
137 | func getProfileCallback (_ profileData: swiftApi.ProfileModel?) -> Void { | 142 | func getProfileCallback (_ profileData: swiftApi.ProfileModel?) -> Void { |
... | @@ -142,19 +147,6 @@ var timer2: DispatchSourceTimer? | ... | @@ -142,19 +147,6 @@ var timer2: DispatchSourceTimer? |
142 | func getCampaignsCallback (_ campaignsData: Array<swiftApi.CampaignItemModel>?) -> Void { | 147 | func getCampaignsCallback (_ campaignsData: Array<swiftApi.CampaignItemModel>?) -> Void { |
143 | if (campaignsData != nil) { | 148 | if (campaignsData != nil) { |
144 | DispatchQueue.main.async { | 149 | DispatchQueue.main.async { |
145 | - } | ||
146 | - } else { | ||
147 | - } | ||
148 | - } | ||
149 | - | ||
150 | - } | ||
151 | - } else { | ||
152 | - } | ||
153 | - } | ||
154 | - | ||
155 | - self.navigationController?.popViewController(animated: true) | ||
156 | - | ||
157 | - } else if (eventArray[1] == "addUserTag") { | ||
158 | let questionnaireEvent = swiftApi.QuestionnaireEventModel() | 150 | let questionnaireEvent = swiftApi.QuestionnaireEventModel() |
159 | questionnaireEvent._name = String(eventArray[1]) | 151 | questionnaireEvent._name = String(eventArray[1]) |
160 | if (eventArray.count > 2) { | 152 | if (eventArray.count > 2) { |
... | @@ -165,6 +157,16 @@ var timer2: DispatchSourceTimer? | ... | @@ -165,6 +157,16 @@ var timer2: DispatchSourceTimer? |
165 | swiftApi().setUserTag("") | 157 | swiftApi().setUserTag("") |
166 | } | 158 | } |
167 | SwiftEventBus.post("questionnaire", sender: questionnaireEvent) | 159 | SwiftEventBus.post("questionnaire", sender: questionnaireEvent) |
160 | + } | ||
161 | + } else { | ||
162 | + } | ||
163 | + } | ||
164 | + | ||
165 | + } | ||
166 | + } else { | ||
167 | + } | ||
168 | + } | ||
169 | + | ||
168 | 170 | ||
169 | } else if (eventArray[1] == "couponRetrieved") { | 171 | } else if (eventArray[1] == "couponRetrieved") { |
170 | // let couponEvent = swiftApi.CouponEventModel() | 172 | // let couponEvent = swiftApi.CouponEventModel() | ... | ... |
-
Please register or login to post a comment