Library for use Bitmaelum client with (future) support for android, ios, macos, windows, linux, web and hover
Heavily based on the openpgp flutter plugin
import 'package:bitmaelum_flutter_plugin/bitmaelum_flutter_plugin.dart';
void main() async {
var result = BitmaelumClientPlugin.openVault(filePath, password);
}
Add this lines to android/app/proguard-rules.pro
for proguard support.
-keep class go.** { *; }
-keep class bitmaelum_flutter_plugin.** { *; }
No additional setup required.
Add to you pubspec.yaml
.
assets:
- packages/bitmaelum_flutter_plugin/web/assets/worker.js
- packages/bitmaelum_flutter_plugin/web/assets/wasm_exec.js
-packages/bitmaelum_flutter_plugin/web/assets/bitmaelum.wasm
ref: https://github.com/jerson/flutter-openpgp/blob/master/example/pubspec.yaml
No additional setup required.
Update your plugins.
hover plugins get
In you main_desktop.dart
by now you need to add BitmaelumClientPlugin.bindingEnabled = false
in order to use channels instead of shared objects
import 'main.dart' as original_main;
import 'package:bitmaelum_flutter_plugin/bitmaelum_flutter_plugin.dart';
void main() {
BitmaelumClientPlugin.bindingEnabled = false;
original_main.main();
}
No additional setup required.
No additional setup required.
Inside example folder.
cd example && flutter run
Native library is made in Go
for faster performance.