Skip to content

Commit

Permalink
1.2.0 (#236)
Browse files Browse the repository at this point in the history
* version bump

* version bump

* 2do

* add new currency symbols

* add translations for new currencies

* Remove Croatian kuna (HRK) (#233)

* Remove Croatian kuna (HRK)

* Remove HRK from currency symbols

* remove MRO, not provided from ticker

* remove ZMK, not provided from ticker

* add FJD and PGK

* first coinlib error free integration

* load coinlib in tx building tests

* succesful tx building, tx is rejected though

* use OutPoint.fromHex and build tx that will be accepted

* remove fixme

* logging and cleanup

* comments

* 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/

* Translated using Weblate (Norwegian Bokmål)

Currently translated at 100.0% (459 of 459 strings)

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

* Translated using Weblate (Swedish)

Currently translated at 76.2% (350 of 459 strings)

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

* Translated using Weblate (Danish)

Currently translated at 76.2% (350 of 459 strings)

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

* 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/

* Translated using Weblate (Norwegian Bokmål)

Currently translated at 100.0% (459 of 459 strings)

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

* Translated using Weblate (Swedish)

Currently translated at 100.0% (459 of 459 strings)

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

* Translated using Weblate (Danish)

Currently translated at 100.0% (459 of 459 strings)

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

* 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

* 2do

* add new currency symbols

* add translations for new currencies

* Remove Croatian kuna (HRK) (#233)

* Remove Croatian kuna (HRK)

* Remove HRK from currency symbols

* remove MRO, not provided from ticker

* add FJD and PGK

* first coinlib error free integration

* load coinlib in tx building tests

* succesful tx building, tx is rejected though

* use OutPoint.fromHex and build tx that will be accepted

* remove fixme

* logging and cleanup

* comments

* updates to symbols

* add missing currency symbols

* Translated using Weblate (Norwegian Bokmål)

Currently translated at 100.0% (463 of 463 strings)

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

* Translated using Weblate (Swedish)

Currently translated at 100.0% (463 of 463 strings)

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

* Translated using Weblate (Danish)

Currently translated at 100.0% (463 of 463 strings)

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

* Translated using Weblate (Assamese)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Catalan)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Estonian)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Basque)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Gujarati)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Hungarian)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Armenian)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Georgian)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Lithuanian)

Currently translated at 74.9% (347 of 463 strings)

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

* adapt OP_RETURN message scan to coinlib

* adapt unit test to coinlib

* allow sending of OP_RETURN messages in coinlib

* add tx building test for op_return

* Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (463 of 463 strings)

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

* Translated using Weblate (Korean)

Currently translated at 100.0% (463 of 463 strings)

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

* Translated using Weblate (Hindi)

Currently translated at 100.0% (463 of 463 strings)

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

* Translated using Weblate (Hausa)

Currently translated at 50.7% (235 of 463 strings)

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

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (463 of 463 strings)

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

* Translated using Weblate (Marathi)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Malay)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Afrikaans)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Amharic)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Khmer (Central))

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Kannada)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Kyrgyz)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Lao)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Malayalam)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Nepali)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Odia)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Pashto)

Currently translated at 74.9% (347 of 463 strings)

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

* Translated using Weblate (Sinhala)

Currently translated at 74.9% (347 of 463 strings)

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

* adapt importing paper wallets to coinlib

* comma for ln

* adapt import wif flow to coinslib

* adapt message signing to coinslib

* adapt message verifying to coinlib

* adapt signature in e2e import test to coinlib

* bump to coinlib 1.0.0 rc2

* adapt unit tests to rc2

* update readme for coinlib

* build coinslib in the pipeline

* changelog

* use alternative flutter_logs until package has been patched

* remove coinlib build from e2e test pipe

* unit test web target

* remove test experiment

* upgrade flutter_logs

* use arrow function

* formatting

* more formatting

* adapt OP_RETURN scan to best practises

* add unit test for OP_RETURN scan

* fix bug with populating wif map

* small changes to OP_RETURN sending

* move common logic of import wif and paper wallets into validators

* remove line break

* replace var in wallet provider with respective types or final

* no more intermediate tx in coinlib

* better readability for tx building

* clean up adding inputs and outputs while tx building

* dry

* named parameters for putUtxos

* named parameters for addAddressFromWif

* fix typo in readme

* upgrade e2e test emulator version

* use utf8.encode instead of codeUnits

* bump dependencies

* fix loading overlay in new version

* remove dead code

* add output directly to list without storing it in var

* reverse validateWIFPrivKey logic

* simplify. add lightness.

* add tests for validators

* rename file to be picked up correctly by flutter

* todo

* today in changelog

* divide github actions

* update badges

