Upgrading ffigen 7 to 8
Breaking7.2.11 → 8.0.2Breaking3Deprecated1New6Changed3Fixed3
BreakingUpgrade verdict
3 breaking changes.
In plain terms
- 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.
Must act 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.
What you must change
Breaking3
NSArray is now a Dart Iterable and NSMutableArray is now a Dart List.
NSArrayNSMutableArrayIterableListNSDictionary and NSMutableDictionary are now Dart Maps.
NSDictionaryNSMutableDictionaryMapNSSet and NSMutableSet are now Dart Sets.
NSSetNSMutableSetSetDeprecations to plan for
Deprecated1
Uses
@Native syntax instead of the deprecated @FfiNative syntax.@Native@FfiNative