Commit Graph

42 Commits

Author SHA1 Message Date
Honza Rychnovsky 97c0628798
[#789] Benchmarking Demo-app
* [#789] Add Benchmark module to Demo-app

* Code cleanup

* Opti-in experimental coroutines api in tests

* Add Testing documentation

* Documentation update + ktlint

* Check screen on and keyguard unlocked in each test

* Introduce UiAutomator extensions

* Enhance BenchmarkTrace events definition

* Remove unnecessary mutex

* Change blocks range

* Increase sync blockchain timeout

- To always fit in the Balances screen timeout for the selected blocks range

* Remove unnecessary fun suspend modifiers

* Macrobenchmark lib bump to 1.2.0-alpha8

* Remove duplicate label attr in app/manifest

* File and link benchmark on CI task

* Add proguard keep rules

* Documentation update
2022-12-13 14:25:09 +01:00
Carter Jernigan b4ffff9a78
[#791] Flank 22.10.0
* [#791] Flank 22.10.0

This should resolve issues with `flankAuth` task

* Update documentation

Co-authored-by: Honza <rychnovsky.honza@gmail.com>
2022-11-24 14:54:41 +01:00
Jack Grigg 872c0fda6f rust: Set MSRV to 1.59
One of our dependencies uses a feature added in 1.59.0.
2022-11-07 15:19:19 -05:00
Carter Jernigan 4c2807aefd
[#705] Roomoval
The Android and Rust code have previously managed joint custody of the derived data database.  With more complex migrations now required, we need to make the Android side read-only.  To achieve that, the Android side will remove Room and instead rely on more primitive SQLite APIs for read-only access.

As part of implementing this change, database management throughout the SDK is being refactored.

There will be multiple representations of the data:
 - Database representation (and some Entity representations in the places that Room hasn’t been removed yet).  These representations are not as type safe and don’t match Kotlin best practices in all cases.
 - Once #615 is implemented there will also be network representations
 - Type safe models, which often appear in the public API  The Database and Network representations will be converted to and from the type safe model representation.
2022-10-19 16:52:54 -04:00
Alex c8c41e6dcd
added python installation instruction to Setup.md (#715)
* added python installation instruction to Setup.md

* code review fixes

* code review fixes

* Fix markdown syntax

* Reset numbering

Co-authored-by: Carter Jernigan <git@carterjernigan.com>
2022-10-07 10:18:35 +02:00
Carter Jernigan 0873ae73e1 [#711] Android Gradle Plugin 7.3 2022-09-22 16:06:00 -04:00
Honza Rychnovsky ee23eaebae
[#716] Update checkpoints
- Updated Mainnet and Testnet checkpoints
- Updated related documentation too
2022-09-22 14:39:05 +02:00
Kris Nuttycombe 22cf8220b7
Merge pull request #621 from zcash/improve_setup_instructions
Clarify instructions for Android NDK installation.
2022-09-06 17:12:55 -06:00
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
Carter Jernigan 10d0652a8d
[#252] Replace third party publishing Gradle plugin
The third party plugin that we’ve used for publishing has introduced multiple breaking changes recently.

By migrating to more standard Gradle publishing APIs, the deployment process is more explicit for those unfamiliar with Gradle.  It also will simplify some upcoming changes to modularize this SDK project.
2022-08-16 08:53:23 -04:00
Honza Rychnovsky c721a5e24e
[#343] Store database files in no_backup folder
Co-authored-by: Carter Jernigan <git@carterjernigan.com>
2022-08-12 11:05:00 -04:00
Carter Jernigan f4940348fe
Improve readme documentation (#667)
Co-authored-by: Honza <rychnovsky.honza@gmail.com>
2022-08-12 06:57:27 -04:00
Carter Jernigan 2362c60dd6 [#597] Run unit tests on CI 2022-08-02 07:28:55 -04:00
Carter Jernigan 96eab807cb [#612] Make dependency locking configurable
This implementation is somewhat special from our other Gradle properties, because it does not get declared in the root gradle.properties.  The reason is that included builds are supposed to have their own properties e.g.

root_project/gradle.properties
root_project/build-conventions/gradle.properties

Instead of declaring the property in different places which might lead to confusion, this leaves the property undeclared, with the Gradle scripts assuming a default value of true.  The only time this is expected to be overridden is due to a workaround for an Android Studio bug.
2022-07-25 15:36:39 -04:00
Kris Nuttycombe a03a89707c
Clarify instructions for Android NDK installation. 2022-07-25 10:11:09 -06:00
Carter Jernigan a5a07becd8
[#548] Configure testing with emulator.wtf 2022-06-21 07:57:04 -04:00
Carter Jernigan e1686904e0 [#546] Rename default branch 2022-06-08 09:00:29 -04:00
Carter Jernigan 18d82ed90c [#523] Prepare for next release 2022-06-03 07:02:41 -04:00
Carter Jernigan f1046bae53 [#434] Add workflow to unwedge Maven Central deployments 2022-03-16 13:50:43 -04:00
Carter Jernigan 099986de39 [#373] Add PR and issue templates
This updates our templates to be more consistent with the Secant app repository.

Note that the checklist item for code coverage was removed for now, until we improve the test infrastructure for the SDK.

This also addresses a security reminder, by explicitly stating that one shouldn't run the demo app from a pull request until after reviewing the code changes.
2022-02-03 11:07:43 -05:00
Carter Jernigan 3c575a497c Configure build with GitHub Actions
Also configure testing with Firebase Test Lab
2022-01-26 15:19:28 -05:00
Carter Jernigan 28853b5a84 [#293] Refactor non-public APIs to internal package 2021-10-04 08:45:53 -04:00
Carter Jernigan b4213f3e48 [#290] Delete `targets` directory during clean 2021-09-30 07:45:36 -04:00
Carter Jernigan 4923b5fd12 [#291] Fix rust build tasks
This resolves a regression introduced in the implementation of issue #251.
2021-09-30 07:27:07 -04:00
Carter Jernigan abac552ab5 [#284] Refactor darkside tests to separate module
Simplifies running the SDK test suite versus darkside tests (which require special environment setup).

Note that the darkside tests are still broken.  This is not a regression, as they were broken before.  This is an intermediate step towards fixing those tests.
2021-09-27 14:55:08 -04:00
Ben Wilson ad4993f776 Update ci.md to use labels 2020-06-19 10:43:16 -04:00
Kevin Gorham 79184c3cdd
Merge pull request #133 from zcash/feature/api-updates
Feature/api updates
2020-06-10 06:00:34 -04:00
Kevin Gorham aa8eb9ccf5
Refresh github doc files. 2020-06-10 03:27:52 -04:00
Kevin Gorham aa569c99dd
Major refactor: corrected package name.
Now the SDK matches everything else that we have published to bintray and jcenter.
2020-06-10 03:08:19 -04:00
Kevin Gorham 4e95c46acb
Add missing newlines. 2020-06-09 23:28:21 -04:00
Taylor Hornby 761fd94be0 Replace the threat model with the one on readthedocs 2020-05-27 16:49:20 -06:00
Kevin Gorham 812e51b0f8
Added the android side of the CI contract
Updated to include details from the development side; in particular, the build targets that we will commit to in order to ease the CI workload.
Updated target names for CI. To keep things easy to understand and avoid conflicts with existing target, it is simpler to prefix all targets used during CI.
2020-05-13 15:38:51 -04:00
Ben Wilson 93a8651ccb Initial ci.md 2020-04-22 12:08:58 -04:00
Dimitris Apostolou 44cba56d30
Fix typos and cleanup 2020-03-26 13:00:04 +02:00
Kevin Gorham 9b97721501
Updated indexes. 2020-01-15 08:15:57 -05:00
Kevin Gorham 7235f8cfaf
Updated readmes. 2020-01-15 08:13:46 -05:00
Kevin Gorham 6976427fba
Removed mock synchronizer docs 2020-01-15 08:10:09 -05:00
Kevin Gorham 028b541823
Regenerate key docs. 2020-01-15 08:07:00 -05:00
Taylor Hornby ba1a8d0c4c Add threat model 2019-11-05 13:47:20 -07:00
Kevin Gorham 1f18042d52
Implement versioning and other cleanup.
- Correct typo and compiler warning in Rust.
'trait objects without an explicity dyn' are deprecated and this is a warning as of Rust 1.37
- update dependencies
- update documentation

docs
2019-09-12 01:31:23 -04:00
Kevin Gorham afa142e1c9 Update docs 2019-03-30 12:22:20 -04:00
Kevin Gorham dec4f0f62e Add docs folder with Synchronizer documentation 2019-03-29 02:31:25 -04:00