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
Copy file name to clipboardExpand all lines: README.md
+22-1Lines changed: 22 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -200,10 +200,31 @@ Lastly, due to some dependencies requirements, Firestack supports iOS versions 8
200
200
201
201
### Android
202
202
203
-
There are several ways to setup Firebase on Android. The _easiest_ way is to pass the configuration settings in JavaScript. In that way, there is no setup for the native platform.
203
+
There are several ways to setup Firebase on Android. The _easiest_ way is to pass the configuration settings in JavaScript. In that way, there is no setup for the native platform.
204
204
205
+
#### google-services.json setup
205
206
If you prefer to include the default settings in the source of your app, download the `google-services.json` file provided by Firebase in the _Add Firebase to Android_ platform menu in your Firebase configuration console.
206
207
208
+
Next you'll have to add the google-services gradle plugin in order to parse it.
209
+
210
+
Add the google-services gradle plugin as a dependency in the *project* level build.gradle
211
+
`android/build.gradle`
212
+
```java
213
+
buildscript {
214
+
// ...
215
+
dependencies {
216
+
// ...
217
+
classpath 'com.google.gms:google-services:3.0.0'
218
+
}
219
+
}
220
+
```
221
+
222
+
In your app build.gradle file, add the gradle plugin at the VERY BOTTOM of the file (below all dependencies)
223
+
`android/app/build.gradle`
224
+
```java
225
+
apply plugin:'com.google.gms.google-services'
226
+
```
227
+
207
228
## Usage
208
229
209
230
After creating a Firebase project and installing the library, we can use it in our project by importing the library in our JavaScript:
0 commit comments