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-04 18:56:54 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bce4f5d51a21930e352fae8127d160e119e0a872
bce4f5d5
1 parent
372e6c3e
add logs at webview
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
View file @
bce4f5d
...
...
@@ -18,6 +18,8 @@ import SwiftEventBus
public
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
print
(
"Webview url: "
+
campaignUrl
)
self
.
hidesBottomBarWhenPushed
=
true
setBackButton
()
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
bce4f5d
...
...
@@ -1516,6 +1516,7 @@ public class swiftApi {
+
"&client_id="
+
(
campaignInfo
?[
"client_id"
]
as!
String
)
+
"&client_secret="
+
(
campaignInfo
?[
"client_secret"
]
as!
String
);
print
(
"constructCampaignUrl url: "
+
finalUrl
)
return
finalUrl
}
...
...
@@ -1556,10 +1557,12 @@ public class swiftApi {
+
"&TREATMENT_CODE="
+
(
campaign
.
_treatmentCode
)
+
"&OfferAudienceLevel="
+
(
campaign
.
_eligibleAssets
!=
nil
&&
campaign
.
_eligibleAssets
.
count
>
0
?
"MSISDN"
:
"GUID"
);
print
(
"constructCcmsUrl url: "
+
finalUrl
)
return
finalUrl
break
;
}
}
print
(
"constructCcmsUrl url: "
+
""
)
return
""
}
...
...
@@ -1598,6 +1601,7 @@ public class swiftApi {
+
"&TREATMENT_CODE="
+
(
ccmsCampaign
.
_treatmentCode
)
+
"&OfferAudienceLevel="
+
(
ccmsCampaign
.
_eligibleAssets
!=
nil
&&
ccmsCampaign
.
_eligibleAssets
.
count
>
0
?
"MSISDN"
:
"GUID"
);
print
(
"constructCcmsUrl url: "
+
finalUrl
)
return
finalUrl
}
...
...
Please
register
or
login
to post a comment