Skip to content

Commit

Permalink
Upgrade ffigen (#106)
Browse files Browse the repository at this point in the history
* Upgrade ffigen dependency

* Regenerate bindings with ffigen
  • Loading branch information
jonasfj authored May 6, 2024
1 parent 137237c commit e0c1734
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 22 deletions.
38 changes: 23 additions & 15 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@ packages:
dependency: transitive
description:
name: _fe_analyzer_shared
sha256: ae92f5d747aee634b87f89d9946000c2de774be1d6ac3e58268224348cd0101a
sha256: "0b2f2bd91ba804e53a61d757b986f89f1f9eaed5b11e4b2f5a2468d86d6c9fc7"
url: "https://pub.dev"
source: hosted
version: "61.0.0"
version: "67.0.0"
analyzer:
dependency: transitive
description:
name: analyzer
sha256: ea3d8652bda62982addfd92fdc2d0214e5f82e43325104990d4f4c4a2a313562
sha256: "37577842a27e4338429a1cbc32679d508836510b056f1eedf0c8d20e39c1383d"
url: "https://pub.dev"
source: hosted
version: "5.13.0"
version: "6.4.1"
args:
dependency: transitive
description:
name: args
sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596
sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a"
url: "https://pub.dev"
source: hosted
version: "2.4.2"
version: "2.5.0"
async:
dependency: transitive
description:
Expand Down Expand Up @@ -93,10 +93,10 @@ packages:
dependency: "direct main"
description:
name: cupertino_icons
sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d
sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
url: "https://pub.dev"
source: hosted
version: "1.0.6"
version: "1.0.8"
fake_async:
dependency: transitive
description:
Expand All @@ -109,10 +109,10 @@ packages:
dependency: transitive
description:
name: ffi
sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878"
sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21"
url: "https://pub.dev"
source: hosted
version: "2.1.0"
version: "2.1.2"
file:
dependency: transitive
description:
Expand Down Expand Up @@ -259,10 +259,10 @@ packages:
dependency: transitive
description:
name: mime
sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e
sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2"
url: "https://pub.dev"
source: hosted
version: "1.0.4"
version: "1.0.5"
node_preamble:
dependency: transitive
description:
Expand Down Expand Up @@ -476,21 +476,29 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.1.0"
web:
dependency: transitive
description:
name: web
sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27"
url: "https://pub.dev"
source: hosted
version: "0.5.1"
web_socket_channel:
dependency: transitive
description:
name: web_socket_channel
sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b
sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42"
url: "https://pub.dev"
source: hosted
version: "2.4.0"
version: "2.4.5"
webcrypto:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "0.5.5"
version: "0.5.6"
webdriver:
dependency: transitive
description:
Expand Down
12 changes: 6 additions & 6 deletions lib/src/third_party/boringssl/generated_bindings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,8 @@ class BoringSsl {
}

late final _CBB_dataPtr = _lookup<
ffi
.NativeFunction<ffi.Pointer<ffi.Uint8> Function(ffi.Pointer<CBB>)>>(
'CBB_data');
ffi.NativeFunction<
ffi.Pointer<ffi.Uint8> Function(ffi.Pointer<CBB>)>>('CBB_data');
late final _CBB_data = _CBB_dataPtr.asFunction<
ffi.Pointer<ffi.Uint8> Function(ffi.Pointer<CBB>)>();

Expand Down Expand Up @@ -2706,9 +2705,8 @@ class BoringSsl {
}

late final _RAND_bytesPtr = _lookup<
ffi
.NativeFunction<ffi.Int Function(ffi.Pointer<ffi.Uint8>, ffi.Size)>>(
'RAND_bytes');
ffi.NativeFunction<
ffi.Int Function(ffi.Pointer<ffi.Uint8>, ffi.Size)>>('RAND_bytes');
late final _RAND_bytes =
_RAND_bytesPtr.asFunction<int Function(ffi.Pointer<ffi.Uint8>, int)>();

Expand Down Expand Up @@ -2993,6 +2991,7 @@ typedef BIGNUM = bignum_st;
typedef BN_CTX = bignum_ctx;
typedef BN_GENCB = bn_gencb_st;
typedef BN_ULONG = ffi.Uint64;
typedef DartBN_ULONG = int;
typedef CBB = cbb_st;
typedef CBS = cbs_st;

Expand All @@ -3004,6 +3003,7 @@ typedef CBS = cbs_st;
/// do that. Instead we statically assert that the size and native alignment of
/// a plain uint32_t and an _Atomic uint32_t are equal in refcount_c11.c.
typedef CRYPTO_refcount_t = ffi.Uint32;
typedef DartCRYPTO_refcount_t = int;
typedef DH = dh_st;
typedef DSA = dsa_st;
typedef ECDSA_SIG = ecdsa_sig_st;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies:
sdk: flutter

dev_dependencies:
ffigen: ^9.0.0
ffigen: ^11.0.0
test: ^1.16.0
yaml: ^3.0.0
flutter_lints: ^3.0.1
Expand Down

0 comments on commit e0c1734

Please sign in to comment.