You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The app builds fine with React-Native 0.71, and for 0.73.4 when apptentive-react-native is not a dependency. However whenever I add apptentive-react-native as a dependency to my 0.73.4 project the build fails:
First - I used patch-package and removed the hasConstants override located at: node_modules/apptentive-react-native/android/src/main/java/com/apptentive/android/sdk/reactlibrary/ApptentiveModu Le.kt:359:3
This resolved the issue described in the first screenshot
Second - It looks like the apptentive library is using lifecycle-viewmodel:2.3.1, and this was causing conflicting dependencies in my project that are using lifecycle-viewmodel:2.5.1.
I was able to resolve this conflict by adding:
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
// apptentive-react-native 6.7.0 is using viewmodel 2.3.1 which is incompatible with lifecycle 2.5.1
// this is a temp workaround until apptentive updates their library
if (details.requested.group == 'androidx.lifecycle') {
if (details.requested.name.startsWith('lifecycle-viewmodel')) {
details.useVersion '2.5.1'
}
}
}
}
The app builds fine with React-Native 0.71, and for 0.73.4 when
apptentive-react-native
is not a dependency. However whenever I addapptentive-react-native
as a dependency to my 0.73.4 project the build fails:My android/build.grade:
The text was updated successfully, but these errors were encountered: