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:03:45 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e0e3c25e83979243f274de07f58f1a199de45ef7
e0e3c25e
1 parent
ec5ed0cb
fix campaignUrl crash
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
17 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
View file @
e0e3c25
...
...
@@ -23,9 +23,10 @@ import SwiftEventBus
setBackButton
()
webview
.
navigationDelegate
=
self
let
url
=
URL
(
string
:
campaignUrl
)
!
webview
.
load
(
URLRequest
(
url
:
url
))
webview
.
allowsBackForwardNavigationGestures
=
true
if
let
url
=
URL
(
string
:
campaignUrl
)
{
webview
.
load
(
URLRequest
(
url
:
url
))
webview
.
allowsBackForwardNavigationGestures
=
true
}
webview
.
configuration
.
userContentController
.
add
(
self
,
name
:
"Cosmote"
)
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
e0e3c25
...
...
@@ -1527,14 +1527,14 @@ public class swiftApi {
let
instanceOfMyApi
=
MyApi
()
let
campaignInfo
=
instanceOfMyApi
.
provideInfoForCampaign
()
let
finalUrl
=
(
item
.
index_url
??
""
)
+
"?web_id="
+
(
campaignInfo
?[
"web_id"
]
as
!
String
)
+
"&app_uuid="
+
(
campaignInfo
?[
"app_uuid"
]
as
!
String
)
+
"&api_key="
+
(
campaignInfo
?[
"api_key"
]
as
!
String
)
+
"?web_id="
+
(
campaignInfo
?[
"web_id"
]
as
?
String
??
""
)
+
"&app_uuid="
+
(
campaignInfo
?[
"app_uuid"
]
as
?
String
??
""
)
+
"&api_key="
+
(
campaignInfo
?[
"api_key"
]
as
?
String
??
""
)
+
"&session_uuid="
+
(
item
.
session_uuid
??
""
)
+
"&access_token="
+
(
campaignInfo
?[
"access_token"
]
as
!
String
)
+
"&refresh_token="
+
(
campaignInfo
?[
"refresh_token"
]
as
!
String
)
+
"&client_id="
+
(
campaignInfo
?[
"client_id"
]
as
!
String
)
+
"&client_secret="
+
(
campaignInfo
?[
"client_secret"
]
as
!
String
)
+
"&access_token="
+
(
campaignInfo
?[
"access_token"
]
as
?
String
??
""
)
+
"&refresh_token="
+
(
campaignInfo
?[
"refresh_token"
]
as
?
String
??
""
)
+
"&client_id="
+
(
campaignInfo
?[
"client_id"
]
as
?
String
??
""
)
+
"&client_secret="
+
(
campaignInfo
?[
"client_secret"
]
as
?
String
??
""
)
+
"&Session_ID="
+
(
campaign
.
_sessionId
)
+
"&businessService="
+
(
campaign
.
_businessService
)
+
"&offerName="
+
(
campaign
.
_offerName
)
...
...
@@ -1569,14 +1569,14 @@ public class swiftApi {
let
instanceOfMyApi
=
MyApi
()
let
campaignInfo
=
instanceOfMyApi
.
provideInfoForCampaign
()
let
finalUrl
=
(
campaign
.
index_url
??
""
)
+
"?web_id="
+
(
campaignInfo
?[
"web_id"
]
as
!
String
)
+
"&app_uuid="
+
(
campaignInfo
?[
"app_uuid"
]
as
!
String
)
+
"&api_key="
+
(
campaignInfo
?[
"api_key"
]
as
!
String
)
+
"?web_id="
+
(
campaignInfo
?[
"web_id"
]
as
?
String
??
""
)
+
"&app_uuid="
+
(
campaignInfo
?[
"app_uuid"
]
as
?
String
??
""
)
+
"&api_key="
+
(
campaignInfo
?[
"api_key"
]
as
?
String
??
""
)
+
"&session_uuid="
+
(
campaign
.
session_uuid
??
""
)
+
"&access_token="
+
(
campaignInfo
?[
"access_token"
]
as
!
String
)
+
"&refresh_token="
+
(
campaignInfo
?[
"refresh_token"
]
as
!
String
)
+
"&client_id="
+
(
campaignInfo
?[
"client_id"
]
as
!
String
)
+
"&client_secret="
+
(
campaignInfo
?[
"client_secret"
]
as
!
String
)
+
"&access_token="
+
(
campaignInfo
?[
"access_token"
]
as
?
String
??
""
)
+
"&refresh_token="
+
(
campaignInfo
?[
"refresh_token"
]
as
?
String
??
""
)
+
"&client_id="
+
(
campaignInfo
?[
"client_id"
]
as
?
String
??
""
)
+
"&client_secret="
+
(
campaignInfo
?[
"client_secret"
]
as
?
String
??
""
)
+
"&Session_ID="
+
(
ccmsCampaign
.
_sessionId
)
+
"&businessService="
+
(
ccmsCampaign
.
_businessService
)
+
"&offerName="
+
(
ccmsCampaign
.
_offerName
)
...
...
Please
register
or
login
to post a comment