(app?: FirebaseApp)
| 1510 | _app: FirebaseApp; |
| 1511 | |
| 1512 | constructor(app?: FirebaseApp) { |
| 1513 | if (app) { |
| 1514 | this._native = com.google.firebase.firestore.FirebaseFirestore.getInstance(app.native); |
| 1515 | } else { |
| 1516 | if (defaultFirestore) { |
| 1517 | return defaultFirestore; |
| 1518 | } |
| 1519 | defaultFirestore = this; |
| 1520 | this._native = com.google.firebase.firestore.FirebaseFirestore.getInstance(); |
| 1521 | } |
| 1522 | } |
| 1523 | |
| 1524 | useEmulator(host: string, port: number) { |
| 1525 | this.native.useEmulator(host === 'localhost' || host === '127.0.0.1' ? '10.0.2.2' : host, port); |
nothing calls this directly
no test coverage detected