Skip to content

Commit

Permalink
v 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pkwak-sf committed Apr 29, 2022
1 parent b342a35 commit 2601a91
Show file tree
Hide file tree
Showing 28 changed files with 88 additions and 44 deletions.
2 changes: 1 addition & 1 deletion BrandMessenger.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "BrandMessenger"
s.version = "1.0.0"
s.version = "1.2.0"
s.summary = "BrandMessenger"
s.description = "Messaging and Chat API for Mobile Apps and Websites"
s.homepage = "https://khoros.com"
Expand Down
14 changes: 7 additions & 7 deletions BrandMessengerCore.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<string>ios-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>BrandMessengerCore.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_i386_x86_64-simulator</string>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>BrandMessengerCore.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@
#import "BrandMessengerSettings.h"
#import <Foundation/Foundation.h>

static NSString* KBM_PASSWORD = @"KBM_PASSWORD";
static NSString* KBM_USER_AUTH_TOKEN = @"KBM_USER_AUTH_TOKEN";
/// Delegate protocol for encryption events.
@protocol KBMEncryptionDelegate <NSObject>
@required
-(void)putSecureValueWithKey:(NSString*)key withValue:(NSString*)value;
@required
-(NSString*)getSecureValueWithKey:(NSString*)key;
@required
-(bool)hasSecureValueWithKey:(NSString*)key;
@required
-(void)clearAll;
@end

/// Logged in user disable the chat key.
static NSString *const KBM_DISABLE_USER_CHAT = @"DISABLE_CHAT_WITH_USER";

Expand Down Expand Up @@ -236,4 +250,6 @@ static NSString *const KBM_REGION_APAC = @"APAC";

+ (void)setDoNotAutosubscribeOnLaunch:(BOOL) subscribe;
+ (BOOL)getDoNotAutosubscribeOnLaunch;

+ (void)setEncryptionDelegate:(id<KBMEncryptionDelegate>)delegate;
@end
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ NS_ASSUME_NONNULL_BEGIN
/// @param maximum Pass the number where it should end.
+ (NSInteger)randomNumberBetween:(NSInteger)minimum maxNumber:(NSInteger)maximum;

+ (KBMMessage *)addDefaultMetadataToMessage:(KBMMessage *) message;
+ (NSMutableDictionary *)getDefaultMetadata:(NSMutableDictionary *) message;

@end

Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@
#import "BrandMessengerSettings.h"
#import <Foundation/Foundation.h>

static NSString* KBM_PASSWORD = @"KBM_PASSWORD";
static NSString* KBM_USER_AUTH_TOKEN = @"KBM_USER_AUTH_TOKEN";
/// Delegate protocol for encryption events.
@protocol KBMEncryptionDelegate <NSObject>
@required
-(void)putSecureValueWithKey:(NSString*)key withValue:(NSString*)value;
@required
-(NSString*)getSecureValueWithKey:(NSString*)key;
@required
-(bool)hasSecureValueWithKey:(NSString*)key;
@required
-(void)clearAll;
@end

/// Logged in user disable the chat key.
static NSString *const KBM_DISABLE_USER_CHAT = @"DISABLE_CHAT_WITH_USER";

Expand Down Expand Up @@ -236,4 +250,6 @@ static NSString *const KBM_REGION_APAC = @"APAC";

+ (void)setDoNotAutosubscribeOnLaunch:(BOOL) subscribe;
+ (BOOL)getDoNotAutosubscribeOnLaunch;

+ (void)setEncryptionDelegate:(id<KBMEncryptionDelegate>)delegate;
@end
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ NS_ASSUME_NONNULL_BEGIN
/// @param maximum Pass the number where it should end.
+ (NSInteger)randomNumberBetween:(NSInteger)minimum maxNumber:(NSInteger)maximum;

+ (KBMMessage *)addDefaultMetadataToMessage:(KBMMessage *) message;
+ (NSMutableDictionary *)getDefaultMetadata:(NSMutableDictionary *) message;

