objective_c 2.0.0
objective_c: ^2.0.0 copied to clipboard
A library to access Objective C from Flutter that acts as a support library for package:ffigen.
2.0.0 #
- Drop API methods that are deprecated in the oldest versions of iOS and macOS that flutter supports.
- Added
ObjCBlock, which is the new user-facing representation of ObjC blocks. - Migrate to ARC (Automatic Reference Counting).
- Enable ObjC objects and blocks to be sent between isolates.
- Add
autoreleaseandretainAndAutoreleasemethods to ObjC objects and blocks. - Breaking change: Remove some convenience methods from
_ObjCRefHolder:isReleased,release,pointer, andretainAndReturnPointer. Uses of these methods now need to go through.ref. Egobj.pointerbecomesobj.ref.pointer.
1.1.0 #
- Add
DartProxy, which is an implementation ofNSProxythat enables implementing ObjC protocols from Dart. Also addsDartProxyBuilderfor constructingDartProxy. - Add some extensions methods for
NSMutableData. - Fix the
NSErrorbindings so that they're not empty. - Add
ObjCProtocolBuilder, which is an ergonomic wrapper aroundDartProxyBuilder. - Add
ObjCProtocolMethod, which contains all the information thatObjCProtocolBuilderneeds to implement a method. These objects are created by the ffigen bindings for a protocol. - Make all of the code-genned structs and enums public so they can be reused by user bindings.
- Use
package:dart_flutter_team_lints.
1.0.1 #
- Mention experimental status in readme.
1.0.0 #
- Move sharable code from ffigen's generated code into this package, including
ObjCObjectBase, andObjCBlockBase, as well as the core Objective C runtime functions (exceptobjc_msgSend, which is library specific). - Move core ObjC classes such as
NSStringinto this package. - Delete Dart functions associated with ObjC closure blocks when the block is destroyed. Fixes https://github.com/dart-lang/native/issues/204
- Improve debuggability of memory management errors.