adaptyteam / AdaptySDK-React-Native

React Native SDK for growing in-app subscriptions
https://docs.adapty.io/docs/quickstart
MIT License
125 stars 12 forks source link

Firebase v19 and Adapty v2.9.6 Conflicts on Android #113

Closed ramazanarslan closed 7 months ago

ramazanarslan commented 7 months ago

Description

I think Adapty use firebase 18.6.2 but our product use the newest version of firebase v19.0.0 so this occurs conflict. Build error.

package.json

"@react-native-firebase/analytics": "^19.0.0",
"@react-native-firebase/app": "^19.0.0",
"@react-native-firebase/crashlytics": "^19.0.0",
"@react-native-firebase/installations": "^19.0.0",
"@react-native-firebase/remote-config": "^19.0.0",
"react-native-adapty": "^2.9.6",
"react-native": "0.73.5",

Version

v2.9.6

What platforms are you seeing the problem on?

Android

System info

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not find any version that matches com.google.firebase:firebase-sessions:[15.0.0, 16.0.0).
     Versions that do not match:
       - 1.2.2
       - 1.2.1
       - 1.2.0
       - 1.1.0
       - 1.0.2
       - + 2 more
     Searched in the following locations:
       - file:/Users/ram/repos/XXXXXX/node_modules/react-native-adapty/lib/android/localMaven/com/google/firebase/firebase-sessions/maven-metadata.xml
       - https://oss.sonatype.org/content/repositories/snapshots/com/google/firebase/firebase-sessions/maven-metadata.xml
       - https://repo.maven.apache.org/maven2/com/google/firebase/firebase-sessions/maven-metadata.xml
       - file:/Users/ram/repos/XXXXXX/node_modules/jsc-android/dist/com/google/firebase/firebase-sessions/maven-metadata.xml
       - https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-sessions/maven-metadata.xml
       - https://www.jitpack.io/com/google/firebase/firebase-sessions/maven-metadata.xml
     Required by:
         project :app > project :react-native-firebase_crashlytics > com.google.firebase:firebase-crashlytics:18.6.2

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 7s
error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong:
Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find any version that matches com.google.firebase:firebase-sessions:[15.0.0, 16.0.0). Versions that do not match: - 1.2.2 - 1.2.1 - 1.2.0 - 1.1.0 - 1.0.2 - + 2 more Searched in the following locations: - file:/Users/ram/repos/XXXXXX/node_modules/react-native-adapty/lib/android/localMaven/com/google/firebase/firebase-sessions/maven-metadata.xml - https://oss.sonatype.org/content/repositories/snapshots/com/google/firebase/firebase-sessions/maven-metadata.xml - https://repo.maven.apache.org/maven2/com/google/firebase/firebase-sessions/maven-metadata.xml - file:/Users/ram/repos/XXXXXX/node_modules/jsc-android/dist/com/google/firebase/firebase-sessions/maven-metadata.xml - https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-sessions/maven-metadata.xml - https://www.jitpack.io/com/google/firebase/firebase-sessions/maven-metadata.xml Required by: project :app > project :react-native-firebase_crashlytics > com.google.firebase:firebase-crashlytics:18.6.2 * Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org. BUILD FAILED in 7s.
vladd-g commented 7 months ago

hi @ramazanarslan, Adapty does not use Firebase, com.google.firebase:firebase-sessions:[15.0.0, 16.0.0) might have come from somewhere else

ramazanarslan commented 7 months ago

Thanks. @vladd-g