Releases: dart-lang/native
Releases · dart-lang/native
package:code_assets v0.19.2
- Mark this package as in preview.
package:code_assets v0.19.1
- Bump the SDK constraint to at least the one from
package:hooks
to fix
dartdoc generation on https://pub.dev.
package:native_toolchain_c v0.16.1
- Firebase Studio NixOS support (default install locations for native
toolchains).
package:hooks_runner v0.20.0
- Breaking change Refactored error handling to use a
Result
type for more
explicit success/failure states. - Remove
package_graph.json
fallback.
package:hooks v0.19.1
- Added links to the
build
andlink
methods as primary entry points. - Added failure outputs and documented exit codes.
objective_c-v8.0.0
- Use ffigen 19.0.0
NSArray
is now a DartIterable
andNSMutableArray
is now a DartList
.NSDictionary
andNSMutableDictionary
are now DartMap
s.NSSet
andNSMutableSet
are now DartSet
s.- Add
.toNSNumber()
extension method toint
,double
, andnum
. - Add
DateTime.toNSDate()
andNSDate.toDateTime()
extension methods. - Add
CFStringRef.toDartString()
andCFStringRef.toNSString()
. - Add
toObjCObject
andtoDartObject
that automatically convert between
supported Objective C and Dart types. - Added various interfaces, protocols, categories etc to the built ins, such as
NSPort and NSTimer.
ffigen-v19.0.0
- Use package:objective_c 8.0.0.
- Breaking change: Major change to the way ObjC methods are code-genned.
Methods now use named parameters, making them more readable and closer to how
they're written in ObjC. For example, theNSData
method
dataWithBytes:length:
used to be generated as
dataWithBytes_length_(Pointer<Void> bytes, int length)
, but is now generated
asdataWithBytes(Pointer<Void> bytes, {required int length})
. Protocol
methods are not affected.- Migration tip: A quick way to find affected methods is to search for
_(
.
- Migration tip: A quick way to find affected methods is to search for
- Make it easier for a downstream clone to change behavior of certain utils.
- Fix a bug where types could
occasionally show up as a generic ObjCObjectBase, when they were supposed to
be codegenned as a more specific interface types.
package:native_toolchain_c v0.16.0
- Depend on
package:code_assets
andpackage:hooks
0.19.0.
(package:native_assets_cli
was split up into these packages.)
package:hooks_runner v0.19.0
- Renamed package from
native_assets_builder
tohooks_runner
. - Depend on
package:code_assets
,package:data_assets
, andpackage:hooks
0.19.0. (package:native_assets_cli
was split up into these packages.)
package:hooks v0.19.0
- Split up
package:native_assets_cli
inpackage:hooks
,
package:code_assets
, andpackage:data_assets
.