zcash-android-wallet-sdk/sdk-lib/src
Honza Rychnovsky 35e38ddb19
[#666] Download sapling files atomically (#707)
- Enhanced implementation of SaplingParamTool component. It got sapling files move from legacy folder to the preferred one functionality. It downloads the sapling files atomically now (through the temporary file names). It contains all related constants now. It works with SaplingParamToolProperties, which allows us to easily test the SaplingParamTool functionalities. It also now checks file hashes. Removed unnecessary clear function from the component. Changed valid function.
- Moved related constants from ZcashSdk class to SaplingParamTool class
- Changed Initializer, WalletTransactionEncoder and RustBackend classes to work with File instead of path String
- Minor changes in comments in other classes
- Added getSha1Hash() extension function to the FileExt class

* Related tests

- Two new test fixtures to simplify our tests
- Test for getSha1Hash() extension function
- Minor changes in existing tests
- Created new SaplingParamToolBasicTest, which covers non-integration functionality of SaplingParamTool
- Moved integration tests of the SaplingParamTool to the new SaplingParamToolIntegrationTest and added some new

* Related manual tests

- Created Download sapling files manual test
- Created Move sapling files to no_backup manual test
- Update existing Move database files to no_bakcup manual test


Co-authored-by: Carter Jernigan <git@carterjernigan.com>
2022-09-06 06:44:33 -04:00
..
androidTest [#666] Download sapling files atomically (#707) 2022-09-06 06:44:33 -04:00
debug/java/cash/z/ecc/android/sdk/annotation [#255] Refactor Gradle Modules 2021-08-31 14:53:25 -04:00
main [#666] Download sapling files atomically (#707) 2022-09-06 06:44:33 -04:00
release/java/cash/z/ecc/android/sdk/annotation [#366] Fix Detekt warnings 2022-08-23 15:49:00 +02:00
test [#288] Replace Deprecated Usage of `ConflatedBroadcastChannel` 2022-08-27 08:25:54 -04:00