updates [skip ci]

This commit is contained in:
Matthew Fosse 2024-09-05 13:32:06 -07:00
parent c8aa159f69
commit 20fa6a0bbd
5 changed files with 30 additions and 4 deletions

View file

@ -112,7 +112,7 @@ jobs:
# build mwebd:
cd /opt/android/cake_wallet
git clone https://github.com/ltcmweb/mwebd
git reset --hard 49c42597ce5036fe1065200c3c056d0aba5f1a58
git reset --hard 7f31c84eeb2e954f2c5f385b39db3b8e3b6389e3
cd /opt/android/cake_wallet/mwebd
gomobile bind -target=android -androidapi 21 .
mkdir -p /opt/android/cake_wallet/cw_mweb/android/libs/
@ -120,8 +120,6 @@ jobs:
cd ..
rm -rf mwebd
- name: Generate KeyStore
run: |
cd /opt/android/cake_wallet/android/app

View file

@ -89,6 +89,32 @@ jobs:
cd /opt/android/cake_wallet
flutter pub get
- name: Install go and gomobile
run: |
# install go > 1.21:
wget https://go.dev/dl/go1.22.4.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.4.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:~/go/bin
go install golang.org/x/mobile/cmd/gomobile@latest
gomobile init
- name: Build mwebd
run: |
# paths are reset after each step, so we need to set them again:
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:~/go/bin
# build mwebd:
cd /opt/android/cake_wallet
git clone https://github.com/ltcmweb/mwebd
git reset --hard 7f31c84eeb2e954f2c5f385b39db3b8e3b6389e3
cd /opt/android/cake_wallet/mwebd
gomobile bind -target=android -androidapi 21 .
mkdir -p /opt/android/cake_wallet/cw_mweb/android/libs/
mv ./mwebd.aar $_
cd ..
rm -rf mwebd
- name: Generate localization
run: |
cd /opt/android/cake_wallet

View file

@ -42,7 +42,7 @@ class CwMwebPlugin: FlutterPlugin, MethodCallHandler {
val scanSecret: ByteArray = call.argument<ByteArray>("scanSecret") ?: ByteArray(0)
val spendPub: ByteArray = call.argument<ByteArray>("spendPub") ?: ByteArray(0)
val index: Int = call.argument<Int>("index") ?: 0
val res = Mwebd.addressIndex(scanSecret, spendPub, index.toLong())
val res = Mwebd.addressIndex(scanSecret, spendPub, index)
result.success(res)
} else {
result.notImplemented()

View file

@ -8,6 +8,7 @@ gomobile init
# build mwebd:
git clone https://github.com/ltcmweb/mwebd
cd mwebd
git reset --hard 7f31c84eeb2e954f2c5f385b39db3b8e3b6389e3
gomobile bind -target=android -androidapi 21 .
mkdir -p ../../../cw_mweb/android/libs/
mv ./mwebd.aar $_

View file

@ -7,6 +7,7 @@ gomobile init
# build mwebd:
git clone https://github.com/ltcmweb/mwebd
cd mwebd
git reset --hard 7f31c84eeb2e954f2c5f385b39db3b8e3b6389e3
gomobile bind -target=ios .
mv -fn ./Mwebd.xcframework ../../../ios/
# cleanup: