diff --git a/.swiftpm/xcode/package.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate b/.swiftpm/xcode/package.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate index 9afe067..59eccd0 100644 Binary files a/.swiftpm/xcode/package.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate and b/.swiftpm/xcode/package.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/CometChatPro/CometChatPro.podspec b/CometChatPro/CometChatPro.podspec index 8dfe037..2af35d0 100755 --- a/CometChatPro/CometChatPro.podspec +++ b/CometChatPro/CometChatPro.podspec @@ -1,12 +1,12 @@ Pod::Spec.new do |spec| spec.name = 'CometChatPro' - spec.version = '3.0.910' + spec.version = '3.0.911-beta1' spec.license = {:type => 'MIT', :file => 'License.md'} spec.homepage = 'https://www.cometchat.com/pro' spec.authors = { 'Abhishek Saralaya' => 'abhishek.saralaya@inscripts.in', 'pushpsen' => 'pushpsen.airekar@inscripts.com'} spec.summary = 'CometChatPro is a platform for integrating voice, video & text messaging experiences into your websites, web apps and mobile apps' - spec.source = { :http => 'https://library.cometchat.io/ios/v3.0/xcode13/CometChatPro_3_0_910.zip'} + spec.source = { :http => 'https://library.cometchat.io/ios/v3.0/xcode13/CometChatPro_3_0_911-beta1.zip'} spec.library = 'z', 'sqlite3', 'xml2.2' spec.xcconfig = {'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2'} spec.documentation_url = 'https://prodocs.cometchat.com/v2.0/docs/ios-quick-start' diff --git a/README.md b/README.md index 7ca2fa7..869b586 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ - +

