Open johnf opened 1 week ago
I am facing the same issue only in Android but with RN 0.73.6
node_modules/@amplitude/analytics-react-native/android/src/main/java/com/amplitude/reactnative/LegacyDatabaseStorage.kt:64:25 Type mismatch: inferred type is String? but String was expected
FAILURE: Build failed with an exception.
This is on Kotlin SDK, here is a proposal to fix it: https://github.com/amplitude/Amplitude-Kotlin/pull/228
The RN SDK does not use the kotlin SDK underneath. This is the file that needs to be changed
But I wonder why its failing now though? Its been like this for a long time. Do y'all use a stricter type checking that makes this fail?
The RN SDK does not use the kotlin SDK underneath. This is the file that needs to be changed
But I wonder why its failing now though? Its been like this for a long time. Do y'all use a stricter type checking that makes this fail?
@izaaz Ah, good point, we'll have to patch this version with the fix then.
This issue has only existed since version 0.76 of RN, probably due to a change in compatibility with Kotlin
any update on this change getting added please?
It seems surprising that Amplitude isn't being very responsive about their React Native SDK (this issue, new architecture...)
This appears particularly noteworthy given React Native's growing popularity among major apps and companies. One has to wonder if Amplitude's Product Managers are aware of this situation. https://reactnative.dev/showcase
Expected Behavior
Package should build succesfully
Current Behavior
Possible Solution
Steps to Reproduce
Standard steps to add @amplitude/analytics-react-native to your project
Environment
Other
As a side note is this package built from this repo? I tried to do a PR but the file in question doesn't exist