Skip to content

Commit

Permalink
Remove kdebugmode workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 committed Jul 26, 2024
1 parent 2bbe4ba commit c6325ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pub_stats/lib/service/firebase_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import 'package:pub_stats/repo/url_repo.dart';

class FirebaseService {
static final _logger = GetIt.I<Logger>();
static final _url = GetIt.I<UrlRepo>();

FirebaseService._();

Expand All @@ -28,7 +27,7 @@ class FirebaseService {
final database = FirebaseDatabase.instance;
final auth = FirebaseAuth.instance;

if (kDebugMode || _url.uri.host == 'localhost') {
if (kDebugMode) {
database.useDatabaseEmulator('localhost', 9000);
await auth.useAuthEmulator('localhost', 9099);
} else {
Expand Down

0 comments on commit c6325ce

Please sign in to comment.