Skip to content

Commit

Permalink
minor fixed and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
QSD_faris committed Feb 1, 2024
1 parent d35c324 commit 335c9a1
Show file tree
Hide file tree
Showing 16 changed files with 261 additions and 66 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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};\""
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@
</data>
<key>Modules/DeskproFramework.swiftmodule/arm64-apple-ios.abi.json</key>
<data>
E91BtpqVrjgLz3vKUxw2NIxRq0Q=
4LqHeUfyTPRwhsIOOjgSx1pG5cs=
</data>
<key>Modules/DeskproFramework.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
<data>
myZG0fAd3dcAmLlhutV5ww3e+Dk=
zLw7WRvcWLWz/MYFH/oagPiah2Q=
</data>
<key>Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftdoc</key>
<data>
7o3a/arHzGy5yP2CbTZv2FsHaaE=
v7YXLMZrElhXZiGLAHn0dipIdOs=
</data>
<key>Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftinterface</key>
<data>
myZG0fAd3dcAmLlhutV5ww3e+Dk=
zLw7WRvcWLWz/MYFH/oagPiah2Q=
</data>
<key>Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftmodule</key>
<data>
YxyHKY1IYiOBap1dLGpKdwsEI1g=
w6bhuhF7uVCX2ropGHTBnRxPhXs=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand Down Expand Up @@ -65,35 +65,35 @@
<dict>
<key>hash2</key>
<data>
blI8oLcN0ZdPm0pc2n9lNNIpita4UURW5KILpu5AdDY=
iwQtZW6YGV6OJeJSC4HTUQmd/pIvNmNC4xfk7Y4FQ8U=
</data>
</dict>
<key>Modules/DeskproFramework.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
<dict>
<key>hash2</key>
<data>
j+g+BBos0mzl/TrGUrIaXpyQSgtLEY6dEgQBr3/pv3E=
aLRlK6BVhatIQOEWoZ3vCHzv/D1Iny6NDD2Zmn5+qsA=
</data>
</dict>
<key>Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftdoc</key>
<dict>
<key>hash2</key>
<data>
nFWh7zasSRSW/yb9+KxAP9MtIfSFARN5uVpUqtuRJXs=
pSgDQ5LRl8tdVpfg/Csbk/Bh+5MviaVFuXD3mxGsAXk=
</data>
</dict>
<key>Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftinterface</key>
<dict>
<key>hash2</key>
<data>
j+g+BBos0mzl/TrGUrIaXpyQSgtLEY6dEgQBr3/pv3E=
aLRlK6BVhatIQOEWoZ3vCHzv/D1Iny6NDD2Zmn5+qsA=
</data>
</dict>
<key>Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftmodule</key>
<dict>
<key>hash2</key>
<data>
B40vWgEoqG53/pg/xL3FyVDHzkZAfIKwftgNqOAAew0=
SqrBXzillGCuKGNcDQqMPPZHVQP3XCVtJMAXxu3TYfA=
</data>
</dict>
<key>Modules/module.modulemap</key>
Expand Down
Binary file not shown.
Loading

0 comments on commit 335c9a1

Please sign in to comment.