Skip to content

Commit

Permalink
fix Monero polyseed issue (#1474)
Browse files Browse the repository at this point in the history
Add desktop settings silent payment
update versions
  • Loading branch information
OmarHatem28 authored May 31, 2024
1 parent 5545137 commit 43a4477
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 17 deletions.
3 changes: 1 addition & 2 deletions assets/text/Release_Notes.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
Bitcoin Silent Payments
Bug fixes and generic enhancements
Bug fixes and generic enhancements
1 change: 0 additions & 1 deletion cw_monero/ios/Classes/monero_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,6 @@ extern "C"
return false;
}

wallet->store(std::string(path));
change_current_wallet(wallet);
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/di.dart
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ Future<void> setup({
getIt.registerFactory<Modify2FAPage>(
() => Modify2FAPage(setup2FAViewModel: getIt.get<Setup2FAViewModel>()));

getIt.registerFactory<DesktopSettingsPage>(() => DesktopSettingsPage());
getIt.registerFactory<DesktopSettingsPage>(() => DesktopSettingsPage(getIt.get<DashboardViewModel>()));

getIt.registerFactoryParam<ReceiveOptionViewModel, ReceivePageOption?, void>(
(pageOption, _) => ReceiveOptionViewModel(getIt.get<AppStore>().wallet!, pageOption));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ import 'package:cake_wallet/routes.dart';
import 'package:cake_wallet/src/widgets/setting_action_button.dart';
import 'package:cake_wallet/src/widgets/setting_actions.dart';
import 'package:cake_wallet/typography.dart';
import 'package:cake_wallet/view_model/dashboard/dashboard_view_model.dart';
import 'package:flutter/material.dart';
import 'package:cake_wallet/router.dart' as Router;
import 'package:cake_wallet/themes/extensions/menu_theme.dart';

final _settingsNavigatorKey = GlobalKey<NavigatorState>();

class DesktopSettingsPage extends StatefulWidget {
const DesktopSettingsPage({super.key});
const DesktopSettingsPage(this.dashboardViewModel, {super.key});

final DashboardViewModel dashboardViewModel;

@override
State<DesktopSettingsPage> createState() => _DesktopSettingsPageState();
Expand Down Expand Up @@ -51,6 +54,12 @@ class _DesktopSettingsPageState extends State<DesktopSettingsPage> {
padding: EdgeInsets.only(top: 0),
itemBuilder: (_, index) {
final item = SettingActions.desktopSettings[index];

if (!widget.dashboardViewModel.hasSilentPayments &&
item.name(context) == S.of(context).silent_payments_settings) {
return Container();
}

final isLastTile = index == itemCount - 1;
return SettingActionButton(
isLastTile: isLastTile,
Expand Down
8 changes: 4 additions & 4 deletions scripts/android/app_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ TYPES=($MONERO_COM $CAKEWALLET $HAVEN)
APP_ANDROID_TYPE=$1

MONERO_COM_NAME="Monero.com"
MONERO_COM_VERSION="1.15.0"
MONERO_COM_BUILD_NUMBER=90
MONERO_COM_VERSION="1.15.1"
MONERO_COM_BUILD_NUMBER=91
MONERO_COM_BUNDLE_ID="com.monero.app"
MONERO_COM_PACKAGE="com.monero.app"
MONERO_COM_SCHEME="monero.com"

CAKEWALLET_NAME="Cake Wallet"
CAKEWALLET_VERSION="4.18.0"
CAKEWALLET_BUILD_NUMBER=216
CAKEWALLET_VERSION="4.18.1"
CAKEWALLET_BUILD_NUMBER=217
CAKEWALLET_BUNDLE_ID="com.cakewallet.cake_wallet"
CAKEWALLET_PACKAGE="com.cakewallet.cake_wallet"
CAKEWALLET_SCHEME="cakewallet"
Expand Down
8 changes: 4 additions & 4 deletions scripts/ios/app_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ TYPES=($MONERO_COM $CAKEWALLET $HAVEN)
APP_IOS_TYPE=$1

MONERO_COM_NAME="Monero.com"
MONERO_COM_VERSION="1.15.0"
MONERO_COM_BUILD_NUMBER=88
MONERO_COM_VERSION="1.15.1"
MONERO_COM_BUILD_NUMBER=89
MONERO_COM_BUNDLE_ID="com.cakewallet.monero"

CAKEWALLET_NAME="Cake Wallet"
CAKEWALLET_VERSION="4.18.0"
CAKEWALLET_BUILD_NUMBER=248
CAKEWALLET_VERSION="4.18.1"
CAKEWALLET_BUILD_NUMBER=249
CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet"

HAVEN_NAME="Haven"
Expand Down
8 changes: 4 additions & 4 deletions scripts/macos/app_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ if [ -n "$1" ]; then
fi

MONERO_COM_NAME="Monero.com"
MONERO_COM_VERSION="1.5.0"
MONERO_COM_BUILD_NUMBER=21
MONERO_COM_VERSION="1.5.1"
MONERO_COM_BUILD_NUMBER=22
MONERO_COM_BUNDLE_ID="com.cakewallet.monero"

CAKEWALLET_NAME="Cake Wallet"
CAKEWALLET_VERSION="1.11.0"
CAKEWALLET_BUILD_NUMBER=78
CAKEWALLET_VERSION="1.11.1"
CAKEWALLET_BUILD_NUMBER=79
CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet"

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

0 comments on commit 43a4477

Please sign in to comment.