Commit Graph

72 Commits

Author SHA1 Message Date
Kevin Gorham 91a64561b7
New: Added test suite support
This required an update in mockito which was indirectly impacted by not having mavenCentral() as a repository as mentioned here https://github.com/mockito/mockito/issues/2007#issuecomment-829388655
2021-04-29 15:57:13 -04:00
Kevin Gorham 749a6ab937
Explain publishing fix. 2021-04-29 03:35:55 -04:00
Kevin Gorham 26a84efdd6
Fix: explicitly set kotlin module name.
Closes https://github.com/zcash/zcash-android-wallet-sdk/issues/222
2021-04-26 17:36:15 -04:00
Kevin Gorham 697721023c
Fix: Versioning error around annotations.
The project was including a bad version of NotNull and this resulted in errors that were very hard to troubleshoot because the failure happened during annotation processing so Dagger could not even generate the code that the rest of the app relied upon. It was a mess. Fixed by removing the useless NotNulls and being a little more conservative on dependencies.
2021-04-23 16:17:32 -04:00
Kevin Gorham bfde1b3c4c
Fix: Make versioning consistent, particularly for the Kotlin compiler. 2021-04-23 15:00:45 -04:00
Kevin Gorham 05b8d0ddc4
New: migrate to 'refreshVersions' for dependency management.
Squash
2021-04-22 18:54:19 -04:00
Kevin Gorham 22425d756e
Update project dependencies. 2021-04-09 22:30:24 -04:00
Kevin Gorham 160a95738f
New: Enable publishing single artifact to Maven Central. 2021-04-09 22:30:24 -04:00
Kevin Gorham dffb6f257f
Add new tests and cleanup old ones.
squash test cleanup


