fix monero.com build

This commit is contained in:
Omar
2026-05-06 23:21:08 +02:00
parent b5cec3576c
commit a0e1dd7004
4 changed files with 13 additions and 14 deletions
+10
View File
@@ -66,3 +66,13 @@ class RestoreFromSeedException implements Exception {
RestoreFromSeedException(this.message);
}
class WalletDeprecationException implements Exception {
final String seed;
final CryptoCurrency curr;
@override
String toString() => "Wallet type no longer supported";
WalletDeprecationException({required this.seed, required this.curr});
}
+1 -11
View File
@@ -1,6 +1,6 @@
import 'dart:ffi';
import 'dart:io';
import 'package:cw_core/crypto_currency.dart';
import 'package:cw_core/exceptions.dart' show WalletDeprecationException;
import 'package:cw_core/monero_wallet_utils.dart';
import 'package:cw_core/pathForWallet.dart';
import 'package:cw_core/unspent_coins_info.dart';
@@ -21,16 +21,6 @@ import 'package:hive/hive.dart';
import 'package:polyseed/polyseed.dart';
import 'package:monero/wownero.dart' as wownero;
class WalletDeprecationException implements Exception {
final String seed;
final CryptoCurrency curr;
@override
String toString() => "Wallet type no longer supported";
WalletDeprecationException({required this.seed, required this.curr});
}
class WowneroNewWalletCredentials extends WalletCredentials {
WowneroNewWalletCredentials(
{required String name, required this.language, required this.isPolyseed, this.passphrase, String? password})
+1 -2
View File
@@ -10,13 +10,12 @@ import 'package:cake_wallet/reactions/on_authentication_state_change.dart';
import 'package:cake_wallet/src/widgets/alert_with_two_actions.dart';
import 'package:cake_wallet/utils/exception_handler.dart';
import 'package:cake_wallet/utils/show_pop_up.dart';
import 'package:cw_core/cake_hive.dart';
import 'package:cw_core/exceptions.dart' show WalletDeprecationException;
import 'package:cw_core/utils/print_verbose.dart';
import 'package:cw_core/wallet_base.dart';
import 'package:cw_core/wallet_info.dart';
import 'package:cw_core/wallet_service.dart';
import 'package:cw_core/wallet_type.dart';
import 'package:cw_wownero/wownero_wallet_service.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:shared_preferences/shared_preferences.dart';
@@ -109,7 +109,7 @@ abstract class PrivacySettingsViewModelBase with Store {
bool get canUsePayjoin => _wallet.type == WalletType.bitcoin && DeviceInfo.instance.isMobile;
@computed
bool get canUseLightning => _wallet.type == WalletType.bitcoin && !Platform.isWindows;
bool get canUseLightning => _wallet.type == WalletType.bitcoin && !Platform.isWindows && !Platform.isLinux;
@computed
bool get useLightning => _wallet.type == WalletType.bitcoin && bitcoin!.useLightning(_wallet);