Commit Graph

956 Commits

Author SHA1 Message Date
Carter Jernigan d25d67c470 [#723] Fail fast when native library fails to load 2022-12-03 09:00:40 -05:00
dependabot[bot] bc7b821a92
Bump actions/setup-java from 3.6.0 to 3.7.0 in /.github/actions/setup (#801)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](de1bb2b0c5...19eeec562b)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-02 13:54:15 +01:00
Jack Grigg f4755cfbd7 Create Android trace events (if available) from tracing spans 2022-11-29 19:20:24 +00:00
Jack Grigg 4c2bf6da69 Use `tracing` crate for logs
This exposes any more structured `tracing` events that are logged within
the Rust crates, while continuing to collect `log` records.
2022-11-29 19:20:24 +00: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
Carter Jernigan d118632919
[#723] Fix crash with minified release builds 2022-11-24 11:15:03 +01:00
Carter Jernigan b1f38ab912
[#786] Simplify signing during development 2022-11-22 09:34:09 +01:00
Carter Jernigan 103d2748c6 [#780] Fix failure to submit transactions 2022-11-17 08:35:37 -05:00
Carter Jernigan 3eddd56691 [#778] Fix PendingTransactionEntity crash 2022-11-17 08:35:37 -05:00
Jack Grigg 8472d84cce rust: Define private constant for enabling ZIP 317 fees 2022-11-16 20:37:34 +00:00
Jack Grigg 727918680e rust: Fix usage of `WalletRead::get_target_and_anchor_heights`
The previous code was using the "target" height instead of the "anchor"
height, which meant the provided value of `min_confirmations` was ignored.
2022-11-16 20:37:34 +00:00
Jack Grigg e5df95c9e5 rust: `cargo update` 2022-11-16 20:37:34 +00:00
Jack Grigg c4b5c70b7d Migrate to published Zcash Rust crates with ZIP 317 support
ZIP 317 fee calculations are hard-coded off, continuing to use the
fixed fee logic for now, but enabling them in a future SDK update is
now possible.
2022-11-16 20:37:34 +00:00
Carter Jernigan a37b7c9812
[#763] Add shielding to demo app 2022-11-16 07:38:45 -05:00
Honza Rychnovsky 6e8f5943cd
[#781] Regular checkpoints files update 2022-11-16 12:58:02 +01:00
dependabot[bot] 41a44dd448
Bump google-github-actions/auth from 0.8.3 to 1.0.0 (#774)
Bumps [google-github-actions/auth](https://github.com/google-github-actions/auth) from 0.8.3 to 1.0.0.
- [Release notes](https://github.com/google-github-actions/auth/releases)
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md)
- [Commits](c4799db911...ef5d53e30b)

---
updated-dependencies:
- dependency-name: google-github-actions/auth
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-10 10:30:17 +01:00
Carter Jernigan 126ac23824
Merge SDK 1.10.0 feature branch into main 2022-11-08 16:19:26 -05:00
Carter Jernigan b288b8cad9 Rename Synchronizer.getAddress APIs 2022-11-08 14:25:56 -05:00
Carter Jernigan ee99b36798
Merge branch 'main' into feature/zip-316-and-latest-upstream 2022-11-08 10:13:43 -05:00
Carter Jernigan d1e9b28c91 [#771] Update documentation for SDK 1.10.0 2022-11-08 09:32:07 -05:00
Jack Grigg 54f8cf2069 rust: Bump revision of librustzcash crates for bugfix
Fixes a bug where Sapling change notes were being spent with the wrong key.
2022-11-07 15:19:19 -05: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
Jack Grigg 5ad0efcbea Remove `DerivationTool` APIs for deriving transparent keys and addresses
Users should use the UnifiedAddress etc. APIs instead.
2022-11-07 15:19:19 -05:00
Jack Grigg 5e82f8cf07 rust: jni 0.20 2022-11-07 15:19:19 -05:00
Jack Grigg 2566b9692b rust: android_logger 0.11 2022-11-07 15:19:19 -05:00
Jack Grigg 54df39652c rust: Migrate to latest revision of librustzcash crates 2022-11-07 15:19:19 -05:00
Jack Grigg e1ad71a392 rust: cargo update 2022-11-07 15:19:19 -05:00
Jack Grigg 9ff3621980 rust: Remove duplicate FFI method
We already use -1 to indicate no block scanning limit on the Kotlin side of
the FFI; we can do the same across the FFI to the Rust side.
2022-11-07 15:19:19 -05:00
Carter Jernigan 6a6cbf4048 [#760] Fix database queries
This resolves some query regressions that were introduced as part of [#705]
2022-11-04 10:01:09 -04:00
Carter Jernigan 5fb5773a7d [#756] Improve funding testnet demo 2022-11-04 10:01:09 -04:00
Carter Jernigan b0ec6229f6
Bump version to 1.9.0-beta05 2022-11-04 07:13:30 -04:00
Carter Jernigan f976b79a46
[#758] Add default alias for erase method 2022-11-03 12:40:44 -04:00
Carter Jernigan 61f1c1a9cb
[#753] Add API for querying recipients 2022-10-31 15:27:34 -04:00
Carter Jernigan 9af6986e43
[#748] Internal recipients for pending transactions 2022-10-26 21:37:40 -04:00
dependabot[bot] fd1f932d5b
Bump gradle/wrapper-validation-action from 1.0.4 to 1.0.5 (#749)
Bumps [gradle/wrapper-validation-action](https://github.com/gradle/wrapper-validation-action) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/gradle/wrapper-validation-action/releases)
- [Commits](e6e38bacfd...55e685c48d)

---
updated-dependencies:
- dependency-name: gradle/wrapper-validation-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-25 09:47:06 +02:00
Carter Jernigan f169b112ef [#743] Add API for reading memos 2022-10-24 11:54:57 -04:00
dependabot[bot] 8e92ea2d66
Bump actions/upload-artifact from 3.1.0 to 3.1.1 (#746)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](3cea537223...83fd05a356)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-24 08:57:24 +02:00
dependabot[bot] c6de350e91
Bump actions/setup-java from 3.5.1 to 3.6.0 in /.github/actions/setup (#740)
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3.5.1 to 3.6.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](a18c333f3f...de1bb2b0c5)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-21 13:47:12 +02:00
Honza Rychnovsky 92c9c25db4
[#741] Update checkpoints 2022-10-21 12:17:18 +02:00
dependabot[bot] c02e539690
Bump actions/download-artifact from 3.0.0 to 3.0.1 (#744)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](fb598a63ae...9782bd6a98)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-21 08:37:00 +02: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 9fe7fc9935
[#726] Kotlin 1.7.20 (#731) 2022-10-19 12:18:01 +02:00
Carter Jernigan e4ab84e016
Merge changes from main 2022-10-18 07:54:52 -04:00
Carter Jernigan f2effc8dd2 Merge branch 'main' of github.com:zcash/zcash-android-wallet-sdk into merge-main
# Conflicts:
#	CHANGELOG.md
#	sdk-lib/src/androidTest/java/cash/z/ecc/android/sdk/ext/TestExtensions.kt
#	sdk-lib/src/androidTest/java/cash/z/ecc/android/sdk/integration/SanityTest.kt
#	sdk-lib/src/androidTest/java/cash/z/ecc/android/sdk/integration/SmokeTest.kt
#	sdk-lib/src/androidTest/java/cash/z/ecc/android/sdk/util/AddressGeneratorUtil.kt
#	sdk-lib/src/androidTest/java/cash/z/ecc/android/sdk/util/BalancePrinterUtil.kt
#	sdk-lib/src/main/java/cash/z/ecc/android/sdk/Initializer.kt
#	sdk-lib/src/main/java/cash/z/ecc/android/sdk/SdkSynchronizer.kt
#	sdk-lib/src/main/java/cash/z/ecc/android/sdk/Synchronizer.kt
#	sdk-lib/src/main/java/cash/z/ecc/android/sdk/internal/transaction/WalletTransactionEncoder.kt
#	sdk-lib/src/main/java/cash/z/ecc/android/sdk/jni/RustBackendWelding.kt
2022-10-18 07:28:12 -04:00
dependabot[bot] 2637bca5a3 Bump google-github-actions/auth from 0.8.2 to 0.8.3
Bumps [google-github-actions/auth](https://github.com/google-github-actions/auth) from 0.8.2 to 0.8.3.
- [Release notes](https://github.com/google-github-actions/auth/releases)
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md)
- [Commits](2671692c37...c4799db911)

---
updated-dependencies:
- dependency-name: google-github-actions/auth
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-17 08:25:38 -04:00
str4d b7bb468907
Merge pull request #734 from zcash/more-rust-updates
More Rust updates
2022-10-15 00:57:01 +01:00
dependabot[bot] 4beac3ae0a Bump google-github-actions/auth from 0.8.1 to 0.8.2
Bumps [google-github-actions/auth](https://github.com/google-github-actions/auth) from 0.8.1 to 0.8.2.
- [Release notes](https://github.com/google-github-actions/auth/releases)
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md)
- [Commits](dac4e13deb...2671692c37)

---
updated-dependencies:
- dependency-name: google-github-actions/auth
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-14 17:27:02 -04:00
dependabot[bot] a6c4e3a107 Bump actions/cache from 3.0.10 to 3.0.11 in /.github/actions/setup
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.10 to 3.0.11.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](56461b9eb0...9b0c1fce7a)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-14 17:26:28 -04:00
Jack Grigg 4a37f3976f rust: Migrate to latest upstream Zcash crates 2022-10-15 10:08:04 +13:00
Jack Grigg 4d7d0bf64b rust: `jni 0.19` 2022-10-14 20:37:56 +13:00