Fix/xmr anypay tx fix hide order (#447)

* Update build versions for Cake Wallet for ios and android. * Add formatted crypto amount to xmr transaction for anypay transactions. Hide order id and payment id if they are not exists on payment status screen. * Change build number for Cake Wallet ios and android.

mkyq committed Jul 29, 2022 at 19:24 UTC 3cfe2ec5322a3dd199b533dc4b28eb34320ce5d4
4 files changed +9 -6
lib/ionia/ionia_anypay.dart
+1
@@ -46,6 +46,7 @@ class IoniaAnyPay {
46 isParsedAddress: false,
47 address: out.address,
48 cryptoAmount: moneroAmountToString(amount: out.amount),
49 + formattedCryptoAmount: out.amount,
50 sendAll: false)).toList(),
51 priority: MoneroTransactionPriority.medium); // FIXME: HARDCODED PRIORITY
52 case AnyPayChain.btc:
lib/src/screens/ionia/cards/ionia_payment_status_page.dart
+6 -4
@@ -104,10 +104,12 @@ class _IoniaPaymentStatusPageBodyBodyState extends State<_IoniaPaymentStatusPage
104 .committedInfo
105 .transactions
106 .map((transaction) => buildDescriptionTileWithCopy(context, S.of(context).transaction_details_transaction_id, transaction.id)),
107 - Divider(height: 30),
108 - buildDescriptionTileWithCopy(context, S.of(context).order_id, widget.viewModel.paymentInfo.ioniaOrder.id),
109 - Divider(height: 30),
110 - buildDescriptionTileWithCopy(context, S.of(context).payment_id, widget.viewModel.paymentInfo.ioniaOrder.paymentId),
107 + if (widget.viewModel.paymentInfo.ioniaOrder.id != null)
108 + ...[Divider(height: 30),
109 + buildDescriptionTileWithCopy(context, S.of(context).order_id, widget.viewModel.paymentInfo.ioniaOrder.id)],
110 + if (widget.viewModel.paymentInfo.ioniaOrder.paymentId != null)
111 + ...[Divider(height: 30),
112 + buildDescriptionTileWithCopy(context, S.of(context).payment_id, widget.viewModel.paymentInfo.ioniaOrder.paymentId)],
113 ]))
114 ]),
115 SizedBox(height: 40),
scripts/android/app_env.sh
+1 -1
@@ -21,7 +21,7 @@ MONERO_COM_PACKAGE="com.monero.app"
21
22 CAKEWALLET_NAME="Cake Wallet"
23 CAKEWALLET_VERSION="4.4.4"
24 -CAKEWALLET_BUILD_NUMBER=110
24 +CAKEWALLET_BUILD_NUMBER=111
25 CAKEWALLET_BUNDLE_ID="com.cakewallet.cake_wallet"
26 CAKEWALLET_PACKAGE="com.cakewallet.cake_wallet"
27
scripts/ios/app_env.sh
+1 -1
@@ -19,7 +19,7 @@ MONERO_COM_BUNDLE_ID="com.cakewallet.monero"
19
20 CAKEWALLET_NAME="Cake Wallet"
21 CAKEWALLET_VERSION="4.4.4"
22 -CAKEWALLET_BUILD_NUMBER=110
22 +CAKEWALLET_BUILD_NUMBER=111
23 CAKEWALLET_BUNDLE_ID="com.fotolockr.cakewallet"
24
25 HAVEN_NAME="Haven"