-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1963 from ably/fix/1962-swift-concurrency-annotat…
…ions [ECO-4940] `NS_SWIFT_SENDABLE` to every type that has a docstring
- Loading branch information
Showing
47 changed files
with
231 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,35 @@ | ||
#import "ARTRealtimeChannelOptions.h" | ||
#import "ARTChannelOptions+Private.h" | ||
|
||
@implementation ARTRealtimeChannelOptions | ||
@implementation ARTRealtimeChannelOptions { | ||
NSStringDictionary *_params; | ||
ARTChannelMode _modes; | ||
} | ||
|
||
- (NSStringDictionary *)params { | ||
return _params; | ||
} | ||
|
||
- (void)setParams:(NSStringDictionary *)params { | ||
if (self.isFrozen) { | ||
@throw [NSException exceptionWithName:NSObjectInaccessibleException | ||
reason:[NSString stringWithFormat:@"%@: You can't change options after you've passed it to receiver.", self.class] | ||
userInfo:nil]; | ||
} | ||
_params = params; | ||
} | ||
|
||
- (ARTChannelMode)modes { | ||
return _modes; | ||
} | ||
|
||
- (void)setModes:(ARTChannelMode)modes { | ||
if (self.isFrozen) { | ||
@throw [NSException exceptionWithName:NSObjectInaccessibleException | ||
reason:[NSString stringWithFormat:@"%@: You can't change options after you've passed it to receiver.", self.class] | ||
userInfo:nil]; | ||
} | ||
_modes = modes; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#import <Foundation/Foundation.h> | ||
#import <Ably/ARTChannelOptions.h> | ||
|
||
@interface ARTChannelOptions () | ||
|
||
@property (nonatomic, getter=isFrozen) BOOL frozen; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#import <Foundation/Foundation.h> | ||
#import <Ably/ARTPush.h> | ||
|
||
@class ARTDevicePushDetails; | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface ARTDeviceDetails () | ||
|
||
@property (nonatomic, readwrite) ARTDeviceId *id; | ||
@property (nullable, nonatomic, readwrite) NSString *clientId; | ||
@property (nonatomic, readwrite) NSString *platform; | ||
@property (nonatomic, readwrite) NSString *formFactor; | ||
@property (nonatomic, readwrite) NSDictionary<NSString *, NSString *> *metadata; | ||
@property (nonatomic, readwrite) ARTDevicePushDetails *push; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#import <Ably/ARTDevicePushDetails.h> | ||
|
||
@class ARTErrorInfo; | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface ARTDevicePushDetails () | ||
|
||
@property (nonatomic, readwrite) NSMutableDictionary<NSString *, NSObject *> *recipient; | ||
@property (nullable, nonatomic, readwrite) NSString *state; | ||
@property (nullable, nonatomic, readwrite) ARTErrorInfo *errorReason; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.