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 master to fdroid #1632

Merged
merged 22 commits into from
Jan 31, 2024
Merged

merge master to fdroid #1632

merged 22 commits into from
Jan 31, 2024

Conversation

clangenb
Copy link
Member

@clangenb clangenb commented Jan 30, 2024

NOTE: MERGE COMMIT - NOT SQUASH & MERGE

clangenb and others added 22 commits December 9, 2023 13:08
* Revert "Fix docker and colima install in CI (#1556)"

This reverts commit a00eaa1.

* [GHA/io_integration_test] run ci on this branch

* Revert "[GHA/io_integration_test] run ci on this branch"

This reverts commit 57c4c4c.

* [ios_integration_test] add continue on error

* [ios_integration_test] properly ignore error
* [chain_store] don't cache header/latest hash as they contain no significance after some time

* [settings] properly stop all the networking before loading the cache

* [chain_store] fmt

* [chain_store/header] generate de-/serialization and remove hash field that doesn't exist.

* [settings_store] be more strict with order when changing the network

* [chain_store] fix comments
* [models/ceremony] make fields of `CommunityReputation` non-nullable

* add `reputationCount` computed in `EncointerAccountStore` and fix reputation count in profile page.

* fmt

* [profile] fix null-check operator of `encointer.account` after switching networks.
* [EncointerAccount] add `verifiedReputations` computed

