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
// Add the AppGallery Connect plugin configuration.
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'com.google.firebase:perf-plugin:1.4.2'
//classpath 'com.huawei.agconnect:agcp:1.6.0.300'
}
} - Android:android/app/build.gradlecontents. --> dependencies {
// The version of react-native is set by the React Native Gradle Plugin
implementation("com.facebook.react:react-android")
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.0.0")
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
exclude group:'com.squareup.okhttp3', module:'okhttp'
}
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
implementation 'com.facebook.android:facebook-android-sdk:14.1.0'
implementation 'com.facebook.android:facebook-login:14.1.0'
// Firebase SDK for Google Analytics
implementation 'com.google.firebase:firebase-analytics:21.2.0'
//GIF
implementation 'com.facebook.fresco:fresco:2.0.0'
implementation 'com.facebook.fresco:animated-gif:2.0.0'
//For WebP support, including animated WebP
implementation 'com.facebook.fresco:animated-webp:1.10.0'
implementation 'com.facebook.fresco:webpsupport:1.10.0'
//MOE Integration Start
implementation "com.moengage:moe-android-sdk:12.10.03"
// implementation "com.huawei.hms:push:5.3.0.304"
// implementation 'com.huawei.agconnect:agconnect-core:1.5.0.300'
implementation("com.moengage:inbox-core:2.6.0")
// implementation("com.moengage:hms-pushkit:4.0.0")
implementation("com.moengage:rich-notification:4.7.2")
// Huawei dependency for Push Kit
// disabled as per Mo-Engage team mail
// implementation("com.huawei.hms:push:5.0.2.300")
// Push Amp dependancy added as per suggested
implementation ("com.moengage:push-amp:4.6.0")
// MoEngage In-app
implementation("com.moengage:inapp:7.1.3")
implementation("androidx.core:core:1.9.0")
implementation("androidx.appcompat:appcompat:1.4.2") {
version {
strictly '1.4.2'
}
}
implementation("androidx.lifecycle:lifecycle-process:2.5.1")
This is dangerous as a direct version specification. @react-native-firebase/app includes the firebase-bom which defines the versions we know are compatible within the com.google.firebase group, and you should not directly specify the versions in general
You don't mention what version of react-native you are on, but this looks like something in the gradle/android-gradle-plugin/google-services-plugin area.
Issue
Describe your issue here
I have tried integrating firebase packages with version >=19.0.0 in RN 0.71.18.But with all the versions, I'm ending up with the
below error :
Also find the below files which has following changes:
Project Files
Android:
android/build.gradle
contents. -->`buildscript {
ext {
kotlin_version = '1.8.0'
kotlinVersion = '1.8.0'
buildToolsVersion = "33.0.0"
minSdkVersion = 21
compileSdkVersion = 33
targetSdkVersion = 33
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
supportLibVersion = "28.0.0"
playServicesVersion = "18.0.0"
androidMapsUtilsVersion = "0.5+"
}
repositories {
google()
jcenter()
mavenCentral()
maven {
url 'https://maven.fabric.io/public'
}
// Configure the Maven repository address for the HMS Core SDK.
/* maven {
url 'https://developer.huawei.com/repo/'
} */
}
dependencies {
classpath("com.android.tools.build:gradle:7.4.2")
classpath("com.facebook.react:react-native-gradle-plugin")
// Google services
classpath 'com.google.gms:google-services:4.3.5'
// Fabric tools
// classpath 'io.fabric.tools:gradle:1.28.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version";
// Add the AppGallery Connect plugin configuration.
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'com.google.firebase:perf-plugin:1.4.2'
//classpath 'com.huawei.agconnect:agcp:1.6.0.300'
}
}
- Android:
android/app/build.gradlecontents. -->
dependencies {// The version of react-native is set by the React Native Gradle Plugin
implementation("com.facebook.react:react-android")
implementation(platform("com.google.firebase:firebase-bom:32.8.0"))
implementation 'com.google.firebase:firebase-messaging:23.1.2'
// implementation 'com.google.firebase:firebase-inappmessaging:20.4.2'
// implementation("com.google.firebase:firebase-perf")
// implementation("com.google.firebase:firebase-perf") {
// exclude group: 'com.google.firebase', module: 'firebase-sessions'
// }
// implementation("com.google.firebase:firebase-perf") {
// exclude group: 'com.google.firebase', module: 'firebase-sessions'
// }
`
RN packages:
Javascript
Click To Expand
package.json
:# N/A
firebase.json
for react-native-firebase v6:# N/A
iOS
Click To Expand
ios/Podfile
:# N/A
AppDelegate.m
:// N/A
Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:19.1.0
Firebase
module(s) you're using that has the issue:e.g. Instance ID
TypeScript
?Y
&^4.8.4
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: