From 68e84ebcb293af52ea7f20fe2b00f4f6f313b5aa Mon Sep 17 00:00:00 2001 From: Sharjeel Yunus <61178058+sharjeelyunus@users.noreply.github.com> Date: Tue, 24 Dec 2024 10:06:35 +0500 Subject: [PATCH] refactor: remove unused imports for Firebase Analytics and notifications --- starter/lib/generated/ensemble_modules.dart | 5 ----- starter/scripts/modules/enable_firebase_analytics.dart | 2 -- starter/scripts/modules/enable_notifications.dart | 4 ---- 3 files changed, 11 deletions(-) diff --git a/starter/lib/generated/ensemble_modules.dart b/starter/lib/generated/ensemble_modules.dart index b4530055f..e15cbe950 100644 --- a/starter/lib/generated/ensemble_modules.dart +++ b/starter/lib/generated/ensemble_modules.dart @@ -15,7 +15,6 @@ import 'package:ensemble/module/auth_module.dart'; import 'package:ensemble/module/location_module.dart'; //import 'package:ensemble_bluetooth/ensemble_bluetooth.dart'; import 'package:firebase_core/firebase_core.dart'; -import 'package:firebase_messaging/firebase_messaging.dart'; //import 'package:ensemble_network_info/network_info.dart'; //import 'package:ensemble_firebase_analytics/firebase_analytics.dart'; // import 'package:ensemble_location/location_module.dart'; @@ -49,10 +48,6 @@ import 'package:get_it/get_it.dart'; // Uncomment to enable deeplink services // import 'package:ensemble_deeplink/deferred_link_manager.dart'; -// Uncomment to enable push notifications services or Firebase Analytics -// import 'package:flutter/foundation.dart'; -// import 'dart:io'; - /// TODO: This class should be generated to enable selected Services class EnsembleModules { static final EnsembleModules _instance = EnsembleModules._internal(); diff --git a/starter/scripts/modules/enable_firebase_analytics.dart b/starter/scripts/modules/enable_firebase_analytics.dart index ce917ae96..9e6f489c0 100644 --- a/starter/scripts/modules/enable_firebase_analytics.dart +++ b/starter/scripts/modules/enable_firebase_analytics.dart @@ -11,8 +11,6 @@ void main(List arguments) async { 'moduleStatements': [ "import 'package:ensemble_firebase_analytics/firebase_analytics.dart';", "GetIt.I.registerSingleton(FirebaseAnalyticsProvider());", - "import 'dart:io';", - "import 'package:flutter/foundation.dart';", ], 'useStatements': [ 'static const useFirebaseAnalytics = true;', diff --git a/starter/scripts/modules/enable_notifications.dart b/starter/scripts/modules/enable_notifications.dart index ff0b9f734..c15b9f66e 100644 --- a/starter/scripts/modules/enable_notifications.dart +++ b/starter/scripts/modules/enable_notifications.dart @@ -7,10 +7,6 @@ void main(List arguments) { List platforms = getPlatforms(arguments); final statements = { - 'moduleStatements': [ - "import 'package:flutter/foundation.dart';", - "import 'dart:io';", - ], 'useStatements': [ 'static const useNotifications = true;', ],