Skip to content

Upgrading ffigen 7 to 8

Breaking7.2.11 → 8.0.2Breaking3Deprecated1New6Changed3Fixed3

BreakingUpgrade verdict

3 breaking changes.

  • Arrays from Objective C now behave like normal Dart lists and iterables.
  • Dictionaries from Objective C now behave like normal Dart maps.
  • Sets from Objective C now behave like normal Dart sets.
  • Generated bindings now use the newer `@Native` annotation instead of the older, deprecated `@FfiNative` one.
4 items need code or config changes

Dart SDK requirement changed in 8.0.1: >=2.17.0 <4.0.0 → >=3.0.0 <4.0.0.

Breaking3
NSArray is now a Dart Iterable and NSMutableArray is now a Dart List.
NSArrayNSMutableArrayIterableList
NSDictionary and NSMutableDictionary are now Dart Maps.
NSDictionaryNSMutableDictionaryMap
NSSet and NSMutableSet are now Dart Sets.
NSSetNSMutableSetSet
Deprecated1
Uses @Native syntax instead of the deprecated @FfiNative syntax.
@Native@FfiNative