Skip to content

Commit 116f907

Browse files
QuickBlox-SDK 2.18.0
1 parent 0359976 commit 116f907

File tree

13 files changed

+279
-13
lines changed

13 files changed

+279
-13
lines changed

Framework/Quickblox.xcframework/ios-arm64/Quickblox.framework/Headers/QBSession.h

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,20 @@ FOUNDATION_EXPORT NSNotificationName const kQBLogoutNotification;
5454
@note updateSessionBlock must be already set
5555
5656
@param session QBAsession instance with updated credentials
57+
@warning *Deprecated in 2.18.*. Use 'startSessionWithToken:' method of QBSessionManager instead.
5758
*/
58-
- (void)startSessionWithDetails:(QBASession *)session;
59+
- (void)startSessionWithDetails:(QBASession *)session
60+
DEPRECATED_MSG_ATTRIBUTE("Deprecated in 2.18. Use 'startSessionWithToken:' method of QBSessionManager instead.");
5961

6062
/**
6163
Start session with details
6264
6365
@param session QBASession instance, token, applicationID, userID are required fields
6466
@param sessionDate expiration date
67+
@warning *Deprecated in 2.18.*. Use 'startSessionWithToken:' method of QBSessionManager instead.
6568
*/
66-
- (void)startSessionWithDetails:(QBASession *)session expirationDate:(NSDate *)sessionDate;
69+
- (void)startSessionWithDetails:(QBASession *)session expirationDate:(NSDate *)sessionDate
70+
DEPRECATED_MSG_ATTRIBUTE("Deprecated in 2.18. Use 'startSessionWithToken:' method of QBSessionManager instead.");
6771

6872
/**
6973
Start session with details
@@ -76,8 +80,11 @@ FOUNDATION_EXPORT NSNotificationName const kQBLogoutNotification;
7680
7781
@param session QBAsession instance
7882
@param updateSessionBlock updateSessionBlock before the end of this block you should call startSessionWithDetails:
83+
@warning *Deprecated in 2.18.*. Use 'startSessionWithToken:' method of QBSessionManager instead.
84+
Use 'QBSessionManagerDelegate' callbacks to detect session states.
7985
*/
80-
- (void)startSessionWithDetails:(QBASession *)session updateSessionBlock:(dispatch_block_t)updateSessionBlock;
86+
- (void)startSessionWithDetails:(QBASession *)session updateSessionBlock:(dispatch_block_t)updateSessionBlock
87+
DEPRECATED_MSG_ATTRIBUTE("Deprecated in 2.18. Use 'startSessionWithToken:' method of QBSessionManager instead.");
8188

8289
@end
8390

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
//
2+
// QBSessionManager.h
3+
// QuickBlox
4+
//
5+
// Created by QuickBlox team on 08.09.14.
6+
//
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
@class QBASession;
12+
13+
NS_ASSUME_NONNULL_BEGIN
14+
15+
@interface QBSessionManager : NSObject
16+
17+
/** The current session manager instance. */
18+
@property (nonatomic, strong, readonly, class) QBSessionManager *instance;
19+
20+
/**
21+
Start session with token
22+
23+
Use QBSessionManagerDelegate callbacks to detect session states
24+
@note disables auto create session
25+
26+
@param token Unique auto generated sequence of numbers which identify API User as the legitimate user of our system
27+
*/
28+
- (void)startSessionWithToken:(NSString *)token;
29+
30+
@end
31+
32+
/**
33+
QBSessionDelegate protocol definition.
34+
This protocol defines methods signatures for callbacks.
35+
Implement this protocol in your class and add [QBSessionManager instance].addDelegate to your implementation
36+
instance to receive callbacks from QBSessionManager
37+
*/
38+
@protocol QBSessionManagerDelegate <NSObject>
39+
40+
/**
41+
Called whenever QBSession did start.
42+
43+
Use this callback to detect that session start successfully.
44+
*/
45+
- (void)sessionManager:(QBSessionManager *)manager
46+
didStartSessionWithDetails:(QBASession *)details;
47+
48+
/**
49+
Called whenever QBSession did not start.
50+
51+
Use this callback to detect that session start fail.
52+
*/
53+
- (void)sessionManager:(QBSessionManager *)manager
54+
didNotStartSessionWithError:(NSError * _Nullable)error;
55+
56+
/**
57+
Called whenever QBSession did expire.
58+
59+
Use this callback for starting update session process.
60+
*/
61+
- (void)sessionManagerDidExpireSession:(QBSessionManager *)manager;
62+
63+
@end
64+
65+
@interface QBSessionManager (SessionDelegate)
66+
67+
/**
68+
Adds the given delegate implementation to the list of observers.
69+
70+
@param delegate The delegate to add.
71+
*/
72+
- (void)addDelegate:(id<QBSessionManagerDelegate>)delegate;
73+
74+
/**
75+
Removes the given delegate implementation from the list of observers.
76+
77+
@param delegate The delegate to remove.
78+
*/
79+
- (void)removeDelegate:(id<QBSessionManagerDelegate>)delegate;
80+
81+
/** Removes all delegates. */
82+
- (void)removeAllDelegates;
83+
84+
/** Returns array of all delegates. */
85+
- (NSArray<id<QBSessionManagerDelegate>> *)delegates;
86+
87+
@end
88+
89+
NS_ASSUME_NONNULL_END

