@@ -23,7 +23,6 @@ import com.google.firebase.encoders.FieldDescriptor
23
23
import com.google.firebase.encoders.ObjectEncoderContext
24
24
import com.google.firebase.encoders.json.JsonDataEncoderBuilder
25
25
import java.util.*
26
- import java.util.regex.Pattern
27
26
28
27
/* *
29
28
* Contains functions for [SessionEvent]s.
@@ -37,8 +36,8 @@ internal object SessionEvents {
37
36
JsonDataEncoderBuilder ()
38
37
.configureWith {
39
38
it.registerEncoder(SessionEvent ::class .java) {
40
- sessionEvent: SessionEvent ,
41
- ctx: ObjectEncoderContext ,
39
+ sessionEvent: SessionEvent ,
40
+ ctx: ObjectEncoderContext ,
42
41
->
43
42
run {
44
43
ctx.add(FieldDescriptor .of(" event_type" ), sessionEvent.eventType)
@@ -48,8 +47,8 @@ internal object SessionEvents {
48
47
}
49
48
50
49
it.registerEncoder(SessionInfo ::class .java) {
51
- sessionInfo: SessionInfo ,
52
- ctx: ObjectEncoderContext ,
50
+ sessionInfo: SessionInfo ,
51
+ ctx: ObjectEncoderContext ,
53
52
->
54
53
run {
55
54
ctx.add(FieldDescriptor .of(" session_id" ), sessionInfo.sessionId)
@@ -65,8 +64,8 @@ internal object SessionEvents {
65
64
}
66
65
67
66
it.registerEncoder(DataCollectionStatus ::class .java) {
68
- dataCollectionStatus: DataCollectionStatus ,
69
- ctx: ObjectEncoderContext ,
67
+ dataCollectionStatus: DataCollectionStatus ,
68
+ ctx: ObjectEncoderContext ,
70
69
->
71
70
run {
72
71
ctx.add(FieldDescriptor .of(" performance" ), dataCollectionStatus.performance)
@@ -79,8 +78,8 @@ internal object SessionEvents {
79
78
}
80
79
81
80
it.registerEncoder(ApplicationInfo ::class .java) {
82
- applicationInfo: ApplicationInfo ,
83
- ctx: ObjectEncoderContext ,
81
+ applicationInfo: ApplicationInfo ,
82
+ ctx: ObjectEncoderContext ,
84
83
->
85
84
run {
86
85
ctx.add(FieldDescriptor .of(" app_id" ), applicationInfo.appId)
@@ -92,8 +91,8 @@ internal object SessionEvents {
92
91
}
93
92
94
93
it.registerEncoder(AndroidApplicationInfo ::class .java) {
95
- androidAppInfo: AndroidApplicationInfo ,
96
- ctx: ObjectEncoderContext ,
94
+ androidAppInfo: AndroidApplicationInfo ,
95
+ ctx: ObjectEncoderContext ,
97
96
->
98
97
run {
99
98
ctx.add(FieldDescriptor .of(" package_name" ), androidAppInfo.packageName)
0 commit comments