From c9bbada42b7353017c2f2f4e553e3aa91fd36790 Mon Sep 17 00:00:00 2001 From: GitHub Date: Fri, 5 Jan 2024 03:03:29 +0000 Subject: [PATCH] chore: update flutter/scripts/update-cocoa.sh to 8.18.0 --- flutter/ios/sentry_flutter.podspec | 2 +- flutter/lib/src/native/cocoa/binding.dart | 32 ++++++++++++++--------- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/flutter/ios/sentry_flutter.podspec b/flutter/ios/sentry_flutter.podspec index 15edfce6d7..1dc2c0fa06 100644 --- a/flutter/ios/sentry_flutter.podspec +++ b/flutter/ios/sentry_flutter.podspec @@ -12,7 +12,7 @@ Sentry SDK for Flutter with support to native through sentry-cocoa. :tag => s.version.to_s } s.source_files = 'Classes/**/*' s.public_header_files = 'Classes/**/*.h' - s.dependency 'Sentry/HybridSDK', '8.17.2' + s.dependency 'Sentry/HybridSDK', '8.18.0' s.ios.dependency 'Flutter' s.osx.dependency 'FlutterMacOS' s.ios.deployment_target = '11.0' diff --git a/flutter/lib/src/native/cocoa/binding.dart b/flutter/lib/src/native/cocoa/binding.dart index 646a6bea83..d614c12b1b 100644 --- a/flutter/lib/src/native/cocoa/binding.dart +++ b/flutter/lib/src/native/cocoa/binding.dart @@ -37603,7 +37603,8 @@ class ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< - ffi.NativeFunction< + ffi + .NativeFunction< ffi.Bool Function(ffi.Pointer arg0, ffi.UnsignedLong arg1, ffi.Pointer arg2)>> ptr) @@ -42031,15 +42032,17 @@ class ObjCBlock_bool_ObjCObject_bool extends _ObjCBlockBase { ffi.Pointer arg1)>> ptr) : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock_bool_ObjCObject_bool_fnPtrTrampoline, false) - .cast(), - ptr.cast()), + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock_bool_ObjCObject_bool_fnPtrTrampoline, + false) + .cast(), + ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; @@ -70495,15 +70498,18 @@ class PrivateSentrySDKOnly extends NSObject { /// Collect a profiler session data associated with the given @c SentryId. /// This also discards the profiler. - static NSDictionary collectProfileBetween_and_forTrace_(SentryCocoa _lib, - int startSystemTime, int endSystemTime, SentryId? traceId) { + static NSMutableDictionary collectProfileBetween_and_forTrace_( + SentryCocoa _lib, + int startSystemTime, + int endSystemTime, + SentryId? traceId) { final _ret = _lib._objc_msgSend_1059( _lib._class_PrivateSentrySDKOnly1, _lib._sel_collectProfileBetween_and_forTrace_1, startSystemTime, endSystemTime, traceId?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } /// Discard profiler session data associated with the given @c SentryId.