trust_wallet_core 0.0.3
trust_wallet_core: ^0.0.3 copied to clipboard
A Flutter plugin for trust wallet core
trust_wallet_core #
A Flutter plugin for trust wallet core
download pre_release lib zip from release. Run example, If crash, make sure follow below step
Android #
Add
class MainActivity: FlutterActivity() {
init {
System.loadLibrary("TrustWalletCore")
}
}
in your android project MainActivity.ky file
your project file structs will look like this
then you are ready to run.
If want to use plugin in your own project #
Current there is a way will be easy
Just add follow dep in your pubspec.yaml file, flutter_trust_wallet_core_lib_include.git was check binary lib into repo.
flutter_trust_wallet_core:
git:
url: https://github.com/weishirongzhen/flutter_trust_wallet_core_lib_include.git
ref: 8e371e1aadcf06f2d1ce44fb3036a36395d1f095
make sure ref is newest, then run flutter pub get
edit you android MainACtivity.kt file
class MainActivity: FlutterActivity() {
init {
System.loadLibrary("TrustWalletCore")
}
}
ios nothing need todo.
dart part #
before use wallet_core, add
FlutterTrustWalletCore.init();
before call any api of wallet_core