Generic enhancements (#1386)
* Update versions * Show private key for electrum based wallets * update polyseed * fix webview page on desktop remove private keys temporarily from electrum * update versions
Omar Hatem committed
Apr 16, 2024 at 01:49 UTC
59d44e8c57e03180a694be303f22454d8df42fa2
6 files changed
+29
-12
lib/src/screens/dashboard/pages/transactions_page.dart
+13
-5
@@ -2,6 +2,7 @@ import 'package:cake_wallet/src/screens/dashboard/widgets/anonpay_transaction_ro
2
import 'package:cake_wallet/src/screens/dashboard/widgets/order_row.dart';
3
import 'package:cake_wallet/themes/extensions/placeholder_theme.dart';
4
import 'package:cake_wallet/src/widgets/dashboard_card_widget.dart';
5
+import 'package:cake_wallet/utils/device_info.dart';
6
import 'package:cake_wallet/utils/responsive_layout_util.dart';
7
import 'package:cake_wallet/view_model/dashboard/anonpay_transaction_list_item.dart';
8
import 'package:cake_wallet/view_model/dashboard/order_list_item.dart';
@@ -20,6 +21,7 @@ import 'package:cake_wallet/view_model/dashboard/date_section_item.dart';
21
import 'package:intl/intl.dart';
22
import 'package:cake_wallet/routes.dart';
23
import 'package:cake_wallet/generated/i18n.dart';
24
+import 'package:url_launcher/url_launcher.dart';
25
26
class TransactionsPage extends StatelessWidget {
27
TransactionsPage({required this.dashboardViewModel});
@@ -46,11 +48,17 @@ class TransactionsPage extends StatelessWidget {
48
return Padding(
49
padding: const EdgeInsets.fromLTRB(24, 0, 24, 8),
50
child: DashBoardRoundedCardWidget(
49
- onTap: () => Navigator.of(context).pushNamed(Routes.webViewPage, arguments: [
50
- '',
51
- Uri.parse(
52
- 'https://guides.cakewallet.com/docs/FAQ/why_are_my_funds_not_appearing/')
53
- ]),
51
+ onTap: () {
52
+ try {
53
+ final uri = Uri.parse(
54
+ "https://guides.cakewallet.com/docs/FAQ/why_are_my_funds_not_appearing/");
55
+ if (DeviceInfo.instance.isMobile) {
56
+ Navigator.of(context).pushNamed(Routes.webViewPage, arguments: ['', uri]);
57
+ } else {
58
+ launchUrl(uri);
59
+ }
60
+ } catch (_) {}
61
+ },
62
title: S.of(context).syncing_wallet_alert_title,
63
subTitle: S.of(context).syncing_wallet_alert_content,
64
),
lib/view_model/wallet_keys_view_model.dart
+9
@@ -1,3 +1,4 @@
1
+import 'package:cake_wallet/bitcoin/bitcoin.dart';
2
import 'package:cake_wallet/reactions/wallet_connect.dart';
3
import 'package:cake_wallet/store/app_store.dart';
4
import 'package:cw_core/transaction_direction.dart';
@@ -103,7 +104,15 @@ abstract class WalletKeysViewModelBase with Store {
104
if (_appStore.wallet!.type == WalletType.bitcoin ||
105
_appStore.wallet!.type == WalletType.litecoin ||
106
_appStore.wallet!.type == WalletType.bitcoinCash) {
107
+ // final keys = bitcoin!.getWalletKeys(_appStore.wallet!);
108
+
109
items.addAll([
110
+ // if (keys['wif'] != null)
111
+ // StandartListItem(title: "WIF", value: keys['wif']!),
112
+ // if (keys['privateKey'] != null)
113
+ // StandartListItem(title: S.current.private_key, value: keys['privateKey']!),
114
+ // if (keys['publicKey'] != null)
115
+ // StandartListItem(title: S.current.public_key, value: keys['publicKey']!),
116
StandartListItem(title: S.current.wallet_seed, value: _appStore.wallet!.seed!),
117
]);
118
}
pubspec_base.yaml
+1
-1
@@ -104,7 +104,7 @@ dependencies:
104
# ref: main
105
socks5_proxy: ^1.0.4
106
flutter_svg: ^2.0.9
107
- polyseed: ^0.0.2
107
+ polyseed: ^0.0.4
108
nostr_tools: ^1.0.9
109
solana: ^0.30.1
110
bitcoin_base:
scripts/android/app_env.sh
+2
-2
@@ -16,14 +16,14 @@ APP_ANDROID_TYPE=$1
16
17
MONERO_COM_NAME="Monero.com"
18
MONERO_COM_VERSION="1.12.2"
19
-MONERO_COM_BUILD_NUMBER=81
19
+MONERO_COM_BUILD_NUMBER=82
20
MONERO_COM_BUNDLE_ID="com.monero.app"
21
MONERO_COM_PACKAGE="com.monero.app"
22
MONERO_COM_SCHEME="monero.com"
23
24
CAKEWALLET_NAME="Cake Wallet"
25
CAKEWALLET_VERSION="4.15.4"
26
-CAKEWALLET_BUILD_NUMBER=203
26
+CAKEWALLET_BUILD_NUMBER=204
27
CAKEWALLET_BUNDLE_ID="com.cakewallet.cake_wallet"
28
CAKEWALLET_PACKAGE="com.cakewallet.cake_wallet"
29
CAKEWALLET_SCHEME="cakewallet"
scripts/ios/app_env.sh
+2
-2
@@ -14,12 +14,12 @@ APP_IOS_TYPE=$1
14
15
MONERO_COM_NAME="Monero.com"
16
MONERO_COM_VERSION="1.12.2"
17
-MONERO_COM_BUILD_NUMBER=78
17
+MONERO_COM_BUILD_NUMBER=79
18
MONERO_COM_BUNDLE_ID="com.cakewallet.monero"
19
20
CAKEWALLET_NAME="Cake Wallet"
21
CAKEWALLET_VERSION="4.15.4"
22
-CAKEWALLET_BUILD_NUMBER=227
22
+CAKEWALLET_BUILD_NUMBER=228
23
CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet"
24
25
HAVEN_NAME="Haven"
scripts/macos/app_env.sh
+2
-2
@@ -17,12 +17,12 @@ fi
17
18
MONERO_COM_NAME="Monero.com"
19
MONERO_COM_VERSION="1.2.2"
20
-MONERO_COM_BUILD_NUMBER=12
20
+MONERO_COM_BUILD_NUMBER=13
21
MONERO_COM_BUNDLE_ID="com.cakewallet.monero"
22
23
CAKEWALLET_NAME="Cake Wallet"
24
CAKEWALLET_VERSION="1.8.4"
25
-CAKEWALLET_BUILD_NUMBER=62
25
+CAKEWALLET_BUILD_NUMBER=63
26
CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet"
27
28
if ! [[ " ${TYPES[*]} " =~ " ${APP_MACOS_TYPE} " ]]; then