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 {
2727 NSURLConnection *connection = [[NSURLConnection alloc ] initWithRequest: request
2828 delegate: self
2929 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+
3339 [connection start ];
3440}
3541
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ + (NSString *)getVersionLabelFromStatusReportIdentifier:(NSString *)statusReport
114114
115115+ (BOOL )isStatusReportIdentifierCodePushLabel : (NSString *)statusReportIdentifier
116116{
117- return statusReportIdentifier != nil && [statusReportIdentifier containsString :@" :" ];
117+ return statusReportIdentifier != nil && [statusReportIdentifier rangeOfString :@" :" ]. location != NSNotFound ;
118118}
119119
120120+ (void )recordDeploymentStatusReported : (NSString *)appVersionOrPackageIdentifier
You can’t perform that action at this time.
0 commit comments