diff --git a/lib/main.dart b/lib/main.dart index 3210506a..eedf5065 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -16,6 +16,7 @@ import 'package:common/ui/locale_spy.dart'; import 'package:common/util/logger.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:easy_logger/src/enums.dart'; +import 'package:firebase_core/firebase_core.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart' as widget; @@ -29,6 +30,7 @@ import 'package:mobileraker/routing/app_router.dart'; import 'package:mobileraker/service/ui/snackbar_service_impl.dart'; import 'package:mobileraker/ui/components/error_card.dart'; import 'package:mobileraker/ui/components/theme_builder.dart'; +import 'package:mobileraker_pro/mobileraker_pro.dart'; import 'package:pull_to_refresh_flutter3/pull_to_refresh_flutter3.dart'; import 'service/ui/bottom_sheet_service_impl.dart'; @@ -40,6 +42,8 @@ Future main() async { await setupLogger(); EasyLocalization.logger.enableLevels = [LevelMessages.error]; + await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform); + // FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding); runApp(ProviderScope( // Injecting local implementation of interfaces defined in the common module