@@ -67,7 +67,7 @@ platform :ios, '11.0' use_frameworks! target 'YourApp' do - pod 'CometChatPro', '3.0.910' + pod 'CometChatPro', '3.0.911-beta1' end ________________________________________________________________ @@ -84,7 +84,7 @@ platform :ios, '11.0' use_frameworks! target 'YourApp' do - pod 'CometChatPro', '3.0.910' + pod 'CometChatPro', '3.0.911-beta1' pod 'CometChatCalls', '2.2.0' end ________________________________________________________________ diff --git a/Sources/CometChatPro.xcframework/Info.plist b/Sources/CometChatPro.xcframework/Info.plist index 8b9baab..d3166be 100644 --- a/Sources/CometChatPro.xcframework/Info.plist +++ b/Sources/CometChatPro.xcframework/Info.plist @@ -6,29 +6,29 @@ LibraryIdentifier - ios-arm64 + ios-x86_64-simulator LibraryPath CometChatPro.framework SupportedArchitectures - arm64 + x86_64 SupportedPlatform ios + SupportedPlatformVariant + simulator LibraryIdentifier - ios-x86_64-simulator + ios-arm64 LibraryPath CometChatPro.framework SupportedArchitectures - x86_64 + arm64 SupportedPlatform ios - SupportedPlatformVariant - simulator CFBundlePackageType diff --git a/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/CometChatPro b/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/CometChatPro index 05601e5..d01a685 100755 Binary files a/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/CometChatPro and b/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/CometChatPro differ diff --git a/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/Headers/CometChatPro-Swift.h b/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/Headers/CometChatPro-Swift.h index 796aa0e..817c740 100644 --- a/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/Headers/CometChatPro-Swift.h +++ b/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/Headers/CometChatPro-Swift.h @@ -435,6 +435,7 @@ SWIFT_CLASS("_TtC12CometChatPro12CallSettings") @class UIView; enum CallMode : NSInteger; enum AvatarMode : NSInteger; +@class MainVideoContainerSetting; SWIFT_CLASS("_TtCC12CometChatPro12CallSettings19CallSettingsBuilder") @interface CallSettingsBuilder : NSObject @@ -456,6 +457,7 @@ SWIFT_CLASS("_TtCC12CometChatPro12CallSettings19CallSettingsBuilder") - (CallSettingsBuilder * _Nonnull)showSwitchToVideoCallButton:(BOOL)flag SWIFT_WARN_UNUSED_RESULT; - (CallSettingsBuilder * _Nonnull)showRecordingButton:(BOOL)flag SWIFT_WARN_UNUSED_RESULT; - (CallSettingsBuilder * _Nonnull)startRecordingOnCallStart:(BOOL)flag SWIFT_WARN_UNUSED_RESULT; +- (CallSettingsBuilder * _Nonnull)setmainVideoContainerSetting:(MainVideoContainerSetting * _Nonnull)videoSettings SWIFT_WARN_UNUSED_RESULT; - (CallSettings * _Nonnull)build SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @@ -512,9 +514,15 @@ typedef SWIFT_ENUM(NSInteger, Blocked, open) { @interface CometChat (SWIFT_EXTENSION(CometChatPro)) -+ (void)getUserWithUID:(NSString * _Nonnull)UID onSuccess:(void (^ _Nonnull)(User * _Nullable))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; @end +typedef SWIFT_ENUM(NSInteger, AudioMode, open) { + AudioModeSPEAKER = 0, + AudioModeEARPIECE = 1, + AudioModeHEADPHONES = 2, + AudioModeBLUETOOTH = 3, +}; + @interface CometChat (SWIFT_EXTENSION(CometChatPro)) @@ -551,6 +559,7 @@ typedef SWIFT_ENUM(NSInteger, MessageType, open) { }; + @interface CometChat (SWIFT_EXTENSION(CometChatPro)) @end @@ -572,6 +581,17 @@ typedef SWIFT_ENUM(NSInteger, MessageCategory, open) { }; +@interface CometChat (SWIFT_EXTENSION(CometChatPro)) +@end + +typedef SWIFT_ENUM(NSInteger, SubscriptionType, open) { + SubscriptionTypeAllUsers = 0, + SubscriptionTypeOnlyFriends = 1, + SubscriptionTypeRole = 2, + SubscriptionTypeNone = 3, +}; + + @interface CometChat (SWIFT_EXTENSION(CometChatPro)) @end @@ -582,6 +602,29 @@ typedef SWIFT_ENUM(NSInteger, GroupMemberScopeType, open) { }; +@interface CometChat (SWIFT_EXTENSION(CometChatPro)) +@end + +typedef SWIFT_ENUM(NSInteger, SortOrder, open) { + SortOrderAsc = 0, + SortOrderDesc = 1, +}; + + +@interface CometChat (SWIFT_EXTENSION(CometChatPro)) +@end + +typedef SWIFT_ENUM(NSInteger, callStatus, open) { + callStatusInitiated = 0, + callStatusOngoing = 1, + callStatusUnanswered = 2, + callStatusRejected = 3, + callStatusBusy = 4, + callStatusCancelled = 5, + callStatusEnded = 6, +}; + + @interface CometChat (SWIFT_EXTENSION(CometChatPro)) @end @@ -592,6 +635,34 @@ typedef SWIFT_ENUM(NSInteger, UserStatus, open) { }; +@interface CometChat (SWIFT_EXTENSION(CometChatPro)) +@end + +typedef SWIFT_ENUM(NSInteger, CallFlowMode, open) { + CallFlowModeDEFAULT = 0, + CallFlowModeDIRECT = 1, +}; + + +@interface CometChat (SWIFT_EXTENSION(CometChatPro)) +@end + +typedef SWIFT_ENUM(NSInteger, CallType, open) { + CallTypeAudio = 0, + CallTypeVideo = 1, +}; + + +@interface CometChat (SWIFT_EXTENSION(CometChatPro)) +@end + +typedef SWIFT_ENUM(NSInteger, ConversationType, open) { + ConversationTypeUser = 0, + ConversationTypeGroup = 1, + ConversationTypeNone = 2, +}; + + @interface CometChat (SWIFT_EXTENSION(CometChatPro)) @end @@ -671,33 +742,6 @@ typedef SWIFT_ENUM(NSInteger, FeatureType, open) { }; -@interface CometChat (SWIFT_EXTENSION(CometChatPro)) -@end - -typedef SWIFT_ENUM(NSInteger, CallType, open) { - CallTypeAudio = 0, - CallTypeVideo = 1, -}; - - -@interface CometChat (SWIFT_EXTENSION(CometChatPro)) -@end - -typedef SWIFT_ENUM(NSInteger, SortOrder, open) { - SortOrderAsc = 0, - SortOrderDesc = 1, -}; - - -@interface CometChat (SWIFT_EXTENSION(CometChatPro)) -@end - -typedef SWIFT_ENUM(NSInteger, CallFlowMode, open) { - CallFlowModeDEFAULT = 0, - CallFlowModeDIRECT = 1, -}; - - @interface CometChat (SWIFT_EXTENSION(CometChatPro)) @end @@ -709,63 +753,21 @@ typedef SWIFT_ENUM(NSInteger, MemberScope, open) { @interface CometChat (SWIFT_EXTENSION(CometChatPro)) ++ (void)getUserWithUID:(NSString * _Nonnull)UID onSuccess:(void (^ _Nonnull)(User * _Nullable))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; @end -typedef SWIFT_ENUM(NSInteger, ConversationType, open) { - ConversationTypeUser = 0, - ConversationTypeGroup = 1, - ConversationTypeNone = 2, -}; - - -@interface CometChat (SWIFT_EXTENSION(CometChatPro)) -@end - -typedef SWIFT_ENUM(NSInteger, callStatus, open) { - callStatusInitiated = 0, - callStatusOngoing = 1, - callStatusUnanswered = 2, - callStatusRejected = 3, - callStatusBusy = 4, - callStatusCancelled = 5, - callStatusEnded = 6, -}; - - - -@interface CometChat (SWIFT_EXTENSION(CometChatPro)) -@end - -typedef SWIFT_ENUM(NSInteger, AudioMode, open) { - AudioModeSPEAKER = 0, - AudioModeEARPIECE = 1, - AudioModeHEADPHONES = 2, - AudioModeBLUETOOTH = 3, -}; - +@class TransientMessage; @interface CometChat (SWIFT_EXTENSION(CometChatPro)) ++ (void)sendTransientMessageWithMessage:(TransientMessage * _Nonnull)message; @end -typedef SWIFT_ENUM(NSInteger, SubscriptionType, open) { - SubscriptionTypeAllUsers = 0, - SubscriptionTypeOnlyFriends = 1, - SubscriptionTypeRole = 2, - SubscriptionTypeNone = 3, -}; - @interface CometChat (SWIFT_EXTENSION(CometChatPro)) + (void)isFeatureEnabledWithFeature:(NSString * _Nonnull)feature onSuccess:(void (^ _Nonnull)(BOOL))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; @end -@class TransientMessage; - -@interface CometChat (SWIFT_EXTENSION(CometChatPro)) -+ (void)sendTransientMessageWithMessage:(TransientMessage * _Nonnull)message; -@end - @interface CometChat (SWIFT_EXTENSION(CometChatPro)) @end @@ -827,15 +829,15 @@ typedef SWIFT_ENUM(NSInteger, XMPPMsgType, open) { @interface CometChat (SWIFT_EXTENSION(CometChatPro)) -+ (void)kickGroupMemberWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; -+ (void)banGroupMemberWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; -+ (void)unbanGroupMemberWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; -+ (void)updateGroupMemberScopeWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID scope:(enum MemberScope)scope onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; ++ (void)processMessage:(NSDictionary * _Nonnull)message onSuccess:(void (^ _Nonnull)(BaseMessage * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; @end @interface CometChat (SWIFT_EXTENSION(CometChatPro)) -+ (void)processMessage:(NSDictionary * _Nonnull)message onSuccess:(void (^ _Nonnull)(BaseMessage * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; ++ (void)kickGroupMemberWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; ++ (void)banGroupMemberWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; ++ (void)unbanGroupMemberWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; ++ (void)updateGroupMemberScopeWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID scope:(enum MemberScope)scope onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; @end @@ -858,6 +860,14 @@ typedef SWIFT_ENUM(NSInteger, XMPPMsgType, open) { @end +@interface CometChat (SWIFT_EXTENSION(CometChatPro)) ++ (void)loginWithUID:(NSString * _Nonnull)UID apiKey:(NSString * _Nonnull)apiKey onSuccess:(void (^ _Nonnull)(User * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; ++ (void)loginWithUID:(NSString * _Nonnull)UID authKey:(NSString * _Nonnull)authKey onSuccess:(void (^ _Nonnull)(User * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; ++ (void)loginWithAuthToken:(NSString * _Nonnull)authToken onSuccess:(void (^ _Nonnull)(User * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; ++ (void)logoutOnSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; +@end + + @interface CometChat (SWIFT_EXTENSION(CometChatPro)) + (void)markAsReadWithBaseMessage:(BaseMessage * _Nonnull)baseMessage onSuccess:(void (^ _Nonnull)(void))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; + (void)markAsReadWithBaseMessage:(BaseMessage * _Nonnull)baseMessage; @@ -869,14 +879,6 @@ typedef SWIFT_ENUM(NSInteger, XMPPMsgType, open) { + (void)markAsDeliveredWithMessageId:(NSInteger)messageId receiverId:(NSString * _Nonnull)receiverId receiverType:(enum ReceiverType)receiverType messageSender:(NSString * _Nonnull)messageSender; @end - -@interface CometChat (SWIFT_EXTENSION(CometChatPro)) -+ (void)loginWithUID:(NSString * _Nonnull)UID apiKey:(NSString * _Nonnull)apiKey onSuccess:(void (^ _Nonnull)(User * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; -+ (void)loginWithUID:(NSString * _Nonnull)UID authKey:(NSString * _Nonnull)authKey onSuccess:(void (^ _Nonnull)(User * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; -+ (void)loginWithAuthToken:(NSString * _Nonnull)authToken onSuccess:(void (^ _Nonnull)(User * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; -+ (void)logoutOnSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; -@end - @class Group; @interface CometChat (SWIFT_EXTENSION(CometChatPro)) @@ -1300,6 +1302,12 @@ SWIFT_CLASS("_TtCC12CometChatPro13GroupsRequest20GroupsRequestBuilder") @end +SWIFT_CLASS("_TtC12CometChatPro25MainVideoContainerSetting") +@interface MainVideoContainerSetting : NSObject +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + SWIFT_CLASS("_TtC12CometChatPro12MediaMessage") @interface MediaMessage : BaseMessage @property (nonatomic, copy) NSArray * _Nullable tags; diff --git a/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/Headers/CometChatRTCView.h b/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/Headers/CometChatRTCView.h index d605cf1..8fa2cce 100644 --- a/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/Headers/CometChatRTCView.h +++ b/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/Headers/CometChatRTCView.h @@ -46,6 +46,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic) NSMutableDictionary *rtcInitiator; @property (nonatomic,copy) NSString *setAvatarMode; @property (weak, nonatomic) UIView *view; +@property (nonatomic) NSMutableDictionary *setmainVideoContainerSetting; @end @@ -78,6 +79,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic) NSMutableDictionary *rtcReveiver; @property (nonatomic) NSMutableDictionary *rtcInitiator; @property (nonatomic,copy) NSString *setAvatarMode; +@property (nonatomic) NSMutableDictionary *setmainVideoContainerSetting; //ab try kariye maalik @property (nonatomic,weak)NSObject* delegate; //@property (nonatomic, weak) id delegate; @@ -96,6 +98,7 @@ NS_ASSUME_NONNULL_BEGIN -(void)setAudioModeToEarPiece; -(void)setAudioMode:(NSMutableString*)mode; -(void)getAudioModes:(void(^)(NSArray * list))callback; +-(void)getAudioOutputModes:(void(^)(NSArray * list))callback; -(void)enterPIPMode; -(void)exitPIPMode; -(void)switchToVideoCall; diff --git a/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/Info.plist b/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/Info.plist index dfe4cba..9480902 100644 Binary files a/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/Info.plist and b/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/Info.plist differ diff --git a/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/Modules/CometChatPro.swiftmodule/arm64-apple-ios.swiftinterface b/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/Modules/CometChatPro.swiftmodule/arm64-apple-ios.swiftinterface index 7b3ba42..e97f1d8 100644 --- a/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/Modules/CometChatPro.swiftmodule/arm64-apple-ios.swiftinterface +++ b/Sources/CometChatPro.xcframework/ios-arm64/CometChatPro.framework/Modules/CometChatPro.swiftmodule/arm64-apple-ios.swiftinterface @@ -1070,6 +1070,7 @@ extension CometChatPro.CometChat { @objc public func showSwitchToVideoCallButton(_ flag: Swift.Bool) -> CometChatPro.CallSettings.CallSettingsBuilder @objc public func showRecordingButton(_ flag: Swift.Bool) -> CometChatPro.CallSettings.CallSettingsBuilder @objc public func startRecordingOnCallStart(_ flag: Swift.Bool) -> CometChatPro.CallSettings.CallSettingsBuilder + @objc public func setmainVideoContainerSetting(_ videoSettings: CometChatPro.MainVideoContainerSetting) -> CometChatPro.CallSettings.CallSettingsBuilder @objc public func build() -> CometChatPro.CallSettings @objc deinit } @@ -1318,6 +1319,16 @@ extension CometChatPro.CometChat { @objc public static func updateUser(user: CometChatPro.User, authKey: Swift.String, onSuccess: @escaping (CometChatPro.User) -> (), onError: @escaping (CometChatPro.CometChatException?) -> ()) @objc public static func updateCurrentUserDetails(user: CometChatPro.User, onSuccess: @escaping (_ user: CometChatPro.User) -> (), onError: @escaping (_ error: CometChatPro.CometChatException?) -> ()) } +@objc @_inheritsConvenienceInitializers final public class MainVideoContainerSetting : ObjectiveC.NSObject { + @objc override dynamic public init() + final public func getDictionaryForVideoSetting() -> Foundation.NSMutableDictionary + final public func setVideoStreamProp(_ fitVideo: Swift.String) + final public func setNameLabelProps(_ visibility: Swift.Bool, _ position: Swift.String? = nil, _ backGroundColor: Swift.String? = nil) + final public func setFullScreenButtonProps(_ visibility: Swift.Bool, _ position: Swift.String? = nil) + final public func setZoomButtonProps(_ visibility: Swift.Bool, _ position: Swift.String? = nil) + final public func setUserListButtonProps(_ visibility: Swift.Bool, _ position: Swift.String? = nil) + @objc deinit +} extension CometChatPro.CometChat { @objc public enum ConnectionStatus : Swift.Int { case connecting diff --git a/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/CometChatPro b/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/CometChatPro index a562103..c674b11 100755 Binary files a/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/CometChatPro and b/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/CometChatPro differ diff --git a/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/Headers/CometChatPro-Swift.h b/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/Headers/CometChatPro-Swift.h index 796aa0e..817c740 100644 --- a/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/Headers/CometChatPro-Swift.h +++ b/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/Headers/CometChatPro-Swift.h @@ -435,6 +435,7 @@ SWIFT_CLASS("_TtC12CometChatPro12CallSettings") @class UIView; enum CallMode : NSInteger; enum AvatarMode : NSInteger; +@class MainVideoContainerSetting; SWIFT_CLASS("_TtCC12CometChatPro12CallSettings19CallSettingsBuilder") @interface CallSettingsBuilder : NSObject @@ -456,6 +457,7 @@ SWIFT_CLASS("_TtCC12CometChatPro12CallSettings19CallSettingsBuilder") - (CallSettingsBuilder * _Nonnull)showSwitchToVideoCallButton:(BOOL)flag SWIFT_WARN_UNUSED_RESULT; - (CallSettingsBuilder * _Nonnull)showRecordingButton:(BOOL)flag SWIFT_WARN_UNUSED_RESULT; - (CallSettingsBuilder * _Nonnull)startRecordingOnCallStart:(BOOL)flag SWIFT_WARN_UNUSED_RESULT; +- (CallSettingsBuilder * _Nonnull)setmainVideoContainerSetting:(MainVideoContainerSetting * _Nonnull)videoSettings SWIFT_WARN_UNUSED_RESULT; - (CallSettings * _Nonnull)build SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @@ -512,9 +514,15 @@ typedef SWIFT_ENUM(NSInteger, Blocked, open) { @interface CometChat (SWIFT_EXTENSION(CometChatPro)) -+ (void)getUserWithUID:(NSString * _Nonnull)UID onSuccess:(void (^ _Nonnull)(User * _Nullable))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; @end +typedef SWIFT_ENUM(NSInteger, AudioMode, open) { + AudioModeSPEAKER = 0, + AudioModeEARPIECE = 1, + AudioModeHEADPHONES = 2, + AudioModeBLUETOOTH = 3, +}; + @interface CometChat (SWIFT_EXTENSION(CometChatPro)) @@ -551,6 +559,7 @@ typedef SWIFT_ENUM(NSInteger, MessageType, open) { }; + @interface CometChat (SWIFT_EXTENSION(CometChatPro)) @end @@ -572,6 +581,17 @@ typedef SWIFT_ENUM(NSInteger, MessageCategory, open) { }; +@interface CometChat (SWIFT_EXTENSION(CometChatPro)) +@end + +typedef SWIFT_ENUM(NSInteger, SubscriptionType, open) { + SubscriptionTypeAllUsers = 0, + SubscriptionTypeOnlyFriends = 1, + SubscriptionTypeRole = 2, + SubscriptionTypeNone = 3, +}; + + @interface CometChat (SWIFT_EXTENSION(CometChatPro)) @end @@ -582,6 +602,29 @@ typedef SWIFT_ENUM(NSInteger, GroupMemberScopeType, open) { }; +@interface CometChat (SWIFT_EXTENSION(CometChatPro)) +@end + +typedef SWIFT_ENUM(NSInteger, SortOrder, open) { + SortOrderAsc = 0, + SortOrderDesc = 1, +}; + + +@interface CometChat (SWIFT_EXTENSION(CometChatPro)) +@end + +typedef SWIFT_ENUM(NSInteger, callStatus, open) { + callStatusInitiated = 0, + callStatusOngoing = 1, + callStatusUnanswered = 2, + callStatusRejected = 3, + callStatusBusy = 4, + callStatusCancelled = 5, + callStatusEnded = 6, +}; + + @interface CometChat (SWIFT_EXTENSION(CometChatPro)) @end @@ -592,6 +635,34 @@ typedef SWIFT_ENUM(NSInteger, UserStatus, open) { }; +@interface CometChat (SWIFT_EXTENSION(CometChatPro)) +@end + +typedef SWIFT_ENUM(NSInteger, CallFlowMode, open) { + CallFlowModeDEFAULT = 0, + CallFlowModeDIRECT = 1, +}; + + +@interface CometChat (SWIFT_EXTENSION(CometChatPro)) +@end + +typedef SWIFT_ENUM(NSInteger, CallType, open) { + CallTypeAudio = 0, + CallTypeVideo = 1, +}; + + +@interface CometChat (SWIFT_EXTENSION(CometChatPro)) +@end + +typedef SWIFT_ENUM(NSInteger, ConversationType, open) { + ConversationTypeUser = 0, + ConversationTypeGroup = 1, + ConversationTypeNone = 2, +}; + + @interface CometChat (SWIFT_EXTENSION(CometChatPro)) @end @@ -671,33 +742,6 @@ typedef SWIFT_ENUM(NSInteger, FeatureType, open) { }; -@interface CometChat (SWIFT_EXTENSION(CometChatPro)) -@end - -typedef SWIFT_ENUM(NSInteger, CallType, open) { - CallTypeAudio = 0, - CallTypeVideo = 1, -}; - - -@interface CometChat (SWIFT_EXTENSION(CometChatPro)) -@end - -typedef SWIFT_ENUM(NSInteger, SortOrder, open) { - SortOrderAsc = 0, - SortOrderDesc = 1, -}; - - -@interface CometChat (SWIFT_EXTENSION(CometChatPro)) -@end - -typedef SWIFT_ENUM(NSInteger, CallFlowMode, open) { - CallFlowModeDEFAULT = 0, - CallFlowModeDIRECT = 1, -}; - - @interface CometChat (SWIFT_EXTENSION(CometChatPro)) @end @@ -709,63 +753,21 @@ typedef SWIFT_ENUM(NSInteger, MemberScope, open) { @interface CometChat (SWIFT_EXTENSION(CometChatPro)) ++ (void)getUserWithUID:(NSString * _Nonnull)UID onSuccess:(void (^ _Nonnull)(User * _Nullable))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; @end -typedef SWIFT_ENUM(NSInteger, ConversationType, open) { - ConversationTypeUser = 0, - ConversationTypeGroup = 1, - ConversationTypeNone = 2, -}; - - -@interface CometChat (SWIFT_EXTENSION(CometChatPro)) -@end - -typedef SWIFT_ENUM(NSInteger, callStatus, open) { - callStatusInitiated = 0, - callStatusOngoing = 1, - callStatusUnanswered = 2, - callStatusRejected = 3, - callStatusBusy = 4, - callStatusCancelled = 5, - callStatusEnded = 6, -}; - - - -@interface CometChat (SWIFT_EXTENSION(CometChatPro)) -@end - -typedef SWIFT_ENUM(NSInteger, AudioMode, open) { - AudioModeSPEAKER = 0, - AudioModeEARPIECE = 1, - AudioModeHEADPHONES = 2, - AudioModeBLUETOOTH = 3, -}; - +@class TransientMessage; @interface CometChat (SWIFT_EXTENSION(CometChatPro)) ++ (void)sendTransientMessageWithMessage:(TransientMessage * _Nonnull)message; @end -typedef SWIFT_ENUM(NSInteger, SubscriptionType, open) { - SubscriptionTypeAllUsers = 0, - SubscriptionTypeOnlyFriends = 1, - SubscriptionTypeRole = 2, - SubscriptionTypeNone = 3, -}; - @interface CometChat (SWIFT_EXTENSION(CometChatPro)) + (void)isFeatureEnabledWithFeature:(NSString * _Nonnull)feature onSuccess:(void (^ _Nonnull)(BOOL))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; @end -@class TransientMessage; - -@interface CometChat (SWIFT_EXTENSION(CometChatPro)) -+ (void)sendTransientMessageWithMessage:(TransientMessage * _Nonnull)message; -@end - @interface CometChat (SWIFT_EXTENSION(CometChatPro)) @end @@ -827,15 +829,15 @@ typedef SWIFT_ENUM(NSInteger, XMPPMsgType, open) { @interface CometChat (SWIFT_EXTENSION(CometChatPro)) -+ (void)kickGroupMemberWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; -+ (void)banGroupMemberWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; -+ (void)unbanGroupMemberWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; -+ (void)updateGroupMemberScopeWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID scope:(enum MemberScope)scope onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; ++ (void)processMessage:(NSDictionary * _Nonnull)message onSuccess:(void (^ _Nonnull)(BaseMessage * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; @end @interface CometChat (SWIFT_EXTENSION(CometChatPro)) -+ (void)processMessage:(NSDictionary * _Nonnull)message onSuccess:(void (^ _Nonnull)(BaseMessage * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; ++ (void)kickGroupMemberWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; ++ (void)banGroupMemberWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; ++ (void)unbanGroupMemberWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; ++ (void)updateGroupMemberScopeWithUID:(NSString * _Nonnull)UID GUID:(NSString * _Nonnull)GUID scope:(enum MemberScope)scope onSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; @end @@ -858,6 +860,14 @@ typedef SWIFT_ENUM(NSInteger, XMPPMsgType, open) { @end +@interface CometChat (SWIFT_EXTENSION(CometChatPro)) ++ (void)loginWithUID:(NSString * _Nonnull)UID apiKey:(NSString * _Nonnull)apiKey onSuccess:(void (^ _Nonnull)(User * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; ++ (void)loginWithUID:(NSString * _Nonnull)UID authKey:(NSString * _Nonnull)authKey onSuccess:(void (^ _Nonnull)(User * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; ++ (void)loginWithAuthToken:(NSString * _Nonnull)authToken onSuccess:(void (^ _Nonnull)(User * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; ++ (void)logoutOnSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; +@end + + @interface CometChat (SWIFT_EXTENSION(CometChatPro)) + (void)markAsReadWithBaseMessage:(BaseMessage * _Nonnull)baseMessage onSuccess:(void (^ _Nonnull)(void))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nullable))onError; + (void)markAsReadWithBaseMessage:(BaseMessage * _Nonnull)baseMessage; @@ -869,14 +879,6 @@ typedef SWIFT_ENUM(NSInteger, XMPPMsgType, open) { + (void)markAsDeliveredWithMessageId:(NSInteger)messageId receiverId:(NSString * _Nonnull)receiverId receiverType:(enum ReceiverType)receiverType messageSender:(NSString * _Nonnull)messageSender; @end - -@interface CometChat (SWIFT_EXTENSION(CometChatPro)) -+ (void)loginWithUID:(NSString * _Nonnull)UID apiKey:(NSString * _Nonnull)apiKey onSuccess:(void (^ _Nonnull)(User * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; -+ (void)loginWithUID:(NSString * _Nonnull)UID authKey:(NSString * _Nonnull)authKey onSuccess:(void (^ _Nonnull)(User * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; -+ (void)loginWithAuthToken:(NSString * _Nonnull)authToken onSuccess:(void (^ _Nonnull)(User * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; -+ (void)logoutOnSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onError:(void (^ _Nonnull)(CometChatException * _Nonnull))onError; -@end - @class Group; @interface CometChat (SWIFT_EXTENSION(CometChatPro)) @@ -1300,6 +1302,12 @@ SWIFT_CLASS("_TtCC12CometChatPro13GroupsRequest20GroupsRequestBuilder") @end +SWIFT_CLASS("_TtC12CometChatPro25MainVideoContainerSetting") +@interface MainVideoContainerSetting : NSObject +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + SWIFT_CLASS("_TtC12CometChatPro12MediaMessage") @interface MediaMessage : BaseMessage @property (nonatomic, copy) NSArray * _Nullable tags; diff --git a/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/Headers/CometChatRTCView.h b/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/Headers/CometChatRTCView.h index d605cf1..8fa2cce 100644 --- a/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/Headers/CometChatRTCView.h +++ b/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/Headers/CometChatRTCView.h @@ -46,6 +46,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic) NSMutableDictionary *rtcInitiator; @property (nonatomic,copy) NSString *setAvatarMode; @property (weak, nonatomic) UIView *view; +@property (nonatomic) NSMutableDictionary *setmainVideoContainerSetting; @end @@ -78,6 +79,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic) NSMutableDictionary *rtcReveiver; @property (nonatomic) NSMutableDictionary *rtcInitiator; @property (nonatomic,copy) NSString *setAvatarMode; +@property (nonatomic) NSMutableDictionary *setmainVideoContainerSetting; //ab try kariye maalik @property (nonatomic,weak)NSObject* delegate; //@property (nonatomic, weak) id delegate; @@ -96,6 +98,7 @@ NS_ASSUME_NONNULL_BEGIN -(void)setAudioModeToEarPiece; -(void)setAudioMode:(NSMutableString*)mode; -(void)getAudioModes:(void(^)(NSArray * list))callback; +-(void)getAudioOutputModes:(void(^)(NSArray * list))callback; -(void)enterPIPMode; -(void)exitPIPMode; -(void)switchToVideoCall; diff --git a/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/Info.plist b/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/Info.plist index 3c3979f..9601197 100644 Binary files a/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/Info.plist and b/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/Info.plist differ diff --git a/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/Modules/CometChatPro.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/Modules/CometChatPro.swiftmodule/x86_64-apple-ios-simulator.swiftinterface index 07d3a52..5bc381f 100644 --- a/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/Modules/CometChatPro.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +++ b/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/Modules/CometChatPro.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -1070,6 +1070,7 @@ extension CometChatPro.CometChat { @objc public func showSwitchToVideoCallButton(_ flag: Swift.Bool) -> CometChatPro.CallSettings.CallSettingsBuilder @objc public func showRecordingButton(_ flag: Swift.Bool) -> CometChatPro.CallSettings.CallSettingsBuilder @objc public func startRecordingOnCallStart(_ flag: Swift.Bool) -> CometChatPro.CallSettings.CallSettingsBuilder + @objc public func setmainVideoContainerSetting(_ videoSettings: CometChatPro.MainVideoContainerSetting) -> CometChatPro.CallSettings.CallSettingsBuilder @objc public func build() -> CometChatPro.CallSettings @objc deinit } @@ -1318,6 +1319,16 @@ extension CometChatPro.CometChat { @objc public static func updateUser(user: CometChatPro.User, authKey: Swift.String, onSuccess: @escaping (CometChatPro.User) -> (), onError: @escaping (CometChatPro.CometChatException?) -> ()) @objc public static func updateCurrentUserDetails(user: CometChatPro.User, onSuccess: @escaping (_ user: CometChatPro.User) -> (), onError: @escaping (_ error: CometChatPro.CometChatException?) -> ()) } +@objc @_inheritsConvenienceInitializers final public class MainVideoContainerSetting : ObjectiveC.NSObject { + @objc override dynamic public init() + final public func getDictionaryForVideoSetting() -> Foundation.NSMutableDictionary + final public func setVideoStreamProp(_ fitVideo: Swift.String) + final public func setNameLabelProps(_ visibility: Swift.Bool, _ position: Swift.String? = nil, _ backGroundColor: Swift.String? = nil) + final public func setFullScreenButtonProps(_ visibility: Swift.Bool, _ position: Swift.String? = nil) + final public func setZoomButtonProps(_ visibility: Swift.Bool, _ position: Swift.String? = nil) + final public func setUserListButtonProps(_ visibility: Swift.Bool, _ position: Swift.String? = nil) + @objc deinit +} extension CometChatPro.CometChat { @objc public enum ConnectionStatus : Swift.Int { case connecting diff --git a/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/_CodeSignature/CodeResources b/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/_CodeSignature/CodeResources index cfee471..deb380d 100644 --- a/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/_CodeSignature/CodeResources +++ b/Sources/CometChatPro.xcframework/ios-x86_64-simulator/CometChatPro.framework/_CodeSignature/CodeResources @@ -78,7 +78,7 @@ Headers/CometChatPro-Swift.h - q3xkxl1jr94Ip/lhZkO6C9kUEsU= + 8jXSvxbrNWkxC/BWqX2NlT+JBy8= Headers/CometChatPro.h @@ -86,7 +86,7 @@ Headers/CometChatRTCView.h - TXZAN5rKLCpxwRNHT5z+d/W8POE= + f232RXyoLwx3LJHzsD/YUaAlVKw= Headers/FMDB.h @@ -118,7 +118,7 @@ Info.plist - R6MebVOYpsP3qalRE6dd5dSMyZE= + P2MeBLhQy8C9BMoGJYJQGoSor5M= Modules/CometChatPro.swiftmodule/x86_64-apple-ios-simulator.swiftdoc @@ -126,11 +126,11 @@ Modules/CometChatPro.swiftmodule/x86_64-apple-ios-simulator.swiftinterface - IqaA6ZRwqWPlUNRS6J58lsnVPlQ= + IhH5zTboZfT6JX/F96V9Ub7waPw= Modules/CometChatPro.swiftmodule/x86_64-apple-ios-simulator.swiftmodule - NkKOSulD09mr5slWYlzDq57cOd8= + 0QEVzanoBlZCW6+jFV+Bc/MV5/M= Modules/module.modulemap @@ -269,7 +269,7 @@ hash2 - A7PUGdiKf1H6ba5PsOK+BCRuLtfFtJdI2ad1DjIMfpw= + rMXdSHuXTC/as8KJJAEVCMoGN9nfi+7zz0GUrnOCCK8= Headers/CometChatPro.h @@ -283,7 +283,7 @@ hash2 - kySrDeHez3wHwIeUuz3YjdP/+WhBMqxfT8rC7+6bpSo= + sWNUX7dB0pPklSR39nNohWbOGrsc6V5e7ba0Vt526/4= Headers/FMDB.h @@ -346,14 +346,14 @@ hash2 - aSnP+f0/OKug/bxbLLMHYxXR3dSeRiyh+zRY93VUEE8= + bwWu6dZ9O8GB4Szv9G52luh+6NtqiqjUILzYku00YUQ= Modules/CometChatPro.swiftmodule/x86_64-apple-ios-simulator.swiftmodule hash2 - tjOi1UN77zYv+iKOvLt5380UtvNNP9ZlizN6//ndccI= + NMMDB3T8kOB3SnFiGn7yQ+WCId+sQwhOIDYy/VjVw+s= Modules/module.modulemap