forked from rustdesk/rustdesk
Update dependency ffigen to v19 #55
Open
renovatebot
wants to merge 1 commit from
renovate/ffigen-19.x into master
pull from: renovate/ffigen-19.x
merge into: test-actions:master
test-actions:master
test-actions:renovate/nix-0.x
test-actions:renovate/external_path-2.x
test-actions:renovate/xattr-1.x-lockfile
test-actions:renovate/wol-rs-1.x-lockfile
test-actions:renovate/uuid-1.x-lockfile
test-actions:renovate/unicode-segmentation-1.x-lockfile
test-actions:renovate/totp-rs-5.x-lockfile
test-actions:renovate/pulse-2.x-lockfile
test-actions:renovate/psimple-2.x-lockfile
test-actions:renovate/once_cell-1.x-lockfile
test-actions:renovate/num_cpus-1.x-lockfile
test-actions:renovate/cc-1.x-lockfile
test-actions:renovate/serde-monorepo
test-actions:renovate/url-2.x-lockfile
test-actions:renovate/tokio-tracing-monorepo
test-actions:renovate/thiserror-1.x-lockfile
test-actions:renovate/sys-locale-0.x-lockfile
test-actions:renovate/sha2-0.x-lockfile
test-actions:renovate/serde_repr-0.x-lockfile
test-actions:renovate/serde_json-1.x-lockfile
test-actions:renovate/pkg-config-0.x-lockfile
test-actions:renovate/parking_lot-0.x-lockfile
test-actions:renovate/mac_address-1.x-lockfile
test-actions:renovate/log-0.x-lockfile
test-actions:renovate/libloading-0.x-lockfile
test-actions:renovate/libc-0.x-lockfile
test-actions:renovate/gtk-0.x-lockfile
test-actions:renovate/errno-0.x-lockfile
test-actions:renovate/ctrlc-3.x-lockfile
test-actions:renovate/crossbeam-queue-0.x-lockfile
test-actions:renovate/clap-4.x-lockfile
test-actions:renovate/async-trait-0.x-lockfile
test-actions:renovate/softprops-action-gh-release-2.x
test-actions:renovate/zip-4.x
test-actions:renovate/thiserror-2.x
test-actions:renovate/qrcode-generator-5.x
test-actions:renovate/dirs-6.x
test-actions:renovate/dashmap-6.x
test-actions:renovate/brotli-8.x
test-actions:renovate/async-process-2.x
test-actions:renovate/major-protobuf-monorepo
test-actions:renovate/com.android.application-8.x
test-actions:renovate/kylemayes-install-llvm-action-2.x
test-actions:renovate/vite-6.x
test-actions:renovate/uuid-4.x
test-actions:renovate/ubuntu-24.x
test-actions:renovate/typescript-5.x
test-actions:renovate/ts-proto-2.x
test-actions:renovate/package_info_plus-8.x
test-actions:renovate/icons_launcher-3.x
test-actions:renovate/gradle-8.x
test-actions:renovate/freezed_annotation-3.x
test-actions:renovate/freezed-3.x
test-actions:renovate/flutter_rust_bridge-2.x
test-actions:renovate/flutter_lints-6.x
test-actions:renovate/flutter_keyboard_visibility-6.x
test-actions:renovate/file_picker-10.x
test-actions:renovate/extended_text-15.x
test-actions:renovate/device_info_plus-11.x
test-actions:renovate/back_button_interceptor-8.x
test-actions:renovate/apple-actions-import-codesign-certs-5.x
test-actions:renovate/actions-github-script-7.x
test-actions:renovate/actions-checkout-4.x
test-actions:renovate/actions-cache-4.x
test-actions:renovate/subosito-flutter-action-2.x
test-actions:renovate/x11rb-0.x
test-actions:renovate/winreg-0.x
test-actions:renovate/windows-strings-0.x
test-actions:renovate/windows-service-0.x
test-actions:renovate/tauri-winrt-notification-0.x
test-actions:renovate/rubato-0.x
test-actions:renovate/ringbuf-0.x
test-actions:renovate/rand-0.x
test-actions:renovate/objc2-foundation-0.x
test-actions:renovate/objc2-app-kit-0.x
test-actions:renovate/objc2-0.x
test-actions:renovate/ndk-0.x
test-actions:renovate/image-0.x
test-actions:renovate/default-net-0.x
test-actions:renovate/core-graphics-0.x
test-actions:renovate/core-foundation-0.x
test-actions:renovate/cocoa-0.x
test-actions:renovate/cidr-utils-0.x
test-actions:renovate/bindgen-0.x
test-actions:renovate/android_logger-0.x
test-actions:renovate/protobuf-monorepo
test-actions:renovate/com.android.application-7.x
test-actions:renovate/gstreamer-rust-monorepo
test-actions:renovate/zstddec-0.x
test-actions:renovate/vite-2.x
test-actions:renovate/uni_links_desktop-0.x
test-actions:renovate/typescript-4.x
test-actions:renovate/scroll_pos-0.x
test-actions:renovate/pull_down_button-0.x
test-actions:renovate/flutter_rust_bridge-1.x
test-actions:renovate/flutter_launcher_icons-0.x
test-actions:renovate/extended_text-14.x
test-actions:renovate/desktop_drop-0.x
test-actions:renovate/com.github.getactivity-xxpermissions-18.x
test-actions:renovate/androidx.media-media-1.x
test-actions:renovate/com.google.protobuf-0.x
test-actions:renovate/pcm-player-0.x
test-actions:renovate/gradle-7.x
test-actions:renovate/pin-dependencies
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
test-actions/rustdesk!55
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/ffigen-19.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
^8.0.2->^19.0.0Release Notes
dart-lang/native (ffigen)
v19.0.0Compare Source
Methods now use named parameters, making them more readable and closer to how
they're written in ObjC. For example, the
NSDatamethoddataWithBytes:length:used to be generated asdataWithBytes_length_(Pointer<Void> bytes, int length), but is now generatedas
dataWithBytes(Pointer<Void> bytes, {required int length}). Protocolmethods are not affected.
_(.occasionally show up as a generic ObjCObjectBase, when they were supposed to
be codegenned as a more specific interface types.
v18.1.0Compare Source
v18.0.0Compare Source
headers.entry-pointstolocate Apple APIs:
$XCODE,$IOS_SDK, and$MACOS_SDK.newmethod,which just calls that method.
usrTypeMappingsfield ofConfig's factoryconstructor from a
List<ImportedType>to aMap<String, ImportedType>.keepIsolateAliveparameter to the block and protocol constructors thatallows a block or protocol to keep its owner isolate alive.
keepIsolateAlivedefaults to true, so all existing ObjCblocks and protocols now keep their isolates alive by default.
a bug, by removing all uses
of
NSProxy.jnigen. The main change is that
$is used as a delimiter now, to avoidrenamed identifiers from colliding with other identifiers. For example,
foois renamed to
foo$1if there's already afooin the namespace.blocks could deadlock if invoked from the Flutter UI thread. Note that this
relies on changes in Flutter that are currently only available in the main
channel. These changes will likely be released in Flutter 3.31.0.
v17.0.0Compare Source
https://github.com/dart-lang/native/issues/1820
to Dart. For example, ObjC's
id<FooProtocol>is now translated to Dart'sFooProtocol. Generally this shouldn't be a breaking change for code that isusing protocols correctly, with a few caveats:
ObjCProtocolBuilderdirectly, aftercalling
build()you will need to cast the generated object to the targetprotocol:
FooProtocol.castFrom(protocolBuilder.build()).idis used:id<FooProtocol, BarProtocol>becomesFooProtocol. TheFooProtocol.castFrommethod can help work around issues this may cause.maxfield to theexternal-versionsconfig, and use it to determinewhich APIs are generated.
current OS version is earlier than the version that the API was introduced.
v16.1.0is linked with
-dead_strip.objc_retaincalls from the generated bindings.v16.0.0package:dart_styledirectly to format generated Dart code, rather thansubprocessing to
dart format.typealiases were treated as non-null.
https://github.com/dart-lang/native/issues/1136
inserting their methods into the interface, generate Dart extension methods.
For instance methods this makes no difference to user code (as long as the
extension methods are imported correctly). But for static methods it means
MyInterface.staticMethodmust change toMyCategory.staticMethod.Categories are included/excluded by the
objc-categoriesconfig entry.include-transitive-objc-interfaces,include-transitive-objc-protocols,and
include-transitive-objc-categoriesconfig flags, which control whethertransitively included ObjC interfaces, protocols, and categories are
generated.
include-transitive-objc-interfacesdefaults to false,which changes the default behavior from pulling in all transitive deps, to
generating them as stubs.
include-transitive-objc-protocolsdefaults tofalse, and
include-transitive-objc-categoriesdefaults to true, but theseboth replicate the existing behavior.
mismatches between ObjC and Dart's inheritance rules.
v15.0.0ObjCBlocktrampolines to reduce generated ObjC code.package:objective_c.required and optional methods are included. Optional methods will throw an
exception if the method isn't implemented.
protocols that are included by the config filters. This is breaking because
previously super protocols would automatically get implementation bindings,
rather than just being incorporated into the child protocol. If you want those
implementation bindings, you may need to add the super protocol to your
objc-protocolsfilters.ObjC but before the invocation was received by Dart:
https://github.com/dart-lang/native/issues/1571
sort:config option now affects ObjC interface/protocol methods.NSRangewas not being imported from package:objective_c:https://github.com/dart-lang/native/issues/1180
taking a struct return pointer.
v14.0.1ObjCBlock's type arguments:https://github.com/dart-lang/native/issues/1537
v14.0.0void generate(Config config). MakeConfigan implementatble interface,rather than needing to be parsed from yaml.
external-versionsconfig option. Setting the minimum targetversion will omit APIs from the generated bindings if they were deprecated
before this version.
correct Dart wrapper types, instead of the raw C-style pointers.
assetIdunder ffi-native toasset-idto follow dash-case.ObjCBlock<Ret Function(Args...)>, instead of the codegennedObjCBlock_...wrapper. The wrapper is now a non-constructible set of utilmethods for constructing
ObjCBlock.Reference Counting), and must now be compiled with ARC enabled. For example,
if you had a line like
s.requires_arc = []in your podspec, this shouldeither be removed, or you should add the ffigen generated ObjC code to the
list. If you're compiling directly with clang, add the
-fobjc-arcflag.as Dart enum values as well. For example, with an enum
MyEnumand a structwith a member
MyEnum enumMember, two members are generated:enumMemberAsIntwhich contains the original integer value, and
enumMember, which is of typeMyEnum. If you configure the enum to be generated as Dart integers, thisnew behavior will not apply, and the struct member will be an integer as well.
sealedclasses as opposed to
abstractclasses.being handled: https://github.com/dart-lang/native/issues/1446
member-renameoption to ObjC interface and protocolmethods and properties.
member-filteroption that filters ObjC interface and protocol methodsand properties.
v13.0.0idtype toObjCObjectBaseratherthan
NSObject, since not all ObjC classes inherit fromNSObject. EgNSProxy.fix a ref counting bug: https://github.com/dart-lang/native/issues/835.
be generated containing the trampoline. You must compile this .m file into
your package. If you already have a flutter plugin or build.dart, you can
simply add this generated file to that build.
output.objc-bindingsconfig option.of abstract classes with integer constants. Native enum members with the same
integer values are handled properly on the Dart side, and native functions
that use enums in their signatures now accept the generated enums on the Dart
side, instead of integer values. To opt out of this, use the
enums->as-intoption as specified in the README.
part of the ABI. Therefore FFIgen does a best-effort approach trying to mimic
the most common compilers for the various OS and architecture combinations.
To silence the warning set config
silence-enum-warningtotrue.https://github.com/dart-lang/native/issues/1007.
objc-protocolsconfig option to generate bindings for a protocol.built-in methods, or with types declared elsewhere in the generated bindings.
include-unused-typedefsto allow generating typedefs that are notreferred to anywhere, the default option is
false.package:dart_flutter_team_lints.v12.0.0ffi-nativeoption.ffi-nativeoption.retainAndReturnPointermethod to ObjC objects and blocks, and addcastFromPointermethod to blocks.-Wno-nullability-completenessas default compiler option for MacOS.package:objective_cin ObjC bindings.https://github.com/dart-lang/native/issues/1068 is fixed).
NSStringhave been moved intopackage:objective_c.libargument anymore. Infact, ffigen won't even generate the native library class (unless it needs
to bind top level functions without using
@Native). It is still necessaryto
DynamicLibrary.openthe dylib though, to load the classes and methods.longer contains the native library class, it means it isn't needed
anymore. So
final lib = FooNativeLib(DynamicLibrary.open('foo.dylib'));must be changed to
DynamicLibrary.open('foo.dylib');.libparameter from all ObjC object constructors and static method callsand block constructors.
NSStringare being used,package:objective_cmust be imported, as they won't be exported by thegenerated bindings.
formatting step happens. Defaults to true.
destroyed. Fixes https://github.com/dart-lang/native/issues/204
structs/unions->dependency-onlyis set toopaque.v11.0.0Compare Source
bindings to not be generated by default, since it may result in invalid
bindings if the compiler makes a wrong guess. A flag
--ignore-source-errors(or yaml configignore-source-errors: true)must be passed to change this behaviour.
constin C.ffi-nativefunctions markedleaf.v10.0.0Compare Source
dart:ffifeatures availablein Dart 3.2 and later.
NativeCallable.listener.
Pointer<NativeFunction<Function>>, alsogenerate a typedef for the
Function.assettoassetIdforffi-native.v9.0.1Compare Source
v9.0.0Compare Source
Methods now use named parameters, making them more readable and closer to how
they're written in ObjC. For example, the
NSDatamethoddataWithBytes:length:used to be generated asdataWithBytes_length_(Pointer<Void> bytes, int length), but is now generatedas
dataWithBytes(Pointer<Void> bytes, {required int length}). Protocolmethods are not affected.
_(.occasionally show up as a generic ObjCObjectBase, when they were supposed to
be codegenned as a more specific interface types.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
90b82daf94tobb80eb5631