squash tests
2021-04-09 22:30:24 -04:00
Kevin Gorham 9dd9eef9ee
New: Consolidate product flavors.
Begin preparing for one build of the SDK, now that it is possible in librustzcash thanks to the data access api changes.
2021-04-09 19:58:29 -04:00
Kevin Gorham 6124407295
Update dependencies. 2021-04-09 19:50:59 -04:00
Kevin Gorham 71ac92e77a
Update dependencies. 2021-02-18 16:07:57 -05:00
Adí 794a9f99b8
Add ktlint (#207)
* Add ktlint

Fix formatting per ktlint rules.
Upgrade dependencies & gradle.

* Move ktlint to apply section

* Keep unused-import check

Remove afterEvaluate check.

* Remove respository setup for ktlint.gradle

Fix format for SaplingParamTool & CompatBlockProcessor
2021-03-10 13:10:03 -05:00
Kevin Gorham 7d82878bbd
Cleanup dependencies. 2021-01-05 18:42:52 -05:00
Kevin Gorham 9bf087bed8
Fix: Address Android 11 crash.
Closes https://github.com/zcash/zcash-android-wallet-sdk/issues/198
Addresses the underlying issue behind https://github.com/horizontalsystems/unstoppable-wallet-android/issues/3013
by making the necessary changes to upgrade to the latest version of gRPC and grpc-okhttp.
2021-01-05 14:42:23 -05:00
Eljo Prifti ce161d5660
Clear most build warnings (#187)
* Clear the warns build

* Supress inline CurrencyFormatter.kt and Twig.kt
Add FlowPreview into bulild.grandle
Minor change

* Add supres inline at the file level

* Add suppress inline at the file level
2020-12-04 09:28:55 -05:00
Kevin Gorham 393cf35e48
Minor dependency update. 2020-11-20 15:56:06 -05:00
Kevin Gorham 7641e9706c
Update versions and changelog. 2020-11-20 14:14:43 -05:00
Kevin Gorham fca75169c4
Update and improve build files. 2020-09-25 09:56:45 -04:00
Kevin Gorham 16a9ee0fc0
Fix: Broken publishing configuration.
Artifact IDs and names are now consistent and contain the word 'Zcash'
2020-09-11 05:16:45 -04:00
Kevin Gorham 77a4a99ac7
Updated dependencies and bumped version to 1.1.0-beta05 2020-09-11 03:35:32 -04:00
Kevin Gorham 01bbd12e73
Update librustzcash. 2020-07-29 00:36:57 -04:00
Kevin Gorham 872000df8e
Added explicit support for x86_64
Previously, we just relied on implicit support given that x86 is compatible with both 32 bit and 64 bit systems but going forward, the Play Store will reject these builds, EVEN FOR INTERAL TESTS. This addresses that but it comes with other considerations. arm64 and x86_64 are only supported on Android for API 21+. We probably should structure our resource folders differently to reflect this nuance. Our supported versions are: API 16+ for 32-bit hardware and API 21+ for 64-bit hardware, unless its 64-bit arm which is backward compatible with our 32-bit arm code. Clear as mud, right? I'll add this verbiage somewhere.
2020-06-11 14:00:06 -04:00
Kevin Gorham 712dac2481
Published to bintray and updated demo apps, accordingly. 2020-06-10 05:59:40 -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
Kevin Gorham 40c2be9ce1
Added ci build tasks and updated dependencies.
Added tasks to adhere to CI contract with DefInfra team per this doc https://github.com/zcash/zcash-android-wallet-sdk/blob/master/docs/ci.md
For now, most of these are just placeholders but we will get them to work in order to simplify CI.
2020-06-09 22:15:53 -04:00
Kevin Gorham bae210ba07
Bump version to 1.0.0-beta05 2020-03-27 16:59:58 -04:00
Kevin Gorham 83ea9ddac7
Bug fixes and improvements.
Change doc format to html, fix migration issues, etc.
2020-03-25 17:56:27 -04:00
Kevin Gorham a8df1b6611
Bump version to beta04 2020-02-27 13:56:59 -05:00
Kevin Gorham 081b355c62
Bumped version. 2020-02-21 18:27:25 -05:00
Kevin Gorham 52bb1d108d
Added DB schemas to the repository for tracking. 2020-02-21 18:16:25 -05:00
Kevin Gorham 2c8923290d
Update dependencies. 2020-02-11 20:31:56 -05:00
Kevin Gorham a0de0b907f
Moved version to Beta. 2020-01-15 08:32:21 -05:00
Kevin Gorham 29717cd871
Refactored initialization.
Addresses some of the concerns in https://github.com/zcash/zcash-android-wallet/issues/39 by removing the side effects from the Intializer. Now instead of trying to help with loading and persisting wallet birthdates, it delegates that utility to another class.
2020-01-15 07:35:04 -05:00
Kevin Gorham 8a365115f1
Add mainnet support.
This involves splitting code to run in the zcashMainnet and zcashTestnet flavors and using the corresponding feature of librustzcash. Mainnet functionality is proven in the integration test in androidTestZcashmainnet.
2020-01-15 07:35:01 -05:00
Kevin Gorham 9cb178d6fb
Refactoring 2019-11-17 23:39:37 -05:00
Kevin Gorham f89d2be250
SDK changes to support new demo app.
- Convert status flags into stream of statuses, instead.
- Improve logging during transaction submission
- Database corrections. Aparently Room has gotten more strict with schema parsing and this required lots of corrections mainly around get nullability correct for DB fields.
- Simplify Synchronizer creation via constructor functions. Created one function for maximum simplicity and another for maximum flexibility.
- Changed logic for Wallet initialization to simplify dependencies and allow for optional access to private keys for wallet apps
- Created TransactionRepository that leverages the paging library for Room
- Provided sample implementation of bridging to a key manager in a way where wallet apps do not have to modify their existing code.
- Made it easier to clear the wallet data that can be repopulated from the blockchain
- Allowed for better cleanup of heavy-weight lightwalletd services by adding a shutdown API call
2019-10-24 01:16:58 -04:00
Kevin Gorham 42f29f534c
Reduce configurability per Security Finding 1.
These changes largely reduce the amount of configuration that can be tweaked in order to prevent fragmentation of the anonymity set of users. If wallet makers change certain properties than it can become easy to detect which network requests are coming from which client. The goal is for clients to be as anonymous as possible.
2019-09-26 12:58:37 -04: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 a83ace6e43 Refactor after Zcon1 2019-08-30 10:07:56 -04:00
Kevin Gorham 8c7103d0ee Cleanup after Zcon1. 2019-08-30 10:07:56 -04:00
Kevin Gorham 78f98c2868 Update dependencies. 2019-08-30 10:07:56 -04:00
Kevin Gorham 1de3ee9ed5 Added more fixes and examples for Zcon1.
Including unit tests that are more like utilities for doing interesting things.
2019-08-30 10:07:56 -04:00
Kevin Gorham f222bde2fa More robust error handling. 2019-08-30 10:07:56 -04:00
Kevin Gorham 56e4dda40f Update dependencies. 2019-08-30 09:59:29 -04:00
Jack Grigg 261ec33f81
Configure mainnet SDK flavours to use mainnet Rust feature flag 2019-07-26 21:55:50 +01:00
Jack Grigg fd1ddaa8e2
Migrate build system to Rust Android Gradle plugin
Using our fork of the upstream plugin that contains changes to more
closely match our previous build system.

Also deletes commented-out custom protobuf tasks that have been replaced.
2019-04-19 00:06:30 +01:00
Kevin Gorham dec4f0f62e Add docs folder with Synchronizer documentation 2019-03-29 02:31:25 -04:00
Kevin Gorham 796fe9602c Update dependencies 2019-03-29 02:03:11 -04:00