Skip to content

Commit cdff67f

Browse files
committed
feat(service): integrate PackageInfoService for app metadata
- Add PackageInfoService import to bootstrap.dart - Initialize PackageInfoServiceImpl in the bootstrap process - Update AppGlobals to include packageInfoService
1 parent 41ba0b6 commit cdff67f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/bootstrap.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import 'package:flutter_news_app_mobile_client_full_source_code/app/config/confi
2525
as app_config;
2626
import 'package:flutter_news_app_mobile_client_full_source_code/app/services/demo_data_initializer_service.dart';
2727
import 'package:flutter_news_app_mobile_client_full_source_code/app/services/demo_data_migration_service.dart';
28+
import 'package:flutter_news_app_mobile_client_full_source_code/app/services/package_info_service.dart';
2829
import 'package:flutter_news_app_mobile_client_full_source_code/bloc_observer.dart';
2930
import 'package:flutter_news_app_mobile_client_full_source_code/shared/data/clients/country_inmemory_client.dart';
3031
import 'package:http_client/http_client.dart';
@@ -191,6 +192,9 @@ Future<Widget> bootstrap(
191192
// and InterstitialAdManager for BuildContext access.
192193
final navigatorKey = GlobalKey<NavigatorState>();
193194

195+
// Initialize PackageInfoService
196+
final packageInfoService = PackageInfoServiceImpl(logger: logger);
197+
194198
// 6. Initialize all other DataClients and Repositories.
195199
// These now also have a guaranteed valid httpClient.
196200
late final DataClient<Headline> headlinesClient;
@@ -453,5 +457,6 @@ Future<Widget> bootstrap(
453457
navigatorKey: navigatorKey,
454458
initialRemoteConfig: initialRemoteConfig,
455459
initialRemoteConfigError: initialRemoteConfigError,
460+
packageInfoService: packageInfoService,
456461
);
457462
}

0 commit comments

Comments
 (0)