-
Notifications
You must be signed in to change notification settings - Fork 125
feat: Remove trackingID from iOS #1775
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -207,11 +207,13 @@ TEST_F(AppTest, TestSetDatabaseUrl) { | |
EXPECT_STREQ("http://abc-xyz-123.firebaseio.com", options.database_url()); | ||
} | ||
|
||
#ifndef __APPLE__ | ||
TEST_F(AppTest, TestSetGaTrackingId) { | ||
AppOptions options; | ||
options.set_ga_tracking_id("UA-12345678-1"); | ||
EXPECT_STREQ("UA-12345678-1", options.ga_tracking_id()); | ||
} | ||
#endif // __APPLE__ | ||
|
||
TEST_F(AppTest, TestSetStorageBucket) { | ||
AppOptions options; | ||
|
@@ -241,10 +243,12 @@ TEST_F(AppTest, LoadDefault) { | |
EXPECT_STREQ("fake messaging sender id from resource", | ||
options.messaging_sender_id()); | ||
EXPECT_STREQ("fake database url from resource", options.database_url()); | ||
#ifndef __APPLE__ | ||
#if FIREBASE_PLATFORM_IOS || FIREBASE_PLATFORM_TVOS | ||
// GA tracking ID can currently only be configured on iOS. | ||
EXPECT_STREQ("fake ga tracking id from resource", options.ga_tracking_id()); | ||
#endif // FIREBASE_PLATFORM_IOS | ||
#endif // __APPLE__ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The combination of preprocessor directives ( |
||
EXPECT_STREQ("fake storage bucket from resource", options.storage_bucket()); | ||
EXPECT_STREQ("fake project id from resource", options.project_id()); | ||
#if !FIREBASE_PLATFORM_IOS | ||
|
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.
This test verifies the functionality of
set_ga_tracking_id
andga_tracking_id
methods. SinceAppOptions
is platform-independent and thega_tracking_id
field still exists, this test should still pass on non-Apple platforms. Consider re-enabling this test by removing the#ifndef __APPLE__
and#endif
directives.