mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-31 06:55:59 +00:00
updates [skip ci]
This commit is contained in:
parent
c8aa159f69
commit
20fa6a0bbd
5 changed files with 30 additions and 4 deletions
4
.github/workflows/pr_test_build_android.yml
vendored
4
.github/workflows/pr_test_build_android.yml
vendored
|
@ -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
|
||||
|
|
26
.github/workflows/pr_test_build_linux.yml
vendored
26
.github/workflows/pr_test_build_linux.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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 $_
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue