fix workflows + ios fix

This commit is contained in:
Matthew Fosse 2024-09-05 14:48:11 -07:00
parent 14891ec4f5
commit 5dbc414e33
3 changed files with 10 additions and 7 deletions

View file

@ -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 $_

View file

@ -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 $_

View file

@ -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)