From 12ed7ba7b52d89bc889f6ee74c02c55d88887bed Mon Sep 17 00:00:00 2001 From: BitriseBot Date: Tue, 14 Jun 2022 12:21:56 +0000 Subject: [PATCH] Glia Core SDK Release 0.33.4 --- Package.swift | 4 +- SalemoveSDK.podspec | 2 +- .../Headers/SalemoveSDK-Swift.h | 199 +++------ .../SalemoveSDK.framework/Info.plist | Bin 763 -> 763 bytes .../arm64-apple-ios.swiftdoc | Bin 111936 -> 113820 bytes .../arm64-apple-ios.swiftinterface | 40 +- .../SalemoveSDK.framework/SalemoveSDK | Bin 13848408 -> 13914488 bytes .../Headers/SalemoveSDK-Swift.h | 398 ++++++------------ .../SalemoveSDK.framework/Info.plist | Bin 743 -> 743 bytes .../arm64-apple-ios-simulator.swiftdoc | Bin 111948 -> 113832 bytes .../arm64-apple-ios-simulator.swiftinterface | 40 +- .../x86_64-apple-ios-simulator.swiftdoc | Bin 111948 -> 113832 bytes .../x86_64-apple-ios-simulator.swiftinterface | 40 +- .../SalemoveSDK.framework/SalemoveSDK | Bin 3868864 -> 3918672 bytes .../_CodeSignature/CodeResources | 30 +- 15 files changed, 300 insertions(+), 453 deletions(-) diff --git a/Package.swift b/Package.swift index 7909bb2..7496145 100644 --- a/Package.swift +++ b/Package.swift @@ -35,8 +35,8 @@ let package = Package( ), .binaryTarget( name: "SalemoveSDK", - url: "https://github.com/salemove/ios-bundle/releases/download/0.33.3/SalemoveSDK.xcframework.zip", - checksum: "6022b274530da0aa8edecbfa35492f7df2a7c4e3c6975a39b7e2b96fe96a934c" + url: "https://github.com/salemove/ios-bundle/releases/download/0.33.4/SalemoveSDK.xcframework.zip", + checksum: "894c7b4cb4e19b6e27efbbb1b16cd94b0e205ef3f554cbb2f776f7591ccfa10e" ), .target( name: "GliaSDK", diff --git a/SalemoveSDK.podspec b/SalemoveSDK.podspec index 2a370ba..4ff9206 100644 --- a/SalemoveSDK.podspec +++ b/SalemoveSDK.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'SalemoveSDK' - s.version = '0.33.3' + s.version = '0.33.4' s.summary = 'The Salemove iOS library' s.description = 'The Salemove iOS library brings the in-person customer experience to iOS devices.' s.homepage = 'https://github.com/salemove/ios-sdk' diff --git a/SalemoveSDK.xcframework/ios-arm64/SalemoveSDK.framework/Headers/SalemoveSDK-Swift.h b/SalemoveSDK.xcframework/ios-arm64/SalemoveSDK.framework/Headers/SalemoveSDK-Swift.h index 7f8d801..942a687 100644 --- a/SalemoveSDK.xcframework/ios-arm64/SalemoveSDK.framework/Headers/SalemoveSDK-Swift.h +++ b/SalemoveSDK.xcframework/ios-arm64/SalemoveSDK.framework/Headers/SalemoveSDK-Swift.h @@ -280,7 +280,7 @@ typedef SWIFT_ENUM(NSInteger, ConfigurationError, open) { }; static NSString * _Nonnull const ConfigurationErrorDomain = @"SalemoveSDK.ConfigurationError"; -/// Error of the visitor context +/// Deprecated. typedef SWIFT_ENUM(NSInteger, ContextError, open) { /// The context URL is invalid. ContextErrorInvalidURL = 0, @@ -695,19 +695,10 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) Salemove * _ + + @interface Salemove (SWIFT_EXTENSION(SalemoveSDK)) -/// Request a VisitorCode for current Visitor -/// A Visitor code can be displayed to the Visitor. The Visitor can then inform OmniBrowse Operators of their code. -/// OmniBrowse Operators use the Visitor’s code to start an OmniBrowse Engagement with the Visitor. -/// Each Visitor code is generated on demand and is unique for every Visitor on a particular site. Upon the first time -/// this function is called for a Visitor the code is generated and returned. For each successive call thereafter the -/// same code will be returned as long as the code has not expired. The expiration time for Visitor codes is 3 hours. -/// During that time the code can be used to initiate an engagement. Once Operator uses the Visitor code to initiate -/// an engagement, the code will expire immediately. When the Visitor Code expires this function will return a new -/// Visitor code. -/// The expiration time is important to take note of if you plan on retrieving the code only once during the Visitor’s -/// session. A new code should be requested once the initial one has expired. When Visitor provides an expired code -/// to Operator the Operator will not be able to connect with the Visitor. +/// Request media upgrade with specific offer /// If the request is unsuccessful for any reason then the completion will have an Error. /// The Error may have one of the following causes: /// -/// \param completion A callback that will return the visitor code or SalemoveError +/// \param offer The `MediaUpgradeOffer’ that is used for the request /// -- (void)requestVisitorCodeWithCompletion:(void (^ _Nonnull)(NSString * _Nullable, SalemoveError * _Nullable))completion; +/// \param completion A callback that returns the upgrade result or SalemoveError +/// +- (void)requestMediaUpgradeWithOffer:(MediaUpgradeOffer * _Nonnull)offer completion:(void (^ _Nonnull)(BOOL, SalemoveError * _Nullable))completion; @end - @interface Salemove (SWIFT_EXTENSION(SalemoveSDK)) -/// Request media upgrade with specific offer +/// Request a VisitorCode for current Visitor +/// A Visitor code can be displayed to the Visitor. The Visitor can then inform OmniBrowse Operators of their code. +/// OmniBrowse Operators use the Visitor’s code to start an OmniBrowse Engagement with the Visitor. +/// Each Visitor code is generated on demand and is unique for every Visitor on a particular site. Upon the first time +/// this function is called for a Visitor the code is generated and returned. For each successive call thereafter the +/// same code will be returned as long as the code has not expired. The expiration time for Visitor codes is 3 hours. +/// During that time the code can be used to initiate an engagement. Once Operator uses the Visitor code to initiate +/// an engagement, the code will expire immediately. When the Visitor Code expires this function will return a new +/// Visitor code. +/// The expiration time is important to take note of if you plan on retrieving the code only once during the Visitor’s +/// session. A new code should be requested once the initial one has expired. When Visitor provides an expired code +/// to Operator the Operator will not be able to connect with the Visitor. /// If the request is unsuccessful for any reason then the completion will have an Error. /// The Error may have one of the following causes: /// -/// \param offer The `MediaUpgradeOffer’ that is used for the request -/// -/// \param completion A callback that returns the upgrade result or SalemoveError +/// \param completion A callback that will return the visitor code or SalemoveError /// -- (void)requestMediaUpgradeWithOffer:(MediaUpgradeOffer * _Nonnull)offer completion:(void (^ _Nonnull)(BOOL, SalemoveError * _Nullable))completion; +- (void)requestVisitorCodeWithCompletion:(void (^ _Nonnull)(NSString * _Nullable, SalemoveError * _Nullable))completion; @end @@ -776,7 +777,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) Salemove * _ - @interface Salemove (SWIFT_EXTENSION(SalemoveSDK)) /// Clear the use session of the client library - (void)clearSession; @@ -972,33 +972,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) Salemove * _ -@interface Salemove (SWIFT_EXTENSION(SalemoveSDK)) -/// Deprecated. Use fetchFile(engagementFile:progress:completion:) instead. -- (void)fetchFile:(NSString * _Nonnull)id progress:(void (^ _Nullable)(EngagementFileProgress * _Nonnull))progress completion:(void (^ _Nonnull)(EngagementFileData * _Nullable, SalemoveError * _Nullable))completion SWIFT_DEPRECATED_MSG("Use fetchFile(engagementFile:progress:completion:) instead."); -/// Deprecated. Use send(selectedOptionValue:completion:) instead. -- (void)sendWithSelectedOptionValue:(NSString * _Nonnull)selectedOptionValue messageId:(NSString * _Nonnull)messageId completion:(void (^ _Nonnull)(Message * _Nullable, SalemoveError * _Nullable))completion SWIFT_DEPRECATED_MSG("Use send(selectedOptionValue:completion:) instead."); -/// Deprecated. Use Salemove.configure(with:) instead. -- (BOOL)configureWithAppToken:(NSString * _Nonnull)appToken error:(NSError * _Nullable * _Nullable)error SWIFT_DEPRECATED_MSG("Use `Salemove.configure(with:) throws` instead."); -/// Change the site used by the client library. -/// \param site The siteID that should be selected. -/// -/// -/// throws: -/// ConfigurationError.invalidSite -- (BOOL)configureWithSite:(NSString * _Nonnull)site error:(NSError * _Nullable * _Nullable)error SWIFT_DEPRECATED_MSG("Use `Salemove.configure(_ configuration: Configuration)` instead."); -/// Change the environment used by the client library. -/// \param environment The environment baseURL that should be selected. -/// -/// -/// throws: -/// ConfigurationError.invalidEnvironment -- (BOOL)configureWithEnvironment:(NSString * _Nonnull)environment error:(NSError * _Nullable * _Nullable)error SWIFT_DEPRECATED_MSG("Use `Salemove.configure(_ configuration: Configuration)` instead."); -/// Deprecated. -- (BOOL)configureWithApiToken:(NSString * _Nonnull)apiToken error:(NSError * _Nullable * _Nullable)error SWIFT_DEPRECATED_MSG("Api token is not supported."); -@end - -@class VisitorContext; - @interface Salemove (SWIFT_EXTENSION(SalemoveSDK)) /// Waits until there is an active engagement handled by the SDK. /// If the SDK already has an active engagement present, then it returns information about it through @@ -1010,45 +983,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) Salemove * _ /// \param completion The closure that will be called once the SDK detects an active engagement. /// - (void)waitForActiveEngagementWithCompletion:(void (^ _Nonnull)(Engagement * _Nullable, SalemoveError * _Nullable))completion; -/// Request an Engagement with a selected Operator. -/// This method is the equivalent of calling requestEngagementWith:visitorContext:options:completion: -/// with the options parameter set to an EngagementMediaOptions instance with type -/// as MediaType.text. -/// If the request is unsuccessful for any reason then the completion will have an Error. -/// The Error may have one of the following causes: -/// -/// \param selectedOperator The Operator that will be selected. -/// -/// \param visitorContext The visitor context that should be displayed. -/// -/// \param completion A callback that will return the EngagementRequest or SalemoveError. -/// -- (void)requestEngagementWithSelectedOperator:(Operator * _Nonnull)selectedOperator visitorContext:(VisitorContext * _Nonnull)visitorContext completion:(void (^ _Nonnull)(EngagementRequest * _Nullable, SalemoveError * _Nullable))completion; /// Cancel an ongoing EngagementRequest ///