Skip to content

Commit

Permalink
1.2.2 (#242)
Browse files Browse the repository at this point in the history
* Update translation files

Updated by "Cleanup translation files" hook in Weblate.

Translation: Peercoin Flutter/Translations
Translate-URL: https://weblate.ppc.lol/projects/peercoin-flutter/translations/

* version bump

* implement changes proposed by sandakersmann

* hide purchase options for PPC on iOS

* move 2do

* improve e2e test stability

---------

Co-authored-by: Weblate <[email protected]>
  • Loading branch information
willyfromtheblock and weblate authored Sep 27, 2023
1 parent 475d434 commit f28e8b5
Show file tree
Hide file tree
Showing 21 changed files with 79 additions and 89 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### **1.2.2** (2023-09-27)
* Change the options for purchasing Peercoin on some devices

### **1.2.1** (2023-09-24)
* Minor improvements and bug hunting

Expand Down
1 change: 0 additions & 1 deletion assets/translations/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,6 @@
"currency_TMT": "مانات تركمانستاني",
"currency_TOP": "بانجا تونغا",
"currency_UZS": "سوم أوزبكستاني",
"currency_VEF": "بوليفار فنزويلي",
"currency_WST": "تالا ساموا",
"currency_XCD": "دولار شرق الكاريبي",
"currency_FJD": "دولار فيجي",
Expand Down
1 change: 0 additions & 1 deletion assets/translations/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@
"currency_TMT": "Turkmenistansk manat",
"currency_TOP": "Tongansk pa'anga",
"currency_UZS": "Usbekisk som",
"currency_VEF": "Venezuelansk bolívar",
"currency_VUV": "Vanuatu vatu",
"currency_WST": "Samoansk tala",
"currency_XCD": "Østcaribisk dollar",
Expand Down
6 changes: 3 additions & 3 deletions assets/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
"paperwallet_step_3": "Step 3",
"paperwallet_step_3_text": "Check balance",
"paperwallet_step_4": "Step 4",
"paperwallet_step_4_text": "Sweep Paper Wallet",
"paperwallet_step_4_text": "Sweep paper wallet",
"paperwallet_success": "Paper Wallet imported successfully.\nTransaction will appear very soon.",
"periodic_reminder_donate_title": "Donation Reminder",
"periodic_reminder_donate_body": "This app is developed by the Peercoin Foundation.\nPlease consider donating to support the development of Peercoin and this app.",
Expand Down Expand Up @@ -492,8 +492,8 @@
"wallet_scanner_message_newAddressFound": "new address found",
"wallet_scanner_message_new_wallet_found": "new wallet found for $coinName at $accountNumber",
"wallet_scanner_message_scan_finished": "scan finished for $coinName at $accountNumber",
"wallet_scanner_message_scan_failed": "scan failed for $coinName at $accountNumber ($e))",
"wallet_scanner_message_scan_connection_failed": "scan failed for $coinName at $accountNumber (Connection failed)",
"wallet_scanner_message_scan_failed": "scan failed for $coinName at $accountNumber ($e)",
"wallet_scanner_message_scan_connection_failed": "scan failed for $coinName at $accountNumber (connection failed)",
"scan_modal_title": "Scanning this Wallet",
"reset_modal_title": "Resetting this Wallet",
"reset_modal_description": "This will reset the wallet balance and will check all addresses for UTXOs.\nNon-broadcasted transactions will be removed."
Expand Down
1 change: 0 additions & 1 deletion assets/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,6 @@
"currency_GIP": "Libra de Gibraltar",
"currency_NPR": "Rupia nepalesa",
"currency_SSP": "Libra sursudanesa",
"currency_VEF": "Bolívar venezolano",
"currency_VUV": "Vatu de Vanuatu",
"app_settings_language_search": "Idioma de búsqueda",
"currency_AED": "Dírham de los Emiratos Árabes Unidos",
Expand Down
1 change: 0 additions & 1 deletion assets/translations/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,6 @@
"currency_SYP": "सीरियन पाउंड",
"currency_TMT": "तुर्कमेनिस्तानी मानत",
"currency_TOP": "टोंगन पा'आंगा",
"currency_VEF": "वेनेज़ुएलाई बोलिवार",
"currency_VUV": "नी-वानुआटु वातू",
"currency_WST": "सामोआन ताला",
"currency_FJD": "फ़िजियन डॉलर",
Expand Down
1 change: 0 additions & 1 deletion assets/translations/is.json
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,6 @@
"currency_TMT": "Túrkmenskur manat",
"currency_TOP": "Tongversk pa'anga",
"currency_UZS": "Úsbekskt som",
"currency_VEF": "Venesúelskur bólivíanó",
"currency_VUV": "Vanúatú vatu",
"currency_WST": "Samóska tala",
"currency_FJD": "Fídjeyskur dalur",
Expand Down
1 change: 0 additions & 1 deletion assets/translations/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,6 @@
"currency_SBD": "ソロモン諸島 ドル",
"currency_SVC": "エルサルバドル コロン",
"currency_TWD": "ニュー台湾ドル",
"currency_VEF": "ベネズエラ ボリバル",
"currency_UYU": "ウルグアイ ペソ",
"currency_XPF": "CFPフラン",
"currency_CLF": "ウニダード・デ・フォメント",
Expand Down
1 change: 0 additions & 1 deletion assets/translations/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,6 @@
"currency_TMT": "투르크메니스탄 마나트",
"currency_TOP": "통가 파앙가",
"currency_UZS": "우즈베키스탄 솀",
"currency_VEF": "베네수엘라 볼리바르",
"currency_VUV": "니바두 바투",
"currency_WST": "사모아 탈라",
"currency_XCD": "동카리브 달러",
Expand Down
1 change: 0 additions & 1 deletion assets/translations/nb_NO.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,6 @@
"currency_TMT": "Turkmensk manat",
"currency_TOP": "Tongansk pa'anga",
"currency_UZS": "Usbekisk sum",
"currency_VEF": "Venezuelansk bolívar",
"currency_VUV": "Vanuatisk vatu",
"currency_WST": "Samoansk tala",
"currency_XCD": "Østkaribisk dollar",
Expand Down
1 change: 0 additions & 1 deletion assets/translations/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,6 @@
"currency_TMT": "Manat Turquemenistano",
"currency_TOP": "Pa'anga Tonganês",
"currency_UZS": "Som Uzbeque",
"currency_VEF": "Bolívar Venezuelano",
"currency_VUV": "Vatu de Vanuatu",
"currency_WST": "Tala Samoano",
"currency_FJD": "Dólar Fijiano",
Expand Down
1 change: 0 additions & 1 deletion assets/translations/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,6 @@
"currency_TMT": "Turkmenistanska manat",
"currency_TOP": "Tonganska pa'anga",
"currency_UZS": "Uzbekistanska som",
"currency_VEF": "Venezuelanska bolívar",
"currency_VUV": "Vanuatu vatu",
"currency_WST": "Samoanska tala",
"currency_FJD": "Fijianska dollar",
Expand Down
1 change: 0 additions & 1 deletion assets/translations/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,6 @@
"currency_SYP": "Bảng Syria",
"currency_TOP": "Pa'anga Tonga",
"currency_UZS": "Som Uzbekistan",
"currency_VEF": "Bolívar Venezuela",
"currency_VUV": "Vatu Vanuatu",
"currency_WST": "Tala Samoa",
"currency_XCD": "Đô la Đông Caribê",
Expand Down
1 change: 0 additions & 1 deletion assets/translations/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,6 @@
"currency_TMT": "土库曼斯坦马纳特",
"currency_TOP": "汤加潘加",
"currency_UZS": "乌兹别克斯坦苏姆",
"currency_VEF": "委内瑞拉玻利瓦尔",
"currency_VUV": "瓦努阿图瓦图",
"currency_XCD": "东加勒比元",
"currency_FJD": "斐济元",
Expand Down
1 change: 0 additions & 1 deletion assets/translations/zh_Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@
"currency_TMT": "土庫曼馬納特",
"currency_TOP": "東加潘加",
"currency_UZS": "烏茲別克索姆",
"currency_VEF": "委內瑞拉玻利瓦",
"currency_VUV": "瓦努阿圖瓦圖",
"currency_WST": "薩摩亞塔拉",
"currency_XCD": "東加勒比元",
Expand Down
8 changes: 1 addition & 7 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ PODS:
- connectivity_plus (0.0.1):
- Flutter
- ReachabilitySwift
- cryptography_flutter (0.2.0):
- Flutter
- DKImagePickerController/Core (4.3.4):
- DKImagePickerController/ImageDataManager
- DKImagePickerController/Resource
Expand Down Expand Up @@ -89,7 +87,6 @@ DEPENDENCIES:
- camera_avfoundation (from `.symlinks/plugins/camera_avfoundation/ios`)
- coinlib_flutter (from `.symlinks/plugins/coinlib_flutter/darwin`)
- connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)
- cryptography_flutter (from `.symlinks/plugins/cryptography_flutter/ios`)
- file_picker (from `.symlinks/plugins/file_picker/ios`)
- Flutter (from `Flutter`)
- flutter_keyboard_visibility (from `.symlinks/plugins/flutter_keyboard_visibility/ios`)
Expand Down Expand Up @@ -125,8 +122,6 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/coinlib_flutter/darwin"
connectivity_plus:
:path: ".symlinks/plugins/connectivity_plus/ios"
cryptography_flutter:
:path: ".symlinks/plugins/cryptography_flutter/ios"
file_picker:
:path: ".symlinks/plugins/file_picker/ios"
Flutter:
Expand Down Expand Up @@ -163,7 +158,6 @@ SPEC CHECKSUMS:
camera_avfoundation: 3125e8cd1a4387f6f31c6c63abb8a55892a9eeeb
coinlib_flutter: 6abec900d67762a6e7ccfd567a3cd3ae00bbee35
connectivity_plus: 413a8857dd5d9f1c399a39130850d02fe0feaf7e
cryptography_flutter: 381bdacc984abcfbe3ca45ef7c76566ff061614c
DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac
DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179
file_picker: ce3938a0df3cc1ef404671531facef740d03f920
Expand All @@ -176,7 +170,7 @@ SPEC CHECKSUMS:
integration_test: 13825b8a9334a850581300559b8839134b124670
local_auth_ios: c6cf091ded637a88f24f86a8875d8b0f526e2605
MTBBarcodeScanner: f453b33c4b7dfe545d8c6484ed744d55671788cb
package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e
package_info_plus: fd030dabf36271f146f1f3beacd48f564b0f17f7
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
qr_code_scanner: bb67d64904c3b9658ada8c402e8b4d406d5d796e
ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,5 @@ class _AppSettingsWalletScannerState extends State<AppSettingsWalletScanner> {
});
context.loaderOverlay.hide();
}
//TODO won't find new wallets if one in the gap has not been used
}
1 change: 0 additions & 1 deletion lib/tools/scanner/wallet_scanner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,4 @@ class WalletScanner {

return knownAddresses;
}
//TODO won't find new wallets if one in the gap has not been used
}
131 changes: 68 additions & 63 deletions lib/widgets/wallet/receive_tab.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart';
Expand Down Expand Up @@ -135,6 +137,71 @@ class _ReceiveTabState extends State<ReceiveTab> {
);
}

