mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-23 12:06:47 +08:00
fix(android,build): conditionally check app dependency, fixes… (#3215)
This commit is contained in:
@@ -62,7 +62,13 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api project(':@react-native-firebase_app')
|
||||
if (findProject(':@react-native-firebase_app')) {
|
||||
api project(':@react-native-firebase_app')
|
||||
} else if (findProject(':react-native-firebase_app')) {
|
||||
api project(':react-native-firebase_app')
|
||||
} else {
|
||||
throw new GradleException('Could not find the react-native-firebase/app package, have you installed it?')
|
||||
}
|
||||
implementation platform("com.google.firebase:firebase-bom:${ReactNative.ext.getVersion("firebase", "bom")}")
|
||||
implementation "com.google.firebase:firebase-database"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user