@end

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@
</data>
<key>Headers/KBMUserDefaultsHandler.h</key>
<data>
vAZMrMYsHGGgpdfjuJ3kWhkM3go=
IlU5EV1T+PK4+kZd/IXTB/P/eJY=
</data>
<key>Headers/KBMUserDetail.h</key>
<data>
Expand All @@ -422,7 +422,7 @@
</data>
<key>Headers/KBMUtilityClass.h</key>
<data>
wVN5K+qbDtm+zXf5E4kPM3jFxC8=
ukSYFCGmR6rsC83tqnh6cALCjsk=
</data>
<key>Headers/MQTTCFSocketDecoder.h</key>
<data>
Expand Down Expand Up @@ -530,7 +530,7 @@
</data>
<key>Info.plist</key>
<data>
ryXNRlw4yyuARBrvrSWs36TbCNY=
IRmaTjF/y2KSXYU229PW6x3VYrk=
</data>
<key>MQTTClient.momd/MQTTClient.mom</key>
<data>
Expand Down Expand Up @@ -1659,11 +1659,11 @@
<dict>
<key>hash</key>
<data>
vAZMrMYsHGGgpdfjuJ3kWhkM3go=
IlU5EV1T+PK4+kZd/IXTB/P/eJY=
</data>
<key>hash2</key>
<data>
o+Tfkh4hAu/fLFskQVAxJmKY+Lu0I7mSdpNl5jEwBNs=
AGtFu+XX1WNlsqKuM8Z+ym4oKjRwu/6omHAt6w/7GS4=
</data>
</dict>
<key>Headers/KBMUserDetail.h</key>
Expand Down Expand Up @@ -1703,11 +1703,11 @@
<dict>
<key>hash</key>
<data>
wVN5K+qbDtm+zXf5E4kPM3jFxC8=
ukSYFCGmR6rsC83tqnh6cALCjsk=
</data>
<key>hash2</key>
<data>
Od2L+zbwGzSxEo/F7OMpOnTeRS87RDNPaGDq16Fi59I=
zNIU51FJq3CrYRXJzhhJ+z0gL4jPAamjc0eZ00TH0KM=
</data>
</dict>
<key>Headers/MQTTCFSocketDecoder.h</key>
Expand Down
10 changes: 5 additions & 5 deletions BrandMessengerUI.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>BrandMessengerUI.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>BrandMessengerUI.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ SWIFT_CLASS("_TtC16BrandMessengerUI19AutoCompleteManager")
@class KBMRegistrationResponse;
@protocol KBMAuthenticationDelegate;
@protocol KBMConversationDelegate;
@protocol KBMEncryptionDelegate;

