Skip to content

Commit

Permalink
Regenerate the bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-F-Bryan committed Oct 25, 2021
1 parent 685ead2 commit 9fbd16f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
.pub/

build/
*.so
1 change: 0 additions & 1 deletion ios/Classes/bridge_generated.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
Expand Down
12 changes: 8 additions & 4 deletions lib/bridge_generated.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,18 @@ class NativeAddWire implements FlutterRustBridgeWireBase {
.asFunction<ffi.Pointer<wire_uint_8_list> Function(int)>();

void store_dart_post_cobject(
int ptr,
DartPostCObjectFnType ptr,
) {
return _store_dart_post_cobject(
ptr,
);
}

late final _store_dart_post_cobjectPtr =
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int32)>>(
_lookup<ffi.NativeFunction<ffi.Void Function(DartPostCObjectFnType)>>(
'store_dart_post_cobject');
late final _store_dart_post_cobject =
_store_dart_post_cobjectPtr.asFunction<void Function(int)>();
late final _store_dart_post_cobject = _store_dart_post_cobjectPtr
.asFunction<void Function(DartPostCObjectFnType)>();
}

class wire_uint_8_list extends ffi.Struct {
Expand All @@ -149,3 +149,7 @@ class wire_uint_8_list extends ffi.Struct {
@ffi.Int32()
external int len;
}

typedef DartPostCObjectFnType = ffi.Pointer<
ffi.NativeFunction<ffi.Uint8 Function(DartPort, ffi.Pointer<ffi.Void>)>>;
typedef DartPort = ffi.Int64;
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 0.0.1
homepage:

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.14.0 <3.0.0"
flutter: ">=1.20.0"

dependencies:
Expand Down
5 changes: 4 additions & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ edition = "2021"

[dependencies]
anyhow = "1.0.44"
flutter_rust_bridge = "1.2.0"
flutter_rust_bridge = { git = "https://github.com/fzyzcjy/flutter_rust_bridge", branch = "master" }

[lib]
crate-type = ["staticlib", "cdylib"]

0 comments on commit 9fbd16f

Please sign in to comment.