diff --git a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/DeskproFramework b/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/DeskproFramework
index b69f9fd..8c7b790 100755
Binary files a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/DeskproFramework and b/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/DeskproFramework differ
diff --git a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.abi.json b/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.abi.json
index 2492237..6c0fa6b 100644
--- a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.abi.json
+++ b/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.abi.json
@@ -102,6 +102,34 @@
],
"funcSelfKind": "NonMutating"
},
+ {
+ "kind": "Function",
+ "name": "authorizeUser",
+ "printedName": "authorizeUser(userJwt:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "s:16DeskproFramework7DeskProC13authorizeUser7userJwtSbSS_tF",
+ "mangledName": "$s16DeskproFramework7DeskProC13authorizeUser7userJwtSbSS_tF",
+ "moduleName": "DeskproFramework",
+ "declAttributes": [
+ "AccessControl",
+ "RawDocComment"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
{
"kind": "Function",
"name": "forgetUser",
@@ -2286,84 +2314,119 @@
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8237,
+ "offset": 1382,
+ "length": 44,
+ "value": "\"var meta = document.createElement('meta');\""
+ },
+ {
+ "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
+ "kind": "StringLiteral",
+ "offset": 1445,
+ "length": 25,
+ "value": "\"meta.name = 'viewport';\""
+ },
+ {
+ "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
+ "kind": "StringLiteral",
+ "offset": 1489,
+ "length": 94,
+ "value": "\"meta.content = 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no';\""
+ },
+ {
+ "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
+ "kind": "StringLiteral",
+ "offset": 1602,
+ "length": 54,
+ "value": "\"var head = document.getElementsByTagName('head')[0];\""
+ },
+ {
+ "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
+ "kind": "StringLiteral",
+ "offset": 1659,
+ "length": 25,
+ "value": "\"head.appendChild(meta);\""
+ },
+ {
+ "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
+ "kind": "StringLiteral",
+ "offset": 9634,
"length": 14,
"value": "\"closeWebView\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8274,
+ "offset": 9671,
"length": 12,
"value": "\"reloadPage\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8310,
+ "offset": 9707,
"length": 13,
"value": "\"getUserInfo\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8351,
+ "offset": 9748,
"length": 17,
"value": "\"getUserJwtToken\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8237,
+ "offset": 9634,
"length": 14,
"value": "\"closeWebView\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8274,
+ "offset": 9671,
"length": 12,
"value": "\"reloadPage\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8310,
+ "offset": 9707,
"length": 13,
"value": "\"getUserInfo\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8351,
+ "offset": 9748,
"length": 17,
"value": "\"getUserJwtToken\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8444,
+ "offset": 9841,
"length": 2040,
"value": "\"window.DESKPRO_MESSENGER_OPTIONS = {\n showLauncherButton: false,\n openOnInit: true,\n userInfo: { name: \"john\" },\n signedUserInfo: undefined,\n launcherButtonConfig: undefined,\n messengerAppConfig: undefined,\n urlCacheableConfig: undefined,\n};\n\nwindow.DESKPRO_MESSENGER_CONNECTION = {\n parentMethods: {\n ready: async (messengerId) => {\n const data = await window.DESKPRO_MESSENGER_CONNECTION.childMethods?.init(messengerId, {\n showLauncherButton: DESKPRO_MESSENGER_OPTIONS.showLauncherButton,\n user: window.DESKPRO_MESSENGER_OPTIONS?.userInfo,\n launcherButtonConfig: DESKPRO_MESSENGER_OPTIONS.launcherButtonConfig,\n messengerAppConfig: DESKPRO_MESSENGER_OPTIONS.messengerAppConfig,\n parentViewHeight: \"fullscreen\",\n open: DESKPRO_MESSENGER_OPTIONS.openOnInit,\n });\n\n if (data) {\n const { side, offsetBottom, offsetSide, width, height } = data;\n }\n },\n getViewHeight: async (messengerId) => {\n return \"fullscreen\";\n },\n getUserInfo: async (messengerId) => {\n window.webkit.messageHandlers.iosListener.postMessage(\"\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 9728,
+ "offset": 11125,
"length": 2,
"value": "\"\")\n .then(response => {\n \/\/alert(response);\n })\n },\n getUserJwtToken: async (messengerId) => {\n window.webkit.messageHandlers.iosListener.postMessage(\"\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 9980,
+ "offset": 11377,
"length": 2,
"value": "\"\")\n .then(response => {\n \/\/alert(response);\n })\n },\n open: async (messengerId, data) => {\n const { width, height } = data;\n },\n close: async (messengerId, data) => {\n window.webkit.messageHandlers.iosListener.postMessage(\"\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 10325,
+ "offset": 11722,
"length": 2,
"value": "\"\")\n },\n appEvent: async (messengerId, event) => {\n \/\/alert(event.id)\n },\n },\n childMethods: undefined,\n};\""
}
diff --git a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.private.swiftinterface b/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.private.swiftinterface
index 8d7a6b1..f055223 100644
--- a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.private.swiftinterface
+++ b/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.private.swiftinterface
@@ -13,6 +13,7 @@ public class DeskPro {
public init(messengerConfig: DeskproFramework.MessengerConfig, containingViewController: UIKit.UIViewController)
public func test() -> Swift.String
public func setUserInfo(user: DeskproFramework.User)
+ public func authorizeUser(userJwt: Swift.String) -> Swift.Bool
public func forgetUser() -> Swift.Bool
public func setPushRegistrationToken(token: Swift.String) -> Swift.Bool
public func isDeskProPushNotification(pushNotification: DeskproFramework.PushNotificationData) -> Swift.Bool
diff --git a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftdoc b/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftdoc
index d3b5b65..752c30b 100644
Binary files a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftdoc and b/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftdoc differ
diff --git a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftinterface b/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftinterface
index 8d7a6b1..f055223 100644
--- a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftinterface
+++ b/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftinterface
@@ -13,6 +13,7 @@ public class DeskPro {
public init(messengerConfig: DeskproFramework.MessengerConfig, containingViewController: UIKit.UIViewController)
public func test() -> Swift.String
public func setUserInfo(user: DeskproFramework.User)
+ public func authorizeUser(userJwt: Swift.String) -> Swift.Bool
public func forgetUser() -> Swift.Bool
public func setPushRegistrationToken(token: Swift.String) -> Swift.Bool
public func isDeskProPushNotification(pushNotification: DeskproFramework.PushNotificationData) -> Swift.Bool
diff --git a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/_CodeSignature/CodeResources b/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/_CodeSignature/CodeResources
index 94d8855..d3da856 100644
--- a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/_CodeSignature/CodeResources
+++ b/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/_CodeSignature/CodeResources
@@ -18,23 +18,23 @@
Modules/DeskproFramework.swiftmodule/arm64-apple-ios.abi.json
- E91BtpqVrjgLz3vKUxw2NIxRq0Q=
+ 4LqHeUfyTPRwhsIOOjgSx1pG5cs=
Modules/DeskproFramework.swiftmodule/arm64-apple-ios.private.swiftinterface
- myZG0fAd3dcAmLlhutV5ww3e+Dk=
+ zLw7WRvcWLWz/MYFH/oagPiah2Q=
Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftdoc
- 7o3a/arHzGy5yP2CbTZv2FsHaaE=
+ v7YXLMZrElhXZiGLAHn0dipIdOs=
Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftinterface
- myZG0fAd3dcAmLlhutV5ww3e+Dk=
+ zLw7WRvcWLWz/MYFH/oagPiah2Q=
Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftmodule
- YxyHKY1IYiOBap1dLGpKdwsEI1g=
+ w6bhuhF7uVCX2ropGHTBnRxPhXs=
Modules/module.modulemap
@@ -65,35 +65,35 @@
hash2
- blI8oLcN0ZdPm0pc2n9lNNIpita4UURW5KILpu5AdDY=
+ iwQtZW6YGV6OJeJSC4HTUQmd/pIvNmNC4xfk7Y4FQ8U=
Modules/DeskproFramework.swiftmodule/arm64-apple-ios.private.swiftinterface
hash2
- j+g+BBos0mzl/TrGUrIaXpyQSgtLEY6dEgQBr3/pv3E=
+ aLRlK6BVhatIQOEWoZ3vCHzv/D1Iny6NDD2Zmn5+qsA=
Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftdoc
hash2
- nFWh7zasSRSW/yb9+KxAP9MtIfSFARN5uVpUqtuRJXs=
+ pSgDQ5LRl8tdVpfg/Csbk/Bh+5MviaVFuXD3mxGsAXk=
Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftinterface
hash2
- j+g+BBos0mzl/TrGUrIaXpyQSgtLEY6dEgQBr3/pv3E=
+ aLRlK6BVhatIQOEWoZ3vCHzv/D1Iny6NDD2Zmn5+qsA=
Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftmodule
hash2
- B40vWgEoqG53/pg/xL3FyVDHzkZAfIKwftgNqOAAew0=
+ SqrBXzillGCuKGNcDQqMPPZHVQP3XCVtJMAXxu3TYfA=
Modules/module.modulemap
diff --git a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/DeskproFramework b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/DeskproFramework
index d85e646..427a175 100755
Binary files a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/DeskproFramework and b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/DeskproFramework differ
diff --git a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.abi.json b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.abi.json
index 2492237..6c0fa6b 100644
--- a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.abi.json
+++ b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.abi.json
@@ -102,6 +102,34 @@
],
"funcSelfKind": "NonMutating"
},
+ {
+ "kind": "Function",
+ "name": "authorizeUser",
+ "printedName": "authorizeUser(userJwt:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "s:16DeskproFramework7DeskProC13authorizeUser7userJwtSbSS_tF",
+ "mangledName": "$s16DeskproFramework7DeskProC13authorizeUser7userJwtSbSS_tF",
+ "moduleName": "DeskproFramework",
+ "declAttributes": [
+ "AccessControl",
+ "RawDocComment"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
{
"kind": "Function",
"name": "forgetUser",
@@ -2286,84 +2314,119 @@
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8237,
+ "offset": 1382,
+ "length": 44,
+ "value": "\"var meta = document.createElement('meta');\""
+ },
+ {
+ "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
+ "kind": "StringLiteral",
+ "offset": 1445,
+ "length": 25,
+ "value": "\"meta.name = 'viewport';\""
+ },
+ {
+ "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
+ "kind": "StringLiteral",
+ "offset": 1489,
+ "length": 94,
+ "value": "\"meta.content = 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no';\""
+ },
+ {
+ "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
+ "kind": "StringLiteral",
+ "offset": 1602,
+ "length": 54,
+ "value": "\"var head = document.getElementsByTagName('head')[0];\""
+ },
+ {
+ "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
+ "kind": "StringLiteral",
+ "offset": 1659,
+ "length": 25,
+ "value": "\"head.appendChild(meta);\""
+ },
+ {
+ "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
+ "kind": "StringLiteral",
+ "offset": 9634,
"length": 14,
"value": "\"closeWebView\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8274,
+ "offset": 9671,
"length": 12,
"value": "\"reloadPage\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8310,
+ "offset": 9707,
"length": 13,
"value": "\"getUserInfo\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8351,
+ "offset": 9748,
"length": 17,
"value": "\"getUserJwtToken\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8237,
+ "offset": 9634,
"length": 14,
"value": "\"closeWebView\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8274,
+ "offset": 9671,
"length": 12,
"value": "\"reloadPage\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8310,
+ "offset": 9707,
"length": 13,
"value": "\"getUserInfo\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8351,
+ "offset": 9748,
"length": 17,
"value": "\"getUserJwtToken\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8444,
+ "offset": 9841,
"length": 2040,
"value": "\"window.DESKPRO_MESSENGER_OPTIONS = {\n showLauncherButton: false,\n openOnInit: true,\n userInfo: { name: \"john\" },\n signedUserInfo: undefined,\n launcherButtonConfig: undefined,\n messengerAppConfig: undefined,\n urlCacheableConfig: undefined,\n};\n\nwindow.DESKPRO_MESSENGER_CONNECTION = {\n parentMethods: {\n ready: async (messengerId) => {\n const data = await window.DESKPRO_MESSENGER_CONNECTION.childMethods?.init(messengerId, {\n showLauncherButton: DESKPRO_MESSENGER_OPTIONS.showLauncherButton,\n user: window.DESKPRO_MESSENGER_OPTIONS?.userInfo,\n launcherButtonConfig: DESKPRO_MESSENGER_OPTIONS.launcherButtonConfig,\n messengerAppConfig: DESKPRO_MESSENGER_OPTIONS.messengerAppConfig,\n parentViewHeight: \"fullscreen\",\n open: DESKPRO_MESSENGER_OPTIONS.openOnInit,\n });\n\n if (data) {\n const { side, offsetBottom, offsetSide, width, height } = data;\n }\n },\n getViewHeight: async (messengerId) => {\n return \"fullscreen\";\n },\n getUserInfo: async (messengerId) => {\n window.webkit.messageHandlers.iosListener.postMessage(\"\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 9728,
+ "offset": 11125,
"length": 2,
"value": "\"\")\n .then(response => {\n \/\/alert(response);\n })\n },\n getUserJwtToken: async (messengerId) => {\n window.webkit.messageHandlers.iosListener.postMessage(\"\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 9980,
+ "offset": 11377,
"length": 2,
"value": "\"\")\n .then(response => {\n \/\/alert(response);\n })\n },\n open: async (messengerId, data) => {\n const { width, height } = data;\n },\n close: async (messengerId, data) => {\n window.webkit.messageHandlers.iosListener.postMessage(\"\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 10325,
+ "offset": 11722,
"length": 2,
"value": "\"\")\n },\n appEvent: async (messengerId, event) => {\n \/\/alert(event.id)\n },\n },\n childMethods: undefined,\n};\""
}
diff --git a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface
index 58da734..7554cc6 100644
--- a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface
+++ b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface
@@ -13,6 +13,7 @@ public class DeskPro {
public init(messengerConfig: DeskproFramework.MessengerConfig, containingViewController: UIKit.UIViewController)
public func test() -> Swift.String
public func setUserInfo(user: DeskproFramework.User)
+ public func authorizeUser(userJwt: Swift.String) -> Swift.Bool
public func forgetUser() -> Swift.Bool
public func setPushRegistrationToken(token: Swift.String) -> Swift.Bool
public func isDeskProPushNotification(pushNotification: DeskproFramework.PushNotificationData) -> Swift.Bool
diff --git a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftdoc b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftdoc
index 58ce7bc..5e91b1c 100644
Binary files a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftdoc and b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftdoc differ
diff --git a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftinterface
index 58da734..7554cc6 100644
--- a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftinterface
+++ b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftinterface
@@ -13,6 +13,7 @@ public class DeskPro {
public init(messengerConfig: DeskproFramework.MessengerConfig, containingViewController: UIKit.UIViewController)
public func test() -> Swift.String
public func setUserInfo(user: DeskproFramework.User)
+ public func authorizeUser(userJwt: Swift.String) -> Swift.Bool
public func forgetUser() -> Swift.Bool
public func setPushRegistrationToken(token: Swift.String) -> Swift.Bool
public func isDeskProPushNotification(pushNotification: DeskproFramework.PushNotificationData) -> Swift.Bool
diff --git a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json
index 2492237..6c0fa6b 100644
--- a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json
+++ b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json
@@ -102,6 +102,34 @@
],
"funcSelfKind": "NonMutating"
},
+ {
+ "kind": "Function",
+ "name": "authorizeUser",
+ "printedName": "authorizeUser(userJwt:)",
+ "children": [
+ {
+ "kind": "TypeNominal",
+ "name": "Bool",
+ "printedName": "Swift.Bool",
+ "usr": "s:Sb"
+ },
+ {
+ "kind": "TypeNominal",
+ "name": "String",
+ "printedName": "Swift.String",
+ "usr": "s:SS"
+ }
+ ],
+ "declKind": "Func",
+ "usr": "s:16DeskproFramework7DeskProC13authorizeUser7userJwtSbSS_tF",
+ "mangledName": "$s16DeskproFramework7DeskProC13authorizeUser7userJwtSbSS_tF",
+ "moduleName": "DeskproFramework",
+ "declAttributes": [
+ "AccessControl",
+ "RawDocComment"
+ ],
+ "funcSelfKind": "NonMutating"
+ },
{
"kind": "Function",
"name": "forgetUser",
@@ -2286,84 +2314,119 @@
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8237,
+ "offset": 1382,
+ "length": 44,
+ "value": "\"var meta = document.createElement('meta');\""
+ },
+ {
+ "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
+ "kind": "StringLiteral",
+ "offset": 1445,
+ "length": 25,
+ "value": "\"meta.name = 'viewport';\""
+ },
+ {
+ "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
+ "kind": "StringLiteral",
+ "offset": 1489,
+ "length": 94,
+ "value": "\"meta.content = 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no';\""
+ },
+ {
+ "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
+ "kind": "StringLiteral",
+ "offset": 1602,
+ "length": 54,
+ "value": "\"var head = document.getElementsByTagName('head')[0];\""
+ },
+ {
+ "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
+ "kind": "StringLiteral",
+ "offset": 1659,
+ "length": 25,
+ "value": "\"head.appendChild(meta);\""
+ },
+ {
+ "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
+ "kind": "StringLiteral",
+ "offset": 9634,
"length": 14,
"value": "\"closeWebView\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8274,
+ "offset": 9671,
"length": 12,
"value": "\"reloadPage\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8310,
+ "offset": 9707,
"length": 13,
"value": "\"getUserInfo\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8351,
+ "offset": 9748,
"length": 17,
"value": "\"getUserJwtToken\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8237,
+ "offset": 9634,
"length": 14,
"value": "\"closeWebView\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8274,
+ "offset": 9671,
"length": 12,
"value": "\"reloadPage\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8310,
+ "offset": 9707,
"length": 13,
"value": "\"getUserInfo\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8351,
+ "offset": 9748,
"length": 17,
"value": "\"getUserJwtToken\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 8444,
+ "offset": 9841,
"length": 2040,
"value": "\"window.DESKPRO_MESSENGER_OPTIONS = {\n showLauncherButton: false,\n openOnInit: true,\n userInfo: { name: \"john\" },\n signedUserInfo: undefined,\n launcherButtonConfig: undefined,\n messengerAppConfig: undefined,\n urlCacheableConfig: undefined,\n};\n\nwindow.DESKPRO_MESSENGER_CONNECTION = {\n parentMethods: {\n ready: async (messengerId) => {\n const data = await window.DESKPRO_MESSENGER_CONNECTION.childMethods?.init(messengerId, {\n showLauncherButton: DESKPRO_MESSENGER_OPTIONS.showLauncherButton,\n user: window.DESKPRO_MESSENGER_OPTIONS?.userInfo,\n launcherButtonConfig: DESKPRO_MESSENGER_OPTIONS.launcherButtonConfig,\n messengerAppConfig: DESKPRO_MESSENGER_OPTIONS.messengerAppConfig,\n parentViewHeight: \"fullscreen\",\n open: DESKPRO_MESSENGER_OPTIONS.openOnInit,\n });\n\n if (data) {\n const { side, offsetBottom, offsetSide, width, height } = data;\n }\n },\n getViewHeight: async (messengerId) => {\n return \"fullscreen\";\n },\n getUserInfo: async (messengerId) => {\n window.webkit.messageHandlers.iosListener.postMessage(\"\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 9728,
+ "offset": 11125,
"length": 2,
"value": "\"\")\n .then(response => {\n \/\/alert(response);\n })\n },\n getUserJwtToken: async (messengerId) => {\n window.webkit.messageHandlers.iosListener.postMessage(\"\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 9980,
+ "offset": 11377,
"length": 2,
"value": "\"\")\n .then(response => {\n \/\/alert(response);\n })\n },\n open: async (messengerId, data) => {\n const { width, height } = data;\n },\n close: async (messengerId, data) => {\n window.webkit.messageHandlers.iosListener.postMessage(\"\""
},
{
"filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift",
"kind": "StringLiteral",
- "offset": 10325,
+ "offset": 11722,
"length": 2,
"value": "\"\")\n },\n appEvent: async (messengerId, event) => {\n \/\/alert(event.id)\n },\n },\n childMethods: undefined,\n};\""
}
diff --git a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface
index 75cfd33..0ade870 100644
--- a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface
+++ b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface
@@ -13,6 +13,7 @@ public class DeskPro {
public init(messengerConfig: DeskproFramework.MessengerConfig, containingViewController: UIKit.UIViewController)
public func test() -> Swift.String
public func setUserInfo(user: DeskproFramework.User)
+ public func authorizeUser(userJwt: Swift.String) -> Swift.Bool
public func forgetUser() -> Swift.Bool
public func setPushRegistrationToken(token: Swift.String) -> Swift.Bool
public func isDeskProPushNotification(pushNotification: DeskproFramework.PushNotificationData) -> Swift.Bool
diff --git a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc
index 6949c82..4104e27 100644
Binary files a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc and b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ
diff --git a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface
index 75cfd33..0ade870 100644
--- a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface
+++ b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface
@@ -13,6 +13,7 @@ public class DeskPro {
public init(messengerConfig: DeskproFramework.MessengerConfig, containingViewController: UIKit.UIViewController)
public func test() -> Swift.String
public func setUserInfo(user: DeskproFramework.User)
+ public func authorizeUser(userJwt: Swift.String) -> Swift.Bool
public func forgetUser() -> Swift.Bool
public func setPushRegistrationToken(token: Swift.String) -> Swift.Bool
public func isDeskProPushNotification(pushNotification: DeskproFramework.PushNotificationData) -> Swift.Bool
diff --git a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/_CodeSignature/CodeResources b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/_CodeSignature/CodeResources
index 3371418..114d7d7 100644
--- a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/_CodeSignature/CodeResources
+++ b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/_CodeSignature/CodeResources
@@ -18,43 +18,43 @@
Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.abi.json
- E91BtpqVrjgLz3vKUxw2NIxRq0Q=
+ 4LqHeUfyTPRwhsIOOjgSx1pG5cs=
Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface
- 4//JEy7EBSDXFr+KMhv7nV4z+XU=
+ ykhjACfCnhX9RWsPxLdawtL3VIQ=
Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftdoc
- uxeRN7eCgGeEEgsM6WaL6D1OWTA=
+ Cw8klB7AtBrgaIszLK1hsrlTkoA=
Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftinterface
- 4//JEy7EBSDXFr+KMhv7nV4z+XU=
+ ykhjACfCnhX9RWsPxLdawtL3VIQ=
Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftmodule
- HFBKEstvM/Lvn/gqMIN4ReOh4E8=
+ 4Lwc5l4MRdK4NgBmkeGbZmfY6as=
Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json
- E91BtpqVrjgLz3vKUxw2NIxRq0Q=
+ 4LqHeUfyTPRwhsIOOjgSx1pG5cs=
Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface
- zgRPSTgloIRI5W+hyQ+YNrEVEtY=
+ 3dpW3454ctRaMbs4N3v0EGXRU8I=
Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc
- 82uu9yEAIjBARQY4Q3ADkJIWDQ4=
+ sSj28C42AWoxvVJttkqzJ8M/ylg=
Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface
- zgRPSTgloIRI5W+hyQ+YNrEVEtY=
+ 3dpW3454ctRaMbs4N3v0EGXRU8I=
Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
- Awqhm33qmJrwXRvKvbhRE4xZg0o=
+ lJ2HNthlUSKCy2f1XLeIQAbNGUg=
Modules/module.modulemap
@@ -85,70 +85,70 @@
hash2
- blI8oLcN0ZdPm0pc2n9lNNIpita4UURW5KILpu5AdDY=
+ iwQtZW6YGV6OJeJSC4HTUQmd/pIvNmNC4xfk7Y4FQ8U=
Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface
hash2
- yiwXKI7XlGp7t/ATzigzpfhcEVzDz6JL6t1XA6X22bE=
+ P24M2wpJxzM2/wbVV5+9zS9tiUPD4XuOECOk37DwG/Y=
Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftdoc
hash2
- HyZGpVLQGRMdZlfpqWkoePnWxFTa42BTcr7iYRqhaPo=
+ i/Si066rc37QoHDVTPWZzonZZT+YzMPhx4re62ENk1M=
Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftinterface
hash2
- yiwXKI7XlGp7t/ATzigzpfhcEVzDz6JL6t1XA6X22bE=
+ P24M2wpJxzM2/wbVV5+9zS9tiUPD4XuOECOk37DwG/Y=
Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftmodule
hash2
- g0jELH2E4iJ9RPAul7WAss8z0UIJNAm4TWufJnUQs5k=
+ ciOm7SOK4roZoeq4t9xoDF4k4prKjCOYUK5wnCNDf5U=
Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json
hash2
- blI8oLcN0ZdPm0pc2n9lNNIpita4UURW5KILpu5AdDY=
+ iwQtZW6YGV6OJeJSC4HTUQmd/pIvNmNC4xfk7Y4FQ8U=
Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface
hash2
- rcT7Xf6T3BN2oyE7kO5sAjMDztSBiowJwLJwCfMg/uU=
+ goppDZimpS/qxKvvUEoa44sdgi6a9+5AIrH2YAgsq1c=
Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc
hash2
- AacITjbGWT08HEuG4Ygj9LyrmmU1fxb+UfOuq/qC23o=
+ SjoWpcTyYm+jTHoVYoo2aEauvCh1lEH9Z8hsRc5EIzg=
Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface
hash2
- rcT7Xf6T3BN2oyE7kO5sAjMDztSBiowJwLJwCfMg/uU=
+ goppDZimpS/qxKvvUEoa44sdgi6a9+5AIrH2YAgsq1c=
Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
hash2
- QBpdkVFph8LHP5hYZLKUT/rP+VoezPaUfELl+oTcS7E=
+ G69T/Csg0IBOoIVRfJzsi5dJystL4WJ3LGXqbKP+pO4=
Modules/module.modulemap