Skip to content

ffigen-v19.0.0

Choose a tag to compare

@liamappelbe liamappelbe released this 18 May 23:58
· 753 commits to main since this release
0f9c63c
  • Use package:objective_c 8.0.0.
  • Breaking change: Major change to the way ObjC methods are code-genned.
    Methods now use named parameters, making them more readable and closer to how
    they're written in ObjC. For example, the NSData method
    dataWithBytes:length: used to be generated as
    dataWithBytes_length_(Pointer<Void> bytes, int length), but is now generated
    as dataWithBytes(Pointer<Void> bytes, {required int length}). Protocol
    methods are not affected.
    • Migration tip: A quick way to find affected methods is to search for _(.
  • Make it easier for a downstream clone to change behavior of certain utils.
  • Fix a bug where types could
    occasionally show up as a generic ObjCObjectBase, when they were supposed to
    be codegenned as a more specific interface types.