-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ECO-4968] Added missed NS_SWIFT_SENDABLE
#1973
Changes from all commits
bfaaba1
e22ff7c
dd9a08a
75e9554
e20d783
756a383
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#import "ARTBaseQuery.h" | ||
|
||
@implementation ARTBaseQuery | ||
|
||
- (void)throwIfFrozen { | ||
if (self.isFrozen) { | ||
@throw [NSException exceptionWithName:NSObjectInaccessibleException | ||
reason:[NSString stringWithFormat:@"%@: You can't change query after you've passed it to the receiver.", self.class] | ||
userInfo:nil]; | ||
} | ||
} | ||
|
||
@end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
/// :nodoc: | ||
@interface ARTBaseQuery : NSObject | ||
|
||
@property (nonatomic, getter=isFrozen) BOOL frozen; | ||
|
||
- (void)throwIfFrozen; | ||
|
||
@end |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ NS_ASSUME_NONNULL_BEGIN | |
/** | ||
* Passes additional properties to an `ARTRestChannel` object, such as encryption. | ||
*/ | ||
NS_SWIFT_SENDABLE | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why have you marked the mutable options / query types as I think it would be helpful for you to explain in more detail what was the motivation for the current PR, so that we can figure out how to solve it. Marking these types (at least in their current state) as sendable isn't correct. |
||
@interface ARTChannelOptions : NSObject | ||
|
||
/** | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this property part of the public API?