mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
Splitted android and ios migraions
This commit is contained in:
parent
d067df8a51
commit
ac0723e918
1 changed files with 11 additions and 2 deletions
|
@ -3,13 +3,17 @@ import 'package:path_provider/path_provider.dart';
|
||||||
|
|
||||||
const reservedNames = ["flutter_assets", "wallets", "db"];
|
const reservedNames = ["flutter_assets", "wallets", "db"];
|
||||||
|
|
||||||
Future<void> migrate_fs() async {
|
Future<void> migrate_android_v1() async {
|
||||||
final appDocDir = await getApplicationDocumentsDirectory();
|
final appDocDir = await getApplicationDocumentsDirectory();
|
||||||
|
|
||||||
await migrate_hives(appDocDir: appDocDir);
|
await migrate_hives(appDocDir: appDocDir);
|
||||||
await migrate_wallets(appDocDir: appDocDir);
|
await migrate_wallets(appDocDir: appDocDir);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<void> migrate_ios_v1() async {
|
||||||
|
final appDocDir = await getApplicationDocumentsDirectory();
|
||||||
|
|
||||||
|
|
||||||
appDocDir.listSync(recursive: true).forEach((item) => print(item.path));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> migrate_hives({Directory appDocDir}) async {
|
Future<void> migrate_hives({Directory appDocDir}) async {
|
||||||
|
@ -68,3 +72,8 @@ Future<void> migrate_wallets({Directory appDocDir}) async {
|
||||||
dir.deleteSync();
|
dir.deleteSync();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<void> migrate_ios_wallets({Directory appDocDir}) async {
|
||||||
|
// final oldWalletsDir = Directory('${appDocDir.path}/wallets');
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue