Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge v1.11.0 into fdroid #1504

Merged
merged 134 commits into from
Oct 3, 2023
Merged

merge v1.11.0 into fdroid #1504

merged 134 commits into from
Oct 3, 2023

Conversation

clangenb
Copy link
Member

@clangenb clangenb commented Oct 2, 2023

Todo: I wanted to merge the previous tag, but I merged master instead. So I would like to wait until the next release on master and then update this PR before merging.

SourbaevaJanaraJ and others added 30 commits April 21, 2023 07:20
* upgraded Flutter version

* ./flutterw upgrade
…rom pubKey on the fly (#1073)

* [NetworkSelectPage] remove usage of `pubKeyAddressMap`

* [AccountSelectList] remove `addressOfAccount` usage and minor renaming.

* [AddressInputField] remove `addressOfAccount` usage and minor renaming.

* [Fmt] remove `addressOfAccountUsages` and delete method.

* compute address in some places instead of using the cached one

* remove the account store's `pubKeyAddress` map and the webApi's `encodeAddresses`

* [AccountStore] remove `getNetworkAddress` and replace its usages with `Fmt.ss58Encode`

* [Fmt] remove obsolete import of store.

* [AccountStore] regenerate file

* [JS] remove `account.encodeAddress`

* organize imports

* [substrate_api] null-check before initializing accounts.

* [accountStore] make `currentAddress` nullable as it unfortunately should be now.

* Revert "[accountStore] make `currentAddress` nullable as it unfortunately should be now."

This reverts commit ae16822.

* [accountStore] restore `currentAddress` behaviour from before change.

* fix transfer from contact detail page

* handle contacts based on pubKey instead of address

* fix linter warning

* [local_storage] rename variable

* fix linter warning
…ddress display (#1111)

* remove obsolete `networkSs58Map` and don't return the addresses for the different networks, when initializing the keys anymore.

* remove overriding the network prefix on dart and JS-side

* [encointer-api] `getAggregatedAccountData` does now use th pubKey instead of the address.

* fix fmt

* [meetup] fix the icon of self.

* [accountApi] rename `decodeAddresses` to `addressesToPubKeys` and simplify code.

* [scan_claim_qr_code] fix meetup with non-42-prefixed addresses.

* fmt

* [encointerApi] get the next phase timestamp once before subscribing, otherwise the value will be empty in the store for a long time.

* [encointerApi] correctly fix getting the next phase

* [ceremony_step2_scan2] rename `getCurrentAccountIndex` -> `meetupIndexOfAccount` and refactor a bit.
* created ew_http package with vgv cli

* added exceptions

* added get method

* added getList method

* tested get and getList methods

* added get method

* refactor test

* added exceptions

* rename test model

* write readme
* az/launch.json configuration for android and ios

* deleted empty lines

---------

Co-authored-by: clangenb <37865735+clangenb@users.noreply.github.com>
* Fixed crashing bug on older androids
smaller than API 26

* comments are added

---------

Co-authored-by: clangenb <37865735+clangenb@users.noreply.github.com>
* refactoring change language method

* set app settings to integration test

* bump flutter sdk

* fix dart ui error

* refactoring main dart

* uncommented real app tests

* added change language test

---------

Co-authored-by: clangenb <37865735+clangenb@users.noreply.github.com>
* started to do unit test for Prefernces Storage

* last changes

* test get bool

* finished test for setDouble, SetInt, setStringList and clear

* Test for delete

* added verify function to tests

* removed unused import

* unit test for preferences_storage

* renamed the test titles

---------

Co-authored-by: Eldar2021 <eldiiaralmazbekov@gmail.com>
Co-authored-by: clangenb <37865735+clangenb@users.noreply.github.com>
* added repository provider

* added nullable to ew http

* wrapp main app with repository provider

* change

* change Transaction model by backend

* add ewhttp to TransferHistoryStore

* rebuild TransferHistoryStore

* set real endpoint

* delete mock transaction history data

* added test link

* refactoring code

* added empty transaction view and error view

* added documantation to transfer history model

* set start and end time to getTransactionHistoryUrl

* refactor getTransactionHistoryUrl

* fix trabsaltion by commet

* added Retry translations

* Integration `EwHttp` (#1177)

* integrated EwHttp to IpfsApi

* dleted unused SubscanApi and fix tests

* integration EwHttp to getMeetupTimeOverride

* use EwHttp instead FeedRepo

* added const to Api constructor

* deleted http from app pubspec

* fix file name

* delete unused g file

* change rename file htt_overrides

* fix Api.create parameters

* try get name

* added getNameFromContacts to Transaction

* rename TransferHistoryViewStore

* deleted FetchStatus initial
* started creating announcement page

* announcement go on

* announcements on the homePage with mockData

* changed announcementMockData

* display announcements when devMode is enabled

* added func to shareIcon and favoriteIcon

* Favorite Icon can be tapped only once

* test

* isFavorite dynamic

* tested announcements from feed

* refactored AnnouncementView

* imports

* used mobx instead of setState to change heartIcon

* [community_icon] set default value for nullable constructor arg

* fix IOS integration tests

---------

Co-authored-by: clangenb <37865735+clangenb@users.noreply.github.com>
Co-authored-by: Eldar2021 <eldiiaralmazbekov@gmail.com>
* first commit to test

* QR code preview and printabality added

* business logic moved out the UI

* melos method to build apk for android added

* settings.json autoReveal set back to false

* fixing analyze related issues

* added localization

* analyze related fix

* Update app/lib/utils/translations/translations_assets.dart

French fixed

Co-authored-by: clangenb <37865735+clangenb@users.noreply.github.com>

* Update app/lib/utils/translations/translations_assets.dart

French fixed

Co-authored-by: clangenb <37865735+clangenb@users.noreply.github.com>

* Update app/lib/utils/translations/translations_assets.dart

French fixed

Co-authored-by: clangenb <37865735+clangenb@users.noreply.github.com>

* fixed typo and localized file related codes

---------

Co-authored-by: clangenb <37865735+clangenb@users.noreply.github.com>
* refactoring change language method

* set app settings to integration test

* bump flutter sdk

* fix dart ui error

* refactoring main dart

* uncommented real app tests

* added change language test

* for test

* gave erro call functions

* refactor some intehration test

* gave error start meetup

* fix dev scan qr test

* try refactoring real app test

* try refactor real app test

* format code

* remove addDelay

* refactor account

* renaming vars

* move screenshots to screenshots_name

* move screenshots to screenshots_name

* fix typo

* check screenshots

* added screenshot-for-all-locales command

* added timeout

* added existsSync

* deleted shouldTakeScreenshot parameter

* pull origin master

* create scrollToPanelEnd

* try fix scroll to panel controller after meetup

* try fix scroll

* remove screenshot all locales commands

* try fix takeScreenshot

* fix account export error

* create helper expoert file

* rename take screen shots

* try refactor driver locales

* try fix melos command

* added melos spesific version ti install melos sh file
* added local auth package

* replace pushAndRemoveUntil to pushNamedAndRemoveUntil

* create splash view store

* create login cocepts

* added login view store logic

* refactoring code

* fix integration test

* added translations

* fix test styles

* fix test

* refactor code

* added localizedReason to translations

* added documantation comments for methods

* added await to pushNamedAndRemoveUntil

* added await to pushNamedAndRemoveUntil when call useLocalAuth

* tested localizations for IOS

* changes names by comment

* changes names by comment

* create authenticationEnabled in AppSettingd

* added condition for authenticationEnabled

* fix typo authinticate -> authenticate

* authenticationEnabled changed to enableBiometricAuth

* added secure storage to AccountStore

* added passowrd ask logic

* refactor login view

* deleted actions check pin code

* fix grid view count

* deleted action keyword from check pin code

* feractoring login module

* change file name app service

* fix password input dialog

* deleted biometricError

* add translations biometric authentication

* bump local auth v

* tested on IOS

* deleted spaces in MainActivity java file

* rename password input dialog file

* fix name pinError and translations

* rename isBiometricAuthenticationEnabled

* fix Log typo

* rename setIsBiometricAuthenticationEnabled

* rename getIsBiometricAuthenticationEnabled

* rename pinCode

* fix transalation localizedReason

* deleted required for CircleButton onPressed parameter

* deleted unused MainActivity java

* create checkCachedPin function in login store

* ask pin code brefore enable/disable biometric auth

* unused FlutterFragmentActivity java code

* refactoring login store

* format code

* added canPop ro password input dialog

* rename getLocaleName

* fix fr pinError translation

* test on IOS and android

* change flutter_inappwebview version
* try refactoring scan page integration test

* try refactor mock qr scan page

* deleted test_driter/app&&app_test files

* try rename real app to app (fix helper folder name)

* try rename real app to app (fix app folder)

* try rename real app to app (fix app test file)

* fix melos commands

* try remove mock in lib folder

* try refactor app config

* format import

* deleted unused mock chain data

* fix Iphone 8 plus test

* Try fix build runner error in unit test (#1226)

* try fix buil runner error in unit test

* fix documantation
…fline (#1182)

* small ux changes,on the 3rd step of the ceremony remove Finish Button  and add a [X] in the appBar

* added checkInternetConnection() method depending on results left one button

* added text traslation for offlline Message in en, de, fr, ru

* Update app/lib/utils/translations/translations_encointer.dart

* Update app/lib/utils/translations/translations_encointer.dart

* Update app/lib/utils/translations/translations_encointer.dart

* small commit in translation

---------

Co-authored-by: clangenb <37865735+clangenb@users.noreply.github.com>
* started creating announcement page

* announcement go on

* announcements on the homePage with mockData

* changed announcementMockData

* display announcements when devMode is enabled

* added func to shareIcon and favoriteIcon

* Favorite Icon can be tapped only once

* test

* isFavorite dynamic

* tested announcements from feed

* refactored AnnouncementView

* imports

* used mobx instead of setState to change heartIcon

* az/Mock back end announcements

* Fixed formatting errors

* Fixing formattings

* Fixing build runner error

* Fixed error handling

* Fixing null-safety related codes on UI

* Fixing timeout error in integration test

* after code review changes made

* Fixed melos analyze-check failure

* [assets/index] remove unused imports

---------

Co-authored-by: Janara Sourbayeva <janara2610@gmail.com>
Co-authored-by: clangenb <37865735+clangenb@users.noreply.github.com>
* [utils/format] add documentation for `blake2WithSs58Pre`

* [utils/format] add working implementation of ss58Decode

* [utils/format] add documentation

* [utils/format] fix test names

* [utils/format] fix fmt

* [utils/format] add const constructor for `Ss58DecodeResult`

* [utils/format] fix flutter analyze

* Replace JS ss58-decode calls with the JS version

* [JS/service/account] remove the `addressDecode` and its corresponding dependencies

* [scan_claim_qr_code] make `onScan` sync

* add tests for failed decoding

* add tests for failed encoding

* [format_tests] fix duplicate comment
…1228)

* try get screenshot for multi language from CI

* added node actions

* rename files

* set permission

* try fix multi panguage screenshot ci test sh file

* fix decription

* remove release integration test ios

* try fix condition ios integration test action

* just for test
* added gbd color for test

* created theme structure

* changed method to get

* added material color fild to app settings store

* fix all colors

* added gbd color

* primaryGradient

* create seed color system

* fix gradient color

* fix expoert account color

* fix RoundedButton color

* fixed meetup buttom color

* deleted unused colors

* change colorscheme system

* add changeTheme method to app settings store

* change theme success

* commented change tmene method body

* rebuid generated files

* added todos
* tested feed dev

* fix by comment
#1241)

* moved Transaction History Page to the home page, new design of the TransferHistory page

* updated transactionCard, added sent and received status

* added translation for sent and received status, they are localized now, moved required arguments to the top

* try fix CI test 01

* Did some refactoring with Janara

---------

Co-authored-by: Eldar2021 <eldiiaralmazbekov@gmail.com>
* first commit, not done yet

* Integration test devmode QR scanning

* merged 'master' to 'qr scan test dev mode'
fixed: scroll error while testing

* invoice.dart logic changed

* qr test added to real_app test and now is done there

* changed namings of tests

* fixed integration test failure

* fixed unit test code analyze failure

* changed logic from devmode to isIntegrationTest,
made changes regarding keys

* fixed scroll error

* changed spelling error

* fixed scroll error

* changed test descriptions

---------

Co-authored-by: clangenb <37865735+clangenb@users.noreply.github.com>
* created ConnectivityStore

* deleted checkInternetConnection in CeremonyStep3Finish

* tested on IOS
* Try deleted unused AccountPasswordDialog

* try fix neming

* smalee logic navigation

* try fix small logic AnnouncementView

* refactored by comment

---------

Co-authored-by: clangenb <37865735+clangenb@users.noreply.github.com>
…ng, make announcements production (#1244)

* created Either class

* integrated Either to EwHttp class

* tested fold method call right or left functions

* try integrated EwHttp to AnnouncementStore

* AnnouncementStore connect to getEncointerFeedLink

* deleted unused code

* deleted unused encointerFeedAnn

* added documantation for Either Right Left

* try refactor code

* try fix error

* tested dev-mode=false situation
* [assets] fix tx-history label softwrap by changing the terminology

* [assets] fix receive softwrap in french by using better terminology

* [assets] extract `ActionButton` widget to remove redundant code

* [assets] fix: use icon field in ActionButton widget

* [assets/index] fmt

* try fix integration test

---------

Co-authored-by: Eldar2021 <eldiiaralmazbekov@gmail.com>
clangenb and others added 18 commits August 4, 2023 18:01
* Add missing translations in french and russian and generate a file with the missing translations if any

* [l10n] fix typos

* [gitignore] fix doc

* [l10n] add linebreak to file end

* [GHA] check missing translations in CI

* [GHA] fix flutter not found error
* bump deps

* half of tests working

* remove unnecessary stuff

* remove more unndcessary stuff

* fix broken tests

* revert weird changes

* [GHA] upload js binary at the end of the workflow

* [GHA] fix js-binary path

* [GHA] upload js in JS-ci for faster upload times

* [GHA] minor cleanup

* [GHA] run integration tests also against the new node

* [scripts] print docker tag in scripts

* [GHA] fix multiple docker tags in matrix.

* [scripts] fix command to run the new encointer node

* [GHA] remove running the old encointer node because it has an incompatible CLI

* [GHA] better comment

* [JS] update fee dependent integration test for new docker image

* [GHA] also add docker tag do JS CI

---------

Co-authored-by: clangenb <37865735+clangenb@users.noreply.github.com>
* [meetup] remove all widget paddings favoring on big padding

* [meetup] remove more unnecessary widgets

* [meetup] fix add const to progress bar

* [qr_code_image_view] remove unnecessary settings

* [qr_code_image_view] allow passing size to `QrCodeImage`

* [meetup] make QrCode page scrollable and fix widget size issue.

* [QrCodeView] remove obsolete QrCodeImage with button

* [meetup] fix QrCodeSizie issue for good.

* [receive_page] better display of qr-code

* [receive_page] remove unnecessary nested column

* [receive_page] remove another unnecessary nested column

* [receive_page] put overarching padding at correct place
…ors while sending extrinsics (#1483)

* [JS] extract `stringNumberToEncointerBalanceU8` and unit test it

* [JS] update bn to v5 and fix apply updates

* [JS] change naming of test

* [JS/service/account] add minor debugging info. Can't send extrinsics from the app currently...

* [JS] catch all tx errors and display them to the user instead of the forever spinning wheel.

* [JS] fix error: getting invalid character on null tip

* [JS] fix transfers again

* [JS] rename `stringNumberToEncointerU8` to `stringNumberToEncointerBalanceU8a`

* [JS] add documentation to `stringNumberToEncointerBalanceU8a`
* [EncointerApi] fix parsing of Name in CidNames

* fmt

* [CidName] parsing handle correctly utf8 encoded strings
* bump flutter v3.13.0

* Fix linter warning

* bump dependencies and fix decrecated codes

* Tested on IOS and Android

* write todos

* [GHA] switch to MacOs 13 to fix impeller issue

* Revert "[GHA] switch to MacOs 13 to fix impeller issue"

This reverts commit 8362beb.

---------

Co-authored-by: clangenb <37865735+clangenb@users.noreply.github.com>
* [GHA/ios_integration_test] use macos-13 runner image

* [GHA/ios_integration_test] fix: use 16.4 runtime for ipad simulator creation

* [GHA] install colima

* [GHA/ios] add documentation about screenshot specification

* [GHA/ios] update simulators: switch to newest iPad simulator, create old IPhone 8 Plus simulator if it is no longer available.

* [GHA/ios] fix Iphone 14 Max simulator name

* [scripts/ios] use first device that matches device ID

* [scripts/ios] downgrade IOS to from 17.0 to 16.4 because the simulator startup fails otherwise.

* [scripts/ios] Remove IOS runtime version from specifications as 16.4 is not always available

* [scripts/ios] Be flexible with the runtime during simulator creation
* [JS] bump webpack

* [JS] yarn dedupe

* [JS] remove unused thread loader

* [JS] major bump webpack-cli, remove unused webpack-cli/init, remove webpack-cli/info, which is not intended for installation
* [models] add `announcementSigner` and `rules` to `CommunityMetadata`

* [JS] add new `CommunityMetadata` types

* [models] `CommunityRules` uppercase enum variants.

* [models/community_metadata] add booleans for the `CommunityRules` enum variants

* [ceremonyBox] Omit hours in ceremony data label if the community is locoLight

* [ceremonyBox] Consider community rules in countdown display

* [ceremonyBox] fmt

* [models] fix metadata deserialization tests

* [JS] update `CommunityRules`: `LoCoLight` -> `LoCoFlex`

* [dart] update `CommunityRules`: `LocoLight` -> `LoCoFlex`

* [MeetupLocationPage] pass complete meetup information to constructor

* [MeetupLocationPage] display different message if the community is LoCoFlex

* [EncointerMap] change default size

* [CeremonyBox] fix changes that should not have been committed.

* [MeetupLocationView] change param name: width/height -> maxWidth/maxHeight

* [EncointerMap] fix choosing community text

* [JS] update @encointer and remove obsolete type definitions

* [i10n] consistent terminology for french

* [models/community_metadata] better doc-comment

* [community_store_test] fmt

* [i10n] chang translation: meetupLocation -> Gathering Point

* [meetup_location_view] add gathering index to app bar title

* [meetup_location_view] fmt
* [JS] Add JS code for getting all faucets and add integration tests with Gesell.

* [JS] add reputation commitment check

* [profile/account_manage_page] replace expanded widget with spacer

* Revert "[profile/account_manage_page] replace expanded widget with spacer"

This reverts commit adc0d20.

* [profile/account_manage_page] remove unnecessary `SingleChildScrollView`

* [profile/account_manage_page] remove unnecessary `Column`

* [profile/account_manage_page] re-introduce expanded because it is needed with many items

* [profile/account_manage_page] add draft of Kusama Faucet list tile

* [profile/account_manage_page] add Kusama Icon

* [profile/account_manage_page] minor cleanup

* [profile/account_manage_page] minor cleanup 2

* [models] add faucet model and unit test for parsing

* [GHA] upload js binary at the end of the workflow

* [GHA] fix js-binary path

* [GHA] upload js binary asap

* [models/faucet] fix comment

* [JS] export faucet methods

* [GHA] upload js in JS-ci for faster upload times

* [models/faucet] make whitelist nullable

* [models/faucet] Decode hex into utf8

* [utils/format] simplify hexToBytes

* [profile/account_manage_page] successfully get all faucets

* [utils/format] fix hexToBytes

* [utils/format] extract `FaucetListTile` and display all faucets from the network

* [profile/account_manage_page] check if the current account can drip a faucet.

* [profile/account_manage_page] add methods for dripping the faucet (untested)

* [assets] remove obsolete field `bonded` of balances info

* [profile/assets] `getNativeBalance`

* [tx] fix: add correct notification body to faucet drip tx

* [GHA] minor cleanup

* fix translation mixup

* fmt

* change whitelist logic: if whitelist is Null this means all cid's are allowed to drip

* [AccountManagePage] simplify `CommunityIcon`

* [AccountManagePage] show reputation and native balance of managed account instead of current account

* [AccountManagePage] show message that only the currently active account can use the faucet services

* [JS] log more info about reputation commitment

* [GHA/android_integration_tests] bump setup-android to v3

* [GHA/android_integration_tests] try using api level 30 now.

* Revert "[GHA/android_integration_tests] bump setup-android to v3"

This reverts commit 2eed8b3.

* Revert "[GHA/android_integration_tests] try using api level 30 now."

This reverts commit 103fa03.

* [account_manage_page] extract `FaucetListTile` to separate file

* [JS/faucet] use JSON.stringify to print log cid

* [JS] fix `hasCommittedFor` function

* [JS] skip has `hasCommittedFor` positive test as it needs a setup

* [faucet] drip one claim at a time

* [faucet] only show benefits with dev-options

* fmt

* [JS] fix doc typos

---------

Co-authored-by: Alain Brenzikofer <alain@integritee.network>
* [JS] minor bump all dependencies

* [JS] major bump eslint-plugin-jest and prettier

* [JS] major bump regenerator-runtime

* [JS] resolve tslib to 2.6.2
@clangenb clangenb marked this pull request as draft October 2, 2023 07:04
# Conflicts:
#	app/android/app/src/main/AndroidManifest.xml
#	app/lib/page-encointer/meetup/scan_claim_qr_code.dart
#	app/lib/page/qr_scan/qr_scan_page.dart
#	app/pubspec.lock
#	app/pubspec.yaml
* Fix displaying community specific announcements for non Leu/GBD communities

* fmt

* [transaction_history] fix community name of issuance for non GBD/LEU communities

* [transaction_card] fix unused import

* [AnnouncementsStore] fix infinite recursion upon 404 error when getting community announcements

* [AnnouncementsStore] fix potential infinite recursion in global announcements if the feed is down

* [AnnouncementStore] remove unnecessary async
* [AnnouncementView] fetch new announcements when the cid changes

* [AnnouncementView] fix warning about usage of context of unmounted widget
@clangenb clangenb changed the title WIP: Merge next release v1.11.0-fdroid Oct 2, 2023
@clangenb clangenb marked this pull request as ready for review October 2, 2023 14:50
@clangenb clangenb changed the title v1.11.0-fdroid merge v1.11.0 into fdroid Oct 2, 2023
@clangenb clangenb merged commit a9a994b into f-droid Oct 3, 2023
15 of 16 checks passed
@clangenb clangenb deleted the cl/v1.10.7-fdroid branch October 3, 2023 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants