Skip to content

Commit fe39738

Browse files
committed
Rename
1 parent 3d7cb70 commit fe39738

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

firebase-sessions/src/main/kotlin/com/google/firebase/sessions/ApplicationInfo.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ internal data class AndroidApplicationInfo(
4141
val versionName: String,
4242

4343
/** The build version of the application. */
44-
val buildVersion: String,
44+
val appBuildVersion: String,
4545

4646
/** The manufacturer of the device that runs the application. */
4747
val deviceManufacturer: String,
@@ -58,7 +58,7 @@ internal data class ApplicationInfo(
5858
val sessionSdkVersion: String,
5959

6060
/** The display version of the Android operating system. */
61-
val osDisplayVersion: String,
61+
val osVersion: String,
6262

6363
/** The logging environment for the events. */
6464
val logEnvironment: LogEnvironment,

firebase-sessions/src/main/kotlin/com/google/firebase/sessions/SessionEvents.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ internal object SessionEvents {
8181
ctx.add(FieldDescriptor.of("app_id"), applicationInfo.appId)
8282
ctx.add(FieldDescriptor.of("device_model"), applicationInfo.deviceModel)
8383
ctx.add(FieldDescriptor.of("session_sdk_version"), applicationInfo.sessionSdkVersion)
84-
ctx.add(FieldDescriptor.of("os_version"), applicationInfo.osDisplayVersion)
84+
ctx.add(FieldDescriptor.of("os_version"), applicationInfo.osVersion)
8585
ctx.add(FieldDescriptor.of("log_environment"), applicationInfo.logEnvironment)
8686
ctx.add(FieldDescriptor.of("android_app_info"), applicationInfo.androidAppInfo)
8787
}
@@ -93,7 +93,7 @@ internal object SessionEvents {
9393
run {
9494
ctx.add(FieldDescriptor.of("package_name"), androidAppInfo.packageName)
9595
ctx.add(FieldDescriptor.of("version_name"), androidAppInfo.versionName)
96-
ctx.add(FieldDescriptor.of("app_build_version"), androidAppInfo.buildVersion)
96+
ctx.add(FieldDescriptor.of("app_build_version"), androidAppInfo.appBuildVersion)
9797
ctx.add(FieldDescriptor.of("device_manufacturer"), androidAppInfo.deviceManufacturer)
9898
}
9999
}
@@ -133,13 +133,13 @@ internal object SessionEvents {
133133
appId = firebaseApp.options.applicationId,
134134
deviceModel = Build.MODEL,
135135
sessionSdkVersion = BuildConfig.VERSION_NAME,
136-
osDisplayVersion = Build.VERSION.RELEASE,
136+
osVersion = Build.VERSION.RELEASE,
137137
logEnvironment = LogEnvironment.LOG_ENVIRONMENT_PROD,
138138
androidAppInfo =
139139
AndroidApplicationInfo(
140140
packageName = packageName,
141141
versionName = packageInfo.versionName,
142-
buildVersion = packageInfo.versionCode.toString(),
142+
appBuildVersion = packageInfo.versionCode.toString(),
143143
deviceManufacturer = Build.MANUFACTURER,
144144
)
145145
)

firebase-sessions/src/test/kotlin/com/google/firebase/sessions/ApplicationInfoTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ class ApplicationInfoTest {
3939
appId = FakeFirebaseApp.MOCK_APP_ID,
4040
deviceModel = Build.MODEL,
4141
sessionSdkVersion = BuildConfig.VERSION_NAME,
42-
osDisplayVersion = Build.VERSION.RELEASE,
42+
osVersion = Build.VERSION.RELEASE,
4343
logEnvironment = LogEnvironment.LOG_ENVIRONMENT_PROD,
4444
AndroidApplicationInfo(
4545
packageName = ApplicationProvider.getApplicationContext<Context>().packageName,
4646
versionName = FakeFirebaseApp.MOCK_APP_VERSION,
47-
buildVersion = FakeFirebaseApp.MOCK_APP_BUILD_VERSION,
47+
appBuildVersion = FakeFirebaseApp.MOCK_APP_BUILD_VERSION,
4848
deviceManufacturer = Build.MANUFACTURER,
4949
)
5050
)

firebase-sessions/src/test/kotlin/com/google/firebase/sessions/SessionEventEncoderTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ class SessionEventEncoderTest {
104104
appId = "",
105105
deviceModel = "",
106106
sessionSdkVersion = "",
107-
osDisplayVersion = "",
107+
osVersion = "",
108108
logEnvironment = LogEnvironment.LOG_ENVIRONMENT_PROD,
109109
AndroidApplicationInfo(
110110
packageName = "",
111111
versionName = "",
112-
buildVersion = "",
112+
appBuildVersion = "",
113113
deviceManufacturer = "",
114114
),
115115
)

firebase-sessions/src/test/kotlin/com/google/firebase/sessions/testing/TestSessionEventData.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ internal object TestSessionEventData {
5757
appId = FakeFirebaseApp.MOCK_APP_ID,
5858
deviceModel = Build.MODEL,
5959
sessionSdkVersion = BuildConfig.VERSION_NAME,
60-
osDisplayVersion = Build.VERSION.RELEASE,
60+
osVersion = Build.VERSION.RELEASE,
6161
logEnvironment = LogEnvironment.LOG_ENVIRONMENT_PROD,
6262
AndroidApplicationInfo(
6363
packageName = ApplicationProvider.getApplicationContext<Context>().packageName,
6464
versionName = FakeFirebaseApp.MOCK_APP_VERSION,
65-
buildVersion = FakeFirebaseApp.MOCK_APP_BUILD_VERSION,
65+
appBuildVersion = FakeFirebaseApp.MOCK_APP_BUILD_VERSION,
6666
deviceManufacturer = Build.MANUFACTURER,
6767
),
6868
)

0 commit comments

Comments
 (0)