* use `verifiedReputation` instead of `reputation` where it makes more sense.
…in this case. (#1610)

* [login_service] remove dangerous `secureStorage.clear` operation and delete keys explicitly

* [login] fallback to pin dialog if there was an technical problem with the biometrics.

* [login] rename `loginStore.clearPin` to `deleteAuthenticationData`

* [login] fix typo in file name: biometric_auth_state.dart

* [login] add getter `isEnabled` for `BiometricAuthState`
* update flutter submodule to v3.16.3

* update yaml dependency constraints and dependencies

* fix analyzer warnings after upgrade

* [ew_http] fix dart code after upgrade

* bump very good analysis

* [ew_http] bump deps

* [ew_keyring] bump deps

* [ew_format] bump deps

* [ew_utils] bump deps

* [ew_polkadart] bump deps

* [ew_primitives] bump deps

* [ew_storage] bump deps

* [ew_http] downgrade meta

* [app] remove unused dependencies with dependency validator

* [app] fix missing dependencies with dependency validator

* [app] bump build-runner

* [app] bump some packages

* [app] minor bump the rest of the packages

* [app] run pub upgrade

* [app] downgrade incompatible webview

* [app] major bump pausable timer

* [app] major bump `package_info_plus`

* [app] major bump `add2calendar`

* [app] fix dependency add flutter localizations again

* add lock files of substrate_fixed and test_keys packages

* downgrade build runner to fix bug

* Revert "downgrade build runner to fix bug"

This reverts commit 96536b8.

* [ew_keyring] bump build runner to locked version

* [app] add flutter_gen as a dev dependency

* [ew_keyring] don't generate broken json methods

* Revert "[app] add flutter_gen as a dev dependency"

This reverts commit 1f3248e.

* run pub-get to update transitive dependencies

* disabled take screenshot for IOS systems

* bump flutter v3.16.4

* [test_driver] fix warnings

---------

Co-authored-by: Eldar2021 <eldiiaralmazbekov@gmail.com>
…x crash scanner screenshot test (#1613)

* [test_driver] screenshot: fix typo

* [test_driver] replace wrong usages of `takeScreenshot` with `takeLocalScreenshot`
* [store/account] properly define account data

* [store/account] properly define `toJson` of account data
)

* [ew_keyring] fix keyring_data constructor

* [ew_keyring] minor refactoring

* wip update to polkadart to sr25519 branch

* [ew_keyring] add json_annotation to deps

* [ew_keyring] fmt

* [ew_keyring] regenerate file

* [ew_keyring] fix add account sr25519

* [ew_keyring] getByAddress works

* [ew_keyring] add getPairByAddress

* [ew_keyring] add getAccountByAddress

* [ew_keyring] getPairByPubicKey/getAccountByPublicKey works

* [ew_keyring] rename keyring_data to keyring_account

* [ew_keyring] allow '0x' prefixed and non-prefixed seeds

* [ew_keyring] add some tests to `keyring_account_test`

* [ew_keyring] better doc

* [ew_keyring] fix de-/serialization of `KeyringAccount`

* [ew_keyring] fmt

* [ew_keyring] add de/-serialization logic of the keyring

* [account_store] add service that stores the accounts from persisted key.

* [account_store] move account service

* [ew_keyring] fix fmt in test

* [AccountStore] extract `LegacyEncryptionService`

* reorg overrides after bootstrapping again

* [ew_encointer_utils] update lock file

* [store/account] rename `AccountStorage` to `AccountStorageService`

* [store/account] implemented working migration of old accounts, but it is not persisted yet.

* [SplashView] minor fixes

* [SplashView] fix null-pointer exception due to uninitialized account store.

* [ew_keyring] introduce Separate `KeyringAccount` into `KeyringAccountData` and KeyRingAccount`.

* [ew_keyring] fix keyring and its tests

* [SplashView] fmt

* [store/account] mix migration after keyring change

* [ew_keyring] fmt

* [ew_keyring] fmt

* [ew_keyring] re-create generated file

* [store/account] properly define account data

* [ew_keyring] fix naming of method: `fromDeserialized` -> `from Serialized`

* [ew_keyring] add `fromAccountData` helper

* [ew_keyring] make accounts private but expose getter as list

* [store/account] successfully persist migrated data and read it upon startup.

* [store/account] any mutations to account happen to the new model now in the secure storage

* remove obsolete export account page

* password checks no longer go via JS

* [accountManagePage] remove unused imports

* [ew_keyring] rename SeedType.raw -> rawSeed

* [store/account] make keyring public

* don't lock account keys in JS anymore.

* [ew_keyring] remove obsolete comment

* bump polkadart deps

* fix windows path separator

* fix typo in docs

* use main branch of the encointer polkadart fork

* fix missing plugin exception for secure storage in tests

* [mock_account_data]: Fix pubkey in endoEncointer

* [store/account_test] fix tests

* [store/account_test] better naming for test accounts

* [store/app_test] remove meaningless test, failing condition

* fmt

* fix unit test

* fmt

* Fix adding raw seed account, this fixes the stall at the network switch.

* [AccountMigrationService] get current storage version

* [AccountMigrationService] extract code from splashview into migration service

* [AccountMigrationService] some more logging

* [AccountMigrationService] better naming

* [AccountMigrationService] extract unit testable migration function

* [AccountMigrationService] extract `LegacyLocalStorage`

* [LocalStorage] remove methods that have been moved to the `LegacyLocalStorage`

* fmt

* [account_migration_service] update storage version after migration

* [LegacyLocalStorage] fix docs and remove duplicate definitions

* [integration_test] fix: use mock of legacy local storage

* [ew_keyring] fix tests for stricter validate private key function

* fmt

* bump dependencies for generated files

* [ew_keyring] move extension to a separate file because of mobx issue

* [ew_keyring] remove unnecessary `toValue` extension

* [NewAccountStore] extract keytype

* [AppStore] regenerate with generics

* Revert "bump dependencies for generated files"

This reverts commit 844c222.

* fix analyzer warnings

* [home_page] fix: change remove unnecessary mobx capabilities of the home_page_store and rename it to service

* [home_page] fix: weird mobx bug in `transfer_history_view_store`

* [NewAccountStore] fix melos bug

* [melos] check if build runner error is resolved with concurrency 1.
* [EncointerStore] adding more logs to `getTxPaymentAsset` and simplify code a bit.

* [EncointerStore] `getPaymentAsset` separate stateful code from stateless

* [EncointerStore] extract stateless `_getPaymentAsset` method

* [EncointerStore] extract `canPayTx` function predicate

* [EncointerStore] minor code improvements

* [EncointerStore] make `_getTxPaymentAsset` completely stateless

* [EncointerStore] extract `EncointerStoreService`

* fmt

* fmt 2
* create new accounts in dart instead of in JS.

* [NewAccountStore] use strong types from encointer keyring instead of json maps
…JS to dart (#1619)

* [reapVoucher] replace addressFromUri with the dart implementation

* [reapVoucherPage] extract arguments of the rout in onGenerate

* [reapVoucherPage] properly use postFrameCallBack in initState to check if the voucher is for the current community/network

* [reapVoucherPage] remove unnecessary variables

* [reapVoucherPage] Fix changing the community and the network

* [reapVoucherPage] Fix changing the community and the network 2

* [reapVoucherPage] remove unnecessary pin demand

* [reapVoucherPage] move voucher redeeming prechecks to dart side

* [JS] remove obsolete JS functions

* [JS] remove old obsolete `getBlockTime` function

* fix typo in translation for `VoucherBalanceTooLow`

* [ChainApi] fetch the current head upon subscribing.

* [ReapVoucher] add fixme for voucher balance fee estimate

* [JS] reintroduce getBalance for integration tests
* [ew_keyring] export sr25519Pair and testKeyring

* [ew_primitives] generate a valid proof of attendance in dart

* [ew_primitives] add comment on how the test was validated in dart.

* [ew_primitives] use typedef constructor

* fix warnings

* use proof of attendance from dart in code

* fmt

* [JS] remove js code for proof of attendance

* [encointerApi] add null check for cid in the getProofOfAttendance

* [ew_keyring] remove commented print statement

* wip revert using polkadarts proof of attendance type everywhere

* [encointerApi] transform polkadart proof of attendance into our own in webApi

* update dependency overrides

* [encointerApi] fix registering with proof

* fix windows backslash in dependency overrides
# Conflicts:
#	app/lib/presentation/home/store/home_page_store.g.dart
* [AddAccountView] fix typo in add account form

* [CreateAccountView] fix typo in create account form

* [NewAccountStore] remove responsibility on pin handling

* [NewAccountStore] explicit pin handling before generating importing account

* [NewAccountStore] remove `NewAccountResult.emptyPassword` variant

* Remove wrong calls to persisting the new PIN.

* [NewAccountStore] remove the `keyType` as it is obsolete
* [service/tx] add naive implementation of txbuilder

* add multiaddress extensions for keys

* [service/tx] rename TxApi to TxBuilder

* [service/tx] try to send tx with dart generate code, tx-validation fails. Probably because it can't understand the signed extensions

* [service/tx] verify that encoded call ist correct.

* [service/tx] rename our extrinsic type to opaque extrinsic

* change branch of our polkadart for

* [tx_builder] minor fix and successfully send a tx with native currency

* bump polkadart

* [tx_dart_test] fix variable naming warning

* bump lock file

* fix redundant community identifier definition

* [send_tx_dart_test] try to pay with community currency, currently failing

* bump polkadart now we can pay with community currency

* [service/tx] rename submitToJs to `submitTxInner`

* wip strongly type whole extrinsic send process

* [service/tx] extract all tx notification constructors and remove extrinsic param functions

* [service/tx] fix correct cid type in claim rewards

* [service/tx] use new way for submitClaimRewards and unregisterParticipant

* [service/tx] `submitRegisterParticipant` now uses the new way

* [service/tx] `submitAttestAttendees` now uses the new way

* [service/tx] `submitFaucetDrip` now uses the new way

* [service/tx] `submitEncointerBalance` uses now the dart way

* [service/tx] fix `submitEndorseNewcomer` type error

* [service/tx] next phase sudo works

* [service/tx] reap voucher uses now the dart way

* fmt

* [service/tx] remove unused showStatusSnackBar param

* [service/tx] remove dead `TxApi`

* [service/tx] remove obsolete todo

* [service/tx] better error handling

* [service/tx] extract `getExtrinsicReport` from the extrinsic callback

* [service/tx] added issue number for catching exception in extrinsic callback

* [service/tx] fix punctuation in doc

* [service/tx] fix conflicting tuple implementation
* bump polkadart branch

* regenerate types, keep community identifier

* fix type error in submit xt wrappers
* [store/settings] remove obsolete network const

* remove obsolete transfer detail page

* [assets] use the map of token symbol to balance. Just use a value for the currently connected network

* [store/settings] remove unused network state

* [config] remove obsolete override configs

* [store/settings] remove network name

* [store/settings] remove `fetchNetworkProps` and replace it with `startSubscriptions`

* remove network name 2

* [store/settings] default field of the endpoint is the mainnet

* remove obsolete profile/settings pages and remove unused `customSs58Prefix` in store/settings

* remove all js-interfacing code on the dart side

* remove flutter_inappwebview

* remove js_service encointer directory

* remove JS build scripts and steps from the CI

* remove yarn build command from melos

* remove js-ci

* remove js_service encointer from assets

* fix unit tests by overwriting the webApi.init() method again

* remove building js from unit tests CI

* fix: set network loading to false after connecting

* regenerated assets.gen.dart

* [api] await best head before doing other stuff

* [EncointerApi] don't update account data if address is empty

* [assets] wrap account history and transfer button in observer

* [assets] fix: prevent taping on disabled buttons in integration tests.
@clangenb clangenb merged commit 7f5b280 into f-droid Jan 31, 2024
10 of 12 checks passed
@clangenb clangenb deleted the cl/merge-master-to-fdroid branch January 31, 2024 07:02
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.

1 participant