Skip to content

Commit d6b5dc3

Browse files
authored
Consolidate the Google Analytics origin for Crashlytics. Only use "clx". (#5030)
1 parent fb0fc07 commit d6b5dc3

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

Crashlytics/Crashlytics/Helpers/FIRCLSFCRAnalytics.m

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
// Origin for events and user properties generated by Crashlytics.
2323
static NSString *const kFIREventOriginCrash = @"clx";
2424

25-
// Origin for events and user properties generated by Crash Reporting.
26-
// We're using this for now because it's whitelisted, and "clx" is not.
27-
// TODO(b/144163610) add a separate parameter for Crashlytics
28-
static NSString *const kFIREventListenerOriginCrash = @"crash";
29-
3025
// App exception event name.
3126
static NSString *const kFIREventAppException = @"_ae";
3227

@@ -36,13 +31,6 @@
3631
// Fatal key for the event payload.
3732
static NSString *const kFIRParameterFatal = @"fatal";
3833

39-
// Realtime flag
40-
// TODO(b/144114243) We had to remove this because it's blacklisted.
41-
// Previously, the value was set as:
42-
// static NSString *const kFIRParameterRealtime = @"_r";
43-
// and used in buildLogParamsFromCrash as:
44-
// kFIRParameterRealtime : @(INT64_C(1)),
45-
4634
FOUNDATION_STATIC_INLINE NSNumber *timeIntervalInMillis(NSTimeInterval timeInterval) {
4735
return @(llrint(timeInterval * 1000.0));
4836
}
@@ -66,7 +54,7 @@ + (void)registerEventListener:(id<FIRAnalyticsInteropListener>)eventListener
6654
return;
6755
}
6856

69-
[analytics registerAnalyticsListener:eventListener withOrigin:kFIREventListenerOriginCrash];
57+
[analytics registerAnalyticsListener:eventListener withOrigin:kFIREventOriginCrash];
7058

7159
FIRCLSDeveloperLog(@"Crashlytics:Crash:Reports:Event",
7260
"Registered Firebase Analytics event listener");

0 commit comments

Comments
 (0)