Skip to content

Commit 8522a1e

Browse files
authored
fix: convert versionname to string (#1022)
1 parent 6ffd96d commit 8522a1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/android/src/main/java/com/segmentanalyticsreactnative/AnalyticsReactNativeModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class AnalyticsReactNativeModule : ReactContextBaseJavaModule, ActivityEventList
125125
@ReactMethod
126126
fun getContextInfo(config: ReadableMap, promise: Promise) {
127127
val appName: String = reactApplicationContext.applicationInfo.loadLabel(reactApplicationContext.packageManager).toString()
128-
val appVersion: String = pInfo.versionName
128+
val appVersion: String = pInfo.versionName.toString()
129129
val buildNumber = getBuildNumber()
130130
val bundleId = reactApplicationContext.packageName
131131

0 commit comments

Comments
 (0)