Commit Graph

490 Commits

Author SHA1 Message Date
Michal Fousek 2a560dea8d
[#575] Add support for sending feedback (#588)
Closes #575

- Added `SupportDataGenerator` object which generates data sent with
  support email. Format of the data is based on what Android has.
- Support button is moved to settings from profile.
- Support button opens mail composer.
2023-03-01 09:52:50 +01:00
Michal Fousek a4d35b759f
[#546] Update how swiftlint is used (#547)
Closes #546

- Have separate swiftlint config for code and for tests.
2023-02-28 15:32:36 -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
Michal Fousek 148ca941f1
[#554] Add ability to update feature flags from debug screen (#583) 2023-02-27 17:26:24 +01:00
Michal Fousek 56e1364659
[#554] Use WalletConfigProvider and WalletConfig in the TCA (#582)
Closes #554

- WalletConfigProvider and WalletConfig are used in the Secant app.
- First feature flag (`onboarding`) is in use.

Co-authored-by: Lukas Korba <lukas.korba@seznam.cz>
2023-02-27 13:55:47 +01:00
Lukas Korba cc7da24732
[#565] Add transaction details as standalone screen (#581)
- the screen is now simplified
2023-02-27 08:22:07 +01:00
Lukas Korba c686a74372
[#562] Clean up the Send screen (#580)
- send screen simplified + UI changes
- confirmation screen removed (hold to confirm)
- test and snapshot tests modified accordingly
2023-02-27 08:21:54 +01:00
Francisco Gindre c8d2355f9d
[#577] Fix TCA warning (#578) 2023-02-27 08:21:40 +01:00
Francisco Gindre db07850fad
[#806] Mainnet target is using testnet endpoint (#579)
also fixes schemes because mainnet was missing

Closes #806
2023-02-26 09:44:37 -03:00
Francisco Gindre f7a61feed4 0.0.1-41 2023-02-24 16:21:43 -03:00
Michal Fousek a1104163f3
[#554] Add WalletConfigProvider (#574)
- Added `WalletConfigProvider` object which handles loading and caching of
  feature flags.
- Added `WalletConfig` which represents one configuration
  of all feature flags.
2023-02-24 17:33:46 +01:00
Lukas Korba 1988d30540
[#559] Remove the circular progress bar from home screen (#572)
- draft of the removal, home screen updated

[#559] Remove the circular progress bar from home screen

- circular area removed
- snapshot tests of the circular area removed
- home screen simplified
2023-02-23 13:42:48 -03:00
Francisco Gindre 60f19a360d
[#560] Remove QR code scanning from the home screen (#571)
Closes #560
2023-02-22 18:37:36 +01:00
Francisco Gindre 7967fac627
[#207] create Secant Mainnet target (#550)
1. duplicates secant-testnet target and call it secant mainnet https://github.com/zcash/secant-ios-wallet/issues/273
2. renames Info copy plist file and Display name
3. Fixes TCA code bootstrapping so it has the mainnet environment

Fixed Info-Plist
4. (off code repo) create the mainnet app on the app store

4. create the mainnet app on the app store
5. create the mainnet variant on Crashlytics
6. create a GoogleServices-Plist file
7. change tag triggers to mainnet and testnet can be built independently from each other
8. add Icons for testnet

Creates TargetConstants enum for network target

Closes [#568] Change display name to sECCant

make Derivation tool be static by SECANT_{NETWORK} target

Closes [#570] Change AppIcon to ECC icon
Closes #207
2023-02-22 11:06:43 -03:00
Lukas Korba 93b1b8c01f
[#564] Add transaction history as standalone screen (#569)
- the transaction history is now separated
- unit tests fixed
- snapshot test updated
2023-02-22 14:50:59 +01:00
Lukas Korba 1027a06ecd
[#537] Flaky navigation issue (#567)
- flaky navigation reproduced and fixed
2023-02-22 11:28:15 +01:00
Francisco Gindre 7d38035350
[#545] Fix CI issues with PR builds (#548)
This fixes the path of the dummy google services file injected at
startup of the build process.

Closes #545

Fix path for crash reporter

Add output file
2023-02-16 11:24:24 -03:00
Francisco Gindre 931569eeea
Fix swiftlint warnings (#544)
* 0.0.1-40

* - [#543] Fix swiftlint warnings
2023-02-16 11:15:47 -03:00
Francisco Gindre 2d5c70aa94 0.0.1-40 2023-02-15 19:35:09 -03: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 f946de15bb
[#444] Ensure that sensitive information can't be logged intentionally or by accident (#536)
- SensitiveData file holding utilities to hide all strings and data that holds information we don't want to leak or log
- wallet storage fields redacted
- import wallet fields redacted
- create wallet chips redacted
- import wallet reducer changed: BindableStates replaced by bindings to bridge redacted data
- redacted wallet balance
- redacted birthday value (BlockHeight helper)
- Redacted protocol conforming to Undescribable for release/production and testflight builds
- new target for the unredacted debug development
- unit tests fixed
- sensitive data helpers commented
- unit test for conformation to the Undescribable
- memo is redacted
- immutability of redactable structs
- log test capped to look for 6mins at most
2023-02-13 20:32:50 +01: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 1aca887800
[#126] TCA component for user logs (#526)
- OSLogger for the defined categories
- TCA logger for the TCA logs
- WalletLogger for the secant logs
- SDKLogger passed to the SDK
- unit tests for the loggers
- export category OS logs
- share txt files (sdk, tca, wallet logs) via native share dialog
- timestamp extension so we see even milliseconds
- txt files up to some X size
- simple button enable/disable logic and wrapping the export work in the Task
- TODO for empty catches
- OSLogger refactored to OSLogger_, just temporary change
- export and share divided into business logic and view logic parts
- unit tests for the TCA part
- async let syntax for the export logs
- simple activity indicator so testers know export is in progress
- static date formatters so we don't instantiate it over and over
2023-02-01 09:08:22 +01:00
Lukas Korba 0d2d898f4e
[#521] Update format for the Swiftlint TODO rule (#523)
- deployment target set to iOS 15
- no warnings or errors needed to be addressed
2023-01-20 14:55:20 +01:00
Lukas Korba 61567834a4
[#521] Update format for the Swiftlint TODO rule (#522)
- TODO rule updated in the yml file
- all TODOs updated to the new format
- some missing TODOs updated as well
- code cleanup
2023-01-20 14:55:08 +01:00
Lukas Korba f978565f38
[#517] QR codes integration into the wallet details and send feature (#518)
- Address details have been extended to show QR codes for the addresses
- Profile + Address views are now scroll views
- Send feature now supports scan QR feature, when valid zcash address is scanned the address is automatically filled
- snapshot tests & unit tests fixed and extended accordingly
2023-01-12 13:04:36 +01:00
Lukas Korba 64d509aedb
[#514] Adopt Unified Addresses (#515)
- UAs integrated to the Profile and Address details screen
- Snapshot tests for the AddressDetailsView
- Unit tests for the AddressDetailsStore
2023-01-05 20:07:25 +01:00
Francisco Gindre 464d87bd25 bump to build 37 2023-01-05 12:52:32 -03:00
Francisco Gindre 80cac1ce95 Update CHANGELOG.md and bump build number 2023-01-05 12:01:31 -03:00
Francisco Gindre 9f4a9a101e
[#512] Check that every TODO in code has an open issue (#513)
Closes #512
2023-01-04 10:03:19 -03:00
Dimitris Apostolou a16de79a45
Fix typos (#507) 2023-01-02 12:18:58 -03:00
Lukas Korba 5c306a54a6
[#505] AppTests refactor to RootTests (#506)
- refactor App->Root
- missing tests fixed and todos cleaned up
2022-12-21 08:37:08 +01:00
Lukas Korba 1cf49e7b72
[#179] Broken Onboarding UI for .accessibilityLarge (#504)
- reimagined the way the onboarding is composed
- the bare bone is now a VStack instead of a ZStack
- there is no use of GeometryReader anymore
2022-12-08 07:37:00 +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
Lukas Korba 5847088ce9
[#495] Rename AppStore to avoid conceptual confusions (#503)
- app->root refactor for all instances of prefixes (store, reducer, viewStore, files and folders)
2022-12-07 13:32:06 +01:00
Lukas Korba 81f5549f54
[#184] ProgressView is no longer .easeInOut animated (#502)
- the API without value apparently works differently or even has a bug inside, Apple deprecated it and animation:value: is supposed to be used instead
2022-12-06 09:05:01 +01:00
Lukas Korba 8e3544b732
[#499] Refactor Route to Destination (#500)
- Route -> Destination refactor done
- test working
- cleanup of URLRouting usage
2022-12-01 15:31:30 +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 c8b97a8266
[#490] Consolidation of TCA dependencies - 2nd batch (#491)
- all dependencies are now consolidated
- cleanup of dependencies
- getting rid of all .live instances in the tests
- all dependencies use mocked or noOp instances
2022-11-17 12:25:55 +01:00
Lukas Korba 7839d56977
[#477] Consolidation of TCA dependencies (#489)
- DiskSpaceChecker dependency consolidated
- DatabaseFiles dependency consolidated
- DeeplinkHandler dependency consolidated
- AudioServices dependency consolidated
- CaptureDevuice dependency consolidated
- DerivationTool dependency consolidated
- AppVersionHandler dependency consolidated
- LocalAuthentication dependency consolidated
- all unit and snapshot tests work again
2022-11-14 19:36:51 +01:00
Lukas Korba 35407b804f
[#469] Migrate AppStore to ReducerProtocol (#488)
- AppStore migrated to ReducerProtocol
- unit and snapshot tests fixed
2022-11-10 18:26:03 +01:00
Lukas Korba 50f5faea06
[#470] Migrate Home to ReducerProtocol (#487)
- Home migrated to ReducerProtocol
- unit and snapshot tests fixed
2022-11-09 10:30:40 +01:00
Lukas Korba 1e6397b950
[#463] Migrate SendFlow to ReducerProtocol (#486)
- SendFlow migrated to ReducerProtocol
- unit and snapshot tests fixed
2022-11-08 20:02:55 +01:00
Lukas Korba d758cf4928
[#461] Migrate OnboardingFlow to ReducerProtocol (#485)
- OnboardingFlow migrated to ReducerProtocol
- unit and snapshot tests fixed
2022-11-08 09:36:42 +01:00
Lukas Korba 7f6c104d28
[#462] Migrate Profile to ReducerProtocol (#484)
- Profile migrated to ReducerProtocol
- unit and snapshot tests fixed
- sandbox feature still works with all the TCA pullback/scope navigation
2022-11-08 09:36:23 +01:00
Lukas Korba 046681efff
[#467] Migrate TransactionAmountTextField to ReducerProtocol (#483)
- TransactionAmountTextField migrated to ReducerProtocol
- unit tests fixed
2022-11-08 09:36:03 +01:00