Commit Graph

603 Commits

Author SHA1 Message Date
Carter Jernigan 39f5202f2c Move packages.md
This is a followup fix for changes made with issue #255
2021-09-11 07:27:00 -04:00
Francisco Gindre dd97625581
Merge pull request #267 from zcash/262-target-sdk-31
[#262] Target Android SDK 31
2021-09-05 17:44:51 -03:00
Carter Jernigan b80146e3ec [#262] Target Android SDK 31
Also resolve setting the main activity to exported, which is a new requirement for the new API level
2021-09-01 15:00:25 -04:00
Francisco Gindre 0b6a82b293
Merge pull request #263 from zcash/255-refactor-gradle-modules
CI Integrations
2021-08-31 20:01:37 -03:00
Carter Jernigan 2471389906 [#261] Add property for NDK version 2021-08-31 15:41:39 -04:00
Carter Jernigan f8ed6023c7 Configure lint baseline 2021-08-31 14:57:23 -04:00
Carter Jernigan 8b67ee1e57 Get tests running to completion
Some tests have been disabled to enable tests to actually complete; there are a number of test failures which need to be addressed.

These tests were failing prior to the refactoring.

The disabled tests can be easily found by searching for the Ignore annotation. They also appear in the Junit results window in Android Studio.
2021-08-31 14:57:23 -04:00
Carter Jernigan 93af440726 Add Android Studio run configurations 2021-08-31 14:57:23 -04:00
Carter Jernigan e27a76a4f0 [#258] Remove deprecated `kotlin-android-extensions` plugin 2021-08-31 14:53:25 -04:00
Carter Jernigan 7b28c7ab38 [#255] Fix demo-app paths in readme 2021-08-31 14:53:25 -04:00
Carter Jernigan 2268f814f2 [#255] Refactor Gradle Modules
Move SDK from the root gradle project to its own Gradle module
Move the demo app to be a peer of the SDK

This will simplify integration with CI on Bitrise.
2021-08-31 14:53:25 -04:00
Carter Jernigan 403ac01024 Remove unused CI configuration
Removing this ensures that new contributors aren't confused by a CI configuration that is not used.  A new configuration will be set up on Bitrise

If we ever need this again, it can be restored from the Git history.
2021-08-30 07:37:20 -04:00
Carter Jernigan 92fce7eb64 Delete generated files 2021-08-30 07:37:20 -04:00
Francisco Gindre 5d288e300b
Merge pull request #250 from zcash/fixup/fix-testnet-variant
Fix testnet checkpoint.
2021-08-26 14:32:09 -03:00
nighthawk24 e3a8d189f5 Fix testnet checkpoint.
This change fixes the test-net variant in the client app to build. The checkpoint details can be verified at 38eb76fece/ZcashLightClientKit/Constants/WalletBirthday%2Btestnet.swift
2021-08-26 01:53:03 -04:00
Francisco Gindre 3141af843a
Merge pull request #249 from ccjernigan/setup-fixes
Setup fixes
2021-08-25 18:12:05 -03:00
Francisco Gindre e0b13fcab3
Merge pull request #247 from ccjernigan/correct-license
Correct LICENSE file
2021-08-25 15:21:14 -03:00
Carter Jernigan 8848789b75 Minor updates to the readme
Added instructions for installing Rust with Homebrew, which simplifies setup for many macOS developers.

Add x86_64 target, as the SDK can fail to build out of the box without this option.

Fix instructions for compiling the SDK versus compiling the sample application
2021-08-25 10:07:20 -04:00
Carter Jernigan ec63b6775a Configure automatic Android SDK downloads
The Android Gradle Plugin can automatically install Android SDKs, which can be helpful when new developers want to try checking out and running the project.
2021-08-25 10:07:20 -04:00
Carter Jernigan cfb6e154f2 Reduce dependencies on Bintray/jcenter
Bintray/JCenter have been deprecated, so remove some references have been removed.
2021-08-25 10:07:20 -04:00
Carter Jernigan 73ea4c4db4 Android Gradle Plugin 7.0.1 2021-08-25 10:07:20 -04:00
Carter Jernigan 5b294b9a36 Update Gradle
The SDK was using Gradle 6.8 and has been updated to Gradle 6.9.  Gradle 7.0 appears to be incompatible with the Rust plugin is being used.  Although the application was using Gradle 6.8 previously, the wrapper files hadn't been updated since Gradle 4.6. This commit also corrects that issue.

The sample application is upgraded to Gradle 7.2.
2021-08-25 09:36:25 -04:00
Carter Jernigan a187c6dbea Correct LICENSE file
There was an inconsisteny between the license in CONTRIBUTING and the LICENSE file.  The correct license should be MIT.
2021-08-25 06:48:13 -04:00
Kevin Gorham 296782286b
Merge pull request #236 from zcash/task/add-publishing-info
Add info about publishing.
2021-08-20 00:47:24 -04:00
Kevin Gorham d7de409726
Add info about publishing. 2021-08-20 00:44:57 -04:00
Kevin Gorham 6d5cf6eefb
Merge pull request #234 from zcash/fix/birthday-calc
Fix: Corrected logic when calculating birthdates
2021-08-10 01:40:13 -04:00
Kevin Gorham e145f4ee01
Fix: Corrected logic when calculating birthdates for wallets with zero received notes. 2021-08-10 01:36:25 -04:00
Kevin Gorham 1d12fce4cf
Updated changelog. 2021-07-29 20:50:59 -04:00
Kevin Gorham fdd07242f3
Merge pull request #233 from zcash/release/1.3.0-beta17
Release/1.3.0 beta17
2021-07-29 19:49:26 -04:00
Kevin Gorham 32f351901a
Update build number. 2021-07-29 19:48:31 -04:00
Kevin Gorham 833c11b0c1
New: Updated checkpoints. 2021-07-29 13:33:21 -04:00
Kevin Gorham 25982da91d
New: Improve comments. 2021-07-29 13:24:13 -04:00
Kevin Gorham 405a047717
New: Allow developers to enable Rust logs.
Rather than constantly uncommenting this line locally and rebuilding the SDK, allow a wallet to just turn logging on since it still takes a lot of hoops to even get a log to show up (a dev must add the log dependency to librustzcash, clone all the repos and add logs).
2021-07-29 13:23:45 -04:00
Kevin Gorham 92c951769d
New: Advertise that we will accept GZIP.
Then later work with lightwalletd to see if we can enable it.
2021-07-29 13:21:35 -04:00
Kevin Gorham 8749746b63
New: Shorten the UTXO retry time.
This is temporary PoC logic to not constantly look for UTXOs on a lightwalletd instance that does not seem to support t-addresses. There are better ways to handle this but for now we just want to see if the wallet will be a good citizen to servers without UTXO support.
2021-07-29 13:20:55 -04:00
Kevin Gorham 96da0a9bea
New: Squelch a few noisy logs. 2021-07-29 13:18:55 -04:00
Kevin Gorham ed501304a3
Fix: Autoshielding OBO error.
The ANCHOR_OFFSET is already accounted for in the underlying rust code so this simple change prevents adding additional confirmation blocks. In the next iteration we may want to adjust the logic in librustzcash to not accept a confirmation parameter for the shielding function or at least improve the way it works:
https://github.com/nuttycom/librustzcash/blob/autoshield-poc-daa/zcash_client_backend/src/data_api/wallet.rs#L353
2021-07-29 13:16:57 -04:00
Kevin Gorham 273f391c5f
Update CHANGELOG. 2021-06-30 02:39:46 -04:00
Kevin Gorham 4586e07cac
Merge pull request #232 from zcash/release/1.3.0-beta16
Release/1.3.0 beta16
2021-06-30 02:35:33 -04:00
Kevin Gorham 69ad69931a
Update the version to 1.3.0-beta16. 2021-06-30 02:33:06 -04:00
Kevin Gorham c913b4385f
New: Return an empty list when wallets try to subscribe to transactions.
This allows a wallet to subscribe to transactions right away and then eventually get notified when new transactions are found. Although that is not the preferred way to use the synchronizer, we can support it without a lot of effort or compromise.
2021-06-30 02:32:20 -04:00
Kevin Gorham d4f0b0474c
New: Expose the stateflows for balances.
This conveniently makes the 'value' property accessible without a cast.
2021-06-30 02:30:24 -04:00
Kevin Gorham e7ec713d5f
New: Improve the "unprepared" error message.
Previously, it made it seem like the developer needed to call "prepare." And that was the case but now it's more common to trigger this error by accessing transactions before the synchronizer has been started.
2021-06-30 02:29:32 -04:00
Kevin Gorham 1ac14c07c5
New: Convenience functions for WalletBalances.
Make it possible to add balances and get the pending balance, which are both common use cases.
2021-06-30 02:28:00 -04:00
Kevin Gorham ac03fd2358
Fix: Rely on List instead of PagedList for paged repository results. 2021-06-30 02:27:16 -04:00
Kevin Gorham 136b4b1bc2
Fix: Gracefully handle failures while fetching UTXOs
Also added temporary code to prevent a wallet from constantly checking for UTXOs on a server that simply does not have that feature enabled.
2021-06-30 02:25:40 -04:00
Kevin Gorham 6e3aacb08c
New: Clean up logs.
Added a priority to the twig module so that it is easy to exclude chatty logs, which is helpful for third party builds. The default logs are now a lot cleaner and more concise.
2021-06-30 02:24:24 -04:00
Kevin Gorham 3785e4dfd9
Summarize breaking changes in 1.3 2021-06-29 20:41:08 -04:00
Kevin Gorham 12ce30e305
Cleanup migration guide. 2021-06-29 01:53:37 -04:00
Kevin Gorham cbbad21f7b
Added a migration guide for troubleshooting v1.2.* issues. 2021-06-29 01:50:46 -04:00