-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIRApp: add apple platform to firebaseUserAgent #4939
Conversation
FirebaseCore/Sources/FIRApp.m
Outdated
#endif // TARGET_OS_WATCH | ||
|
||
#if TARGET_OS_MACCATALYST | ||
applePlatform = @"maccatalyst"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check that this define is not combined with any of the others. We might want it first with #elif
s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, for Catalyst app run on macOS both TARGET_OS_IOS
and TARGET_OS_MACCATALYST
are set. I wonder what platform we would like to log in this case? I assume maccatalyst
. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say maccatalyst
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated with #elif
accordingly.
+ (NSString *)applePlatform { | ||
NSString *applePlatform = @"unknown"; | ||
|
||
#if TARGET_OS_MACCATALYST |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comment summarizing the discussion so we remember this is order-sensitive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the comment. Is it what you meant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. Thanks!
Collect stats on Firebase usage by Apple platform (b/146507104).