From 9ea4e9410b89e44341d0ec8b60d62a2c96b0293f Mon Sep 17 00:00:00 2001 From: Sunita Prajapati <> Date: Wed, 13 Nov 2024 15:33:25 +0530 Subject: [PATCH] Revert "fix: type mismatch inferred type is String? but String was expected" This reverts commit 2b1e1fce8962a060d102e123752f3a534e8f2932. --- .../segmentanalyticsreactnative/AnalyticsReactNativeModule.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/android/src/main/java/com/segmentanalyticsreactnative/AnalyticsReactNativeModule.kt b/packages/core/android/src/main/java/com/segmentanalyticsreactnative/AnalyticsReactNativeModule.kt index 589ca782..a6769bba 100644 --- a/packages/core/android/src/main/java/com/segmentanalyticsreactnative/AnalyticsReactNativeModule.kt +++ b/packages/core/android/src/main/java/com/segmentanalyticsreactnative/AnalyticsReactNativeModule.kt @@ -125,7 +125,7 @@ class AnalyticsReactNativeModule : ReactContextBaseJavaModule, ActivityEventList @ReactMethod fun getContextInfo(config: ReadableMap, promise: Promise) { val appName: String = reactApplicationContext.applicationInfo.loadLabel(reactApplicationContext.packageManager).toString() - val appVersion: String = pInfo.versionName.toString() + val appVersion: String = pInfo.versionName val buildNumber = getBuildNumber() val bundleId = reactApplicationContext.packageName