File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed
Crashlytics/Crashlytics/Components Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,11 @@ NSString* FIRCLSApplicationGetSDKBundleID(void);
47
47
*/
48
48
NSString * FIRCLSApplicationGetPlatform (void );
49
49
50
+ /* *
51
+ * Returns the Operating System for filtering. Should be kept consistent with Analytics.
52
+ */
53
+ NSString * FIRCLSApplicationGetFirebasePlatform (void );
54
+
50
55
/* *
51
56
* Returns the user-facing app name
52
57
*/
Original file line number Diff line number Diff line change 17
17
#import " Crashlytics/Crashlytics/Components/FIRCLSHost.h"
18
18
#import " Crashlytics/Crashlytics/Helpers/FIRCLSUtility.h"
19
19
20
+ #import < GoogleUtilities/GULAppEnvironmentUtil.h>
21
+
20
22
#if CLS_TARGET_OS_OSX
21
23
#import < AppKit/AppKit.h>
22
24
#endif
49
51
#endif
50
52
}
51
53
54
+ NSString * FIRCLSApplicationGetFirebasePlatform (void ) {
55
+ NSString * firebasePlatform = [GULAppEnvironmentUtil applePlatform ];
56
+
57
+ #if TARGET_OS_IOS
58
+ if ([firebasePlatform isEqualToString: @" ios" ] &&
59
+ UI_USER_INTERFACE_IDIOM () == UIUserInterfaceIdiomPad) {
60
+ return @" ipados" ;
61
+ }
62
+ #endif
63
+
64
+ return firebasePlatform;
65
+ }
66
+
52
67
// these defaults match the FIRCLSInfoPlist helper in FIRCLSIDEFoundation
53
68
NSString * FIRCLSApplicationGetBundleVersion (void ) {
54
69
return [[NSBundle mainBundle ] objectForInfoDictionaryKey: @" CFBundleVersion" ];
Original file line number Diff line number Diff line change 25
25
#include " Crashlytics/Crashlytics/Helpers/FIRCLSUtility.h"
26
26
#import " Crashlytics/Shared/FIRCLSFABHost.h"
27
27
28
- #import < GoogleUtilities/GULAppEnvironmentUtil.h>
29
-
30
28
#if TARGET_OS_IPHONE
31
29
#import < UIKit/UIKit.h>
32
30
#else
@@ -161,7 +159,7 @@ static void FIRCLSHostWriteOSVersionInfo(FIRCLSFile* file) {
161
159
[FIRCLSHostOSDisplayVersion () UTF8String ]);
162
160
FIRCLSFileWriteHashEntryString (file, " platform" , [FIRCLSApplicationGetPlatform () UTF8String ]);
163
161
FIRCLSFileWriteHashEntryString (file, " firebase_platform" ,
164
- [[GULAppEnvironmentUtil applePlatform ] UTF8String ]);
162
+ [FIRCLSApplicationGetFirebasePlatform () UTF8String ]);
165
163
}
166
164
167
165
bool FIRCLSHostRecord (FIRCLSFile* file) {
You can’t perform that action at this time.
0 commit comments