Add support for zcash testnet

This commit is contained in:
Hanh 2021-08-25 19:41:47 +08:00
parent d417aaf051
commit 8cde643570
6 changed files with 11 additions and 14 deletions

View File

@ -122,9 +122,7 @@ args = [
"${ANDROID_PLATFORM_VERSION}",
"--target",
"${ANDROID_BUILD_TARGET}",
"build",
"--features",
"${FEATURES}",
"build"
]
[tasks.android-build-release]
@ -138,9 +136,7 @@ args = [
"--target",
"${ANDROID_BUILD_TARGET}",
"build",
"--release",
"--features",
"${FEATURES}",
"--release"
]
[tasks.android-aarch64]

BIN
assets/zcashtest.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -1,4 +1,2 @@
export FEATURE=$1
cargo make --env COIN=$FEATURE --profile release
cargo make --profile release
flutter build apk --split-per-abi

View File

@ -6,15 +6,21 @@ ycash)
export APP_NAME=ywallet
export FEATURE=ycash
;;
zcashtest)
export APP_TITLE=ZWalletTest
export APP_NAME=zwallettest
export FEATURE=zcashtest
;;
zcash)
export APP_TITLE=ZWallet
export APP_NAME=zwallet
export FEATURE=
export FEATURE=zcash
;;
esac
cp assets/$COIN.png assets/icon.png
cp lib/coin/$COIN.dart lib/coin/coindef.dart
cp native/zcash-sync/src/coindef/$COIN.rs native/zcash-sync/src/coin.rs
mo pubspec.yaml.tpl > pubspec.yaml

View File

@ -26,6 +26,3 @@ branch = "warp-sync"
[build-dependencies]
cbindgen = "0.19.0"
[features]
ycash = ["sync/ycash"]

@ -1 +1 @@
Subproject commit 025dd8c9a94eb8951dbd3647b17d55f155635d76
Subproject commit d78622d6bf6c92f7ba22f828ee558f04ddbb7d24