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: packages/cloud_firestore/cloud_firestore/README.md
+21-9Lines changed: 21 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,16 +10,28 @@ For Flutter plugins for other Firebase products, see [README.md](https://github.
10
10
11
11
To use this plugin:
12
12
13
-
1. Using the [Firebase Console](http://console.firebase.google.com/), add an Android app to your project:
14
-
Follow the assistant, download the generated google-services.json file and place it inside android/app. Next,
15
-
modify the android/build.gradle file and the android/app/build.gradle file to add the Google services plugin
16
-
as described by the Firebase assistant. Ensure that your `android/build.gradle` file contains the
13
+
1. Add `cloud_firestore` as a [dependency in your pubspec.yaml file](https://flutter.dev/docs/development/packages-and-plugins/using-packages).
14
+
15
+
### Android
16
+
17
+
1. Using the [Firebase Console](http://console.firebase.google.com/), add an Android app to your project.
18
+
2. Follow the assistant, and download the generated `google-services.json` file and place it inside `android/app`.
19
+
3. Modify the `android/build.gradle` file and the `android/app/build.gradle` file to add the Google services plugin as described by the Firebase assistant. Ensure that your `android/build.gradle` file contains the
17
20
`maven.google.com` as [described here](https://firebase.google.com/docs/android/setup#add_the_sdk).
18
-
1. Using the [Firebase Console](http://console.firebase.google.com/), add an iOS app to your project:
19
-
Follow the assistant, download the generated GoogleService-Info.plist file, open ios/Runner.xcworkspace
20
-
with Xcode, and within Xcode place the file inside ios/Runner. Don't follow the steps named
21
-
"Add Firebase SDK" and "Add initialization code" in the Firebase assistant.
22
-
1. Add `cloud_firestore` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).
21
+
22
+
### iOS
23
+
24
+
1. Using the [Firebase Console](http://console.firebase.google.com/), add an iOS app to your project.
25
+
2. Follow the assistant, download the generated `GoogleService-Info.plist` file. Do **NOT** follow the steps named _"Add Firebase SDK"_ and _"Add initialization code"_ in the Firebase assistant.
26
+
3. Open `ios/Runner.xcworkspace` with Xcode, and **within Xcode** place the `GoogleService-Info.plist` file inside `ios/Runner`.
27
+
28
+
### Web
29
+
30
+
In addition to the `cloud_firestore` dependency, you'll need to modify the `web/index.html` of your app following the Firebase setup instructions:
31
+
32
+
*[Add Firebase to your JavaScript project](https://firebase.google.com/docs/web/setup#from-the-cdn).
33
+
34
+
Read more in the [`cloud_firestore_web` README](https://github.com/FirebaseExtended/flutterfire/blob/master/packages/cloud_firestore/cloud_firestore_web/README.md).
0 commit comments