Framework/Quickblox.xcframework/ios-arm64/Quickblox.framework/Headers/Quickblox.h

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,32 @@
5555
#import <QuickBlox/QBResponse.h>
5656
#import <QuickBlox/QBResponsePage.h>
5757
#import <QuickBlox/QBSession.h>
58+
#import <QuickBlox/QBSessionManager.h>
5859
#import <QuickBlox/QBSettings.h>
5960
#import <QuickBlox/QBUpdateUserParameters.h>
6061
#import <QuickBlox/QBUUser.h>
6162

62-
/// Framework version 2.17.11
63+
#import <Foundation/Foundation.h>
64+
65+
NS_ASSUME_NONNULL_BEGIN
66+
67+
/// Framework version 2.18.0
6368
FOUNDATION_EXPORT NSString * const QuickbloxFrameworkVersion;
69+
70+
@interface Quickblox : NSObject
71+
72+
+ (void)initWithApplicationId:(NSUInteger)appId
73+
authKey:(NSString *)authKey
74+
authSecret:(NSString *)authSecret
75+
accountKey:(nullable NSString *)accountKey;
76+
77+
+ (void)initWithApplicationId:(NSUInteger)appId
78+
accountKey:(nullable NSString *)accountKey;
79+
80+
// Unavailable initializers
81+
+ (id)new NS_UNAVAILABLE;
82+
- (id)init NS_UNAVAILABLE;
83+
84+
@end
85+
86+
NS_ASSUME_NONNULL_END
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
explicit framework module Quickblox.Private {
2+
3+
}
Binary file not shown.

Framework/Quickblox.xcframework/ios-arm64_x86_64-simulator/Quickblox.framework/Headers/QBSession.h

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,20 @@ FOUNDATION_EXPORT NSNotificationName const kQBLogoutNotification;
5454
@note updateSessionBlock must be already set
5555
5656
@param session QBAsession instance with updated credentials
57+
@warning *Deprecated in 2.18.*. Use 'startSessionWithToken:' method of QBSessionManager instead.
5758
*/
58-
- (void)startSessionWithDetails:(QBASession *)session;
59+
- (void)startSessionWithDetails:(QBASession *)session
60+
DEPRECATED_MSG_ATTRIBUTE("Deprecated in 2.18. Use 'startSessionWithToken:' method of QBSessionManager instead.");
5961

6062
/**
6163
Start session with details
6264
6365
@param session QBASession instance, token, applicationID, userID are required fields
6466
@param sessionDate expiration date
67+
@warning *Deprecated in 2.18.*. Use 'startSessionWithToken:' method of QBSessionManager instead.
6568
*/
66-
- (void)startSessionWithDetails:(QBASession *)session expirationDate:(NSDate *)sessionDate;
69+
- (void)startSessionWithDetails:(QBASession *)session expirationDate:(NSDate *)sessionDate
70+
DEPRECATED_MSG_ATTRIBUTE("Deprecated in 2.18. Use 'startSessionWithToken:' method of QBSessionManager instead.");
6771

6872
/**
6973
Start session with details
@@ -76,8 +80,11 @@ FOUNDATION_EXPORT NSNotificationName const kQBLogoutNotification;
7680
7781
@param session QBAsession instance
7882
@param updateSessionBlock updateSessionBlock before the end of this block you should call startSessionWithDetails:
83+
@warning *Deprecated in 2.18.*. Use 'startSessionWithToken:' method of QBSessionManager instead.
84+
Use 'QBSessionManagerDelegate' callbacks to detect session states.
7985
*/
80-
- (void)startSessionWithDetails:(QBASession *)session updateSessionBlock:(dispatch_block_t)updateSessionBlock;
86+
- (void)startSessionWithDetails:(QBASession *)session updateSessionBlock:(dispatch_block_t)updateSessionBlock
87+
DEPRECATED_MSG_ATTRIBUTE("Deprecated in 2.18. Use 'startSessionWithToken:' method of QBSessionManager instead.");
8188

