Skip to content

Upgrading ffigen 8 to 9

Breaking8.0.2 → 9.0.1Breaking3New3Changed3Fixed3

BreakingUpgrade verdict

3 breaking changes.

  • The Objective-C collection classes no longer act as Dart lists, sets or maps directly. Call .toDart() to get a Dart collection wrapper, which is a shallow conversion.
  • Two internal C type names changed, so code referring to the old names must be updated.
  • Two internal Dart type names changed, so code referring to the old names must be updated.
3 items need code or config changes
Breaking3
Collection classes NSArray, NSSet, NSDictionary and their mutable counterparts no longer directly implement Dart collections; use .toDart() for a shallow adapter.
NSArrayNSSetNSDictionarytoDart()toObjCObjecttoDartObject
Renames internal C types ObjCObject and ObjCProtocol to ObjCObjectImpl and ObjCProtocolImpl.
ObjCObjectObjCProtocolObjCObjectImplObjCProtocolImpl
Renames internal Dart types ObjCObjectBase and ObjCProtocolBase to ObjObject and ObjCProtocol.
ObjCObjectBaseObjCProtocolBaseObjObjectObjCProtocol