SWIFT_CLASS("_TtC16BrandMessengerUI21BrandMessengerManager")
@interface BrandMessengerManager : NSObject
Expand Down Expand Up @@ -400,6 +401,7 @@ SWIFT_CLASS("_TtC16BrandMessengerUI21BrandMessengerManager")
+ (void)doNotAutosubscribeOnLaunch:(BOOL)use;
/// Call to set KBMConversationDelegate, which allows adding/overriding metadata onto outgoing messages.
+ (void)setConversationDelegate:(id <KBMConversationDelegate> _Nonnull)delegate;
+ (void)setEncryptionDelegate:(id <KBMEncryptionDelegate> _Nonnull)delegate;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,7 @@ extension BrandMessengerUI.AutoCompleteManager : UIKit.UITableViewDataSource, UI
@objc public class func doNotAutosubscribeOnLaunch(_ use: Swift.Bool)
@objc public class func setConversationDelegate(_ delegate: BrandMessengerCore.KBMConversationDelegate)
public class func setMessageActionDelegate(_ delegate: BrandMessengerUI.KBMConversationViewControllerDelegate)
@objc public class func setEncryptionDelegate(_ delegate: BrandMessengerCore.KBMEncryptionDelegate)
@objc deinit
}
@objc @_Concurrency.MainActor(unsafe) public class ConversationListTableViewDataSource : ObjectiveC.NSObject, UIKit.UITableViewDataSource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,7 @@ extension BrandMessengerUI.AutoCompleteManager : UIKit.UITableViewDataSource, UI
@objc public class func doNotAutosubscribeOnLaunch(_ use: Swift.Bool)
@objc public class func setConversationDelegate(_ delegate: BrandMessengerCore.KBMConversationDelegate)
public class func setMessageActionDelegate(_ delegate: BrandMessengerUI.KBMConversationViewControllerDelegate)
@objc public class func setEncryptionDelegate(_ delegate: BrandMessengerCore.KBMEncryptionDelegate)
@objc deinit
}
@objc @_Concurrency.MainActor(unsafe) public class ConversationListTableViewDataSource : ObjectiveC.NSObject, UIKit.UITableViewDataSource {
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ SWIFT_CLASS("_TtC16BrandMessengerUI19AutoCompleteManager")
@class KBMRegistrationResponse;
@protocol KBMAuthenticationDelegate;
@protocol KBMConversationDelegate;
@protocol KBMEncryptionDelegate;

SWIFT_CLASS("_TtC16BrandMessengerUI21BrandMessengerManager")
@interface BrandMessengerManager : NSObject
Expand Down Expand Up @@ -402,6 +403,7 @@ SWIFT_CLASS("_TtC16BrandMessengerUI21BrandMessengerManager")
+ (void)doNotAutosubscribeOnLaunch:(BOOL)use;
/// Call to set KBMConversationDelegate, which allows adding/overriding metadata onto outgoing messages.
+ (void)setConversationDelegate:(id <KBMConversationDelegate> _Nonnull)delegate;
+ (void)setEncryptionDelegate:(id <KBMEncryptionDelegate> _Nonnull)delegate;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
Expand Down Expand Up @@ -1300,6 +1302,7 @@ SWIFT_CLASS("_TtC16BrandMessengerUI19AutoCompleteManager")
@class KBMRegistrationResponse;
@protocol KBMAuthenticationDelegate;
@protocol KBMConversationDelegate;
@protocol KBMEncryptionDelegate;

SWIFT_CLASS("_TtC16BrandMessengerUI21BrandMessengerManager")
@interface BrandMessengerManager : NSObject
Expand Down Expand Up @@ -1428,6 +1431,7 @@ SWIFT_CLASS("_TtC16BrandMessengerUI21BrandMessengerManager")
+ (void)doNotAutosubscribeOnLaunch:(BOOL)use;
/// Call to set KBMConversationDelegate, which allows adding/overriding metadata onto outgoing messages.
+ (void)setConversationDelegate:(id <KBMConversationDelegate> _Nonnull)delegate;
+ (void)setEncryptionDelegate:(id <KBMEncryptionDelegate> _Nonnull)delegate;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,7 @@ extension BrandMessengerUI.AutoCompleteManager : UIKit.UITableViewDataSource, UI
@objc public class func doNotAutosubscribeOnLaunch(_ use: Swift.Bool)
@objc public class func setConversationDelegate(_ delegate: BrandMessengerCore.KBMConversationDelegate)
public class func setMessageActionDelegate(_ delegate: BrandMessengerUI.KBMConversationViewControllerDelegate)
@objc public class func setEncryptionDelegate(_ delegate: BrandMessengerCore.KBMEncryptionDelegate)
@objc deinit
}
@objc @_Concurrency.MainActor(unsafe) public class ConversationListTableViewDataSource : ObjectiveC.NSObject, UIKit.UITableViewDataSource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,7 @@ extension BrandMessengerUI.AutoCompleteManager : UIKit.UITableViewDataSource, UI
@objc public class func doNotAutosubscribeOnLaunch(_ use: Swift.Bool)
@objc public class func setConversationDelegate(_ delegate: BrandMessengerCore.KBMConversationDelegate)
public class func setMessageActionDelegate(_ delegate: BrandMessengerUI.KBMConversationViewControllerDelegate)
@objc public class func setEncryptionDelegate(_ delegate: BrandMessengerCore.KBMEncryptionDelegate)
@objc deinit
}
@objc @_Concurrency.MainActor(unsafe) public class ConversationListTableViewDataSource : ObjectiveC.NSObject, UIKit.UITableViewDataSource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,7 @@ extension BrandMessengerUI.AutoCompleteManager : UIKit.UITableViewDataSource, UI
@objc public class func doNotAutosubscribeOnLaunch(_ use: Swift.Bool)
@objc public class func setConversationDelegate(_ delegate: BrandMessengerCore.KBMConversationDelegate)
public class func setMessageActionDelegate(_ delegate: BrandMessengerUI.KBMConversationViewControllerDelegate)
@objc public class func setEncryptionDelegate(_ delegate: BrandMessengerCore.KBMEncryptionDelegate)
@objc deinit
}
@objc @_Concurrency.MainActor(unsafe) public class ConversationListTableViewDataSource : ObjectiveC.NSObject, UIKit.UITableViewDataSource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,7 @@ extension BrandMessengerUI.AutoCompleteManager : UIKit.UITableViewDataSource, UI
@objc public class func doNotAutosubscribeOnLaunch(_ use: Swift.Bool)
@objc public class func setConversationDelegate(_ delegate: BrandMessengerCore.KBMConversationDelegate)
public class func setMessageActionDelegate(_ delegate: BrandMessengerUI.KBMConversationViewControllerDelegate)
@objc public class func setEncryptionDelegate(_ delegate: BrandMessengerCore.KBMEncryptionDelegate)
@objc deinit
}
@objc @_Concurrency.MainActor(unsafe) public class ConversationListTableViewDataSource : ObjectiveC.NSObject, UIKit.UITableViewDataSource {
Expand Down
Loading

0 comments on commit 2601a91

Please sign in to comment.