File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
main/kotlin/com/google/firebase/sessions
test/kotlin/com/google/firebase/sessions Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ internal data class ApplicationInfo(
51
51
/* * The SDK version of the sessions library. */
52
52
val sessionSdkVersion : String ,
53
53
54
+ /* * The display version of the Android operating system. */
55
+ val osDisplayVersion : String ,
56
+
54
57
/* * The logging environment for the events. */
55
58
val logEnvironment : LogEnvironment ,
56
59
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ internal object SessionEvents {
81
81
ctx.add(FieldDescriptor .of(" app_id" ), applicationInfo.appId)
82
82
ctx.add(FieldDescriptor .of(" device_model" ), applicationInfo.deviceModel)
83
83
ctx.add(FieldDescriptor .of(" session_sdk_version" ), applicationInfo.sessionSdkVersion)
84
+ ctx.add(FieldDescriptor .of(" os_version" ), applicationInfo.osDisplayVersion)
84
85
ctx.add(FieldDescriptor .of(" log_environment" ), applicationInfo.logEnvironment)
85
86
ctx.add(FieldDescriptor .of(" android_app_info" ), applicationInfo.androidAppInfo)
86
87
}
@@ -130,6 +131,7 @@ internal object SessionEvents {
130
131
appId = firebaseApp.options.applicationId,
131
132
deviceModel = Build .MODEL ,
132
133
sessionSdkVersion = BuildConfig .VERSION_NAME ,
134
+ osDisplayVersion = Build .VERSION .RELEASE ,
133
135
logEnvironment = LogEnvironment .LOG_ENVIRONMENT_PROD ,
134
136
androidAppInfo =
135
137
AndroidApplicationInfo (packageName = packageName, versionName = packageInfo.versionName)
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ class ApplicationInfoTest {
39
39
appId = FakeFirebaseApp .MOCK_APP_ID ,
40
40
deviceModel = Build .MODEL ,
41
41
sessionSdkVersion = BuildConfig .VERSION_NAME ,
42
+ osDisplayVersion = Build .VERSION .RELEASE ,
42
43
logEnvironment = LogEnvironment .LOG_ENVIRONMENT_PROD ,
43
44
AndroidApplicationInfo (
44
45
packageName = ApplicationProvider .getApplicationContext<Context >().packageName,
You can’t perform that action at this time.
0 commit comments