Splitted android and ios migraions
M committed
Apr 3, 2020 at 16:21 UTC
ac0723e9183d41b41f928f7bcd20d8b8660cf014
1 file changed
+11
-2
lib/src/domain/common/fs_migration.dart
+11
-2
@@ -3,13 +3,17 @@ import 'package:path_provider/path_provider.dart';
3
4
const reservedNames = ["flutter_assets", "wallets", "db"];
5
6
-Future<void> migrate_fs() async {
6
+Future<void> migrate_android_v1() async {
7
final appDocDir = await getApplicationDocumentsDirectory();
8
9
await migrate_hives(appDocDir: appDocDir);
10
await migrate_wallets(appDocDir: appDocDir);
11
+}
12
+
13
+Future<void> migrate_ios_v1() async {
14
+ final appDocDir = await getApplicationDocumentsDirectory();
15
12
- appDocDir.listSync(recursive: true).forEach((item) => print(item.path));
16
+
17
}
18
19
Future<void> migrate_hives({Directory appDocDir}) async {
@@ -68,3 +72,8 @@ Future<void> migrate_wallets({Directory appDocDir}) async {
72
dir.deleteSync();
73
});
74
}
75
+
76
+Future<void> migrate_ios_wallets({Directory appDocDir}) async {
77
+ // final oldWalletsDir = Directory('${appDocDir.path}/wallets');
78
+
79
+}
\ No newline at end of file