Skip to content

Commit

Permalink
Merge branch 'main' into zano-pr
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK authored Jan 9, 2025
2 parents 5acb5bf + eb28274 commit 379d55c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
22 changes: 12 additions & 10 deletions lib/entities/default_settings_migration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -337,21 +337,21 @@ Future<void> defaultSettingsMigration(
oldUri: ['rpc.ankr.com'],
);
break;
case 48:
_fixNodesUseSSLFlag(nodes);
updateWalletTypeNodesWithNewNode(
case 46:
await _fixNodesUseSSLFlag(nodes);
await updateWalletTypeNodesWithNewNode(
newNodeUri: 'litecoin.stackwallet.com:20063',
nodes: nodes,
type: WalletType.litecoin,
useSSL: true,
);
updateWalletTypeNodesWithNewNode(
await updateWalletTypeNodesWithNewNode(
newNodeUri: 'electrum-ltc.bysh.me:50002',
nodes: nodes,
type: WalletType.litecoin,
useSSL: true,
);
_changeDefaultNode(
await _changeDefaultNode(
nodes: nodes,
sharedPreferences: sharedPreferences,
type: WalletType.solana,
Expand All @@ -364,13 +364,13 @@ Future<void> defaultSettingsMigration(
'solana-rpc.publicnode.com:443',
],
);
_updateNode(
await _updateNode(
nodes: nodes,
currentUri: "ethereum.publicnode.com",
newUri: "ethereum-rpc.publicnode.com",
useSSL: true,
);
_updateNode(
await _updateNode(
nodes: nodes,
currentUri: "polygon-bor.publicnode.com",
newUri: "polygon-bor-rpc.publicnode.com",
Expand All @@ -395,12 +395,12 @@ Future<void> defaultSettingsMigration(
await sharedPreferences.setInt(PreferencesKey.currentDefaultSettingsMigrationVersion, version);
}

void _updateNode({
Future<void> _updateNode({
required Box<Node> nodes,
required String currentUri,
String? newUri,
bool? useSSL,
}) {
}) async {
for (Node node in nodes.values) {
printV("@@@@@@@@@@@@@");
printV(node.uriRaw);
Expand All @@ -412,6 +412,7 @@ void _updateNode({
if (useSSL != null) {
node.useSSL = useSSL;
}
await node.save();
}
}
}
Expand Down Expand Up @@ -492,7 +493,7 @@ void _deselectExchangeProvider(SharedPreferences sharedPreferences, String provi
);
}

void _fixNodesUseSSLFlag(Box<Node> nodes) {
Future<void> _fixNodesUseSSLFlag(Box<Node> nodes) async {
for (Node node in nodes.values) {
switch (node.uriRaw) {
case cakeWalletLitecoinElectrumUri:
Expand All @@ -501,6 +502,7 @@ void _fixNodesUseSSLFlag(Box<Node> nodes) {
case newCakeWalletMoneroUri:
node.useSSL = true;
node.trusted = true;
await node.save();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/android/app_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ MONERO_COM_SCHEME="monero.com"

CAKEWALLET_NAME="Cake Wallet"
CAKEWALLET_VERSION="4.22.1"
CAKEWALLET_BUILD_NUMBER=241
CAKEWALLET_BUILD_NUMBER=242
CAKEWALLET_BUNDLE_ID="com.cakewallet.cake_wallet"
CAKEWALLET_PACKAGE="com.cakewallet.cake_wallet"
CAKEWALLET_SCHEME="cakewallet"
Expand Down
2 changes: 1 addition & 1 deletion scripts/ios/app_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ MONERO_COM_BUNDLE_ID="com.cakewallet.monero"

CAKEWALLET_NAME="Cake Wallet"
CAKEWALLET_VERSION="4.22.1"
CAKEWALLET_BUILD_NUMBER=288
CAKEWALLET_BUILD_NUMBER=289
CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet"

HAVEN_NAME="Haven"
Expand Down
2 changes: 1 addition & 1 deletion scripts/linux/app_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fi

CAKEWALLET_NAME="Cake Wallet"
CAKEWALLET_VERSION="1.12.1"
CAKEWALLET_BUILD_NUMBER=42
CAKEWALLET_BUILD_NUMBER=43

if ! [[ " ${TYPES[*]} " =~ " ${APP_LINUX_TYPE} " ]]; then
echo "Wrong app type."
Expand Down
2 changes: 1 addition & 1 deletion scripts/macos/app_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ MONERO_COM_BUNDLE_ID="com.cakewallet.monero"

CAKEWALLET_NAME="Cake Wallet"
CAKEWALLET_VERSION="1.15.1"
CAKEWALLET_BUILD_NUMBER=100
CAKEWALLET_BUILD_NUMBER=101
CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet"

if ! [[ " ${TYPES[*]} " =~ " ${APP_MACOS_TYPE} " ]]; then
Expand Down

0 comments on commit 379d55c

Please sign in to comment.