diff --git a/lib/entities/default_settings_migration.dart b/lib/entities/default_settings_migration.dart index cd4434dcc..33feed37e 100644 --- a/lib/entities/default_settings_migration.dart +++ b/lib/entities/default_settings_migration.dart @@ -599,6 +599,18 @@ Future defaultSettingsMigration( // reset force dex option only 1 time and let users pick it from the swap settings preference await sharedPreferences.setBool(PreferencesKey.forceDecentralizedExchanges, false); break; + case 62: + await _changeExchangeProviderAvailability( + sharedPreferences, + providerName: "Swaps.XYZ", + enabled: false, + ); + _changeExchangeProviderAvailability( + sharedPreferences, + providerName: "StealthEX", + enabled: false, + ); + break; default: break; } @@ -721,15 +733,15 @@ String _getDefaultNodeUri(WalletType type) { } } -void _changeExchangeProviderAvailability(SharedPreferences sharedPreferences, - {required String providerName, required bool enabled}) { +Future _changeExchangeProviderAvailability(SharedPreferences sharedPreferences, + {required String providerName, required bool enabled}) async { final Map exchangeProvidersSelection = json.decode(sharedPreferences.getString(PreferencesKey.exchangeProvidersSelection) ?? "{}") as Map; exchangeProvidersSelection[providerName] = enabled; - sharedPreferences.setString( + await sharedPreferences.setString( PreferencesKey.exchangeProvidersSelection, json.encode(exchangeProvidersSelection), ); diff --git a/lib/exchange/exchange_provider_description.dart b/lib/exchange/exchange_provider_description.dart index 3e71d79f9..9bcc74b01 100644 --- a/lib/exchange/exchange_provider_description.dart +++ b/lib/exchange/exchange_provider_description.dart @@ -38,7 +38,7 @@ class ExchangeProviderDescription extends EnumerableItem with Serializable< static const xoSwap = ExchangeProviderDescription(title: 'XOSwap', raw: 13, image: 'assets/new-ui/trade_providers/xoswap.svg', isCentralized: true); static const swapsXyz = - ExchangeProviderDescription(title: 'Swaps.XYZ', raw: 14, image: 'assets/new-ui/trade_providers/swaps_xyz.svg', isCentralized: false); + ExchangeProviderDescription(title: 'Swaps.XYZ', raw: 14, image: 'assets/new-ui/trade_providers/swaps_xyz.svg', isCentralized: true); static const nearIntents = ExchangeProviderDescription(title: 'Near Intents', raw: 15, image: 'assets/new-ui/trade_providers/near-intents.svg', isCentralized: false); static const jupiter = diff --git a/lib/main.dart b/lib/main.dart index 699bb7da9..56f0d02e2 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -324,7 +324,7 @@ Future initializeAppConfigs({bool loadWallet = true}) async { payjoinSessionSource: payjoinSessionSource, anonpayInvoiceInfo: anonpayInvoiceInfo, havenSeedStore: havenSeedStore, - initialMigrationVersion: 61, + initialMigrationVersion: 62, ); } diff --git a/scripts/android/app_env.sh b/scripts/android/app_env.sh index 4857b6b00..3835c695c 100644 --- a/scripts/android/app_env.sh +++ b/scripts/android/app_env.sh @@ -14,15 +14,15 @@ TYPES=($MONERO_COM $CAKEWALLET) APP_ANDROID_TYPE=$1 MONERO_COM_NAME="Monero.com" -MONERO_COM_VERSION="6.0.2" -MONERO_COM_BUILD_NUMBER=4155 +MONERO_COM_VERSION="6.0.3" +MONERO_COM_BUILD_NUMBER=4156 MONERO_COM_BUNDLE_ID="com.monero.app" MONERO_COM_PACKAGE="com.monero.app" MONERO_COM_SCHEME="monero.com" CAKEWALLET_NAME="Cake Wallet" -CAKEWALLET_VERSION="6.0.2" -CAKEWALLET_BUILD_NUMBER=4406 +CAKEWALLET_VERSION="6.0.3" +CAKEWALLET_BUILD_NUMBER=4407 CAKEWALLET_BUNDLE_ID="com.cakewallet.cake_wallet" CAKEWALLET_PACKAGE="com.cakewallet.cake_wallet" CAKEWALLET_SCHEME="cakewallet" diff --git a/scripts/ios/app_env.sh b/scripts/ios/app_env.sh index 112cb6c7a..b5b2666cb 100644 --- a/scripts/ios/app_env.sh +++ b/scripts/ios/app_env.sh @@ -12,13 +12,13 @@ TYPES=($MONERO_COM $CAKEWALLET) APP_IOS_TYPE=$1 MONERO_COM_NAME="Monero.com" -MONERO_COM_VERSION="6.0.2" -MONERO_COM_BUILD_NUMBER=160 +MONERO_COM_VERSION="6.0.3" +MONERO_COM_BUILD_NUMBER=161 MONERO_COM_BUNDLE_ID="com.cakewallet.monero" CAKEWALLET_NAME="Cake Wallet" -CAKEWALLET_VERSION="6.0.2" -CAKEWALLET_BUILD_NUMBER=408 +CAKEWALLET_VERSION="6.0.3" +CAKEWALLET_BUILD_NUMBER=409 CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet"