19 lines
485 B
Dart
19 lines
485 B
Dart
|
// This file initializes the dynamic library and connects it with the stub
|
||
|
// generated by flutter_rust_bridge_codegen.
|
||
|
|
||
|
import 'dart:ffi';
|
||
|
|
||
|
import 'bridge_generated.dart';
|
||
|
import 'bridge_definitions.dart';
|
||
|
export 'bridge_definitions.dart';
|
||
|
|
||
|
// Re-export the bridge so it is only necessary to import this file.
|
||
|
export 'bridge_generated.dart';
|
||
|
import 'dart:io' as io;
|
||
|
|
||
|
const _base = 'native';
|
||
|
|
||
|
const _dylib = 'lib$_base.so';
|
||
|
|
||
|
final Native api = NativeImpl(DynamicLibrary.open(_dylib));
|