Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency ffigen to v12 #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 9, 2024

Mend Renovate

This PR contains the following updates:

Package Type Update Change
ffigen (source) dev_dependencies major 8.0.2 -> 12.0.0

Release Notes

dart-lang/native (ffigen)

v12.0.0

  • Global variables are now compatible with the ffi-native option.
  • Exposing symbol addresses of functions and globals is now compatible with the
    ffi-native option.
  • Add retainAndReturnPointer method to ObjC objects and blocks, and add
    castFromPointer method to blocks.
  • Add -Wno-nullability-completeness as default compiler option for MacOS.
  • Breaking change: Use package:objective_c in ObjC bindings.
    • ObjC packages will have a flutter dependency (until
      https://github.com/dart-lang/native/issues/1068ues/1068 is fixed).
    • Core classes such as NSString have been moved intpu package:objective_c.
    • ObjC class methods don't need the ubiquitous lib argument anymore. In
      fact, ffigen won't even generate the native library class (unless it needs
      to bind top level functions without using @Native). It is still necessary
      to DynamicLibrary.open the dylib though, to load the classes and methods.
    • Adapting to this change:
      • Update ffigen and re-run the code generation. If the generated code no
        longer contains the native library class, it means it isn't needed
        anymore. So final lib = FooNativeLib(DynamicLibrary.open('foo.dylib'));
        must be changed to DynamicLibrary.open('foo.dylib');.
      • Regardless of whether the native library class still exists, delete the
        lib parameter from all ObjC object constructors and static method calls
        and block constructors.
      • If core ObjC classes such as NSString are being used,
        package:objective_c must be imported, as they won't be exported by the
        generated bindings.
  • Add --[no-]format option to ffigen command line, which controls whether the
    formatting step happens. Defaults to true.
  • Delete Dart functions associated with ObjC closure blocks when the block is
    destroyed. Fihttps://github.com/dart-lang/native/issues/204/204
  • Reduce cursor definition not found logs when structs/unions ->
    dependency-only is set to opaque.

v11.0.0

Compare Source

  • Any compiler errors/warnings in source header files will now result in
    bindings to not be generated by default, since it may result in invalid
    bindings if the compiler makes a wrong guess. A flag --ignore-source-errors (or yaml config ignore-source-errors: true)
    must be passed to change this behaviour.
  • Breaking change: Stop generating setters for global variables marked const in C.
  • Fix objc_msgSend being used on arm64 platforms where it's not available.
  • Fix missing comma with ffi-native functions marked leaf.
  • Add support for finding libclang in Conda environment.

v10.0.0

Compare Source

  • Stable release targeting Dart 3.2 using new dart:ffi features available
    in Dart 3.2 and later.
  • Add support for ObjC Blocks that can be invoked from any thread, using
    NativeCallable.listener.
  • Fix invalid exceptional return value ObjCBlocks that return floats.
  • Fix return_of_invalid_type analysis error for ObjCBlocks.
  • Fix crash in ObjC methods and blocks that return structs by value.
  • Fix ObjC methods returning instancetype having the wrong type in sublasses.
  • When generating typedefs for Pointer<NativeFunction<Function>>, also
    generate a typedef for the Function.
  • Use Dart wrapper types in args and returns of ObjCBlocks.
  • Use Dart wrapper types in args and returns of static functions.
  • Renamed asset to assetId for ffi-native.

v9.0.1

Compare Source

  • Fix doc comment missing on struct/union array fields.
  • Allow extern inline functions to be generated.

v9.0.0

Compare Source

  • Added a JSON schema for FFIgen config files.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants