Skip to content

Commit b45cdd6

Browse files
authored
Crashlytics ignore deprecation warnings on macOS and Catalyst (#4628)
1 parent 72d772a commit b45cdd6

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Crashlytics/Crashlytics/Controllers/FIRCLSReportManager.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,11 +777,16 @@ - (void)setupStateNotifications {
777777
selector:@selector(didChangeOrientation:)
778778
name:UIDeviceOrientationDidChangeNotification
779779
object:nil];
780+
781+
#pragma clang diagnostic push
782+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
780783
[[NSNotificationCenter defaultCenter]
781784
addObserver:self
782785
selector:@selector(didChangeUIOrientation:)
783786
name:UIApplicationDidChangeStatusBarOrientationNotification
784787
object:nil];
788+
#pragma clang diagnostic pop
789+
785790
#elif CLS_TARGET_OS_OSX
786791
[[NSNotificationCenter defaultCenter] addObserver:self
787792
selector:@selector(willBecomeActive:)

Crashlytics/Crashlytics/FIRCLSURLSession/Tasks/FIRCLSURLSessionDataTask.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,13 @@ - (void)resume {
4949
return;
5050
}
5151

52+
#pragma clang diagnostic push
53+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
5254
connection = [[NSURLConnection alloc] initWithRequest:[self originalRequest]
5355
delegate:self
5456
startImmediately:NO];
57+
#pragma clang diagnostic pop
58+
5559
[self setConnection:connection];
5660

5761
// bummer we have to do this on a runloop, but other mechanisms require iOS 5 or 10.7

0 commit comments

Comments
 (0)