From 619f45a4f9b272ec96a2839f22e7120b51b3bf7c Mon Sep 17 00:00:00 2001 From: GitHub Date: Fri, 7 Jun 2024 09:04:45 +0000 Subject: [PATCH 1/2] chore: update flutter/scripts/update-cocoa.sh to 8.28.0 --- CHANGELOG.md | 6 +- flutter/ios/sentry_flutter.podspec | 2 +- flutter/lib/src/native/cocoa/binding.dart | 242 ++++++++++------------ 3 files changed, 119 insertions(+), 131 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de3a68db32..018eb80355 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,9 +9,9 @@ ### Dependencies -- Bump Cocoa SDK from v8.25.2 to v8.26.0 ([#2060](https://github.com/getsentry/sentry-dart/pull/2060)) - - [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8260) - - [diff](https://github.com/getsentry/sentry-cocoa/compare/8.25.2...8.26.0) +- Bump Cocoa SDK from v8.25.2 to v8.28.0 ([#2060](https://github.com/getsentry/sentry-dart/pull/2060), [#2092](https://github.com/getsentry/sentry-dart/pull/2092)) + - [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8280) + - [diff](https://github.com/getsentry/sentry-cocoa/compare/8.25.2...8.28.0) ## 8.2.0 diff --git a/flutter/ios/sentry_flutter.podspec b/flutter/ios/sentry_flutter.podspec index 5a37c01cf9..72c362696d 100644 --- a/flutter/ios/sentry_flutter.podspec +++ b/flutter/ios/sentry_flutter.podspec @@ -16,7 +16,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.26.0' + s.dependency 'Sentry/HybridSDK', '8.28.0' s.ios.dependency 'Flutter' s.osx.dependency 'FlutterMacOS' s.ios.deployment_target = '12.0' diff --git a/flutter/lib/src/native/cocoa/binding.dart b/flutter/lib/src/native/cocoa/binding.dart index b6667b174b..6b3dfc9b18 100644 --- a/flutter/lib/src/native/cocoa/binding.dart +++ b/flutter/lib/src/native/cocoa/binding.dart @@ -6038,19 +6038,41 @@ class SentryCocoa { _registerName1("fileSystemRepresentation"); late final _sel_isFileURL1 = _registerName1("isFileURL"); late final _sel_standardizedURL1 = _registerName1("standardizedURL"); + late final _sel_checkResourceIsReachableAndReturnError_1 = + _registerName1("checkResourceIsReachableAndReturnError:"); + bool _objc_msgSend_225( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer> error, + ) { + return __objc_msgSend_225( + obj, + sel, + error, + ); + } + + late final __objc_msgSend_225Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_225 = __objc_msgSend_225Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer>)>(); + late final _sel_isFileReferenceURL1 = _registerName1("isFileReferenceURL"); late final _sel_fileReferenceURL1 = _registerName1("fileReferenceURL"); late final _sel_filePathURL1 = _registerName1("filePathURL"); late final _sel_getResourceValue_forKey_error_1 = _registerName1("getResourceValue:forKey:error:"); - bool _objc_msgSend_225( + bool _objc_msgSend_226( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> value, ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_225( + return __objc_msgSend_226( obj, sel, value, @@ -6059,7 +6081,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_225Ptr = _lookup< + late final __objc_msgSend_226Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -6067,7 +6089,7 @@ class SentryCocoa { ffi.Pointer>, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_225 = __objc_msgSend_225Ptr.asFunction< + late final __objc_msgSend_226 = __objc_msgSend_226Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -6077,13 +6099,13 @@ class SentryCocoa { late final _sel_resourceValuesForKeys_error_1 = _registerName1("resourceValuesForKeys:error:"); - ffi.Pointer _objc_msgSend_226( + ffi.Pointer _objc_msgSend_227( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ffi.Pointer> error, ) { - return __objc_msgSend_226( + return __objc_msgSend_227( obj, sel, keys, @@ -6091,14 +6113,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_226Ptr = _lookup< + late final __objc_msgSend_227Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_226 = __objc_msgSend_226Ptr.asFunction< + late final __objc_msgSend_227 = __objc_msgSend_227Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6107,14 +6129,14 @@ class SentryCocoa { late final _sel_setResourceValue_forKey_error_1 = _registerName1("setResourceValue:forKey:error:"); - bool _objc_msgSend_227( + bool _objc_msgSend_228( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer key, ffi.Pointer> error, ) { - return __objc_msgSend_227( + return __objc_msgSend_228( obj, sel, value, @@ -6123,7 +6145,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_227Ptr = _lookup< + late final __objc_msgSend_228Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -6131,7 +6153,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_227 = __objc_msgSend_227Ptr.asFunction< + late final __objc_msgSend_228 = __objc_msgSend_228Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -6141,13 +6163,13 @@ class SentryCocoa { late final _sel_setResourceValues_error_1 = _registerName1("setResourceValues:error:"); - bool _objc_msgSend_228( + bool _objc_msgSend_229( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyedValues, ffi.Pointer> error, ) { - return __objc_msgSend_228( + return __objc_msgSend_229( obj, sel, keyedValues, @@ -6155,14 +6177,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_228Ptr = _lookup< + late final __objc_msgSend_229Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_228 = __objc_msgSend_228Ptr.asFunction< + late final __objc_msgSend_229 = __objc_msgSend_229Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -6175,7 +6197,7 @@ class SentryCocoa { late final _sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_1 = _registerName1( "bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:"); - ffi.Pointer _objc_msgSend_229( + ffi.Pointer _objc_msgSend_230( ffi.Pointer obj, ffi.Pointer sel, int options, @@ -6183,7 +6205,7 @@ class SentryCocoa { ffi.Pointer relativeURL, ffi.Pointer> error, ) { - return __objc_msgSend_229( + return __objc_msgSend_230( obj, sel, options, @@ -6193,7 +6215,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_229Ptr = _lookup< + late final __objc_msgSend_230Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -6202,7 +6224,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_229 = __objc_msgSend_229Ptr.asFunction< + late final __objc_msgSend_230 = __objc_msgSend_230Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6214,7 +6236,7 @@ class SentryCocoa { late final _sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1 = _registerName1( "initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); - instancetype _objc_msgSend_230( + instancetype _objc_msgSend_231( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bookmarkData, @@ -6223,7 +6245,7 @@ class SentryCocoa { ffi.Pointer isStale, ffi.Pointer> error, ) { - return __objc_msgSend_230( + return __objc_msgSend_231( obj, sel, bookmarkData, @@ -6234,7 +6256,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_230Ptr = _lookup< + late final __objc_msgSend_231Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -6244,7 +6266,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_230 = __objc_msgSend_230Ptr.asFunction< + late final __objc_msgSend_231 = __objc_msgSend_231Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -6259,13 +6281,13 @@ class SentryCocoa { "URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:"); late final _sel_resourceValuesForKeys_fromBookmarkData_1 = _registerName1("resourceValuesForKeys:fromBookmarkData:"); - ffi.Pointer _objc_msgSend_231( + ffi.Pointer _objc_msgSend_232( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ffi.Pointer bookmarkData, ) { - return __objc_msgSend_231( + return __objc_msgSend_232( obj, sel, keys, @@ -6273,14 +6295,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_231Ptr = _lookup< + late final __objc_msgSend_232Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_231 = __objc_msgSend_231Ptr.asFunction< + late final __objc_msgSend_232 = __objc_msgSend_232Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6289,7 +6311,7 @@ class SentryCocoa { late final _sel_writeBookmarkData_toURL_options_error_1 = _registerName1("writeBookmarkData:toURL:options:error:"); - bool _objc_msgSend_232( + bool _objc_msgSend_233( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bookmarkData, @@ -6297,7 +6319,7 @@ class SentryCocoa { int options, ffi.Pointer> error, ) { - return __objc_msgSend_232( + return __objc_msgSend_233( obj, sel, bookmarkData, @@ -6307,7 +6329,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_232Ptr = _lookup< + late final __objc_msgSend_233Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -6316,7 +6338,7 @@ class SentryCocoa { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_232 = __objc_msgSend_232Ptr.asFunction< + late final __objc_msgSend_233 = __objc_msgSend_233Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -6327,13 +6349,13 @@ class SentryCocoa { late final _sel_bookmarkDataWithContentsOfURL_error_1 = _registerName1("bookmarkDataWithContentsOfURL:error:"); - ffi.Pointer _objc_msgSend_233( + ffi.Pointer _objc_msgSend_234( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer bookmarkFileURL, ffi.Pointer> error, ) { - return __objc_msgSend_233( + return __objc_msgSend_234( obj, sel, bookmarkFileURL, @@ -6341,14 +6363,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_233Ptr = _lookup< + late final __objc_msgSend_234Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_233 = __objc_msgSend_233Ptr.asFunction< + late final __objc_msgSend_234 = __objc_msgSend_234Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6357,14 +6379,14 @@ class SentryCocoa { late final _sel_URLByResolvingAliasFileAtURL_options_error_1 = _registerName1("URLByResolvingAliasFileAtURL:options:error:"); - instancetype _objc_msgSend_234( + instancetype _objc_msgSend_235( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int options, ffi.Pointer> error, ) { - return __objc_msgSend_234( + return __objc_msgSend_235( obj, sel, url, @@ -6373,7 +6395,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_234Ptr = _lookup< + late final __objc_msgSend_235Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -6381,7 +6403,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_234 = __objc_msgSend_234Ptr.asFunction< + late final __objc_msgSend_235 = __objc_msgSend_235Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -6397,13 +6419,13 @@ class SentryCocoa { _registerName1("getPromisedItemResourceValue:forKey:error:"); late final _sel_promisedItemResourceValuesForKeys_error_1 = _registerName1("promisedItemResourceValuesForKeys:error:"); - ffi.Pointer _objc_msgSend_235( + ffi.Pointer _objc_msgSend_236( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ffi.Pointer> error, ) { - return __objc_msgSend_235( + return __objc_msgSend_236( obj, sel, keys, @@ -6411,14 +6433,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_235Ptr = _lookup< + late final __objc_msgSend_236Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_235 = __objc_msgSend_235Ptr.asFunction< + late final __objc_msgSend_236 = __objc_msgSend_236Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -6427,26 +6449,6 @@ class SentryCocoa { late final _sel_checkPromisedItemIsReachableAndReturnError_1 = _registerName1("checkPromisedItemIsReachableAndReturnError:"); - bool _objc_msgSend_236( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer> error, - ) { - return __objc_msgSend_236( - obj, - sel, - error, - ); - } - - late final __objc_msgSend_236Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_236 = __objc_msgSend_236Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>(); - late final _sel_fileURLWithPathComponents_1 = _registerName1("fileURLWithPathComponents:"); ffi.Pointer _objc_msgSend_237( @@ -6482,8 +6484,6 @@ class SentryCocoa { _registerName1("URLByAppendingPathExtension:"); late final _sel_URLByDeletingPathExtension1 = _registerName1("URLByDeletingPathExtension"); - late final _sel_checkResourceIsReachableAndReturnError_1 = - _registerName1("checkResourceIsReachableAndReturnError:"); late final _sel_URLByStandardizingPath1 = _registerName1("URLByStandardizingPath"); late final _sel_URLByResolvingSymlinksInPath1 = @@ -22996,8 +22996,6 @@ class SentryCocoa { _registerName1("prefersIncrementalDelivery"); late final _sel_setPrefersIncrementalDelivery_1 = _registerName1("setPrefersIncrementalDelivery:"); - late final _sel_getGraphQLOperationName1 = - _registerName1("getGraphQLOperationName"); late final _sel_storeCookies_forTask_1 = _registerName1("storeCookies:forTask:"); void _objc_msgSend_804( @@ -28723,10 +28721,6 @@ class SentryCocoa { late final _sel_currentDirectoryURL1 = _registerName1("currentDirectoryURL"); late final _sel_setCurrentDirectoryURL_1 = _registerName1("setCurrentDirectoryURL:"); - late final _sel_launchRequirementData1 = - _registerName1("launchRequirementData"); - late final _sel_setLaunchRequirementData_1 = - _registerName1("setLaunchRequirementData:"); late final _sel_standardInput1 = _registerName1("standardInput"); late final _sel_setStandardInput_1 = _registerName1("setStandardInput:"); late final _sel_standardOutput1 = _registerName1("standardOutput"); @@ -30071,6 +30065,8 @@ class SentryCocoa { _registerName1("appStartMeasurementHybridSDKMode"); late final _sel_setAppStartMeasurementHybridSDKMode_1 = _registerName1("setAppStartMeasurementHybridSDKMode:"); + late final _sel_appStartMeasurementWithSpans1 = + _registerName1("appStartMeasurementWithSpans"); late final _class_SentryUser1 = _getClass1("SentryUser"); late final _sel_userWithDictionary_1 = _registerName1("userWithDictionary:"); ffi.Pointer _objc_msgSend_1060( @@ -30664,7 +30660,7 @@ class NSObject extends _ObjCWrapper { bool validateValue_forKey_error_(ffi.Pointer> ioValue, NSString? inKey, ffi.Pointer> outError) { - return _lib._objc_msgSend_225(_id, _lib._sel_validateValue_forKey_error_1, + return _lib._objc_msgSend_226(_id, _lib._sel_validateValue_forKey_error_1, ioValue, inKey?._id ?? ffi.nullptr, outError); } @@ -30701,7 +30697,7 @@ class NSObject extends _ObjCWrapper { ffi.Pointer> ioValue, NSString? inKeyPath, ffi.Pointer> outError) { - return _lib._objc_msgSend_225( + return _lib._objc_msgSend_226( _id, _lib._sel_validateValue_forKeyPath_error_1, ioValue, @@ -34813,6 +34809,12 @@ class NSURL extends NSObject { : NSURL._(_ret, _lib, retain: true, release: true); } + bool checkResourceIsReachableAndReturnError_( + ffi.Pointer> error) { + return _lib._objc_msgSend_225( + _id, _lib._sel_checkResourceIsReachableAndReturnError_1, error); + } + bool isFileReferenceURL() { return _lib._objc_msgSend_12(_id, _lib._sel_isFileReferenceURL1); } @@ -34833,13 +34835,13 @@ class NSURL extends NSObject { ffi.Pointer> value, NSString key, ffi.Pointer> error) { - return _lib._objc_msgSend_225( + return _lib._objc_msgSend_226( _id, _lib._sel_getResourceValue_forKey_error_1, value, key._id, error); } NSObject resourceValuesForKeys_error_( NSArray? keys, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_226( + final _ret = _lib._objc_msgSend_227( _id, _lib._sel_resourceValuesForKeys_error_1, keys?._id ?? ffi.nullptr, @@ -34849,13 +34851,13 @@ class NSURL extends NSObject { bool setResourceValue_forKey_error_(NSObject value, NSString key, ffi.Pointer> error) { - return _lib._objc_msgSend_227(_id, + return _lib._objc_msgSend_228(_id, _lib._sel_setResourceValue_forKey_error_1, value._id, key._id, error); } bool setResourceValues_error_( NSObject? keyedValues, ffi.Pointer> error) { - return _lib._objc_msgSend_228(_id, _lib._sel_setResourceValues_error_1, + return _lib._objc_msgSend_229(_id, _lib._sel_setResourceValues_error_1, keyedValues?._id ?? ffi.nullptr, error); } @@ -34879,7 +34881,7 @@ class NSURL extends NSObject { NSArray? keys, NSURL? relativeURL, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_229( + final _ret = _lib._objc_msgSend_230( _id, _lib._sel_bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_1, options, @@ -34896,7 +34898,7 @@ class NSURL extends NSObject { NSURL? relativeURL, ffi.Pointer isStale, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_230( + final _ret = _lib._objc_msgSend_231( _id, _lib._sel_initByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, bookmarkData?._id ?? ffi.nullptr, @@ -34915,7 +34917,7 @@ class NSURL extends NSObject { NSURL? relativeURL, ffi.Pointer isStale, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_230( + final _ret = _lib._objc_msgSend_231( _lib._class_NSURL1, _lib._sel_URLByResolvingBookmarkData_options_relativeToURL_bookmarkDataIsStale_error_1, bookmarkData?._id ?? ffi.nullptr, @@ -34928,7 +34930,7 @@ class NSURL extends NSObject { static NSObject resourceValuesForKeys_fromBookmarkData_( SentryCocoa _lib, NSArray? keys, NSData? bookmarkData) { - final _ret = _lib._objc_msgSend_231( + final _ret = _lib._objc_msgSend_232( _lib._class_NSURL1, _lib._sel_resourceValuesForKeys_fromBookmarkData_1, keys?._id ?? ffi.nullptr, @@ -34942,7 +34944,7 @@ class NSURL extends NSObject { NSURL? bookmarkFileURL, int options, ffi.Pointer> error) { - return _lib._objc_msgSend_232( + return _lib._objc_msgSend_233( _lib._class_NSURL1, _lib._sel_writeBookmarkData_toURL_options_error_1, bookmarkData?._id ?? ffi.nullptr, @@ -34953,7 +34955,7 @@ class NSURL extends NSObject { static NSData bookmarkDataWithContentsOfURL_error_(SentryCocoa _lib, NSURL? bookmarkFileURL, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_233( + final _ret = _lib._objc_msgSend_234( _lib._class_NSURL1, _lib._sel_bookmarkDataWithContentsOfURL_error_1, bookmarkFileURL?._id ?? ffi.nullptr, @@ -34963,7 +34965,7 @@ class NSURL extends NSObject { static NSURL URLByResolvingAliasFileAtURL_options_error_(SentryCocoa _lib, NSURL? url, int options, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_234( + final _ret = _lib._objc_msgSend_235( _lib._class_NSURL1, _lib._sel_URLByResolvingAliasFileAtURL_options_error_1, url?._id ?? ffi.nullptr, @@ -34985,7 +34987,7 @@ class NSURL extends NSObject { ffi.Pointer> value, NSString key, ffi.Pointer> error) { - return _lib._objc_msgSend_225( + return _lib._objc_msgSend_226( _id, _lib._sel_getPromisedItemResourceValue_forKey_error_1, value, @@ -34995,7 +34997,7 @@ class NSURL extends NSObject { NSDictionary promisedItemResourceValuesForKeys_error_( NSArray? keys, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_235( + final _ret = _lib._objc_msgSend_236( _id, _lib._sel_promisedItemResourceValuesForKeys_error_1, keys?._id ?? ffi.nullptr, @@ -35005,7 +35007,7 @@ class NSURL extends NSObject { bool checkPromisedItemIsReachableAndReturnError_( ffi.Pointer> error) { - return _lib._objc_msgSend_236( + return _lib._objc_msgSend_225( _id, _lib._sel_checkPromisedItemIsReachableAndReturnError_1, error); } @@ -35079,12 +35081,6 @@ class NSURL extends NSObject { : NSURL._(_ret, _lib, retain: true, release: true); } - bool checkResourceIsReachableAndReturnError_( - ffi.Pointer> error) { - return _lib._objc_msgSend_236( - _id, _lib._sel_checkResourceIsReachableAndReturnError_1, error); - } - NSURL? get URLByStandardizingPath { final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URLByStandardizingPath1); return _ret.address == 0 @@ -37673,7 +37669,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) @@ -42117,15 +42114,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; @@ -52181,12 +52180,12 @@ class NSBundle extends NSObject { } bool preflightAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_236( + return _lib._objc_msgSend_225( _id, _lib._sel_preflightAndReturnError_1, error); } bool loadAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_236(_id, _lib._sel_loadAndReturnError_1, error); + return _lib._objc_msgSend_225(_id, _lib._sel_loadAndReturnError_1, error); } NSURL? get bundleURL { @@ -57375,12 +57374,12 @@ class NSFileHandle extends NSObject { } bool synchronizeAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_236( + return _lib._objc_msgSend_225( _id, _lib._sel_synchronizeAndReturnError_1, error); } bool closeAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_236(_id, _lib._sel_closeAndReturnError_1, error); + return _lib._objc_msgSend_225(_id, _lib._sel_closeAndReturnError_1, error); } static NSFileHandle? getFileHandleWithStandardInput(SentryCocoa _lib) { @@ -58360,11 +58359,6 @@ class NSURLSessionTask extends NSObject { return NSURLSessionTask._(_ret, _lib, retain: false, release: true); } - NSString getGraphQLOperationName() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_getGraphQLOperationName1); - return NSString._(_ret, _lib, retain: true, release: true); - } - static NSURLSessionTask allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( @@ -68296,18 +68290,6 @@ class NSTask extends NSObject { _id, _lib._sel_setCurrentDirectoryURL_1, value?._id ?? ffi.nullptr); } - NSData? get launchRequirementData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_launchRequirementData1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - set launchRequirementData(NSData? value) { - return _lib._objc_msgSend_939( - _id, _lib._sel_setLaunchRequirementData_1, value?._id ?? ffi.nullptr); - } - NSObject get standardInput { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardInput1); return NSObject._(_ret, _lib, retain: true, release: true); @@ -68337,7 +68319,7 @@ class NSTask extends NSObject { } bool launchAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_236(_id, _lib._sel_launchAndReturnError_1, error); + return _lib._objc_msgSend_225(_id, _lib._sel_launchAndReturnError_1, error); } void interrupt() { @@ -69754,7 +69736,7 @@ class NSXMLDocument extends NSXMLNode { } bool validateAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_236( + return _lib._objc_msgSend_225( _id, _lib._sel_validateAndReturnError_1, error); } @@ -70898,6 +70880,12 @@ class PrivateSentrySDKOnly extends NSObject { _lib._sel_setAppStartMeasurementHybridSDKMode_1, value); } + static NSDictionary appStartMeasurementWithSpans(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_170(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_appStartMeasurementWithSpans1); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + static SentryUser userWithDictionary_( SentryCocoa _lib, NSDictionary? dictionary) { final _ret = _lib._objc_msgSend_1060(_lib._class_PrivateSentrySDKOnly1, From b00ffa824d61161a5f540868b5ed284c7f28c5ef Mon Sep 17 00:00:00 2001 From: GIancarlo Buenaflor Date: Mon, 10 Jun 2024 11:25:53 +0200 Subject: [PATCH 2/2] Format --- flutter/lib/src/native/cocoa/binding.dart | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/flutter/lib/src/native/cocoa/binding.dart b/flutter/lib/src/native/cocoa/binding.dart index 6b3dfc9b18..b044047dc1 100644 --- a/flutter/lib/src/native/cocoa/binding.dart +++ b/flutter/lib/src/native/cocoa/binding.dart @@ -37669,8 +37669,7 @@ 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) @@ -42114,17 +42113,15 @@ 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;