A Flutter plugin for trust wallet core. It can access all api list in https://github.com/trustwallet/wallet-core/tree/master/include/TrustWalletCore (from trust_wallet_core version 2.6.20)
This project was originally copied from weishirongzhen
minSdk require >=23
Add
class MainActivity: FlutterActivity() {
init {
System.loadLibrary("TrustWalletCore")
}
}
in your android project MainActivity.kt file
Create a github auth token to fetch binary from official TrustWalletCore maven repo
Set gradle project property gpr.user
and gpr.token
or set system environment variable GH_USERNAME
and GH_TOKEN
with the credentials you recieved from github
- Pull official trustwallet core repo
- Change
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
toset(CMAKE_CXX_VISIBILITY_PRESET default)
in CmakeLists.txt (Line 14) - Build project
./bootstrap.sh
- Compile for android run
./tools/android-build
- Copy trustwalletcore.aar in /build to android/libs in this project
min ios platform support >=13.0
Before using this package, you need to initialise it:
FlutterTrustWalletCore.init();