Skip to content

Commit a977f68

Browse files
committed
Fix precision
1 parent 893aac5 commit a977f68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ internal object SessionEvents {
130130
val packageInfo = context.packageManager.getPackageInfo(packageName, 0)
131131
val buildVersion =
132132
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
133-
packageInfo.longVersionCode
133+
packageInfo.longVersionCode.toString()
134134
} else {
135-
@Suppress("DEPRECATION") packageInfo.versionCode
135+
@Suppress("DEPRECATION") packageInfo.versionCode.toString()
136136
}
137137

138138
return ApplicationInfo(
@@ -145,7 +145,7 @@ internal object SessionEvents {
145145
AndroidApplicationInfo(
146146
packageName = packageName,
147147
versionName = packageInfo.versionName,
148-
appBuildVersion = buildVersion.toString(),
148+
appBuildVersion = buildVersion,
149149
deviceManufacturer = Build.MANUFACTURER,
150150
)
151151
)

0 commit comments

Comments
 (0)