Skip to content

Commit 6c977de

Browse files
committed
Updated: migrated storage result, storage error to service root
1 parent 348d0f3 commit 6c977de

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

lib/vaahextendflutter/services/storage/failures.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import 'local/services/storage_error.dart';
2-
import 'local/services/storage_result.dart';
1+
import 'storage_error.dart';
2+
import 'storage_result.dart';
33

44
Failure handleKeyNotFoundFailure(String key) {
55
StorageError error = StorageError(

lib/vaahextendflutter/services/storage/local/services/base_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import 'storage_result.dart';
1+
import '../../storage_result.dart';
22

33
abstract class LocalStorageService {
44
void add(String collectionName);

lib/vaahextendflutter/services/storage/local/services/flutter_secure_storage.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import 'package:flutter_secure_storage/flutter_secure_storage.dart';
22

33
import '../../failures.dart';
44
import 'base_service.dart';
5-
import 'storage_error.dart';
6-
import 'storage_result.dart';
5+
import '../../storage_error.dart';
6+
import '../../storage_result.dart';
77

88
/// A class implementing LocalStorageService interface using FLutter Secure Storage as storage
99
/// backend.

lib/vaahextendflutter/services/storage/local/services/hive.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import 'package:hive/hive.dart';
22

33
import '../../failures.dart';
44
import 'base_service.dart';
5-
import 'storage_error.dart';
6-
import 'storage_result.dart';
5+
import '../../storage_error.dart';
6+
import '../../storage_result.dart';
77

88
/// A class implementing LocalStorageService interface using Hive as storage backend.
99
class LocalStorageWithHive implements LocalStorageService {

lib/vaahextendflutter/services/storage/local/services/no_op_storage.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'base_service.dart';
2-
import 'storage_error.dart';
3-
import 'storage_result.dart';
2+
import '../../storage_error.dart';
3+
import '../../storage_result.dart';
44

55
/// A placeholder storage class when [LocalStorageType.none] is selected in env.dart.
66
class NoOpStorage implements LocalStorageService {

lib/vaahextendflutter/services/storage/local/storage.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'services/base_service.dart';
44
import 'services/flutter_secure_storage.dart';
55
import 'services/hive.dart';
66
import 'services/no_op_storage.dart';
7-
import 'services/storage_result.dart';
7+
import '../storage_result.dart';
88

99
LocalStorageService get instanceLocal {
1010
final EnvironmentConfig envConfig = EnvironmentConfig.getConfig;

0 commit comments

Comments
 (0)