Skip to content

Commit 8cdac2b

Browse files
author
Nicolas Garnier
committed
Sync Firestore quick start to the latest Codelab code.
Change-Id: If96c29be502c3f77bd571de881b14101711f8a44
1 parent de522bc commit 8cdac2b

11 files changed

+927
-1487
lines changed

firestore/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Follow these steps to setup and run the quickstart:
2323
```bash
2424
firebase use --add
2525
```
26-
1. Deploy the Firestore security rules:
26+
1. Deploy the Firestore security rules and indexes:
2727
```bash
2828
firebase deploy --only firestore
2929
```

firestore/firebase-messaging-sw.js

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
1-
importScripts('/__/firebase/3.8.0/firebase-app.js');
2-
importScripts('/__/firebase/3.8.0/firebase-messaging.js');
1+
/**
2+
* Copyright 2017 Google Inc. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
importScripts('/__/firebase/4.6.0/firebase-app.js');
17+
importScripts('/__/firebase/4.6.0/firebase-messaging.js');
318
importScripts('/__/firebase/init.js');
419

520
firebase.messaging();

firestore/index.html

+4-5
Original file line numberDiff line numberDiff line change
@@ -349,13 +349,12 @@ <h2 id="my-mdc-dialog-label" class="mdc-dialog__header__title">
349349
</aside>
350350
</div>
351351

352-
<script src="https://www.gstatic.com/firebasejs/4.5.0/firebase.js"></script>
353-
<script src="https://www.gstatic.com/firebasejs/4.5.0/firebase-auth.js"></script>
354-
<script src="https://www.gstatic.com/firebasejs/4.5.0/firebase-firestore.js"></script>
352+
<script src="/__/firebase/4.6.0/firebase.js"></script>
353+
<script src="/__/firebase/4.6.0/firebase-firestore.js"></script>
354+
<script src="/__/firebase/init.js"></script>
355355

356-
<script src="/lib/navigo.js"></script>
356+
<script src="//cdn.jsdelivr.net/npm/[email protected]/lib/navigo.min.js"></script>
357357

358-
<script src="/__/firebase/init.js"></script>
359358
<script src="/scripts/FriendlyEats.js"></script>
360359
<script src="/scripts/FriendlyEats.View.js"></script>
361360
<script src="/scripts/FriendlyEats.Mock.js"></script>

0 commit comments

Comments
 (0)