@@ -30,6 +30,7 @@ final EnvironmentConfig defaultConfig = EnvironmentConfig(
30
30
showDebugPanel: true ,
31
31
debugPanelColor: AppTheme .colors['black' ]! .withOpacity (0.8 ),
32
32
localStorageType: LocalStorageType .none,
33
+ networkStorageType: NetworkStorageType .none,
33
34
);
34
35
35
36
// To add new configuration add new key, value pair in envConfigs
@@ -105,6 +106,7 @@ class EnvironmentConfig {
105
106
final bool showDebugPanel;
106
107
final Color debugPanelColor;
107
108
final LocalStorageType localStorageType;
109
+ final NetworkStorageType networkStorageType;
108
110
109
111
const EnvironmentConfig ({
110
112
required this .appTitle,
@@ -128,6 +130,7 @@ class EnvironmentConfig {
128
130
required this .showDebugPanel,
129
131
required this .debugPanelColor,
130
132
required this .localStorageType,
133
+ required this .networkStorageType,
131
134
});
132
135
133
136
static EnvironmentConfig getEnvConfig () {
@@ -174,6 +177,7 @@ class EnvironmentConfig {
174
177
bool ? showDebugPanel,
175
178
Color ? debugPanelColor,
176
179
LocalStorageType ? localStorageType,
180
+ NetworkStorageType ? networkStorageType,
177
181
}) {
178
182
return EnvironmentConfig (
179
183
appTitle: appTitle ?? this .appTitle,
@@ -199,6 +203,7 @@ class EnvironmentConfig {
199
203
showDebugPanel: showDebugPanel ?? this .showDebugPanel,
200
204
debugPanelColor: debugPanelColor ?? this .debugPanelColor,
201
205
localStorageType: localStorageType ?? this .localStorageType,
206
+ networkStorageType: networkStorageType ?? this .networkStorageType,
202
207
);
203
208
}
204
209
@@ -215,6 +220,8 @@ enum InternalNotificationsServiceType { pusher, firebase, custom, none }
215
220
216
221
enum LocalStorageType { hive, flutterSecureStorage, none }
217
222
223
+ enum NetworkStorageType { firebase, supabase, none }
224
+
218
225
class SentryConfig {
219
226
final String dsn;
220
227
final bool autoAppStart; // To record cold and warm start up time
0 commit comments