You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
return"Argument 'key' must be 40 characters or fewer";
10
+
}
11
+
12
+
if(!key.match(/^[a-zA-Z][a-zA-Z_]+$/)){
13
+
return"Argument 'key' can only contain alphanumeric characters and underscores and must start with an alphanumeric character";
14
+
}
15
+
16
+
if(key.startsWith("firebase_")){
17
+
return"Argument 'key' must not start with 'firebase_'";
18
+
}
19
+
20
+
if(key.startsWith("google_")){
21
+
return"Argument 'key' must not start with 'google_'";
22
+
}
23
+
24
+
if(key.startsWith("ga_")){
25
+
return"Argument 'key' must not start with 'ga_'";
26
+
}
27
+
28
+
if([
29
+
"ad_activeview",
30
+
"ad_click",
31
+
"ad_exposure",
32
+
"ad_impression",
33
+
"ad_query",
34
+
"adunit_exposure",
35
+
"app_clear_data",
36
+
"app_uninstall",
37
+
"app_update",
38
+
"error",
39
+
"first_open",
40
+
"first_visit",
41
+
"in_app_purchase",
42
+
"notification_dismiss",
43
+
"notification_foreground",
44
+
"notification_open",
45
+
"notification_receive",
46
+
"os_update",
47
+
"screen_view",
48
+
"session_start",
49
+
"user_engagement"
50
+
].indexOf(key)>-1){
51
+
return"Avoid using a reserved event name as the 'key' argument. Full list at: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event";
0 commit comments