diff --git a/Examples/SwiftExample/SwiftExample.xcodeproj/project.pbxproj b/Examples/SwiftExample/SwiftExample.xcodeproj/project.pbxproj index 241f68b..baa6312 100644 --- a/Examples/SwiftExample/SwiftExample.xcodeproj/project.pbxproj +++ b/Examples/SwiftExample/SwiftExample.xcodeproj/project.pbxproj @@ -7,13 +7,13 @@ objects = { /* Begin PBXBuildFile section */ + 5E19A4E92B71A0950056D784 /* messenger-sdk-ios in Frameworks */ = {isa = PBXBuildFile; productRef = 5E19A4E82B71A0950056D784 /* messenger-sdk-ios */; }; 5E19F5942B477AE400E37F55 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5E19F5932B477AE400E37F55 /* AppDelegate.swift */; }; 5E19F5962B477AE400E37F55 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5E19F5952B477AE400E37F55 /* SceneDelegate.swift */; }; 5E19F5982B477AE400E37F55 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5E19F5972B477AE400E37F55 /* ViewController.swift */; }; 5E19F59B2B477AE400E37F55 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5E19F5992B477AE400E37F55 /* Main.storyboard */; }; 5E19F59D2B477AE400E37F55 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5E19F59C2B477AE400E37F55 /* Assets.xcassets */; }; 5E19F5A02B477AE400E37F55 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5E19F59E2B477AE400E37F55 /* LaunchScreen.storyboard */; }; - 5ED8E9D92B64072C0007CD34 /* messenger-sdk-ios in Frameworks */ = {isa = PBXBuildFile; productRef = 5ED8E9D82B64072C0007CD34 /* messenger-sdk-ios */; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -45,7 +45,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 5ED8E9D92B64072C0007CD34 /* messenger-sdk-ios in Frameworks */, + 5E19A4E92B71A0950056D784 /* messenger-sdk-ios in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -100,7 +100,7 @@ ); name = SwiftExample; packageProductDependencies = ( - 5ED8E9D82B64072C0007CD34 /* messenger-sdk-ios */, + 5E19A4E82B71A0950056D784 /* messenger-sdk-ios */, ); productName = SwiftExample; productReference = 5E19F5902B477AE400E37F55 /* SwiftExample.app */; @@ -131,7 +131,7 @@ ); mainGroup = 5E19F5872B477AE400E37F55; packageReferences = ( - 5ED8E9D72B64072C0007CD34 /* XCRemoteSwiftPackageReference "messenger-sdk-ios" */, + 5E19A4E72B71A0950056D784 /* XCRemoteSwiftPackageReference "messenger-sdk-ios" */, ); productRefGroup = 5E19F5912B477AE400E37F55 /* Products */; projectDirPath = ""; @@ -310,21 +310,28 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 49M8DX7784; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/SwiftExample", + ); GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = SwiftExample/Info.plist; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; - INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0; + MARKETING_VERSION = 0.0.1; PRODUCT_BUNDLE_IDENTIFIER = com.SwiftExample; PRODUCT_NAME = "$(TARGET_NAME)"; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -339,21 +346,28 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 49M8DX7784; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/SwiftExample", + ); GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = SwiftExample/Info.plist; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; - INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0; + MARKETING_VERSION = 0.0.1; PRODUCT_BUNDLE_IDENTIFIER = com.SwiftExample; PRODUCT_NAME = "$(TARGET_NAME)"; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -384,20 +398,20 @@ /* End XCConfigurationList section */ /* Begin XCRemoteSwiftPackageReference section */ - 5ED8E9D72B64072C0007CD34 /* XCRemoteSwiftPackageReference "messenger-sdk-ios" */ = { + 5E19A4E72B71A0950056D784 /* XCRemoteSwiftPackageReference "messenger-sdk-ios" */ = { isa = XCRemoteSwiftPackageReference; repositoryURL = "https://github.com/deskpro/messenger-sdk-ios.git"; requirement = { kind = upToNextMajorVersion; - minimumVersion = 0.0.5; + minimumVersion = 0.0.7; }; }; /* End XCRemoteSwiftPackageReference section */ /* Begin XCSwiftPackageProductDependency section */ - 5ED8E9D82B64072C0007CD34 /* messenger-sdk-ios */ = { + 5E19A4E82B71A0950056D784 /* messenger-sdk-ios */ = { isa = XCSwiftPackageProductDependency; - package = 5ED8E9D72B64072C0007CD34 /* XCRemoteSwiftPackageReference "messenger-sdk-ios" */; + package = 5E19A4E72B71A0950056D784 /* XCRemoteSwiftPackageReference "messenger-sdk-ios" */; productName = "messenger-sdk-ios"; }; /* End XCSwiftPackageProductDependency section */ diff --git a/Examples/SwiftExample/SwiftExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Examples/SwiftExample/SwiftExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index e293daa..6e18c34 100644 --- a/Examples/SwiftExample/SwiftExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Examples/SwiftExample/SwiftExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -5,8 +5,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/deskpro/messenger-sdk-ios.git", "state" : { - "revision" : "819692434d517e650d8c0b779760b6d5b764a45e", - "version" : "0.0.5" + "revision" : "0638f13a32f5781145a3a18dc553e9f181aafe85", + "version" : "0.0.7" } } ], diff --git a/Examples/SwiftExample/SwiftExample/AppDelegate.swift b/Examples/SwiftExample/SwiftExample/AppDelegate.swift index f7f9e10..0c70830 100644 --- a/Examples/SwiftExample/SwiftExample/AppDelegate.swift +++ b/Examples/SwiftExample/SwiftExample/AppDelegate.swift @@ -6,6 +6,7 @@ // import UIKit +import UserNotifications @main class AppDelegate: UIResponder, UIApplicationDelegate { @@ -17,7 +18,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate { return true } - // MARK: UISceneSession Lifecycle + func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { + let hexString = deviceToken.map { String(format: "%02.2hhx", $0) }.joined() + print("Device token \(hexString)") + } func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { // Called when a new scene session is being created. @@ -25,12 +29,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) } - func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { - // Called when the user discards a scene session. - // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. - // Use this method to release any resources that were specific to the discarded scenes, as they will not return. - } - + } diff --git a/Examples/SwiftExample/SwiftExample/Base.lproj/Main.storyboard b/Examples/SwiftExample/SwiftExample/Base.lproj/Main.storyboard index e205369..f874cee 100644 --- a/Examples/SwiftExample/SwiftExample/Base.lproj/Main.storyboard +++ b/Examples/SwiftExample/SwiftExample/Base.lproj/Main.storyboard @@ -1,9 +1,9 @@ - + - + @@ -17,48 +17,247 @@ - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/Info.plist b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/Info.plist deleted file mode 100644 index 4efd359..0000000 --- a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/Info.plist +++ /dev/null @@ -1,44 +0,0 @@ - - - - - AvailableLibraries - - - BinaryPath - DeskproFramework.framework/DeskproFramework - LibraryIdentifier - ios-arm64 - LibraryPath - DeskproFramework.framework - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - - - BinaryPath - DeskproFramework.framework/DeskproFramework - LibraryIdentifier - ios-arm64_x86_64-simulator - LibraryPath - DeskproFramework.framework - SupportedArchitectures - - arm64 - x86_64 - - SupportedPlatform - ios - SupportedPlatformVariant - simulator - - - CFBundlePackageType - XFWK - XCFrameworkFormatVersion - 1.0 - - diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/DeskproFramework b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/DeskproFramework deleted file mode 100755 index b81b6c3..0000000 Binary files a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/DeskproFramework and /dev/null differ diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Headers/DeskproFramework-Swift.h b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Headers/DeskproFramework-Swift.h deleted file mode 100644 index 2aa1a20..0000000 --- a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Headers/DeskproFramework-Swift.h +++ /dev/null @@ -1,312 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Generated by Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5) -#ifndef DESKPROFRAMEWORK_SWIFT_H -#define DESKPROFRAMEWORK_SWIFT_H -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgcc-compat" - -#if !defined(__has_include) -# define __has_include(x) 0 -#endif -#if !defined(__has_attribute) -# define __has_attribute(x) 0 -#endif -#if !defined(__has_feature) -# define __has_feature(x) 0 -#endif -#if !defined(__has_warning) -# define __has_warning(x) 0 -#endif - -#if __has_include() -# include -#endif - -#pragma clang diagnostic ignored "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#if defined(__arm64e__) && __has_include() -# include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -# ifndef __ptrauth_swift_value_witness_function_pointer -# define __ptrauth_swift_value_witness_function_pointer(x) -# endif -# ifndef __ptrauth_swift_class_method_pointer -# define __ptrauth_swift_class_method_pointer(x) -# endif -#pragma clang diagnostic pop -#endif -#endif - -#if !defined(SWIFT_TYPEDEFS) -# define SWIFT_TYPEDEFS 1 -# if __has_include() -# include -# elif !defined(__cplusplus) -typedef uint_least16_t char16_t; -typedef uint_least32_t char32_t; -# endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); -#endif - -#if !defined(SWIFT_PASTE) -# define SWIFT_PASTE_HELPER(x, y) x##y -# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) -#endif -#if !defined(SWIFT_METATYPE) -# define SWIFT_METATYPE(X) Class -#endif -#if !defined(SWIFT_CLASS_PROPERTY) -# if __has_feature(objc_class_property) -# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -# else -# define SWIFT_CLASS_PROPERTY(...) -# endif -#endif -#if !defined(SWIFT_RUNTIME_NAME) -# if __has_attribute(objc_runtime_name) -# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -# else -# define SWIFT_RUNTIME_NAME(X) -# endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -# if __has_attribute(swift_name) -# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -# else -# define SWIFT_COMPILE_NAME(X) -# endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -# if __has_attribute(objc_method_family) -# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -# else -# define SWIFT_METHOD_FAMILY(X) -# endif -#endif -#if !defined(SWIFT_NOESCAPE) -# if __has_attribute(noescape) -# define SWIFT_NOESCAPE __attribute__((noescape)) -# else -# define SWIFT_NOESCAPE -# endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -# if __has_attribute(ns_consumed) -# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -# else -# define SWIFT_RELEASES_ARGUMENT -# endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -# if __has_attribute(warn_unused_result) -# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -# else -# define SWIFT_WARN_UNUSED_RESULT -# endif -#endif -#if !defined(SWIFT_NORETURN) -# if __has_attribute(noreturn) -# define SWIFT_NORETURN __attribute__((noreturn)) -# else -# define SWIFT_NORETURN -# endif -#endif -#if !defined(SWIFT_CLASS_EXTRA) -# define SWIFT_CLASS_EXTRA -#endif -#if !defined(SWIFT_PROTOCOL_EXTRA) -# define SWIFT_PROTOCOL_EXTRA -#endif -#if !defined(SWIFT_ENUM_EXTRA) -# define SWIFT_ENUM_EXTRA -#endif -#if !defined(SWIFT_CLASS) -# if __has_attribute(objc_subclassing_restricted) -# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# else -# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# endif -#endif -#if !defined(SWIFT_RESILIENT_CLASS) -# if __has_attribute(objc_class_stub) -# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) -# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) -# else -# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) -# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) -# endif -#endif -#if !defined(SWIFT_PROTOCOL) -# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#endif -#if !defined(SWIFT_EXTENSION) -# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) -#endif -#if !defined(OBJC_DESIGNATED_INITIALIZER) -# if __has_attribute(objc_designated_initializer) -# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) -# else -# define OBJC_DESIGNATED_INITIALIZER -# endif -#endif -#if !defined(SWIFT_ENUM_ATTR) -# if __has_attribute(enum_extensibility) -# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) -# else -# define SWIFT_ENUM_ATTR(_extensibility) -# endif -#endif -#if !defined(SWIFT_ENUM) -# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -# if __has_feature(generalized_swift_name) -# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -# else -# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) -# endif -#endif -#if !defined(SWIFT_UNAVAILABLE) -# define SWIFT_UNAVAILABLE __attribute__((unavailable)) -#endif -#if !defined(SWIFT_UNAVAILABLE_MSG) -# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) -#endif -#if !defined(SWIFT_AVAILABILITY) -# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) -#endif -#if !defined(SWIFT_WEAK_IMPORT) -# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) -#endif -#if !defined(SWIFT_DEPRECATED) -# define SWIFT_DEPRECATED __attribute__((deprecated)) -#endif -#if !defined(SWIFT_DEPRECATED_MSG) -# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) -#endif -#if !defined(SWIFT_DEPRECATED_OBJC) -# if __has_feature(attribute_diagnose_if_objc) -# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) -# else -# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -# endif -#endif -#if defined(__OBJC__) -#if !defined(IBSegueAction) -# define IBSegueAction -#endif -#endif -#if !defined(SWIFT_EXTERN) -# if defined(__cplusplus) -# define SWIFT_EXTERN extern "C" -# else -# define SWIFT_EXTERN extern -# endif -#endif -#if !defined(SWIFT_CALL) -# define SWIFT_CALL __attribute__((swiftcall)) -#endif -#if !defined(SWIFT_INDIRECT_RESULT) -# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -# define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -# define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -# define SWIFT_NOEXCEPT noexcept -#else -# define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -# if __has_attribute(always_inline) -# if __has_attribute(nodebug) -# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug)) -# else -# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -# endif -# else -# define SWIFT_C_INLINE_THUNK inline -# endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -# define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -#endif - -#endif -#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" -#pragma clang diagnostic ignored "-Wduplicate-method-arg" -#if __has_warning("-Wpragma-clang-attribute") -# pragma clang diagnostic ignored "-Wpragma-clang-attribute" -#endif -#pragma clang diagnostic ignored "-Wunknown-pragmas" -#pragma clang diagnostic ignored "-Wnullability" -#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" - -#if __has_attribute(external_source_symbol) -# pragma push_macro("any") -# undef any -# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="DeskproFramework",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) -# pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -#endif -#if __has_attribute(external_source_symbol) -# pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#else -#error unsupported Swift architecture -#endif diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Headers/DeskproFramework.h b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Headers/DeskproFramework.h deleted file mode 100644 index b702304..0000000 --- a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Headers/DeskproFramework.h +++ /dev/null @@ -1,18 +0,0 @@ -// -// DeskproFramework.h -// DeskproFramework -// -// Created by QSD BiH on 4. 1. 2024.. -// - -#import - -//! Project version number for DeskproFramework. -FOUNDATION_EXPORT double DeskproFrameworkVersionNumber; - -//! Project version string for DeskproFramework. -FOUNDATION_EXPORT const unsigned char DeskproFrameworkVersionString[]; - -// In this header, you should import all the public headers of your framework using statements like #import - - diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Info.plist b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Info.plist deleted file mode 100644 index b8caf79..0000000 Binary files a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Info.plist and /dev/null differ diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.abi.json b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.abi.json deleted file mode 100644 index c9a311c..0000000 --- a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.abi.json +++ /dev/null @@ -1,1391 +0,0 @@ -{ - "ABIRoot": { - "kind": "Root", - "name": "TopLevel", - "printedName": "TopLevel", - "children": [ - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "DeskPro", - "printedName": "DeskPro", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(messengerConfig:containingViewController:)", - "children": [ - { - "kind": "TypeNominal", - "name": "DeskPro", - "printedName": "DeskproFramework.DeskPro", - "usr": "s:16DeskproFramework7DeskProC" - }, - { - "kind": "TypeNominal", - "name": "MessengerConfig", - "printedName": "DeskproFramework.MessengerConfig", - "usr": "s:16DeskproFramework15MessengerConfigC" - }, - { - "kind": "TypeNominal", - "name": "UIViewController", - "printedName": "UIKit.UIViewController", - "usr": "c:objc(cs)UIViewController" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework7DeskProC15messengerConfig24containingViewControllerAcA09MessengerF0C_So06UIViewI0Ctcfc", - "mangledName": "$s16DeskproFramework7DeskProC15messengerConfig24containingViewControllerAcA09MessengerF0C_So06UIViewI0Ctcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "test", - "printedName": "test()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC4testSSyF", - "mangledName": "$s16DeskproFramework7DeskProC4testSSyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "loginUser", - "printedName": "loginUser(user:deskProCallback:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "User", - "printedName": "DeskproFramework.User", - "usr": "s:16DeskproFramework4UserC" - }, - { - "kind": "TypeNominal", - "name": "DeskProStatusCallback", - "printedName": "DeskproFramework.DeskProStatusCallback", - "usr": "s:16DeskproFramework21DeskProStatusCallbackP" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC9loginUser4user04deskD8CallbackyAA0F0C_AA0cd6StatusI0_ptF", - "mangledName": "$s16DeskproFramework7DeskProC9loginUser4user04deskD8CallbackyAA0F0C_AA0cd6StatusI0_ptF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "updateUser", - "printedName": "updateUser(user:deskProCallback:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "User", - "printedName": "DeskproFramework.User", - "usr": "s:16DeskproFramework4UserC" - }, - { - "kind": "TypeNominal", - "name": "DeskProStatusCallback", - "printedName": "DeskproFramework.DeskProStatusCallback", - "usr": "s:16DeskproFramework21DeskProStatusCallbackP" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC10updateUser4user04deskD8CallbackyAA0F0C_AA0cd6StatusI0_ptF", - "mangledName": "$s16DeskproFramework7DeskProC10updateUser4user04deskD8CallbackyAA0F0C_AA0cd6StatusI0_ptF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "logout", - "printedName": "logout()", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC6logoutSbyF", - "mangledName": "$s16DeskproFramework7DeskProC6logoutSbyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "setPushRegistrationToken", - "printedName": "setPushRegistrationToken(deviceToken:)", - "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:16DeskproFramework7DeskProC24setPushRegistrationToken06deviceH0SbSS_tF", - "mangledName": "$s16DeskproFramework7DeskProC24setPushRegistrationToken06deviceH0SbSS_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "isDeskProPushNotification", - "printedName": "isDeskProPushNotification(pushNotification:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "PushNotificationData", - "printedName": "DeskproFramework.PushNotificationData", - "usr": "s:16DeskproFramework20PushNotificationDataC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC02iscD16PushNotification04pushG0SbAA0fG4DataC_tF", - "mangledName": "$s16DeskproFramework7DeskProC02iscD16PushNotification04pushG0SbAA0fG4DataC_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "handlePushNotification", - "printedName": "handlePushNotification(pushNotification:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "PushNotificationData", - "printedName": "DeskproFramework.PushNotificationData", - "usr": "s:16DeskproFramework20PushNotificationDataC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC22handlePushNotification04pushG0yAA0fG4DataC_tF", - "mangledName": "$s16DeskproFramework7DeskProC22handlePushNotification04pushG0yAA0fG4DataC_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "present", - "printedName": "present()", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC7presentAA14PresentBuilderCyF", - "mangledName": "$s16DeskproFramework7DeskProC7presentAA14PresentBuilderCyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "close", - "printedName": "close()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC5closeyyF", - "mangledName": "$s16DeskproFramework7DeskProC5closeyyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "getUnreadConversationCount", - "printedName": "getUnreadConversationCount()", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC26getUnreadConversationCountSiyF", - "mangledName": "$s16DeskproFramework7DeskProC26getUnreadConversationCountSiyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "enableLogging", - "printedName": "enableLogging()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC13enableLoggingyyF", - "mangledName": "$s16DeskproFramework7DeskProC13enableLoggingyyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework7DeskProC", - "mangledName": "$s16DeskproFramework7DeskProC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "User", - "printedName": "User", - "declKind": "Class", - "usr": "s:16DeskproFramework4UserC", - "mangledName": "$s16DeskproFramework4UserC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "hasMissingDesignatedInitializers": true - }, - { - "kind": "TypeDecl", - "name": "PushNotificationData", - "printedName": "PushNotificationData", - "declKind": "Class", - "usr": "s:16DeskproFramework20PushNotificationDataC", - "mangledName": "$s16DeskproFramework20PushNotificationDataC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "hasMissingDesignatedInitializers": true - }, - { - "kind": "TypeDecl", - "name": "DeskProError", - "printedName": "DeskProError", - "declKind": "Class", - "usr": "s:16DeskproFramework12DeskProErrorC", - "mangledName": "$s16DeskproFramework12DeskProErrorC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "hasMissingDesignatedInitializers": true - }, - { - "kind": "TypeDecl", - "name": "DeskProStatusCallback", - "printedName": "DeskProStatusCallback", - "children": [ - { - "kind": "Function", - "name": "onFailure", - "printedName": "onFailure(deskProError:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "DeskProError", - "printedName": "DeskproFramework.DeskProError", - "usr": "s:16DeskproFramework12DeskProErrorC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework21DeskProStatusCallbackP9onFailure04deskD5ErroryAA0cdJ0C_tF", - "mangledName": "$s16DeskproFramework21DeskProStatusCallbackP9onFailure04deskD5ErroryAA0cdJ0C_tF", - "moduleName": "DeskproFramework", - "genericSig": "<τ_0_0 where τ_0_0 : DeskproFramework.DeskProStatusCallback>", - "sugared_genericSig": "", - "protocolReq": true, - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "onSuccess", - "printedName": "onSuccess()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework21DeskProStatusCallbackP9onSuccessyyF", - "mangledName": "$s16DeskproFramework21DeskProStatusCallbackP9onSuccessyyF", - "moduleName": "DeskproFramework", - "genericSig": "<τ_0_0 where τ_0_0 : DeskproFramework.DeskProStatusCallback>", - "sugared_genericSig": "", - "protocolReq": true, - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Protocol", - "usr": "s:16DeskproFramework21DeskProStatusCallbackP", - "mangledName": "$s16DeskproFramework21DeskProStatusCallbackP", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "PresentBuilder", - "printedName": "PresentBuilder", - "children": [ - { - "kind": "Var", - "name": "url", - "printedName": "url", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvp", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvg", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvs", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvM", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(url:containingViewController:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "UIKit.UIViewController?", - "children": [ - { - "kind": "TypeNominal", - "name": "UIViewController", - "printedName": "UIKit.UIViewController", - "usr": "c:objc(cs)UIViewController" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework14PresentBuilderC3url24containingViewControllerACSS_So06UIViewH0CSgtcfc", - "mangledName": "$s16DeskproFramework14PresentBuilderC3url24containingViewControllerACSS_So06UIViewH0CSgtcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "chatHistory", - "printedName": "chatHistory(chatId:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC11chatHistory0E2IdACSi_tF", - "mangledName": "$s16DeskproFramework14PresentBuilderC11chatHistory0E2IdACSi_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "article", - "printedName": "article(articleId:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC7article0E2IdACSi_tF", - "mangledName": "$s16DeskproFramework14PresentBuilderC7article0E2IdACSi_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "comments", - "printedName": "comments()", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC8commentsACyF", - "mangledName": "$s16DeskproFramework14PresentBuilderC8commentsACyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "show", - "printedName": "show()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC4showyyF", - "mangledName": "$s16DeskproFramework14PresentBuilderC4showyyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework14PresentBuilderC", - "mangledName": "$s16DeskproFramework14PresentBuilderC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "WebKit", - "printedName": "WebKit", - "declKind": "Import", - "moduleName": "DeskproFramework" - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "MessengerConfig", - "printedName": "MessengerConfig", - "children": [ - { - "kind": "Var", - "name": "appUrl", - "printedName": "appUrl", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvp", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvg", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvs", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvM", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "appId", - "printedName": "appId", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvp", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvg", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvs", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvM", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "appKey", - "printedName": "appKey", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvp", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvg", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvs", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvM", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(appUrl:appId:appKey:)", - "children": [ - { - "kind": "TypeNominal", - "name": "MessengerConfig", - "printedName": "DeskproFramework.MessengerConfig", - "usr": "s:16DeskproFramework15MessengerConfigC" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrl0E2Id0E3KeyACSS_S2SSgtcfc", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrl0E2Id0E3KeyACSS_S2SSgtcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework15MessengerConfigC", - "mangledName": "$s16DeskproFramework15MessengerConfigC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "TypeDecl", - "name": "UIViewController", - "printedName": "UIViewController", - "children": [ - { - "kind": "Function", - "name": "presentMessenger", - "printedName": "presentMessenger(urlString:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Func", - "usr": "s:So16UIViewControllerC16DeskproFrameworkE16presentMessenger9urlStringySS_tF", - "mangledName": "$sSo16UIViewControllerC16DeskproFrameworkE16presentMessenger9urlStringySS_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "Custom" - ], - "isFromExtension": true, - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "c:objc(cs)UIViewController", - "moduleName": "UIKit", - "isOpen": true, - "intro_iOS": "2.0", - "objc_name": "UIViewController", - "declAttributes": [ - "Available", - "ObjC", - "NonSendable", - "Custom", - "Dynamic" - ], - "superclassUsr": "c:objc(cs)UIResponder", - "isExternal": true, - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "UIKit.UIResponder", - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "_KeyValueCodingAndObservingPublishing", - "printedName": "_KeyValueCodingAndObservingPublishing", - "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP", - "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP" - }, - { - "kind": "Conformance", - "name": "_KeyValueCodingAndObserving", - "printedName": "_KeyValueCodingAndObserving", - "usr": "s:10Foundation27_KeyValueCodingAndObservingP", - "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "UITraitChangeObservable", - "printedName": "UITraitChangeObservable", - "usr": "s:5UIKit23UITraitChangeObservableP", - "mangledName": "$s5UIKit23UITraitChangeObservableP" - } - ] - } - ], - "json_format_version": 8 - }, - "ConstValues": [ - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/Deskpro.swift", - "kind": "StringLiteral", - "offset": 522, - "length": 29, - "value": "\"Hello world from Messenger!\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/Deskpro.swift", - "kind": "BooleanLiteral", - "offset": 895, - "length": 4, - "value": "true" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/Deskpro.swift", - "kind": "BooleanLiteral", - "offset": 1031, - "length": 4, - "value": "true" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/Deskpro.swift", - "kind": "BooleanLiteral", - "offset": 1187, - "length": 4, - "value": "true" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/Deskpro.swift", - "kind": "IntegerLiteral", - "offset": 1732, - "length": 1, - "value": "0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 261, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 561, - "length": 25, - "value": "\"\/chat_history\/\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 585, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 695, - "length": 23, - "value": "\"\/article\/\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 717, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 814, - "length": 11, - "value": "\"\/comments\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 874, - "length": 13, - "value": "\"iosListener\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 1125, - "length": 18, - "value": "\"Url not provided\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 1505, - "length": 3, - "value": "0.5" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 1958, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 2059, - "length": 4, - "value": "\"OK\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "BooleanLiteral", - "offset": 2131, - "length": 4, - "value": "true" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 2428, - "length": 53, - "value": "\"WKWebView has received a message: `\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 2479, - "length": 1, - "value": "\"`\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "BooleanLiteral", - "offset": 2746, - "length": 4, - "value": "true" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 2949, - "length": 17, - "value": "\"Error: \"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 2965, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 3034, - "length": 19, - "value": "\"Result: \"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 3052, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "BooleanLiteral", - "offset": 3371, - "length": 4, - "value": "true" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 3454, - "length": 14, - "value": "\"closeWebView\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 3454, - "length": 14, - "value": "\"closeWebView\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 3535, - "length": 1338, - "value": "\" window.DESKPRO_MESSENGER_CONNECTION = {\n parentMethods: {\n ready: async () => {\n \/\/ Note how childMethods.init is called in response to the ready event.\n const data = await window.DESKPRO_MESSENGER_CONNECTION.childMethods?.init(\"B0ED0B34-8507-4248-8738-0B0D80A6F7E9\", {\n showLauncherButton: false,\n user: window.DESKPRO_MESSENGER_OPTIONS?.userInfo,\n launcherButtonConfig: undefined, \/\/ Optional,\n messengerAppConfig: undefined,\n parentViewHeight: \"fullscreen\",\n }); \/\/new argument here\n\n if (data) {\n const { side, offsetBottom, offsetSide, width, height } = data;\n \/\/ setViewportPosition({ side, offsetBottom, offsetSide });\n \/\/ setViewportSize({ width, height });\n }\n },\n open: async () => {\n \/\/ setViewportSize({ width, height });\n },\n close: async () => {\n window.webkit.messageHandlers.iosListener.postMessage(\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 4527, - "length": 34, - "value": "\"\") \/\/triggers `didReceive message`\n \/\/alert('close.') \/\/triggers `runJavaScriptAlertPanelWithMessage`\n },\n getViewHeight: async () => {\n return 'fullscreen'\n },\n },\n \/\/ This object will be assigned by the messenger app on ready, so you can call the childMethods from the parent.\n childMethods: undefined,\n };\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 4916, - "length": 202, - "value": "\"window.DESKPRO_MESSENGER_CONNECTION.childMethods.open('B0ED0B34-8507-4248-8738-0B0D80A6F7E9', {\n parentViewHeight: 'fullscreen',\n showLauncherButton: false,\n });\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 5162, - "length": 203, - "value": "\"window.DESKPRO_MESSENGER_CONNECTION.childMethods.close('B0ED0B34-8507-4248-8738-0B0D80A6F7E9', {\n parentViewHeight: 'fullscreen',\n showLauncherButton: false,\n });\"" - } - ] -} \ No newline at end of file diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.private.swiftinterface b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.private.swiftinterface deleted file mode 100644 index 5a40b5a..0000000 --- a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.private.swiftinterface +++ /dev/null @@ -1,59 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5) -// swift-module-flags: -target arm64-apple-ios14 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name DeskproFramework -// swift-module-flags-ignorable: -enable-bare-slash-regex -@_exported import DeskproFramework -import Foundation -import Swift -import UIKit -import WebKit -import _Concurrency -import _StringProcessing -import _SwiftConcurrencyShims -public class DeskPro { - public init(messengerConfig: DeskproFramework.MessengerConfig, containingViewController: UIKit.UIViewController) - public func test() -> Swift.String - public func loginUser(user: DeskproFramework.User, deskProCallback: any DeskproFramework.DeskProStatusCallback) - public func updateUser(user: DeskproFramework.User, deskProCallback: any DeskproFramework.DeskProStatusCallback) - public func logout() -> Swift.Bool - public func setPushRegistrationToken(deviceToken: Swift.String) -> Swift.Bool - public func isDeskProPushNotification(pushNotification: DeskproFramework.PushNotificationData) -> Swift.Bool - public func handlePushNotification(pushNotification: DeskproFramework.PushNotificationData) - public func present() -> DeskproFramework.PresentBuilder - public func close() - public func getUnreadConversationCount() -> Swift.Int - public func enableLogging() - @objc deinit -} -@_hasMissingDesignatedInitializers public class User { - @objc deinit -} -@_hasMissingDesignatedInitializers public class PushNotificationData { - @objc deinit -} -@_hasMissingDesignatedInitializers public class DeskProError { - @objc deinit -} -public protocol DeskProStatusCallback { - func onFailure(deskProError: DeskproFramework.DeskProError) - func onSuccess() -} -public class PresentBuilder { - public var url: Swift.String - public init(url: Swift.String, containingViewController: UIKit.UIViewController?) - public func chatHistory(chatId: Swift.Int) -> DeskproFramework.PresentBuilder - public func article(articleId: Swift.Int) -> DeskproFramework.PresentBuilder - public func comments() -> DeskproFramework.PresentBuilder - public func show() - @objc deinit -} -extension UIKit.UIViewController { - @_Concurrency.MainActor(unsafe) public func presentMessenger(urlString: Swift.String) -} -public class MessengerConfig { - public var appUrl: Swift.String - public var appId: Swift.String - public var appKey: Swift.String? - public init(appUrl: Swift.String, appId: Swift.String, appKey: Swift.String? = nil) - @objc deinit -} diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftdoc b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftdoc deleted file mode 100644 index 205dc8e..0000000 Binary files a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftdoc and /dev/null differ diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftinterface b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftinterface deleted file mode 100644 index 5a40b5a..0000000 --- a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftinterface +++ /dev/null @@ -1,59 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5) -// swift-module-flags: -target arm64-apple-ios14 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name DeskproFramework -// swift-module-flags-ignorable: -enable-bare-slash-regex -@_exported import DeskproFramework -import Foundation -import Swift -import UIKit -import WebKit -import _Concurrency -import _StringProcessing -import _SwiftConcurrencyShims -public class DeskPro { - public init(messengerConfig: DeskproFramework.MessengerConfig, containingViewController: UIKit.UIViewController) - public func test() -> Swift.String - public func loginUser(user: DeskproFramework.User, deskProCallback: any DeskproFramework.DeskProStatusCallback) - public func updateUser(user: DeskproFramework.User, deskProCallback: any DeskproFramework.DeskProStatusCallback) - public func logout() -> Swift.Bool - public func setPushRegistrationToken(deviceToken: Swift.String) -> Swift.Bool - public func isDeskProPushNotification(pushNotification: DeskproFramework.PushNotificationData) -> Swift.Bool - public func handlePushNotification(pushNotification: DeskproFramework.PushNotificationData) - public func present() -> DeskproFramework.PresentBuilder - public func close() - public func getUnreadConversationCount() -> Swift.Int - public func enableLogging() - @objc deinit -} -@_hasMissingDesignatedInitializers public class User { - @objc deinit -} -@_hasMissingDesignatedInitializers public class PushNotificationData { - @objc deinit -} -@_hasMissingDesignatedInitializers public class DeskProError { - @objc deinit -} -public protocol DeskProStatusCallback { - func onFailure(deskProError: DeskproFramework.DeskProError) - func onSuccess() -} -public class PresentBuilder { - public var url: Swift.String - public init(url: Swift.String, containingViewController: UIKit.UIViewController?) - public func chatHistory(chatId: Swift.Int) -> DeskproFramework.PresentBuilder - public func article(articleId: Swift.Int) -> DeskproFramework.PresentBuilder - public func comments() -> DeskproFramework.PresentBuilder - public func show() - @objc deinit -} -extension UIKit.UIViewController { - @_Concurrency.MainActor(unsafe) public func presentMessenger(urlString: Swift.String) -} -public class MessengerConfig { - public var appUrl: Swift.String - public var appId: Swift.String - public var appKey: Swift.String? - public init(appUrl: Swift.String, appId: Swift.String, appKey: Swift.String? = nil) - @objc deinit -} diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/module.modulemap b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/module.modulemap deleted file mode 100644 index 5b7ece8..0000000 --- a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/module.modulemap +++ /dev/null @@ -1,11 +0,0 @@ -framework module DeskproFramework { - umbrella header "DeskproFramework.h" - export * - - module * { export * } -} - -module DeskproFramework.Swift { - header "DeskproFramework-Swift.h" - requires objc -} diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/_CodeSignature/CodeResources b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/_CodeSignature/CodeResources deleted file mode 100644 index cb4616d..0000000 --- a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/_CodeSignature/CodeResources +++ /dev/null @@ -1,190 +0,0 @@ - - - - - files - - Headers/DeskproFramework-Swift.h - - T8BAuqSEYAoYwqjWptQZLJiNk/Y= - - Headers/DeskproFramework.h - - RMHXevNoitOoYp5STBb9z9/Mph4= - - Info.plist - - SBPZQU7J8+vpUwE6Y4qA6iJHNM8= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.abi.json - - zcpUO/U/bocPbAreiZmrssxZ2tQ= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.private.swiftinterface - - On/Ods5eTcijUAbdv0daHH/uCJs= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftdoc - - RW2JxkZUK1RNlCW9T4nVG8oCYfI= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftinterface - - On/Ods5eTcijUAbdv0daHH/uCJs= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftmodule - - 79WvwvXbcTFyTOsENWd/YM5UEhk= - - Modules/module.modulemap - - UrjJs2fjHqPQfNwjDfgobo6yrvU= - - - files2 - - Headers/DeskproFramework-Swift.h - - hash2 - - 1f3Il1YVAy1yompNfpCWOXOK50UFUG3bR3Oyd3rbrKs= - - - Headers/DeskproFramework.h - - hash2 - - rsCWhjvHPX2MONH0KfAuJwQGSOvtuzZlQxh6oOK9dR8= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.abi.json - - hash2 - - ja3x80tCCjBHpQH5Dgzb0/+LgI6durODt4BXQ0bTUTc= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.private.swiftinterface - - hash2 - - UTA+YjaBfCToqBLfuVpTkdi5dkOjPtEOvSx7lWY9jaI= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftdoc - - hash2 - - U/FzZfbI62tC1pJVn+Nu/HbkUSPT3VltyyTc8AG8nfM= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftinterface - - hash2 - - UTA+YjaBfCToqBLfuVpTkdi5dkOjPtEOvSx7lWY9jaI= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftmodule - - hash2 - - zuXG4tKt0VJvckd9KuBemTf6YMeNjtfB1VWAJGhCbEE= - - - Modules/module.modulemap - - hash2 - - arP6CHKjOrUMNqNJLAbtZJrD+6yCt5eCm461JEwfdgE= - - - - rules - - ^.* - - ^.*\.lproj/ - - optional - - weight - 1000 - - ^.*\.lproj/locversion.plist$ - - omit - - weight - 1100 - - ^Base\.lproj/ - - weight - 1010 - - ^version.plist$ - - - rules2 - - .*\.dSYM($|/) - - weight - 11 - - ^(.*/)?\.DS_Store$ - - omit - - weight - 2000 - - ^.* - - ^.*\.lproj/ - - optional - - weight - 1000 - - ^.*\.lproj/locversion.plist$ - - omit - - weight - 1100 - - ^Base\.lproj/ - - weight - 1010 - - ^Info\.plist$ - - omit - - weight - 20 - - ^PkgInfo$ - - omit - - weight - 20 - - ^embedded\.provisionprofile$ - - weight - 20 - - ^version\.plist$ - - weight - 20 - - - - diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/DeskproFramework b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/DeskproFramework deleted file mode 100755 index 48bfc2e..0000000 Binary files a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/DeskproFramework and /dev/null differ diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Headers/DeskproFramework-Swift.h b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Headers/DeskproFramework-Swift.h deleted file mode 100644 index 916a202..0000000 --- a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Headers/DeskproFramework-Swift.h +++ /dev/null @@ -1,620 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Generated by Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5) -#ifndef DESKPROFRAMEWORK_SWIFT_H -#define DESKPROFRAMEWORK_SWIFT_H -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgcc-compat" - -#if !defined(__has_include) -# define __has_include(x) 0 -#endif -#if !defined(__has_attribute) -# define __has_attribute(x) 0 -#endif -#if !defined(__has_feature) -# define __has_feature(x) 0 -#endif -#if !defined(__has_warning) -# define __has_warning(x) 0 -#endif - -#if __has_include() -# include -#endif - -#pragma clang diagnostic ignored "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#if defined(__arm64e__) && __has_include() -# include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -# ifndef __ptrauth_swift_value_witness_function_pointer -# define __ptrauth_swift_value_witness_function_pointer(x) -# endif -# ifndef __ptrauth_swift_class_method_pointer -# define __ptrauth_swift_class_method_pointer(x) -# endif -#pragma clang diagnostic pop -#endif -#endif - -#if !defined(SWIFT_TYPEDEFS) -# define SWIFT_TYPEDEFS 1 -# if __has_include() -# include -# elif !defined(__cplusplus) -typedef uint_least16_t char16_t; -typedef uint_least32_t char32_t; -# endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); -#endif - -#if !defined(SWIFT_PASTE) -# define SWIFT_PASTE_HELPER(x, y) x##y -# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) -#endif -#if !defined(SWIFT_METATYPE) -# define SWIFT_METATYPE(X) Class -#endif -#if !defined(SWIFT_CLASS_PROPERTY) -# if __has_feature(objc_class_property) -# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -# else -# define SWIFT_CLASS_PROPERTY(...) -# endif -#endif -#if !defined(SWIFT_RUNTIME_NAME) -# if __has_attribute(objc_runtime_name) -# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -# else -# define SWIFT_RUNTIME_NAME(X) -# endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -# if __has_attribute(swift_name) -# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -# else -# define SWIFT_COMPILE_NAME(X) -# endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -# if __has_attribute(objc_method_family) -# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -# else -# define SWIFT_METHOD_FAMILY(X) -# endif -#endif -#if !defined(SWIFT_NOESCAPE) -# if __has_attribute(noescape) -# define SWIFT_NOESCAPE __attribute__((noescape)) -# else -# define SWIFT_NOESCAPE -# endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -# if __has_attribute(ns_consumed) -# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -# else -# define SWIFT_RELEASES_ARGUMENT -# endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -# if __has_attribute(warn_unused_result) -# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -# else -# define SWIFT_WARN_UNUSED_RESULT -# endif -#endif -#if !defined(SWIFT_NORETURN) -# if __has_attribute(noreturn) -# define SWIFT_NORETURN __attribute__((noreturn)) -# else -# define SWIFT_NORETURN -# endif -#endif -#if !defined(SWIFT_CLASS_EXTRA) -# define SWIFT_CLASS_EXTRA -#endif -#if !defined(SWIFT_PROTOCOL_EXTRA) -# define SWIFT_PROTOCOL_EXTRA -#endif -#if !defined(SWIFT_ENUM_EXTRA) -# define SWIFT_ENUM_EXTRA -#endif -#if !defined(SWIFT_CLASS) -# if __has_attribute(objc_subclassing_restricted) -# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# else -# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# endif -#endif -#if !defined(SWIFT_RESILIENT_CLASS) -# if __has_attribute(objc_class_stub) -# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) -# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) -# else -# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) -# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) -# endif -#endif -#if !defined(SWIFT_PROTOCOL) -# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#endif -#if !defined(SWIFT_EXTENSION) -# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) -#endif -#if !defined(OBJC_DESIGNATED_INITIALIZER) -# if __has_attribute(objc_designated_initializer) -# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) -# else -# define OBJC_DESIGNATED_INITIALIZER -# endif -#endif -#if !defined(SWIFT_ENUM_ATTR) -# if __has_attribute(enum_extensibility) -# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) -# else -# define SWIFT_ENUM_ATTR(_extensibility) -# endif -#endif -#if !defined(SWIFT_ENUM) -# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -# if __has_feature(generalized_swift_name) -# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -# else -# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) -# endif -#endif -#if !defined(SWIFT_UNAVAILABLE) -# define SWIFT_UNAVAILABLE __attribute__((unavailable)) -#endif -#if !defined(SWIFT_UNAVAILABLE_MSG) -# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) -#endif -#if !defined(SWIFT_AVAILABILITY) -# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) -#endif -#if !defined(SWIFT_WEAK_IMPORT) -# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) -#endif -#if !defined(SWIFT_DEPRECATED) -# define SWIFT_DEPRECATED __attribute__((deprecated)) -#endif -#if !defined(SWIFT_DEPRECATED_MSG) -# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) -#endif -#if !defined(SWIFT_DEPRECATED_OBJC) -# if __has_feature(attribute_diagnose_if_objc) -# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) -# else -# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -# endif -#endif -#if defined(__OBJC__) -#if !defined(IBSegueAction) -# define IBSegueAction -#endif -#endif -#if !defined(SWIFT_EXTERN) -# if defined(__cplusplus) -# define SWIFT_EXTERN extern "C" -# else -# define SWIFT_EXTERN extern -# endif -#endif -#if !defined(SWIFT_CALL) -# define SWIFT_CALL __attribute__((swiftcall)) -#endif -#if !defined(SWIFT_INDIRECT_RESULT) -# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -# define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -# define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -# define SWIFT_NOEXCEPT noexcept -#else -# define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -# if __has_attribute(always_inline) -# if __has_attribute(nodebug) -# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug)) -# else -# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -# endif -# else -# define SWIFT_C_INLINE_THUNK inline -# endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -# define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -#endif - -#endif -#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" -#pragma clang diagnostic ignored "-Wduplicate-method-arg" -#if __has_warning("-Wpragma-clang-attribute") -# pragma clang diagnostic ignored "-Wpragma-clang-attribute" -#endif -#pragma clang diagnostic ignored "-Wunknown-pragmas" -#pragma clang diagnostic ignored "-Wnullability" -#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" - -#if __has_attribute(external_source_symbol) -# pragma push_macro("any") -# undef any -# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="DeskproFramework",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) -# pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -#endif -#if __has_attribute(external_source_symbol) -# pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#elif defined(__x86_64__) && __x86_64__ -// Generated by Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5) -#ifndef DESKPROFRAMEWORK_SWIFT_H -#define DESKPROFRAMEWORK_SWIFT_H -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgcc-compat" - -#if !defined(__has_include) -# define __has_include(x) 0 -#endif -#if !defined(__has_attribute) -# define __has_attribute(x) 0 -#endif -#if !defined(__has_feature) -# define __has_feature(x) 0 -#endif -#if !defined(__has_warning) -# define __has_warning(x) 0 -#endif - -#if __has_include() -# include -#endif - -#pragma clang diagnostic ignored "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#endif -#if defined(__cplusplus) -#if defined(__arm64e__) && __has_include() -# include -#else -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wreserved-macro-identifier" -# ifndef __ptrauth_swift_value_witness_function_pointer -# define __ptrauth_swift_value_witness_function_pointer(x) -# endif -# ifndef __ptrauth_swift_class_method_pointer -# define __ptrauth_swift_class_method_pointer(x) -# endif -#pragma clang diagnostic pop -#endif -#endif - -#if !defined(SWIFT_TYPEDEFS) -# define SWIFT_TYPEDEFS 1 -# if __has_include() -# include -# elif !defined(__cplusplus) -typedef uint_least16_t char16_t; -typedef uint_least32_t char32_t; -# endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); -#endif - -#if !defined(SWIFT_PASTE) -# define SWIFT_PASTE_HELPER(x, y) x##y -# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) -#endif -#if !defined(SWIFT_METATYPE) -# define SWIFT_METATYPE(X) Class -#endif -#if !defined(SWIFT_CLASS_PROPERTY) -# if __has_feature(objc_class_property) -# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -# else -# define SWIFT_CLASS_PROPERTY(...) -# endif -#endif -#if !defined(SWIFT_RUNTIME_NAME) -# if __has_attribute(objc_runtime_name) -# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -# else -# define SWIFT_RUNTIME_NAME(X) -# endif -#endif -#if !defined(SWIFT_COMPILE_NAME) -# if __has_attribute(swift_name) -# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -# else -# define SWIFT_COMPILE_NAME(X) -# endif -#endif -#if !defined(SWIFT_METHOD_FAMILY) -# if __has_attribute(objc_method_family) -# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -# else -# define SWIFT_METHOD_FAMILY(X) -# endif -#endif -#if !defined(SWIFT_NOESCAPE) -# if __has_attribute(noescape) -# define SWIFT_NOESCAPE __attribute__((noescape)) -# else -# define SWIFT_NOESCAPE -# endif -#endif -#if !defined(SWIFT_RELEASES_ARGUMENT) -# if __has_attribute(ns_consumed) -# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -# else -# define SWIFT_RELEASES_ARGUMENT -# endif -#endif -#if !defined(SWIFT_WARN_UNUSED_RESULT) -# if __has_attribute(warn_unused_result) -# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -# else -# define SWIFT_WARN_UNUSED_RESULT -# endif -#endif -#if !defined(SWIFT_NORETURN) -# if __has_attribute(noreturn) -# define SWIFT_NORETURN __attribute__((noreturn)) -# else -# define SWIFT_NORETURN -# endif -#endif -#if !defined(SWIFT_CLASS_EXTRA) -# define SWIFT_CLASS_EXTRA -#endif -#if !defined(SWIFT_PROTOCOL_EXTRA) -# define SWIFT_PROTOCOL_EXTRA -#endif -#if !defined(SWIFT_ENUM_EXTRA) -# define SWIFT_ENUM_EXTRA -#endif -#if !defined(SWIFT_CLASS) -# if __has_attribute(objc_subclassing_restricted) -# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# else -# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# endif -#endif -#if !defined(SWIFT_RESILIENT_CLASS) -# if __has_attribute(objc_class_stub) -# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) -# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) -# else -# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) -# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) -# endif -#endif -#if !defined(SWIFT_PROTOCOL) -# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#endif -#if !defined(SWIFT_EXTENSION) -# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) -#endif -#if !defined(OBJC_DESIGNATED_INITIALIZER) -# if __has_attribute(objc_designated_initializer) -# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) -# else -# define OBJC_DESIGNATED_INITIALIZER -# endif -#endif -#if !defined(SWIFT_ENUM_ATTR) -# if __has_attribute(enum_extensibility) -# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) -# else -# define SWIFT_ENUM_ATTR(_extensibility) -# endif -#endif -#if !defined(SWIFT_ENUM) -# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -# if __has_feature(generalized_swift_name) -# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -# else -# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) -# endif -#endif -#if !defined(SWIFT_UNAVAILABLE) -# define SWIFT_UNAVAILABLE __attribute__((unavailable)) -#endif -#if !defined(SWIFT_UNAVAILABLE_MSG) -# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) -#endif -#if !defined(SWIFT_AVAILABILITY) -# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) -#endif -#if !defined(SWIFT_WEAK_IMPORT) -# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) -#endif -#if !defined(SWIFT_DEPRECATED) -# define SWIFT_DEPRECATED __attribute__((deprecated)) -#endif -#if !defined(SWIFT_DEPRECATED_MSG) -# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) -#endif -#if !defined(SWIFT_DEPRECATED_OBJC) -# if __has_feature(attribute_diagnose_if_objc) -# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) -# else -# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -# endif -#endif -#if defined(__OBJC__) -#if !defined(IBSegueAction) -# define IBSegueAction -#endif -#endif -#if !defined(SWIFT_EXTERN) -# if defined(__cplusplus) -# define SWIFT_EXTERN extern "C" -# else -# define SWIFT_EXTERN extern -# endif -#endif -#if !defined(SWIFT_CALL) -# define SWIFT_CALL __attribute__((swiftcall)) -#endif -#if !defined(SWIFT_INDIRECT_RESULT) -# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result)) -#endif -#if !defined(SWIFT_CONTEXT) -# define SWIFT_CONTEXT __attribute__((swift_context)) -#endif -#if !defined(SWIFT_ERROR_RESULT) -# define SWIFT_ERROR_RESULT __attribute__((swift_error_result)) -#endif -#if defined(__cplusplus) -# define SWIFT_NOEXCEPT noexcept -#else -# define SWIFT_NOEXCEPT -#endif -#if !defined(SWIFT_C_INLINE_THUNK) -# if __has_attribute(always_inline) -# if __has_attribute(nodebug) -# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug)) -# else -# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) -# endif -# else -# define SWIFT_C_INLINE_THUNK inline -# endif -#endif -#if defined(_WIN32) -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport) -#endif -#else -#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL) -# define SWIFT_IMPORT_STDLIB_SYMBOL -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(objc_modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -#endif - -#endif -#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" -#pragma clang diagnostic ignored "-Wduplicate-method-arg" -#if __has_warning("-Wpragma-clang-attribute") -# pragma clang diagnostic ignored "-Wpragma-clang-attribute" -#endif -#pragma clang diagnostic ignored "-Wunknown-pragmas" -#pragma clang diagnostic ignored "-Wnullability" -#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" - -#if __has_attribute(external_source_symbol) -# pragma push_macro("any") -# undef any -# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="DeskproFramework",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) -# pragma pop_macro("any") -#endif - -#if defined(__OBJC__) - -#endif -#if __has_attribute(external_source_symbol) -# pragma clang attribute pop -#endif -#if defined(__cplusplus) -#endif -#pragma clang diagnostic pop -#endif - -#else -#error unsupported Swift architecture -#endif diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Headers/DeskproFramework.h b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Headers/DeskproFramework.h deleted file mode 100644 index b702304..0000000 --- a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Headers/DeskproFramework.h +++ /dev/null @@ -1,18 +0,0 @@ -// -// DeskproFramework.h -// DeskproFramework -// -// Created by QSD BiH on 4. 1. 2024.. -// - -#import - -//! Project version number for DeskproFramework. -FOUNDATION_EXPORT double DeskproFrameworkVersionNumber; - -//! Project version string for DeskproFramework. -FOUNDATION_EXPORT const unsigned char DeskproFrameworkVersionString[]; - -// In this header, you should import all the public headers of your framework using statements like #import - - diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Info.plist b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Info.plist deleted file mode 100644 index d436343..0000000 Binary files a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Info.plist and /dev/null differ diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.abi.json b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.abi.json deleted file mode 100644 index c9a311c..0000000 --- a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.abi.json +++ /dev/null @@ -1,1391 +0,0 @@ -{ - "ABIRoot": { - "kind": "Root", - "name": "TopLevel", - "printedName": "TopLevel", - "children": [ - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "DeskPro", - "printedName": "DeskPro", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(messengerConfig:containingViewController:)", - "children": [ - { - "kind": "TypeNominal", - "name": "DeskPro", - "printedName": "DeskproFramework.DeskPro", - "usr": "s:16DeskproFramework7DeskProC" - }, - { - "kind": "TypeNominal", - "name": "MessengerConfig", - "printedName": "DeskproFramework.MessengerConfig", - "usr": "s:16DeskproFramework15MessengerConfigC" - }, - { - "kind": "TypeNominal", - "name": "UIViewController", - "printedName": "UIKit.UIViewController", - "usr": "c:objc(cs)UIViewController" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework7DeskProC15messengerConfig24containingViewControllerAcA09MessengerF0C_So06UIViewI0Ctcfc", - "mangledName": "$s16DeskproFramework7DeskProC15messengerConfig24containingViewControllerAcA09MessengerF0C_So06UIViewI0Ctcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "test", - "printedName": "test()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC4testSSyF", - "mangledName": "$s16DeskproFramework7DeskProC4testSSyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "loginUser", - "printedName": "loginUser(user:deskProCallback:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "User", - "printedName": "DeskproFramework.User", - "usr": "s:16DeskproFramework4UserC" - }, - { - "kind": "TypeNominal", - "name": "DeskProStatusCallback", - "printedName": "DeskproFramework.DeskProStatusCallback", - "usr": "s:16DeskproFramework21DeskProStatusCallbackP" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC9loginUser4user04deskD8CallbackyAA0F0C_AA0cd6StatusI0_ptF", - "mangledName": "$s16DeskproFramework7DeskProC9loginUser4user04deskD8CallbackyAA0F0C_AA0cd6StatusI0_ptF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "updateUser", - "printedName": "updateUser(user:deskProCallback:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "User", - "printedName": "DeskproFramework.User", - "usr": "s:16DeskproFramework4UserC" - }, - { - "kind": "TypeNominal", - "name": "DeskProStatusCallback", - "printedName": "DeskproFramework.DeskProStatusCallback", - "usr": "s:16DeskproFramework21DeskProStatusCallbackP" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC10updateUser4user04deskD8CallbackyAA0F0C_AA0cd6StatusI0_ptF", - "mangledName": "$s16DeskproFramework7DeskProC10updateUser4user04deskD8CallbackyAA0F0C_AA0cd6StatusI0_ptF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "logout", - "printedName": "logout()", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC6logoutSbyF", - "mangledName": "$s16DeskproFramework7DeskProC6logoutSbyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "setPushRegistrationToken", - "printedName": "setPushRegistrationToken(deviceToken:)", - "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:16DeskproFramework7DeskProC24setPushRegistrationToken06deviceH0SbSS_tF", - "mangledName": "$s16DeskproFramework7DeskProC24setPushRegistrationToken06deviceH0SbSS_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "isDeskProPushNotification", - "printedName": "isDeskProPushNotification(pushNotification:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "PushNotificationData", - "printedName": "DeskproFramework.PushNotificationData", - "usr": "s:16DeskproFramework20PushNotificationDataC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC02iscD16PushNotification04pushG0SbAA0fG4DataC_tF", - "mangledName": "$s16DeskproFramework7DeskProC02iscD16PushNotification04pushG0SbAA0fG4DataC_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "handlePushNotification", - "printedName": "handlePushNotification(pushNotification:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "PushNotificationData", - "printedName": "DeskproFramework.PushNotificationData", - "usr": "s:16DeskproFramework20PushNotificationDataC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC22handlePushNotification04pushG0yAA0fG4DataC_tF", - "mangledName": "$s16DeskproFramework7DeskProC22handlePushNotification04pushG0yAA0fG4DataC_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "present", - "printedName": "present()", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC7presentAA14PresentBuilderCyF", - "mangledName": "$s16DeskproFramework7DeskProC7presentAA14PresentBuilderCyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "close", - "printedName": "close()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC5closeyyF", - "mangledName": "$s16DeskproFramework7DeskProC5closeyyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "getUnreadConversationCount", - "printedName": "getUnreadConversationCount()", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC26getUnreadConversationCountSiyF", - "mangledName": "$s16DeskproFramework7DeskProC26getUnreadConversationCountSiyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "enableLogging", - "printedName": "enableLogging()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC13enableLoggingyyF", - "mangledName": "$s16DeskproFramework7DeskProC13enableLoggingyyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework7DeskProC", - "mangledName": "$s16DeskproFramework7DeskProC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "User", - "printedName": "User", - "declKind": "Class", - "usr": "s:16DeskproFramework4UserC", - "mangledName": "$s16DeskproFramework4UserC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "hasMissingDesignatedInitializers": true - }, - { - "kind": "TypeDecl", - "name": "PushNotificationData", - "printedName": "PushNotificationData", - "declKind": "Class", - "usr": "s:16DeskproFramework20PushNotificationDataC", - "mangledName": "$s16DeskproFramework20PushNotificationDataC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "hasMissingDesignatedInitializers": true - }, - { - "kind": "TypeDecl", - "name": "DeskProError", - "printedName": "DeskProError", - "declKind": "Class", - "usr": "s:16DeskproFramework12DeskProErrorC", - "mangledName": "$s16DeskproFramework12DeskProErrorC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "hasMissingDesignatedInitializers": true - }, - { - "kind": "TypeDecl", - "name": "DeskProStatusCallback", - "printedName": "DeskProStatusCallback", - "children": [ - { - "kind": "Function", - "name": "onFailure", - "printedName": "onFailure(deskProError:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "DeskProError", - "printedName": "DeskproFramework.DeskProError", - "usr": "s:16DeskproFramework12DeskProErrorC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework21DeskProStatusCallbackP9onFailure04deskD5ErroryAA0cdJ0C_tF", - "mangledName": "$s16DeskproFramework21DeskProStatusCallbackP9onFailure04deskD5ErroryAA0cdJ0C_tF", - "moduleName": "DeskproFramework", - "genericSig": "<τ_0_0 where τ_0_0 : DeskproFramework.DeskProStatusCallback>", - "sugared_genericSig": "", - "protocolReq": true, - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "onSuccess", - "printedName": "onSuccess()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework21DeskProStatusCallbackP9onSuccessyyF", - "mangledName": "$s16DeskproFramework21DeskProStatusCallbackP9onSuccessyyF", - "moduleName": "DeskproFramework", - "genericSig": "<τ_0_0 where τ_0_0 : DeskproFramework.DeskProStatusCallback>", - "sugared_genericSig": "", - "protocolReq": true, - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Protocol", - "usr": "s:16DeskproFramework21DeskProStatusCallbackP", - "mangledName": "$s16DeskproFramework21DeskProStatusCallbackP", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "PresentBuilder", - "printedName": "PresentBuilder", - "children": [ - { - "kind": "Var", - "name": "url", - "printedName": "url", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvp", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvg", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvs", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvM", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(url:containingViewController:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "UIKit.UIViewController?", - "children": [ - { - "kind": "TypeNominal", - "name": "UIViewController", - "printedName": "UIKit.UIViewController", - "usr": "c:objc(cs)UIViewController" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework14PresentBuilderC3url24containingViewControllerACSS_So06UIViewH0CSgtcfc", - "mangledName": "$s16DeskproFramework14PresentBuilderC3url24containingViewControllerACSS_So06UIViewH0CSgtcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "chatHistory", - "printedName": "chatHistory(chatId:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC11chatHistory0E2IdACSi_tF", - "mangledName": "$s16DeskproFramework14PresentBuilderC11chatHistory0E2IdACSi_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "article", - "printedName": "article(articleId:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC7article0E2IdACSi_tF", - "mangledName": "$s16DeskproFramework14PresentBuilderC7article0E2IdACSi_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "comments", - "printedName": "comments()", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC8commentsACyF", - "mangledName": "$s16DeskproFramework14PresentBuilderC8commentsACyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "show", - "printedName": "show()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC4showyyF", - "mangledName": "$s16DeskproFramework14PresentBuilderC4showyyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework14PresentBuilderC", - "mangledName": "$s16DeskproFramework14PresentBuilderC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "WebKit", - "printedName": "WebKit", - "declKind": "Import", - "moduleName": "DeskproFramework" - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "MessengerConfig", - "printedName": "MessengerConfig", - "children": [ - { - "kind": "Var", - "name": "appUrl", - "printedName": "appUrl", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvp", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvg", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvs", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvM", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "appId", - "printedName": "appId", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvp", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvg", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvs", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvM", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "appKey", - "printedName": "appKey", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvp", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvg", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvs", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvM", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(appUrl:appId:appKey:)", - "children": [ - { - "kind": "TypeNominal", - "name": "MessengerConfig", - "printedName": "DeskproFramework.MessengerConfig", - "usr": "s:16DeskproFramework15MessengerConfigC" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrl0E2Id0E3KeyACSS_S2SSgtcfc", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrl0E2Id0E3KeyACSS_S2SSgtcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework15MessengerConfigC", - "mangledName": "$s16DeskproFramework15MessengerConfigC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "TypeDecl", - "name": "UIViewController", - "printedName": "UIViewController", - "children": [ - { - "kind": "Function", - "name": "presentMessenger", - "printedName": "presentMessenger(urlString:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Func", - "usr": "s:So16UIViewControllerC16DeskproFrameworkE16presentMessenger9urlStringySS_tF", - "mangledName": "$sSo16UIViewControllerC16DeskproFrameworkE16presentMessenger9urlStringySS_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "Custom" - ], - "isFromExtension": true, - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "c:objc(cs)UIViewController", - "moduleName": "UIKit", - "isOpen": true, - "intro_iOS": "2.0", - "objc_name": "UIViewController", - "declAttributes": [ - "Available", - "ObjC", - "NonSendable", - "Custom", - "Dynamic" - ], - "superclassUsr": "c:objc(cs)UIResponder", - "isExternal": true, - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "UIKit.UIResponder", - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "_KeyValueCodingAndObservingPublishing", - "printedName": "_KeyValueCodingAndObservingPublishing", - "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP", - "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP" - }, - { - "kind": "Conformance", - "name": "_KeyValueCodingAndObserving", - "printedName": "_KeyValueCodingAndObserving", - "usr": "s:10Foundation27_KeyValueCodingAndObservingP", - "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "UITraitChangeObservable", - "printedName": "UITraitChangeObservable", - "usr": "s:5UIKit23UITraitChangeObservableP", - "mangledName": "$s5UIKit23UITraitChangeObservableP" - } - ] - } - ], - "json_format_version": 8 - }, - "ConstValues": [ - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/Deskpro.swift", - "kind": "StringLiteral", - "offset": 522, - "length": 29, - "value": "\"Hello world from Messenger!\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/Deskpro.swift", - "kind": "BooleanLiteral", - "offset": 895, - "length": 4, - "value": "true" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/Deskpro.swift", - "kind": "BooleanLiteral", - "offset": 1031, - "length": 4, - "value": "true" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/Deskpro.swift", - "kind": "BooleanLiteral", - "offset": 1187, - "length": 4, - "value": "true" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/Deskpro.swift", - "kind": "IntegerLiteral", - "offset": 1732, - "length": 1, - "value": "0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 261, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 561, - "length": 25, - "value": "\"\/chat_history\/\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 585, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 695, - "length": 23, - "value": "\"\/article\/\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 717, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 814, - "length": 11, - "value": "\"\/comments\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 874, - "length": 13, - "value": "\"iosListener\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 1125, - "length": 18, - "value": "\"Url not provided\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 1505, - "length": 3, - "value": "0.5" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 1958, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 2059, - "length": 4, - "value": "\"OK\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "BooleanLiteral", - "offset": 2131, - "length": 4, - "value": "true" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 2428, - "length": 53, - "value": "\"WKWebView has received a message: `\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 2479, - "length": 1, - "value": "\"`\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "BooleanLiteral", - "offset": 2746, - "length": 4, - "value": "true" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 2949, - "length": 17, - "value": "\"Error: \"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 2965, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 3034, - "length": 19, - "value": "\"Result: \"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 3052, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "BooleanLiteral", - "offset": 3371, - "length": 4, - "value": "true" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 3454, - "length": 14, - "value": "\"closeWebView\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 3454, - "length": 14, - "value": "\"closeWebView\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 3535, - "length": 1338, - "value": "\" window.DESKPRO_MESSENGER_CONNECTION = {\n parentMethods: {\n ready: async () => {\n \/\/ Note how childMethods.init is called in response to the ready event.\n const data = await window.DESKPRO_MESSENGER_CONNECTION.childMethods?.init(\"B0ED0B34-8507-4248-8738-0B0D80A6F7E9\", {\n showLauncherButton: false,\n user: window.DESKPRO_MESSENGER_OPTIONS?.userInfo,\n launcherButtonConfig: undefined, \/\/ Optional,\n messengerAppConfig: undefined,\n parentViewHeight: \"fullscreen\",\n }); \/\/new argument here\n\n if (data) {\n const { side, offsetBottom, offsetSide, width, height } = data;\n \/\/ setViewportPosition({ side, offsetBottom, offsetSide });\n \/\/ setViewportSize({ width, height });\n }\n },\n open: async () => {\n \/\/ setViewportSize({ width, height });\n },\n close: async () => {\n window.webkit.messageHandlers.iosListener.postMessage(\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 4527, - "length": 34, - "value": "\"\") \/\/triggers `didReceive message`\n \/\/alert('close.') \/\/triggers `runJavaScriptAlertPanelWithMessage`\n },\n getViewHeight: async () => {\n return 'fullscreen'\n },\n },\n \/\/ This object will be assigned by the messenger app on ready, so you can call the childMethods from the parent.\n childMethods: undefined,\n };\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 4916, - "length": 202, - "value": "\"window.DESKPRO_MESSENGER_CONNECTION.childMethods.open('B0ED0B34-8507-4248-8738-0B0D80A6F7E9', {\n parentViewHeight: 'fullscreen',\n showLauncherButton: false,\n });\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 5162, - "length": 203, - "value": "\"window.DESKPRO_MESSENGER_CONNECTION.childMethods.close('B0ED0B34-8507-4248-8738-0B0D80A6F7E9', {\n parentViewHeight: 'fullscreen',\n showLauncherButton: false,\n });\"" - } - ] -} \ No newline at end of file diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface deleted file mode 100644 index ac710d4..0000000 --- a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +++ /dev/null @@ -1,59 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5) -// swift-module-flags: -target arm64-apple-ios14-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name DeskproFramework -// swift-module-flags-ignorable: -enable-bare-slash-regex -@_exported import DeskproFramework -import Foundation -import Swift -import UIKit -import WebKit -import _Concurrency -import _StringProcessing -import _SwiftConcurrencyShims -public class DeskPro { - public init(messengerConfig: DeskproFramework.MessengerConfig, containingViewController: UIKit.UIViewController) - public func test() -> Swift.String - public func loginUser(user: DeskproFramework.User, deskProCallback: any DeskproFramework.DeskProStatusCallback) - public func updateUser(user: DeskproFramework.User, deskProCallback: any DeskproFramework.DeskProStatusCallback) - public func logout() -> Swift.Bool - public func setPushRegistrationToken(deviceToken: Swift.String) -> Swift.Bool - public func isDeskProPushNotification(pushNotification: DeskproFramework.PushNotificationData) -> Swift.Bool - public func handlePushNotification(pushNotification: DeskproFramework.PushNotificationData) - public func present() -> DeskproFramework.PresentBuilder - public func close() - public func getUnreadConversationCount() -> Swift.Int - public func enableLogging() - @objc deinit -} -@_hasMissingDesignatedInitializers public class User { - @objc deinit -} -@_hasMissingDesignatedInitializers public class PushNotificationData { - @objc deinit -} -@_hasMissingDesignatedInitializers public class DeskProError { - @objc deinit -} -public protocol DeskProStatusCallback { - func onFailure(deskProError: DeskproFramework.DeskProError) - func onSuccess() -} -public class PresentBuilder { - public var url: Swift.String - public init(url: Swift.String, containingViewController: UIKit.UIViewController?) - public func chatHistory(chatId: Swift.Int) -> DeskproFramework.PresentBuilder - public func article(articleId: Swift.Int) -> DeskproFramework.PresentBuilder - public func comments() -> DeskproFramework.PresentBuilder - public func show() - @objc deinit -} -extension UIKit.UIViewController { - @_Concurrency.MainActor(unsafe) public func presentMessenger(urlString: Swift.String) -} -public class MessengerConfig { - public var appUrl: Swift.String - public var appId: Swift.String - public var appKey: Swift.String? - public init(appUrl: Swift.String, appId: Swift.String, appKey: Swift.String? = nil) - @objc deinit -} diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftdoc b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftdoc deleted file mode 100644 index 3b9e19b..0000000 Binary files a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftdoc and /dev/null differ diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftinterface deleted file mode 100644 index ac710d4..0000000 --- a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftinterface +++ /dev/null @@ -1,59 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5) -// swift-module-flags: -target arm64-apple-ios14-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name DeskproFramework -// swift-module-flags-ignorable: -enable-bare-slash-regex -@_exported import DeskproFramework -import Foundation -import Swift -import UIKit -import WebKit -import _Concurrency -import _StringProcessing -import _SwiftConcurrencyShims -public class DeskPro { - public init(messengerConfig: DeskproFramework.MessengerConfig, containingViewController: UIKit.UIViewController) - public func test() -> Swift.String - public func loginUser(user: DeskproFramework.User, deskProCallback: any DeskproFramework.DeskProStatusCallback) - public func updateUser(user: DeskproFramework.User, deskProCallback: any DeskproFramework.DeskProStatusCallback) - public func logout() -> Swift.Bool - public func setPushRegistrationToken(deviceToken: Swift.String) -> Swift.Bool - public func isDeskProPushNotification(pushNotification: DeskproFramework.PushNotificationData) -> Swift.Bool - public func handlePushNotification(pushNotification: DeskproFramework.PushNotificationData) - public func present() -> DeskproFramework.PresentBuilder - public func close() - public func getUnreadConversationCount() -> Swift.Int - public func enableLogging() - @objc deinit -} -@_hasMissingDesignatedInitializers public class User { - @objc deinit -} -@_hasMissingDesignatedInitializers public class PushNotificationData { - @objc deinit -} -@_hasMissingDesignatedInitializers public class DeskProError { - @objc deinit -} -public protocol DeskProStatusCallback { - func onFailure(deskProError: DeskproFramework.DeskProError) - func onSuccess() -} -public class PresentBuilder { - public var url: Swift.String - public init(url: Swift.String, containingViewController: UIKit.UIViewController?) - public func chatHistory(chatId: Swift.Int) -> DeskproFramework.PresentBuilder - public func article(articleId: Swift.Int) -> DeskproFramework.PresentBuilder - public func comments() -> DeskproFramework.PresentBuilder - public func show() - @objc deinit -} -extension UIKit.UIViewController { - @_Concurrency.MainActor(unsafe) public func presentMessenger(urlString: Swift.String) -} -public class MessengerConfig { - public var appUrl: Swift.String - public var appId: Swift.String - public var appKey: Swift.String? - public init(appUrl: Swift.String, appId: Swift.String, appKey: Swift.String? = nil) - @objc deinit -} diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json deleted file mode 100644 index c9a311c..0000000 --- a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json +++ /dev/null @@ -1,1391 +0,0 @@ -{ - "ABIRoot": { - "kind": "Root", - "name": "TopLevel", - "printedName": "TopLevel", - "children": [ - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "DeskPro", - "printedName": "DeskPro", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(messengerConfig:containingViewController:)", - "children": [ - { - "kind": "TypeNominal", - "name": "DeskPro", - "printedName": "DeskproFramework.DeskPro", - "usr": "s:16DeskproFramework7DeskProC" - }, - { - "kind": "TypeNominal", - "name": "MessengerConfig", - "printedName": "DeskproFramework.MessengerConfig", - "usr": "s:16DeskproFramework15MessengerConfigC" - }, - { - "kind": "TypeNominal", - "name": "UIViewController", - "printedName": "UIKit.UIViewController", - "usr": "c:objc(cs)UIViewController" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework7DeskProC15messengerConfig24containingViewControllerAcA09MessengerF0C_So06UIViewI0Ctcfc", - "mangledName": "$s16DeskproFramework7DeskProC15messengerConfig24containingViewControllerAcA09MessengerF0C_So06UIViewI0Ctcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "test", - "printedName": "test()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC4testSSyF", - "mangledName": "$s16DeskproFramework7DeskProC4testSSyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "loginUser", - "printedName": "loginUser(user:deskProCallback:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "User", - "printedName": "DeskproFramework.User", - "usr": "s:16DeskproFramework4UserC" - }, - { - "kind": "TypeNominal", - "name": "DeskProStatusCallback", - "printedName": "DeskproFramework.DeskProStatusCallback", - "usr": "s:16DeskproFramework21DeskProStatusCallbackP" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC9loginUser4user04deskD8CallbackyAA0F0C_AA0cd6StatusI0_ptF", - "mangledName": "$s16DeskproFramework7DeskProC9loginUser4user04deskD8CallbackyAA0F0C_AA0cd6StatusI0_ptF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "updateUser", - "printedName": "updateUser(user:deskProCallback:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "User", - "printedName": "DeskproFramework.User", - "usr": "s:16DeskproFramework4UserC" - }, - { - "kind": "TypeNominal", - "name": "DeskProStatusCallback", - "printedName": "DeskproFramework.DeskProStatusCallback", - "usr": "s:16DeskproFramework21DeskProStatusCallbackP" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC10updateUser4user04deskD8CallbackyAA0F0C_AA0cd6StatusI0_ptF", - "mangledName": "$s16DeskproFramework7DeskProC10updateUser4user04deskD8CallbackyAA0F0C_AA0cd6StatusI0_ptF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "logout", - "printedName": "logout()", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC6logoutSbyF", - "mangledName": "$s16DeskproFramework7DeskProC6logoutSbyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "setPushRegistrationToken", - "printedName": "setPushRegistrationToken(deviceToken:)", - "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:16DeskproFramework7DeskProC24setPushRegistrationToken06deviceH0SbSS_tF", - "mangledName": "$s16DeskproFramework7DeskProC24setPushRegistrationToken06deviceH0SbSS_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "isDeskProPushNotification", - "printedName": "isDeskProPushNotification(pushNotification:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "PushNotificationData", - "printedName": "DeskproFramework.PushNotificationData", - "usr": "s:16DeskproFramework20PushNotificationDataC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC02iscD16PushNotification04pushG0SbAA0fG4DataC_tF", - "mangledName": "$s16DeskproFramework7DeskProC02iscD16PushNotification04pushG0SbAA0fG4DataC_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "handlePushNotification", - "printedName": "handlePushNotification(pushNotification:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "PushNotificationData", - "printedName": "DeskproFramework.PushNotificationData", - "usr": "s:16DeskproFramework20PushNotificationDataC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC22handlePushNotification04pushG0yAA0fG4DataC_tF", - "mangledName": "$s16DeskproFramework7DeskProC22handlePushNotification04pushG0yAA0fG4DataC_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "present", - "printedName": "present()", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC7presentAA14PresentBuilderCyF", - "mangledName": "$s16DeskproFramework7DeskProC7presentAA14PresentBuilderCyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "close", - "printedName": "close()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC5closeyyF", - "mangledName": "$s16DeskproFramework7DeskProC5closeyyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "getUnreadConversationCount", - "printedName": "getUnreadConversationCount()", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC26getUnreadConversationCountSiyF", - "mangledName": "$s16DeskproFramework7DeskProC26getUnreadConversationCountSiyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "enableLogging", - "printedName": "enableLogging()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC13enableLoggingyyF", - "mangledName": "$s16DeskproFramework7DeskProC13enableLoggingyyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework7DeskProC", - "mangledName": "$s16DeskproFramework7DeskProC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "User", - "printedName": "User", - "declKind": "Class", - "usr": "s:16DeskproFramework4UserC", - "mangledName": "$s16DeskproFramework4UserC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "hasMissingDesignatedInitializers": true - }, - { - "kind": "TypeDecl", - "name": "PushNotificationData", - "printedName": "PushNotificationData", - "declKind": "Class", - "usr": "s:16DeskproFramework20PushNotificationDataC", - "mangledName": "$s16DeskproFramework20PushNotificationDataC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "hasMissingDesignatedInitializers": true - }, - { - "kind": "TypeDecl", - "name": "DeskProError", - "printedName": "DeskProError", - "declKind": "Class", - "usr": "s:16DeskproFramework12DeskProErrorC", - "mangledName": "$s16DeskproFramework12DeskProErrorC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "hasMissingDesignatedInitializers": true - }, - { - "kind": "TypeDecl", - "name": "DeskProStatusCallback", - "printedName": "DeskProStatusCallback", - "children": [ - { - "kind": "Function", - "name": "onFailure", - "printedName": "onFailure(deskProError:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "DeskProError", - "printedName": "DeskproFramework.DeskProError", - "usr": "s:16DeskproFramework12DeskProErrorC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework21DeskProStatusCallbackP9onFailure04deskD5ErroryAA0cdJ0C_tF", - "mangledName": "$s16DeskproFramework21DeskProStatusCallbackP9onFailure04deskD5ErroryAA0cdJ0C_tF", - "moduleName": "DeskproFramework", - "genericSig": "<τ_0_0 where τ_0_0 : DeskproFramework.DeskProStatusCallback>", - "sugared_genericSig": "", - "protocolReq": true, - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "onSuccess", - "printedName": "onSuccess()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework21DeskProStatusCallbackP9onSuccessyyF", - "mangledName": "$s16DeskproFramework21DeskProStatusCallbackP9onSuccessyyF", - "moduleName": "DeskproFramework", - "genericSig": "<τ_0_0 where τ_0_0 : DeskproFramework.DeskProStatusCallback>", - "sugared_genericSig": "", - "protocolReq": true, - "reqNewWitnessTableEntry": true, - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Protocol", - "usr": "s:16DeskproFramework21DeskProStatusCallbackP", - "mangledName": "$s16DeskproFramework21DeskProStatusCallbackP", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "PresentBuilder", - "printedName": "PresentBuilder", - "children": [ - { - "kind": "Var", - "name": "url", - "printedName": "url", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvp", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvg", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvs", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvM", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(url:containingViewController:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "UIKit.UIViewController?", - "children": [ - { - "kind": "TypeNominal", - "name": "UIViewController", - "printedName": "UIKit.UIViewController", - "usr": "c:objc(cs)UIViewController" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework14PresentBuilderC3url24containingViewControllerACSS_So06UIViewH0CSgtcfc", - "mangledName": "$s16DeskproFramework14PresentBuilderC3url24containingViewControllerACSS_So06UIViewH0CSgtcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "chatHistory", - "printedName": "chatHistory(chatId:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC11chatHistory0E2IdACSi_tF", - "mangledName": "$s16DeskproFramework14PresentBuilderC11chatHistory0E2IdACSi_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "article", - "printedName": "article(articleId:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC7article0E2IdACSi_tF", - "mangledName": "$s16DeskproFramework14PresentBuilderC7article0E2IdACSi_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "comments", - "printedName": "comments()", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC8commentsACyF", - "mangledName": "$s16DeskproFramework14PresentBuilderC8commentsACyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "show", - "printedName": "show()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC4showyyF", - "mangledName": "$s16DeskproFramework14PresentBuilderC4showyyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework14PresentBuilderC", - "mangledName": "$s16DeskproFramework14PresentBuilderC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "WebKit", - "printedName": "WebKit", - "declKind": "Import", - "moduleName": "DeskproFramework" - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "MessengerConfig", - "printedName": "MessengerConfig", - "children": [ - { - "kind": "Var", - "name": "appUrl", - "printedName": "appUrl", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvp", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvg", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvs", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvM", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "appId", - "printedName": "appId", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvp", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvg", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvs", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvM", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "appKey", - "printedName": "appKey", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvp", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvg", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvs", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvM", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(appUrl:appId:appKey:)", - "children": [ - { - "kind": "TypeNominal", - "name": "MessengerConfig", - "printedName": "DeskproFramework.MessengerConfig", - "usr": "s:16DeskproFramework15MessengerConfigC" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrl0E2Id0E3KeyACSS_S2SSgtcfc", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrl0E2Id0E3KeyACSS_S2SSgtcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework15MessengerConfigC", - "mangledName": "$s16DeskproFramework15MessengerConfigC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "TypeDecl", - "name": "UIViewController", - "printedName": "UIViewController", - "children": [ - { - "kind": "Function", - "name": "presentMessenger", - "printedName": "presentMessenger(urlString:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Func", - "usr": "s:So16UIViewControllerC16DeskproFrameworkE16presentMessenger9urlStringySS_tF", - "mangledName": "$sSo16UIViewControllerC16DeskproFrameworkE16presentMessenger9urlStringySS_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "Custom" - ], - "isFromExtension": true, - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "c:objc(cs)UIViewController", - "moduleName": "UIKit", - "isOpen": true, - "intro_iOS": "2.0", - "objc_name": "UIViewController", - "declAttributes": [ - "Available", - "ObjC", - "NonSendable", - "Custom", - "Dynamic" - ], - "superclassUsr": "c:objc(cs)UIResponder", - "isExternal": true, - "inheritsConvenienceInitializers": true, - "superclassNames": [ - "UIKit.UIResponder", - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "_KeyValueCodingAndObservingPublishing", - "printedName": "_KeyValueCodingAndObservingPublishing", - "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP", - "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP" - }, - { - "kind": "Conformance", - "name": "_KeyValueCodingAndObserving", - "printedName": "_KeyValueCodingAndObserving", - "usr": "s:10Foundation27_KeyValueCodingAndObservingP", - "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "UITraitChangeObservable", - "printedName": "UITraitChangeObservable", - "usr": "s:5UIKit23UITraitChangeObservableP", - "mangledName": "$s5UIKit23UITraitChangeObservableP" - } - ] - } - ], - "json_format_version": 8 - }, - "ConstValues": [ - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/Deskpro.swift", - "kind": "StringLiteral", - "offset": 522, - "length": 29, - "value": "\"Hello world from Messenger!\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/Deskpro.swift", - "kind": "BooleanLiteral", - "offset": 895, - "length": 4, - "value": "true" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/Deskpro.swift", - "kind": "BooleanLiteral", - "offset": 1031, - "length": 4, - "value": "true" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/Deskpro.swift", - "kind": "BooleanLiteral", - "offset": 1187, - "length": 4, - "value": "true" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/Deskpro.swift", - "kind": "IntegerLiteral", - "offset": 1732, - "length": 1, - "value": "0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 261, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 561, - "length": 25, - "value": "\"\/chat_history\/\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 585, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 695, - "length": 23, - "value": "\"\/article\/\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 717, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 814, - "length": 11, - "value": "\"\/comments\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 874, - "length": 13, - "value": "\"iosListener\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 1125, - "length": 18, - "value": "\"Url not provided\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 1505, - "length": 3, - "value": "0.5" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 1958, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 2059, - "length": 4, - "value": "\"OK\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "BooleanLiteral", - "offset": 2131, - "length": 4, - "value": "true" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 2428, - "length": 53, - "value": "\"WKWebView has received a message: `\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 2479, - "length": 1, - "value": "\"`\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "BooleanLiteral", - "offset": 2746, - "length": 4, - "value": "true" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 2949, - "length": 17, - "value": "\"Error: \"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 2965, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 3034, - "length": 19, - "value": "\"Result: \"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 3052, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "BooleanLiteral", - "offset": 3371, - "length": 4, - "value": "true" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 3454, - "length": 14, - "value": "\"closeWebView\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 3454, - "length": 14, - "value": "\"closeWebView\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 3535, - "length": 1338, - "value": "\" window.DESKPRO_MESSENGER_CONNECTION = {\n parentMethods: {\n ready: async () => {\n \/\/ Note how childMethods.init is called in response to the ready event.\n const data = await window.DESKPRO_MESSENGER_CONNECTION.childMethods?.init(\"B0ED0B34-8507-4248-8738-0B0D80A6F7E9\", {\n showLauncherButton: false,\n user: window.DESKPRO_MESSENGER_OPTIONS?.userInfo,\n launcherButtonConfig: undefined, \/\/ Optional,\n messengerAppConfig: undefined,\n parentViewHeight: \"fullscreen\",\n }); \/\/new argument here\n\n if (data) {\n const { side, offsetBottom, offsetSide, width, height } = data;\n \/\/ setViewportPosition({ side, offsetBottom, offsetSide });\n \/\/ setViewportSize({ width, height });\n }\n },\n open: async () => {\n \/\/ setViewportSize({ width, height });\n },\n close: async () => {\n window.webkit.messageHandlers.iosListener.postMessage(\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 4527, - "length": 34, - "value": "\"\") \/\/triggers `didReceive message`\n \/\/alert('close.') \/\/triggers `runJavaScriptAlertPanelWithMessage`\n },\n getViewHeight: async () => {\n return 'fullscreen'\n },\n },\n \/\/ This object will be assigned by the messenger app on ready, so you can call the childMethods from the parent.\n childMethods: undefined,\n };\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 4916, - "length": 202, - "value": "\"window.DESKPRO_MESSENGER_CONNECTION.childMethods.open('B0ED0B34-8507-4248-8738-0B0D80A6F7E9', {\n parentViewHeight: 'fullscreen',\n showLauncherButton: false,\n });\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 5162, - "length": 203, - "value": "\"window.DESKPRO_MESSENGER_CONNECTION.childMethods.close('B0ED0B34-8507-4248-8738-0B0D80A6F7E9', {\n parentViewHeight: 'fullscreen',\n showLauncherButton: false,\n });\"" - } - ] -} \ No newline at end of file diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface deleted file mode 100644 index dee4fe3..0000000 --- a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +++ /dev/null @@ -1,59 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5) -// swift-module-flags: -target x86_64-apple-ios14-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name DeskproFramework -// swift-module-flags-ignorable: -enable-bare-slash-regex -@_exported import DeskproFramework -import Foundation -import Swift -import UIKit -import WebKit -import _Concurrency -import _StringProcessing -import _SwiftConcurrencyShims -public class DeskPro { - public init(messengerConfig: DeskproFramework.MessengerConfig, containingViewController: UIKit.UIViewController) - public func test() -> Swift.String - public func loginUser(user: DeskproFramework.User, deskProCallback: any DeskproFramework.DeskProStatusCallback) - public func updateUser(user: DeskproFramework.User, deskProCallback: any DeskproFramework.DeskProStatusCallback) - public func logout() -> Swift.Bool - public func setPushRegistrationToken(deviceToken: Swift.String) -> Swift.Bool - public func isDeskProPushNotification(pushNotification: DeskproFramework.PushNotificationData) -> Swift.Bool - public func handlePushNotification(pushNotification: DeskproFramework.PushNotificationData) - public func present() -> DeskproFramework.PresentBuilder - public func close() - public func getUnreadConversationCount() -> Swift.Int - public func enableLogging() - @objc deinit -} -@_hasMissingDesignatedInitializers public class User { - @objc deinit -} -@_hasMissingDesignatedInitializers public class PushNotificationData { - @objc deinit -} -@_hasMissingDesignatedInitializers public class DeskProError { - @objc deinit -} -public protocol DeskProStatusCallback { - func onFailure(deskProError: DeskproFramework.DeskProError) - func onSuccess() -} -public class PresentBuilder { - public var url: Swift.String - public init(url: Swift.String, containingViewController: UIKit.UIViewController?) - public func chatHistory(chatId: Swift.Int) -> DeskproFramework.PresentBuilder - public func article(articleId: Swift.Int) -> DeskproFramework.PresentBuilder - public func comments() -> DeskproFramework.PresentBuilder - public func show() - @objc deinit -} -extension UIKit.UIViewController { - @_Concurrency.MainActor(unsafe) public func presentMessenger(urlString: Swift.String) -} -public class MessengerConfig { - public var appUrl: Swift.String - public var appId: Swift.String - public var appKey: Swift.String? - public init(appUrl: Swift.String, appId: Swift.String, appKey: Swift.String? = nil) - @objc deinit -} diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc deleted file mode 100644 index 6b88445..0000000 Binary files a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc and /dev/null differ diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface deleted file mode 100644 index dee4fe3..0000000 --- a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +++ /dev/null @@ -1,59 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5) -// swift-module-flags: -target x86_64-apple-ios14-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name DeskproFramework -// swift-module-flags-ignorable: -enable-bare-slash-regex -@_exported import DeskproFramework -import Foundation -import Swift -import UIKit -import WebKit -import _Concurrency -import _StringProcessing -import _SwiftConcurrencyShims -public class DeskPro { - public init(messengerConfig: DeskproFramework.MessengerConfig, containingViewController: UIKit.UIViewController) - public func test() -> Swift.String - public func loginUser(user: DeskproFramework.User, deskProCallback: any DeskproFramework.DeskProStatusCallback) - public func updateUser(user: DeskproFramework.User, deskProCallback: any DeskproFramework.DeskProStatusCallback) - public func logout() -> Swift.Bool - public func setPushRegistrationToken(deviceToken: Swift.String) -> Swift.Bool - public func isDeskProPushNotification(pushNotification: DeskproFramework.PushNotificationData) -> Swift.Bool - public func handlePushNotification(pushNotification: DeskproFramework.PushNotificationData) - public func present() -> DeskproFramework.PresentBuilder - public func close() - public func getUnreadConversationCount() -> Swift.Int - public func enableLogging() - @objc deinit -} -@_hasMissingDesignatedInitializers public class User { - @objc deinit -} -@_hasMissingDesignatedInitializers public class PushNotificationData { - @objc deinit -} -@_hasMissingDesignatedInitializers public class DeskProError { - @objc deinit -} -public protocol DeskProStatusCallback { - func onFailure(deskProError: DeskproFramework.DeskProError) - func onSuccess() -} -public class PresentBuilder { - public var url: Swift.String - public init(url: Swift.String, containingViewController: UIKit.UIViewController?) - public func chatHistory(chatId: Swift.Int) -> DeskproFramework.PresentBuilder - public func article(articleId: Swift.Int) -> DeskproFramework.PresentBuilder - public func comments() -> DeskproFramework.PresentBuilder - public func show() - @objc deinit -} -extension UIKit.UIViewController { - @_Concurrency.MainActor(unsafe) public func presentMessenger(urlString: Swift.String) -} -public class MessengerConfig { - public var appUrl: Swift.String - public var appId: Swift.String - public var appKey: Swift.String? - public init(appUrl: Swift.String, appId: Swift.String, appKey: Swift.String? = nil) - @objc deinit -} diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/module.modulemap b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/module.modulemap deleted file mode 100644 index 5b7ece8..0000000 --- a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/module.modulemap +++ /dev/null @@ -1,11 +0,0 @@ -framework module DeskproFramework { - umbrella header "DeskproFramework.h" - export * - - module * { export * } -} - -module DeskproFramework.Swift { - header "DeskproFramework-Swift.h" - requires objc -} diff --git a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/_CodeSignature/CodeResources b/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/_CodeSignature/CodeResources deleted file mode 100644 index 21fb313..0000000 --- a/Examples/SwiftExample/SwiftExample/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/_CodeSignature/CodeResources +++ /dev/null @@ -1,245 +0,0 @@ - - - - - files - - Headers/DeskproFramework-Swift.h - - eOFVgQZ9z2+ECmHtS7DZvzINC2A= - - Headers/DeskproFramework.h - - RMHXevNoitOoYp5STBb9z9/Mph4= - - Info.plist - - zrlxfZH5Dd0PaM2zIX8h+e/WO10= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.abi.json - - zcpUO/U/bocPbAreiZmrssxZ2tQ= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface - - LeBd70y6b248ij+I7YfuX3Xz+2A= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftdoc - - E5w8ct+vtUXo8/FfinsiYl5c5xo= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftinterface - - LeBd70y6b248ij+I7YfuX3Xz+2A= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftmodule - - aFHPZY539GwLgj9cdYO1lLeAaiY= - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json - - zcpUO/U/bocPbAreiZmrssxZ2tQ= - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface - - /w+5f0CCgJlC5Oiy7tWGYxej0E4= - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc - - 5G20g+mCyMhLoH0xsISTwvuqY5w= - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface - - /w+5f0CCgJlC5Oiy7tWGYxej0E4= - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftmodule - - jmtjfDX2xhQ3mY0xeyYCo1tc15Q= - - Modules/module.modulemap - - UrjJs2fjHqPQfNwjDfgobo6yrvU= - - - files2 - - Headers/DeskproFramework-Swift.h - - hash2 - - MTAe7rXmaq4PVpFFCgmrHf4sQKjin6aCrLg5VY/cMb4= - - - Headers/DeskproFramework.h - - hash2 - - rsCWhjvHPX2MONH0KfAuJwQGSOvtuzZlQxh6oOK9dR8= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.abi.json - - hash2 - - ja3x80tCCjBHpQH5Dgzb0/+LgI6durODt4BXQ0bTUTc= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface - - hash2 - - uaECZjNs6r7yeuEBgZRed3aabxoWhVXVYBQftbRHd80= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftdoc - - hash2 - - sqMhCOQZpfaZAFTLM37rMhLdnbupDraLmxz5ounO6MI= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftinterface - - hash2 - - uaECZjNs6r7yeuEBgZRed3aabxoWhVXVYBQftbRHd80= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftmodule - - hash2 - - C2NL1OxVUFdUdd2M4SrwT3l7LSTGbmhdVmu7fD++M5w= - - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json - - hash2 - - ja3x80tCCjBHpQH5Dgzb0/+LgI6durODt4BXQ0bTUTc= - - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface - - hash2 - - swTgYP297outyhMgrbqvZ8PgyriPzZXdZHh5zk3LNR8= - - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc - - hash2 - - Yspc4EQ48NyKl8RYmfYtXJcYYEaVvBxCzCM+QLSMVbA= - - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface - - hash2 - - swTgYP297outyhMgrbqvZ8PgyriPzZXdZHh5zk3LNR8= - - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftmodule - - hash2 - - 7KWP6+C2WmLJC+gjVv6PTwoMS03FRwNCmB1AfesUwtA= - - - Modules/module.modulemap - - hash2 - - arP6CHKjOrUMNqNJLAbtZJrD+6yCt5eCm461JEwfdgE= - - - - rules - - ^.* - - ^.*\.lproj/ - - optional - - weight - 1000 - - ^.*\.lproj/locversion.plist$ - - omit - - weight - 1100 - - ^Base\.lproj/ - - weight - 1010 - - ^version.plist$ - - - rules2 - - .*\.dSYM($|/) - - weight - 11 - - ^(.*/)?\.DS_Store$ - - omit - - weight - 2000 - - ^.* - - ^.*\.lproj/ - - optional - - weight - 1000 - - ^.*\.lproj/locversion.plist$ - - omit - - weight - 1100 - - ^Base\.lproj/ - - weight - 1010 - - ^Info\.plist$ - - omit - - weight - 20 - - ^PkgInfo$ - - omit - - weight - 20 - - ^embedded\.provisionprofile$ - - weight - 20 - - ^version\.plist$ - - weight - 20 - - - - diff --git a/Examples/SwiftExample/SwiftExample/ViewController.swift b/Examples/SwiftExample/SwiftExample/ViewController.swift index 3803dba..e9903be 100644 --- a/Examples/SwiftExample/SwiftExample/ViewController.swift +++ b/Examples/SwiftExample/SwiftExample/ViewController.swift @@ -6,40 +6,156 @@ // import UIKit -import DeskproFramework +import messenger_sdk_ios +import UserNotifications class ViewController: UIViewController { - - @IBOutlet weak var testBtn: UIButton! - @IBOutlet weak var testLbl: UILabel! - let messengerConfig = MessengerConfig(appUrl: "https://dev-pr-12730.earthly.deskprodemo.com/deskpro-messenger/deskpro/1/d/", appId: "1") + @IBOutlet weak var urlTextfield: UITextField! + + @IBOutlet weak var jwtTextview: UITextView! + @IBOutlet weak var userinfoTextview: UITextView! + @IBOutlet weak var updateBtn: UIButton! + @IBOutlet weak var setJwtButon: UIButton! + @IBOutlet weak var setUserinfoBtn: UIButton! + @IBOutlet weak var enableNotificationsBtn: UIButton! + @IBOutlet weak var openMessengetBtn: UIButton! + @IBOutlet weak var openNewChatBtn: UIButton! + @IBOutlet weak var eventLogTextView: UITextView! var messenger: DeskPro? + var appUrl = "https://dev-pr-12927.earthly.deskprodemo.com/deskpro-messenger/deskpro/1/d" + var userJSON = """ + { + "name": "", + "firstName": "", + "lastName": "", + "email": "" + } + """ + override func viewDidLoad() { super.viewDidLoad() - messenger = DeskPro(messengerConfig: messengerConfig, containingViewController: self) + self.title = "Deskpro Test App" + + let tap = UITapGestureRecognizer(target: self, action: #selector(dismissKeyboard)) + view.addGestureRecognizer(tap) + + urlTextfield.keyboardType = .URL + urlTextfield.text = appUrl + + jwtTextview.delegate = self + + userinfoTextview.delegate = self + userinfoTextview.text = userJSON - setupLauncherButton() + eventLogTextView.isEditable = false } - - @IBAction func testTapped(_ sender: Any) { - testLbl.text = messenger?.test() + + @objc func dismissKeyboard() { + view.endEditing(true) + } + + @IBAction func updateBtnTapped(_ sender: Any) { + if let url = urlTextfield.text, + !url.isEmpty { + appUrl = url + } + dismissKeyboard() + } + + @IBAction func setJwtBtnTapped(_ sender: Any) { + if let jwt = jwtTextview.text, + !jwt.isEmpty { + messenger?.authorizeUser(userJwt: jwt) + self.showToast(message: "JWT saved", font: .systemFont(ofSize: 13.0)) + } + dismissKeyboard() + } + + @IBAction func setUserinfoBtnTapped(_ sender: Any) { + if let jsonString = userinfoTextview.text?.trimmingCharacters(in: .whitespacesAndNewlines), + let jsonData = jsonString.data(using: .utf8), + let user = try? JSONDecoder().decode(User.self, from: jsonData) { + messenger?.setUserInfo(user: user) + self.showToast(message: "User info saved", font: .systemFont(ofSize: 13.0)) + } else { + self.showToast(message: "Invalid JSON input", font: .systemFont(ofSize: 13.0)) + } + dismissKeyboard() } - private func setupLauncherButton() { - let floatingBtn = DeskproButton() - floatingBtn.setColor(.systemBlue) - floatingBtn.setImage(named: "messenger", color: .white) - floatingBtn.addTarget(self, action: #selector(floatingBtnnTapped), for: .touchUpInside) - self.view.addSubview(floatingBtn) - floatingBtn.setPosition(.bottomRight, inView: self.view) + @IBAction func enableNotificationsBtnTapped(_ sender: Any) { + UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) { [weak self] (granted, error) in + if granted { + DispatchQueue.main.async { + UIApplication.shared.registerForRemoteNotifications() + self?.logEvent("Notification permission granted!") + } + } else { + self?.logEvent("Notification permission denied!") + } + } } - @objc private func floatingBtnnTapped() { + @IBAction func openMessengerBtnTapped(_ sender: Any) { + let messengerConfig = MessengerConfig(appUrl: appUrl, appId: "1") + messenger = DeskPro(messengerConfig: messengerConfig, containingViewController: self) + messenger?.eventRouter.handleEventCallback = { [weak self] event in + self?.eventLogTextView.text.append(event.debugDescription + "\n") + } messenger?.present().show() } + + @IBAction func openNewChatBtnTapped(_ sender: Any) {} + + private func logEvent(_ text: String) { + eventLogTextView.text.append(("\(Date.nowString) [AppEvent] \(text)" + "\n")) + let bottom = NSMakeRange(eventLogTextView.text.count - 1, 1) + eventLogTextView.scrollRangeToVisible(bottom) + } +} + +extension ViewController: UITextViewDelegate { + + func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, replacementText text: String) -> Bool { + if text == "\n" { + textView.resignFirstResponder() + return false + } + return true + } } +extension UIViewController { + + func showToast(message : String, font: UIFont) { + + let toastLabel = UILabel(frame: CGRect(x: self.view.frame.size.width/2 - 100, y: self.view.frame.size.height-100, width: 200, height: 45)) + toastLabel.backgroundColor = UIColor.black + toastLabel.textColor = UIColor.white + toastLabel.font = font + toastLabel.textAlignment = .center; + toastLabel.text = message + toastLabel.alpha = 1.0 + toastLabel.layer.cornerRadius = 10; + toastLabel.clipsToBounds = true + self.view.addSubview(toastLabel) + UIView.animate(withDuration: 4.0, delay: 0.1, options: .curveLinear, animations: { + toastLabel.alpha = 0.0 + }, completion: {(isCompleted) in + toastLabel.removeFromSuperview() + }) + } +} + +private extension Date { + + static var nowString: String { + let dateFormatter = DateFormatter() + dateFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss" + return dateFormatter.string(from: Date()) + } +} diff --git a/Package.swift b/Package.swift index 0f218cd..2440b58 100644 --- a/Package.swift +++ b/Package.swift @@ -15,14 +15,10 @@ let package = Package( targets: [ .target( name: "messenger-sdk-ios", - dependencies: [.targetItem(name: "DeskproFramework", condition: .none)], path: "Sources" ), .testTarget( name: "messenger-sdk-iosTests", - dependencies: ["messenger-sdk-ios"]), - .binaryTarget( - name: "DeskproFramework", - path: "Sources/DeskproFramework.xcframework"), + dependencies: ["messenger-sdk-ios"]) ] ) diff --git a/Sources/Data/PushNotificationData.swift b/Sources/Data/PushNotificationData.swift new file mode 100644 index 0000000..fd09792 --- /dev/null +++ b/Sources/Data/PushNotificationData.swift @@ -0,0 +1,15 @@ +// +// PushNotificationData.swift +// DeskproFramework +// +// Created by QSD BiH on 26. 1. 2024.. +// + +import Foundation + +///Data class representing the payload of a push notification. +/// +///The class encapsulates the information included in a push notification. +public class PushNotificationData { + +} diff --git a/Sources/Data/User.swift b/Sources/Data/User.swift new file mode 100644 index 0000000..52b3066 --- /dev/null +++ b/Sources/Data/User.swift @@ -0,0 +1,24 @@ +// +// User.swift +// DeskproFramework +// +// Created by QSD BiH on 25. 1. 2024.. +// + +import Foundation + +/// - Tag: User +public class User: Codable { + + public var name: String? = nil + public var firstName: String? = nil + public var lastName: String? = nil + public var email: String? = nil + + public init(name: String? = nil, firstName: String? = nil, lastName: String? = nil, email: String? = nil) { + self.name = name + self.firstName = firstName + self.lastName = lastName + self.email = email + } +} diff --git a/Sources/Deskpro.swift b/Sources/Deskpro.swift new file mode 100644 index 0000000..e1eee0e --- /dev/null +++ b/Sources/Deskpro.swift @@ -0,0 +1,159 @@ +// +// Deskpro.swift +// DeskproFramework +// +// Created by QSD BiH on 4. 1. 2024.. +// + +import UIKit + +/// Implementation of the [Messenger](x-source-tag://Messenger) protocol for interacting with DeskPro messaging functionality. +/// +/// The `DeskPro` class provides methods for initializing the Messenger, managing user information, +/// handling push notifications, and presenting the DeskPro messaging interface. +/// +public class DeskPro: Messenger { + + private var messengerConfig: MessengerConfig + + /// Coordinator to make sure that only one instance of webView is opened. + private var coordinator: PresentCoordinator + + /// User defaults manager for storing user-related information. + private var appUserDefaults: AppUserDefaults? + + /// Each Deskpro instance is having its own eventRouter to handle events in chat. + public var eventRouter: EventRouter + + /// Initializes the functionality of the application. + /// + /// This method is a constructor for creating Deskpro objects with specific configurations and prepare for the execution of other features. + /// + ///- Parameter messengerConfig: The configuration object containing settings for the DeskPro Messenger. + /// + public init(messengerConfig: MessengerConfig, containingViewController: UIViewController, enableAutologging: Bool = false) { + self.eventRouter = .init(enableAutologging: enableAutologging) + self.messengerConfig = messengerConfig + self.coordinator = PresentCoordinator(containingViewController: containingViewController, eventRouter: eventRouter) + self.appUserDefaults = AppUserDefaults(appId: messengerConfig.appId) + } + + /// Performs a test operation and returns a result as a String. + /// + /// The method is intended to simulate a test scenario and provide a String result based on the outcome of the test. + /// + /// - Returns: A String representing the result of the test operation. + public func test() -> String { + return "Hello world from Messenger!" + } + + /// Sets user information for the application. + /// + /// This function updates or initializes the user information for the application. + /// The [User] object containing the user information. + /// + /// - Parameter user: The [User](x-source-tag://User) object containing the user information. + /// + public func setUserInfo(user: User) { + appUserDefaults?.setUserInfo(user) + } + + /// Sets a user JWT token that enables Messenger to treat this user as a logged-in user. + /// + /// - Parameter userJwt: The JSON Web Token (JWT) representing the user's authentication. + /// + /// - Returns: `true` if the token is successfully saved, `false` otherwise. + @discardableResult + public func authorizeUser(userJwt: String) -> Bool { + appUserDefaults?.setJwtToken(userJwt) + return true + } + + /// Logs out the current user from the SDK session. + /// + /// This method performs a logout operation, ending the current user's session with the SDK. After calling this method, the user will need to log in again to use the SDK features. + /// + /// - Returns: `true` if the logout operation is successful; `false` otherwise. + @discardableResult + public func forgetUser() -> Bool { + appUserDefaults?.clear() + return true + } + + /// Sets the push registration token for the current user. + /// + /// This method associates the provided device token with the current user, enabling the SDK to send push notifications to the specified device. + /// + /// - Parameter token: The push registration token obtained from the device. + /// + /// - Returns: `true` if the push registration token is successfully set; `false` otherwise. + public func setPushRegistrationToken(token: String) -> Bool { + // TODO: Not yet implemented + return true + } + + /// Checks whether a push notification is related to the DeskPro SDK. + /// + /// This method examines the provided push notification data to determine whether it is intended for the DeskPro SDK. + /// + /// - Parameter pushNotification: The push notification data to be analyzed. + /// + /// - Returns: `true` if the push notification is related to DeskPro; `false` otherwise. + /// + /// - Tag: isDeskProPushNotification + public func isDeskProPushNotification(pushNotification: PushNotificationData) -> Bool { + // TODO: Not yet implemented + return true + } + + /// Handles the incoming push notification data if it is related to DeskPro. + /// + /// We recommend calling [isDeskProPushNotification](x-source-tag://isDeskProPushNotification) method before invoking this method to check if the push notification is related to DeskPro. If the check is successful, this method processes the provided push notification data and takes appropriate actions based on its content. + /// + /// If the push notification is not related to DeskPro, it is advisable to handle it appropriately. + /// + /// - Parameter pushNotification: The push notification data to be handled. + /// + public func handlePushNotification(pushNotification: PushNotificationData) { + // TODO: Not yet implemented + } + + /// Provides a [PresentBuilder](x-source-tag://PresentBuilder) for constructing presentation paths within the application. + /// + /// This function returns a [PresentBuilder](x-source-tag://PresentBuilder) instance, allowing the construction of presentation paths for various features within the application. The resulting paths can be used to navigate or present specific content. + /// + /// - Returns: A [PresentBuilder](x-source-tag://PresentBuilder) instance to start building presentation paths. + /// + public func present() -> PresentBuilder { + let url = messengerConfig.appUrl//.appending(messengerConfig.appId) + //return PresentBuilder(url: url, containingViewController: containingViewController) + return PresentBuilder(url: url, appId: messengerConfig.appId, coordinator: coordinator) + } + + /// Closes the chat view presented by the DeskPro SDK. + /// + /// This method closes the currently displayed chat view, terminating the user's interaction with the DeskPro content. + /// + public func close() { + // TODO: Not yet implemented + } + + /// Retrieves the number of unread conversations in the user's inbox. + /// + /// This method returns the count of conversations marked as unread in the user's inbox. + /// + /// - Returns: The number of unread conversations in the inbox. + /// + public func getUnreadConversationCount() -> Int { + // TODO: Not yet implemented + return 0 + } + + /// Enables logging for the DeskPro SDK. + /// + /// This method turns on logging for the DeskPro SDK, allowing detailed information to be logged for debugging and troubleshooting purposes. + /// + public func enableLogging() { + // TODO: Not yet implemented + } +} diff --git a/Sources/DeskproFramework.xcframework/Info.plist b/Sources/DeskproFramework.xcframework/Info.plist deleted file mode 100644 index d1adb58..0000000 --- a/Sources/DeskproFramework.xcframework/Info.plist +++ /dev/null @@ -1,40 +0,0 @@ - - - - - AvailableLibraries - - - LibraryIdentifier - ios-arm64_x86_64-simulator - LibraryPath - DeskproFramework.framework - SupportedArchitectures - - arm64 - x86_64 - - SupportedPlatform - ios - SupportedPlatformVariant - simulator - - - LibraryIdentifier - ios-arm64 - LibraryPath - DeskproFramework.framework - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - - - CFBundlePackageType - XFWK - XCFrameworkFormatVersion - 1.0 - - diff --git a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/DeskproFramework b/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/DeskproFramework deleted file mode 100755 index 8c7b790..0000000 Binary files a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/DeskproFramework and /dev/null differ diff --git a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Headers/DeskproFramework-Swift.h b/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Headers/DeskproFramework-Swift.h deleted file mode 100644 index fb23365..0000000 --- a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Headers/DeskproFramework-Swift.h +++ /dev/null @@ -1,278 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Generated by Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51) -#ifndef DESKPROFRAMEWORK_SWIFT_H -#define DESKPROFRAMEWORK_SWIFT_H -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgcc-compat" - -#if !defined(__has_include) -# define __has_include(x) 0 -#endif -#if !defined(__has_attribute) -# define __has_attribute(x) 0 -#endif -#if !defined(__has_feature) -# define __has_feature(x) 0 -#endif -#if !defined(__has_warning) -# define __has_warning(x) 0 -#endif - -#if __has_include() -# include -#endif - -#pragma clang diagnostic ignored "-Wduplicate-method-match" -#pragma clang diagnostic ignored "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include -#include -#include -#else -#include -#include -#include -#endif - -#if !defined(SWIFT_TYPEDEFS) -# define SWIFT_TYPEDEFS 1 -# if __has_include() -# include -# elif !defined(__cplusplus) -typedef uint_least16_t char16_t; -typedef uint_least32_t char32_t; -# endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); -#endif - -#if !defined(SWIFT_PASTE) -# define SWIFT_PASTE_HELPER(x, y) x##y -# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) -#endif -#if !defined(SWIFT_METATYPE) -# define SWIFT_METATYPE(X) Class -#endif -#if !defined(SWIFT_CLASS_PROPERTY) -# if __has_feature(objc_class_property) -# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -# else -# define SWIFT_CLASS_PROPERTY(...) -# endif -#endif - -#if __has_attribute(objc_runtime_name) -# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -# define SWIFT_RUNTIME_NAME(X) -#endif -#if __has_attribute(swift_name) -# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -# define SWIFT_COMPILE_NAME(X) -#endif -#if __has_attribute(objc_method_family) -# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -# define SWIFT_METHOD_FAMILY(X) -#endif -#if __has_attribute(noescape) -# define SWIFT_NOESCAPE __attribute__((noescape)) -#else -# define SWIFT_NOESCAPE -#endif -#if __has_attribute(ns_consumed) -# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -# define SWIFT_RELEASES_ARGUMENT -#endif -#if __has_attribute(warn_unused_result) -# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -# define SWIFT_WARN_UNUSED_RESULT -#endif -#if __has_attribute(noreturn) -# define SWIFT_NORETURN __attribute__((noreturn)) -#else -# define SWIFT_NORETURN -#endif -#if !defined(SWIFT_CLASS_EXTRA) -# define SWIFT_CLASS_EXTRA -#endif -#if !defined(SWIFT_PROTOCOL_EXTRA) -# define SWIFT_PROTOCOL_EXTRA -#endif -#if !defined(SWIFT_ENUM_EXTRA) -# define SWIFT_ENUM_EXTRA -#endif -#if !defined(SWIFT_CLASS) -# if __has_attribute(objc_subclassing_restricted) -# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# else -# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# endif -#endif -#if !defined(SWIFT_RESILIENT_CLASS) -# if __has_attribute(objc_class_stub) -# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) -# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) -# else -# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) -# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) -# endif -#endif - -#if !defined(SWIFT_PROTOCOL) -# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#endif - -#if !defined(SWIFT_EXTENSION) -# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) -#endif - -#if !defined(OBJC_DESIGNATED_INITIALIZER) -# if __has_attribute(objc_designated_initializer) -# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) -# else -# define OBJC_DESIGNATED_INITIALIZER -# endif -#endif -#if !defined(SWIFT_ENUM_ATTR) -# if defined(__has_attribute) && __has_attribute(enum_extensibility) -# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) -# else -# define SWIFT_ENUM_ATTR(_extensibility) -# endif -#endif -#if !defined(SWIFT_ENUM) -# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -# if __has_feature(generalized_swift_name) -# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -# else -# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) -# endif -#endif -#if !defined(SWIFT_UNAVAILABLE) -# define SWIFT_UNAVAILABLE __attribute__((unavailable)) -#endif -#if !defined(SWIFT_UNAVAILABLE_MSG) -# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) -#endif -#if !defined(SWIFT_AVAILABILITY) -# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) -#endif -#if !defined(SWIFT_WEAK_IMPORT) -# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) -#endif -#if !defined(SWIFT_DEPRECATED) -# define SWIFT_DEPRECATED __attribute__((deprecated)) -#endif -#if !defined(SWIFT_DEPRECATED_MSG) -# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) -#endif -#if __has_feature(attribute_diagnose_if_objc) -# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) -#else -# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#if defined(__OBJC__) -#if !defined(IBSegueAction) -# define IBSegueAction -#endif -#endif -#if !defined(SWIFT_EXTERN) -# if defined(__cplusplus) -# define SWIFT_EXTERN extern "C" -# else -# define SWIFT_EXTERN extern -# endif -#endif -#if !defined(SWIFT_CALL) -# define SWIFT_CALL __attribute__((swiftcall)) -#endif -#if defined(__cplusplus) -#if !defined(SWIFT_NOEXCEPT) -# define SWIFT_NOEXCEPT noexcept -#endif -#else -#if !defined(SWIFT_NOEXCEPT) -# define SWIFT_NOEXCEPT -#endif -#endif -#if defined(__cplusplus) -#if !defined(SWIFT_CXX_INT_DEFINED) -#define SWIFT_CXX_INT_DEFINED -namespace swift { -using Int = ptrdiff_t; -using UInt = size_t; -} -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import CoreFoundation; -@import UIKit; -#endif - -#endif -#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" -#pragma clang diagnostic ignored "-Wduplicate-method-arg" -#if __has_warning("-Wpragma-clang-attribute") -# pragma clang diagnostic ignored "-Wpragma-clang-attribute" -#endif -#pragma clang diagnostic ignored "-Wunknown-pragmas" -#pragma clang diagnostic ignored "-Wnullability" -#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" - -#if __has_attribute(external_source_symbol) -# pragma push_macro("any") -# undef any -# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="DeskproFramework",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) -# pragma pop_macro("any") -#endif - -#if defined(__OBJC__) -@class NSCoder; - -/// DeskproButton is a customizable, rounded UIButton subclass that provides an easy way to create a floating action button with shadow effects and configurable positioning within a view. It supports setting images, colors, and position with minimal setup. -SWIFT_CLASS("_TtC16DeskproFramework13DeskproButton") -@interface DeskproButton : UIButton -/// Required initializer for decoding the button from a nib or storyboard. -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE; -- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE; -@end - - - -#endif -#if defined(__cplusplus) -#endif -#if __has_attribute(external_source_symbol) -# pragma clang attribute pop -#endif -#pragma clang diagnostic pop -#endif - -#else -#error unsupported Swift architecture -#endif diff --git a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Headers/DeskproFramework.h b/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Headers/DeskproFramework.h deleted file mode 100644 index b702304..0000000 --- a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Headers/DeskproFramework.h +++ /dev/null @@ -1,18 +0,0 @@ -// -// DeskproFramework.h -// DeskproFramework -// -// Created by QSD BiH on 4. 1. 2024.. -// - -#import - -//! Project version number for DeskproFramework. -FOUNDATION_EXPORT double DeskproFrameworkVersionNumber; - -//! Project version string for DeskproFramework. -FOUNDATION_EXPORT const unsigned char DeskproFrameworkVersionString[]; - -// In this header, you should import all the public headers of your framework using statements like #import - - diff --git a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Info.plist b/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Info.plist deleted file mode 100644 index 960caeb..0000000 Binary files a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Info.plist and /dev/null 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 deleted file mode 100644 index 6c0fa6b..0000000 --- a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.abi.json +++ /dev/null @@ -1,2434 +0,0 @@ -{ - "ABIRoot": { - "kind": "Root", - "name": "TopLevel", - "printedName": "TopLevel", - "children": [ - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "DeskPro", - "printedName": "DeskPro", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(messengerConfig:containingViewController:)", - "children": [ - { - "kind": "TypeNominal", - "name": "DeskPro", - "printedName": "DeskproFramework.DeskPro", - "usr": "s:16DeskproFramework7DeskProC" - }, - { - "kind": "TypeNominal", - "name": "MessengerConfig", - "printedName": "DeskproFramework.MessengerConfig", - "usr": "s:16DeskproFramework15MessengerConfigC" - }, - { - "kind": "TypeNominal", - "name": "UIViewController", - "printedName": "UIKit.UIViewController", - "usr": "c:objc(cs)UIViewController" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework7DeskProC15messengerConfig24containingViewControllerAcA09MessengerF0C_So06UIViewI0Ctcfc", - "mangledName": "$s16DeskproFramework7DeskProC15messengerConfig24containingViewControllerAcA09MessengerF0C_So06UIViewI0Ctcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "test", - "printedName": "test()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC4testSSyF", - "mangledName": "$s16DeskproFramework7DeskProC4testSSyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "setUserInfo", - "printedName": "setUserInfo(user:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "User", - "printedName": "DeskproFramework.User", - "usr": "s:16DeskproFramework4UserC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC11setUserInfo4useryAA0F0C_tF", - "mangledName": "$s16DeskproFramework7DeskProC11setUserInfo4useryAA0F0C_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "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", - "printedName": "forgetUser()", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC10forgetUserSbyF", - "mangledName": "$s16DeskproFramework7DeskProC10forgetUserSbyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "setPushRegistrationToken", - "printedName": "setPushRegistrationToken(token:)", - "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:16DeskproFramework7DeskProC24setPushRegistrationToken5tokenSbSS_tF", - "mangledName": "$s16DeskproFramework7DeskProC24setPushRegistrationToken5tokenSbSS_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "isDeskProPushNotification", - "printedName": "isDeskProPushNotification(pushNotification:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "PushNotificationData", - "printedName": "DeskproFramework.PushNotificationData", - "usr": "s:16DeskproFramework20PushNotificationDataC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC02iscD16PushNotification04pushG0SbAA0fG4DataC_tF", - "mangledName": "$s16DeskproFramework7DeskProC02iscD16PushNotification04pushG0SbAA0fG4DataC_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "handlePushNotification", - "printedName": "handlePushNotification(pushNotification:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "PushNotificationData", - "printedName": "DeskproFramework.PushNotificationData", - "usr": "s:16DeskproFramework20PushNotificationDataC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC22handlePushNotification04pushG0yAA0fG4DataC_tF", - "mangledName": "$s16DeskproFramework7DeskProC22handlePushNotification04pushG0yAA0fG4DataC_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "present", - "printedName": "present()", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC7presentAA14PresentBuilderCyF", - "mangledName": "$s16DeskproFramework7DeskProC7presentAA14PresentBuilderCyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "close", - "printedName": "close()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC5closeyyF", - "mangledName": "$s16DeskproFramework7DeskProC5closeyyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "getUnreadConversationCount", - "printedName": "getUnreadConversationCount()", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC26getUnreadConversationCountSiyF", - "mangledName": "$s16DeskproFramework7DeskProC26getUnreadConversationCountSiyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "enableLogging", - "printedName": "enableLogging()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC13enableLoggingyyF", - "mangledName": "$s16DeskproFramework7DeskProC13enableLoggingyyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework7DeskProC", - "mangledName": "$s16DeskproFramework7DeskProC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "DeskproButton", - "printedName": "DeskproButton", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(size:)", - "children": [ - { - "kind": "TypeNominal", - "name": "DeskproButton", - "printedName": "DeskproFramework.DeskproButton", - "usr": "c:@M@DeskproFramework@objc(cs)DeskproButton" - }, - { - "kind": "TypeNominal", - "name": "CGFloat", - "printedName": "CoreGraphics.CGFloat", - "hasDefaultArg": true, - "usr": "s:14CoreFoundation7CGFloatV" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework0A6ButtonC4sizeAC14CoreFoundation7CGFloatV_tcfc", - "mangledName": "$s16DeskproFramework0A6ButtonC4sizeAC12CoreGraphics7CGFloatV_tcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "Custom", - "AccessControl", - "RawDocComment" - ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "setImage", - "printedName": "setImage(named:color:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "UIKit.UIColor?", - "children": [ - { - "kind": "TypeNominal", - "name": "UIColor", - "printedName": "UIKit.UIColor", - "usr": "c:objc(cs)UIColor" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework0A6ButtonC8setImage5named5colorySS_So7UIColorCSgtF", - "mangledName": "$s16DeskproFramework0A6ButtonC8setImage5named5colorySS_So7UIColorCSgtF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "Custom", - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "setColor", - "printedName": "setColor(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "UIColor", - "printedName": "UIKit.UIColor", - "usr": "c:objc(cs)UIColor" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework0A6ButtonC8setColoryySo7UIColorCF", - "mangledName": "$s16DeskproFramework0A6ButtonC8setColoryySo7UIColorCF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "Custom", - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "setPosition", - "printedName": "setPosition(_:inView:x:y:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - }, - { - "kind": "TypeNominal", - "name": "UIView", - "printedName": "UIKit.UIView", - "usr": "c:objc(cs)UIView" - }, - { - "kind": "TypeNominal", - "name": "CGFloat", - "printedName": "CoreGraphics.CGFloat", - "hasDefaultArg": true, - "usr": "s:14CoreFoundation7CGFloatV" - }, - { - "kind": "TypeNominal", - "name": "CGFloat", - "printedName": "CoreGraphics.CGFloat", - "hasDefaultArg": true, - "usr": "s:14CoreFoundation7CGFloatV" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework0A6ButtonC11setPosition_6inView1x1yyAC0cE0O_So6UIViewC14CoreFoundation7CGFloatVANtF", - "mangledName": "$s16DeskproFramework0A6ButtonC11setPosition_6inView1x1yyAC0cE0O_So6UIViewC12CoreGraphics7CGFloatVANtF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "Custom", - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "TypeDecl", - "name": "ButtonPosition", - "printedName": "ButtonPosition", - "children": [ - { - "kind": "Var", - "name": "topLeft", - "printedName": "topLeft", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(DeskproFramework.DeskproButton.ButtonPosition.Type) -> DeskproFramework.DeskproButton.ButtonPosition", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO7topLeftyA2EmF", - "mangledName": "$s16DeskproFramework0A6ButtonC0C8PositionO7topLeftyA2EmF", - "moduleName": "DeskproFramework" - }, - { - "kind": "Var", - "name": "topRight", - "printedName": "topRight", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(DeskproFramework.DeskproButton.ButtonPosition.Type) -> DeskproFramework.DeskproButton.ButtonPosition", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO8topRightyA2EmF", - "mangledName": "$s16DeskproFramework0A6ButtonC0C8PositionO8topRightyA2EmF", - "moduleName": "DeskproFramework" - }, - { - "kind": "Var", - "name": "bottomLeft", - "printedName": "bottomLeft", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(DeskproFramework.DeskproButton.ButtonPosition.Type) -> DeskproFramework.DeskproButton.ButtonPosition", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO10bottomLeftyA2EmF", - "mangledName": "$s16DeskproFramework0A6ButtonC0C8PositionO10bottomLeftyA2EmF", - "moduleName": "DeskproFramework" - }, - { - "kind": "Var", - "name": "bottomRight", - "printedName": "bottomRight", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(DeskproFramework.DeskproButton.ButtonPosition.Type) -> DeskproFramework.DeskproButton.ButtonPosition", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO11bottomRightyA2EmF", - "mangledName": "$s16DeskproFramework0A6ButtonC0C8PositionO11bottomRightyA2EmF", - "moduleName": "DeskproFramework" - }, - { - "kind": "Var", - "name": "custom", - "printedName": "custom", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(DeskproFramework.DeskproButton.ButtonPosition.Type) -> (CoreFoundation.CGPoint) -> DeskproFramework.DeskproButton.ButtonPosition", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(CoreFoundation.CGPoint) -> DeskproFramework.DeskproButton.ButtonPosition", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - }, - { - "kind": "TypeNominal", - "name": "CGPoint", - "printedName": "CoreFoundation.CGPoint", - "usr": "c:@S@CGPoint" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO6customyAESo7CGPointVcAEmF", - "mangledName": "$s16DeskproFramework0A6ButtonC0C8PositionO6customyAESo7CGPointVcAEmF", - "moduleName": "DeskproFramework" - } - ], - "declKind": "Enum", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO", - "mangledName": "$s16DeskproFramework0A6ButtonC0C8PositionO", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(frame:)", - "children": [ - { - "kind": "TypeNominal", - "name": "DeskproButton", - "printedName": "DeskproFramework.DeskproButton", - "usr": "c:@M@DeskproFramework@objc(cs)DeskproButton" - }, - { - "kind": "TypeNominal", - "name": "CGRect", - "printedName": "CoreFoundation.CGRect", - "usr": "c:@S@CGRect" - } - ], - "declKind": "Constructor", - "usr": "c:@M@DeskproFramework@objc(cs)DeskproButton(im)initWithFrame:", - "mangledName": "$s16DeskproFramework0A6ButtonC5frameACSo6CGRectV_tcfc", - "moduleName": "DeskproFramework", - "overriding": true, - "implicit": true, - "objc_name": "initWithFrame:", - "declAttributes": [ - "Dynamic", - "ObjC", - "Custom", - "Override" - ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "c:@M@DeskproFramework@objc(cs)DeskproButton", - "mangledName": "$s16DeskproFramework0A6ButtonC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "Custom", - "AccessControl", - "RawDocComment", - "ObjC" - ], - "superclassUsr": "c:objc(cs)UIButton", - "hasMissingDesignatedInitializers": true, - "superclassNames": [ - "UIKit.UIButton", - "UIKit.UIControl", - "UIKit.UIView", - "UIKit.UIResponder", - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "_KeyValueCodingAndObservingPublishing", - "printedName": "_KeyValueCodingAndObservingPublishing", - "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP", - "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP" - }, - { - "kind": "Conformance", - "name": "_KeyValueCodingAndObserving", - "printedName": "_KeyValueCodingAndObserving", - "usr": "s:10Foundation27_KeyValueCodingAndObservingP", - "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "__DefaultCustomPlaygroundQuickLookable", - "printedName": "__DefaultCustomPlaygroundQuickLookable", - "usr": "s:s38__DefaultCustomPlaygroundQuickLookableP", - "mangledName": "$ss38__DefaultCustomPlaygroundQuickLookableP" - } - ] - }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "PresentCoordinator", - "printedName": "PresentCoordinator", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(containingViewController:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentCoordinator", - "printedName": "DeskproFramework.PresentCoordinator", - "usr": "s:16DeskproFramework18PresentCoordinatorC" - }, - { - "kind": "TypeNominal", - "name": "UIViewController", - "printedName": "UIKit.UIViewController", - "usr": "c:objc(cs)UIViewController" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework18PresentCoordinatorC24containingViewControllerACSo06UIViewG0C_tcfc", - "mangledName": "$s16DeskproFramework18PresentCoordinatorC24containingViewControllerACSo06UIViewG0C_tcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework18PresentCoordinatorC", - "mangledName": "$s16DeskproFramework18PresentCoordinatorC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "User", - "printedName": "User", - "children": [ - { - "kind": "Var", - "name": "name", - "printedName": "name", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework4UserC4nameSSSgvp", - "mangledName": "$s16DeskproFramework4UserC4nameSSSgvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC4nameSSSgvg", - "mangledName": "$s16DeskproFramework4UserC4nameSSSgvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC4nameSSSgvs", - "mangledName": "$s16DeskproFramework4UserC4nameSSSgvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC4nameSSSgvM", - "mangledName": "$s16DeskproFramework4UserC4nameSSSgvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "firstName", - "printedName": "firstName", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework4UserC9firstNameSSSgvp", - "mangledName": "$s16DeskproFramework4UserC9firstNameSSSgvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC9firstNameSSSgvg", - "mangledName": "$s16DeskproFramework4UserC9firstNameSSSgvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC9firstNameSSSgvs", - "mangledName": "$s16DeskproFramework4UserC9firstNameSSSgvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC9firstNameSSSgvM", - "mangledName": "$s16DeskproFramework4UserC9firstNameSSSgvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "lastName", - "printedName": "lastName", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework4UserC8lastNameSSSgvp", - "mangledName": "$s16DeskproFramework4UserC8lastNameSSSgvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC8lastNameSSSgvg", - "mangledName": "$s16DeskproFramework4UserC8lastNameSSSgvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC8lastNameSSSgvs", - "mangledName": "$s16DeskproFramework4UserC8lastNameSSSgvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC8lastNameSSSgvM", - "mangledName": "$s16DeskproFramework4UserC8lastNameSSSgvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "email", - "printedName": "email", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework4UserC5emailSSSgvp", - "mangledName": "$s16DeskproFramework4UserC5emailSSSgvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC5emailSSSgvg", - "mangledName": "$s16DeskproFramework4UserC5emailSSSgvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC5emailSSSgvs", - "mangledName": "$s16DeskproFramework4UserC5emailSSSgvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC5emailSSSgvM", - "mangledName": "$s16DeskproFramework4UserC5emailSSSgvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(name:firstName:lastName:email:)", - "children": [ - { - "kind": "TypeNominal", - "name": "User", - "printedName": "DeskproFramework.User", - "usr": "s:16DeskproFramework4UserC" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework4UserC4name9firstName04lastF05emailACSSSg_A3Htcfc", - "mangledName": "$s16DeskproFramework4UserC4name9firstName04lastF05emailACSSSg_A3Htcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "init_kind": "Designated" - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(from:)", - "children": [ - { - "kind": "TypeNominal", - "name": "User", - "printedName": "DeskproFramework.User", - "usr": "s:16DeskproFramework4UserC" - }, - { - "kind": "TypeNominal", - "name": "Decoder", - "printedName": "Swift.Decoder", - "usr": "s:s7DecoderP" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework4UserC4fromACs7Decoder_p_tKcfc", - "mangledName": "$s16DeskproFramework4UserC4fromACs7Decoder_p_tKcfc", - "moduleName": "DeskproFramework", - "implicit": true, - "declAttributes": [ - "Required" - ], - "throwing": true, - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "encode", - "printedName": "encode(to:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Encoder", - "printedName": "Swift.Encoder", - "usr": "s:s7EncoderP" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework4UserC6encode2toys7Encoder_p_tKF", - "mangledName": "$s16DeskproFramework4UserC6encode2toys7Encoder_p_tKF", - "moduleName": "DeskproFramework", - "implicit": true, - "throwing": true, - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework4UserC", - "mangledName": "$s16DeskproFramework4UserC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Decodable", - "printedName": "Decodable", - "usr": "s:Se", - "mangledName": "$sSe" - }, - { - "kind": "Conformance", - "name": "Encodable", - "printedName": "Encodable", - "usr": "s:SE", - "mangledName": "$sSE" - } - ] - }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "PresentBuilder", - "printedName": "PresentBuilder", - "children": [ - { - "kind": "Var", - "name": "url", - "printedName": "url", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvp", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasStorage", - "AccessControl", - "RawDocComment" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvg", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvs", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvM", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(url:appId:coordinator:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "PresentCoordinator", - "printedName": "DeskproFramework.PresentCoordinator", - "usr": "s:16DeskproFramework18PresentCoordinatorC" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework14PresentBuilderC3url5appId11coordinatorACSS_SSAA0C11CoordinatorCtcfc", - "mangledName": "$s16DeskproFramework14PresentBuilderC3url5appId11coordinatorACSS_SSAA0C11CoordinatorCtcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "chatHistory", - "printedName": "chatHistory(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC11chatHistoryyACSiF", - "mangledName": "$s16DeskproFramework14PresentBuilderC11chatHistoryyACSiF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "article", - "printedName": "article(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC7articleyACSiF", - "mangledName": "$s16DeskproFramework14PresentBuilderC7articleyACSiF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "comments", - "printedName": "comments()", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC8commentsACyF", - "mangledName": "$s16DeskproFramework14PresentBuilderC8commentsACyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "show", - "printedName": "show()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC4showyyF", - "mangledName": "$s16DeskproFramework14PresentBuilderC4showyyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework14PresentBuilderC", - "mangledName": "$s16DeskproFramework14PresentBuilderC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "WebKit", - "printedName": "WebKit", - "declKind": "Import", - "moduleName": "DeskproFramework" - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "PushNotificationData", - "printedName": "PushNotificationData", - "declKind": "Class", - "usr": "s:16DeskproFramework20PushNotificationDataC", - "mangledName": "$s16DeskproFramework20PushNotificationDataC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "hasMissingDesignatedInitializers": true - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "MessengerConfig", - "printedName": "MessengerConfig", - "children": [ - { - "kind": "Var", - "name": "appUrl", - "printedName": "appUrl", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvp", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvg", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvs", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvM", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "appId", - "printedName": "appId", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvp", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvg", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvs", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvM", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "appKey", - "printedName": "appKey", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvp", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvg", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvs", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvM", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(appUrl:appId:appKey:)", - "children": [ - { - "kind": "TypeNominal", - "name": "MessengerConfig", - "printedName": "DeskproFramework.MessengerConfig", - "usr": "s:16DeskproFramework15MessengerConfigC" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrl0E2Id0E3KeyACSS_S2SSgtcfc", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrl0E2Id0E3KeyACSS_S2SSgtcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework15MessengerConfigC", - "mangledName": "$s16DeskproFramework15MessengerConfigC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ] - } - ], - "json_format_version": 8 - }, - "ConstValues": [ - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/UI\/DeskproButton.swift", - "kind": "IntegerLiteral", - "offset": 516, - "length": 2, - "value": "56" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/UI\/DeskproButton.swift", - "kind": "IntegerLiteral", - "offset": 631, - "length": 2, - "value": "56" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/UI\/DeskproButton.swift", - "kind": "IntegerLiteral", - "offset": 2624, - "length": 2, - "value": "16" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/UI\/DeskproButton.swift", - "kind": "IntegerLiteral", - "offset": 2641, - "length": 2, - "value": "16" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/UI\/DeskproButton.swift", - "kind": "StringLiteral", - "offset": 380, - "length": 13, - "value": "\"DeskproFramework.DeskproButton\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentCoordinator.swift", - "kind": "StringLiteral", - "offset": 466, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 841, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "IntegerLiteral", - "offset": 384, - "length": 2, - "value": "58" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 387, - "length": 5, - "value": "255.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "IntegerLiteral", - "offset": 401, - "length": 3, - "value": "141" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 405, - "length": 5, - "value": "255.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "IntegerLiteral", - "offset": 418, - "length": 3, - "value": "222" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 422, - "length": 5, - "value": "255.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 436, - "length": 3, - "value": "1.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "IntegerLiteral", - "offset": 486, - "length": 1, - "value": "5" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 488, - "length": 5, - "value": "255.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "IntegerLiteral", - "offset": 502, - "length": 3, - "value": "100" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 506, - "length": 5, - "value": "255.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "IntegerLiteral", - "offset": 519, - "length": 3, - "value": "192" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 523, - "length": 5, - "value": "255.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 537, - "length": 3, - "value": "1.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 928, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "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": 9671, - "length": 12, - "value": "\"reloadPage\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 9707, - "length": 13, - "value": "\"getUserInfo\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 9748, - "length": 17, - "value": "\"getUserJwtToken\"" - }, - { - "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": 9671, - "length": 12, - "value": "\"reloadPage\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 9707, - "length": 13, - "value": "\"getUserInfo\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 9748, - "length": 17, - "value": "\"getUserJwtToken\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "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": 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": 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": 11722, - "length": 2, - "value": "\"\")\n },\n appEvent: async (messengerId, event) => {\n \/\/alert(event.id)\n },\n },\n childMethods: undefined,\n};\"" - } - ] -} \ No newline at end of file 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 deleted file mode 100644 index f055223..0000000 --- a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.private.swiftinterface +++ /dev/null @@ -1,70 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51) -// swift-module-flags: -target arm64-apple-ios11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name DeskproFramework -// swift-module-flags-ignorable: -enable-bare-slash-regex -@_exported import DeskproFramework -import Foundation -import Swift -import UIKit -import WebKit -import _Concurrency -import _StringProcessing -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 - public func handlePushNotification(pushNotification: DeskproFramework.PushNotificationData) - public func present() -> DeskproFramework.PresentBuilder - public func close() - public func getUnreadConversationCount() -> Swift.Int - public func enableLogging() - @objc deinit -} -@objc @_hasMissingDesignatedInitializers @_Concurrency.MainActor(unsafe) public class DeskproButton : UIKit.UIButton { - @_Concurrency.MainActor(unsafe) public init(size: CoreFoundation.CGFloat = 56) - @_Concurrency.MainActor(unsafe) public func setImage(named imageName: Swift.String, color: UIKit.UIColor? = nil) - @_Concurrency.MainActor(unsafe) public func setColor(_ color: UIKit.UIColor) - @_Concurrency.MainActor(unsafe) public func setPosition(_ position: DeskproFramework.DeskproButton.ButtonPosition, inView view: UIKit.UIView, x: CoreFoundation.CGFloat = 16, y: CoreFoundation.CGFloat = 16) - public enum ButtonPosition { - case topLeft, topRight, bottomLeft, bottomRight - case custom(CoreFoundation.CGPoint) - } - @objc deinit -} -public class PresentCoordinator { - public init(containingViewController: UIKit.UIViewController) - @objc deinit -} -public class User : Swift.Codable { - public var name: Swift.String? - public var firstName: Swift.String? - public var lastName: Swift.String? - public var email: Swift.String? - public init(name: Swift.String? = nil, firstName: Swift.String? = nil, lastName: Swift.String? = nil, email: Swift.String? = nil) - @objc deinit - public func encode(to encoder: Swift.Encoder) throws - required public init(from decoder: Swift.Decoder) throws -} -public class PresentBuilder { - public var url: Swift.String - public init(url: Swift.String, appId: Swift.String, coordinator: DeskproFramework.PresentCoordinator) - public func chatHistory(_ chatId: Swift.Int) -> DeskproFramework.PresentBuilder - public func article(_ articleId: Swift.Int) -> DeskproFramework.PresentBuilder - public func comments() -> DeskproFramework.PresentBuilder - public func show() - @objc deinit -} -@_hasMissingDesignatedInitializers public class PushNotificationData { - @objc deinit -} -public class MessengerConfig { - public var appUrl: Swift.String - public var appId: Swift.String - public var appKey: Swift.String? - public init(appUrl: Swift.String, appId: Swift.String, appKey: Swift.String? = nil) - @objc deinit -} 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 deleted file mode 100644 index 752c30b..0000000 Binary files a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftdoc and /dev/null 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 deleted file mode 100644 index f055223..0000000 --- a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftinterface +++ /dev/null @@ -1,70 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51) -// swift-module-flags: -target arm64-apple-ios11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name DeskproFramework -// swift-module-flags-ignorable: -enable-bare-slash-regex -@_exported import DeskproFramework -import Foundation -import Swift -import UIKit -import WebKit -import _Concurrency -import _StringProcessing -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 - public func handlePushNotification(pushNotification: DeskproFramework.PushNotificationData) - public func present() -> DeskproFramework.PresentBuilder - public func close() - public func getUnreadConversationCount() -> Swift.Int - public func enableLogging() - @objc deinit -} -@objc @_hasMissingDesignatedInitializers @_Concurrency.MainActor(unsafe) public class DeskproButton : UIKit.UIButton { - @_Concurrency.MainActor(unsafe) public init(size: CoreFoundation.CGFloat = 56) - @_Concurrency.MainActor(unsafe) public func setImage(named imageName: Swift.String, color: UIKit.UIColor? = nil) - @_Concurrency.MainActor(unsafe) public func setColor(_ color: UIKit.UIColor) - @_Concurrency.MainActor(unsafe) public func setPosition(_ position: DeskproFramework.DeskproButton.ButtonPosition, inView view: UIKit.UIView, x: CoreFoundation.CGFloat = 16, y: CoreFoundation.CGFloat = 16) - public enum ButtonPosition { - case topLeft, topRight, bottomLeft, bottomRight - case custom(CoreFoundation.CGPoint) - } - @objc deinit -} -public class PresentCoordinator { - public init(containingViewController: UIKit.UIViewController) - @objc deinit -} -public class User : Swift.Codable { - public var name: Swift.String? - public var firstName: Swift.String? - public var lastName: Swift.String? - public var email: Swift.String? - public init(name: Swift.String? = nil, firstName: Swift.String? = nil, lastName: Swift.String? = nil, email: Swift.String? = nil) - @objc deinit - public func encode(to encoder: Swift.Encoder) throws - required public init(from decoder: Swift.Decoder) throws -} -public class PresentBuilder { - public var url: Swift.String - public init(url: Swift.String, appId: Swift.String, coordinator: DeskproFramework.PresentCoordinator) - public func chatHistory(_ chatId: Swift.Int) -> DeskproFramework.PresentBuilder - public func article(_ articleId: Swift.Int) -> DeskproFramework.PresentBuilder - public func comments() -> DeskproFramework.PresentBuilder - public func show() - @objc deinit -} -@_hasMissingDesignatedInitializers public class PushNotificationData { - @objc deinit -} -public class MessengerConfig { - public var appUrl: Swift.String - public var appId: Swift.String - public var appKey: Swift.String? - public init(appUrl: Swift.String, appId: Swift.String, appKey: Swift.String? = nil) - @objc deinit -} diff --git a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/module.modulemap b/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/module.modulemap deleted file mode 100644 index 85b5614..0000000 --- a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/Modules/module.modulemap +++ /dev/null @@ -1,11 +0,0 @@ -framework module DeskproFramework { - umbrella header "DeskproFramework.h" - - export * - module * { export * } -} - -module DeskproFramework.Swift { - header "DeskproFramework-Swift.h" - requires objc -} diff --git a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/_CodeSignature/CodeResources b/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/_CodeSignature/CodeResources deleted file mode 100644 index d3da856..0000000 --- a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/_CodeSignature/CodeResources +++ /dev/null @@ -1,201 +0,0 @@ - - - - - files - - Headers/DeskproFramework-Swift.h - - dswa5zNDgbncm76OOLQoJIrmipw= - - Headers/DeskproFramework.h - - RMHXevNoitOoYp5STBb9z9/Mph4= - - Info.plist - - JmxrqqF/YmP7Ta/L1IN/ADZ/iSA= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.abi.json - - 4LqHeUfyTPRwhsIOOjgSx1pG5cs= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.private.swiftinterface - - zLw7WRvcWLWz/MYFH/oagPiah2Q= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftdoc - - v7YXLMZrElhXZiGLAHn0dipIdOs= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftinterface - - zLw7WRvcWLWz/MYFH/oagPiah2Q= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftmodule - - w6bhuhF7uVCX2ropGHTBnRxPhXs= - - Modules/module.modulemap - - eqHyBGcIaJ/38M3rrk1mdpmC7wk= - - error_page.html - - EkFlXZYt0IjlDpe06d9zFdHH6g8= - - - files2 - - Headers/DeskproFramework-Swift.h - - hash2 - - HdGNLjShT6QbURDTisFPeydaACYiX2sNI/m9bJO2GYQ= - - - Headers/DeskproFramework.h - - hash2 - - rsCWhjvHPX2MONH0KfAuJwQGSOvtuzZlQxh6oOK9dR8= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.abi.json - - hash2 - - iwQtZW6YGV6OJeJSC4HTUQmd/pIvNmNC4xfk7Y4FQ8U= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.private.swiftinterface - - hash2 - - aLRlK6BVhatIQOEWoZ3vCHzv/D1Iny6NDD2Zmn5+qsA= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftdoc - - hash2 - - pSgDQ5LRl8tdVpfg/Csbk/Bh+5MviaVFuXD3mxGsAXk= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftinterface - - hash2 - - aLRlK6BVhatIQOEWoZ3vCHzv/D1Iny6NDD2Zmn5+qsA= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios.swiftmodule - - hash2 - - SqrBXzillGCuKGNcDQqMPPZHVQP3XCVtJMAXxu3TYfA= - - - Modules/module.modulemap - - hash2 - - Hi49DBhI8r1AVjCvWMwU6EFB8KrvenO3HcnQbIoHFD0= - - - error_page.html - - hash2 - - C808T6Pgl3fRNynkHmHnpwr2L3RnD+XQCCtfXGGqpfM= - - - - rules - - ^.* - - ^.*\.lproj/ - - optional - - weight - 1000 - - ^.*\.lproj/locversion.plist$ - - omit - - weight - 1100 - - ^Base\.lproj/ - - weight - 1010 - - ^version.plist$ - - - rules2 - - .*\.dSYM($|/) - - weight - 11 - - ^(.*/)?\.DS_Store$ - - omit - - weight - 2000 - - ^.* - - ^.*\.lproj/ - - optional - - weight - 1000 - - ^.*\.lproj/locversion.plist$ - - omit - - weight - 1100 - - ^Base\.lproj/ - - weight - 1010 - - ^Info\.plist$ - - omit - - weight - 20 - - ^PkgInfo$ - - omit - - weight - 20 - - ^embedded\.provisionprofile$ - - weight - 20 - - ^version\.plist$ - - weight - 20 - - - - 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 deleted file mode 100755 index 427a175..0000000 Binary files a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/DeskproFramework and /dev/null differ diff --git a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Headers/DeskproFramework-Swift.h b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Headers/DeskproFramework-Swift.h deleted file mode 100644 index 3123840..0000000 --- a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Headers/DeskproFramework-Swift.h +++ /dev/null @@ -1,552 +0,0 @@ -#if 0 -#elif defined(__arm64__) && __arm64__ -// Generated by Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51) -#ifndef DESKPROFRAMEWORK_SWIFT_H -#define DESKPROFRAMEWORK_SWIFT_H -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgcc-compat" - -#if !defined(__has_include) -# define __has_include(x) 0 -#endif -#if !defined(__has_attribute) -# define __has_attribute(x) 0 -#endif -#if !defined(__has_feature) -# define __has_feature(x) 0 -#endif -#if !defined(__has_warning) -# define __has_warning(x) 0 -#endif - -#if __has_include() -# include -#endif - -#pragma clang diagnostic ignored "-Wduplicate-method-match" -#pragma clang diagnostic ignored "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include -#include -#include -#else -#include -#include -#include -#endif - -#if !defined(SWIFT_TYPEDEFS) -# define SWIFT_TYPEDEFS 1 -# if __has_include() -# include -# elif !defined(__cplusplus) -typedef uint_least16_t char16_t; -typedef uint_least32_t char32_t; -# endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); -#endif - -#if !defined(SWIFT_PASTE) -# define SWIFT_PASTE_HELPER(x, y) x##y -# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) -#endif -#if !defined(SWIFT_METATYPE) -# define SWIFT_METATYPE(X) Class -#endif -#if !defined(SWIFT_CLASS_PROPERTY) -# if __has_feature(objc_class_property) -# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -# else -# define SWIFT_CLASS_PROPERTY(...) -# endif -#endif - -#if __has_attribute(objc_runtime_name) -# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -# define SWIFT_RUNTIME_NAME(X) -#endif -#if __has_attribute(swift_name) -# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -# define SWIFT_COMPILE_NAME(X) -#endif -#if __has_attribute(objc_method_family) -# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -# define SWIFT_METHOD_FAMILY(X) -#endif -#if __has_attribute(noescape) -# define SWIFT_NOESCAPE __attribute__((noescape)) -#else -# define SWIFT_NOESCAPE -#endif -#if __has_attribute(ns_consumed) -# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -# define SWIFT_RELEASES_ARGUMENT -#endif -#if __has_attribute(warn_unused_result) -# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -# define SWIFT_WARN_UNUSED_RESULT -#endif -#if __has_attribute(noreturn) -# define SWIFT_NORETURN __attribute__((noreturn)) -#else -# define SWIFT_NORETURN -#endif -#if !defined(SWIFT_CLASS_EXTRA) -# define SWIFT_CLASS_EXTRA -#endif -#if !defined(SWIFT_PROTOCOL_EXTRA) -# define SWIFT_PROTOCOL_EXTRA -#endif -#if !defined(SWIFT_ENUM_EXTRA) -# define SWIFT_ENUM_EXTRA -#endif -#if !defined(SWIFT_CLASS) -# if __has_attribute(objc_subclassing_restricted) -# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# else -# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# endif -#endif -#if !defined(SWIFT_RESILIENT_CLASS) -# if __has_attribute(objc_class_stub) -# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) -# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) -# else -# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) -# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) -# endif -#endif - -#if !defined(SWIFT_PROTOCOL) -# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#endif - -#if !defined(SWIFT_EXTENSION) -# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) -#endif - -#if !defined(OBJC_DESIGNATED_INITIALIZER) -# if __has_attribute(objc_designated_initializer) -# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) -# else -# define OBJC_DESIGNATED_INITIALIZER -# endif -#endif -#if !defined(SWIFT_ENUM_ATTR) -# if defined(__has_attribute) && __has_attribute(enum_extensibility) -# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) -# else -# define SWIFT_ENUM_ATTR(_extensibility) -# endif -#endif -#if !defined(SWIFT_ENUM) -# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -# if __has_feature(generalized_swift_name) -# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -# else -# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) -# endif -#endif -#if !defined(SWIFT_UNAVAILABLE) -# define SWIFT_UNAVAILABLE __attribute__((unavailable)) -#endif -#if !defined(SWIFT_UNAVAILABLE_MSG) -# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) -#endif -#if !defined(SWIFT_AVAILABILITY) -# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) -#endif -#if !defined(SWIFT_WEAK_IMPORT) -# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) -#endif -#if !defined(SWIFT_DEPRECATED) -# define SWIFT_DEPRECATED __attribute__((deprecated)) -#endif -#if !defined(SWIFT_DEPRECATED_MSG) -# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) -#endif -#if __has_feature(attribute_diagnose_if_objc) -# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) -#else -# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#if defined(__OBJC__) -#if !defined(IBSegueAction) -# define IBSegueAction -#endif -#endif -#if !defined(SWIFT_EXTERN) -# if defined(__cplusplus) -# define SWIFT_EXTERN extern "C" -# else -# define SWIFT_EXTERN extern -# endif -#endif -#if !defined(SWIFT_CALL) -# define SWIFT_CALL __attribute__((swiftcall)) -#endif -#if defined(__cplusplus) -#if !defined(SWIFT_NOEXCEPT) -# define SWIFT_NOEXCEPT noexcept -#endif -#else -#if !defined(SWIFT_NOEXCEPT) -# define SWIFT_NOEXCEPT -#endif -#endif -#if defined(__cplusplus) -#if !defined(SWIFT_CXX_INT_DEFINED) -#define SWIFT_CXX_INT_DEFINED -namespace swift { -using Int = ptrdiff_t; -using UInt = size_t; -} -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import CoreFoundation; -@import UIKit; -#endif - -#endif -#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" -#pragma clang diagnostic ignored "-Wduplicate-method-arg" -#if __has_warning("-Wpragma-clang-attribute") -# pragma clang diagnostic ignored "-Wpragma-clang-attribute" -#endif -#pragma clang diagnostic ignored "-Wunknown-pragmas" -#pragma clang diagnostic ignored "-Wnullability" -#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" - -#if __has_attribute(external_source_symbol) -# pragma push_macro("any") -# undef any -# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="DeskproFramework",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) -# pragma pop_macro("any") -#endif - -#if defined(__OBJC__) -@class NSCoder; - -/// DeskproButton is a customizable, rounded UIButton subclass that provides an easy way to create a floating action button with shadow effects and configurable positioning within a view. It supports setting images, colors, and position with minimal setup. -SWIFT_CLASS("_TtC16DeskproFramework13DeskproButton") -@interface DeskproButton : UIButton -/// Required initializer for decoding the button from a nib or storyboard. -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE; -- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE; -@end - - - -#endif -#if defined(__cplusplus) -#endif -#if __has_attribute(external_source_symbol) -# pragma clang attribute pop -#endif -#pragma clang diagnostic pop -#endif - -#elif defined(__x86_64__) && __x86_64__ -// Generated by Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51) -#ifndef DESKPROFRAMEWORK_SWIFT_H -#define DESKPROFRAMEWORK_SWIFT_H -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wgcc-compat" - -#if !defined(__has_include) -# define __has_include(x) 0 -#endif -#if !defined(__has_attribute) -# define __has_attribute(x) 0 -#endif -#if !defined(__has_feature) -# define __has_feature(x) 0 -#endif -#if !defined(__has_warning) -# define __has_warning(x) 0 -#endif - -#if __has_include() -# include -#endif - -#pragma clang diagnostic ignored "-Wduplicate-method-match" -#pragma clang diagnostic ignored "-Wauto-import" -#if defined(__OBJC__) -#include -#endif -#if defined(__cplusplus) -#include -#include -#include -#else -#include -#include -#include -#endif - -#if !defined(SWIFT_TYPEDEFS) -# define SWIFT_TYPEDEFS 1 -# if __has_include() -# include -# elif !defined(__cplusplus) -typedef uint_least16_t char16_t; -typedef uint_least32_t char32_t; -# endif -typedef float swift_float2 __attribute__((__ext_vector_type__(2))); -typedef float swift_float3 __attribute__((__ext_vector_type__(3))); -typedef float swift_float4 __attribute__((__ext_vector_type__(4))); -typedef double swift_double2 __attribute__((__ext_vector_type__(2))); -typedef double swift_double3 __attribute__((__ext_vector_type__(3))); -typedef double swift_double4 __attribute__((__ext_vector_type__(4))); -typedef int swift_int2 __attribute__((__ext_vector_type__(2))); -typedef int swift_int3 __attribute__((__ext_vector_type__(3))); -typedef int swift_int4 __attribute__((__ext_vector_type__(4))); -typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); -typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); -typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); -#endif - -#if !defined(SWIFT_PASTE) -# define SWIFT_PASTE_HELPER(x, y) x##y -# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) -#endif -#if !defined(SWIFT_METATYPE) -# define SWIFT_METATYPE(X) Class -#endif -#if !defined(SWIFT_CLASS_PROPERTY) -# if __has_feature(objc_class_property) -# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ -# else -# define SWIFT_CLASS_PROPERTY(...) -# endif -#endif - -#if __has_attribute(objc_runtime_name) -# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) -#else -# define SWIFT_RUNTIME_NAME(X) -#endif -#if __has_attribute(swift_name) -# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) -#else -# define SWIFT_COMPILE_NAME(X) -#endif -#if __has_attribute(objc_method_family) -# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) -#else -# define SWIFT_METHOD_FAMILY(X) -#endif -#if __has_attribute(noescape) -# define SWIFT_NOESCAPE __attribute__((noescape)) -#else -# define SWIFT_NOESCAPE -#endif -#if __has_attribute(ns_consumed) -# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) -#else -# define SWIFT_RELEASES_ARGUMENT -#endif -#if __has_attribute(warn_unused_result) -# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else -# define SWIFT_WARN_UNUSED_RESULT -#endif -#if __has_attribute(noreturn) -# define SWIFT_NORETURN __attribute__((noreturn)) -#else -# define SWIFT_NORETURN -#endif -#if !defined(SWIFT_CLASS_EXTRA) -# define SWIFT_CLASS_EXTRA -#endif -#if !defined(SWIFT_PROTOCOL_EXTRA) -# define SWIFT_PROTOCOL_EXTRA -#endif -#if !defined(SWIFT_ENUM_EXTRA) -# define SWIFT_ENUM_EXTRA -#endif -#if !defined(SWIFT_CLASS) -# if __has_attribute(objc_subclassing_restricted) -# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA -# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# else -# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA -# endif -#endif -#if !defined(SWIFT_RESILIENT_CLASS) -# if __has_attribute(objc_class_stub) -# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) -# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) -# else -# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) -# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) -# endif -#endif - -#if !defined(SWIFT_PROTOCOL) -# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA -#endif - -#if !defined(SWIFT_EXTENSION) -# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) -#endif - -#if !defined(OBJC_DESIGNATED_INITIALIZER) -# if __has_attribute(objc_designated_initializer) -# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) -# else -# define OBJC_DESIGNATED_INITIALIZER -# endif -#endif -#if !defined(SWIFT_ENUM_ATTR) -# if defined(__has_attribute) && __has_attribute(enum_extensibility) -# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) -# else -# define SWIFT_ENUM_ATTR(_extensibility) -# endif -#endif -#if !defined(SWIFT_ENUM) -# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -# if __has_feature(generalized_swift_name) -# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type -# else -# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) -# endif -#endif -#if !defined(SWIFT_UNAVAILABLE) -# define SWIFT_UNAVAILABLE __attribute__((unavailable)) -#endif -#if !defined(SWIFT_UNAVAILABLE_MSG) -# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) -#endif -#if !defined(SWIFT_AVAILABILITY) -# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) -#endif -#if !defined(SWIFT_WEAK_IMPORT) -# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) -#endif -#if !defined(SWIFT_DEPRECATED) -# define SWIFT_DEPRECATED __attribute__((deprecated)) -#endif -#if !defined(SWIFT_DEPRECATED_MSG) -# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) -#endif -#if __has_feature(attribute_diagnose_if_objc) -# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) -#else -# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) -#endif -#if defined(__OBJC__) -#if !defined(IBSegueAction) -# define IBSegueAction -#endif -#endif -#if !defined(SWIFT_EXTERN) -# if defined(__cplusplus) -# define SWIFT_EXTERN extern "C" -# else -# define SWIFT_EXTERN extern -# endif -#endif -#if !defined(SWIFT_CALL) -# define SWIFT_CALL __attribute__((swiftcall)) -#endif -#if defined(__cplusplus) -#if !defined(SWIFT_NOEXCEPT) -# define SWIFT_NOEXCEPT noexcept -#endif -#else -#if !defined(SWIFT_NOEXCEPT) -# define SWIFT_NOEXCEPT -#endif -#endif -#if defined(__cplusplus) -#if !defined(SWIFT_CXX_INT_DEFINED) -#define SWIFT_CXX_INT_DEFINED -namespace swift { -using Int = ptrdiff_t; -using UInt = size_t; -} -#endif -#endif -#if defined(__OBJC__) -#if __has_feature(modules) -#if __has_warning("-Watimport-in-framework-header") -#pragma clang diagnostic ignored "-Watimport-in-framework-header" -#endif -@import CoreFoundation; -@import UIKit; -#endif - -#endif -#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" -#pragma clang diagnostic ignored "-Wduplicate-method-arg" -#if __has_warning("-Wpragma-clang-attribute") -# pragma clang diagnostic ignored "-Wpragma-clang-attribute" -#endif -#pragma clang diagnostic ignored "-Wunknown-pragmas" -#pragma clang diagnostic ignored "-Wnullability" -#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" - -#if __has_attribute(external_source_symbol) -# pragma push_macro("any") -# undef any -# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="DeskproFramework",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) -# pragma pop_macro("any") -#endif - -#if defined(__OBJC__) -@class NSCoder; - -/// DeskproButton is a customizable, rounded UIButton subclass that provides an easy way to create a floating action button with shadow effects and configurable positioning within a view. It supports setting images, colors, and position with minimal setup. -SWIFT_CLASS("_TtC16DeskproFramework13DeskproButton") -@interface DeskproButton : UIButton -/// Required initializer for decoding the button from a nib or storyboard. -- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE; -- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE; -@end - - - -#endif -#if defined(__cplusplus) -#endif -#if __has_attribute(external_source_symbol) -# pragma clang attribute pop -#endif -#pragma clang diagnostic pop -#endif - -#else -#error unsupported Swift architecture -#endif diff --git a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Headers/DeskproFramework.h b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Headers/DeskproFramework.h deleted file mode 100644 index b702304..0000000 --- a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Headers/DeskproFramework.h +++ /dev/null @@ -1,18 +0,0 @@ -// -// DeskproFramework.h -// DeskproFramework -// -// Created by QSD BiH on 4. 1. 2024.. -// - -#import - -//! Project version number for DeskproFramework. -FOUNDATION_EXPORT double DeskproFrameworkVersionNumber; - -//! Project version string for DeskproFramework. -FOUNDATION_EXPORT const unsigned char DeskproFrameworkVersionString[]; - -// In this header, you should import all the public headers of your framework using statements like #import - - diff --git a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Info.plist b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Info.plist deleted file mode 100644 index b468c11..0000000 Binary files a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Info.plist and /dev/null 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 deleted file mode 100644 index 6c0fa6b..0000000 --- a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.abi.json +++ /dev/null @@ -1,2434 +0,0 @@ -{ - "ABIRoot": { - "kind": "Root", - "name": "TopLevel", - "printedName": "TopLevel", - "children": [ - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "DeskPro", - "printedName": "DeskPro", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(messengerConfig:containingViewController:)", - "children": [ - { - "kind": "TypeNominal", - "name": "DeskPro", - "printedName": "DeskproFramework.DeskPro", - "usr": "s:16DeskproFramework7DeskProC" - }, - { - "kind": "TypeNominal", - "name": "MessengerConfig", - "printedName": "DeskproFramework.MessengerConfig", - "usr": "s:16DeskproFramework15MessengerConfigC" - }, - { - "kind": "TypeNominal", - "name": "UIViewController", - "printedName": "UIKit.UIViewController", - "usr": "c:objc(cs)UIViewController" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework7DeskProC15messengerConfig24containingViewControllerAcA09MessengerF0C_So06UIViewI0Ctcfc", - "mangledName": "$s16DeskproFramework7DeskProC15messengerConfig24containingViewControllerAcA09MessengerF0C_So06UIViewI0Ctcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "test", - "printedName": "test()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC4testSSyF", - "mangledName": "$s16DeskproFramework7DeskProC4testSSyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "setUserInfo", - "printedName": "setUserInfo(user:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "User", - "printedName": "DeskproFramework.User", - "usr": "s:16DeskproFramework4UserC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC11setUserInfo4useryAA0F0C_tF", - "mangledName": "$s16DeskproFramework7DeskProC11setUserInfo4useryAA0F0C_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "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", - "printedName": "forgetUser()", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC10forgetUserSbyF", - "mangledName": "$s16DeskproFramework7DeskProC10forgetUserSbyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "setPushRegistrationToken", - "printedName": "setPushRegistrationToken(token:)", - "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:16DeskproFramework7DeskProC24setPushRegistrationToken5tokenSbSS_tF", - "mangledName": "$s16DeskproFramework7DeskProC24setPushRegistrationToken5tokenSbSS_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "isDeskProPushNotification", - "printedName": "isDeskProPushNotification(pushNotification:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "PushNotificationData", - "printedName": "DeskproFramework.PushNotificationData", - "usr": "s:16DeskproFramework20PushNotificationDataC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC02iscD16PushNotification04pushG0SbAA0fG4DataC_tF", - "mangledName": "$s16DeskproFramework7DeskProC02iscD16PushNotification04pushG0SbAA0fG4DataC_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "handlePushNotification", - "printedName": "handlePushNotification(pushNotification:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "PushNotificationData", - "printedName": "DeskproFramework.PushNotificationData", - "usr": "s:16DeskproFramework20PushNotificationDataC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC22handlePushNotification04pushG0yAA0fG4DataC_tF", - "mangledName": "$s16DeskproFramework7DeskProC22handlePushNotification04pushG0yAA0fG4DataC_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "present", - "printedName": "present()", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC7presentAA14PresentBuilderCyF", - "mangledName": "$s16DeskproFramework7DeskProC7presentAA14PresentBuilderCyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "close", - "printedName": "close()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC5closeyyF", - "mangledName": "$s16DeskproFramework7DeskProC5closeyyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "getUnreadConversationCount", - "printedName": "getUnreadConversationCount()", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC26getUnreadConversationCountSiyF", - "mangledName": "$s16DeskproFramework7DeskProC26getUnreadConversationCountSiyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "enableLogging", - "printedName": "enableLogging()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC13enableLoggingyyF", - "mangledName": "$s16DeskproFramework7DeskProC13enableLoggingyyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework7DeskProC", - "mangledName": "$s16DeskproFramework7DeskProC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "DeskproButton", - "printedName": "DeskproButton", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(size:)", - "children": [ - { - "kind": "TypeNominal", - "name": "DeskproButton", - "printedName": "DeskproFramework.DeskproButton", - "usr": "c:@M@DeskproFramework@objc(cs)DeskproButton" - }, - { - "kind": "TypeNominal", - "name": "CGFloat", - "printedName": "CoreGraphics.CGFloat", - "hasDefaultArg": true, - "usr": "s:14CoreFoundation7CGFloatV" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework0A6ButtonC4sizeAC14CoreFoundation7CGFloatV_tcfc", - "mangledName": "$s16DeskproFramework0A6ButtonC4sizeAC12CoreGraphics7CGFloatV_tcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "Custom", - "AccessControl", - "RawDocComment" - ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "setImage", - "printedName": "setImage(named:color:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "UIKit.UIColor?", - "children": [ - { - "kind": "TypeNominal", - "name": "UIColor", - "printedName": "UIKit.UIColor", - "usr": "c:objc(cs)UIColor" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework0A6ButtonC8setImage5named5colorySS_So7UIColorCSgtF", - "mangledName": "$s16DeskproFramework0A6ButtonC8setImage5named5colorySS_So7UIColorCSgtF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "Custom", - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "setColor", - "printedName": "setColor(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "UIColor", - "printedName": "UIKit.UIColor", - "usr": "c:objc(cs)UIColor" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework0A6ButtonC8setColoryySo7UIColorCF", - "mangledName": "$s16DeskproFramework0A6ButtonC8setColoryySo7UIColorCF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "Custom", - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "setPosition", - "printedName": "setPosition(_:inView:x:y:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - }, - { - "kind": "TypeNominal", - "name": "UIView", - "printedName": "UIKit.UIView", - "usr": "c:objc(cs)UIView" - }, - { - "kind": "TypeNominal", - "name": "CGFloat", - "printedName": "CoreGraphics.CGFloat", - "hasDefaultArg": true, - "usr": "s:14CoreFoundation7CGFloatV" - }, - { - "kind": "TypeNominal", - "name": "CGFloat", - "printedName": "CoreGraphics.CGFloat", - "hasDefaultArg": true, - "usr": "s:14CoreFoundation7CGFloatV" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework0A6ButtonC11setPosition_6inView1x1yyAC0cE0O_So6UIViewC14CoreFoundation7CGFloatVANtF", - "mangledName": "$s16DeskproFramework0A6ButtonC11setPosition_6inView1x1yyAC0cE0O_So6UIViewC12CoreGraphics7CGFloatVANtF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "Custom", - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "TypeDecl", - "name": "ButtonPosition", - "printedName": "ButtonPosition", - "children": [ - { - "kind": "Var", - "name": "topLeft", - "printedName": "topLeft", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(DeskproFramework.DeskproButton.ButtonPosition.Type) -> DeskproFramework.DeskproButton.ButtonPosition", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO7topLeftyA2EmF", - "mangledName": "$s16DeskproFramework0A6ButtonC0C8PositionO7topLeftyA2EmF", - "moduleName": "DeskproFramework" - }, - { - "kind": "Var", - "name": "topRight", - "printedName": "topRight", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(DeskproFramework.DeskproButton.ButtonPosition.Type) -> DeskproFramework.DeskproButton.ButtonPosition", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO8topRightyA2EmF", - "mangledName": "$s16DeskproFramework0A6ButtonC0C8PositionO8topRightyA2EmF", - "moduleName": "DeskproFramework" - }, - { - "kind": "Var", - "name": "bottomLeft", - "printedName": "bottomLeft", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(DeskproFramework.DeskproButton.ButtonPosition.Type) -> DeskproFramework.DeskproButton.ButtonPosition", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO10bottomLeftyA2EmF", - "mangledName": "$s16DeskproFramework0A6ButtonC0C8PositionO10bottomLeftyA2EmF", - "moduleName": "DeskproFramework" - }, - { - "kind": "Var", - "name": "bottomRight", - "printedName": "bottomRight", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(DeskproFramework.DeskproButton.ButtonPosition.Type) -> DeskproFramework.DeskproButton.ButtonPosition", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO11bottomRightyA2EmF", - "mangledName": "$s16DeskproFramework0A6ButtonC0C8PositionO11bottomRightyA2EmF", - "moduleName": "DeskproFramework" - }, - { - "kind": "Var", - "name": "custom", - "printedName": "custom", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(DeskproFramework.DeskproButton.ButtonPosition.Type) -> (CoreFoundation.CGPoint) -> DeskproFramework.DeskproButton.ButtonPosition", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(CoreFoundation.CGPoint) -> DeskproFramework.DeskproButton.ButtonPosition", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - }, - { - "kind": "TypeNominal", - "name": "CGPoint", - "printedName": "CoreFoundation.CGPoint", - "usr": "c:@S@CGPoint" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO6customyAESo7CGPointVcAEmF", - "mangledName": "$s16DeskproFramework0A6ButtonC0C8PositionO6customyAESo7CGPointVcAEmF", - "moduleName": "DeskproFramework" - } - ], - "declKind": "Enum", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO", - "mangledName": "$s16DeskproFramework0A6ButtonC0C8PositionO", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(frame:)", - "children": [ - { - "kind": "TypeNominal", - "name": "DeskproButton", - "printedName": "DeskproFramework.DeskproButton", - "usr": "c:@M@DeskproFramework@objc(cs)DeskproButton" - }, - { - "kind": "TypeNominal", - "name": "CGRect", - "printedName": "CoreFoundation.CGRect", - "usr": "c:@S@CGRect" - } - ], - "declKind": "Constructor", - "usr": "c:@M@DeskproFramework@objc(cs)DeskproButton(im)initWithFrame:", - "mangledName": "$s16DeskproFramework0A6ButtonC5frameACSo6CGRectV_tcfc", - "moduleName": "DeskproFramework", - "overriding": true, - "implicit": true, - "objc_name": "initWithFrame:", - "declAttributes": [ - "Dynamic", - "ObjC", - "Custom", - "Override" - ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "c:@M@DeskproFramework@objc(cs)DeskproButton", - "mangledName": "$s16DeskproFramework0A6ButtonC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "Custom", - "AccessControl", - "RawDocComment", - "ObjC" - ], - "superclassUsr": "c:objc(cs)UIButton", - "hasMissingDesignatedInitializers": true, - "superclassNames": [ - "UIKit.UIButton", - "UIKit.UIControl", - "UIKit.UIView", - "UIKit.UIResponder", - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "_KeyValueCodingAndObservingPublishing", - "printedName": "_KeyValueCodingAndObservingPublishing", - "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP", - "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP" - }, - { - "kind": "Conformance", - "name": "_KeyValueCodingAndObserving", - "printedName": "_KeyValueCodingAndObserving", - "usr": "s:10Foundation27_KeyValueCodingAndObservingP", - "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "__DefaultCustomPlaygroundQuickLookable", - "printedName": "__DefaultCustomPlaygroundQuickLookable", - "usr": "s:s38__DefaultCustomPlaygroundQuickLookableP", - "mangledName": "$ss38__DefaultCustomPlaygroundQuickLookableP" - } - ] - }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "PresentCoordinator", - "printedName": "PresentCoordinator", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(containingViewController:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentCoordinator", - "printedName": "DeskproFramework.PresentCoordinator", - "usr": "s:16DeskproFramework18PresentCoordinatorC" - }, - { - "kind": "TypeNominal", - "name": "UIViewController", - "printedName": "UIKit.UIViewController", - "usr": "c:objc(cs)UIViewController" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework18PresentCoordinatorC24containingViewControllerACSo06UIViewG0C_tcfc", - "mangledName": "$s16DeskproFramework18PresentCoordinatorC24containingViewControllerACSo06UIViewG0C_tcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework18PresentCoordinatorC", - "mangledName": "$s16DeskproFramework18PresentCoordinatorC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "User", - "printedName": "User", - "children": [ - { - "kind": "Var", - "name": "name", - "printedName": "name", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework4UserC4nameSSSgvp", - "mangledName": "$s16DeskproFramework4UserC4nameSSSgvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC4nameSSSgvg", - "mangledName": "$s16DeskproFramework4UserC4nameSSSgvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC4nameSSSgvs", - "mangledName": "$s16DeskproFramework4UserC4nameSSSgvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC4nameSSSgvM", - "mangledName": "$s16DeskproFramework4UserC4nameSSSgvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "firstName", - "printedName": "firstName", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework4UserC9firstNameSSSgvp", - "mangledName": "$s16DeskproFramework4UserC9firstNameSSSgvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC9firstNameSSSgvg", - "mangledName": "$s16DeskproFramework4UserC9firstNameSSSgvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC9firstNameSSSgvs", - "mangledName": "$s16DeskproFramework4UserC9firstNameSSSgvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC9firstNameSSSgvM", - "mangledName": "$s16DeskproFramework4UserC9firstNameSSSgvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "lastName", - "printedName": "lastName", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework4UserC8lastNameSSSgvp", - "mangledName": "$s16DeskproFramework4UserC8lastNameSSSgvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC8lastNameSSSgvg", - "mangledName": "$s16DeskproFramework4UserC8lastNameSSSgvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC8lastNameSSSgvs", - "mangledName": "$s16DeskproFramework4UserC8lastNameSSSgvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC8lastNameSSSgvM", - "mangledName": "$s16DeskproFramework4UserC8lastNameSSSgvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "email", - "printedName": "email", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework4UserC5emailSSSgvp", - "mangledName": "$s16DeskproFramework4UserC5emailSSSgvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC5emailSSSgvg", - "mangledName": "$s16DeskproFramework4UserC5emailSSSgvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC5emailSSSgvs", - "mangledName": "$s16DeskproFramework4UserC5emailSSSgvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC5emailSSSgvM", - "mangledName": "$s16DeskproFramework4UserC5emailSSSgvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(name:firstName:lastName:email:)", - "children": [ - { - "kind": "TypeNominal", - "name": "User", - "printedName": "DeskproFramework.User", - "usr": "s:16DeskproFramework4UserC" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework4UserC4name9firstName04lastF05emailACSSSg_A3Htcfc", - "mangledName": "$s16DeskproFramework4UserC4name9firstName04lastF05emailACSSSg_A3Htcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "init_kind": "Designated" - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(from:)", - "children": [ - { - "kind": "TypeNominal", - "name": "User", - "printedName": "DeskproFramework.User", - "usr": "s:16DeskproFramework4UserC" - }, - { - "kind": "TypeNominal", - "name": "Decoder", - "printedName": "Swift.Decoder", - "usr": "s:s7DecoderP" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework4UserC4fromACs7Decoder_p_tKcfc", - "mangledName": "$s16DeskproFramework4UserC4fromACs7Decoder_p_tKcfc", - "moduleName": "DeskproFramework", - "implicit": true, - "declAttributes": [ - "Required" - ], - "throwing": true, - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "encode", - "printedName": "encode(to:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Encoder", - "printedName": "Swift.Encoder", - "usr": "s:s7EncoderP" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework4UserC6encode2toys7Encoder_p_tKF", - "mangledName": "$s16DeskproFramework4UserC6encode2toys7Encoder_p_tKF", - "moduleName": "DeskproFramework", - "implicit": true, - "throwing": true, - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework4UserC", - "mangledName": "$s16DeskproFramework4UserC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Decodable", - "printedName": "Decodable", - "usr": "s:Se", - "mangledName": "$sSe" - }, - { - "kind": "Conformance", - "name": "Encodable", - "printedName": "Encodable", - "usr": "s:SE", - "mangledName": "$sSE" - } - ] - }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "PresentBuilder", - "printedName": "PresentBuilder", - "children": [ - { - "kind": "Var", - "name": "url", - "printedName": "url", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvp", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasStorage", - "AccessControl", - "RawDocComment" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvg", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvs", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvM", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(url:appId:coordinator:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "PresentCoordinator", - "printedName": "DeskproFramework.PresentCoordinator", - "usr": "s:16DeskproFramework18PresentCoordinatorC" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework14PresentBuilderC3url5appId11coordinatorACSS_SSAA0C11CoordinatorCtcfc", - "mangledName": "$s16DeskproFramework14PresentBuilderC3url5appId11coordinatorACSS_SSAA0C11CoordinatorCtcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "chatHistory", - "printedName": "chatHistory(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC11chatHistoryyACSiF", - "mangledName": "$s16DeskproFramework14PresentBuilderC11chatHistoryyACSiF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "article", - "printedName": "article(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC7articleyACSiF", - "mangledName": "$s16DeskproFramework14PresentBuilderC7articleyACSiF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "comments", - "printedName": "comments()", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC8commentsACyF", - "mangledName": "$s16DeskproFramework14PresentBuilderC8commentsACyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "show", - "printedName": "show()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC4showyyF", - "mangledName": "$s16DeskproFramework14PresentBuilderC4showyyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework14PresentBuilderC", - "mangledName": "$s16DeskproFramework14PresentBuilderC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "WebKit", - "printedName": "WebKit", - "declKind": "Import", - "moduleName": "DeskproFramework" - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "PushNotificationData", - "printedName": "PushNotificationData", - "declKind": "Class", - "usr": "s:16DeskproFramework20PushNotificationDataC", - "mangledName": "$s16DeskproFramework20PushNotificationDataC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "hasMissingDesignatedInitializers": true - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "MessengerConfig", - "printedName": "MessengerConfig", - "children": [ - { - "kind": "Var", - "name": "appUrl", - "printedName": "appUrl", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvp", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvg", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvs", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvM", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "appId", - "printedName": "appId", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvp", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvg", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvs", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvM", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "appKey", - "printedName": "appKey", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvp", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvg", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvs", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvM", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(appUrl:appId:appKey:)", - "children": [ - { - "kind": "TypeNominal", - "name": "MessengerConfig", - "printedName": "DeskproFramework.MessengerConfig", - "usr": "s:16DeskproFramework15MessengerConfigC" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrl0E2Id0E3KeyACSS_S2SSgtcfc", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrl0E2Id0E3KeyACSS_S2SSgtcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework15MessengerConfigC", - "mangledName": "$s16DeskproFramework15MessengerConfigC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ] - } - ], - "json_format_version": 8 - }, - "ConstValues": [ - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/UI\/DeskproButton.swift", - "kind": "IntegerLiteral", - "offset": 516, - "length": 2, - "value": "56" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/UI\/DeskproButton.swift", - "kind": "IntegerLiteral", - "offset": 631, - "length": 2, - "value": "56" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/UI\/DeskproButton.swift", - "kind": "IntegerLiteral", - "offset": 2624, - "length": 2, - "value": "16" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/UI\/DeskproButton.swift", - "kind": "IntegerLiteral", - "offset": 2641, - "length": 2, - "value": "16" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/UI\/DeskproButton.swift", - "kind": "StringLiteral", - "offset": 380, - "length": 13, - "value": "\"DeskproFramework.DeskproButton\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentCoordinator.swift", - "kind": "StringLiteral", - "offset": 466, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 841, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "IntegerLiteral", - "offset": 384, - "length": 2, - "value": "58" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 387, - "length": 5, - "value": "255.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "IntegerLiteral", - "offset": 401, - "length": 3, - "value": "141" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 405, - "length": 5, - "value": "255.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "IntegerLiteral", - "offset": 418, - "length": 3, - "value": "222" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 422, - "length": 5, - "value": "255.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 436, - "length": 3, - "value": "1.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "IntegerLiteral", - "offset": 486, - "length": 1, - "value": "5" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 488, - "length": 5, - "value": "255.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "IntegerLiteral", - "offset": 502, - "length": 3, - "value": "100" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 506, - "length": 5, - "value": "255.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "IntegerLiteral", - "offset": 519, - "length": 3, - "value": "192" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 523, - "length": 5, - "value": "255.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 537, - "length": 3, - "value": "1.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 928, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "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": 9671, - "length": 12, - "value": "\"reloadPage\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 9707, - "length": 13, - "value": "\"getUserInfo\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 9748, - "length": 17, - "value": "\"getUserJwtToken\"" - }, - { - "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": 9671, - "length": 12, - "value": "\"reloadPage\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 9707, - "length": 13, - "value": "\"getUserInfo\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 9748, - "length": 17, - "value": "\"getUserJwtToken\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "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": 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": 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": 11722, - "length": 2, - "value": "\"\")\n },\n appEvent: async (messengerId, event) => {\n \/\/alert(event.id)\n },\n },\n childMethods: undefined,\n};\"" - } - ] -} \ No newline at end of file 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 deleted file mode 100644 index 7554cc6..0000000 --- a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +++ /dev/null @@ -1,70 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51) -// swift-module-flags: -target arm64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name DeskproFramework -// swift-module-flags-ignorable: -enable-bare-slash-regex -@_exported import DeskproFramework -import Foundation -import Swift -import UIKit -import WebKit -import _Concurrency -import _StringProcessing -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 - public func handlePushNotification(pushNotification: DeskproFramework.PushNotificationData) - public func present() -> DeskproFramework.PresentBuilder - public func close() - public func getUnreadConversationCount() -> Swift.Int - public func enableLogging() - @objc deinit -} -@objc @_hasMissingDesignatedInitializers @_Concurrency.MainActor(unsafe) public class DeskproButton : UIKit.UIButton { - @_Concurrency.MainActor(unsafe) public init(size: CoreFoundation.CGFloat = 56) - @_Concurrency.MainActor(unsafe) public func setImage(named imageName: Swift.String, color: UIKit.UIColor? = nil) - @_Concurrency.MainActor(unsafe) public func setColor(_ color: UIKit.UIColor) - @_Concurrency.MainActor(unsafe) public func setPosition(_ position: DeskproFramework.DeskproButton.ButtonPosition, inView view: UIKit.UIView, x: CoreFoundation.CGFloat = 16, y: CoreFoundation.CGFloat = 16) - public enum ButtonPosition { - case topLeft, topRight, bottomLeft, bottomRight - case custom(CoreFoundation.CGPoint) - } - @objc deinit -} -public class PresentCoordinator { - public init(containingViewController: UIKit.UIViewController) - @objc deinit -} -public class User : Swift.Codable { - public var name: Swift.String? - public var firstName: Swift.String? - public var lastName: Swift.String? - public var email: Swift.String? - public init(name: Swift.String? = nil, firstName: Swift.String? = nil, lastName: Swift.String? = nil, email: Swift.String? = nil) - @objc deinit - public func encode(to encoder: Swift.Encoder) throws - required public init(from decoder: Swift.Decoder) throws -} -public class PresentBuilder { - public var url: Swift.String - public init(url: Swift.String, appId: Swift.String, coordinator: DeskproFramework.PresentCoordinator) - public func chatHistory(_ chatId: Swift.Int) -> DeskproFramework.PresentBuilder - public func article(_ articleId: Swift.Int) -> DeskproFramework.PresentBuilder - public func comments() -> DeskproFramework.PresentBuilder - public func show() - @objc deinit -} -@_hasMissingDesignatedInitializers public class PushNotificationData { - @objc deinit -} -public class MessengerConfig { - public var appUrl: Swift.String - public var appId: Swift.String - public var appKey: Swift.String? - public init(appUrl: Swift.String, appId: Swift.String, appKey: Swift.String? = nil) - @objc deinit -} 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 deleted file mode 100644 index 5e91b1c..0000000 Binary files a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftdoc and /dev/null 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 deleted file mode 100644 index 7554cc6..0000000 --- a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftinterface +++ /dev/null @@ -1,70 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51) -// swift-module-flags: -target arm64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name DeskproFramework -// swift-module-flags-ignorable: -enable-bare-slash-regex -@_exported import DeskproFramework -import Foundation -import Swift -import UIKit -import WebKit -import _Concurrency -import _StringProcessing -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 - public func handlePushNotification(pushNotification: DeskproFramework.PushNotificationData) - public func present() -> DeskproFramework.PresentBuilder - public func close() - public func getUnreadConversationCount() -> Swift.Int - public func enableLogging() - @objc deinit -} -@objc @_hasMissingDesignatedInitializers @_Concurrency.MainActor(unsafe) public class DeskproButton : UIKit.UIButton { - @_Concurrency.MainActor(unsafe) public init(size: CoreFoundation.CGFloat = 56) - @_Concurrency.MainActor(unsafe) public func setImage(named imageName: Swift.String, color: UIKit.UIColor? = nil) - @_Concurrency.MainActor(unsafe) public func setColor(_ color: UIKit.UIColor) - @_Concurrency.MainActor(unsafe) public func setPosition(_ position: DeskproFramework.DeskproButton.ButtonPosition, inView view: UIKit.UIView, x: CoreFoundation.CGFloat = 16, y: CoreFoundation.CGFloat = 16) - public enum ButtonPosition { - case topLeft, topRight, bottomLeft, bottomRight - case custom(CoreFoundation.CGPoint) - } - @objc deinit -} -public class PresentCoordinator { - public init(containingViewController: UIKit.UIViewController) - @objc deinit -} -public class User : Swift.Codable { - public var name: Swift.String? - public var firstName: Swift.String? - public var lastName: Swift.String? - public var email: Swift.String? - public init(name: Swift.String? = nil, firstName: Swift.String? = nil, lastName: Swift.String? = nil, email: Swift.String? = nil) - @objc deinit - public func encode(to encoder: Swift.Encoder) throws - required public init(from decoder: Swift.Decoder) throws -} -public class PresentBuilder { - public var url: Swift.String - public init(url: Swift.String, appId: Swift.String, coordinator: DeskproFramework.PresentCoordinator) - public func chatHistory(_ chatId: Swift.Int) -> DeskproFramework.PresentBuilder - public func article(_ articleId: Swift.Int) -> DeskproFramework.PresentBuilder - public func comments() -> DeskproFramework.PresentBuilder - public func show() - @objc deinit -} -@_hasMissingDesignatedInitializers public class PushNotificationData { - @objc deinit -} -public class MessengerConfig { - public var appUrl: Swift.String - public var appId: Swift.String - public var appKey: Swift.String? - public init(appUrl: Swift.String, appId: Swift.String, appKey: Swift.String? = nil) - @objc deinit -} 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 deleted file mode 100644 index 6c0fa6b..0000000 --- a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json +++ /dev/null @@ -1,2434 +0,0 @@ -{ - "ABIRoot": { - "kind": "Root", - "name": "TopLevel", - "printedName": "TopLevel", - "children": [ - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "DeskPro", - "printedName": "DeskPro", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(messengerConfig:containingViewController:)", - "children": [ - { - "kind": "TypeNominal", - "name": "DeskPro", - "printedName": "DeskproFramework.DeskPro", - "usr": "s:16DeskproFramework7DeskProC" - }, - { - "kind": "TypeNominal", - "name": "MessengerConfig", - "printedName": "DeskproFramework.MessengerConfig", - "usr": "s:16DeskproFramework15MessengerConfigC" - }, - { - "kind": "TypeNominal", - "name": "UIViewController", - "printedName": "UIKit.UIViewController", - "usr": "c:objc(cs)UIViewController" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework7DeskProC15messengerConfig24containingViewControllerAcA09MessengerF0C_So06UIViewI0Ctcfc", - "mangledName": "$s16DeskproFramework7DeskProC15messengerConfig24containingViewControllerAcA09MessengerF0C_So06UIViewI0Ctcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "test", - "printedName": "test()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC4testSSyF", - "mangledName": "$s16DeskproFramework7DeskProC4testSSyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "setUserInfo", - "printedName": "setUserInfo(user:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "User", - "printedName": "DeskproFramework.User", - "usr": "s:16DeskproFramework4UserC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC11setUserInfo4useryAA0F0C_tF", - "mangledName": "$s16DeskproFramework7DeskProC11setUserInfo4useryAA0F0C_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "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", - "printedName": "forgetUser()", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC10forgetUserSbyF", - "mangledName": "$s16DeskproFramework7DeskProC10forgetUserSbyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "setPushRegistrationToken", - "printedName": "setPushRegistrationToken(token:)", - "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:16DeskproFramework7DeskProC24setPushRegistrationToken5tokenSbSS_tF", - "mangledName": "$s16DeskproFramework7DeskProC24setPushRegistrationToken5tokenSbSS_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "isDeskProPushNotification", - "printedName": "isDeskProPushNotification(pushNotification:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Bool", - "printedName": "Swift.Bool", - "usr": "s:Sb" - }, - { - "kind": "TypeNominal", - "name": "PushNotificationData", - "printedName": "DeskproFramework.PushNotificationData", - "usr": "s:16DeskproFramework20PushNotificationDataC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC02iscD16PushNotification04pushG0SbAA0fG4DataC_tF", - "mangledName": "$s16DeskproFramework7DeskProC02iscD16PushNotification04pushG0SbAA0fG4DataC_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "handlePushNotification", - "printedName": "handlePushNotification(pushNotification:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "PushNotificationData", - "printedName": "DeskproFramework.PushNotificationData", - "usr": "s:16DeskproFramework20PushNotificationDataC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC22handlePushNotification04pushG0yAA0fG4DataC_tF", - "mangledName": "$s16DeskproFramework7DeskProC22handlePushNotification04pushG0yAA0fG4DataC_tF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "present", - "printedName": "present()", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC7presentAA14PresentBuilderCyF", - "mangledName": "$s16DeskproFramework7DeskProC7presentAA14PresentBuilderCyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "close", - "printedName": "close()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC5closeyyF", - "mangledName": "$s16DeskproFramework7DeskProC5closeyyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "getUnreadConversationCount", - "printedName": "getUnreadConversationCount()", - "children": [ - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC26getUnreadConversationCountSiyF", - "mangledName": "$s16DeskproFramework7DeskProC26getUnreadConversationCountSiyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "enableLogging", - "printedName": "enableLogging()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework7DeskProC13enableLoggingyyF", - "mangledName": "$s16DeskproFramework7DeskProC13enableLoggingyyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework7DeskProC", - "mangledName": "$s16DeskproFramework7DeskProC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "DeskproButton", - "printedName": "DeskproButton", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(size:)", - "children": [ - { - "kind": "TypeNominal", - "name": "DeskproButton", - "printedName": "DeskproFramework.DeskproButton", - "usr": "c:@M@DeskproFramework@objc(cs)DeskproButton" - }, - { - "kind": "TypeNominal", - "name": "CGFloat", - "printedName": "CoreGraphics.CGFloat", - "hasDefaultArg": true, - "usr": "s:14CoreFoundation7CGFloatV" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework0A6ButtonC4sizeAC14CoreFoundation7CGFloatV_tcfc", - "mangledName": "$s16DeskproFramework0A6ButtonC4sizeAC12CoreGraphics7CGFloatV_tcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "Custom", - "AccessControl", - "RawDocComment" - ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "setImage", - "printedName": "setImage(named:color:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "UIKit.UIColor?", - "children": [ - { - "kind": "TypeNominal", - "name": "UIColor", - "printedName": "UIKit.UIColor", - "usr": "c:objc(cs)UIColor" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework0A6ButtonC8setImage5named5colorySS_So7UIColorCSgtF", - "mangledName": "$s16DeskproFramework0A6ButtonC8setImage5named5colorySS_So7UIColorCSgtF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "Custom", - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "setColor", - "printedName": "setColor(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "UIColor", - "printedName": "UIKit.UIColor", - "usr": "c:objc(cs)UIColor" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework0A6ButtonC8setColoryySo7UIColorCF", - "mangledName": "$s16DeskproFramework0A6ButtonC8setColoryySo7UIColorCF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "Custom", - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "setPosition", - "printedName": "setPosition(_:inView:x:y:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - }, - { - "kind": "TypeNominal", - "name": "UIView", - "printedName": "UIKit.UIView", - "usr": "c:objc(cs)UIView" - }, - { - "kind": "TypeNominal", - "name": "CGFloat", - "printedName": "CoreGraphics.CGFloat", - "hasDefaultArg": true, - "usr": "s:14CoreFoundation7CGFloatV" - }, - { - "kind": "TypeNominal", - "name": "CGFloat", - "printedName": "CoreGraphics.CGFloat", - "hasDefaultArg": true, - "usr": "s:14CoreFoundation7CGFloatV" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework0A6ButtonC11setPosition_6inView1x1yyAC0cE0O_So6UIViewC14CoreFoundation7CGFloatVANtF", - "mangledName": "$s16DeskproFramework0A6ButtonC11setPosition_6inView1x1yyAC0cE0O_So6UIViewC12CoreGraphics7CGFloatVANtF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "Custom", - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "TypeDecl", - "name": "ButtonPosition", - "printedName": "ButtonPosition", - "children": [ - { - "kind": "Var", - "name": "topLeft", - "printedName": "topLeft", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(DeskproFramework.DeskproButton.ButtonPosition.Type) -> DeskproFramework.DeskproButton.ButtonPosition", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO7topLeftyA2EmF", - "mangledName": "$s16DeskproFramework0A6ButtonC0C8PositionO7topLeftyA2EmF", - "moduleName": "DeskproFramework" - }, - { - "kind": "Var", - "name": "topRight", - "printedName": "topRight", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(DeskproFramework.DeskproButton.ButtonPosition.Type) -> DeskproFramework.DeskproButton.ButtonPosition", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO8topRightyA2EmF", - "mangledName": "$s16DeskproFramework0A6ButtonC0C8PositionO8topRightyA2EmF", - "moduleName": "DeskproFramework" - }, - { - "kind": "Var", - "name": "bottomLeft", - "printedName": "bottomLeft", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(DeskproFramework.DeskproButton.ButtonPosition.Type) -> DeskproFramework.DeskproButton.ButtonPosition", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO10bottomLeftyA2EmF", - "mangledName": "$s16DeskproFramework0A6ButtonC0C8PositionO10bottomLeftyA2EmF", - "moduleName": "DeskproFramework" - }, - { - "kind": "Var", - "name": "bottomRight", - "printedName": "bottomRight", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(DeskproFramework.DeskproButton.ButtonPosition.Type) -> DeskproFramework.DeskproButton.ButtonPosition", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO11bottomRightyA2EmF", - "mangledName": "$s16DeskproFramework0A6ButtonC0C8PositionO11bottomRightyA2EmF", - "moduleName": "DeskproFramework" - }, - { - "kind": "Var", - "name": "custom", - "printedName": "custom", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(DeskproFramework.DeskproButton.ButtonPosition.Type) -> (CoreFoundation.CGPoint) -> DeskproFramework.DeskproButton.ButtonPosition", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(CoreFoundation.CGPoint) -> DeskproFramework.DeskproButton.ButtonPosition", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - }, - { - "kind": "TypeNominal", - "name": "CGPoint", - "printedName": "CoreFoundation.CGPoint", - "usr": "c:@S@CGPoint" - } - ] - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "ButtonPosition", - "printedName": "DeskproFramework.DeskproButton.ButtonPosition", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO6customyAESo7CGPointVcAEmF", - "mangledName": "$s16DeskproFramework0A6ButtonC0C8PositionO6customyAESo7CGPointVcAEmF", - "moduleName": "DeskproFramework" - } - ], - "declKind": "Enum", - "usr": "s:16DeskproFramework0A6ButtonC0C8PositionO", - "mangledName": "$s16DeskproFramework0A6ButtonC0C8PositionO", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(frame:)", - "children": [ - { - "kind": "TypeNominal", - "name": "DeskproButton", - "printedName": "DeskproFramework.DeskproButton", - "usr": "c:@M@DeskproFramework@objc(cs)DeskproButton" - }, - { - "kind": "TypeNominal", - "name": "CGRect", - "printedName": "CoreFoundation.CGRect", - "usr": "c:@S@CGRect" - } - ], - "declKind": "Constructor", - "usr": "c:@M@DeskproFramework@objc(cs)DeskproButton(im)initWithFrame:", - "mangledName": "$s16DeskproFramework0A6ButtonC5frameACSo6CGRectV_tcfc", - "moduleName": "DeskproFramework", - "overriding": true, - "implicit": true, - "objc_name": "initWithFrame:", - "declAttributes": [ - "Dynamic", - "ObjC", - "Custom", - "Override" - ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "c:@M@DeskproFramework@objc(cs)DeskproButton", - "mangledName": "$s16DeskproFramework0A6ButtonC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "Custom", - "AccessControl", - "RawDocComment", - "ObjC" - ], - "superclassUsr": "c:objc(cs)UIButton", - "hasMissingDesignatedInitializers": true, - "superclassNames": [ - "UIKit.UIButton", - "UIKit.UIControl", - "UIKit.UIView", - "UIKit.UIResponder", - "ObjectiveC.NSObject" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Equatable", - "printedName": "Equatable", - "usr": "s:SQ", - "mangledName": "$sSQ" - }, - { - "kind": "Conformance", - "name": "Hashable", - "printedName": "Hashable", - "usr": "s:SH", - "mangledName": "$sSH" - }, - { - "kind": "Conformance", - "name": "CVarArg", - "printedName": "CVarArg", - "usr": "s:s7CVarArgP", - "mangledName": "$ss7CVarArgP" - }, - { - "kind": "Conformance", - "name": "_KeyValueCodingAndObservingPublishing", - "printedName": "_KeyValueCodingAndObservingPublishing", - "usr": "s:10Foundation37_KeyValueCodingAndObservingPublishingP", - "mangledName": "$s10Foundation37_KeyValueCodingAndObservingPublishingP" - }, - { - "kind": "Conformance", - "name": "_KeyValueCodingAndObserving", - "printedName": "_KeyValueCodingAndObserving", - "usr": "s:10Foundation27_KeyValueCodingAndObservingP", - "mangledName": "$s10Foundation27_KeyValueCodingAndObservingP" - }, - { - "kind": "Conformance", - "name": "CustomStringConvertible", - "printedName": "CustomStringConvertible", - "usr": "s:s23CustomStringConvertibleP", - "mangledName": "$ss23CustomStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "CustomDebugStringConvertible", - "printedName": "CustomDebugStringConvertible", - "usr": "s:s28CustomDebugStringConvertibleP", - "mangledName": "$ss28CustomDebugStringConvertibleP" - }, - { - "kind": "Conformance", - "name": "__DefaultCustomPlaygroundQuickLookable", - "printedName": "__DefaultCustomPlaygroundQuickLookable", - "usr": "s:s38__DefaultCustomPlaygroundQuickLookableP", - "mangledName": "$ss38__DefaultCustomPlaygroundQuickLookableP" - } - ] - }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "PresentCoordinator", - "printedName": "PresentCoordinator", - "children": [ - { - "kind": "Constructor", - "name": "init", - "printedName": "init(containingViewController:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentCoordinator", - "printedName": "DeskproFramework.PresentCoordinator", - "usr": "s:16DeskproFramework18PresentCoordinatorC" - }, - { - "kind": "TypeNominal", - "name": "UIViewController", - "printedName": "UIKit.UIViewController", - "usr": "c:objc(cs)UIViewController" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework18PresentCoordinatorC24containingViewControllerACSo06UIViewG0C_tcfc", - "mangledName": "$s16DeskproFramework18PresentCoordinatorC24containingViewControllerACSo06UIViewG0C_tcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework18PresentCoordinatorC", - "mangledName": "$s16DeskproFramework18PresentCoordinatorC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "User", - "printedName": "User", - "children": [ - { - "kind": "Var", - "name": "name", - "printedName": "name", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework4UserC4nameSSSgvp", - "mangledName": "$s16DeskproFramework4UserC4nameSSSgvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC4nameSSSgvg", - "mangledName": "$s16DeskproFramework4UserC4nameSSSgvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC4nameSSSgvs", - "mangledName": "$s16DeskproFramework4UserC4nameSSSgvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC4nameSSSgvM", - "mangledName": "$s16DeskproFramework4UserC4nameSSSgvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "firstName", - "printedName": "firstName", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework4UserC9firstNameSSSgvp", - "mangledName": "$s16DeskproFramework4UserC9firstNameSSSgvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC9firstNameSSSgvg", - "mangledName": "$s16DeskproFramework4UserC9firstNameSSSgvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC9firstNameSSSgvs", - "mangledName": "$s16DeskproFramework4UserC9firstNameSSSgvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC9firstNameSSSgvM", - "mangledName": "$s16DeskproFramework4UserC9firstNameSSSgvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "lastName", - "printedName": "lastName", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework4UserC8lastNameSSSgvp", - "mangledName": "$s16DeskproFramework4UserC8lastNameSSSgvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC8lastNameSSSgvg", - "mangledName": "$s16DeskproFramework4UserC8lastNameSSSgvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC8lastNameSSSgvs", - "mangledName": "$s16DeskproFramework4UserC8lastNameSSSgvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC8lastNameSSSgvM", - "mangledName": "$s16DeskproFramework4UserC8lastNameSSSgvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "email", - "printedName": "email", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework4UserC5emailSSSgvp", - "mangledName": "$s16DeskproFramework4UserC5emailSSSgvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC5emailSSSgvg", - "mangledName": "$s16DeskproFramework4UserC5emailSSSgvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC5emailSSSgvs", - "mangledName": "$s16DeskproFramework4UserC5emailSSSgvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework4UserC5emailSSSgvM", - "mangledName": "$s16DeskproFramework4UserC5emailSSSgvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(name:firstName:lastName:email:)", - "children": [ - { - "kind": "TypeNominal", - "name": "User", - "printedName": "DeskproFramework.User", - "usr": "s:16DeskproFramework4UserC" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework4UserC4name9firstName04lastF05emailACSSSg_A3Htcfc", - "mangledName": "$s16DeskproFramework4UserC4name9firstName04lastF05emailACSSSg_A3Htcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl" - ], - "init_kind": "Designated" - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(from:)", - "children": [ - { - "kind": "TypeNominal", - "name": "User", - "printedName": "DeskproFramework.User", - "usr": "s:16DeskproFramework4UserC" - }, - { - "kind": "TypeNominal", - "name": "Decoder", - "printedName": "Swift.Decoder", - "usr": "s:s7DecoderP" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework4UserC4fromACs7Decoder_p_tKcfc", - "mangledName": "$s16DeskproFramework4UserC4fromACs7Decoder_p_tKcfc", - "moduleName": "DeskproFramework", - "implicit": true, - "declAttributes": [ - "Required" - ], - "throwing": true, - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "encode", - "printedName": "encode(to:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Encoder", - "printedName": "Swift.Encoder", - "usr": "s:s7EncoderP" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework4UserC6encode2toys7Encoder_p_tKF", - "mangledName": "$s16DeskproFramework4UserC6encode2toys7Encoder_p_tKF", - "moduleName": "DeskproFramework", - "implicit": true, - "throwing": true, - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework4UserC", - "mangledName": "$s16DeskproFramework4UserC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Decodable", - "printedName": "Decodable", - "usr": "s:Se", - "mangledName": "$sSe" - }, - { - "kind": "Conformance", - "name": "Encodable", - "printedName": "Encodable", - "usr": "s:SE", - "mangledName": "$sSE" - } - ] - }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "PresentBuilder", - "printedName": "PresentBuilder", - "children": [ - { - "kind": "Var", - "name": "url", - "printedName": "url", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvp", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasStorage", - "AccessControl", - "RawDocComment" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvg", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvs", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework14PresentBuilderC3urlSSvM", - "mangledName": "$s16DeskproFramework14PresentBuilderC3urlSSvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(url:appId:coordinator:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "PresentCoordinator", - "printedName": "DeskproFramework.PresentCoordinator", - "usr": "s:16DeskproFramework18PresentCoordinatorC" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework14PresentBuilderC3url5appId11coordinatorACSS_SSAA0C11CoordinatorCtcfc", - "mangledName": "$s16DeskproFramework14PresentBuilderC3url5appId11coordinatorACSS_SSAA0C11CoordinatorCtcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "init_kind": "Designated" - }, - { - "kind": "Function", - "name": "chatHistory", - "printedName": "chatHistory(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC11chatHistoryyACSiF", - "mangledName": "$s16DeskproFramework14PresentBuilderC11chatHistoryyACSiF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "article", - "printedName": "article(_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC7articleyACSiF", - "mangledName": "$s16DeskproFramework14PresentBuilderC7articleyACSiF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "comments", - "printedName": "comments()", - "children": [ - { - "kind": "TypeNominal", - "name": "PresentBuilder", - "printedName": "DeskproFramework.PresentBuilder", - "usr": "s:16DeskproFramework14PresentBuilderC" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC8commentsACyF", - "mangledName": "$s16DeskproFramework14PresentBuilderC8commentsACyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "show", - "printedName": "show()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:16DeskproFramework14PresentBuilderC4showyyF", - "mangledName": "$s16DeskproFramework14PresentBuilderC4showyyF", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework14PresentBuilderC", - "mangledName": "$s16DeskproFramework14PresentBuilderC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "UIKit", - "printedName": "UIKit", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "WebKit", - "printedName": "WebKit", - "declKind": "Import", - "moduleName": "DeskproFramework" - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "PushNotificationData", - "printedName": "PushNotificationData", - "declKind": "Class", - "usr": "s:16DeskproFramework20PushNotificationDataC", - "mangledName": "$s16DeskproFramework20PushNotificationDataC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "hasMissingDesignatedInitializers": true - }, - { - "kind": "Import", - "name": "Foundation", - "printedName": "Foundation", - "declKind": "Import", - "moduleName": "DeskproFramework", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "TypeDecl", - "name": "MessengerConfig", - "printedName": "MessengerConfig", - "children": [ - { - "kind": "Var", - "name": "appUrl", - "printedName": "appUrl", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvp", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvg", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvs", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrlSSvM", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrlSSvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "appId", - "printedName": "appId", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvp", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvg", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvs", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC5appIdSSvM", - "mangledName": "$s16DeskproFramework15MessengerConfigC5appIdSSvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Var", - "name": "appKey", - "printedName": "appKey", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Var", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvp", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvp", - "moduleName": "DeskproFramework", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvg", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvg", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "get" - }, - { - "kind": "Accessor", - "name": "Set", - "printedName": "Set()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvs", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvs", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "set" - }, - { - "kind": "Accessor", - "name": "Modify", - "printedName": "Modify()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Accessor", - "usr": "s:16DeskproFramework15MessengerConfigC6appKeySSSgvM", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appKeySSSgvM", - "moduleName": "DeskproFramework", - "implicit": true, - "accessorKind": "_modify" - } - ] - }, - { - "kind": "Constructor", - "name": "init", - "printedName": "init(appUrl:appId:appKey:)", - "children": [ - { - "kind": "TypeNominal", - "name": "MessengerConfig", - "printedName": "DeskproFramework.MessengerConfig", - "usr": "s:16DeskproFramework15MessengerConfigC" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "hasDefaultArg": true, - "usr": "s:Sq" - } - ], - "declKind": "Constructor", - "usr": "s:16DeskproFramework15MessengerConfigC6appUrl0E2Id0E3KeyACSS_S2SSgtcfc", - "mangledName": "$s16DeskproFramework15MessengerConfigC6appUrl0E2Id0E3KeyACSS_S2SSgtcfc", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "init_kind": "Designated" - } - ], - "declKind": "Class", - "usr": "s:16DeskproFramework15MessengerConfigC", - "mangledName": "$s16DeskproFramework15MessengerConfigC", - "moduleName": "DeskproFramework", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ] - } - ], - "json_format_version": 8 - }, - "ConstValues": [ - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/UI\/DeskproButton.swift", - "kind": "IntegerLiteral", - "offset": 516, - "length": 2, - "value": "56" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/UI\/DeskproButton.swift", - "kind": "IntegerLiteral", - "offset": 631, - "length": 2, - "value": "56" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/UI\/DeskproButton.swift", - "kind": "IntegerLiteral", - "offset": 2624, - "length": 2, - "value": "16" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/UI\/DeskproButton.swift", - "kind": "IntegerLiteral", - "offset": 2641, - "length": 2, - "value": "16" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/UI\/DeskproButton.swift", - "kind": "StringLiteral", - "offset": 380, - "length": 13, - "value": "\"DeskproFramework.DeskproButton\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentCoordinator.swift", - "kind": "StringLiteral", - "offset": 466, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/PresentBuilder.swift", - "kind": "StringLiteral", - "offset": 841, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "IntegerLiteral", - "offset": 384, - "length": 2, - "value": "58" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 387, - "length": 5, - "value": "255.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "IntegerLiteral", - "offset": 401, - "length": 3, - "value": "141" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 405, - "length": 5, - "value": "255.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "IntegerLiteral", - "offset": 418, - "length": 3, - "value": "222" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 422, - "length": 5, - "value": "255.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 436, - "length": 3, - "value": "1.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "IntegerLiteral", - "offset": 486, - "length": 1, - "value": "5" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 488, - "length": 5, - "value": "255.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "IntegerLiteral", - "offset": 502, - "length": 3, - "value": "100" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 506, - "length": 5, - "value": "255.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "IntegerLiteral", - "offset": 519, - "length": 3, - "value": "192" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 523, - "length": 5, - "value": "255.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "FloatLiteral", - "offset": 537, - "length": 3, - "value": "1.0" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 928, - "length": 2, - "value": "\"\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "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": 9671, - "length": 12, - "value": "\"reloadPage\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 9707, - "length": 13, - "value": "\"getUserInfo\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 9748, - "length": 17, - "value": "\"getUserJwtToken\"" - }, - { - "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": 9671, - "length": 12, - "value": "\"reloadPage\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 9707, - "length": 13, - "value": "\"getUserInfo\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "offset": 9748, - "length": 17, - "value": "\"getUserJwtToken\"" - }, - { - "filePath": "\/Users\/qsd\/Dropbox\/My Mac (QSD’s MacBook Pro)\/Desktop\/DeskproFramework\/WebView.swift", - "kind": "StringLiteral", - "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": 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": 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": 11722, - "length": 2, - "value": "\"\")\n },\n appEvent: async (messengerId, event) => {\n \/\/alert(event.id)\n },\n },\n childMethods: undefined,\n};\"" - } - ] -} \ No newline at end of file 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 deleted file mode 100644 index 0ade870..0000000 --- a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +++ /dev/null @@ -1,70 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51) -// swift-module-flags: -target x86_64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name DeskproFramework -// swift-module-flags-ignorable: -enable-bare-slash-regex -@_exported import DeskproFramework -import Foundation -import Swift -import UIKit -import WebKit -import _Concurrency -import _StringProcessing -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 - public func handlePushNotification(pushNotification: DeskproFramework.PushNotificationData) - public func present() -> DeskproFramework.PresentBuilder - public func close() - public func getUnreadConversationCount() -> Swift.Int - public func enableLogging() - @objc deinit -} -@objc @_hasMissingDesignatedInitializers @_Concurrency.MainActor(unsafe) public class DeskproButton : UIKit.UIButton { - @_Concurrency.MainActor(unsafe) public init(size: CoreFoundation.CGFloat = 56) - @_Concurrency.MainActor(unsafe) public func setImage(named imageName: Swift.String, color: UIKit.UIColor? = nil) - @_Concurrency.MainActor(unsafe) public func setColor(_ color: UIKit.UIColor) - @_Concurrency.MainActor(unsafe) public func setPosition(_ position: DeskproFramework.DeskproButton.ButtonPosition, inView view: UIKit.UIView, x: CoreFoundation.CGFloat = 16, y: CoreFoundation.CGFloat = 16) - public enum ButtonPosition { - case topLeft, topRight, bottomLeft, bottomRight - case custom(CoreFoundation.CGPoint) - } - @objc deinit -} -public class PresentCoordinator { - public init(containingViewController: UIKit.UIViewController) - @objc deinit -} -public class User : Swift.Codable { - public var name: Swift.String? - public var firstName: Swift.String? - public var lastName: Swift.String? - public var email: Swift.String? - public init(name: Swift.String? = nil, firstName: Swift.String? = nil, lastName: Swift.String? = nil, email: Swift.String? = nil) - @objc deinit - public func encode(to encoder: Swift.Encoder) throws - required public init(from decoder: Swift.Decoder) throws -} -public class PresentBuilder { - public var url: Swift.String - public init(url: Swift.String, appId: Swift.String, coordinator: DeskproFramework.PresentCoordinator) - public func chatHistory(_ chatId: Swift.Int) -> DeskproFramework.PresentBuilder - public func article(_ articleId: Swift.Int) -> DeskproFramework.PresentBuilder - public func comments() -> DeskproFramework.PresentBuilder - public func show() - @objc deinit -} -@_hasMissingDesignatedInitializers public class PushNotificationData { - @objc deinit -} -public class MessengerConfig { - public var appUrl: Swift.String - public var appId: Swift.String - public var appKey: Swift.String? - public init(appUrl: Swift.String, appId: Swift.String, appKey: Swift.String? = nil) - @objc deinit -} 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 deleted file mode 100644 index 4104e27..0000000 Binary files a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc and /dev/null 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 deleted file mode 100644 index 0ade870..0000000 --- a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +++ /dev/null @@ -1,70 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51) -// swift-module-flags: -target x86_64-apple-ios11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name DeskproFramework -// swift-module-flags-ignorable: -enable-bare-slash-regex -@_exported import DeskproFramework -import Foundation -import Swift -import UIKit -import WebKit -import _Concurrency -import _StringProcessing -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 - public func handlePushNotification(pushNotification: DeskproFramework.PushNotificationData) - public func present() -> DeskproFramework.PresentBuilder - public func close() - public func getUnreadConversationCount() -> Swift.Int - public func enableLogging() - @objc deinit -} -@objc @_hasMissingDesignatedInitializers @_Concurrency.MainActor(unsafe) public class DeskproButton : UIKit.UIButton { - @_Concurrency.MainActor(unsafe) public init(size: CoreFoundation.CGFloat = 56) - @_Concurrency.MainActor(unsafe) public func setImage(named imageName: Swift.String, color: UIKit.UIColor? = nil) - @_Concurrency.MainActor(unsafe) public func setColor(_ color: UIKit.UIColor) - @_Concurrency.MainActor(unsafe) public func setPosition(_ position: DeskproFramework.DeskproButton.ButtonPosition, inView view: UIKit.UIView, x: CoreFoundation.CGFloat = 16, y: CoreFoundation.CGFloat = 16) - public enum ButtonPosition { - case topLeft, topRight, bottomLeft, bottomRight - case custom(CoreFoundation.CGPoint) - } - @objc deinit -} -public class PresentCoordinator { - public init(containingViewController: UIKit.UIViewController) - @objc deinit -} -public class User : Swift.Codable { - public var name: Swift.String? - public var firstName: Swift.String? - public var lastName: Swift.String? - public var email: Swift.String? - public init(name: Swift.String? = nil, firstName: Swift.String? = nil, lastName: Swift.String? = nil, email: Swift.String? = nil) - @objc deinit - public func encode(to encoder: Swift.Encoder) throws - required public init(from decoder: Swift.Decoder) throws -} -public class PresentBuilder { - public var url: Swift.String - public init(url: Swift.String, appId: Swift.String, coordinator: DeskproFramework.PresentCoordinator) - public func chatHistory(_ chatId: Swift.Int) -> DeskproFramework.PresentBuilder - public func article(_ articleId: Swift.Int) -> DeskproFramework.PresentBuilder - public func comments() -> DeskproFramework.PresentBuilder - public func show() - @objc deinit -} -@_hasMissingDesignatedInitializers public class PushNotificationData { - @objc deinit -} -public class MessengerConfig { - public var appUrl: Swift.String - public var appId: Swift.String - public var appKey: Swift.String? - public init(appUrl: Swift.String, appId: Swift.String, appKey: Swift.String? = nil) - @objc deinit -} diff --git a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/module.modulemap b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/module.modulemap deleted file mode 100644 index 85b5614..0000000 --- a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/Modules/module.modulemap +++ /dev/null @@ -1,11 +0,0 @@ -framework module DeskproFramework { - umbrella header "DeskproFramework.h" - - export * - module * { export * } -} - -module DeskproFramework.Swift { - header "DeskproFramework-Swift.h" - requires objc -} 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 deleted file mode 100644 index 114d7d7..0000000 --- a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/_CodeSignature/CodeResources +++ /dev/null @@ -1,256 +0,0 @@ - - - - - files - - Headers/DeskproFramework-Swift.h - - XK2R4Gv7QoCa0TePWKH+XXtqxK0= - - Headers/DeskproFramework.h - - RMHXevNoitOoYp5STBb9z9/Mph4= - - Info.plist - - BJ8f0t36OFLVAwSMp25sU3OYsDM= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.abi.json - - 4LqHeUfyTPRwhsIOOjgSx1pG5cs= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface - - ykhjACfCnhX9RWsPxLdawtL3VIQ= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftdoc - - Cw8klB7AtBrgaIszLK1hsrlTkoA= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftinterface - - ykhjACfCnhX9RWsPxLdawtL3VIQ= - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftmodule - - 4Lwc5l4MRdK4NgBmkeGbZmfY6as= - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json - - 4LqHeUfyTPRwhsIOOjgSx1pG5cs= - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface - - 3dpW3454ctRaMbs4N3v0EGXRU8I= - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc - - sSj28C42AWoxvVJttkqzJ8M/ylg= - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface - - 3dpW3454ctRaMbs4N3v0EGXRU8I= - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftmodule - - lJ2HNthlUSKCy2f1XLeIQAbNGUg= - - Modules/module.modulemap - - eqHyBGcIaJ/38M3rrk1mdpmC7wk= - - error_page.html - - EkFlXZYt0IjlDpe06d9zFdHH6g8= - - - files2 - - Headers/DeskproFramework-Swift.h - - hash2 - - dN6AX/uOZ0dJGwfYYDB5BmcI0v0cwu6Oz+RXbnOmSFE= - - - Headers/DeskproFramework.h - - hash2 - - rsCWhjvHPX2MONH0KfAuJwQGSOvtuzZlQxh6oOK9dR8= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.abi.json - - hash2 - - iwQtZW6YGV6OJeJSC4HTUQmd/pIvNmNC4xfk7Y4FQ8U= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface - - hash2 - - P24M2wpJxzM2/wbVV5+9zS9tiUPD4XuOECOk37DwG/Y= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftdoc - - hash2 - - i/Si066rc37QoHDVTPWZzonZZT+YzMPhx4re62ENk1M= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftinterface - - hash2 - - P24M2wpJxzM2/wbVV5+9zS9tiUPD4XuOECOk37DwG/Y= - - - Modules/DeskproFramework.swiftmodule/arm64-apple-ios-simulator.swiftmodule - - hash2 - - ciOm7SOK4roZoeq4t9xoDF4k4prKjCOYUK5wnCNDf5U= - - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.abi.json - - hash2 - - iwQtZW6YGV6OJeJSC4HTUQmd/pIvNmNC4xfk7Y4FQ8U= - - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface - - hash2 - - goppDZimpS/qxKvvUEoa44sdgi6a9+5AIrH2YAgsq1c= - - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc - - hash2 - - SjoWpcTyYm+jTHoVYoo2aEauvCh1lEH9Z8hsRc5EIzg= - - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface - - hash2 - - goppDZimpS/qxKvvUEoa44sdgi6a9+5AIrH2YAgsq1c= - - - Modules/DeskproFramework.swiftmodule/x86_64-apple-ios-simulator.swiftmodule - - hash2 - - G69T/Csg0IBOoIVRfJzsi5dJystL4WJ3LGXqbKP+pO4= - - - Modules/module.modulemap - - hash2 - - Hi49DBhI8r1AVjCvWMwU6EFB8KrvenO3HcnQbIoHFD0= - - - error_page.html - - hash2 - - C808T6Pgl3fRNynkHmHnpwr2L3RnD+XQCCtfXGGqpfM= - - - - rules - - ^.* - - ^.*\.lproj/ - - optional - - weight - 1000 - - ^.*\.lproj/locversion.plist$ - - omit - - weight - 1100 - - ^Base\.lproj/ - - weight - 1010 - - ^version.plist$ - - - rules2 - - .*\.dSYM($|/) - - weight - 11 - - ^(.*/)?\.DS_Store$ - - omit - - weight - 2000 - - ^.* - - ^.*\.lproj/ - - optional - - weight - 1000 - - ^.*\.lproj/locversion.plist$ - - omit - - weight - 1100 - - ^Base\.lproj/ - - weight - 1010 - - ^Info\.plist$ - - omit - - weight - 20 - - ^PkgInfo$ - - omit - - weight - 20 - - ^embedded\.provisionprofile$ - - weight - 20 - - ^version\.plist$ - - weight - 20 - - - - diff --git a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/error_page.html b/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/error_page.html deleted file mode 100644 index c4662ad..0000000 --- a/Sources/DeskproFramework.xcframework/ios-arm64_x86_64-simulator/DeskproFramework.framework/error_page.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - - -
-
-

Loading...

-
-
- -
-

Something's gone wrong

-

Content could not be loaded

- -
- - - diff --git a/Sources/Local Storage/AppUserDefaults.swift b/Sources/Local Storage/AppUserDefaults.swift new file mode 100644 index 0000000..3c7e11d --- /dev/null +++ b/Sources/Local Storage/AppUserDefaults.swift @@ -0,0 +1,88 @@ +// +// AppUserDefaults.swift +// DeskproFramework +// +// Created by QSD BiH on 25. 1. 2024.. +// + +import Foundation + +///UserDefaults utility class for managing user information and JWT tokens in the DeskPro Messenger module. +/// +///The class provides methods for retrieving, storing, and clearing user information and JWT tokens using the UserDefaults API. +class AppUserDefaults { + + ///UserDefaults instance. + let prefs = UserDefaults.standard + + ///The application ID associated with the DeskPro Messenger module. + private let appId: String + + ///Key for storing user information in UserDefaults. + private var userInfoKey: String { "\(appId)_user_info" } + + ///Key for storing JWT token in UserDefaults. + private var jwtTokenKey: String { "\(appId)_jwt_token" } + + init(appId: String) { + self.appId = appId + } + + /// Retrieves the user information from UserDefaults. + /// + /// - Returns: The [User](x-source-tag://User) object representing user information, or nil if not present. + func getUserInfo() -> User? { + guard let data = prefs.data(forKey: userInfoKey), + let user = try? JSONDecoder().decode(User.self, from: data) else { + return nil + } + return user + } + + /// Retrieves the user information JSON string from UserDefaults. + /// + /// - Returns: The user information JSON string, or nil if not present. + func getUserInfoJson() -> String? { + guard let data = prefs.data(forKey: userInfoKey), + let user = try? JSONDecoder().decode(User.self, from: data), + let jsonData = try? JSONEncoder().encode(user) else { + return nil + } + return String(data: jsonData, encoding: .utf8) + } + + /// Retrieves the JWT token from UserDefaults. + /// + /// - Returns: The JWT token, or nil if not present. + func getJwtToken() -> String? { + return prefs.string(forKey: jwtTokenKey) + } + + /// Sets the user information in UserDefaults. + /// + /// If the user is nil, removes the user information from UserDefaults. + /// + /// - Parameter user: The [User](x-source-tag://User) object representing user information, or nil. + /// + func setUserInfo(_ user: User?) { + guard let data = try? JSONEncoder().encode(user) else { prefs.removeObject(forKey: userInfoKey); return } + prefs.set(data, forKey: userInfoKey) + } + + /// Sets the JWT token in UserDefaults. + /// + /// If the token is nil, removes the token from UserDefaults. + /// + /// - Parameter user: The [User](x-source-tag://User) object representing user information, or nil. + /// + func setJwtToken(_ token: String?) { + guard let token else { prefs.removeObject(forKey: jwtTokenKey); return } + prefs.set(token, forKey: jwtTokenKey) + } + + /// Clears all data from UserDefaults. + func clear() { + UserDefaults.standard.removeObject(forKey: userInfoKey) + UserDefaults.standard.removeObject(forKey: jwtTokenKey) + } +} diff --git a/Sources/Logs/EventRouter.swift b/Sources/Logs/EventRouter.swift new file mode 100644 index 0000000..e544aee --- /dev/null +++ b/Sources/Logs/EventRouter.swift @@ -0,0 +1,91 @@ +// +// EventRouter.swift +// DeskproFramework +// +// Created by QSD BiH on 2. 2. 2024.. +// + +import Foundation + +public final class EventRouter { + + public var handleEventCallback: ((DeskproEvent) -> Void)? = nil + + private var enableAutologging: Bool + + init(enableAutologging: Bool = false) { + self.enableAutologging = enableAutologging + } + + final func handleOrLogEvent(event: DeskproEvent) { + if enableAutologging { + dprint("[DeskproLogger]: \(event.debugDescription)") + } + handleEventCallback?(event) + } +} + +public enum DeskproEvent { + static let eventPrefix = "appEvent_" + + case newChat(data: String) + case chatEnded(data: String) + case newChatMessage(data: String) + case chatUploadRequest(data: String) + case custom(data: String) + + var identifier: String { + switch self { + case .newChat: return "chat.new" + case .chatEnded: return "chat.ended" + case .newChatMessage: return "chat.new-message" + case .chatUploadRequest: return "chat.upload-request" + case .custom(_): return "custom" + } + } + + var containedIdentifier: String { + switch self { + case .newChat: return "\"id\":\"chat.new\"" + case .chatEnded: return "\"id\":\"chat.ended\"" + case .newChatMessage: return "\"id\":\"chat.new-message\"" + case .chatUploadRequest: return "\"id\":\"chat.upload-request\"" + default: return "" + } + } + + public var data: String { + switch self { + case let .newChat(data): return data + case let .chatEnded(data): return data + case let .newChatMessage(data): return data + case let .chatUploadRequest(data): return data + case let .custom(data): return data + } + } + + public var debugDescription: String { + "\(Date.nowString) [AppEvent] \(data)" + } +} + +private extension Date { + static var nowString: String { + let dateFormatter = DateFormatter() + dateFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss" + return dateFormatter.string(from: Date()) + } +} + +func dprint(_ object: Any...) { +#if DEBUG + for item in object { + print(item) + } +#endif +} +func dprint(_ object: Any) { +#if DEBUG + print(object) +#endif +} diff --git a/Sources/Messenger.swift b/Sources/Messenger.swift new file mode 100644 index 0000000..92040f5 --- /dev/null +++ b/Sources/Messenger.swift @@ -0,0 +1,100 @@ +// +// Messenger.swift +// DeskproFramework +// +// Created by QSD BiH on 4. 1. 2024.. +// + +import Foundation + +/// - Tag: Messenger +protocol Messenger { + + /// Performs a test operation and returns a result as a String. + /// + /// The method is intended to simulate a test scenario and provide a String result based on the outcome of the test. + /// + /// - Returns: A String representing the result of the test operation. + func test() -> String + + /// Sets user information for the application. + /// + /// This function updates or initializes the user information for the application. + /// The [User] object containing the user information. + /// + /// - Parameter user: The [User](x-source-tag://User) object containing the user information. + /// + func setUserInfo(user: User) + + /// Sets a user JWT token that enables Messenger to treat this user as a logged-in user. + /// + /// - Parameter userJwt: The JSON Web Token (JWT) representing the user's authentication. + /// + /// - Returns: `true` if the token is successfully saved, `false` otherwise. + func authorizeUser(userJwt: String) -> Bool + + /// Logs out the current user from the SDK session. + /// + /// This method performs a logout operation, ending the current user's session with the SDK. After calling this method, the user will need to log in again to use the SDK features. + /// + /// - Returns: `true` if the logout operation is successful; `false` otherwise. + func forgetUser() -> Bool + + /// Sets the push registration token for the current user. + /// + /// This method associates the provided device token with the current user, enabling the SDK to send push notifications to the specified device. + /// + /// - Parameter token: The push registration token obtained from the device. + /// + /// - Returns: `true` if the push registration token is successfully set; `false` otherwise. + func setPushRegistrationToken(token: String) -> Bool + + /// Checks whether a push notification is related to the DeskPro SDK. + /// + /// This method examines the provided push notification data to determine whether it is intended for the DeskPro SDK. + /// + /// - Parameter pushNotification: The push notification data to be analyzed. + /// + /// - Returns: `true` if the push notification is related to DeskPro; `false` otherwise. + /// + /// - Tag: isDeskProPushNotification + func isDeskProPushNotification(pushNotification: PushNotificationData) -> Bool + + /// Handles the incoming push notification data if it is related to DeskPro. + /// + /// We recommend calling [isDeskProPushNotification](x-source-tag://isDeskProPushNotification) method before invoking this method to check if the push notification is related to DeskPro. If the check is successful, this method processes the provided push notification data and takes appropriate actions based on its content. + /// + /// If the push notification is not related to DeskPro, it is advisable to handle it appropriately. + /// + /// - Parameter pushNotification: The push notification data to be handled. + /// + func handlePushNotification(pushNotification: PushNotificationData) -> Void + + /// Provides a [PresentBuilder](x-source-tag://PresentBuilder) for constructing presentation paths within the application. + /// + /// This function returns a [PresentBuilder](x-source-tag://PresentBuilder) instance, allowing the construction of presentation paths for various features within the application. The resulting paths can be used to navigate or present specific content. + /// + /// - Returns: A [PresentBuilder](x-source-tag://PresentBuilder) instance to start building presentation paths. + /// + func present() -> PresentBuilder + + /// Closes the chat view presented by the DeskPro SDK. + /// + /// This method closes the currently displayed chat view, terminating the user's interaction with the DeskPro content. + /// + func close() -> Void + + /// Retrieves the number of unread conversations in the user's inbox. + /// + /// This method returns the count of conversations marked as unread in the user's inbox. + /// + /// - Returns: The number of unread conversations in the inbox. + /// + func getUnreadConversationCount() -> Int + + /// Enables logging for the DeskPro SDK. + /// + /// This method turns on logging for the DeskPro SDK, allowing detailed information to be logged for debugging and troubleshooting purposes. + /// + func enableLogging() -> Void +} diff --git a/Sources/MessengerConfig.swift b/Sources/MessengerConfig.swift new file mode 100644 index 0000000..443b1de --- /dev/null +++ b/Sources/MessengerConfig.swift @@ -0,0 +1,27 @@ +// +// MessengerConfig.swift +// DeskproFramework +// +// Created by QSD BiH on 4. 1. 2024.. +// + +import Foundation + +/// Configuration data class for initializing the Messenger feature in the application. +/// +/// This data class holds configuration parameters required for setting up and initializing the Messenger feature within the application. The configuration includes the base URL of the Messenger service, the application ID, and the application key. +public class MessengerConfig { + + public var appUrl: String + public var appId: String + public var appKey: String? + + ///- Parameter appUrl: The base URL of the Messenger service. + ///- Parameter appId: The unique identifier for the application using the Messenger feature. + ///- Parameter appKey: The secret key for authenticating the application with the Messenger service. + public init(appUrl: String, appId: String, appKey: String? = nil) { + self.appUrl = appUrl + self.appId = appId + self.appKey = appKey + } +} diff --git a/Sources/PresentBuilder.swift b/Sources/PresentBuilder.swift new file mode 100644 index 0000000..df1272c --- /dev/null +++ b/Sources/PresentBuilder.swift @@ -0,0 +1,79 @@ +// +// PresentBuilder.swift +// DeskproFramework +// +// Created by QSD BiH on 4. 1. 2024.. +// + +import UIKit + + +/// Builder class for constructing URLs and presenting content in a WebView. +/// +/// This class allows the construction of URLs by chaining various methods to build a specific path. +/// The final constructed path can then be presented in a WebView using the [show](x-source-tag://show) method. +/// +///- Tag: PresentBuilder +public class PresentBuilder { + + /// The coordinator for easier WebView presentation handling. + private weak var coordinator: PresentCoordinator? + + /// The base URL for constructing the path. + public var url: String + + /// The application ID used for presentation. + private var appId: String + + /// Represents the constructed path for the URL. + private var path = "" + + /// This method is a constructor for creating Deskpro objects + /// + /// - Parameter url: The base URL for constructing the path. + /// - Parameter appId: The application ID used for presentation. + /// - Parameter coordinator: The coordinator for easier webView presentation handling + public init(url: String, appId: String, coordinator: PresentCoordinator) { + self.url = url + self.appId = appId + self.path = path.appending(url) + self.coordinator = coordinator + } + + /// Appends the chat history path to the constructed URL path. + /// + /// - Parameter chatId: The identifier of the chat for which the history is requested. + /// + /// - Returns: The [PresentBuilder](x-source-tag://PresentBuilder) instance for method chaining. + public func chatHistory(_ chatId: Int) -> PresentBuilder { + path.append("/chat_history/\(chatId)") + return self + } + + /// Appends the article path to the constructed URL path. + /// + /// - Parameter articleId: The identifier of the article to be presented. + /// + /// - Returns: The [PresentBuilder](x-source-tag://PresentBuilder) instance for method chaining. + public func article(_ articleId: Int) -> PresentBuilder { + path.append("/article/\(articleId)") + return self + } + + /// Appends the comments path to the constructed URL path. + /// + /// - Returns: The [PresentBuilder](x-source-tag://PresentBuilder) instance for method chaining. + public func comments() -> PresentBuilder { + path.append("/comments") + return self + } + + /// Shows the WebView with the constructed path. + /// + /// If the application context is null, a message is logged, and the method returns early. Otherwise, the WebView is started with the constructed path and application ID. + /// + ///- Tag: show + public func show() { + coordinator?.present(path: path, appId: appId) + } +} diff --git a/Sources/PresentCoordinator.swift b/Sources/PresentCoordinator.swift new file mode 100644 index 0000000..74985ef --- /dev/null +++ b/Sources/PresentCoordinator.swift @@ -0,0 +1,50 @@ +// +// PresentCoordinator.swift +// DeskproFramework +// +// Created by QSD BiH on 24. 1. 2024.. +// + +import UIKit + +/// The coordinator for easier WebView presentation handling. It will make sure that only one instance of WebView is presented at the time. +public class PresentCoordinator: WebViewDelegate { + + /// The ViewController from which the WebView will be presented. + weak var containingViewController: UIViewController? + + var path: String = "" + var webViewInstance: CustomWebView? + var eventRouter: EventRouter + + public init( + containingViewController: UIViewController, + eventRouter: EventRouter + ) { + self.containingViewController = containingViewController + self.eventRouter = eventRouter + } + + /// This method will check if WebView is already opened, and if yes, it will load another page inside the same WebView. If not, new WebView instance is created. + final func present(path: String, appId: String) { + self.path = path + + if webViewInstance == nil { + webViewInstance = containingViewController?.presentMessenger(urlString: path, appId: appId) + webViewInstance?.delegate = self + } else { + guard let url = URL(string: path) else { return } + + webViewInstance?.configure(url, appId) + webViewInstance?.loadUrlInWebView() + } + } + + func webViewDismissed() { + webViewInstance = nil + } + + func eventOccured(_ event: DeskproEvent) { + eventRouter.handleOrLogEvent(event: event) + } +} diff --git a/Sources/UI/DeskproButton.swift b/Sources/UI/DeskproButton.swift new file mode 100644 index 0000000..3c2c387 --- /dev/null +++ b/Sources/UI/DeskproButton.swift @@ -0,0 +1,95 @@ +// +// DeskproButton.swift +// DeskproFramework +// +// Created by QSD BiH on 15. 1. 2024.. +// + +import UIKit + +/// DeskproButton is a customizable, rounded UIButton subclass that provides an easy way to create a floating action button with shadow effects and configurable positioning within a view. It supports setting images, colors, and position with minimal setup. +public class DeskproButton: UIButton { + + /// Stores the width (and height, as it's a circle) of the button. + private var sizeWidth: CGFloat = 56 + + /// Initializes the button with a specified size. Default size is 56. + public init(size: CGFloat = 56) { + super.init(frame: .zero) + self.sizeWidth = size + self.frame.size = CGSize(width: sizeWidth, height: sizeWidth) + + configure() + } + + /// Required initializer for decoding the button from a nib or storyboard. + required init?(coder: NSCoder) { + super.init(coder: coder) + self.sizeWidth = self.frame.size.width + configure() + } + + /// Method to configure the button's shadow, corner radius, and background color. It is called automatically during initialization. + private func configure() { + self.layer.shadowColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.6).cgColor + self.layer.shadowOffset = CGSize(width: sizeWidth / 28, height: sizeWidth / 28) + self.layer.shadowOpacity = 0.6 + self.layer.shadowRadius = sizeWidth / 18 + self.layer.masksToBounds = false + self.layer.cornerRadius = sizeWidth / 2 + self.backgroundColor = .deskproLightBlue + } + + /// Sets the button image with an optional tint color. + public func setImage(named imageName: String, color: UIColor? = nil) { + let image = UIImage(named: imageName) + self.setImage(image, for: .normal) + self.imageView?.contentMode = .scaleAspectFit + if let color { + let templateImage = self.imageView?.image?.withRenderingMode(.alwaysTemplate) + self.setImage(templateImage, for: .normal) + self.imageView?.tintColor = color + } + let inset = sizeWidth / 5 + self.imageEdgeInsets = UIEdgeInsets(top: inset, left: inset, bottom: inset, right: inset) + } + + /// Sets the background color of the button. + public func setColor(_ color: UIColor) { + self.backgroundColor = color + } + + /// Positions the button within the specified view. Allows for predefined positions (top/bottom, left/right) or a custom point. + public func setPosition(_ position: ButtonPosition, inView view: UIView, x: CGFloat = 16, y: CGFloat = 16) { + self.translatesAutoresizingMaskIntoConstraints = false + + self.removeConstraints(self.constraints) + + switch position { + case .topLeft: + self.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: y).isActive = true + self.leadingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leadingAnchor, constant: x).isActive = true + case .topRight: + self.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: y).isActive = true + self.trailingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.trailingAnchor, constant: -x).isActive = true + case .bottomLeft: + self.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor, constant: -y).isActive = true + self.leadingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leadingAnchor, constant: x).isActive = true + case .bottomRight: + self.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor, constant: -y).isActive = true + self.trailingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.trailingAnchor, constant: -x).isActive = true + case .custom(let point): + self.centerXAnchor.constraint(equalTo: view.safeAreaLayoutGuide.centerXAnchor, constant: point.x).isActive = true + self.centerYAnchor.constraint(equalTo: view.safeAreaLayoutGuide.centerYAnchor, constant: point.y).isActive = true + } + self.widthAnchor.constraint(equalToConstant: sizeWidth).isActive = true + self.heightAnchor.constraint(equalToConstant: sizeWidth).isActive = true + } + + /// Defines the position of the button. + public enum ButtonPosition { + case topLeft, topRight, bottomLeft, bottomRight + case custom(CGPoint) + } +} + diff --git a/Sources/WebView.swift b/Sources/WebView.swift new file mode 100644 index 0000000..2667f26 --- /dev/null +++ b/Sources/WebView.swift @@ -0,0 +1,357 @@ +// +// WebView.swift +// DeskproFramework +// +// Created by QSD BiH on 4. 1. 2024.. +// + +import UIKit +import WebKit + +/// The delegate to notify when WebView is dismissed, which is important information for PresentCoordinator. +protocol WebViewDelegate: AnyObject { + func webViewDismissed() + func eventOccured(_ event: DeskproEvent) +} + +/// Main app colors. +extension UIColor { + static let deskproLightBlue = UIColor(red: 58/255.0, green: 141/255.0, blue: 222/255.0, alpha: 1.0) + static let deskproDarkBlue = UIColor(red: 5/255.0, green: 100/255.0, blue: 192/255.0, alpha: 1.0) +} + +/// The ViewController hosting WebView for DeskPro Messenger functionality. It manages the WebView, handles WebView configuration, and sets up communication with JavaScript. It also handles WebView lifecycle events and error handling. +class CustomWebView: UIViewController { + + /// The URL that should be loaded in WebView. + var url: URL? + private var appId: String = "" + + private var webView = WKWebView() + private var activityIndicator = UIActivityIndicatorView() + + weak var delegate: WebViewDelegate? + + /// UserDefaults utility for managing user information and JWT tokens. + var appUserdefaults: AppUserDefaults? + + /// Script for making the webView non-zoomable. Users are allowed to zoom anywhere in the webView and webView autozooms when keyboard appears. + let source: String = "var meta = document.createElement('meta');" + + "meta.name = 'viewport';" + + "meta.content = 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no';" + + "var head = document.getElementsByTagName('head')[0];" + "head.appendChild(meta);"; + + override func viewDidLoad() { + super.viewDidLoad() + + setupWebView() + setupActivityIndicator() + + loadUrlInWebView() + } + + override func viewWillDisappear(_ animated: Bool) { + super.viewWillDisappear(true) + delegate?.webViewDismissed() + } + + /// Triggered when device changes the interface style to light or dark. + override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) { + super.traitCollectionDidChange(previousTraitCollection) + if #available(iOS 12.0, *) { + webView.scrollView.backgroundColor = traitCollection.userInterfaceStyle == .dark ? .deskproDarkBlue : .deskproLightBlue + } + } + + /// Basic WebView setup. + private func setupWebView() { + webView = WKWebView(frame: view.bounds, configuration: setupWebViewConfiguration()) + webView.autoresizingMask = [.flexibleWidth, .flexibleHeight] + webView.isOpaque = false + webView.navigationDelegate = self + webView.uiDelegate = self + webView.allowsBackForwardNavigationGestures = true + + view.addSubview(webView) + } + + /// Basic ActivityIndicator setup. + private func setupActivityIndicator() { + activityIndicator = UIActivityIndicatorView() + activityIndicator.center = self.view.center + activityIndicator.hidesWhenStopped = true + if #available(iOS 13.0, *) { + activityIndicator.style = .large + } else { + activityIndicator.style = .whiteLarge + } + if #available(iOS 12.0, *) { + activityIndicator.color = traitCollection.userInterfaceStyle == .dark ? .deskproDarkBlue : .deskproLightBlue + } + + view.addSubview(activityIndicator) + } + + /// Basic WebView configuration. Adds the message handler which will be a key for communication with JS. + private func setupWebViewConfiguration() -> WKWebViewConfiguration { + let configuration = WKWebViewConfiguration() + if #available(iOS 14.0, *) { + configuration.userContentController.addScriptMessageHandler(self, contentWorld: .page, name: "iosListener") + } + let script: WKUserScript = WKUserScript(source: source, injectionTime: .atDocumentEnd, forMainFrameOnly: true) + configuration.userContentController.addUserScript(script) + return configuration + } + + func loadUrlInWebView() { + if let url = url { + let request = URLRequest(url: url) + webView.load(request) + } else { + print("Url not provided") + } + } + + private func showActivityIndicator(show: Bool) { + if show { + activityIndicator.startAnimating() + } else { + activityIndicator.stopAnimating() + } + } + + /// Preparing WebView. + func configure(_ url: URL, _ appId: String) { + self.url = url + self.appId = appId + self.appUserdefaults = AppUserDefaults(appId: appId) + } + + private func evaluateJSFromSwift(script: String) { + webView.evaluateJavaScript(script) { (result, error) in + if let error = error { + print("Error: \(error)") + } else if let result = result { + print("Result: \(result)") + } + } + } +} + +extension CustomWebView: WKNavigationDelegate { + + /// We are allowing users to swipe back to navigate, but only when they leave the chat, e.g. when they tap the "Powered by Deskpro" label which leads to the Deskpro web. + func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) { + if let host = navigationAction.request.url?.host { + if host.contains("deskprodemo") { + webView.allowsBackForwardNavigationGestures = false + } else { + webView.allowsBackForwardNavigationGestures = true + } + } + + decisionHandler(.allow) + } + + func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) { + + self.evaluateJSFromSwift(script: InjectionScripts.initAndOpenScript) + + DispatchQueue.main.asyncAfter(deadline: .now() + 1) { [weak self] in + self?.showActivityIndicator(show: false) + if #available(iOS 12.0, *) { + webView.scrollView.backgroundColor = self?.traitCollection.userInterfaceStyle == .dark ? .deskproDarkBlue : .deskproLightBlue + } + } + } + + func webView(_ webView: WKWebView, didStartProvisionalNavigation navigation: WKNavigation!) { + showActivityIndicator(show: true) + } + + func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error) { + showActivityIndicator(show: false) + } + + func webView(_ webView: WKWebView, didFailProvisionalNavigation navigation: WKNavigation!, withError error: Error) { + showActivityIndicator(show: false) + let htmlFileName = "error_page.html" + let frameworkBundle = Bundle(for: type(of: self)) + + if let htmlPath = frameworkBundle.path(forResource: htmlFileName, ofType: nil) { + let fileUrl = URL(fileURLWithPath: htmlPath) + webView.loadFileURL(fileUrl, allowingReadAccessTo: fileUrl) + } + } +} + +extension CustomWebView: WKUIDelegate { + + func webView(_ webView: WKWebView, runJavaScriptAlertPanelWithMessage message: String, initiatedByFrame frame: WKFrameInfo, completionHandler: @escaping () -> Void) { + let alertController = UIAlertController(title: nil, message: message, preferredStyle: .alert) + alertController.addAction(UIAlertAction(title: "OK", style: .default)) + self.present(alertController, animated: true) + + completionHandler() + } +} + +/// Methods that will be called by JavaScript. +extension CustomWebView { + + private func close() { + self.dismiss(animated: true) + } + + private func reloadPage() { + self.loadUrlInWebView() + } + + private func getUserInfo() -> String { + guard let userInfo = appUserdefaults?.getUserInfoJson() else { return "" } + return userInfo + } + + private func getJwtToken() -> String { + guard let jwtToken = appUserdefaults?.getJwtToken() else { return "" } + return jwtToken + } +} + +extension CustomWebView: WKScriptMessageHandlerWithReply { + + /// Triggered by postMessage(window.webkit.messageHandlers.iosListener.postMessage(...)) + @available(iOS 14.0, *) + func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) async -> (Any?, String?) { + print("WKWebView has received a message: `\(message.body)`") + + guard let messageBody = message.body as? String else { return (nil, nil) } + + if messageBody.contains(DeskproEvent.eventPrefix) { + handleEvent(messageBody) + return (nil, nil) + } + + guard let postedMessage = PostMessageFunctions(rawValue: messageBody) else { return (nil, nil) } + + switch postedMessage { + case .closeWebView: + close() + case .reloadPage: + reloadPage() + case .getUserInfo: + return(getUserInfo(), nil) + case .getUserJwtToken: + return(getJwtToken(), nil) + } + + return (nil, nil) + } + + /// Notify subscribers that appEvent or customEvent has been triggered. + func handleEvent(_ eventString: String) { + let event: DeskproEvent + let data = eventString.replacingOccurrences(of: DeskproEvent.eventPrefix, with: "") + + if data.contains(DeskproEvent.newChat(data: "").containedIdentifier) { + event = .newChat(data: data) + } else if data.contains(DeskproEvent.chatEnded(data: "").containedIdentifier) { + event = .chatEnded(data: data) + } else if data.contains(DeskproEvent.chatUploadRequest(data: "").containedIdentifier) { + event = .chatUploadRequest(data: data) + } else if data.contains(DeskproEvent.newChatMessage(data: "").containedIdentifier) { + event = .newChatMessage(data: data) + } else { + event = .custom(data: data) + } + + delegate?.eventOccured(event) + } +} + +extension UIViewController { + + /// Showing WebView on the screen. + @discardableResult + func presentMessenger(urlString: String, appId: String) -> CustomWebView { + let customWebView = CustomWebView() + + customWebView.modalPresentationStyle = .overFullScreen + + if let url = URL(string: urlString) { + customWebView.configure(url, appId) + } + + present(customWebView, animated: true) + return customWebView + } +} + +private enum PostMessageFunctions: String { + + case closeWebView = "closeWebView" + case reloadPage = "reloadPage" + case getUserInfo = "getUserInfo" + case getUserJwtToken = "getUserJwtToken" +} + +private enum InjectionScripts { + + static let initAndOpenScript = """ + window.DESKPRO_MESSENGER_OPTIONS = { + showLauncherButton: false, + openOnInit: true, + userInfo: { name: "john" }, + signedUserInfo: undefined, + launcherButtonConfig: undefined, + messengerAppConfig: undefined, + urlCacheableConfig: undefined, + }; + + window.DESKPRO_MESSENGER_CONNECTION = { + parentMethods: { + ready: async (messengerId) => { + const data = await window.DESKPRO_MESSENGER_CONNECTION.childMethods?.init(messengerId, { + showLauncherButton: DESKPRO_MESSENGER_OPTIONS.showLauncherButton, + user: window.DESKPRO_MESSENGER_OPTIONS?.userInfo, + launcherButtonConfig: DESKPRO_MESSENGER_OPTIONS.launcherButtonConfig, + messengerAppConfig: DESKPRO_MESSENGER_OPTIONS.messengerAppConfig, + parentViewHeight: "fullscreen", + open: DESKPRO_MESSENGER_OPTIONS.openOnInit, + }); + + if (data) { + const { side, offsetBottom, offsetSide, width, height } = data; + } + }, + getViewHeight: async (messengerId) => { + return "fullscreen"; + }, + getUserInfo: async (messengerId) => { + window.webkit.messageHandlers.iosListener.postMessage("\(PostMessageFunctions.getUserInfo)") + .then(response => { + //alert(response); + }) + }, + getUserJwtToken: async (messengerId) => { + window.webkit.messageHandlers.iosListener.postMessage("\(PostMessageFunctions.getUserJwtToken)") + .then(response => { + //alert(response); + }) + }, + open: async (messengerId, data) => { + const { width, height } = data; + }, + close: async (messengerId, data) => { + window.webkit.messageHandlers.iosListener.postMessage("\(PostMessageFunctions.closeWebView)") + }, + appEvent: async (messengerId, event) => { + //alert(event.id) + var jsonEvent = JSON.stringify(event); + window.webkit.messageHandlers.iosListener.postMessage("\(DeskproEvent.eventPrefix)" + jsonEvent) + }, + }, + childMethods: undefined, + }; + """ +} diff --git a/Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/error_page.html b/Sources/error_page.html similarity index 100% rename from Sources/DeskproFramework.xcframework/ios-arm64/DeskproFramework.framework/error_page.html rename to Sources/error_page.html