Closed edapess closed 1 week ago
Same issue here.
Update: sorry, missed the PR
anyone find a solution?
@edapess Thanks! I’ve created a patch with your PR and it’s building now using patch-package.
@segment+analytics-react-native+2.20.2.patch
diff --git a/node_modules/@segment/analytics-react-native/android/src/main/java/com/segmentanalyticsreactnative/AnalyticsReactNativeModule.kt b/node_modules/@segment/analytics-react-native/android/src/main/java/com/segmentanalyticsreactnative/AnalyticsReactNativeModule.kt
index a6769bb..589ca78 100644
--- a/node_modules/@segment/analytics-react-native/android/src/main/java/com/segmentanalyticsreactnative/AnalyticsReactNativeModule.kt
+++ b/node_modules/@segment/analytics-react-native/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
+ val appVersion: String = pInfo.versionName.toString()
val buildNumber = getBuildNumber()
val bundleId = reactApplicationContext.packageName
resolved in 2.20.3
Error:
analytics-react-native
version: 2.20.2Steps to reproduce Update project to new React Native and
analytics-react-native
to 2.20.2 Expected behavior Project should build successfully Actual behavior Build failsNote
guys I already fixed it in this PR https://github.com/segmentio/analytics-react-native/pull/1022