File tree Expand file tree Collapse file tree 1 file changed +3
-27
lines changed Expand file tree Collapse file tree 1 file changed +3
-27
lines changed Original file line number Diff line number Diff line change 14
14
15
15
#include " Crashlytics/Shared/FIRCLSFABHost.h"
16
16
17
+ #import < GoogleUtilities/GULAppEnvironmentUtil.h>
18
+
17
19
#if TARGET_OS_WATCH
18
20
#import < WatchKit/WatchKit.h>
19
21
#elif TARGET_OS_IPHONE
@@ -89,31 +91,5 @@ NSOperatingSystemVersion FIRCLSHostGetOSVersion(void) {
89
91
#pragma mark Public
90
92
91
93
NSString *FIRCLSHostModelInfo (void ) {
92
- NSString *model = nil ;
93
-
94
- #if TARGET_OS_SIMULATOR
95
- #if TARGET_OS_WATCH
96
- model = @" watchOS Simulator" ;
97
- #elif TARGET_OS_TV
98
- model = @" tvOS Simulator" ;
99
- #elif TARGET_OS_IPHONE
100
- switch ([[UIDevice currentDevice ] userInterfaceIdiom ]) {
101
- case UIUserInterfaceIdiomPhone:
102
- model = @" iOS Simulator (iPhone)" ;
103
- break ;
104
- case UIUserInterfaceIdiomPad:
105
- model = @" iOS Simulator (iPad)" ;
106
- break ;
107
- default :
108
- model = @" iOS Simulator (Unknown)" ;
109
- break ;
110
- }
111
- #endif
112
- #elif TARGET_OS_EMBEDDED
113
- model = FIRCLSHostSysctlEntry (" hw.machine" );
114
- #else
115
- model = FIRCLSHostSysctlEntry (" hw.model" );
116
- #endif
117
-
118
- return model;
94
+ return [GULAppEnvironmentUtil deviceSimulatorModel ];
119
95
}
You can’t perform that action at this time.
0 commit comments