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 Aug 24, 2022
1 parent 8fbc22f commit 4d7162f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -152,7 +152,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 @@ -166,7 +166,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 4d7162f

Please sign in to comment.