Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(firestore): add support for multiple database instances (#11310)
- Loading branch information
1 parent
da1eb58
commit ce6efcc
Showing
30 changed files
with
3,330 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...rc/main/java/io/flutter/plugins/firebase/firestore/FlutterFirebaseFirestoreExtension.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 2023 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
package io.flutter.plugins.firebase.firestore; | ||
|
||
import com.google.firebase.firestore.FirebaseFirestore; | ||
|
||
public class FlutterFirebaseFirestoreExtension { | ||
private final FirebaseFirestore instance; | ||
private final String databaseURL; | ||
|
||
public FlutterFirebaseFirestoreExtension(FirebaseFirestore instance, String databaseURL) { | ||
this.instance = instance; | ||
this.databaseURL = databaseURL; | ||
} | ||
|
||
public FirebaseFirestore getInstance() { | ||
return instance; | ||
} | ||
|
||
public String getDatabaseURL() { | ||
return databaseURL; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.