Widget renderPurchaseButtons() {
if (widget.wallet.letterCode == 'tPPC') {
return Align(
child: PeerContainer(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
PeerServiceTitle(
title: AppLocalizations.instance.translate('receive_obtain'),
),
const SizedBox(height: 20),
Text(
AppLocalizations.instance.translate('receive_website_faucet'),
textAlign: TextAlign.center,
),
const SizedBox(height: 20),
PeerButton(
text: AppLocalizations.instance.translate('receive_faucet'),
action: () {
launchURL('https://ppc.lol/faucet/');
},
),
],
),
),
);
} else if (widget.wallet.letterCode == 'PPC' && Platform.isIOS == false) {
return Align(
child: PeerContainer(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
PeerServiceTitle(
title: AppLocalizations.instance.translate('buy_peercoin'),
),
const SizedBox(height: 20),
Text(
AppLocalizations.instance
.translate('receive_website_description'),
textAlign: TextAlign.center,
),
const SizedBox(height: 20),
PeerButton(
text: AppLocalizations.instance
.translate('receive_website_credit'),
action: () {
launchURL('https://ppc.lol/buy');
},
),
const SizedBox(height: 20),
PeerButton(
text: AppLocalizations.instance
.translate('receive_website_exchandes'),
action: () {
launchURL('https://ppc.lol/exchanges');
},
),
],
),
),
);
}
return const SizedBox();
}

