Commit Graph

81 Commits

Author SHA1 Message Date
Kris Nuttycombe e7db6a9050 ZcashLightClientKit release 0.2.0 build 4 2023-10-13 08:39:25 -06:00
Lukas Korba 9f4243b475
[#861] Remove lightwalletd related error dialogs (#862)
- error dialogs removed
- cleanup of the code

[#861] Remove lightwalletd related error dialogs

- sdk 2.0.2 adopted, version bumped
- error dialogs removed
- a few bugfixes:
- phrase display can handle longer words and still render it fully with no truncation
- tabs tap area increased
- receive screen with addresses now uses the wallet's UA
2023-10-13 08:36:50 -06:00
Kris Nuttycombe e8a5d02395 Update dependencies & build version for 0.2.0-2 release. 2023-10-05 12:42:59 -06:00
Lukas Korba 7c5022a5df
[#828] Splash masking effect (#836)
- Splash screen accessible from a view modifier
- landing through it to the Home and Restore wallet screens
- final effect after round of feedback from Richard
2023-10-04 15:04:08 +02:00
Kris Nuttycombe c98ec53940 Update dependencies & version for 0.2.0 release. 2023-10-03 08:38:31 -06:00
Lukas Korba bbd8da45d6
[#826] proper handling of apps lifecycle (#827)
- SDK version updated
- handling of stopped state added
- swiftgen plugin removed until it's supported by xcode 15 again
2023-09-29 10:23:17 +02:00
Kris Nuttycombe 9586bcbb60 Update Zashi wallet to ZcashLightClientKit 2.0.0-rc.4 2023-09-22 22:05:17 -06:00
Kris Nuttycombe 30eabdf589 Update Zashi wallet to ZcashLightClientKit 2.0.0-rc.3 2023-09-20 15:21:04 -06:00
Lukas Korba feb4ab4eaf
[#820] Adopt SDK sbs-rc1 (#821)
- adopted SDK 2.0.0 RC1 with the Spend-before-Sync
- fixed how memo is selected out of the array of memos (.text is picked, .empty ignored)
2023-09-14 17:10:46 +02:00
Lukas Korba 78f230a768
[#816] Adopt TCA 0.59.0 (#818)
- TCA updated to the latest supported version, there's a 1.0 release already but handled in a different ticket
2023-09-01 08:43:07 +02:00
Lukas Korba 9b2463a370
[#810] Bitrise fails to build (#811)
- hotfix for the CI to work again
2023-08-23 18:16:46 +02:00
Lukas Korba faec526e15
[#804] Update FFI dependency (#805)
- SDK version updated so the FFI is updated as well
- log levels changed so uni tests fixed
2023-08-23 17:06:34 +02:00
Lukas Korba 59e0a68da5
[#747] CrashReporterClient as isolated package (#799)
- CrashReporter is now an independent module
- all crash reporter TODOs removed
- the crash reporter code commented out is now back in action
- package.resolved file updated
- adopted latest SDK
- test crash reporter added back to debug menu
- typo in comments fixed
2023-08-10 08:20:31 +02:00
Lukas Korba 1de13698d8
[#793] Polish debug menu and fix dark mode (#794)
- fixed alerts in debug menu
- fixed confirmation dialog in for rescan action
- fixed dark mode colors
- updated texts
- simplified texteditor UI so it's more consistent with the other components
- reduced debug menu items
- tests fixed
2023-08-07 08:33:33 +02:00
Lukas Korba 0206641fc6
[#790] Adopt latest SDK (#791)
- The SDK updated to the latest main (commit hash)
- Fixes for a few texts
- UX improvement: Upgrading databases... label for cases when it takes a few seconds, most of the times it is so quick that the label is even not visible to the user. It simple dismisses before user lands on a home page from the welcome screen
- fixed tests after adding the flag for migration
2023-07-31 18:07:44 +02:00
Matthew Watt 9fc08a221e
Use SwiftGen plugin (#782)
SwiftGen plugin
2023-07-17 12:12:32 +02:00
Lukas Korba 2aadd2870a
[#772] Cleanup app dependencies (#775)
- dependencies cleaned up
- _unmodularized folder cleared as well
2023-06-22 08:05:22 +02:00
Lukas Korba e3a312ee1a
[#761] AlertReducer and RootReducer needs to be decoupled (#763)
- AlertRequest + Reducer + States removed
- Alerts decoupled and living within the features
- tests fixed
2023-06-06 11:30:58 +02:00
Lukas Korba 9b77a57a5f
[#757] Modularize batch of leaf features Vol I (#760)
Following features have been modularized:
- AddressDetails
- RecoveryPhraseDisplay
- Welcome
- Profile
2023-06-01 10:11:37 -04:00
Lukas Korba 49f7afd56a
[#730] Fix warnings with TCA 0-53 (#733)
- timer instead of self
- TCA updated to 0.53.2
- store.score warnings fixed
2023-05-24 15:44:34 +02:00
Francisco Gindre d10f594782
update ZcashLightClientKit to commit `ee3d082155bf542aa3580c84e6140a329633319a` (#728) 2023-05-23 15:25:23 -03:00
Francisco Gindre a4e377e0d1
[#711] Transaction History not shown (#715)
Closes #711

also uses SDK commit that fixes this issue
https://github.com/zcash/ZcashLightClientKit/issues/1037

Point to commit `cf53edb3b82c9d7998043d6ff7a663ec8fd87b95`

Add resolved file

point to latest SDK commit
2023-05-10 17:52:13 -03:00
Lukas Korba c143f4b31d
[#709] Better error handling in tests (#713)
- Strings replaced with ZcashError
- unit test don't depend on error descriptions anymore

[#709] Better error handling in tests (#713)

- cleanup

[#709] Better error handling in tests (#713)

- alerts now show error message + code
2023-05-10 13:52:56 -03:00
Lukas Korba 041a630412
[#707] Adopt latest SDK (#708)
- TransactionState simplified and adopted to the latest ZcashTransaction
- WalletEvent simplified
- sendTransaction updated to the async/await
- unit tests fixed
2023-05-09 07:20:33 -03:00
Lukas Korba fe1e7b758c
[#705] Transaction detail lacks memo and addresses (#706)
- synchronizer's protocol cleaned up
- latest SDK adopted
- memos back toincleared transactions
- recipient back in cleared transactions
- unit tets fixed
- pending transaction memos are back
- recieved recipients no longer available, removed from the UI
2023-04-27 19:27:58 +02:00
Lukas Korba a727f49817
[#265] Integrate App Rating Alert (#703)
- async adaptations of the latest sdk
- review request TCA dependency added
- set of rules for the triggering the app rating dialog
- unit tests fixed
- unit tests for the review request client
- app review request logic disconnected from the production for now (added the TODO for the triggering)
2023-04-06 08:06:49 +02:00
Michal Fousek c61b406372 Install ZcashLightClientKit from commit instead of feature branch 2023-03-24 12:51:30 +01:00
Lukas Korba ef26c835c2
[#691] Adopt sync/async synchronizer changes (#696)
- async APIs called instead of a sync one
- tests fixed
2023-03-23 16:10:18 +01:00
Lukas Korba 4a3be9ac0b
[#684] Improvements for the derivation tool dependency (#689)
- dependency updated and simplified
- tests fixed
2023-03-21 11:09:26 +01:00
Lukas Korba 28e95efca9
[#678] Adopt TCA 0.52.0 (#688)
- updated, build & tests ok, no code changes needed
2023-03-21 11:03:56 +01:00
Lukas Korba 702b71103b
[#682] Adopt removal of the Notification center on the SDK side (#687)
- secant is buildable again, notifications replaced by publishers
- tests WIP
- all unit tests fixed
- syntax of dependencies consolidated
- syntax of .send and .receive states consolidated
2023-03-21 11:03:42 +01:00
Lukas Korba 59ad8f4c7b
[#673] End to end bugfix (#679)
- memo is nil for send transaction and transparent address
- memo is hidden from the UI when transparent address is used
- derivation tool respect the network set in the target
- unit tests fixed
- memo logic related to the address added
2023-03-17 18:46:41 +01:00
Michal Fousek f46eaf69c5
[#653] Adopt SDK initialisation changes (#671)
Closes #653
2023-03-14 09:14:52 -03:00
Francisco Gindre 1c1eed592d
[#655] Release testflight 0.0.1-46 (#656)
closes #655
2023-03-13 11:53:25 -03:00
Lukas Korba f8191e33ac
[#626] Small UI-UX fixes for 0.0.1-45 (#649)
- all resolved except nav bar issue (separate ticket)
2023-03-13 08:53:21 +01:00
Francisco Gindre bae3ec974b
[#647] Adopt 0.19.1-beta (#648) 2023-03-12 10:14:37 -03:00
Francisco Gindre 454786e603
[#633] build and release from tag 0.0.1-45 (#634)
Closes #633
2023-03-07 18:48:53 -03:00
Michal Fousek 8e445f8b09
[#613] Adopt ZcashLightClientKit version 0.19.0-beta (#616)
Closes #613

- Only change was in usage of rewind function. So it's changed.
- And when rewind is done then start of the sync process is called. So
  rewind now really works without app restart.
2023-03-03 14:58:53 -03:00
Michal Fousek 23a616baab
[#529] Replace OSLogger_ with OSLogger from the SDK (#590)
Closes #529
2023-03-01 15:34:28 -03:00
Lukas Korba 2ddce23427
[#586] secantTests.AppInitializationTests Tests fail on CI (#587)
- Publisher used instead of .task/.run
- fixed all tests

Convert WalletConfigProvider to Combine
2023-02-28 14:02:31 -03:00
Lukas Korba 75150da3a4
[#535] Use 0.18.0's wipe() instead of obsolete nuke approach (#549)
- added alert view asking if nuke is triggered or canceled
- wipe of the keychain
- wipe publisher properly used
- functional wipe accessible through debug menu
2023-02-27 22:43:38 +01:00
Francisco Gindre adb48ba507
[#541] Adopt Latest main commit of SDK (#542)
* [#541] Adopt Latest main commit of SDK

This adopts commit `cf60f44aa83938432c81361917406483ff42c719` from `main`
branch of ZcashLightClientKit.

It includes changes to remove a fake "defaultBirthday" and use the real
`BlockHeight.ofLatestCheckpoint()` function that allows the wallets
to fetch the latest checkpoint available from bundle and define it as the
birthday. Also "defaultBirthday" birthday was incorrectly being used as a
replacement for Sapling Activation height which is the minimum birthday
supported by the wallet in terms of shielded pools.

Wallets with lower heights that have only transparent funds could in theory
work, but they won't be able to see sprout funds. Also the the SDK won't provide a birthday prior to sapling activation.

removes references to `LightWalletService` since this class has been made
internal to the SDK only.

adopts FsBlockDb and adds a FsBlockDbRoot directory dependency for the
Databases dependencies. Which should be renamed in a later commit

Closes #541

* Fix SwiftLint issues
2023-02-15 19:27:52 -03:00
Francisco Gindre 26dd0ea988
Add crash reporter to secant (#531)
* [#525] Adds functions to configure, testCrash and check if it can start.

This adds a build phase where a dummy file is added to the project to
make the build and Plist copy happy. When building in the CI there
will be a script to replace this Plist file with the real one that
then will be copied to the bundle

Crashlytics will be "off" by default and then be turned on when
starting up to be an Opt-Out thing.

This is the only way it can be turned off later.
reference: https://firebase.google.com/docs/crashlytics/customize-crash-reports?platform=ios#enable_opt-in_reporting

The app will start with crash reporting turned off and will set it up
on by default on the application's code. Then if the user wants to
opt-out of crash reporting, it can. Otherwise, it won't be possible.

Adds opting out of crash reporting as a stored user preference.
This adds a value inside UserPreferencesStorage and its live and
mock counterparts.

also creates a builer for `CrashReporterClient` that has a Dependency
to `@Dependency(\.userStoredPreferences)` and sets the references
for the client to set the appropriate values into the user storage

`UserPreferencesStorage` as been adapted to be a TCA Dependency.

`SettingsStore` now as a `Toogle()` to turn off and on crash
reporting. But it doesn't work yet because I haven't found out
how to make a TCA Binding that can rely on an initial value that
is not hardcoded but injected from somewhere else.

See https://www.pointfree.co/episodes/ep158-safer-conciser-forms-part-1
https://www.pointfree.co/episodes/ep158-safer-conciser-forms-part-2

Adds Test Crash button and enable crash reporting

Adds upload-symbols run script phase

Closes #525

Add a custom build environment variable "UPLOAD_CRASHLYTICS_SYMBOLS"
that will let Xcode skip the upload_symbols script for debug builds

Fix Initialization tests

* bump build
2023-02-15 18:18:18 -03:00
Lukas Korba d87d16a031
[#538] Update and adapt 0.50.2 TCA (#539)
- TCA updated to the latest version
2023-02-13 14:13:42 -03:00
Lukas Korba fdd6ff19c0
[#516] Adopt unreleased changes that will go live with SDK 0.18.0-beta release (#532)
- all issues refactored
- previous transactions replaced by new data type from the SDK
- unit tests fixed
2023-02-06 09:38:34 +01:00
Lukas Korba d11a67cee1
[#494] Simplification of the AppReducer's body property (#501)
- destination related actions have been isolated
- app/wallet initialization related actions have been isolated
- AppViewStore helpers encapsulating nested actions for the destinations and deeplinking
- destination enum and state moved to separate file as well
2022-12-07 14:47:42 +01:00
Michal Fousek a591ee93ce
[#442] Adopt SDK 0.17.0 (#496)
Fix _URLRouting error on project

Fix: Wallet account identifiers must be sequential on initialization

Adopt async API of SDK

Fixes after rebase

Fix tests
2022-11-22 11:32:48 +01:00
Lukas Korba 665c792808
[#492] Update TCA to 0.46.0 (#493)
- library updated
- overrides for the dependencies are now done in the trailing closures
- some tests were split to so they cover only 1 case (not 2 cases in one test)
- TCA debug trace back again
2022-11-18 11:34:33 +01:00
Lukas Korba 445e443a37
[#481] Update TCA to 0.45.0 (#482)
- updated, all works fine
2022-11-07 11:54:09 +01:00
Lukas Korba f7be225e01
[#441] Migrate RecoveryPhraseDisplayStore to ReducerProtocol (#443)
- RecoveryPhraseDisplay migrated to new TCA's ReducerProtocol
- fixed unit tests
- TODO Ensure that sensitive information can't be logged intentionally or by accident #444
2022-11-01 17:36:37 +01:00