diff --git a/cw_bitcoin/lib/litecoin_wallet.dart b/cw_bitcoin/lib/litecoin_wallet.dart index 6a78af0f2..8fe0d2295 100644 --- a/cw_bitcoin/lib/litecoin_wallet.dart +++ b/cw_bitcoin/lib/litecoin_wallet.dart @@ -217,6 +217,7 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store { @override Future init() async { + await transactionHistory.init(); await initMwebUtxosBox(); } diff --git a/scripts/android/build_mwebd.sh b/scripts/android/build_mwebd.sh index 8a5e6813f..d94f06e03 100755 --- a/scripts/android/build_mwebd.sh +++ b/scripts/android/build_mwebd.sh @@ -1,6 +1,14 @@ +# 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 +# build mwebd: git clone https://github.com/ltcmweb/mwebd cd mwebd -go install github.com/ltcmweb/mwebd/cmd/mwebd@latest +go install github.com/ltcmweb/mwebd/cmd/mwebd gomobile bind -target=android -androidapi 21 github.com/ltcmweb/mwebd mkdir -p ../../../cw_mweb/android/libs/ -mv ./mwebd.aar $_ \ No newline at end of file +mv ./mwebd.aar $_