firebase / geofire-js

GeoFire for JavaScript - Realtime location queries with Firebase
MIT License
1.44k stars 345 forks source link

fix(examples): update examples to use geofire 5.x.x and firebase 5.x.x, fixes #182 #183

Closed MichaelSolati closed 4 years ago

MichaelSolati commented 5 years ago

Description

Update the example applications to use Firebase 5.x.x and GeoFire 5.x.x

Code sample

In the head of the HTML files:

<!-- Firebase -->
<script src="https://www.gstatic.com/firebasejs/5.9.4/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.9.4/firebase-database.js"></script>

<!-- GeoFire -->
<script src="https://cdn.firebase.com/libs/geofire/5.0.1/geofire.min.js"></script>

And when we create a GeoFire instance in the JavaScript:

// Create a new GeoFire instance at the random Firebase location
var geoFireInstance = new geofire.GeoFire(firebaseRef);
coveralls commented 5 years ago

Coverage Status

Coverage decreased (-3.2%) to 91.346% when pulling cc0e4b73b4f69fa62d1372515fb9efd1a6746269 on MichaelSolati:fix/examples into cdc7cacadb8a1467f21f8af0fd64c079aec3630e on firebase:master.