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}", "${ANDROID_PLATFORM_VERSION}",
"--target", "--target",
"${ANDROID_BUILD_TARGET}", "${ANDROID_BUILD_TARGET}",
"build", "build"
"--features",
"${FEATURES}",
] ]
[tasks.android-build-release] [tasks.android-build-release]
@ -138,9 +136,7 @@ args = [
"--target", "--target",
"${ANDROID_BUILD_TARGET}", "${ANDROID_BUILD_TARGET}",
"build", "build",
"--release", "--release"
"--features",
"${FEATURES}",
] ]
[tasks.android-aarch64] [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 --profile release
cargo make --env COIN=$FEATURE --profile release
flutter build apk --split-per-abi flutter build apk --split-per-abi

View File

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

View File

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

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