---------

Co-authored-by: Marius Kjærstad <[email protected]>
Co-authored-by: Weblate <[email protected]>
Co-authored-by: Marius Kjærstad <[email protected]>
  • Loading branch information
4 people authored Sep 12, 2023
1 parent da482b1 commit 74cea68
Show file tree
Hide file tree
Showing 105 changed files with 1,831 additions and 1,184 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Analyze & Test
name: E2E Tests
on:
push:
branches:
Expand All @@ -7,22 +7,6 @@ on:
types: [opened, reopened, synchronize]

jobs:
code-analysis-and-unit-test:
runs-on: macos-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter pub get
- run: flutter analyze
- run: flutter test -r expanded

e2e-test:
runs-on: macos-latest
timeout-minutes: 45
Expand All @@ -40,7 +24,7 @@ jobs:
with:
channel: 'stable'
- name: run tests
uses: ReactiveCircus/android-emulator-runner@v2.27.0
uses: ReactiveCircus/android-emulator-runner@v2.28.0
with:
api-level: ${{ matrix.api-level }}
arch: x86_64
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/static_analysis_and_unit_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Static analysis and unit tests
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]

jobs:
code-analysis-and-unit-test:
runs-on: macos-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter pub get
- run: flutter analyze
- run: brew install autoconf automake libtool
- run: dart run coinlib:build_macos
- run: flutter test -r expanded
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ app.*.map.json
.vscode/launch.json
.vscode/settings.json
ios/build
test.dart
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### **1.2.0** (2023-09-12)
* This app now uses coinlib to deal with the hard stuff behind the scenes.

### **1.1.9** (2023-08-23)
* You may now add multiple wallets of the same type
* Complete redesign of rescan process, check "Wallet Scan" in app settings and "Reset" in the respective wallet
Expand Down
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<a href="https://weblate.ppc.lol/engage/peercoin-flutter/">
<img src="https://weblate.ppc.lol/widgets/peercoin-flutter/-/translations/svg-badge.svg" alt="Übersetzungsstatus" /></a>
[![Codemagic build status](https://api.codemagic.io/apps/61012a37d885ed7a8c3e8b25/61012a37d885ed7a8c3e8b24/status_badge.svg)](https://codemagic.io/apps/61012a37d885ed7a8c3e8b25/61012a37d885ed7a8c3e8b24/latest_build)
[![Analyze & Test](https://github.com/peercoin/peercoin_flutter/actions/workflows/analyze-test.yml/badge.svg)](https://github.com/peercoin/peercoin_flutter/actions/workflows/analyze-test.yml)
[![CodeFactor](https://www.codefactor.io/repository/github/peercoin/peercoin_flutter/badge/main)](https://www.codefactor.io/repository/github/peercoin/peercoin_flutter/overview/main)
[![Static analysis and unit tests](https://github.com/peercoin/peercoin_flutter/actions/workflows/static_analysis_and_unit_test.yml/badge.svg)](https://github.com/peercoin/peercoin_flutter/actions/workflows/static_analysis_and_unit_test.yml)
[![E2E Tests](https://github.com/peercoin/peercoin_flutter/actions/workflows/e2e_tests.yml/badge.svg)](https://github.com/peercoin/peercoin_flutter/actions/workflows/e2e_tests.yml)
# peercoin_flutter
Wallet for Peercoin and Peercoin Testnet using Electrumx as backend.
**App in constant development**
Expand Down Expand Up @@ -39,8 +39,11 @@ You can also sign up for our open beta testing here:
- will not mint

## Development
This repository currently relies on
[Vesta-wallet/coinslib](https://github.com/Vesta-wallet/coinslib "github.com/Vesta-wallet/coinslib")
**Build coinlib**
This repository relies on
[coinlib.](https://github.com/peercoin/coinlib "https://github.com/peercoin/coinlib")
Please follow the build instructions for your OS here:
[README](https://github.com/peercoin/coinlib/blob/master/coinlib/README.md)

**Update icons**
`dart run flutter_launcher_icons:main`
Expand All @@ -60,6 +63,6 @@ This repository currently relies on
Web files are now on the production branch and ready to be deployed.
This will use the html renderer by default. Add *--web-renderer canvas* to peanut if you want to switch to the canvas renderer.

## Basic e2e testing
## Run e2e tests
`flutter drive --target=test_driver/app.dart --driver=test_driver/key_new.dart`
`flutter drive --target=test_driver/app.dart --driver=test_driver/key_imported.dart`
1 change: 1 addition & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion rootProject.ext.compileSdkVersion
ndkVersion "21.4.7075529"

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand Down
Loading

0 comments on commit 74cea68

Please sign in to comment.