This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,15 @@ -(void)download:(NSString*)url {
27
27
NSURLConnection *connection = [[NSURLConnection alloc ] initWithRequest: request
28
28
delegate: self
29
29
startImmediately: NO ];
30
- NSOperationQueue *delegateQueue = [NSOperationQueue new ];
31
- delegateQueue.underlyingQueue = self.operationQueue ;
32
- [connection setDelegateQueue: delegateQueue];
30
+ if ([NSOperationQueue instancesRespondToSelector: @selector (setUnderlyingQueue: )]) {
31
+ NSOperationQueue *delegateQueue = [NSOperationQueue new ];
32
+ delegateQueue.underlyingQueue = self.operationQueue ;
33
+ [connection setDelegateQueue: delegateQueue];
34
+ } else {
35
+ [connection scheduleInRunLoop: [NSRunLoop mainRunLoop ]
36
+ forMode: NSDefaultRunLoopMode ];
37
+ }
38
+
33
39
[connection start ];
34
40
}
35
41
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ + (NSString *)getVersionLabelFromStatusReportIdentifier:(NSString *)statusReport
114
114
115
115
+ (BOOL )isStatusReportIdentifierCodePushLabel : (NSString *)statusReportIdentifier
116
116
{
117
- return statusReportIdentifier != nil && [statusReportIdentifier containsString :@" :" ];
117
+ return statusReportIdentifier != nil && [statusReportIdentifier rangeOfString :@" :" ]. location != NSNotFound ;
118
118
}
119
119
120
120
+ (void )recordDeploymentStatusReported : (NSString *)appVersionOrPackageIdentifier
You can’t perform that action at this time.
0 commit comments