mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
fix workflows + ios fix
This commit is contained in:
parent
14891ec4f5
commit
5dbc414e33
3 changed files with 10 additions and 7 deletions
2
.github/workflows/pr_test_build_android.yml
vendored
2
.github/workflows/pr_test_build_android.yml
vendored
|
@ -112,8 +112,8 @@ jobs:
|
|||
# build mwebd:
|
||||
cd /opt/android/cake_wallet
|
||||
git clone https://github.com/ltcmweb/mwebd
|
||||
git reset --hard 7f31c84eeb2e954f2c5f385b39db3b8e3b6389e3
|
||||
cd /opt/android/cake_wallet/mwebd
|
||||
git reset --hard 7f31c84eeb2e954f2c5f385b39db3b8e3b6389e3
|
||||
gomobile bind -target=android -androidapi 21 .
|
||||
mkdir -p /opt/android/cake_wallet/cw_mweb/android/libs/
|
||||
mv ./mwebd.aar $_
|
||||
|
|
2
.github/workflows/pr_test_build_linux.yml
vendored
2
.github/workflows/pr_test_build_linux.yml
vendored
|
@ -107,8 +107,8 @@ jobs:
|
|||
# build mwebd:
|
||||
cd /opt/android/cake_wallet
|
||||
git clone https://github.com/ltcmweb/mwebd
|
||||
git reset --hard 7f31c84eeb2e954f2c5f385b39db3b8e3b6389e3
|
||||
cd /opt/android/cake_wallet/mwebd
|
||||
git reset --hard 7f31c84eeb2e954f2c5f385b39db3b8e3b6389e3
|
||||
gomobile bind -target=android -androidapi 21 .
|
||||
mkdir -p /opt/android/cake_wallet/cw_mweb/android/libs/
|
||||
mv ./mwebd.aar $_
|
||||
|
|
|
@ -30,11 +30,14 @@ public static func register(with registrar: FlutterPluginRegistrar) {
|
|||
result(nil)
|
||||
break
|
||||
case "address":
|
||||
let args = call.arguments as? [String: Any]
|
||||
let scanSecret = args?["scanSecret"] as! Data
|
||||
let spendPub = args?["spendPub"] as! Data
|
||||
let index = args?["index"] as! Int32
|
||||
result(MwebdAddress(scanSecret, spendPub, index))
|
||||
let args = call.arguments as! [String: Any]
|
||||
let scanSecret = args["scanSecret"] as! FlutterStandardTypedData
|
||||
let spendPub = args["spendPub"] as! FlutterStandardTypedData
|
||||
let index = args["index"] as! Int32
|
||||
|
||||
let scanSecretData = scanSecret.data
|
||||
let spendPubData = spendPub.data
|
||||
result(MwebdAddress(scanSecretData, spendPubData, index))
|
||||
break
|
||||
default:
|
||||
result(FlutterMethodNotImplemented)
|
||||
|
|
Loading…
Reference in a new issue