Skip to content

Commit

Permalink
Revert "Prevent public access by making multi-db methods package-priv…
Browse files Browse the repository at this point in the history
…ate"

This reverts commit 8fbc22f.
  • Loading branch information
tom-andersen committed Jun 7, 2023
1 parent be68a72 commit 0233987
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public static FirebaseFirestore getInstance(@NonNull FirebaseApp app) {
* @returns The {@link FirebaseFirestore} instance of the provided app.
*/
@NonNull
static FirebaseFirestore getInstance(@NonNull String database) {
public static FirebaseFirestore getInstance(@NonNull String database) {
return getInstance(getDefaultFirebaseApp(), database);
}

Expand All @@ -167,7 +167,7 @@ static FirebaseFirestore getInstance(@NonNull String database) {
* @returns The {@link FirebaseFirestore} instance of the provided app.
*/
@NonNull
static FirebaseFirestore getInstance(@NonNull FirebaseApp app, @NonNull String database) {
public static FirebaseFirestore getInstance(@NonNull FirebaseApp app, @NonNull String database) {
checkNotNull(app, "Provided FirebaseApp must not be null.");
checkNotNull(database, "Provided database name must not be null.");
FirestoreMultiDbComponent component = app.get(FirestoreMultiDbComponent.class);
Expand Down

0 comments on commit 0233987

Please sign in to comment.