From c8bdc3d151f9658cb04c417544600e9695873f42 Mon Sep 17 00:00:00 2001 From: OmarHatem Date: Sun, 19 May 2024 04:20:22 +0300 Subject: [PATCH] get App Dir correctly in default_settings_migration.dart --- lib/entities/default_settings_migration.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/entities/default_settings_migration.dart b/lib/entities/default_settings_migration.dart index e67bd2fc6..0d76a0a9a 100644 --- a/lib/entities/default_settings_migration.dart +++ b/lib/entities/default_settings_migration.dart @@ -5,8 +5,8 @@ import 'package:cake_wallet/entities/exchange_api_mode.dart'; import 'package:cake_wallet/entities/fiat_api_mode.dart'; import 'package:cw_core/pathForWallet.dart'; import 'package:cake_wallet/entities/secret_store_key.dart'; +import 'package:cw_core/root_dir.dart'; import 'package:hive/hive.dart'; -import 'package:path_provider/path_provider.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:cake_wallet/entities/preferences_key.dart'; import 'package:cw_core/wallet_type.dart'; @@ -290,7 +290,7 @@ Future _updateMoneroPriority(SharedPreferences sharedPreferences) async { Future _validateWalletInfoBoxData(Box walletInfoSource) async { try { - final root = await getApplicationDocumentsDirectory(); + final root = await getAppDir(); for (var type in WalletType.values) { if (type == WalletType.none) {