Upgrading ffigen 8 to 9
Breaking8.0.2 → 9.0.1Breaking3New3Changed3Fixed3
BreakingUpgrade verdict
3 breaking changes.
In plain terms
- 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.
Must act 3 items need code or config changes
What you must change
Breaking3
Collection classes NSArray, NSSet, NSDictionary and their mutable counterparts no longer directly implement Dart collections; use .toDart() for a shallow adapter.
NSArrayNSSetNSDictionarytoDart()toObjCObjecttoDartObjectRenames internal C types ObjCObject and ObjCProtocol to ObjCObjectImpl and ObjCProtocolImpl.
ObjCObjectObjCProtocolObjCObjectImplObjCProtocolImplRenames internal Dart types ObjCObjectBase and ObjCProtocolBase to ObjObject and ObjCProtocol.
ObjCObjectBaseObjCProtocolBaseObjObjectObjCProtocol