disable swapsxyz and stealthex (#3116)

This commit is contained in:
Omar Hatem
2026-03-21 02:12:19 +01:00
committed by GitHub
parent 9cbfeaaa86
commit 081bb8007e
5 changed files with 25 additions and 13 deletions
+15 -3
View File
@@ -599,6 +599,18 @@ Future<void> 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<void> _changeExchangeProviderAvailability(SharedPreferences sharedPreferences,
{required String providerName, required bool enabled}) async {
final Map<String, dynamic> exchangeProvidersSelection =
json.decode(sharedPreferences.getString(PreferencesKey.exchangeProvidersSelection) ?? "{}")
as Map<String, dynamic>;
exchangeProvidersSelection[providerName] = enabled;
sharedPreferences.setString(
await sharedPreferences.setString(
PreferencesKey.exchangeProvidersSelection,
json.encode(exchangeProvidersSelection),
);
@@ -38,7 +38,7 @@ class ExchangeProviderDescription extends EnumerableItem<int> 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 =
+1 -1
View File
@@ -324,7 +324,7 @@ Future<void> initializeAppConfigs({bool loadWallet = true}) async {
payjoinSessionSource: payjoinSessionSource,
anonpayInvoiceInfo: anonpayInvoiceInfo,
havenSeedStore: havenSeedStore,
initialMigrationVersion: 61,
initialMigrationVersion: 62,
);
}
+4 -4
View File
@@ -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"
+4 -4
View File
@@ -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"