8289
@end
8390

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
//
2+
// QBSessionManager.h
3+
// QuickBlox
4+
//
5+
// Created by QuickBlox team on 08.09.14.
6+
//
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
@class QBASession;
12+
13+
NS_ASSUME_NONNULL_BEGIN
14+
15+
@interface QBSessionManager : NSObject
16+
17+
/** The current session manager instance. */
18+
@property (nonatomic, strong, readonly, class) QBSessionManager *instance;
19+
20+
/**
21+
Start session with token
22+
23+
Use QBSessionManagerDelegate callbacks to detect session states
24+
@note disables auto create session
25+
26+
@param token Unique auto generated sequence of numbers which identify API User as the legitimate user of our system
27+
*/
28+
- (void)startSessionWithToken:(NSString *)token;
29+
30+
@end
31+
32+
/**
33+
QBSessionDelegate protocol definition.
34+
This protocol defines methods signatures for callbacks.
35+
Implement this protocol in your class and add [QBSessionManager instance].addDelegate to your implementation
36+
instance to receive callbacks from QBSessionManager
37+
*/
38+
@protocol QBSessionManagerDelegate <NSObject>
39+
40+
/**
41+
Called whenever QBSession did start.
42+
43+
Use this callback to detect that session start successfully.
44+
*/
45+
- (void)sessionManager:(QBSessionManager *)manager
46+
didStartSessionWithDetails:(QBASession *)details;
47+
48+
/**
49+
Called whenever QBSession did not start.
50+
51+
Use this callback to detect that session start fail.
52+
*/
53+
- (void)sessionManager:(QBSessionManager *)manager
54+
didNotStartSessionWithError:(NSError * _Nullable)error;
55+
56+
/**
57+
Called whenever QBSession did expire.
58+
59+
Use this callback for starting update session process.
60+
*/
61+
- (void)sessionManagerDidExpireSession:(QBSessionManager *)manager;
62+
63+
@end
64+
65+
@interface QBSessionManager (SessionDelegate)
66+
67+
/**
68+
Adds the given delegate implementation to the list of observers.
69+
70+
@param delegate The delegate to add.
71+
*/
72+
- (void)addDelegate:(id<QBSessionManagerDelegate>)delegate;
73+
74+
/**
75+
Removes the given delegate implementation from the list of observers.
76+
77+
@param delegate The delegate to remove.
78+
*/
79+
- (void)removeDelegate:(id<QBSessionManagerDelegate>)delegate;
80+
81+
/** Removes all delegates. */
82+
- (void)removeAllDelegates;
83+
84+
/** Returns array of all delegates. */
85+
- (NSArray<id<QBSessionManagerDelegate>> *)delegates;
86+
87+
@end
88+
89+
NS_ASSUME_NONNULL_END

Framework/Quickblox.xcframework/ios-arm64_x86_64-simulator/Quickblox.framework/Headers/Quickblox.h

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,32 @@
5555
#import <QuickBlox/QBResponse.h>
5656
#import <QuickBlox/QBResponsePage.h>
5757
#import <QuickBlox/QBSession.h>
58+
#import <QuickBlox/QBSessionManager.h>
5859
#import <QuickBlox/QBSettings.h>
5960
#import <QuickBlox/QBUpdateUserParameters.h>
6061
#import <QuickBlox/QBUUser.h>
6162

62-
/// Framework version 2.17.11
63+
#import <Foundation/Foundation.h>
64+
65+
NS_ASSUME_NONNULL_BEGIN
66+
67+
/// Framework version 2.18.0
6368
FOUNDATION_EXPORT NSString * const QuickbloxFrameworkVersion;
69+
70+
@interface Quickblox : NSObject
71+
72+
+ (void)initWithApplicationId:(NSUInteger)appId
73+
authKey:(NSString *)authKey
74+
authSecret:(NSString *)authSecret
75+
accountKey:(nullable NSString *)accountKey;
76+
77+
+ (void)initWithApplicationId:(NSUInteger)appId
78+
accountKey:(nullable NSString *)accountKey;
79+
80+
// Unavailable initializers
81+
+ (id)new NS_UNAVAILABLE;
82+
- (id)init NS_UNAVAILABLE;
83+
84+
@end
85+
86+
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)