Skip to content

Commit 59ea6b8

Browse files
Fix deprecation warning when minimum deployment version is iOS 13+ (#8162)
(Note that failing test is expected for external prs (#7476).)
1 parent 5f4a561 commit 59ea6b8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Crashlytics/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Unreleased
22
- [changed] Incorporated code quality changes around integer overflow, potential race conditions, and reinstalling signal handlers.
33
- [fixed] Fixed an issue where iOS-only apps running on iPads would report iOS as their OS Name.
4+
- [fixed] Fixed depcrecation warning for projects with minimum deployment version iOS 13 and up.
45

56
# v8.0.0
67
- [changed] Added a warning to upload-symbols when it detects a dSYM with hidden symbols.

Crashlytics/Crashlytics/Components/FIRCLSApplication.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
#if TARGET_OS_IOS
5858
if ([firebasePlatform isEqualToString:@"ios"] &&
59-
UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
59+
[[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
6060
return @"ipados";
6161
}
6262
// This check is necessary because iOS-only apps running on iPad

0 commit comments

Comments
 (0)