@override
Widget build(BuildContext context) {
return Stack(
Expand Down Expand Up @@ -293,69 +360,7 @@ class _ReceiveTabState extends State<ReceiveTab> {
),
),
),
widget.wallet.letterCode == 'tPPC'
? Align(
child: PeerContainer(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
PeerServiceTitle(
title: AppLocalizations.instance
.translate('receive_obtain'),
),
const SizedBox(height: 20),
Text(
AppLocalizations.instance
.translate('receive_website_faucet'),
textAlign: TextAlign.center,
),
const SizedBox(height: 20),
PeerButton(
text: AppLocalizations.instance
.translate('receive_faucet'),
action: () {
launchURL('https://ppc.lol/faucet/');
},
),
],
),
),
)
: Align(
child: PeerContainer(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
PeerServiceTitle(
title: AppLocalizations.instance
.translate('buy_peercoin'),
),
const SizedBox(height: 20),
Text(
AppLocalizations.instance
.translate('receive_website_description'),
textAlign: TextAlign.center,
),
const SizedBox(height: 20),
PeerButton(
text: AppLocalizations.instance
.translate('receive_website_credit'),
action: () {
launchURL('https://ppc.lol/buy');
},
),
const SizedBox(height: 20),
PeerButton(
text: AppLocalizations.instance
.translate('receive_website_exchandes'),
action: () {
launchURL('https://ppc.lol/exchanges');
},
),
],
),
),
),
renderPurchaseButtons(),
],
),
],
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: peercoin
description: A new Peercoin wallet.

version: 1.2.1+133
version: 1.2.2+134

environment:
sdk: '>=3.0.0 <4.0.0'
Expand Down
3 changes: 2 additions & 1 deletion test_driver/key_new.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,10 @@ void main() {
test(
'tap into new peercoin mainnet wallet',
() async {
await driver.tap(find.pageBack());
await Future.delayed(const Duration(seconds: 1));
await driver.runUnsynchronized(
() async {
await driver.tap(find.pageBack());
await driver.tap(find.byValueKey('newWalletIconButton'));
await driver.tap(find.text('Peercoin'));
await driver.tap(find.text('Peercoin')); //tap into wallet
Expand Down

0 comments on commit f28e8b5

Please sign in to comment.