Merge pull request #406 from dannyshisler/patch-1

Update with Google Maven reference
This commit is contained in:
Michael Diarmid 2017-09-13 18:28:46 +01:00 committed by GitHub
commit 34286a3fd1
1 changed files with 13 additions and 0 deletions

View File

@ -60,6 +60,19 @@ dependencies {
}
```
Google Play services from 11.2.0 onwards require their dependencies to be downloaded from Google's Maven respository so add the
required reference to the repositories section of the *project* level build.gradle
`android/build.gradle`
```allprojects {
repositories {
// ...
maven {
url 'https://maven.google.com'
}
}
}
```
To install `react-native-firebase` in your project, you'll need to import the packages you need from `io.invertase.firebase` in your project's `android/app/src/main/java/com/[app name]/MainApplication.java` and list them as packages for ReactNative in the `getPackages()` function:
```java