From 8842d1fec671a36467a03c259eef8992666118e4 Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Mon, 15 Jun 2026 11:46:11 -0700 Subject: [PATCH 1/5] feat(flutter)!: Bump sentry-cocoa to 9.17.1 Bump the embedded sentry-cocoa SDK from 8.58.3 to the latest 9.x. Raise the minimum deployment targets to iOS 15 and macOS 12, as required by sentry-cocoa 9. Migrate native code to the cocoa 9 API surface: - Drop the removed `enableSessionReplayInUnreliableEnvironment` option - Drop the removed `PrivateSentrySDKOnly.options.integrations` accessor - Replace `PrivateSentrySDKOnly.getDebugImages()` with `debugImageProvider.getDebugImagesFromCache()` - Format image addresses in Swift instead of the removed `sentry_formatHexAddressUInt64` - Drop the obsolete `Sentry._Hybrid` submodule imports - Build replay events via `SentrySRDefaultBreadcrumbConverter`, `SentryRRWebBreadcrumbEvent`, and `SentryRRWebSpanEvent` Regenerate the FFI binding: PrivateSentrySDKOnly.h moved into Headers/ and SentryId is now generated as a full interface, so the SentryId1/sed workaround is removed. Add scripts/build-macos-example.sh (and a melos build:macos-example alias) to build the macOS example, working around Flutter deriving the SwiftPM package identity from the plugin directory basename. BREAKING CHANGE: minimum supported versions are now iOS 15 and macOS 12. Co-Authored-By: Claude Opus 4.8 (1M context) --- CONTRIBUTING.md | 22 + melos.yaml | 8 + packages/flutter/example/ios/Podfile | 4 +- .../ios/Runner.xcodeproj/project.pbxproj | 18 +- .../xcshareddata/swiftpm/Package.resolved | 4 +- .../xcshareddata/swiftpm/Package.resolved | 4 +- packages/flutter/example/macos/Podfile | 4 +- .../macos/Runner.xcodeproj/project.pbxproj | 6 +- .../xcshareddata/swiftpm/Package.resolved | 4 +- .../xcshareddata/swiftpm/Package.resolved | 4 +- packages/flutter/ffi-cocoa.yaml | 5 +- packages/flutter/ios/sentry_flutter.podspec | 6 +- .../flutter/ios/sentry_flutter/Package.swift | 6 +- .../sentry_flutter/SentryFlutter.swift | 4 - .../sentry_flutter/SentryFlutterPlugin.swift | 10 +- .../SentryFlutterReplayBreadcrumbConverter.m | 31 +- .../SentryFlutterReplayScreenshotProvider.m | 4 - .../flutter/lib/src/native/cocoa/binding.dart | 51778 +++++++++------- .../src/native/cocoa/sentry_native_cocoa.dart | 2 +- .../scripts/generate-cocoa-bindings.sh | 2 - scripts/build-macos-example.sh | 38 + 21 files changed, 30625 insertions(+), 21339 deletions(-) create mode 100755 scripts/build-macos-example.sh diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 317c31f661..6069a03eba 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -76,6 +76,28 @@ The Flutter SDK supports the following platforms: We test the example app on Windows, macOS, and Linux to ensure cross-platform compatibility. CI runs against Flutter `stable` and `beta` channels. +### Building the macOS example + +On macOS, Flutter derives the local SwiftPM package identity from the plugin's directory basename +(`flutter`) rather than its pub name (`sentry_flutter`), so `flutter build macos` from +`packages/flutter/example` fails with: + +``` +unable to override package 'sentry_flutter' because its identity 'flutter' +doesn't match override's identity (directory name) 'sentry_flutter' +``` + +Use the helper script (or its melos alias), which temporarily renames the package directory to +`sentry_flutter`, builds, then restores it: + +```bash +melos run build:macos-example +# or, forwarding extra flags to `flutter build macos`: +./scripts/build-macos-example.sh --debug +``` + +This only affects the macOS example build; iOS is unaffected. + ## Native SDK Dependencies The Flutter SDK embeds platform-specific native SDKs: diff --git a/melos.yaml b/melos.yaml index 15bbd20139..f43d60e517 100644 --- a/melos.yaml +++ b/melos.yaml @@ -54,6 +54,14 @@ scripts: flutter: true dirExists: test + build:macos-example: + run: ./scripts/build-macos-example.sh --debug + description: > + Build the Flutter example for macOS. Temporarily renames packages/flutter + to packages/sentry_flutter so the SwiftPM package identity matches the pub + name on macOS, then restores it. Append extra `flutter build macos` flags + after `--`. + # Lifecycle script, executed as part of `melos clean`. postclean: melos exec --flutter -- "flutter clean" diff --git a/packages/flutter/example/ios/Podfile b/packages/flutter/example/ios/Podfile index 4a126a74a2..4c14dc2587 100644 --- a/packages/flutter/example/ios/Podfile +++ b/packages/flutter/example/ios/Podfile @@ -1,5 +1,5 @@ # Uncomment this line to define a global platform for your project -platform :ios, '13.0' +platform :ios, '15.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' @@ -44,7 +44,7 @@ post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) target.build_configurations.each do |config| - config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0' + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0' end end end diff --git a/packages/flutter/example/ios/Runner.xcodeproj/project.pbxproj b/packages/flutter/example/ios/Runner.xcodeproj/project.pbxproj index 8db4f821b8..61196acf8a 100644 --- a/packages/flutter/example/ios/Runner.xcodeproj/project.pbxproj +++ b/packages/flutter/example/ios/Runner.xcodeproj/project.pbxproj @@ -472,7 +472,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -495,7 +495,7 @@ "$(PROJECT_DIR)/Flutter", ); INFOPLIST_FILE = Runner/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -527,7 +527,7 @@ DEVELOPMENT_TEAM = 97JCY7859U; GCC_C_LANGUAGE_STANDARD = gnu11; GENERATE_INFOPLIST_FILE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; @@ -557,7 +557,7 @@ DEVELOPMENT_TEAM = 97JCY7859U; GCC_C_LANGUAGE_STANDARD = gnu11; GENERATE_INFOPLIST_FILE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = io.sentry.flutter.sample.RunnerTests; @@ -584,7 +584,7 @@ DEVELOPMENT_TEAM = 97JCY7859U; GCC_C_LANGUAGE_STANDARD = gnu11; GENERATE_INFOPLIST_FILE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; MARKETING_VERSION = 1.0; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = io.sentry.flutter.sample.RunnerTests; @@ -644,7 +644,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -694,7 +694,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -719,7 +719,7 @@ "$(PROJECT_DIR)/Flutter", ); INFOPLIST_FILE = Runner/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -752,7 +752,7 @@ "$(PROJECT_DIR)/Flutter", ); INFOPLIST_FILE = Runner/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/packages/flutter/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/packages/flutter/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 1177430c0f..af4032adc6 100644 --- a/packages/flutter/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/packages/flutter/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -13,8 +13,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/getsentry/sentry-cocoa", "state" : { - "revision" : "cf44aa8cb4147f39e698c1f28be0b6b2c89f79d2", - "version" : "8.58.2" + "revision" : "2c420d31d0c31b525fa9e7c552ef0fc9d924befc", + "version" : "9.17.1" } } ], diff --git a/packages/flutter/example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved b/packages/flutter/example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved index 1177430c0f..af4032adc6 100644 --- a/packages/flutter/example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/packages/flutter/example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -13,8 +13,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/getsentry/sentry-cocoa", "state" : { - "revision" : "cf44aa8cb4147f39e698c1f28be0b6b2c89f79d2", - "version" : "8.58.2" + "revision" : "2c420d31d0c31b525fa9e7c552ef0fc9d924befc", + "version" : "9.17.1" } } ], diff --git a/packages/flutter/example/macos/Podfile b/packages/flutter/example/macos/Podfile index 04ed3562bb..c99665bb4e 100644 --- a/packages/flutter/example/macos/Podfile +++ b/packages/flutter/example/macos/Podfile @@ -1,4 +1,4 @@ -platform :osx, '10.15' +platform :osx, '12.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' @@ -37,7 +37,7 @@ post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_macos_build_settings(target) target.build_configurations.each do |config| - config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '10.15' + config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '12.0' end end end diff --git a/packages/flutter/example/macos/Runner.xcodeproj/project.pbxproj b/packages/flutter/example/macos/Runner.xcodeproj/project.pbxproj index 18ff62e7d0..8eef222fc6 100644 --- a/packages/flutter/example/macos/Runner.xcodeproj/project.pbxproj +++ b/packages/flutter/example/macos/Runner.xcodeproj/project.pbxproj @@ -412,7 +412,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; + MACOSX_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; @@ -494,7 +494,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; + MACOSX_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; @@ -541,7 +541,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; + MACOSX_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; diff --git a/packages/flutter/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/packages/flutter/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 1177430c0f..af4032adc6 100644 --- a/packages/flutter/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/packages/flutter/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -13,8 +13,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/getsentry/sentry-cocoa", "state" : { - "revision" : "cf44aa8cb4147f39e698c1f28be0b6b2c89f79d2", - "version" : "8.58.2" + "revision" : "2c420d31d0c31b525fa9e7c552ef0fc9d924befc", + "version" : "9.17.1" } } ], diff --git a/packages/flutter/example/macos/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved b/packages/flutter/example/macos/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved index 1177430c0f..af4032adc6 100644 --- a/packages/flutter/example/macos/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/packages/flutter/example/macos/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -13,8 +13,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/getsentry/sentry-cocoa", "state" : { - "revision" : "cf44aa8cb4147f39e698c1f28be0b6b2c89f79d2", - "version" : "8.58.2" + "revision" : "2c420d31d0c31b525fa9e7c552ef0fc9d924befc", + "version" : "9.17.1" } } ], diff --git a/packages/flutter/ffi-cocoa.yaml b/packages/flutter/ffi-cocoa.yaml index 3fa0174ee2..bc81795671 100644 --- a/packages/flutter/ffi-cocoa.yaml +++ b/packages/flutter/ffi-cocoa.yaml @@ -4,8 +4,9 @@ language: objc output: lib/src/native/cocoa/binding.dart headers: entry-points: - - ./temp/Sentry.framework/PrivateHeaders/PrivateSentrySDKOnly.h + - ./temp/Sentry.framework/Headers/PrivateSentrySDKOnly.h - ./temp/Sentry.framework/Headers/Sentry-Swift.h + - ./temp/Sentry.framework/Headers/SentryId.h compiler-opts: - -DSENTRY_TARGET_PROFILING_SUPPORTED=1 - -DCOCOAPODS=1 @@ -16,5 +17,3 @@ objc-interfaces: include: - PrivateSentrySDKOnly - SentryId - module: - 'SentryId': 'Sentry' diff --git a/packages/flutter/ios/sentry_flutter.podspec b/packages/flutter/ios/sentry_flutter.podspec index 0dcdbcfda1..16347c45d2 100644 --- a/packages/flutter/ios/sentry_flutter.podspec +++ b/packages/flutter/ios/sentry_flutter.podspec @@ -16,11 +16,11 @@ Sentry SDK for Flutter with support to native through sentry-cocoa. :tag => s.version.to_s } s.source_files = 'sentry_flutter/Sources/**/*' s.public_header_files = 'sentry_flutter/Sources/**/*.h' - s.dependency 'Sentry/HybridSDK', '8.58.3' + s.dependency 'Sentry/HybridSDK', '9.17.1' s.ios.dependency 'Flutter' s.osx.dependency 'FlutterMacOS' - s.ios.deployment_target = '12.0' - s.osx.deployment_target = '10.14' + s.ios.deployment_target = '15.0' + s.osx.deployment_target = '12.0' # Flutter.framework does not contain a i386 slice. s.ios.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => '$(inherited) i386' } diff --git a/packages/flutter/ios/sentry_flutter/Package.swift b/packages/flutter/ios/sentry_flutter/Package.swift index 751c2e9ea3..3e4adfd99f 100644 --- a/packages/flutter/ios/sentry_flutter/Package.swift +++ b/packages/flutter/ios/sentry_flutter/Package.swift @@ -6,14 +6,14 @@ import PackageDescription let package = Package( name: "sentry_flutter", platforms: [ - .iOS("12.0"), - .macOS("10.14") + .iOS("15.0"), + .macOS("12.0") ], products: [ .library(name: "sentry-flutter", targets: ["sentry_flutter", "sentry_flutter_objc"]) ], dependencies: [ - .package(url: "https://github.com/getsentry/sentry-cocoa", exact: "8.58.3") + .package(url: "https://github.com/getsentry/sentry-cocoa", exact: "9.17.1") ], targets: [ .target( diff --git a/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter/SentryFlutter.swift b/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter/SentryFlutter.swift index 94c6d506cf..1188bce573 100644 --- a/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter/SentryFlutter.swift +++ b/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter/SentryFlutter.swift @@ -138,10 +138,6 @@ public final class SentryFlutter { "version": flutterSdk["version"] ], forKey: "sdkInfo") } - - // Sentry Flutter handles its own screenshot capture and masking in Dart, - // so it's not affected by Liquid Glass masking issues on iOS 26+. - options.experimental.enableSessionReplayInUnreliableEnvironment = true } #endif } diff --git a/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter/SentryFlutterPlugin.swift b/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter/SentryFlutterPlugin.swift index e30d522160..c2d34bca8b 100644 --- a/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter/SentryFlutterPlugin.swift +++ b/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter/SentryFlutterPlugin.swift @@ -1,7 +1,6 @@ @_spi(Private) import Sentry #if SWIFT_PACKAGE -import Sentry._Hybrid import sentry_flutter_objc #endif @@ -215,10 +214,6 @@ public class SentryFlutterPlugin: NSObject, FlutterPlugin { infos["user"] = ["id": PrivateSentrySDKOnly.installationID] } - if let integrations = PrivateSentrySDKOnly.options.integrations { - infos["integrations"] = integrations.filter { $0 != "SentrySessionReplayIntegration" } - } - #if SENTRY_FLUTTER_SPM infos["features"] = ["SwiftPackageManager"] #else @@ -277,7 +272,7 @@ public class SentryFlutterPlugin: NSObject, FlutterPlugin { let image = SentryDependencyContainer.sharedInstance().binaryImageCache .imageByAddress(instructionAddress) if let image = image { - let imageAddress = sentry_formatHexAddressUInt64(image.address)! + let imageAddress = String(format: "0x%016llx", image.address) imagesAddresses.insert(imageAddress) } } @@ -287,7 +282,8 @@ public class SentryFlutterPlugin: NSObject, FlutterPlugin { .getDebugImagesForImageAddressesFromCache(imageAddresses: imagesAddresses) as [DebugMeta] } if debugImages.isEmpty { - debugImages = PrivateSentrySDKOnly.getDebugImages() as [DebugMeta] + debugImages = SentryDependencyContainer.sharedInstance().debugImageProvider + .getDebugImagesFromCache() as [DebugMeta] } result(debugImages.map { $0.serialize() }) diff --git a/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter_objc/SentryFlutterReplayBreadcrumbConverter.m b/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter_objc/SentryFlutterReplayBreadcrumbConverter.m index 060bbbd80a..368f696531 100644 --- a/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter_objc/SentryFlutterReplayBreadcrumbConverter.m +++ b/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter_objc/SentryFlutterReplayBreadcrumbConverter.m @@ -2,10 +2,6 @@ @import Sentry; -#if SWIFT_PACKAGE -@import Sentry._Hybrid; -#endif - #if SENTRY_TARGET_REPLAY_SUPPORTED @implementation SentryFlutterReplayBreadcrumbConverter { @@ -14,8 +10,7 @@ @implementation SentryFlutterReplayBreadcrumbConverter { - (instancetype _Nonnull)init { if (self = [super init]) { - self->defaultConverter = - [SentrySessionReplayIntegration createDefaultBreadcrumbConverter]; + self->defaultConverter = [[SentrySRDefaultBreadcrumbConverter alloc] init]; } return self; } @@ -64,12 +59,12 @@ - (instancetype _Nonnull)init { (SentryBreadcrumb *_Nonnull)breadcrumb withCategory:(NSString *)category andMessage:(NSString *)message { - return [SentrySessionReplayIntegration - createBreadcrumbwithTimestamp:breadcrumb.timestamp - category:category ?: breadcrumb.category - message:message ?: breadcrumb.message - level:breadcrumb.level - data:breadcrumb.data]; + return [[SentryRRWebBreadcrumbEvent alloc] + initWithTimestamp:breadcrumb.timestamp + category:category ?: breadcrumb.category + message:message ?: breadcrumb.message + level:breadcrumb.level + data:breadcrumb.data]; } - (id _Nullable)convertNetwork: @@ -104,12 +99,12 @@ - (instancetype _Nonnull)init { data[@"responseBodySize"] = breadcrumb.data[@"response_body_size"]; } - return [SentrySessionReplayIntegration - createNetworkBreadcrumbWithTimestamp:[self dateFrom:startTimestamp] - endTimestamp:[self dateFrom:endTimestamp] - operation:@"resource.http" - description:url - data:data]; + return [[SentryRRWebSpanEvent alloc] + initWithTimestamp:[self dateFrom:startTimestamp] + endTimestamp:[self dateFrom:endTimestamp] + operation:@"resource.http" + description:url + data:data]; } - (NSDate *_Nonnull)dateFrom:(NSNumber *_Nonnull)timestamp { diff --git a/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter_objc/SentryFlutterReplayScreenshotProvider.m b/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter_objc/SentryFlutterReplayScreenshotProvider.m index e22f4f9df6..eda60a7997 100644 --- a/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter_objc/SentryFlutterReplayScreenshotProvider.m +++ b/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter_objc/SentryFlutterReplayScreenshotProvider.m @@ -1,9 +1,5 @@ @import Sentry; -#if SWIFT_PACKAGE -@import Sentry._Hybrid; -#endif - #if SENTRY_TARGET_REPLAY_SUPPORTED #import "SentryFlutterReplayScreenshotProvider.h" #import diff --git a/packages/flutter/lib/src/native/cocoa/binding.dart b/packages/flutter/lib/src/native/cocoa/binding.dart index b1402c5ae3..6a4cad7d0d 100644 --- a/packages/flutter/lib/src/native/cocoa/binding.dart +++ b/packages/flutter/lib/src/native/cocoa/binding.dart @@ -3625,7 +3625,7 @@ class SentryCocoa { ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicateFormat, - ffi.Pointer<__va_list_tag> argList, + ffi.Pointer argList, ) { return __objc_msgSend_135( obj, @@ -3641,13 +3641,13 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_135 = __objc_msgSend_135Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<__va_list_tag>)>(); + ffi.Pointer)>(); late final _sel_predicateFromMetadataQueryString_1 = _registerName1("predicateFromMetadataQueryString:"); @@ -9586,7 +9586,7 @@ class SentryCocoa { ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, - ffi.Pointer<__va_list_tag> argList, + ffi.Pointer argList, ) { return __objc_msgSend_350( obj, @@ -9598,14 +9598,11 @@ class SentryCocoa { late final __objc_msgSend_350Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_350 = __objc_msgSend_350Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<__va_list_tag>)>(); + ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithFormat_locale_1 = _registerName1("initWithFormat:locale:"); @@ -9616,7 +9613,7 @@ class SentryCocoa { ffi.Pointer sel, ffi.Pointer format, ffi.Pointer locale, - ffi.Pointer<__va_list_tag> argList, + ffi.Pointer argList, ) { return __objc_msgSend_351( obj, @@ -9634,14 +9631,14 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_351 = __objc_msgSend_351Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<__va_list_tag>)>(); + ffi.Pointer)>(); late final _sel_initWithValidatedFormat_validFormatSpecifiers_error_1 = _registerName1("initWithValidatedFormat:validFormatSpecifiers:error:"); @@ -9724,7 +9721,7 @@ class SentryCocoa { ffi.Pointer sel, ffi.Pointer format, ffi.Pointer validFormatSpecifiers, - ffi.Pointer<__va_list_tag> argList, + ffi.Pointer argList, ffi.Pointer> error, ) { return __objc_msgSend_354( @@ -9744,7 +9741,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<__va_list_tag>, + ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_354 = __objc_msgSend_354Ptr.asFunction< instancetype Function( @@ -9752,7 +9749,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<__va_list_tag>, + ffi.Pointer, ffi.Pointer>)>(); late final _sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1 = @@ -9764,7 +9761,7 @@ class SentryCocoa { ffi.Pointer format, ffi.Pointer validFormatSpecifiers, ffi.Pointer locale, - ffi.Pointer<__va_list_tag> argList, + ffi.Pointer argList, ffi.Pointer> error, ) { return __objc_msgSend_355( @@ -9786,7 +9783,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<__va_list_tag>, + ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_355 = __objc_msgSend_355Ptr.asFunction< instancetype Function( @@ -9795,7 +9792,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<__va_list_tag>, + ffi.Pointer, ffi.Pointer>)>(); late final _sel_initWithData_encoding_1 = @@ -12318,8 +12315,8 @@ class SentryCocoa { late final _sel_ubiquityIdentityToken1 = _registerName1("ubiquityIdentityToken"); - late final _sel_getFileProviderServicesForItemAtURL_completionHandler_1 = - _registerName1("getFileProviderServicesForItemAtURL:completionHandler:"); + late final _sel_pauseSyncForUbiquitousItemAtURL_completionHandler_1 = + _registerName1("pauseSyncForUbiquitousItemAtURL:completionHandler:"); void _objc_msgSend_437( ffi.Pointer obj, ffi.Pointer sel, @@ -12345,6 +12342,415 @@ class SentryCocoa { void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + late final _sel_resumeSyncForUbiquitousItemAtURL_withBehavior_completionHandler_1 = + _registerName1( + "resumeSyncForUbiquitousItemAtURL:withBehavior:completionHandler:"); + void _objc_msgSend_438( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + int behavior, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_438( + obj, + sel, + url, + behavior, + completionHandler, + ); + } + + late final __objc_msgSend_438Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_438 = __objc_msgSend_438Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _class_NSFileVersion1 = _getClass1("NSFileVersion"); + late final _sel_currentVersionOfItemAtURL_1 = + _registerName1("currentVersionOfItemAtURL:"); + ffi.Pointer _objc_msgSend_439( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ) { + return __objc_msgSend_439( + obj, + sel, + url, + ); + } + + late final __objc_msgSend_439Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_439 = __objc_msgSend_439Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_otherVersionsOfItemAtURL_1 = + _registerName1("otherVersionsOfItemAtURL:"); + late final _sel_unresolvedConflictVersionsOfItemAtURL_1 = + _registerName1("unresolvedConflictVersionsOfItemAtURL:"); + late final _sel_getNonlocalVersionsOfItemAtURL_completionHandler_1 = + _registerName1("getNonlocalVersionsOfItemAtURL:completionHandler:"); + void _objc_msgSend_440( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_440( + obj, + sel, + url, + completionHandler, + ); + } + + late final __objc_msgSend_440Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_440 = __objc_msgSend_440Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_versionOfItemAtURL_forPersistentIdentifier_1 = + _registerName1("versionOfItemAtURL:forPersistentIdentifier:"); + ffi.Pointer _objc_msgSend_441( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer persistentIdentifier, + ) { + return __objc_msgSend_441( + obj, + sel, + url, + persistentIdentifier, + ); + } + + late final __objc_msgSend_441Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_441 = __objc_msgSend_441Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_addVersionOfItemAtURL_withContentsOfURL_options_error_1 = + _registerName1("addVersionOfItemAtURL:withContentsOfURL:options:error:"); + ffi.Pointer _objc_msgSend_442( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer contentsURL, + int options, + ffi.Pointer> outError, + ) { + return __objc_msgSend_442( + obj, + sel, + url, + contentsURL, + options, + outError, + ); + } + + late final __objc_msgSend_442Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_442 = __objc_msgSend_442Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_temporaryDirectoryURLForNewVersionOfItemAtURL_1 = + _registerName1("temporaryDirectoryURLForNewVersionOfItemAtURL:"); + ffi.Pointer _objc_msgSend_443( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ) { + return __objc_msgSend_443( + obj, + sel, + url, + ); + } + + late final __objc_msgSend_443Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_443 = __objc_msgSend_443Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_URL1 = _registerName1("URL"); + late final _sel_localizedName1 = _registerName1("localizedName"); + late final _sel_localizedNameOfSavingComputer1 = + _registerName1("localizedNameOfSavingComputer"); + late final _class_NSPersonNameComponents1 = + _getClass1("NSPersonNameComponents"); + late final _sel_namePrefix1 = _registerName1("namePrefix"); + late final _sel_setNamePrefix_1 = _registerName1("setNamePrefix:"); + void _objc_msgSend_444( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_444( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_444Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_444 = __objc_msgSend_444Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_givenName1 = _registerName1("givenName"); + late final _sel_setGivenName_1 = _registerName1("setGivenName:"); + late final _sel_middleName1 = _registerName1("middleName"); + late final _sel_setMiddleName_1 = _registerName1("setMiddleName:"); + late final _sel_familyName1 = _registerName1("familyName"); + late final _sel_setFamilyName_1 = _registerName1("setFamilyName:"); + late final _sel_nameSuffix1 = _registerName1("nameSuffix"); + late final _sel_setNameSuffix_1 = _registerName1("setNameSuffix:"); + late final _sel_nickname1 = _registerName1("nickname"); + late final _sel_setNickname_1 = _registerName1("setNickname:"); + late final _sel_phoneticRepresentation1 = + _registerName1("phoneticRepresentation"); + ffi.Pointer _objc_msgSend_445( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_445( + obj, + sel, + ); + } + + late final __objc_msgSend_445Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_445 = __objc_msgSend_445Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setPhoneticRepresentation_1 = + _registerName1("setPhoneticRepresentation:"); + void _objc_msgSend_446( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_446( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_446Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_446 = __objc_msgSend_446Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_originatorNameComponents1 = + _registerName1("originatorNameComponents"); + late final _sel_modificationDate1 = _registerName1("modificationDate"); + late final _sel_persistentIdentifier1 = + _registerName1("persistentIdentifier"); + late final _sel_isConflict1 = _registerName1("isConflict"); + late final _sel_isResolved1 = _registerName1("isResolved"); + late final _sel_setResolved_1 = _registerName1("setResolved:"); + void _objc_msgSend_447( + ffi.Pointer obj, + ffi.Pointer sel, + bool value, + ) { + return __objc_msgSend_447( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_447Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_447 = __objc_msgSend_447Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, bool)>(); + + late final _sel_isDiscardable1 = _registerName1("isDiscardable"); + late final _sel_setDiscardable_1 = _registerName1("setDiscardable:"); + late final _sel_hasLocalContents1 = _registerName1("hasLocalContents"); + late final _sel_hasThumbnail1 = _registerName1("hasThumbnail"); + late final _sel_replaceItemAtURL_options_error_1 = + _registerName1("replaceItemAtURL:options:error:"); + ffi.Pointer _objc_msgSend_448( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + int options, + ffi.Pointer> error, + ) { + return __objc_msgSend_448( + obj, + sel, + url, + options, + error, + ); + } + + late final __objc_msgSend_448Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_448 = __objc_msgSend_448Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); + + late final _sel_removeAndReturnError_1 = + _registerName1("removeAndReturnError:"); + late final _sel_removeOtherVersionsOfItemAtURL_error_1 = + _registerName1("removeOtherVersionsOfItemAtURL:error:"); + late final _sel_fetchLatestRemoteVersionOfItemAtURL_completionHandler_1 = + _registerName1("fetchLatestRemoteVersionOfItemAtURL:completionHandler:"); + void _objc_msgSend_449( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_449( + obj, + sel, + url, + completionHandler, + ); + } + + late final __objc_msgSend_449Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_449 = __objc_msgSend_449Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_uploadLocalVersionOfUbiquitousItemAtURL_withConflictResolutionPolicy_completionHandler_1 = + _registerName1( + "uploadLocalVersionOfUbiquitousItemAtURL:withConflictResolutionPolicy:completionHandler:"); + void _objc_msgSend_450( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + int conflictResolutionPolicy, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_450( + obj, + sel, + url, + conflictResolutionPolicy, + completionHandler, + ); + } + + late final __objc_msgSend_450Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_450 = __objc_msgSend_450Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_getFileProviderServicesForItemAtURL_completionHandler_1 = + _registerName1("getFileProviderServicesForItemAtURL:completionHandler:"); + void _objc_msgSend_451( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer<_ObjCBlock> completionHandler, + ) { + return __objc_msgSend_451( + obj, + sel, + url, + completionHandler, + ); + } + + late final __objc_msgSend_451Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_451 = __objc_msgSend_451Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + late final _sel_containerURLForSecurityApplicationGroupIdentifier_1 = _registerName1("containerURLForSecurityApplicationGroupIdentifier:"); late final _sel_homeDirectoryForCurrentUser1 = @@ -12354,13 +12760,13 @@ class SentryCocoa { _registerName1("homeDirectoryForUser:"); late final _sel_fileManager_shouldProceedAfterError_1 = _registerName1("fileManager:shouldProceedAfterError:"); - bool _objc_msgSend_438( + bool _objc_msgSend_452( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer fm, ffi.Pointer errorInfo, ) { - return __objc_msgSend_438( + return __objc_msgSend_452( obj, sel, fm, @@ -12368,26 +12774,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_438Ptr = _lookup< + late final __objc_msgSend_452Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_438 = __objc_msgSend_438Ptr.asFunction< + late final __objc_msgSend_452 = __objc_msgSend_452Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_fileManager_willProcessPath_1 = _registerName1("fileManager:willProcessPath:"); - void _objc_msgSend_439( + void _objc_msgSend_453( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer fm, ffi.Pointer path, ) { - return __objc_msgSend_439( + return __objc_msgSend_453( obj, sel, fm, @@ -12395,14 +12801,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_439Ptr = _lookup< + late final __objc_msgSend_453Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_439 = __objc_msgSend_439Ptr.asFunction< + late final __objc_msgSend_453 = __objc_msgSend_453Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12412,13 +12818,13 @@ class SentryCocoa { late final _sel_addObject_1 = _registerName1("addObject:"); late final _sel_insertObject_atIndex_1 = _registerName1("insertObject:atIndex:"); - void _objc_msgSend_440( + void _objc_msgSend_454( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, int index, ) { - return __objc_msgSend_440( + return __objc_msgSend_454( obj, sel, anObject, @@ -12426,45 +12832,45 @@ class SentryCocoa { ); } - late final __objc_msgSend_440Ptr = _lookup< + late final __objc_msgSend_454Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_440 = __objc_msgSend_440Ptr.asFunction< + late final __objc_msgSend_454 = __objc_msgSend_454Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_removeLastObject1 = _registerName1("removeLastObject"); late final _sel_removeObjectAtIndex_1 = _registerName1("removeObjectAtIndex:"); - void _objc_msgSend_441( + void _objc_msgSend_455( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_441( + return __objc_msgSend_455( obj, sel, index, ); } - late final __objc_msgSend_441Ptr = _lookup< + late final __objc_msgSend_455Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_441 = __objc_msgSend_441Ptr.asFunction< + late final __objc_msgSend_455 = __objc_msgSend_455Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_replaceObjectAtIndex_withObject_1 = _registerName1("replaceObjectAtIndex:withObject:"); - void _objc_msgSend_442( + void _objc_msgSend_456( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer anObject, ) { - return __objc_msgSend_442( + return __objc_msgSend_456( obj, sel, index, @@ -12472,46 +12878,46 @@ class SentryCocoa { ); } - late final __objc_msgSend_442Ptr = _lookup< + late final __objc_msgSend_456Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_442 = __objc_msgSend_442Ptr.asFunction< + late final __objc_msgSend_456 = __objc_msgSend_456Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_initWithCapacity_1 = _registerName1("initWithCapacity:"); late final _sel_addObjectsFromArray_1 = _registerName1("addObjectsFromArray:"); - void _objc_msgSend_443( + void _objc_msgSend_457( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherArray, ) { - return __objc_msgSend_443( + return __objc_msgSend_457( obj, sel, otherArray, ); } - late final __objc_msgSend_443Ptr = _lookup< + late final __objc_msgSend_457Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_443 = __objc_msgSend_443Ptr.asFunction< + late final __objc_msgSend_457 = __objc_msgSend_457Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_exchangeObjectAtIndex_withObjectAtIndex_1 = _registerName1("exchangeObjectAtIndex:withObjectAtIndex:"); - void _objc_msgSend_444( + void _objc_msgSend_458( ffi.Pointer obj, ffi.Pointer sel, int idx1, int idx2, ) { - return __objc_msgSend_444( + return __objc_msgSend_458( obj, sel, idx1, @@ -12519,23 +12925,23 @@ class SentryCocoa { ); } - late final __objc_msgSend_444Ptr = _lookup< + late final __objc_msgSend_458Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_444 = __objc_msgSend_444Ptr.asFunction< + late final __objc_msgSend_458 = __objc_msgSend_458Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_removeAllObjects1 = _registerName1("removeAllObjects"); late final _sel_removeObject_inRange_1 = _registerName1("removeObject:inRange:"); - void _objc_msgSend_445( + void _objc_msgSend_459( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, _NSRange range, ) { - return __objc_msgSend_445( + return __objc_msgSend_459( obj, sel, anObject, @@ -12543,11 +12949,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_445Ptr = _lookup< + late final __objc_msgSend_459Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_445 = __objc_msgSend_445Ptr.asFunction< + late final __objc_msgSend_459 = __objc_msgSend_459Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); @@ -12558,13 +12964,13 @@ class SentryCocoa { _registerName1("removeObjectIdenticalTo:"); late final _sel_removeObjectsFromIndices_numIndices_1 = _registerName1("removeObjectsFromIndices:numIndices:"); - void _objc_msgSend_446( + void _objc_msgSend_460( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indices, int cnt, ) { - return __objc_msgSend_446( + return __objc_msgSend_460( obj, sel, indices, @@ -12572,14 +12978,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_446Ptr = _lookup< + late final __objc_msgSend_460Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_446 = __objc_msgSend_446Ptr.asFunction< + late final __objc_msgSend_460 = __objc_msgSend_460Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -12587,35 +12993,35 @@ class SentryCocoa { _registerName1("removeObjectsInArray:"); late final _sel_removeObjectsInRange_1 = _registerName1("removeObjectsInRange:"); - void _objc_msgSend_447( + void _objc_msgSend_461( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_447( + return __objc_msgSend_461( obj, sel, range, ); } - late final __objc_msgSend_447Ptr = _lookup< + late final __objc_msgSend_461Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_447 = __objc_msgSend_447Ptr.asFunction< + late final __objc_msgSend_461 = __objc_msgSend_461Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_replaceObjectsInRange_withObjectsFromArray_range_1 = _registerName1("replaceObjectsInRange:withObjectsFromArray:range:"); - void _objc_msgSend_448( + void _objc_msgSend_462( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer otherArray, _NSRange otherRange, ) { - return __objc_msgSend_448( + return __objc_msgSend_462( obj, sel, range, @@ -12624,23 +13030,23 @@ class SentryCocoa { ); } - late final __objc_msgSend_448Ptr = _lookup< + late final __objc_msgSend_462Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_448 = __objc_msgSend_448Ptr.asFunction< + late final __objc_msgSend_462 = __objc_msgSend_462Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer, _NSRange)>(); late final _sel_replaceObjectsInRange_withObjectsFromArray_1 = _registerName1("replaceObjectsInRange:withObjectsFromArray:"); - void _objc_msgSend_449( + void _objc_msgSend_463( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer otherArray, ) { - return __objc_msgSend_449( + return __objc_msgSend_463( obj, sel, range, @@ -12648,18 +13054,18 @@ class SentryCocoa { ); } - late final __objc_msgSend_449Ptr = _lookup< + late final __objc_msgSend_463Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_449 = __objc_msgSend_449Ptr.asFunction< + late final __objc_msgSend_463 = __objc_msgSend_463Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_setArray_1 = _registerName1("setArray:"); late final _sel_sortUsingFunction_context_1 = _registerName1("sortUsingFunction:context:"); - void _objc_msgSend_450( + void _objc_msgSend_464( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -12669,7 +13075,7 @@ class SentryCocoa { compare, ffi.Pointer context, ) { - return __objc_msgSend_450( + return __objc_msgSend_464( obj, sel, compare, @@ -12677,7 +13083,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_450Ptr = _lookup< + late final __objc_msgSend_464Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -12687,7 +13093,7 @@ class SentryCocoa { ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_450 = __objc_msgSend_450Ptr.asFunction< + late final __objc_msgSend_464 = __objc_msgSend_464Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -12700,13 +13106,13 @@ class SentryCocoa { late final _sel_sortUsingSelector_1 = _registerName1("sortUsingSelector:"); late final _sel_insertObjects_atIndexes_1 = _registerName1("insertObjects:atIndexes:"); - void _objc_msgSend_451( + void _objc_msgSend_465( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objects, ffi.Pointer indexes, ) { - return __objc_msgSend_451( + return __objc_msgSend_465( obj, sel, objects, @@ -12714,48 +13120,48 @@ class SentryCocoa { ); } - late final __objc_msgSend_451Ptr = _lookup< + late final __objc_msgSend_465Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_451 = __objc_msgSend_451Ptr.asFunction< + late final __objc_msgSend_465 = __objc_msgSend_465Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removeObjectsAtIndexes_1 = _registerName1("removeObjectsAtIndexes:"); - void _objc_msgSend_452( + void _objc_msgSend_466( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ) { - return __objc_msgSend_452( + return __objc_msgSend_466( obj, sel, indexes, ); } - late final __objc_msgSend_452Ptr = _lookup< + late final __objc_msgSend_466Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_452 = __objc_msgSend_452Ptr.asFunction< + late final __objc_msgSend_466 = __objc_msgSend_466Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_replaceObjectsAtIndexes_withObjects_1 = _registerName1("replaceObjectsAtIndexes:withObjects:"); - void _objc_msgSend_453( + void _objc_msgSend_467( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ffi.Pointer objects, ) { - return __objc_msgSend_453( + return __objc_msgSend_467( obj, sel, indexes, @@ -12763,14 +13169,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_453Ptr = _lookup< + late final __objc_msgSend_467Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_453 = __objc_msgSend_453Ptr.asFunction< + late final __objc_msgSend_467 = __objc_msgSend_467Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12778,35 +13184,35 @@ class SentryCocoa { _registerName1("setObject:atIndexedSubscript:"); late final _sel_sortUsingComparator_1 = _registerName1("sortUsingComparator:"); - void _objc_msgSend_454( + void _objc_msgSend_468( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_454( + return __objc_msgSend_468( obj, sel, cmptr, ); } - late final __objc_msgSend_454Ptr = _lookup< + late final __objc_msgSend_468Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_454 = __objc_msgSend_454Ptr.asFunction< + late final __objc_msgSend_468 = __objc_msgSend_468Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_sortWithOptions_usingComparator_1 = _registerName1("sortWithOptions:usingComparator:"); - void _objc_msgSend_455( + void _objc_msgSend_469( ffi.Pointer obj, ffi.Pointer sel, int opts, ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_455( + return __objc_msgSend_469( obj, sel, opts, @@ -12814,52 +13220,52 @@ class SentryCocoa { ); } - late final __objc_msgSend_455Ptr = _lookup< + late final __objc_msgSend_469Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_455 = __objc_msgSend_455Ptr.asFunction< + late final __objc_msgSend_469 = __objc_msgSend_469Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_arrayWithCapacity_1 = _registerName1("arrayWithCapacity:"); - ffi.Pointer _objc_msgSend_456( + ffi.Pointer _objc_msgSend_470( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_456( + return __objc_msgSend_470( obj, sel, path, ); } - late final __objc_msgSend_456Ptr = _lookup< + late final __objc_msgSend_470Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_456 = __objc_msgSend_456Ptr.asFunction< + late final __objc_msgSend_470 = __objc_msgSend_470Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer _objc_msgSend_457( + ffi.Pointer _objc_msgSend_471( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_457( + return __objc_msgSend_471( obj, sel, url, ); } - late final __objc_msgSend_457Ptr = _lookup< + late final __objc_msgSend_471Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_457 = __objc_msgSend_457Ptr.asFunction< + late final __objc_msgSend_471 = __objc_msgSend_471Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12868,23 +13274,23 @@ class SentryCocoa { _registerName1("sortUsingDescriptors:"); late final _sel_filterUsingPredicate_1 = _registerName1("filterUsingPredicate:"); - void _objc_msgSend_458( + void _objc_msgSend_472( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer predicate, ) { - return __objc_msgSend_458( + return __objc_msgSend_472( obj, sel, predicate, ); } - late final __objc_msgSend_458Ptr = _lookup< + late final __objc_msgSend_472Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_458 = __objc_msgSend_458Ptr.asFunction< + late final __objc_msgSend_472 = __objc_msgSend_472Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12894,23 +13300,23 @@ class SentryCocoa { late final _class_NSOrderedSet1 = _getClass1("NSOrderedSet"); late final _sel_isEqualToOrderedSet_1 = _registerName1("isEqualToOrderedSet:"); - bool _objc_msgSend_459( + bool _objc_msgSend_473( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_459( + return __objc_msgSend_473( obj, sel, other, ); } - late final __objc_msgSend_459Ptr = _lookup< + late final __objc_msgSend_473Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_459 = __objc_msgSend_459Ptr.asFunction< + late final __objc_msgSend_473 = __objc_msgSend_473Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -12919,21 +13325,21 @@ class SentryCocoa { late final _sel_isSubsetOfOrderedSet_1 = _registerName1("isSubsetOfOrderedSet:"); late final _sel_reversedOrderedSet1 = _registerName1("reversedOrderedSet"); - ffi.Pointer _objc_msgSend_460( + ffi.Pointer _objc_msgSend_474( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_460( + return __objc_msgSend_474( obj, sel, ); } - late final __objc_msgSend_460Ptr = _lookup< + late final __objc_msgSend_474Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_460 = __objc_msgSend_460Ptr.asFunction< + late final __objc_msgSend_474 = __objc_msgSend_474Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -12946,36 +13352,36 @@ class SentryCocoa { _registerName1("orderedSetWithObjects:"); late final _sel_orderedSetWithOrderedSet_1 = _registerName1("orderedSetWithOrderedSet:"); - instancetype _objc_msgSend_461( + instancetype _objc_msgSend_475( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ) { - return __objc_msgSend_461( + return __objc_msgSend_475( obj, sel, set1, ); } - late final __objc_msgSend_461Ptr = _lookup< + late final __objc_msgSend_475Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_461 = __objc_msgSend_461Ptr.asFunction< + late final __objc_msgSend_475 = __objc_msgSend_475Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_orderedSetWithOrderedSet_range_copyItems_1 = _registerName1("orderedSetWithOrderedSet:range:copyItems:"); - instancetype _objc_msgSend_462( + instancetype _objc_msgSend_476( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, _NSRange range, bool flag, ) { - return __objc_msgSend_462( + return __objc_msgSend_476( obj, sel, set1, @@ -12984,11 +13390,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_462Ptr = _lookup< + late final __objc_msgSend_476Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_462 = __objc_msgSend_462Ptr.asFunction< + late final __objc_msgSend_476 = __objc_msgSend_476Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange, bool)>(); @@ -12996,14 +13402,14 @@ class SentryCocoa { _registerName1("orderedSetWithArray:"); late final _sel_orderedSetWithArray_range_copyItems_1 = _registerName1("orderedSetWithArray:range:copyItems:"); - instancetype _objc_msgSend_463( + instancetype _objc_msgSend_477( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer array, _NSRange range, bool flag, ) { - return __objc_msgSend_463( + return __objc_msgSend_477( obj, sel, array, @@ -13012,11 +13418,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_463Ptr = _lookup< + late final __objc_msgSend_477Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_463 = __objc_msgSend_463Ptr.asFunction< + late final __objc_msgSend_477 = __objc_msgSend_477Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange, bool)>(); @@ -13027,13 +13433,13 @@ class SentryCocoa { late final _sel_initWithOrderedSet_1 = _registerName1("initWithOrderedSet:"); late final _sel_initWithOrderedSet_copyItems_1 = _registerName1("initWithOrderedSet:copyItems:"); - instancetype _objc_msgSend_464( + instancetype _objc_msgSend_478( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, bool flag, ) { - return __objc_msgSend_464( + return __objc_msgSend_478( obj, sel, set1, @@ -13041,11 +13447,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_464Ptr = _lookup< + late final __objc_msgSend_478Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_464 = __objc_msgSend_464Ptr.asFunction< + late final __objc_msgSend_478 = __objc_msgSend_478Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -13056,14 +13462,14 @@ class SentryCocoa { late final _sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_1 = _registerName1( "differenceFromOrderedSet:withOptions:usingEquivalenceTest:"); - ffi.Pointer _objc_msgSend_465( + ffi.Pointer _objc_msgSend_479( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, int options, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_465( + return __objc_msgSend_479( obj, sel, other, @@ -13072,7 +13478,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_465Ptr = _lookup< + late final __objc_msgSend_479Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -13080,7 +13486,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_465 = __objc_msgSend_465Ptr.asFunction< + late final __objc_msgSend_479 = __objc_msgSend_479Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -13090,13 +13496,13 @@ class SentryCocoa { late final _sel_differenceFromOrderedSet_withOptions_1 = _registerName1("differenceFromOrderedSet:withOptions:"); - ffi.Pointer _objc_msgSend_466( + ffi.Pointer _objc_msgSend_480( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, int options, ) { - return __objc_msgSend_466( + return __objc_msgSend_480( obj, sel, other, @@ -13104,14 +13510,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_466Ptr = _lookup< + late final __objc_msgSend_480Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_466 = __objc_msgSend_466Ptr.asFunction< + late final __objc_msgSend_480 = __objc_msgSend_480Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -13119,56 +13525,56 @@ class SentryCocoa { _registerName1("differenceFromOrderedSet:"); late final _sel_orderedSetByApplyingDifference_1 = _registerName1("orderedSetByApplyingDifference:"); - ffi.Pointer _objc_msgSend_467( + ffi.Pointer _objc_msgSend_481( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer difference, ) { - return __objc_msgSend_467( + return __objc_msgSend_481( obj, sel, difference, ); } - late final __objc_msgSend_467Ptr = _lookup< + late final __objc_msgSend_481Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_467 = __objc_msgSend_467Ptr.asFunction< + late final __objc_msgSend_481 = __objc_msgSend_481Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_filteredOrderedSetUsingPredicate_1 = _registerName1("filteredOrderedSetUsingPredicate:"); - ffi.Pointer _objc_msgSend_468( + ffi.Pointer _objc_msgSend_482( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer p, ) { - return __objc_msgSend_468( + return __objc_msgSend_482( obj, sel, p, ); } - late final __objc_msgSend_468Ptr = _lookup< + late final __objc_msgSend_482Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_468 = __objc_msgSend_468Ptr.asFunction< + late final __objc_msgSend_482 = __objc_msgSend_482Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_addObjects_count_1 = _registerName1("addObjects:count:"); - void _objc_msgSend_469( + void _objc_msgSend_483( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> objects, int count, ) { - return __objc_msgSend_469( + return __objc_msgSend_483( obj, sel, objects, @@ -13176,26 +13582,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_469Ptr = _lookup< + late final __objc_msgSend_483Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_469 = __objc_msgSend_469Ptr.asFunction< + late final __objc_msgSend_483 = __objc_msgSend_483Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>, int)>(); late final _sel_moveObjectsAtIndexes_toIndex_1 = _registerName1("moveObjectsAtIndexes:toIndex:"); - void _objc_msgSend_470( + void _objc_msgSend_484( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, int idx, ) { - return __objc_msgSend_470( + return __objc_msgSend_484( obj, sel, indexes, @@ -13203,25 +13609,25 @@ class SentryCocoa { ); } - late final __objc_msgSend_470Ptr = _lookup< + late final __objc_msgSend_484Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_470 = __objc_msgSend_470Ptr.asFunction< + late final __objc_msgSend_484 = __objc_msgSend_484Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setObject_atIndex_1 = _registerName1("setObject:atIndex:"); late final _sel_replaceObjectsInRange_withObjects_count_1 = _registerName1("replaceObjectsInRange:withObjects:count:"); - void _objc_msgSend_471( + void _objc_msgSend_485( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer> objects, int count, ) { - return __objc_msgSend_471( + return __objc_msgSend_485( obj, sel, range, @@ -13230,7 +13636,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_471Ptr = _lookup< + late final __objc_msgSend_485Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13238,52 +13644,52 @@ class SentryCocoa { _NSRange, ffi.Pointer>, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_471 = __objc_msgSend_471Ptr.asFunction< + late final __objc_msgSend_485 = __objc_msgSend_485Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer>, int)>(); late final _sel_intersectOrderedSet_1 = _registerName1("intersectOrderedSet:"); - void _objc_msgSend_472( + void _objc_msgSend_486( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_472( + return __objc_msgSend_486( obj, sel, other, ); } - late final __objc_msgSend_472Ptr = _lookup< + late final __objc_msgSend_486Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_472 = __objc_msgSend_472Ptr.asFunction< + late final __objc_msgSend_486 = __objc_msgSend_486Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_minusOrderedSet_1 = _registerName1("minusOrderedSet:"); late final _sel_unionOrderedSet_1 = _registerName1("unionOrderedSet:"); late final _sel_intersectSet_1 = _registerName1("intersectSet:"); - void _objc_msgSend_473( + void _objc_msgSend_487( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_473( + return __objc_msgSend_487( obj, sel, other, ); } - late final __objc_msgSend_473Ptr = _lookup< + late final __objc_msgSend_487Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_473 = __objc_msgSend_473Ptr.asFunction< + late final __objc_msgSend_487 = __objc_msgSend_487Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13291,14 +13697,14 @@ class SentryCocoa { late final _sel_unionSet_1 = _registerName1("unionSet:"); late final _sel_sortRange_options_usingComparator_1 = _registerName1("sortRange:options:usingComparator:"); - void _objc_msgSend_474( + void _objc_msgSend_488( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, int opts, ffi.Pointer<_ObjCBlock> cmptr, ) { - return __objc_msgSend_474( + return __objc_msgSend_488( obj, sel, range, @@ -13307,11 +13713,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_474Ptr = _lookup< + late final __objc_msgSend_488Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_474 = __objc_msgSend_474Ptr.asFunction< + late final __objc_msgSend_488 = __objc_msgSend_488Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); @@ -13319,23 +13725,23 @@ class SentryCocoa { _registerName1("orderedSetWithCapacity:"); late final _sel_mutableOrderedSetValueForKey_1 = _registerName1("mutableOrderedSetValueForKey:"); - ffi.Pointer _objc_msgSend_475( + ffi.Pointer _objc_msgSend_489( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_475( + return __objc_msgSend_489( obj, sel, key, ); } - late final __objc_msgSend_475Ptr = _lookup< + late final __objc_msgSend_489Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_475 = __objc_msgSend_475Ptr.asFunction< + late final __objc_msgSend_489 = __objc_msgSend_489Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13344,23 +13750,23 @@ class SentryCocoa { late final _sel_setWithCapacity_1 = _registerName1("setWithCapacity:"); late final _sel_mutableSetValueForKey_1 = _registerName1("mutableSetValueForKey:"); - ffi.Pointer _objc_msgSend_476( + ffi.Pointer _objc_msgSend_490( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_476( + return __objc_msgSend_490( obj, sel, key, ); } - late final __objc_msgSend_476Ptr = _lookup< + late final __objc_msgSend_490Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_476 = __objc_msgSend_476Ptr.asFunction< + late final __objc_msgSend_490 = __objc_msgSend_490Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13382,45 +13788,45 @@ class SentryCocoa { late final _sel_setNilValueForKey_1 = _registerName1("setNilValueForKey:"); late final _sel_dictionaryWithValuesForKeys_1 = _registerName1("dictionaryWithValuesForKeys:"); - ffi.Pointer _objc_msgSend_477( + ffi.Pointer _objc_msgSend_491( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keys, ) { - return __objc_msgSend_477( + return __objc_msgSend_491( obj, sel, keys, ); } - late final __objc_msgSend_477Ptr = _lookup< + late final __objc_msgSend_491Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_477 = __objc_msgSend_477Ptr.asFunction< + late final __objc_msgSend_491 = __objc_msgSend_491Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setValuesForKeysWithDictionary_1 = _registerName1("setValuesForKeysWithDictionary:"); - void _objc_msgSend_478( + void _objc_msgSend_492( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyedValues, ) { - return __objc_msgSend_478( + return __objc_msgSend_492( obj, sel, keyedValues, ); } - late final __objc_msgSend_478Ptr = _lookup< + late final __objc_msgSend_492Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_478 = __objc_msgSend_478Ptr.asFunction< + late final __objc_msgSend_492 = __objc_msgSend_492Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13441,7 +13847,7 @@ class SentryCocoa { _registerName1("takeValuesFromDictionary:"); late final _sel_observeValueForKeyPath_ofObject_change_context_1 = _registerName1("observeValueForKeyPath:ofObject:change:context:"); - void _objc_msgSend_479( + void _objc_msgSend_493( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyPath, @@ -13449,7 +13855,7 @@ class SentryCocoa { ffi.Pointer change, ffi.Pointer context, ) { - return __objc_msgSend_479( + return __objc_msgSend_493( obj, sel, keyPath, @@ -13459,7 +13865,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_479Ptr = _lookup< + late final __objc_msgSend_493Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13468,7 +13874,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_479 = __objc_msgSend_479Ptr.asFunction< + late final __objc_msgSend_493 = __objc_msgSend_493Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -13483,14 +13889,14 @@ class SentryCocoa { _registerName1("didChangeValueForKey:"); late final _sel_willChange_valuesAtIndexes_forKey_1 = _registerName1("willChange:valuesAtIndexes:forKey:"); - void _objc_msgSend_480( + void _objc_msgSend_494( ffi.Pointer obj, ffi.Pointer sel, int changeKind, ffi.Pointer indexes, ffi.Pointer key, ) { - return __objc_msgSend_480( + return __objc_msgSend_494( obj, sel, changeKind, @@ -13499,7 +13905,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_480Ptr = _lookup< + late final __objc_msgSend_494Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13507,7 +13913,7 @@ class SentryCocoa { ffi.Int32, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_480 = __objc_msgSend_480Ptr.asFunction< + late final __objc_msgSend_494 = __objc_msgSend_494Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, ffi.Pointer)>(); @@ -13515,14 +13921,14 @@ class SentryCocoa { _registerName1("didChange:valuesAtIndexes:forKey:"); late final _sel_willChangeValueForKey_withSetMutation_usingObjects_1 = _registerName1("willChangeValueForKey:withSetMutation:usingObjects:"); - void _objc_msgSend_481( + void _objc_msgSend_495( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, int mutationKind, ffi.Pointer objects, ) { - return __objc_msgSend_481( + return __objc_msgSend_495( obj, sel, key, @@ -13531,7 +13937,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_481Ptr = _lookup< + late final __objc_msgSend_495Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13539,7 +13945,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_481 = __objc_msgSend_481Ptr.asFunction< + late final __objc_msgSend_495 = __objc_msgSend_495Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -13547,46 +13953,46 @@ class SentryCocoa { _registerName1("didChangeValueForKey:withSetMutation:usingObjects:"); late final _sel_observationInfo1 = _registerName1("observationInfo"); late final _sel_setObservationInfo_1 = _registerName1("setObservationInfo:"); - void _objc_msgSend_482( + void _objc_msgSend_496( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_482( + return __objc_msgSend_496( obj, sel, value, ); } - late final __objc_msgSend_482Ptr = _lookup< + late final __objc_msgSend_496Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_482 = __objc_msgSend_482Ptr.asFunction< + late final __objc_msgSend_496 = __objc_msgSend_496Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSKeyValueSharedObserversSnapshot1 = _getClass1("NSKeyValueSharedObserversSnapshot"); late final _sel_setSharedObservers_1 = _registerName1("setSharedObservers:"); - void _objc_msgSend_483( + void _objc_msgSend_497( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer sharedObservers, ) { - return __objc_msgSend_483( + return __objc_msgSend_497( obj, sel, sharedObservers, ); } - late final __objc_msgSend_483Ptr = _lookup< + late final __objc_msgSend_497Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_483 = __objc_msgSend_483Ptr.asFunction< + late final __objc_msgSend_497 = __objc_msgSend_497Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -13595,36 +14001,36 @@ class SentryCocoa { late final _class_NSKeyedArchiver1 = _getClass1("NSKeyedArchiver"); late final _sel_initRequiringSecureCoding_1 = _registerName1("initRequiringSecureCoding:"); - instancetype _objc_msgSend_484( + instancetype _objc_msgSend_498( ffi.Pointer obj, ffi.Pointer sel, bool requiresSecureCoding, ) { - return __objc_msgSend_484( + return __objc_msgSend_498( obj, sel, requiresSecureCoding, ); } - late final __objc_msgSend_484Ptr = _lookup< + late final __objc_msgSend_498Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_484 = __objc_msgSend_484Ptr.asFunction< + late final __objc_msgSend_498 = __objc_msgSend_498Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_archivedDataWithRootObject_requiringSecureCoding_error_1 = _registerName1("archivedDataWithRootObject:requiringSecureCoding:error:"); - ffi.Pointer _objc_msgSend_485( + ffi.Pointer _objc_msgSend_499( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, bool requiresSecureCoding, ffi.Pointer> error, ) { - return __objc_msgSend_485( + return __objc_msgSend_499( obj, sel, object, @@ -13633,7 +14039,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_485Ptr = _lookup< + late final __objc_msgSend_499Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -13641,7 +14047,7 @@ class SentryCocoa { ffi.Pointer, ffi.Bool, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_485 = __objc_msgSend_485Ptr.asFunction< + late final __objc_msgSend_499 = __objc_msgSend_499Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -13652,23 +14058,23 @@ class SentryCocoa { late final _class_NSMutableData1 = _getClass1("NSMutableData"); late final _sel_mutableBytes1 = _registerName1("mutableBytes"); late final _sel_setLength_1 = _registerName1("setLength:"); - void _objc_msgSend_486( + void _objc_msgSend_500( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_486( + return __objc_msgSend_500( obj, sel, value, ); } - late final __objc_msgSend_486Ptr = _lookup< + late final __objc_msgSend_500Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_486 = __objc_msgSend_486Ptr.asFunction< + late final __objc_msgSend_500 = __objc_msgSend_500Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_appendBytes_length_1 = _registerName1("appendBytes:length:"); @@ -13676,13 +14082,13 @@ class SentryCocoa { late final _sel_increaseLengthBy_1 = _registerName1("increaseLengthBy:"); late final _sel_replaceBytesInRange_withBytes_1 = _registerName1("replaceBytesInRange:withBytes:"); - void _objc_msgSend_487( + void _objc_msgSend_501( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer bytes, ) { - return __objc_msgSend_487( + return __objc_msgSend_501( obj, sel, range, @@ -13690,11 +14096,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_487Ptr = _lookup< + late final __objc_msgSend_501Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_487 = __objc_msgSend_487Ptr.asFunction< + late final __objc_msgSend_501 = __objc_msgSend_501Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); @@ -13702,14 +14108,14 @@ class SentryCocoa { late final _sel_setData_1 = _registerName1("setData:"); late final _sel_replaceBytesInRange_withBytes_length_1 = _registerName1("replaceBytesInRange:withBytes:length:"); - void _objc_msgSend_488( + void _objc_msgSend_502( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer replacementBytes, int replacementLength, ) { - return __objc_msgSend_488( + return __objc_msgSend_502( obj, sel, range, @@ -13718,7 +14124,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_488Ptr = _lookup< + late final __objc_msgSend_502Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13726,7 +14132,7 @@ class SentryCocoa { _NSRange, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_488 = __objc_msgSend_488Ptr.asFunction< + late final __objc_msgSend_502 = __objc_msgSend_502Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer, int)>(); @@ -13735,13 +14141,13 @@ class SentryCocoa { late final _sel_initWithLength_1 = _registerName1("initWithLength:"); late final _sel_decompressUsingAlgorithm_error_1 = _registerName1("decompressUsingAlgorithm:error:"); - bool _objc_msgSend_489( + bool _objc_msgSend_503( ffi.Pointer obj, ffi.Pointer sel, int algorithm, ffi.Pointer> error, ) { - return __objc_msgSend_489( + return __objc_msgSend_503( obj, sel, algorithm, @@ -13749,14 +14155,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_489Ptr = _lookup< + late final __objc_msgSend_503Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_489 = __objc_msgSend_489Ptr.asFunction< + late final __objc_msgSend_503 = __objc_msgSend_503Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); @@ -13764,99 +14170,99 @@ class SentryCocoa { _registerName1("compressUsingAlgorithm:error:"); late final _sel_initForWritingWithMutableData_1 = _registerName1("initForWritingWithMutableData:"); - instancetype _objc_msgSend_490( + instancetype _objc_msgSend_504( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_490( + return __objc_msgSend_504( obj, sel, data, ); } - late final __objc_msgSend_490Ptr = _lookup< + late final __objc_msgSend_504Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_490 = __objc_msgSend_490Ptr.asFunction< + late final __objc_msgSend_504 = __objc_msgSend_504Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_archivedDataWithRootObject_1 = _registerName1("archivedDataWithRootObject:"); - ffi.Pointer _objc_msgSend_491( + ffi.Pointer _objc_msgSend_505( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer rootObject, ) { - return __objc_msgSend_491( + return __objc_msgSend_505( obj, sel, rootObject, ); } - late final __objc_msgSend_491Ptr = _lookup< + late final __objc_msgSend_505Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_491 = __objc_msgSend_491Ptr.asFunction< + late final __objc_msgSend_505 = __objc_msgSend_505Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_archiveRootObject_toFile_1 = _registerName1("archiveRootObject:toFile:"); late final _sel_outputFormat1 = _registerName1("outputFormat"); - int _objc_msgSend_492( + int _objc_msgSend_506( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_492( + return __objc_msgSend_506( obj, sel, ); } - late final __objc_msgSend_492Ptr = _lookup< + late final __objc_msgSend_506Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_492 = __objc_msgSend_492Ptr.asFunction< + late final __objc_msgSend_506 = __objc_msgSend_506Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setOutputFormat_1 = _registerName1("setOutputFormat:"); - void _objc_msgSend_493( + void _objc_msgSend_507( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_493( + return __objc_msgSend_507( obj, sel, value, ); } - late final __objc_msgSend_493Ptr = _lookup< + late final __objc_msgSend_507Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_493 = __objc_msgSend_493Ptr.asFunction< + late final __objc_msgSend_507 = __objc_msgSend_507Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_encodedData1 = _registerName1("encodedData"); late final _sel_finishEncoding1 = _registerName1("finishEncoding"); late final _sel_setClassName_forClass_1 = _registerName1("setClassName:forClass:"); - void _objc_msgSend_494( + void _objc_msgSend_508( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer codedName, ffi.Pointer cls, ) { - return __objc_msgSend_494( + return __objc_msgSend_508( obj, sel, codedName, @@ -13864,65 +14270,46 @@ class SentryCocoa { ); } - late final __objc_msgSend_494Ptr = _lookup< + late final __objc_msgSend_508Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_494 = __objc_msgSend_494Ptr.asFunction< + late final __objc_msgSend_508 = __objc_msgSend_508Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_classNameForClass_1 = _registerName1("classNameForClass:"); late final _sel_setRequiresSecureCoding_1 = _registerName1("setRequiresSecureCoding:"); - void _objc_msgSend_495( - ffi.Pointer obj, - ffi.Pointer sel, - bool value, - ) { - return __objc_msgSend_495( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_495Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_495 = __objc_msgSend_495Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, bool)>(); - late final _sel_replacementObjectForKeyedArchiver_1 = _registerName1("replacementObjectForKeyedArchiver:"); - ffi.Pointer _objc_msgSend_496( + ffi.Pointer _objc_msgSend_509( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer archiver, ) { - return __objc_msgSend_496( + return __objc_msgSend_509( obj, sel, archiver, ); } - late final __objc_msgSend_496Ptr = _lookup< + late final __objc_msgSend_509Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_496 = __objc_msgSend_496Ptr.asFunction< + late final __objc_msgSend_509 = __objc_msgSend_509Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_1 = _registerName1( "performSelectorOnMainThread:withObject:waitUntilDone:modes:"); - void _objc_msgSend_497( + void _objc_msgSend_510( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -13930,7 +14317,7 @@ class SentryCocoa { bool wait, ffi.Pointer array, ) { - return __objc_msgSend_497( + return __objc_msgSend_510( obj, sel, aSelector, @@ -13940,7 +14327,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_497Ptr = _lookup< + late final __objc_msgSend_510Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13949,7 +14336,7 @@ class SentryCocoa { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_497 = __objc_msgSend_497Ptr.asFunction< + late final __objc_msgSend_510 = __objc_msgSend_510Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -13960,14 +14347,14 @@ class SentryCocoa { late final _sel_performSelectorOnMainThread_withObject_waitUntilDone_1 = _registerName1("performSelectorOnMainThread:withObject:waitUntilDone:"); - void _objc_msgSend_498( + void _objc_msgSend_511( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, ffi.Pointer arg, bool wait, ) { - return __objc_msgSend_498( + return __objc_msgSend_511( obj, sel, aSelector, @@ -13976,7 +14363,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_498Ptr = _lookup< + late final __objc_msgSend_511Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -13984,62 +14371,62 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_498 = __objc_msgSend_498Ptr.asFunction< + late final __objc_msgSend_511 = __objc_msgSend_511Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _class_NSThread1 = _getClass1("NSThread"); late final _sel_currentThread1 = _registerName1("currentThread"); - ffi.Pointer _objc_msgSend_499( + ffi.Pointer _objc_msgSend_512( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_499( + return __objc_msgSend_512( obj, sel, ); } - late final __objc_msgSend_499Ptr = _lookup< + late final __objc_msgSend_512Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_499 = __objc_msgSend_499Ptr.asFunction< + late final __objc_msgSend_512 = __objc_msgSend_512Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_detachNewThreadWithBlock_1 = _registerName1("detachNewThreadWithBlock:"); - void _objc_msgSend_500( + void _objc_msgSend_513( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_500( + return __objc_msgSend_513( obj, sel, block, ); } - late final __objc_msgSend_500Ptr = _lookup< + late final __objc_msgSend_513Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_500 = __objc_msgSend_500Ptr.asFunction< + late final __objc_msgSend_513 = __objc_msgSend_513Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_detachNewThreadSelector_toTarget_withObject_1 = _registerName1("detachNewThreadSelector:toTarget:withObject:"); - void _objc_msgSend_501( + void _objc_msgSend_514( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer selector, ffi.Pointer target, ffi.Pointer argument, ) { - return __objc_msgSend_501( + return __objc_msgSend_514( obj, sel, selector, @@ -14048,7 +14435,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_501Ptr = _lookup< + late final __objc_msgSend_514Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -14056,7 +14443,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_501 = __objc_msgSend_501Ptr.asFunction< + late final __objc_msgSend_514 = __objc_msgSend_514Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -14068,13 +14455,13 @@ class SentryCocoa { late final _class_NSMutableDictionary1 = _getClass1("NSMutableDictionary"); late final _sel_removeObjectForKey_1 = _registerName1("removeObjectForKey:"); late final _sel_setObject_forKey_1 = _registerName1("setObject:forKey:"); - void _objc_msgSend_502( + void _objc_msgSend_515( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ffi.Pointer aKey, ) { - return __objc_msgSend_502( + return __objc_msgSend_515( obj, sel, anObject, @@ -14082,14 +14469,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_502Ptr = _lookup< + late final __objc_msgSend_515Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_502 = __objc_msgSend_502Ptr.asFunction< + late final __objc_msgSend_515 = __objc_msgSend_515Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14102,228 +14489,208 @@ class SentryCocoa { _registerName1("setObject:forKeyedSubscript:"); late final _sel_dictionaryWithCapacity_1 = _registerName1("dictionaryWithCapacity:"); - ffi.Pointer _objc_msgSend_503( + ffi.Pointer _objc_msgSend_516( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ) { - return __objc_msgSend_503( + return __objc_msgSend_516( obj, sel, path, ); } - late final __objc_msgSend_503Ptr = _lookup< + late final __objc_msgSend_516Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_503 = __objc_msgSend_503Ptr.asFunction< + late final __objc_msgSend_516 = __objc_msgSend_516Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer _objc_msgSend_504( + ffi.Pointer _objc_msgSend_517( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_504( + return __objc_msgSend_517( obj, sel, url, ); } - late final __objc_msgSend_504Ptr = _lookup< + late final __objc_msgSend_517Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_504 = __objc_msgSend_504Ptr.asFunction< + late final __objc_msgSend_517 = __objc_msgSend_517Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dictionaryWithSharedKeySet_1 = _registerName1("dictionaryWithSharedKeySet:"); - ffi.Pointer _objc_msgSend_505( + ffi.Pointer _objc_msgSend_518( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer keyset, ) { - return __objc_msgSend_505( + return __objc_msgSend_518( obj, sel, keyset, ); } - late final __objc_msgSend_505Ptr = _lookup< + late final __objc_msgSend_518Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_505 = __objc_msgSend_505Ptr.asFunction< + late final __objc_msgSend_518 = __objc_msgSend_518Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_threadDictionary1 = _registerName1("threadDictionary"); - ffi.Pointer _objc_msgSend_506( + ffi.Pointer _objc_msgSend_519( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_506( + return __objc_msgSend_519( obj, sel, ); } - late final __objc_msgSend_506Ptr = _lookup< + late final __objc_msgSend_519Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_506 = __objc_msgSend_506Ptr.asFunction< + late final __objc_msgSend_519 = __objc_msgSend_519Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_sleepUntilDate_1 = _registerName1("sleepUntilDate:"); - void _objc_msgSend_507( + void _objc_msgSend_520( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ) { - return __objc_msgSend_507( + return __objc_msgSend_520( obj, sel, date, ); } - late final __objc_msgSend_507Ptr = _lookup< + late final __objc_msgSend_520Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_507 = __objc_msgSend_507Ptr.asFunction< + late final __objc_msgSend_520 = __objc_msgSend_520Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_sleepForTimeInterval_1 = _registerName1("sleepForTimeInterval:"); - void _objc_msgSend_508( + void _objc_msgSend_521( ffi.Pointer obj, ffi.Pointer sel, double ti, ) { - return __objc_msgSend_508( + return __objc_msgSend_521( obj, sel, ti, ); } - late final __objc_msgSend_508Ptr = _lookup< + late final __objc_msgSend_521Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_508 = __objc_msgSend_508Ptr.asFunction< + late final __objc_msgSend_521 = __objc_msgSend_521Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double)>(); late final _sel_exit1 = _registerName1("exit"); late final _sel_threadPriority1 = _registerName1("threadPriority"); late final _sel_setThreadPriority_1 = _registerName1("setThreadPriority:"); - void _objc_msgSend_509( + void _objc_msgSend_522( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_509( + return __objc_msgSend_522( obj, sel, value, ); } - late final __objc_msgSend_509Ptr = _lookup< + late final __objc_msgSend_522Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_509 = __objc_msgSend_509Ptr.asFunction< + late final __objc_msgSend_522 = __objc_msgSend_522Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double)>(); late final _sel_qualityOfService1 = _registerName1("qualityOfService"); - int _objc_msgSend_510( + int _objc_msgSend_523( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_510( + return __objc_msgSend_523( obj, sel, ); } - late final __objc_msgSend_510Ptr = _lookup< + late final __objc_msgSend_523Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_510 = __objc_msgSend_510Ptr.asFunction< + late final __objc_msgSend_523 = __objc_msgSend_523Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setQualityOfService_1 = _registerName1("setQualityOfService:"); - void _objc_msgSend_511( + void _objc_msgSend_524( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_511( + return __objc_msgSend_524( obj, sel, value, ); } - late final __objc_msgSend_511Ptr = _lookup< + late final __objc_msgSend_524Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_511 = __objc_msgSend_511Ptr.asFunction< + late final __objc_msgSend_524 = __objc_msgSend_524Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_callStackReturnAddresses1 = _registerName1("callStackReturnAddresses"); late final _sel_callStackSymbols1 = _registerName1("callStackSymbols"); late final _sel_setName_1 = _registerName1("setName:"); - void _objc_msgSend_512( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer value, - ) { - return __objc_msgSend_512( - obj, - sel, - value, - ); - } - - late final __objc_msgSend_512Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_512 = __objc_msgSend_512Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - late final _sel_stackSize1 = _registerName1("stackSize"); late final _sel_setStackSize_1 = _registerName1("setStackSize:"); late final _sel_isMainThread1 = _registerName1("isMainThread"); late final _sel_mainThread1 = _registerName1("mainThread"); late final _sel_initWithTarget_selector_object_1 = _registerName1("initWithTarget:selector:object:"); - instancetype _objc_msgSend_513( + instancetype _objc_msgSend_525( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer selector, ffi.Pointer argument, ) { - return __objc_msgSend_513( + return __objc_msgSend_525( obj, sel, target, @@ -14332,7 +14699,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_513Ptr = _lookup< + late final __objc_msgSend_525Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -14340,7 +14707,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_513 = __objc_msgSend_513Ptr.asFunction< + late final __objc_msgSend_525 = __objc_msgSend_525Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -14349,23 +14716,23 @@ class SentryCocoa { ffi.Pointer)>(); late final _sel_initWithBlock_1 = _registerName1("initWithBlock:"); - instancetype _objc_msgSend_514( + instancetype _objc_msgSend_526( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_514( + return __objc_msgSend_526( obj, sel, block, ); } - late final __objc_msgSend_514Ptr = _lookup< + late final __objc_msgSend_526Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_514 = __objc_msgSend_514Ptr.asFunction< + late final __objc_msgSend_526 = __objc_msgSend_526Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -14378,7 +14745,7 @@ class SentryCocoa { late final _sel_performSelector_onThread_withObject_waitUntilDone_modes_1 = _registerName1( "performSelector:onThread:withObject:waitUntilDone:modes:"); - void _objc_msgSend_515( + void _objc_msgSend_527( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -14387,7 +14754,7 @@ class SentryCocoa { bool wait, ffi.Pointer array, ) { - return __objc_msgSend_515( + return __objc_msgSend_527( obj, sel, aSelector, @@ -14398,7 +14765,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_515Ptr = _lookup< + late final __objc_msgSend_527Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -14408,7 +14775,7 @@ class SentryCocoa { ffi.Pointer, ffi.Bool, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_515 = __objc_msgSend_515Ptr.asFunction< + late final __objc_msgSend_527 = __objc_msgSend_527Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -14420,7 +14787,7 @@ class SentryCocoa { late final _sel_performSelector_onThread_withObject_waitUntilDone_1 = _registerName1("performSelector:onThread:withObject:waitUntilDone:"); - void _objc_msgSend_516( + void _objc_msgSend_528( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -14428,7 +14795,7 @@ class SentryCocoa { ffi.Pointer arg, bool wait, ) { - return __objc_msgSend_516( + return __objc_msgSend_528( obj, sel, aSelector, @@ -14438,7 +14805,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_516Ptr = _lookup< + late final __objc_msgSend_528Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -14447,7 +14814,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_516 = __objc_msgSend_516Ptr.asFunction< + late final __objc_msgSend_528 = __objc_msgSend_528Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -14461,33 +14828,33 @@ class SentryCocoa { late final _sel_classForArchiver1 = _registerName1("classForArchiver"); late final _class_NSArchiver1 = _getClass1("NSArchiver"); late final _sel_archiverData1 = _registerName1("archiverData"); - ffi.Pointer _objc_msgSend_517( + ffi.Pointer _objc_msgSend_529( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_517( + return __objc_msgSend_529( obj, sel, ); } - late final __objc_msgSend_517Ptr = _lookup< + late final __objc_msgSend_529Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_517 = __objc_msgSend_517Ptr.asFunction< + late final __objc_msgSend_529 = __objc_msgSend_529Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_encodeClassName_intoClassName_1 = _registerName1("encodeClassName:intoClassName:"); - void _objc_msgSend_518( + void _objc_msgSend_530( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer trueName, ffi.Pointer inArchiveName, ) { - return __objc_msgSend_518( + return __objc_msgSend_530( obj, sel, trueName, @@ -14495,14 +14862,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_518Ptr = _lookup< + late final __objc_msgSend_530Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_518 = __objc_msgSend_518Ptr.asFunction< + late final __objc_msgSend_530 = __objc_msgSend_530Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14512,23 +14879,23 @@ class SentryCocoa { _registerName1("replaceObject:withObject:"); late final _sel_replacementObjectForArchiver_1 = _registerName1("replacementObjectForArchiver:"); - ffi.Pointer _objc_msgSend_519( + ffi.Pointer _objc_msgSend_531( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer archiver, ) { - return __objc_msgSend_519( + return __objc_msgSend_531( obj, sel, archiver, ); } - late final __objc_msgSend_519Ptr = _lookup< + late final __objc_msgSend_531Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_519 = __objc_msgSend_519Ptr.asFunction< + late final __objc_msgSend_531 = __objc_msgSend_531Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14537,21 +14904,21 @@ class SentryCocoa { late final _sel_isBycopy1 = _registerName1("isBycopy"); late final _sel_isByref1 = _registerName1("isByref"); late final _class_NSPort1 = _getClass1("NSPort"); - ffi.Pointer _objc_msgSend_520( + ffi.Pointer _objc_msgSend_532( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_520( + return __objc_msgSend_532( obj, sel, ); } - late final __objc_msgSend_520Ptr = _lookup< + late final __objc_msgSend_532Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_520 = __objc_msgSend_520Ptr.asFunction< + late final __objc_msgSend_532 = __objc_msgSend_532Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -14559,56 +14926,56 @@ class SentryCocoa { late final _sel_isValid1 = _registerName1("isValid"); late final _class_NSRunLoop1 = _getClass1("NSRunLoop"); late final _sel_currentRunLoop1 = _registerName1("currentRunLoop"); - ffi.Pointer _objc_msgSend_521( + ffi.Pointer _objc_msgSend_533( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_521( + return __objc_msgSend_533( obj, sel, ); } - late final __objc_msgSend_521Ptr = _lookup< + late final __objc_msgSend_533Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_521 = __objc_msgSend_521Ptr.asFunction< + late final __objc_msgSend_533 = __objc_msgSend_533Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_mainRunLoop1 = _registerName1("mainRunLoop"); late final _sel_currentMode1 = _registerName1("currentMode"); late final _sel_getCFRunLoop1 = _registerName1("getCFRunLoop"); - ffi.Pointer<__CFRunLoop> _objc_msgSend_522( + ffi.Pointer<__CFRunLoop> _objc_msgSend_534( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_522( + return __objc_msgSend_534( obj, sel, ); } - late final __objc_msgSend_522Ptr = _lookup< + late final __objc_msgSend_534Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<__CFRunLoop> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_522 = __objc_msgSend_522Ptr.asFunction< + late final __objc_msgSend_534 = __objc_msgSend_534Ptr.asFunction< ffi.Pointer<__CFRunLoop> Function( ffi.Pointer, ffi.Pointer)>(); late final _class_NSTimer1 = _getClass1("NSTimer"); late final _sel_timerWithTimeInterval_invocation_repeats_1 = _registerName1("timerWithTimeInterval:invocation:repeats:"); - ffi.Pointer _objc_msgSend_523( + ffi.Pointer _objc_msgSend_535( ffi.Pointer obj, ffi.Pointer sel, double ti, ffi.Pointer invocation, bool yesOrNo, ) { - return __objc_msgSend_523( + return __objc_msgSend_535( obj, sel, ti, @@ -14617,7 +14984,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_523Ptr = _lookup< + late final __objc_msgSend_535Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14625,7 +14992,7 @@ class SentryCocoa { ffi.Double, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_523 = __objc_msgSend_523Ptr.asFunction< + late final __objc_msgSend_535 = __objc_msgSend_535Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer, bool)>(); @@ -14633,7 +15000,7 @@ class SentryCocoa { _registerName1("scheduledTimerWithTimeInterval:invocation:repeats:"); late final _sel_timerWithTimeInterval_target_selector_userInfo_repeats_1 = _registerName1("timerWithTimeInterval:target:selector:userInfo:repeats:"); - ffi.Pointer _objc_msgSend_524( + ffi.Pointer _objc_msgSend_536( ffi.Pointer obj, ffi.Pointer sel, double ti, @@ -14642,7 +15009,7 @@ class SentryCocoa { ffi.Pointer userInfo, bool yesOrNo, ) { - return __objc_msgSend_524( + return __objc_msgSend_536( obj, sel, ti, @@ -14653,7 +15020,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_524Ptr = _lookup< + late final __objc_msgSend_536Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14663,7 +15030,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_524 = __objc_msgSend_524Ptr.asFunction< + late final __objc_msgSend_536 = __objc_msgSend_536Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -14678,14 +15045,14 @@ class SentryCocoa { "scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:"); late final _sel_timerWithTimeInterval_repeats_block_1 = _registerName1("timerWithTimeInterval:repeats:block:"); - ffi.Pointer _objc_msgSend_525( + ffi.Pointer _objc_msgSend_537( ffi.Pointer obj, ffi.Pointer sel, double interval, bool repeats, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_525( + return __objc_msgSend_537( obj, sel, interval, @@ -14694,7 +15061,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_525Ptr = _lookup< + late final __objc_msgSend_537Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -14702,7 +15069,7 @@ class SentryCocoa { ffi.Double, ffi.Bool, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_525 = __objc_msgSend_525Ptr.asFunction< + late final __objc_msgSend_537 = __objc_msgSend_537Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, double, bool, ffi.Pointer<_ObjCBlock>)>(); @@ -14710,7 +15077,7 @@ class SentryCocoa { _registerName1("scheduledTimerWithTimeInterval:repeats:block:"); late final _sel_initWithFireDate_interval_repeats_block_1 = _registerName1("initWithFireDate:interval:repeats:block:"); - instancetype _objc_msgSend_526( + instancetype _objc_msgSend_538( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -14718,7 +15085,7 @@ class SentryCocoa { bool repeats, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_526( + return __objc_msgSend_538( obj, sel, date, @@ -14728,7 +15095,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_526Ptr = _lookup< + late final __objc_msgSend_538Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -14737,14 +15104,14 @@ class SentryCocoa { ffi.Double, ffi.Bool, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_526 = __objc_msgSend_526Ptr.asFunction< + late final __objc_msgSend_538 = __objc_msgSend_538Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, double, bool, ffi.Pointer<_ObjCBlock>)>(); late final _sel_initWithFireDate_interval_target_selector_userInfo_repeats_1 = _registerName1( "initWithFireDate:interval:target:selector:userInfo:repeats:"); - instancetype _objc_msgSend_527( + instancetype _objc_msgSend_539( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -14754,7 +15121,7 @@ class SentryCocoa { ffi.Pointer ui, bool rep, ) { - return __objc_msgSend_527( + return __objc_msgSend_539( obj, sel, date, @@ -14766,7 +15133,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_527Ptr = _lookup< + late final __objc_msgSend_539Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -14777,7 +15144,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_527 = __objc_msgSend_527Ptr.asFunction< + late final __objc_msgSend_539 = __objc_msgSend_539Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -14791,23 +15158,23 @@ class SentryCocoa { late final _sel_fire1 = _registerName1("fire"); late final _sel_fireDate1 = _registerName1("fireDate"); late final _sel_setFireDate_1 = _registerName1("setFireDate:"); - void _objc_msgSend_528( + void _objc_msgSend_540( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_528( + return __objc_msgSend_540( obj, sel, value, ); } - late final __objc_msgSend_528Ptr = _lookup< + late final __objc_msgSend_540Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_528 = __objc_msgSend_528Ptr.asFunction< + late final __objc_msgSend_540 = __objc_msgSend_540Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -14815,13 +15182,13 @@ class SentryCocoa { late final _sel_tolerance1 = _registerName1("tolerance"); late final _sel_setTolerance_1 = _registerName1("setTolerance:"); late final _sel_addTimer_forMode_1 = _registerName1("addTimer:forMode:"); - void _objc_msgSend_529( + void _objc_msgSend_541( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer timer, ffi.Pointer mode, ) { - return __objc_msgSend_529( + return __objc_msgSend_541( obj, sel, timer, @@ -14829,25 +15196,25 @@ class SentryCocoa { ); } - late final __objc_msgSend_529Ptr = _lookup< + late final __objc_msgSend_541Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_529 = __objc_msgSend_529Ptr.asFunction< + late final __objc_msgSend_541 = __objc_msgSend_541Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_addPort_forMode_1 = _registerName1("addPort:forMode:"); - void _objc_msgSend_530( + void _objc_msgSend_542( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aPort, ffi.Pointer mode, ) { - return __objc_msgSend_530( + return __objc_msgSend_542( obj, sel, aPort, @@ -14855,48 +15222,48 @@ class SentryCocoa { ); } - late final __objc_msgSend_530Ptr = _lookup< + late final __objc_msgSend_542Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_530 = __objc_msgSend_530Ptr.asFunction< + late final __objc_msgSend_542 = __objc_msgSend_542Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removePort_forMode_1 = _registerName1("removePort:forMode:"); late final _sel_limitDateForMode_1 = _registerName1("limitDateForMode:"); - ffi.Pointer _objc_msgSend_531( + ffi.Pointer _objc_msgSend_543( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer mode, ) { - return __objc_msgSend_531( + return __objc_msgSend_543( obj, sel, mode, ); } - late final __objc_msgSend_531Ptr = _lookup< + late final __objc_msgSend_543Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_531 = __objc_msgSend_531Ptr.asFunction< + late final __objc_msgSend_543 = __objc_msgSend_543Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_acceptInputForMode_beforeDate_1 = _registerName1("acceptInputForMode:beforeDate:"); - void _objc_msgSend_532( + void _objc_msgSend_544( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer mode, ffi.Pointer limitDate, ) { - return __objc_msgSend_532( + return __objc_msgSend_544( obj, sel, mode, @@ -14904,27 +15271,27 @@ class SentryCocoa { ); } - late final __objc_msgSend_532Ptr = _lookup< + late final __objc_msgSend_544Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_532 = __objc_msgSend_532Ptr.asFunction< + late final __objc_msgSend_544 = __objc_msgSend_544Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_run1 = _registerName1("run"); late final _sel_runUntilDate_1 = _registerName1("runUntilDate:"); late final _sel_runMode_beforeDate_1 = _registerName1("runMode:beforeDate:"); - bool _objc_msgSend_533( + bool _objc_msgSend_545( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer mode, ffi.Pointer limitDate, ) { - return __objc_msgSend_533( + return __objc_msgSend_545( obj, sel, mode, @@ -14932,27 +15299,27 @@ class SentryCocoa { ); } - late final __objc_msgSend_533Ptr = _lookup< + late final __objc_msgSend_545Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_533 = __objc_msgSend_533Ptr.asFunction< + late final __objc_msgSend_545 = __objc_msgSend_545Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_configureAsServer1 = _registerName1("configureAsServer"); late final _sel_performInModes_block_1 = _registerName1("performInModes:block:"); - void _objc_msgSend_534( + void _objc_msgSend_546( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer modes, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_534( + return __objc_msgSend_546( obj, sel, modes, @@ -14960,21 +15327,21 @@ class SentryCocoa { ); } - late final __objc_msgSend_534Ptr = _lookup< + late final __objc_msgSend_546Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_534 = __objc_msgSend_534Ptr.asFunction< + late final __objc_msgSend_546 = __objc_msgSend_546Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_performBlock_1 = _registerName1("performBlock:"); late final _sel_performSelector_target_argument_order_modes_1 = _registerName1("performSelector:target:argument:order:modes:"); - void _objc_msgSend_535( + void _objc_msgSend_547( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aSelector, @@ -14983,7 +15350,7 @@ class SentryCocoa { int order, ffi.Pointer modes, ) { - return __objc_msgSend_535( + return __objc_msgSend_547( obj, sel, aSelector, @@ -14994,7 +15361,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_535Ptr = _lookup< + late final __objc_msgSend_547Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -15004,7 +15371,7 @@ class SentryCocoa { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_535 = __objc_msgSend_535Ptr.asFunction< + late final __objc_msgSend_547 = __objc_msgSend_547Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -15020,13 +15387,13 @@ class SentryCocoa { _registerName1("cancelPerformSelectorsWithTarget:"); late final _sel_scheduleInRunLoop_forMode_1 = _registerName1("scheduleInRunLoop:forMode:"); - void _objc_msgSend_536( + void _objc_msgSend_548( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer runLoop, ffi.Pointer mode, ) { - return __objc_msgSend_536( + return __objc_msgSend_548( obj, sel, runLoop, @@ -15034,14 +15401,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_536Ptr = _lookup< + late final __objc_msgSend_548Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_536 = __objc_msgSend_536Ptr.asFunction< + late final __objc_msgSend_548 = __objc_msgSend_548Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15050,7 +15417,7 @@ class SentryCocoa { late final _sel_reservedSpaceLength1 = _registerName1("reservedSpaceLength"); late final _sel_sendBeforeDate_components_from_reserved_1 = _registerName1("sendBeforeDate:components:from:reserved:"); - bool _objc_msgSend_537( + bool _objc_msgSend_549( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer limitDate, @@ -15058,7 +15425,7 @@ class SentryCocoa { ffi.Pointer receivePort, int headerSpaceReserved, ) { - return __objc_msgSend_537( + return __objc_msgSend_549( obj, sel, limitDate, @@ -15068,7 +15435,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_537Ptr = _lookup< + late final __objc_msgSend_549Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -15077,7 +15444,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_537 = __objc_msgSend_537Ptr.asFunction< + late final __objc_msgSend_549 = __objc_msgSend_549Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -15088,7 +15455,7 @@ class SentryCocoa { late final _sel_sendBeforeDate_msgid_components_from_reserved_1 = _registerName1("sendBeforeDate:msgid:components:from:reserved:"); - bool _objc_msgSend_538( + bool _objc_msgSend_550( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer limitDate, @@ -15097,7 +15464,7 @@ class SentryCocoa { ffi.Pointer receivePort, int headerSpaceReserved, ) { - return __objc_msgSend_538( + return __objc_msgSend_550( obj, sel, limitDate, @@ -15108,7 +15475,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_538Ptr = _lookup< + late final __objc_msgSend_550Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -15118,7 +15485,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_538 = __objc_msgSend_538Ptr.asFunction< + late final __objc_msgSend_550 = __objc_msgSend_550Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -15132,21 +15499,21 @@ class SentryCocoa { late final _sel_statistics1 = _registerName1("statistics"); late final _sel_allConnections1 = _registerName1("allConnections"); late final _sel_defaultConnection1 = _registerName1("defaultConnection"); - ffi.Pointer _objc_msgSend_539( + ffi.Pointer _objc_msgSend_551( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_539( + return __objc_msgSend_551( obj, sel, ); } - late final __objc_msgSend_539Ptr = _lookup< + late final __objc_msgSend_551Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_539 = __objc_msgSend_539Ptr.asFunction< + late final __objc_msgSend_551 = __objc_msgSend_551Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -15155,53 +15522,53 @@ class SentryCocoa { late final _class_NSPortNameServer1 = _getClass1("NSPortNameServer"); late final _sel_systemDefaultPortNameServer1 = _registerName1("systemDefaultPortNameServer"); - ffi.Pointer _objc_msgSend_540( + ffi.Pointer _objc_msgSend_552( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_540( + return __objc_msgSend_552( obj, sel, ); } - late final __objc_msgSend_540Ptr = _lookup< + late final __objc_msgSend_552Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_540 = __objc_msgSend_540Ptr.asFunction< + late final __objc_msgSend_552 = __objc_msgSend_552Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_portForName_1 = _registerName1("portForName:"); - ffi.Pointer _objc_msgSend_541( + ffi.Pointer _objc_msgSend_553( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ) { - return __objc_msgSend_541( + return __objc_msgSend_553( obj, sel, name, ); } - late final __objc_msgSend_541Ptr = _lookup< + late final __objc_msgSend_553Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_541 = __objc_msgSend_541Ptr.asFunction< + late final __objc_msgSend_553 = __objc_msgSend_553Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_portForName_host_1 = _registerName1("portForName:host:"); - ffi.Pointer _objc_msgSend_542( + ffi.Pointer _objc_msgSend_554( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer host, ) { - return __objc_msgSend_542( + return __objc_msgSend_554( obj, sel, name, @@ -15209,14 +15576,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_542Ptr = _lookup< + late final __objc_msgSend_554Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_542 = __objc_msgSend_542Ptr.asFunction< + late final __objc_msgSend_554 = __objc_msgSend_554Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -15224,13 +15591,13 @@ class SentryCocoa { ffi.Pointer)>(); late final _sel_registerPort_name_1 = _registerName1("registerPort:name:"); - bool _objc_msgSend_543( + bool _objc_msgSend_555( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer port, ffi.Pointer name, ) { - return __objc_msgSend_543( + return __objc_msgSend_555( obj, sel, port, @@ -15238,28 +15605,28 @@ class SentryCocoa { ); } - late final __objc_msgSend_543Ptr = _lookup< + late final __objc_msgSend_555Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_543 = __objc_msgSend_543Ptr.asFunction< + late final __objc_msgSend_555 = __objc_msgSend_555Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removePortForName_1 = _registerName1("removePortForName:"); late final _sel_connectionWithRegisteredName_host_usingNameServer_1 = _registerName1("connectionWithRegisteredName:host:usingNameServer:"); - instancetype _objc_msgSend_544( + instancetype _objc_msgSend_556( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer hostName, ffi.Pointer server, ) { - return __objc_msgSend_544( + return __objc_msgSend_556( obj, sel, name, @@ -15268,7 +15635,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_544Ptr = _lookup< + late final __objc_msgSend_556Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -15276,7 +15643,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_544 = __objc_msgSend_544Ptr.asFunction< + late final __objc_msgSend_556 = __objc_msgSend_556Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -15289,13 +15656,13 @@ class SentryCocoa { late final _sel_respondsToSelector_1 = _registerName1("respondsToSelector:"); late final _sel_proxyWithTarget_connection_1 = _registerName1("proxyWithTarget:connection:"); - ffi.Pointer _objc_msgSend_545( + ffi.Pointer _objc_msgSend_557( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, ffi.Pointer connection, ) { - return __objc_msgSend_545( + return __objc_msgSend_557( obj, sel, target, @@ -15303,14 +15670,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_545Ptr = _lookup< + late final __objc_msgSend_557Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_545 = __objc_msgSend_545Ptr.asFunction< + late final __objc_msgSend_557 = __objc_msgSend_557Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -15325,36 +15692,36 @@ class SentryCocoa { _registerName1("initWithLocal:connection:"); late final _sel_setProtocolForProxy_1 = _registerName1("setProtocolForProxy:"); - void _objc_msgSend_546( + void _objc_msgSend_558( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer proto, ) { - return __objc_msgSend_546( + return __objc_msgSend_558( obj, sel, proto, ); } - late final __objc_msgSend_546Ptr = _lookup< + late final __objc_msgSend_558Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_546 = __objc_msgSend_546Ptr.asFunction< + late final __objc_msgSend_558 = __objc_msgSend_558Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_connectionForProxy1 = _registerName1("connectionForProxy"); late final _sel_rootProxyForConnectionWithRegisteredName_host_1 = _registerName1("rootProxyForConnectionWithRegisteredName:host:"); - ffi.Pointer _objc_msgSend_547( + ffi.Pointer _objc_msgSend_559( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer hostName, ) { - return __objc_msgSend_547( + return __objc_msgSend_559( obj, sel, name, @@ -15362,14 +15729,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_547Ptr = _lookup< + late final __objc_msgSend_559Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_547 = __objc_msgSend_547Ptr.asFunction< + late final __objc_msgSend_559 = __objc_msgSend_559Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -15379,14 +15746,14 @@ class SentryCocoa { late final _sel_rootProxyForConnectionWithRegisteredName_host_usingNameServer_1 = _registerName1( "rootProxyForConnectionWithRegisteredName:host:usingNameServer:"); - ffi.Pointer _objc_msgSend_548( + ffi.Pointer _objc_msgSend_560( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer hostName, ffi.Pointer server, ) { - return __objc_msgSend_548( + return __objc_msgSend_560( obj, sel, name, @@ -15395,7 +15762,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_548Ptr = _lookup< + late final __objc_msgSend_560Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -15403,7 +15770,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_548 = __objc_msgSend_548Ptr.asFunction< + late final __objc_msgSend_560 = __objc_msgSend_560Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -15413,14 +15780,14 @@ class SentryCocoa { late final _sel_serviceConnectionWithName_rootObject_usingNameServer_1 = _registerName1("serviceConnectionWithName:rootObject:usingNameServer:"); - instancetype _objc_msgSend_549( + instancetype _objc_msgSend_561( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer root, ffi.Pointer server, ) { - return __objc_msgSend_549( + return __objc_msgSend_561( obj, sel, name, @@ -15429,7 +15796,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_549Ptr = _lookup< + late final __objc_msgSend_561Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -15437,7 +15804,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_549 = __objc_msgSend_549Ptr.asFunction< + late final __objc_msgSend_561 = __objc_msgSend_561Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -15458,21 +15825,21 @@ class SentryCocoa { late final _sel_setIndependentConversationQueueing_1 = _registerName1("setIndependentConversationQueueing:"); late final _sel_rootProxy1 = _registerName1("rootProxy"); - ffi.Pointer _objc_msgSend_550( + ffi.Pointer _objc_msgSend_562( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_550( + return __objc_msgSend_562( obj, sel, ); } - late final __objc_msgSend_550Ptr = _lookup< + late final __objc_msgSend_562Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_550 = __objc_msgSend_550Ptr.asFunction< + late final __objc_msgSend_562 = __objc_msgSend_562Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -15482,13 +15849,13 @@ class SentryCocoa { late final _sel_registerName_1 = _registerName1("registerName:"); late final _sel_registerName_withNameServer_1 = _registerName1("registerName:withNameServer:"); - bool _objc_msgSend_551( + bool _objc_msgSend_563( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer server, ) { - return __objc_msgSend_551( + return __objc_msgSend_563( obj, sel, name, @@ -15496,26 +15863,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_551Ptr = _lookup< + late final __objc_msgSend_563Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_551 = __objc_msgSend_551Ptr.asFunction< + late final __objc_msgSend_563 = __objc_msgSend_563Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_connectionWithReceivePort_sendPort_1 = _registerName1("connectionWithReceivePort:sendPort:"); - instancetype _objc_msgSend_552( + instancetype _objc_msgSend_564( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer receivePort, ffi.Pointer sendPort, ) { - return __objc_msgSend_552( + return __objc_msgSend_564( obj, sel, receivePort, @@ -15523,14 +15890,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_552Ptr = _lookup< + late final __objc_msgSend_564Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_552 = __objc_msgSend_552Ptr.asFunction< + late final __objc_msgSend_564 = __objc_msgSend_564Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15544,23 +15911,23 @@ class SentryCocoa { late final _sel_multipleThreadsEnabled1 = _registerName1("multipleThreadsEnabled"); late final _sel_addRunLoop_1 = _registerName1("addRunLoop:"); - void _objc_msgSend_553( + void _objc_msgSend_565( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer runloop, ) { - return __objc_msgSend_553( + return __objc_msgSend_565( obj, sel, runloop, ); } - late final __objc_msgSend_553Ptr = _lookup< + late final __objc_msgSend_565Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_553 = __objc_msgSend_553Ptr.asFunction< + late final __objc_msgSend_565 = __objc_msgSend_565Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15572,14 +15939,14 @@ class SentryCocoa { _registerName1("dispatchWithComponents:"); late final _sel_addConnection_toRunLoop_forMode_1 = _registerName1("addConnection:toRunLoop:forMode:"); - void _objc_msgSend_554( + void _objc_msgSend_566( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer conn, ffi.Pointer runLoop, ffi.Pointer mode, ) { - return __objc_msgSend_554( + return __objc_msgSend_566( obj, sel, conn, @@ -15588,7 +15955,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_554Ptr = _lookup< + late final __objc_msgSend_566Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -15596,7 +15963,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_554 = __objc_msgSend_554Ptr.asFunction< + late final __objc_msgSend_566 = __objc_msgSend_566Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -15607,23 +15974,23 @@ class SentryCocoa { late final _sel_removeConnection_fromRunLoop_forMode_1 = _registerName1("removeConnection:fromRunLoop:forMode:"); late final _sel_encodePortObject_1 = _registerName1("encodePortObject:"); - void _objc_msgSend_555( + void _objc_msgSend_567( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aport, ) { - return __objc_msgSend_555( + return __objc_msgSend_567( obj, sel, aport, ); } - late final __objc_msgSend_555Ptr = _lookup< + late final __objc_msgSend_567Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_555 = __objc_msgSend_555Ptr.asFunction< + late final __objc_msgSend_567 = __objc_msgSend_567Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15631,14 +15998,14 @@ class SentryCocoa { late final _sel_connection1 = _registerName1("connection"); late final _sel_portCoderWithReceivePort_sendPort_components_1 = _registerName1("portCoderWithReceivePort:sendPort:components:"); - ffi.Pointer _objc_msgSend_556( + ffi.Pointer _objc_msgSend_568( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer rcvPort, ffi.Pointer sndPort, ffi.Pointer comps, ) { - return __objc_msgSend_556( + return __objc_msgSend_568( obj, sel, rcvPort, @@ -15647,7 +16014,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_556Ptr = _lookup< + late final __objc_msgSend_568Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -15655,7 +16022,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_556 = __objc_msgSend_556Ptr.asFunction< + late final __objc_msgSend_568 = __objc_msgSend_568Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -15668,36 +16035,36 @@ class SentryCocoa { late final _sel_dispatch1 = _registerName1("dispatch"); late final _sel_replacementObjectForPortCoder_1 = _registerName1("replacementObjectForPortCoder:"); - ffi.Pointer _objc_msgSend_557( + ffi.Pointer _objc_msgSend_569( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer coder, ) { - return __objc_msgSend_557( + return __objc_msgSend_569( obj, sel, coder, ); } - late final __objc_msgSend_557Ptr = _lookup< + late final __objc_msgSend_569Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_557 = __objc_msgSend_557Ptr.asFunction< + late final __objc_msgSend_569 = __objc_msgSend_569Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSClassDescription1 = _getClass1("NSClassDescription"); late final _sel_registerClassDescription_forClass_1 = _registerName1("registerClassDescription:forClass:"); - void _objc_msgSend_558( + void _objc_msgSend_570( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer description, ffi.Pointer aClass, ) { - return __objc_msgSend_558( + return __objc_msgSend_570( obj, sel, description, @@ -15705,14 +16072,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_558Ptr = _lookup< + late final __objc_msgSend_570Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_558 = __objc_msgSend_558Ptr.asFunction< + late final __objc_msgSend_570 = __objc_msgSend_570Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15720,23 +16087,23 @@ class SentryCocoa { _registerName1("invalidateClassDescriptionCache"); late final _sel_classDescriptionForClass_1 = _registerName1("classDescriptionForClass:"); - ffi.Pointer _objc_msgSend_559( + ffi.Pointer _objc_msgSend_571( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ) { - return __objc_msgSend_559( + return __objc_msgSend_571( obj, sel, aClass, ); } - late final __objc_msgSend_559Ptr = _lookup< + late final __objc_msgSend_571Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_559 = __objc_msgSend_559Ptr.asFunction< + late final __objc_msgSend_571 = __objc_msgSend_571Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -15748,21 +16115,21 @@ class SentryCocoa { late final _sel_inverseForRelationshipKey_1 = _registerName1("inverseForRelationshipKey:"); late final _sel_classDescription1 = _registerName1("classDescription"); - ffi.Pointer _objc_msgSend_560( + ffi.Pointer _objc_msgSend_572( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_560( + return __objc_msgSend_572( obj, sel, ); } - late final __objc_msgSend_560Ptr = _lookup< + late final __objc_msgSend_572Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_560 = __objc_msgSend_560Ptr.asFunction< + late final __objc_msgSend_572 = __objc_msgSend_572Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -15771,34 +16138,34 @@ class SentryCocoa { late final _class_NSAppleEventDescriptor1 = _getClass1("NSAppleEventDescriptor"); late final _sel_nullDescriptor1 = _registerName1("nullDescriptor"); - ffi.Pointer _objc_msgSend_561( + ffi.Pointer _objc_msgSend_573( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_561( + return __objc_msgSend_573( obj, sel, ); } - late final __objc_msgSend_561Ptr = _lookup< + late final __objc_msgSend_573Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_561 = __objc_msgSend_561Ptr.asFunction< + late final __objc_msgSend_573 = __objc_msgSend_573Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_descriptorWithDescriptorType_bytes_length_1 = _registerName1("descriptorWithDescriptorType:bytes:length:"); - ffi.Pointer _objc_msgSend_562( + ffi.Pointer _objc_msgSend_574( ffi.Pointer obj, ffi.Pointer sel, int descriptorType, ffi.Pointer bytes, int byteCount, ) { - return __objc_msgSend_562( + return __objc_msgSend_574( obj, sel, descriptorType, @@ -15807,7 +16174,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_562Ptr = _lookup< + late final __objc_msgSend_574Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -15815,19 +16182,19 @@ class SentryCocoa { ffi.UnsignedInt, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_562 = __objc_msgSend_562Ptr.asFunction< + late final __objc_msgSend_574 = __objc_msgSend_574Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, int)>(); late final _sel_descriptorWithDescriptorType_data_1 = _registerName1("descriptorWithDescriptorType:data:"); - ffi.Pointer _objc_msgSend_563( + ffi.Pointer _objc_msgSend_575( ffi.Pointer obj, ffi.Pointer sel, int descriptorType, ffi.Pointer data, ) { - return __objc_msgSend_563( + return __objc_msgSend_575( obj, sel, descriptorType, @@ -15835,102 +16202,102 @@ class SentryCocoa { ); } - late final __objc_msgSend_563Ptr = _lookup< + late final __objc_msgSend_575Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedInt, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_563 = __objc_msgSend_563Ptr.asFunction< + late final __objc_msgSend_575 = __objc_msgSend_575Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_descriptorWithBoolean_1 = _registerName1("descriptorWithBoolean:"); - ffi.Pointer _objc_msgSend_564( + ffi.Pointer _objc_msgSend_576( ffi.Pointer obj, ffi.Pointer sel, int boolean, ) { - return __objc_msgSend_564( + return __objc_msgSend_576( obj, sel, boolean, ); } - late final __objc_msgSend_564Ptr = _lookup< + late final __objc_msgSend_576Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedChar)>>('objc_msgSend'); - late final __objc_msgSend_564 = __objc_msgSend_564Ptr.asFunction< + late final __objc_msgSend_576 = __objc_msgSend_576Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_descriptorWithEnumCode_1 = _registerName1("descriptorWithEnumCode:"); - ffi.Pointer _objc_msgSend_565( + ffi.Pointer _objc_msgSend_577( ffi.Pointer obj, ffi.Pointer sel, int enumerator, ) { - return __objc_msgSend_565( + return __objc_msgSend_577( obj, sel, enumerator, ); } - late final __objc_msgSend_565Ptr = _lookup< + late final __objc_msgSend_577Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_565 = __objc_msgSend_565Ptr.asFunction< + late final __objc_msgSend_577 = __objc_msgSend_577Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_descriptorWithInt32_1 = _registerName1("descriptorWithInt32:"); - ffi.Pointer _objc_msgSend_566( + ffi.Pointer _objc_msgSend_578( ffi.Pointer obj, ffi.Pointer sel, int signedInt, ) { - return __objc_msgSend_566( + return __objc_msgSend_578( obj, sel, signedInt, ); } - late final __objc_msgSend_566Ptr = _lookup< + late final __objc_msgSend_578Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_566 = __objc_msgSend_566Ptr.asFunction< + late final __objc_msgSend_578 = __objc_msgSend_578Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_descriptorWithDouble_1 = _registerName1("descriptorWithDouble:"); - ffi.Pointer _objc_msgSend_567( + ffi.Pointer _objc_msgSend_579( ffi.Pointer obj, ffi.Pointer sel, double doubleValue, ) { - return __objc_msgSend_567( + return __objc_msgSend_579( obj, sel, doubleValue, ); } - late final __objc_msgSend_567Ptr = _lookup< + late final __objc_msgSend_579Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_567 = __objc_msgSend_567Ptr.asFunction< + late final __objc_msgSend_579 = __objc_msgSend_579Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, double)>(); @@ -15938,73 +16305,73 @@ class SentryCocoa { _registerName1("descriptorWithTypeCode:"); late final _sel_descriptorWithString_1 = _registerName1("descriptorWithString:"); - ffi.Pointer _objc_msgSend_568( + ffi.Pointer _objc_msgSend_580( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ) { - return __objc_msgSend_568( + return __objc_msgSend_580( obj, sel, string, ); } - late final __objc_msgSend_568Ptr = _lookup< + late final __objc_msgSend_580Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_568 = __objc_msgSend_568Ptr.asFunction< + late final __objc_msgSend_580 = __objc_msgSend_580Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_descriptorWithDate_1 = _registerName1("descriptorWithDate:"); - ffi.Pointer _objc_msgSend_569( + ffi.Pointer _objc_msgSend_581( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ) { - return __objc_msgSend_569( + return __objc_msgSend_581( obj, sel, date, ); } - late final __objc_msgSend_569Ptr = _lookup< + late final __objc_msgSend_581Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_569 = __objc_msgSend_569Ptr.asFunction< + late final __objc_msgSend_581 = __objc_msgSend_581Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_descriptorWithFileURL_1 = _registerName1("descriptorWithFileURL:"); - ffi.Pointer _objc_msgSend_570( + ffi.Pointer _objc_msgSend_582( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer fileURL, ) { - return __objc_msgSend_570( + return __objc_msgSend_582( obj, sel, fileURL, ); } - late final __objc_msgSend_570Ptr = _lookup< + late final __objc_msgSend_582Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_570 = __objc_msgSend_570Ptr.asFunction< + late final __objc_msgSend_582 = __objc_msgSend_582Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_1 = _registerName1( "appleEventWithEventClass:eventID:targetDescriptor:returnID:transactionID:"); - ffi.Pointer _objc_msgSend_571( + ffi.Pointer _objc_msgSend_583( ffi.Pointer obj, ffi.Pointer sel, int eventClass, @@ -16013,7 +16380,7 @@ class SentryCocoa { int returnID, int transactionID, ) { - return __objc_msgSend_571( + return __objc_msgSend_583( obj, sel, eventClass, @@ -16024,7 +16391,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_571Ptr = _lookup< + late final __objc_msgSend_583Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -16034,7 +16401,7 @@ class SentryCocoa { ffi.Pointer, ffi.Short, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_571 = __objc_msgSend_571Ptr.asFunction< + late final __objc_msgSend_583 = __objc_msgSend_583Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer, int, int)>(); @@ -16050,36 +16417,36 @@ class SentryCocoa { _registerName1("descriptorWithApplicationURL:"); late final _sel_initWithAEDescNoCopy_1 = _registerName1("initWithAEDescNoCopy:"); - instancetype _objc_msgSend_572( + instancetype _objc_msgSend_584( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aeDesc, ) { - return __objc_msgSend_572( + return __objc_msgSend_584( obj, sel, aeDesc, ); } - late final __objc_msgSend_572Ptr = _lookup< + late final __objc_msgSend_584Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_572 = __objc_msgSend_572Ptr.asFunction< + late final __objc_msgSend_584 = __objc_msgSend_584Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithDescriptorType_bytes_length_1 = _registerName1("initWithDescriptorType:bytes:length:"); - instancetype _objc_msgSend_573( + instancetype _objc_msgSend_585( ffi.Pointer obj, ffi.Pointer sel, int descriptorType, ffi.Pointer bytes, int byteCount, ) { - return __objc_msgSend_573( + return __objc_msgSend_585( obj, sel, descriptorType, @@ -16088,7 +16455,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_573Ptr = _lookup< + late final __objc_msgSend_585Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -16096,19 +16463,19 @@ class SentryCocoa { ffi.UnsignedInt, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_573 = __objc_msgSend_573Ptr.asFunction< + late final __objc_msgSend_585 = __objc_msgSend_585Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, int)>(); late final _sel_initWithDescriptorType_data_1 = _registerName1("initWithDescriptorType:data:"); - instancetype _objc_msgSend_574( + instancetype _objc_msgSend_586( ffi.Pointer obj, ffi.Pointer sel, int descriptorType, ffi.Pointer data, ) { - return __objc_msgSend_574( + return __objc_msgSend_586( obj, sel, descriptorType, @@ -16116,18 +16483,18 @@ class SentryCocoa { ); } - late final __objc_msgSend_574Ptr = _lookup< + late final __objc_msgSend_586Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_574 = __objc_msgSend_574Ptr.asFunction< + late final __objc_msgSend_586 = __objc_msgSend_586Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_initWithEventClass_eventID_targetDescriptor_returnID_transactionID_1 = _registerName1( "initWithEventClass:eventID:targetDescriptor:returnID:transactionID:"); - instancetype _objc_msgSend_575( + instancetype _objc_msgSend_587( ffi.Pointer obj, ffi.Pointer sel, int eventClass, @@ -16136,7 +16503,7 @@ class SentryCocoa { int returnID, int transactionID, ) { - return __objc_msgSend_575( + return __objc_msgSend_587( obj, sel, eventClass, @@ -16147,7 +16514,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_575Ptr = _lookup< + late final __objc_msgSend_587Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -16157,7 +16524,7 @@ class SentryCocoa { ffi.Pointer, ffi.Short, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_575 = __objc_msgSend_575Ptr.asFunction< + late final __objc_msgSend_587 = __objc_msgSend_587Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer, int, int)>(); @@ -16165,21 +16532,21 @@ class SentryCocoa { late final _sel_initRecordDescriptor1 = _registerName1("initRecordDescriptor"); late final _sel_aeDesc1 = _registerName1("aeDesc"); - ffi.Pointer _objc_msgSend_576( + ffi.Pointer _objc_msgSend_588( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_576( + return __objc_msgSend_588( obj, sel, ); } - late final __objc_msgSend_576Ptr = _lookup< + late final __objc_msgSend_588Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_576 = __objc_msgSend_576Ptr.asFunction< + late final __objc_msgSend_588 = __objc_msgSend_588Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -16196,13 +16563,13 @@ class SentryCocoa { late final _sel_transactionID1 = _registerName1("transactionID"); late final _sel_setParamDescriptor_forKeyword_1 = _registerName1("setParamDescriptor:forKeyword:"); - void _objc_msgSend_577( + void _objc_msgSend_589( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer descriptor, int keyword, ) { - return __objc_msgSend_577( + return __objc_msgSend_589( obj, sel, descriptor, @@ -16210,11 +16577,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_577Ptr = _lookup< + late final __objc_msgSend_589Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_577 = __objc_msgSend_577Ptr.asFunction< + late final __objc_msgSend_589 = __objc_msgSend_589Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -16222,23 +16589,23 @@ class SentryCocoa { _registerName1("paramDescriptorForKeyword:"); late final _sel_removeParamDescriptorWithKeyword_1 = _registerName1("removeParamDescriptorWithKeyword:"); - void _objc_msgSend_578( + void _objc_msgSend_590( ffi.Pointer obj, ffi.Pointer sel, int keyword, ) { - return __objc_msgSend_578( + return __objc_msgSend_590( obj, sel, keyword, ); } - late final __objc_msgSend_578Ptr = _lookup< + late final __objc_msgSend_590Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_578 = __objc_msgSend_578Ptr.asFunction< + late final __objc_msgSend_590 = __objc_msgSend_590Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setAttributeDescriptor_forKeyword_1 = @@ -16247,14 +16614,14 @@ class SentryCocoa { _registerName1("attributeDescriptorForKeyword:"); late final _sel_sendEventWithOptions_timeout_error_1 = _registerName1("sendEventWithOptions:timeout:error:"); - ffi.Pointer _objc_msgSend_579( + ffi.Pointer _objc_msgSend_591( ffi.Pointer obj, ffi.Pointer sel, int sendOptions, double timeoutInSeconds, ffi.Pointer> error, ) { - return __objc_msgSend_579( + return __objc_msgSend_591( obj, sel, sendOptions, @@ -16263,7 +16630,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_579Ptr = _lookup< + late final __objc_msgSend_591Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -16271,7 +16638,7 @@ class SentryCocoa { ffi.Int32, ffi.Double, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_579 = __objc_msgSend_579Ptr.asFunction< + late final __objc_msgSend_591 = __objc_msgSend_591Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16283,13 +16650,13 @@ class SentryCocoa { late final _sel_numberOfItems1 = _registerName1("numberOfItems"); late final _sel_insertDescriptor_atIndex_1 = _registerName1("insertDescriptor:atIndex:"); - void _objc_msgSend_580( + void _objc_msgSend_592( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer descriptor, int index, ) { - return __objc_msgSend_580( + return __objc_msgSend_592( obj, sel, descriptor, @@ -16297,32 +16664,32 @@ class SentryCocoa { ); } - late final __objc_msgSend_580Ptr = _lookup< + late final __objc_msgSend_592Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_580 = __objc_msgSend_580Ptr.asFunction< + late final __objc_msgSend_592 = __objc_msgSend_592Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_descriptorAtIndex_1 = _registerName1("descriptorAtIndex:"); - ffi.Pointer _objc_msgSend_581( + ffi.Pointer _objc_msgSend_593( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_581( + return __objc_msgSend_593( obj, sel, index, ); } - late final __objc_msgSend_581Ptr = _lookup< + late final __objc_msgSend_593Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_581 = __objc_msgSend_581Ptr.asFunction< + late final __objc_msgSend_593 = __objc_msgSend_593Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -16336,58 +16703,58 @@ class SentryCocoa { _registerName1("removeDescriptorWithKeyword:"); late final _sel_keywordForDescriptorAtIndex_1 = _registerName1("keywordForDescriptorAtIndex:"); - int _objc_msgSend_582( + int _objc_msgSend_594( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_582( + return __objc_msgSend_594( obj, sel, index, ); } - late final __objc_msgSend_582Ptr = _lookup< + late final __objc_msgSend_594Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedInt Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_582 = __objc_msgSend_582Ptr.asFunction< + late final __objc_msgSend_594 = __objc_msgSend_594Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_coerceToDescriptorType_1 = _registerName1("coerceToDescriptorType:"); late final _sel_objectSpecifierWithDescriptor_1 = _registerName1("objectSpecifierWithDescriptor:"); - ffi.Pointer _objc_msgSend_583( + ffi.Pointer _objc_msgSend_595( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer descriptor, ) { - return __objc_msgSend_583( + return __objc_msgSend_595( obj, sel, descriptor, ); } - late final __objc_msgSend_583Ptr = _lookup< + late final __objc_msgSend_595Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_583 = __objc_msgSend_583Ptr.asFunction< + late final __objc_msgSend_595 = __objc_msgSend_595Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithContainerSpecifier_key_1 = _registerName1("initWithContainerSpecifier:key:"); - instancetype _objc_msgSend_584( + instancetype _objc_msgSend_596( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer container, ffi.Pointer property, ) { - return __objc_msgSend_584( + return __objc_msgSend_596( obj, sel, container, @@ -16395,49 +16762,49 @@ class SentryCocoa { ); } - late final __objc_msgSend_584Ptr = _lookup< + late final __objc_msgSend_596Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_584 = __objc_msgSend_584Ptr.asFunction< + late final __objc_msgSend_596 = __objc_msgSend_596Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSScriptClassDescription1 = _getClass1("NSScriptClassDescription"); - ffi.Pointer _objc_msgSend_585( + ffi.Pointer _objc_msgSend_597( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ) { - return __objc_msgSend_585( + return __objc_msgSend_597( obj, sel, aClass, ); } - late final __objc_msgSend_585Ptr = _lookup< + late final __objc_msgSend_597Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_585 = __objc_msgSend_585Ptr.asFunction< + late final __objc_msgSend_597 = __objc_msgSend_597Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithSuiteName_className_dictionary_1 = _registerName1("initWithSuiteName:className:dictionary:"); - instancetype _objc_msgSend_586( + instancetype _objc_msgSend_598( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer suiteName, ffi.Pointer className, ffi.Pointer classDeclaration, ) { - return __objc_msgSend_586( + return __objc_msgSend_598( obj, sel, suiteName, @@ -16446,7 +16813,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_586Ptr = _lookup< + late final __objc_msgSend_598Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -16454,7 +16821,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_586 = __objc_msgSend_586Ptr.asFunction< + late final __objc_msgSend_598 = __objc_msgSend_598Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -16468,21 +16835,21 @@ class SentryCocoa { _registerName1("implementationClassName"); late final _sel_superclassDescription1 = _registerName1("superclassDescription"); - ffi.Pointer _objc_msgSend_587( + ffi.Pointer _objc_msgSend_599( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_587( + return __objc_msgSend_599( obj, sel, ); } - late final __objc_msgSend_587Ptr = _lookup< + late final __objc_msgSend_599Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_587 = __objc_msgSend_587Ptr.asFunction< + late final __objc_msgSend_599 = __objc_msgSend_599Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -16504,23 +16871,23 @@ class SentryCocoa { _registerName1("typeForArgumentWithName:"); late final _sel_appleEventCodeForArgumentWithName_1 = _registerName1("appleEventCodeForArgumentWithName:"); - int _objc_msgSend_588( + int _objc_msgSend_600( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer argumentName, ) { - return __objc_msgSend_588( + return __objc_msgSend_600( obj, sel, argumentName, ); } - late final __objc_msgSend_588Ptr = _lookup< + late final __objc_msgSend_600Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedInt Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_588 = __objc_msgSend_588Ptr.asFunction< + late final __objc_msgSend_600 = __objc_msgSend_600Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -16529,85 +16896,85 @@ class SentryCocoa { late final _class_NSScriptCommand1 = _getClass1("NSScriptCommand"); late final _sel_initWithCommandDescription_1 = _registerName1("initWithCommandDescription:"); - instancetype _objc_msgSend_589( + instancetype _objc_msgSend_601( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer commandDef, ) { - return __objc_msgSend_589( + return __objc_msgSend_601( obj, sel, commandDef, ); } - late final __objc_msgSend_589Ptr = _lookup< + late final __objc_msgSend_601Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_589 = __objc_msgSend_589Ptr.asFunction< + late final __objc_msgSend_601 = __objc_msgSend_601Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_commandDescription1 = _registerName1("commandDescription"); - ffi.Pointer _objc_msgSend_590( + ffi.Pointer _objc_msgSend_602( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_590( + return __objc_msgSend_602( obj, sel, ); } - late final __objc_msgSend_590Ptr = _lookup< + late final __objc_msgSend_602Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_590 = __objc_msgSend_590Ptr.asFunction< + late final __objc_msgSend_602 = __objc_msgSend_602Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_directParameter1 = _registerName1("directParameter"); late final _sel_setDirectParameter_1 = _registerName1("setDirectParameter:"); late final _sel_receiversSpecifier1 = _registerName1("receiversSpecifier"); - ffi.Pointer _objc_msgSend_591( + ffi.Pointer _objc_msgSend_603( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_591( + return __objc_msgSend_603( obj, sel, ); } - late final __objc_msgSend_591Ptr = _lookup< + late final __objc_msgSend_603Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_591 = __objc_msgSend_591Ptr.asFunction< + late final __objc_msgSend_603 = __objc_msgSend_603Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setReceiversSpecifier_1 = _registerName1("setReceiversSpecifier:"); - void _objc_msgSend_592( + void _objc_msgSend_604( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_592( + return __objc_msgSend_604( obj, sel, value, ); } - late final __objc_msgSend_592Ptr = _lookup< + late final __objc_msgSend_604Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_592 = __objc_msgSend_592Ptr.asFunction< + late final __objc_msgSend_604 = __objc_msgSend_604Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -16622,46 +16989,46 @@ class SentryCocoa { late final _sel_scriptErrorNumber1 = _registerName1("scriptErrorNumber"); late final _sel_setScriptErrorNumber_1 = _registerName1("setScriptErrorNumber:"); - void _objc_msgSend_593( + void _objc_msgSend_605( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_593( + return __objc_msgSend_605( obj, sel, value, ); } - late final __objc_msgSend_593Ptr = _lookup< + late final __objc_msgSend_605Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_593 = __objc_msgSend_593Ptr.asFunction< + late final __objc_msgSend_605 = __objc_msgSend_605Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_scriptErrorOffendingObjectDescriptor1 = _registerName1("scriptErrorOffendingObjectDescriptor"); late final _sel_setScriptErrorOffendingObjectDescriptor_1 = _registerName1("setScriptErrorOffendingObjectDescriptor:"); - void _objc_msgSend_594( + void _objc_msgSend_606( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_594( + return __objc_msgSend_606( obj, sel, value, ); } - late final __objc_msgSend_594Ptr = _lookup< + late final __objc_msgSend_606Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_594 = __objc_msgSend_594Ptr.asFunction< + late final __objc_msgSend_606 = __objc_msgSend_606Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -16673,21 +17040,21 @@ class SentryCocoa { late final _sel_setScriptErrorString_1 = _registerName1("setScriptErrorString:"); late final _sel_currentCommand1 = _registerName1("currentCommand"); - ffi.Pointer _objc_msgSend_595( + ffi.Pointer _objc_msgSend_607( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_595( + return __objc_msgSend_607( obj, sel, ); } - late final __objc_msgSend_595Ptr = _lookup< + late final __objc_msgSend_607Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_595 = __objc_msgSend_595Ptr.asFunction< + late final __objc_msgSend_607 = __objc_msgSend_607Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -16699,88 +17066,88 @@ class SentryCocoa { _registerName1("createCommandInstance"); late final _sel_createCommandInstanceWithZone_1 = _registerName1("createCommandInstanceWithZone:"); - ffi.Pointer _objc_msgSend_596( + ffi.Pointer _objc_msgSend_608( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_NSZone> zone, ) { - return __objc_msgSend_596( + return __objc_msgSend_608( obj, sel, zone, ); } - late final __objc_msgSend_596Ptr = _lookup< + late final __objc_msgSend_608Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_NSZone>)>>('objc_msgSend'); - late final __objc_msgSend_596 = __objc_msgSend_596Ptr.asFunction< + late final __objc_msgSend_608 = __objc_msgSend_608Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_NSZone>)>(); late final _sel_supportsCommand_1 = _registerName1("supportsCommand:"); - bool _objc_msgSend_597( + bool _objc_msgSend_609( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer commandDescription, ) { - return __objc_msgSend_597( + return __objc_msgSend_609( obj, sel, commandDescription, ); } - late final __objc_msgSend_597Ptr = _lookup< + late final __objc_msgSend_609Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_597 = __objc_msgSend_597Ptr.asFunction< + late final __objc_msgSend_609 = __objc_msgSend_609Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_selectorForCommand_1 = _registerName1("selectorForCommand:"); - ffi.Pointer _objc_msgSend_598( + ffi.Pointer _objc_msgSend_610( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer commandDescription, ) { - return __objc_msgSend_598( + return __objc_msgSend_610( obj, sel, commandDescription, ); } - late final __objc_msgSend_598Ptr = _lookup< + late final __objc_msgSend_610Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_598 = __objc_msgSend_598Ptr.asFunction< + late final __objc_msgSend_610 = __objc_msgSend_610Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_typeForKey_1 = _registerName1("typeForKey:"); late final _sel_classDescriptionForKey_1 = _registerName1("classDescriptionForKey:"); - ffi.Pointer _objc_msgSend_599( + ffi.Pointer _objc_msgSend_611( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { - return __objc_msgSend_599( + return __objc_msgSend_611( obj, sel, key, ); } - late final __objc_msgSend_599Ptr = _lookup< + late final __objc_msgSend_611Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_599 = __objc_msgSend_599Ptr.asFunction< + late final __objc_msgSend_611 = __objc_msgSend_611Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -16788,23 +17155,23 @@ class SentryCocoa { _registerName1("appleEventCodeForKey:"); late final _sel_keyWithAppleEventCode_1 = _registerName1("keyWithAppleEventCode:"); - ffi.Pointer _objc_msgSend_600( + ffi.Pointer _objc_msgSend_612( ffi.Pointer obj, ffi.Pointer sel, int appleEventCode, ) { - return __objc_msgSend_600( + return __objc_msgSend_612( obj, sel, appleEventCode, ); } - late final __objc_msgSend_600Ptr = _lookup< + late final __objc_msgSend_612Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedInt)>>('objc_msgSend'); - late final __objc_msgSend_600 = __objc_msgSend_600Ptr.asFunction< + late final __objc_msgSend_612 = __objc_msgSend_612Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -16823,14 +17190,14 @@ class SentryCocoa { late final _sel_initWithContainerClassDescription_containerSpecifier_key_1 = _registerName1( "initWithContainerClassDescription:containerSpecifier:key:"); - instancetype _objc_msgSend_601( + instancetype _objc_msgSend_613( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer classDesc, ffi.Pointer container, ffi.Pointer property, ) { - return __objc_msgSend_601( + return __objc_msgSend_613( obj, sel, classDesc, @@ -16839,7 +17206,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_601Ptr = _lookup< + late final __objc_msgSend_613Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -16847,7 +17214,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_601 = __objc_msgSend_601Ptr.asFunction< + late final __objc_msgSend_613 = __objc_msgSend_613Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -16874,36 +17241,36 @@ class SentryCocoa { _registerName1("containerClassDescription"); late final _sel_setContainerClassDescription_1 = _registerName1("setContainerClassDescription:"); - void _objc_msgSend_602( + void _objc_msgSend_614( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_602( + return __objc_msgSend_614( obj, sel, value, ); } - late final __objc_msgSend_602Ptr = _lookup< + late final __objc_msgSend_614Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_602 = __objc_msgSend_602Ptr.asFunction< + late final __objc_msgSend_614 = __objc_msgSend_614Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_keyClassDescription1 = _registerName1("keyClassDescription"); late final _sel_indicesOfObjectsByEvaluatingWithContainer_count_1 = _registerName1("indicesOfObjectsByEvaluatingWithContainer:count:"); - ffi.Pointer _objc_msgSend_603( + ffi.Pointer _objc_msgSend_615( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer container, ffi.Pointer count, ) { - return __objc_msgSend_603( + return __objc_msgSend_615( obj, sel, container, @@ -16911,14 +17278,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_603Ptr = _lookup< + late final __objc_msgSend_615Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_603 = __objc_msgSend_603Ptr.asFunction< + late final __objc_msgSend_615 = __objc_msgSend_615Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16938,23 +17305,23 @@ class SentryCocoa { late final _sel_descriptor1 = _registerName1("descriptor"); late final _sel_scriptingValueForSpecifier_1 = _registerName1("scriptingValueForSpecifier:"); - ffi.Pointer _objc_msgSend_604( + ffi.Pointer _objc_msgSend_616( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objectSpecifier, ) { - return __objc_msgSend_604( + return __objc_msgSend_616( obj, sel, objectSpecifier, ); } - late final __objc_msgSend_604Ptr = _lookup< + late final __objc_msgSend_616Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_604 = __objc_msgSend_604Ptr.asFunction< + late final __objc_msgSend_616 = __objc_msgSend_616Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -16963,14 +17330,14 @@ class SentryCocoa { _registerName1("setScriptingProperties:"); late final _sel_copyScriptingValue_forKey_withProperties_1 = _registerName1("copyScriptingValue:forKey:withProperties:"); - ffi.Pointer _objc_msgSend_605( + ffi.Pointer _objc_msgSend_617( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer key, ffi.Pointer properties, ) { - return __objc_msgSend_605( + return __objc_msgSend_617( obj, sel, value, @@ -16979,7 +17346,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_605Ptr = _lookup< + late final __objc_msgSend_617Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -16987,7 +17354,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_605 = __objc_msgSend_605Ptr.asFunction< + late final __objc_msgSend_617 = __objc_msgSend_617Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -16998,7 +17365,7 @@ class SentryCocoa { late final _sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_1 = _registerName1( "newScriptingObjectOfClass:forValueForKey:withContentsValue:properties:"); - ffi.Pointer _objc_msgSend_606( + ffi.Pointer _objc_msgSend_618( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer objectClass, @@ -17006,7 +17373,7 @@ class SentryCocoa { ffi.Pointer contentsValue, ffi.Pointer properties, ) { - return __objc_msgSend_606( + return __objc_msgSend_618( obj, sel, objectClass, @@ -17016,7 +17383,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_606Ptr = _lookup< + late final __objc_msgSend_618Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -17025,7 +17392,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_606 = __objc_msgSend_606Ptr.asFunction< + late final __objc_msgSend_618 = __objc_msgSend_618Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17037,13 +17404,13 @@ class SentryCocoa { late final _sel_classCode1 = _registerName1("classCode"); late final _sel_valueAtIndex_inPropertyWithKey_1 = _registerName1("valueAtIndex:inPropertyWithKey:"); - ffi.Pointer _objc_msgSend_607( + ffi.Pointer _objc_msgSend_619( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer key, ) { - return __objc_msgSend_607( + return __objc_msgSend_619( obj, sel, index, @@ -17051,14 +17418,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_607Ptr = _lookup< + late final __objc_msgSend_619Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_607 = __objc_msgSend_607Ptr.asFunction< + late final __objc_msgSend_619 = __objc_msgSend_619Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -17068,14 +17435,14 @@ class SentryCocoa { _registerName1("valueWithUniqueID:inPropertyWithKey:"); late final _sel_insertValue_atIndex_inPropertyWithKey_1 = _registerName1("insertValue:atIndex:inPropertyWithKey:"); - void _objc_msgSend_608( + void _objc_msgSend_620( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, int index, ffi.Pointer key, ) { - return __objc_msgSend_608( + return __objc_msgSend_620( obj, sel, value, @@ -17084,7 +17451,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_608Ptr = _lookup< + late final __objc_msgSend_620Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -17092,19 +17459,19 @@ class SentryCocoa { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_608 = __objc_msgSend_608Ptr.asFunction< + late final __objc_msgSend_620 = __objc_msgSend_620Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_removeValueAtIndex_fromPropertyWithKey_1 = _registerName1("removeValueAtIndex:fromPropertyWithKey:"); - void _objc_msgSend_609( + void _objc_msgSend_621( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer key, ) { - return __objc_msgSend_609( + return __objc_msgSend_621( obj, sel, index, @@ -17112,24 +17479,24 @@ class SentryCocoa { ); } - late final __objc_msgSend_609Ptr = _lookup< + late final __objc_msgSend_621Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_609 = __objc_msgSend_609Ptr.asFunction< + late final __objc_msgSend_621 = __objc_msgSend_621Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_replaceValueAtIndex_inPropertyWithKey_withValue_1 = _registerName1("replaceValueAtIndex:inPropertyWithKey:withValue:"); - void _objc_msgSend_610( + void _objc_msgSend_622( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer key, ffi.Pointer value, ) { - return __objc_msgSend_610( + return __objc_msgSend_622( obj, sel, index, @@ -17138,7 +17505,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_610Ptr = _lookup< + late final __objc_msgSend_622Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -17146,7 +17513,7 @@ class SentryCocoa { ffi.UnsignedLong, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_610 = __objc_msgSend_610Ptr.asFunction< + late final __objc_msgSend_622 = __objc_msgSend_622Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, ffi.Pointer)>(); @@ -17156,23 +17523,23 @@ class SentryCocoa { late final _sel_objectSpecifier1 = _registerName1("objectSpecifier"); late final _sel_indicesOfObjectsByEvaluatingObjectSpecifier_1 = _registerName1("indicesOfObjectsByEvaluatingObjectSpecifier:"); - ffi.Pointer _objc_msgSend_611( + ffi.Pointer _objc_msgSend_623( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer specifier, ) { - return __objc_msgSend_611( + return __objc_msgSend_623( obj, sel, specifier, ); } - late final __objc_msgSend_611Ptr = _lookup< + late final __objc_msgSend_623Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_611 = __objc_msgSend_611Ptr.asFunction< + late final __objc_msgSend_623 = __objc_msgSend_623Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -17204,43 +17571,43 @@ class SentryCocoa { late final _class_NSItemProvider1 = _getClass1("NSItemProvider"); late final _class_NSProgress1 = _getClass1("NSProgress"); late final _sel_currentProgress1 = _registerName1("currentProgress"); - ffi.Pointer _objc_msgSend_612( + ffi.Pointer _objc_msgSend_624( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_612( + return __objc_msgSend_624( obj, sel, ); } - late final __objc_msgSend_612Ptr = _lookup< + late final __objc_msgSend_624Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_612 = __objc_msgSend_612Ptr.asFunction< + late final __objc_msgSend_624 = __objc_msgSend_624Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_progressWithTotalUnitCount_1 = _registerName1("progressWithTotalUnitCount:"); - ffi.Pointer _objc_msgSend_613( + ffi.Pointer _objc_msgSend_625( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ) { - return __objc_msgSend_613( + return __objc_msgSend_625( obj, sel, unitCount, ); } - late final __objc_msgSend_613Ptr = _lookup< + late final __objc_msgSend_625Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_613 = __objc_msgSend_613Ptr.asFunction< + late final __objc_msgSend_625 = __objc_msgSend_625Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -17248,14 +17615,14 @@ class SentryCocoa { _registerName1("discreteProgressWithTotalUnitCount:"); late final _sel_progressWithTotalUnitCount_parent_pendingUnitCount_1 = _registerName1("progressWithTotalUnitCount:parent:pendingUnitCount:"); - ffi.Pointer _objc_msgSend_614( + ffi.Pointer _objc_msgSend_626( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ffi.Pointer parent, int portionOfParentTotalUnitCount, ) { - return __objc_msgSend_614( + return __objc_msgSend_626( obj, sel, unitCount, @@ -17264,7 +17631,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_614Ptr = _lookup< + late final __objc_msgSend_626Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -17272,19 +17639,19 @@ class SentryCocoa { ffi.Int64, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_614 = __objc_msgSend_614Ptr.asFunction< + late final __objc_msgSend_626 = __objc_msgSend_626Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, int)>(); late final _sel_initWithParent_userInfo_1 = _registerName1("initWithParent:userInfo:"); - instancetype _objc_msgSend_615( + instancetype _objc_msgSend_627( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer parentProgressOrNil, ffi.Pointer userInfoOrNil, ) { - return __objc_msgSend_615( + return __objc_msgSend_627( obj, sel, parentProgressOrNil, @@ -17292,47 +17659,47 @@ class SentryCocoa { ); } - late final __objc_msgSend_615Ptr = _lookup< + late final __objc_msgSend_627Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_615 = __objc_msgSend_615Ptr.asFunction< + late final __objc_msgSend_627 = __objc_msgSend_627Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_becomeCurrentWithPendingUnitCount_1 = _registerName1("becomeCurrentWithPendingUnitCount:"); - void _objc_msgSend_616( + void _objc_msgSend_628( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ) { - return __objc_msgSend_616( + return __objc_msgSend_628( obj, sel, unitCount, ); } - late final __objc_msgSend_616Ptr = _lookup< + late final __objc_msgSend_628Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_616 = __objc_msgSend_616Ptr.asFunction< + late final __objc_msgSend_628 = __objc_msgSend_628Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_performAsCurrentWithPendingUnitCount_usingBlock_1 = _registerName1("performAsCurrentWithPendingUnitCount:usingBlock:"); - void _objc_msgSend_617( + void _objc_msgSend_629( ffi.Pointer obj, ffi.Pointer sel, int unitCount, ffi.Pointer<_ObjCBlock> work, ) { - return __objc_msgSend_617( + return __objc_msgSend_629( obj, sel, unitCount, @@ -17340,24 +17707,24 @@ class SentryCocoa { ); } - late final __objc_msgSend_617Ptr = _lookup< + late final __objc_msgSend_629Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_617 = __objc_msgSend_617Ptr.asFunction< + late final __objc_msgSend_629 = __objc_msgSend_629Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_resignCurrent1 = _registerName1("resignCurrent"); late final _sel_addChild_withPendingUnitCount_1 = _registerName1("addChild:withPendingUnitCount:"); - void _objc_msgSend_618( + void _objc_msgSend_630( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, int inUnitCount, ) { - return __objc_msgSend_618( + return __objc_msgSend_630( obj, sel, child, @@ -17365,50 +17732,50 @@ class SentryCocoa { ); } - late final __objc_msgSend_618Ptr = _lookup< + late final __objc_msgSend_630Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_618 = __objc_msgSend_618Ptr.asFunction< + late final __objc_msgSend_630 = __objc_msgSend_630Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_totalUnitCount1 = _registerName1("totalUnitCount"); - int _objc_msgSend_619( + int _objc_msgSend_631( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_619( + return __objc_msgSend_631( obj, sel, ); } - late final __objc_msgSend_619Ptr = _lookup< + late final __objc_msgSend_631Ptr = _lookup< ffi.NativeFunction< ffi.Int64 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_619 = __objc_msgSend_619Ptr.asFunction< + late final __objc_msgSend_631 = __objc_msgSend_631Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTotalUnitCount_1 = _registerName1("setTotalUnitCount:"); - void _objc_msgSend_620( + void _objc_msgSend_632( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_620( + return __objc_msgSend_632( obj, sel, value, ); } - late final __objc_msgSend_620Ptr = _lookup< + late final __objc_msgSend_632Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_620 = __objc_msgSend_620Ptr.asFunction< + late final __objc_msgSend_632 = __objc_msgSend_632Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_completedUnitCount1 = _registerName1("completedUnitCount"); @@ -17426,43 +17793,43 @@ class SentryCocoa { late final _sel_setPausable_1 = _registerName1("setPausable:"); late final _sel_isPaused1 = _registerName1("isPaused"); late final _sel_cancellationHandler1 = _registerName1("cancellationHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_621( + ffi.Pointer<_ObjCBlock> _objc_msgSend_633( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_621( + return __objc_msgSend_633( obj, sel, ); } - late final __objc_msgSend_621Ptr = _lookup< + late final __objc_msgSend_633Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_621 = __objc_msgSend_621Ptr.asFunction< + late final __objc_msgSend_633 = __objc_msgSend_633Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setCancellationHandler_1 = _registerName1("setCancellationHandler:"); - void _objc_msgSend_622( + void _objc_msgSend_634( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_622( + return __objc_msgSend_634( obj, sel, value, ); } - late final __objc_msgSend_622Ptr = _lookup< + late final __objc_msgSend_634Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_622 = __objc_msgSend_622Ptr.asFunction< + late final __objc_msgSend_634 = __objc_msgSend_634Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -17482,23 +17849,23 @@ class SentryCocoa { _registerName1("estimatedTimeRemaining"); late final _sel_setEstimatedTimeRemaining_1 = _registerName1("setEstimatedTimeRemaining:"); - void _objc_msgSend_623( + void _objc_msgSend_635( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_623( + return __objc_msgSend_635( obj, sel, value, ); } - late final __objc_msgSend_623Ptr = _lookup< + late final __objc_msgSend_635Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_623 = __objc_msgSend_623Ptr.asFunction< + late final __objc_msgSend_635 = __objc_msgSend_635Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -17509,23 +17876,23 @@ class SentryCocoa { _registerName1("setFileOperationKind:"); late final _sel_fileURL1 = _registerName1("fileURL"); late final _sel_setFileURL_1 = _registerName1("setFileURL:"); - void _objc_msgSend_624( + void _objc_msgSend_636( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_624( + return __objc_msgSend_636( obj, sel, value, ); } - late final __objc_msgSend_624Ptr = _lookup< + late final __objc_msgSend_636Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_624 = __objc_msgSend_624Ptr.asFunction< + late final __objc_msgSend_636 = __objc_msgSend_636Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -17538,13 +17905,13 @@ class SentryCocoa { late final _sel_unpublish1 = _registerName1("unpublish"); late final _sel_addSubscriberForFileURL_withPublishingHandler_1 = _registerName1("addSubscriberForFileURL:withPublishingHandler:"); - ffi.Pointer _objc_msgSend_625( + ffi.Pointer _objc_msgSend_637( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> publishingHandler, ) { - return __objc_msgSend_625( + return __objc_msgSend_637( obj, sel, url, @@ -17552,14 +17919,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_625Ptr = _lookup< + late final __objc_msgSend_637Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_625 = __objc_msgSend_625Ptr.asFunction< + late final __objc_msgSend_637 = __objc_msgSend_637Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17571,14 +17938,14 @@ class SentryCocoa { late final _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1 = _registerName1( "registerDataRepresentationForTypeIdentifier:visibility:loadHandler:"); - void _objc_msgSend_626( + void _objc_msgSend_638( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_626( + return __objc_msgSend_638( obj, sel, typeIdentifier, @@ -17587,7 +17954,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_626Ptr = _lookup< + late final __objc_msgSend_638Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -17595,14 +17962,14 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_626 = __objc_msgSend_626Ptr.asFunction< + late final __objc_msgSend_638 = __objc_msgSend_638Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1 = _registerName1( "registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:"); - void _objc_msgSend_627( + void _objc_msgSend_639( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, @@ -17610,7 +17977,7 @@ class SentryCocoa { int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_627( + return __objc_msgSend_639( obj, sel, typeIdentifier, @@ -17620,7 +17987,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_627Ptr = _lookup< + late final __objc_msgSend_639Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -17629,7 +17996,7 @@ class SentryCocoa { ffi.Int32, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_627 = __objc_msgSend_627Ptr.asFunction< + late final __objc_msgSend_639 = __objc_msgSend_639Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); @@ -17637,23 +18004,23 @@ class SentryCocoa { _registerName1("registeredTypeIdentifiers"); late final _sel_registeredTypeIdentifiersWithFileOptions_1 = _registerName1("registeredTypeIdentifiersWithFileOptions:"); - ffi.Pointer _objc_msgSend_628( + ffi.Pointer _objc_msgSend_640( ffi.Pointer obj, ffi.Pointer sel, int fileOptions, ) { - return __objc_msgSend_628( + return __objc_msgSend_640( obj, sel, fileOptions, ); } - late final __objc_msgSend_628Ptr = _lookup< + late final __objc_msgSend_640Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_628 = __objc_msgSend_628Ptr.asFunction< + late final __objc_msgSend_640 = __objc_msgSend_640Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -17662,13 +18029,13 @@ class SentryCocoa { late final _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1 = _registerName1( "hasRepresentationConformingToTypeIdentifier:fileOptions:"); - bool _objc_msgSend_629( + bool _objc_msgSend_641( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, int fileOptions, ) { - return __objc_msgSend_629( + return __objc_msgSend_641( obj, sel, typeIdentifier, @@ -17676,24 +18043,24 @@ class SentryCocoa { ); } - late final __objc_msgSend_629Ptr = _lookup< + late final __objc_msgSend_641Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_629 = __objc_msgSend_629Ptr.asFunction< + late final __objc_msgSend_641 = __objc_msgSend_641Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_loadDataRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadDataRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_630( + ffi.Pointer _objc_msgSend_642( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_630( + return __objc_msgSend_642( obj, sel, typeIdentifier, @@ -17701,14 +18068,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_630Ptr = _lookup< + late final __objc_msgSend_642Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_630 = __objc_msgSend_630Ptr.asFunction< + late final __objc_msgSend_642 = __objc_msgSend_642Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17718,13 +18085,13 @@ class SentryCocoa { late final _sel_loadFileRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadFileRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_631( + ffi.Pointer _objc_msgSend_643( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_631( + return __objc_msgSend_643( obj, sel, typeIdentifier, @@ -17732,14 +18099,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_631Ptr = _lookup< + late final __objc_msgSend_643Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_631 = __objc_msgSend_631Ptr.asFunction< + late final __objc_msgSend_643 = __objc_msgSend_643Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17749,13 +18116,13 @@ class SentryCocoa { late final _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1 = _registerName1( "loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_632( + ffi.Pointer _objc_msgSend_644( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_632( + return __objc_msgSend_644( obj, sel, typeIdentifier, @@ -17763,14 +18130,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_632Ptr = _lookup< + late final __objc_msgSend_644Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_632 = __objc_msgSend_632Ptr.asFunction< + late final __objc_msgSend_644 = __objc_msgSend_644Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17781,13 +18148,13 @@ class SentryCocoa { late final _sel_setSuggestedName_1 = _registerName1("setSuggestedName:"); late final _sel_registerObject_visibility_1 = _registerName1("registerObject:visibility:"); - void _objc_msgSend_633( + void _objc_msgSend_645( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer object, int visibility, ) { - return __objc_msgSend_633( + return __objc_msgSend_645( obj, sel, object, @@ -17795,24 +18162,24 @@ class SentryCocoa { ); } - late final __objc_msgSend_633Ptr = _lookup< + late final __objc_msgSend_645Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_633 = __objc_msgSend_633Ptr.asFunction< + late final __objc_msgSend_645 = __objc_msgSend_645Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_registerObjectOfClass_visibility_loadHandler_1 = _registerName1("registerObjectOfClass:visibility:loadHandler:"); - void _objc_msgSend_634( + void _objc_msgSend_646( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, int visibility, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_634( + return __objc_msgSend_646( obj, sel, aClass, @@ -17821,7 +18188,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_634Ptr = _lookup< + late final __objc_msgSend_646Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -17829,7 +18196,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_634 = __objc_msgSend_634Ptr.asFunction< + late final __objc_msgSend_646 = __objc_msgSend_646Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); @@ -17837,13 +18204,13 @@ class SentryCocoa { _registerName1("canLoadObjectOfClass:"); late final _sel_loadObjectOfClass_completionHandler_1 = _registerName1("loadObjectOfClass:completionHandler:"); - ffi.Pointer _objc_msgSend_635( + ffi.Pointer _objc_msgSend_647( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_635( + return __objc_msgSend_647( obj, sel, aClass, @@ -17851,14 +18218,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_635Ptr = _lookup< + late final __objc_msgSend_647Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_635 = __objc_msgSend_635Ptr.asFunction< + late final __objc_msgSend_647 = __objc_msgSend_647Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -17869,13 +18236,13 @@ class SentryCocoa { _registerName1("initWithItem:typeIdentifier:"); late final _sel_registerItemForTypeIdentifier_loadHandler_1 = _registerName1("registerItemForTypeIdentifier:loadHandler:"); - void _objc_msgSend_636( + void _objc_msgSend_648( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer<_ObjCBlock> loadHandler, ) { - return __objc_msgSend_636( + return __objc_msgSend_648( obj, sel, typeIdentifier, @@ -17883,27 +18250,27 @@ class SentryCocoa { ); } - late final __objc_msgSend_636Ptr = _lookup< + late final __objc_msgSend_648Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_636 = __objc_msgSend_636Ptr.asFunction< + late final __objc_msgSend_648 = __objc_msgSend_648Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_loadItemForTypeIdentifier_options_completionHandler_1 = _registerName1("loadItemForTypeIdentifier:options:completionHandler:"); - void _objc_msgSend_637( + void _objc_msgSend_649( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer typeIdentifier, ffi.Pointer options, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_637( + return __objc_msgSend_649( obj, sel, typeIdentifier, @@ -17912,7 +18279,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_637Ptr = _lookup< + late final __objc_msgSend_649Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -17920,7 +18287,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_637 = __objc_msgSend_637Ptr.asFunction< + late final __objc_msgSend_649 = __objc_msgSend_649Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -17929,55 +18296,55 @@ class SentryCocoa { ffi.Pointer<_ObjCBlock>)>(); late final _sel_previewImageHandler1 = _registerName1("previewImageHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_638( + ffi.Pointer<_ObjCBlock> _objc_msgSend_650( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_638( + return __objc_msgSend_650( obj, sel, ); } - late final __objc_msgSend_638Ptr = _lookup< + late final __objc_msgSend_650Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_638 = __objc_msgSend_638Ptr.asFunction< + late final __objc_msgSend_650 = __objc_msgSend_650Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setPreviewImageHandler_1 = _registerName1("setPreviewImageHandler:"); - void _objc_msgSend_639( + void _objc_msgSend_651( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_639( + return __objc_msgSend_651( obj, sel, value, ); } - late final __objc_msgSend_639Ptr = _lookup< + late final __objc_msgSend_651Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_639 = __objc_msgSend_639Ptr.asFunction< + late final __objc_msgSend_651 = __objc_msgSend_651Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_loadPreviewImageWithOptions_completionHandler_1 = _registerName1("loadPreviewImageWithOptions:completionHandler:"); - void _objc_msgSend_640( + void _objc_msgSend_652( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer options, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_640( + return __objc_msgSend_652( obj, sel, options, @@ -17985,27 +18352,27 @@ class SentryCocoa { ); } - late final __objc_msgSend_640Ptr = _lookup< + late final __objc_msgSend_652Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_640 = __objc_msgSend_640Ptr.asFunction< + late final __objc_msgSend_652 = __objc_msgSend_652Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _class_NSMutableString1 = _getClass1("NSMutableString"); late final _sel_replaceCharactersInRange_withString_1 = _registerName1("replaceCharactersInRange:withString:"); - void _objc_msgSend_641( + void _objc_msgSend_653( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer aString, ) { - return __objc_msgSend_641( + return __objc_msgSend_653( obj, sel, range, @@ -18013,23 +18380,23 @@ class SentryCocoa { ); } - late final __objc_msgSend_641Ptr = _lookup< + late final __objc_msgSend_653Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_641 = __objc_msgSend_641Ptr.asFunction< + late final __objc_msgSend_653 = __objc_msgSend_653Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_insertString_atIndex_1 = _registerName1("insertString:atIndex:"); - void _objc_msgSend_642( + void _objc_msgSend_654( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aString, int loc, ) { - return __objc_msgSend_642( + return __objc_msgSend_654( obj, sel, aString, @@ -18037,11 +18404,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_642Ptr = _lookup< + late final __objc_msgSend_654Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_642 = __objc_msgSend_642Ptr.asFunction< + late final __objc_msgSend_654 = __objc_msgSend_654Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -18052,7 +18419,7 @@ class SentryCocoa { late final _sel_setString_1 = _registerName1("setString:"); late final _sel_replaceOccurrencesOfString_withString_options_range_1 = _registerName1("replaceOccurrencesOfString:withString:options:range:"); - int _objc_msgSend_643( + int _objc_msgSend_655( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer target, @@ -18060,7 +18427,7 @@ class SentryCocoa { int options, _NSRange searchRange, ) { - return __objc_msgSend_643( + return __objc_msgSend_655( obj, sel, target, @@ -18070,7 +18437,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_643Ptr = _lookup< + late final __objc_msgSend_655Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -18079,13 +18446,13 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_643 = __objc_msgSend_643Ptr.asFunction< + late final __objc_msgSend_655 = __objc_msgSend_655Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_applyTransform_reverse_range_updatedRange_1 = _registerName1("applyTransform:reverse:range:updatedRange:"); - bool _objc_msgSend_644( + bool _objc_msgSend_656( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer transform, @@ -18093,7 +18460,7 @@ class SentryCocoa { _NSRange range, ffi.Pointer<_NSRange> resultingRange, ) { - return __objc_msgSend_644( + return __objc_msgSend_656( obj, sel, transform, @@ -18103,7 +18470,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_644Ptr = _lookup< + late final __objc_msgSend_656Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -18112,27 +18479,27 @@ class SentryCocoa { ffi.Bool, _NSRange, ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_644 = __objc_msgSend_644Ptr.asFunction< + late final __objc_msgSend_656 = __objc_msgSend_656Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool, _NSRange, ffi.Pointer<_NSRange>)>(); - ffi.Pointer _objc_msgSend_645( + ffi.Pointer _objc_msgSend_657( ffi.Pointer obj, ffi.Pointer sel, int capacity, ) { - return __objc_msgSend_645( + return __objc_msgSend_657( obj, sel, capacity, ); } - late final __objc_msgSend_645Ptr = _lookup< + late final __objc_msgSend_657Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_645 = __objc_msgSend_645Ptr.asFunction< + late final __objc_msgSend_657 = __objc_msgSend_657Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -18141,14 +18508,14 @@ class SentryCocoa { late final _sel_object1 = _registerName1("object"); late final _sel_initWithName_object_userInfo_1 = _registerName1("initWithName:object:userInfo:"); - instancetype _objc_msgSend_646( + instancetype _objc_msgSend_658( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer object, ffi.Pointer userInfo, ) { - return __objc_msgSend_646( + return __objc_msgSend_658( obj, sel, name, @@ -18157,7 +18524,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_646Ptr = _lookup< + late final __objc_msgSend_658Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -18165,7 +18532,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_646 = __objc_msgSend_646Ptr.asFunction< + late final __objc_msgSend_658 = __objc_msgSend_658Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -18179,21 +18546,21 @@ class SentryCocoa { _registerName1("notificationWithName:object:userInfo:"); late final _class_NSBundle1 = _getClass1("NSBundle"); late final _sel_mainBundle1 = _registerName1("mainBundle"); - ffi.Pointer _objc_msgSend_647( + ffi.Pointer _objc_msgSend_659( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_647( + return __objc_msgSend_659( obj, sel, ); } - late final __objc_msgSend_647Ptr = _lookup< + late final __objc_msgSend_659Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_647 = __objc_msgSend_647Ptr.asFunction< + late final __objc_msgSend_659 = __objc_msgSend_659Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -18202,45 +18569,45 @@ class SentryCocoa { late final _sel_bundleWithURL_1 = _registerName1("bundleWithURL:"); late final _sel_initWithURL_1 = _registerName1("initWithURL:"); late final _sel_bundleForClass_1 = _registerName1("bundleForClass:"); - ffi.Pointer _objc_msgSend_648( + ffi.Pointer _objc_msgSend_660( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aClass, ) { - return __objc_msgSend_648( + return __objc_msgSend_660( obj, sel, aClass, ); } - late final __objc_msgSend_648Ptr = _lookup< + late final __objc_msgSend_660Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_648 = __objc_msgSend_648Ptr.asFunction< + late final __objc_msgSend_660 = __objc_msgSend_660Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_bundleWithIdentifier_1 = _registerName1("bundleWithIdentifier:"); - ffi.Pointer _objc_msgSend_649( + ffi.Pointer _objc_msgSend_661( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_649( + return __objc_msgSend_661( obj, sel, identifier, ); } - late final __objc_msgSend_649Ptr = _lookup< + late final __objc_msgSend_661Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_649 = __objc_msgSend_649Ptr.asFunction< + late final __objc_msgSend_661 = __objc_msgSend_661Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -18276,7 +18643,7 @@ class SentryCocoa { late final _sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1 = _registerName1( "URLForResource:withExtension:subdirectory:inBundleWithURL:"); - ffi.Pointer _objc_msgSend_650( + ffi.Pointer _objc_msgSend_662( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, @@ -18284,7 +18651,7 @@ class SentryCocoa { ffi.Pointer subpath, ffi.Pointer bundleURL, ) { - return __objc_msgSend_650( + return __objc_msgSend_662( obj, sel, name, @@ -18294,7 +18661,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_650Ptr = _lookup< + late final __objc_msgSend_662Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18303,7 +18670,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_650 = __objc_msgSend_650Ptr.asFunction< + late final __objc_msgSend_662 = __objc_msgSend_662Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18315,14 +18682,14 @@ class SentryCocoa { late final _sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1 = _registerName1( "URLsForResourcesWithExtension:subdirectory:inBundleWithURL:"); - ffi.Pointer _objc_msgSend_651( + ffi.Pointer _objc_msgSend_663( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ext, ffi.Pointer subpath, ffi.Pointer bundleURL, ) { - return __objc_msgSend_651( + return __objc_msgSend_663( obj, sel, ext, @@ -18331,7 +18698,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_651Ptr = _lookup< + late final __objc_msgSend_663Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18339,7 +18706,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_651 = __objc_msgSend_651Ptr.asFunction< + late final __objc_msgSend_663 = __objc_msgSend_663Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18349,13 +18716,13 @@ class SentryCocoa { late final _sel_URLForResource_withExtension_1 = _registerName1("URLForResource:withExtension:"); - ffi.Pointer _objc_msgSend_652( + ffi.Pointer _objc_msgSend_664( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer ext, ) { - return __objc_msgSend_652( + return __objc_msgSend_664( obj, sel, name, @@ -18363,14 +18730,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_652Ptr = _lookup< + late final __objc_msgSend_664Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_652 = __objc_msgSend_652Ptr.asFunction< + late final __objc_msgSend_664 = __objc_msgSend_664Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18379,14 +18746,14 @@ class SentryCocoa { late final _sel_URLForResource_withExtension_subdirectory_1 = _registerName1("URLForResource:withExtension:subdirectory:"); - ffi.Pointer _objc_msgSend_653( + ffi.Pointer _objc_msgSend_665( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer ext, ffi.Pointer subpath, ) { - return __objc_msgSend_653( + return __objc_msgSend_665( obj, sel, name, @@ -18395,7 +18762,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_653Ptr = _lookup< + late final __objc_msgSend_665Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18403,7 +18770,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_653 = __objc_msgSend_653Ptr.asFunction< + late final __objc_msgSend_665 = __objc_msgSend_665Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18413,7 +18780,7 @@ class SentryCocoa { late final _sel_URLForResource_withExtension_subdirectory_localization_1 = _registerName1("URLForResource:withExtension:subdirectory:localization:"); - ffi.Pointer _objc_msgSend_654( + ffi.Pointer _objc_msgSend_666( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, @@ -18421,7 +18788,7 @@ class SentryCocoa { ffi.Pointer subpath, ffi.Pointer localizationName, ) { - return __objc_msgSend_654( + return __objc_msgSend_666( obj, sel, name, @@ -18431,7 +18798,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_654Ptr = _lookup< + late final __objc_msgSend_666Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18440,7 +18807,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_654 = __objc_msgSend_654Ptr.asFunction< + late final __objc_msgSend_666 = __objc_msgSend_666Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18451,13 +18818,13 @@ class SentryCocoa { late final _sel_URLsForResourcesWithExtension_subdirectory_1 = _registerName1("URLsForResourcesWithExtension:subdirectory:"); - ffi.Pointer _objc_msgSend_655( + ffi.Pointer _objc_msgSend_667( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ext, ffi.Pointer subpath, ) { - return __objc_msgSend_655( + return __objc_msgSend_667( obj, sel, ext, @@ -18465,14 +18832,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_655Ptr = _lookup< + late final __objc_msgSend_667Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_655 = __objc_msgSend_655Ptr.asFunction< + late final __objc_msgSend_667 = __objc_msgSend_667Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18482,14 +18849,14 @@ class SentryCocoa { late final _sel_URLsForResourcesWithExtension_subdirectory_localization_1 = _registerName1( "URLsForResourcesWithExtension:subdirectory:localization:"); - ffi.Pointer _objc_msgSend_656( + ffi.Pointer _objc_msgSend_668( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ext, ffi.Pointer subpath, ffi.Pointer localizationName, ) { - return __objc_msgSend_656( + return __objc_msgSend_668( obj, sel, ext, @@ -18498,7 +18865,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_656Ptr = _lookup< + late final __objc_msgSend_668Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18506,7 +18873,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_656 = __objc_msgSend_656Ptr.asFunction< + late final __objc_msgSend_668 = __objc_msgSend_668Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18516,14 +18883,14 @@ class SentryCocoa { late final _sel_pathForResource_ofType_inDirectory_1 = _registerName1("pathForResource:ofType:inDirectory:"); - ffi.Pointer _objc_msgSend_657( + ffi.Pointer _objc_msgSend_669( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer ext, ffi.Pointer bundlePath, ) { - return __objc_msgSend_657( + return __objc_msgSend_669( obj, sel, name, @@ -18532,7 +18899,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_657Ptr = _lookup< + late final __objc_msgSend_669Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18540,7 +18907,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_657 = __objc_msgSend_657Ptr.asFunction< + late final __objc_msgSend_669 = __objc_msgSend_669Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18554,7 +18921,7 @@ class SentryCocoa { _registerName1("pathForResource:ofType:"); late final _sel_pathForResource_ofType_inDirectory_forLocalization_1 = _registerName1("pathForResource:ofType:inDirectory:forLocalization:"); - ffi.Pointer _objc_msgSend_658( + ffi.Pointer _objc_msgSend_670( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, @@ -18562,7 +18929,7 @@ class SentryCocoa { ffi.Pointer subpath, ffi.Pointer localizationName, ) { - return __objc_msgSend_658( + return __objc_msgSend_670( obj, sel, name, @@ -18572,7 +18939,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_658Ptr = _lookup< + late final __objc_msgSend_670Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18581,7 +18948,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_658 = __objc_msgSend_658Ptr.asFunction< + late final __objc_msgSend_670 = __objc_msgSend_670Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18597,13 +18964,13 @@ class SentryCocoa { late final _class_NSAttributedString1 = _getClass1("NSAttributedString"); late final _sel_attributesAtIndex_effectiveRange_1 = _registerName1("attributesAtIndex:effectiveRange:"); - ffi.Pointer _objc_msgSend_659( + ffi.Pointer _objc_msgSend_671( ffi.Pointer obj, ffi.Pointer sel, int location, ffi.Pointer<_NSRange> range, ) { - return __objc_msgSend_659( + return __objc_msgSend_671( obj, sel, location, @@ -18611,27 +18978,27 @@ class SentryCocoa { ); } - late final __objc_msgSend_659Ptr = _lookup< + late final __objc_msgSend_671Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_659 = __objc_msgSend_659Ptr.asFunction< + late final __objc_msgSend_671 = __objc_msgSend_671Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_NSRange>)>(); late final _sel_attribute_atIndex_effectiveRange_1 = _registerName1("attribute:atIndex:effectiveRange:"); - ffi.Pointer _objc_msgSend_660( + ffi.Pointer _objc_msgSend_672( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrName, int location, ffi.Pointer<_NSRange> range, ) { - return __objc_msgSend_660( + return __objc_msgSend_672( obj, sel, attrName, @@ -18640,7 +19007,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_660Ptr = _lookup< + late final __objc_msgSend_672Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18648,7 +19015,7 @@ class SentryCocoa { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer<_NSRange>)>>('objc_msgSend'); - late final __objc_msgSend_660 = __objc_msgSend_660Ptr.asFunction< + late final __objc_msgSend_672 = __objc_msgSend_672Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18658,36 +19025,36 @@ class SentryCocoa { late final _sel_attributedSubstringFromRange_1 = _registerName1("attributedSubstringFromRange:"); - ffi.Pointer _objc_msgSend_661( + ffi.Pointer _objc_msgSend_673( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_661( + return __objc_msgSend_673( obj, sel, range, ); } - late final __objc_msgSend_661Ptr = _lookup< + late final __objc_msgSend_673Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_661 = __objc_msgSend_661Ptr.asFunction< + late final __objc_msgSend_673 = __objc_msgSend_673Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_attributesAtIndex_longestEffectiveRange_inRange_1 = _registerName1("attributesAtIndex:longestEffectiveRange:inRange:"); - ffi.Pointer _objc_msgSend_662( + ffi.Pointer _objc_msgSend_674( ffi.Pointer obj, ffi.Pointer sel, int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit, ) { - return __objc_msgSend_662( + return __objc_msgSend_674( obj, sel, location, @@ -18696,7 +19063,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_662Ptr = _lookup< + late final __objc_msgSend_674Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18704,13 +19071,13 @@ class SentryCocoa { ffi.UnsignedLong, ffi.Pointer<_NSRange>, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_662 = __objc_msgSend_662Ptr.asFunction< + late final __objc_msgSend_674 = __objc_msgSend_674Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer<_NSRange>, _NSRange)>(); late final _sel_attribute_atIndex_longestEffectiveRange_inRange_1 = _registerName1("attribute:atIndex:longestEffectiveRange:inRange:"); - ffi.Pointer _objc_msgSend_663( + ffi.Pointer _objc_msgSend_675( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrName, @@ -18718,7 +19085,7 @@ class SentryCocoa { ffi.Pointer<_NSRange> range, _NSRange rangeLimit, ) { - return __objc_msgSend_663( + return __objc_msgSend_675( obj, sel, attrName, @@ -18728,7 +19095,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_663Ptr = _lookup< + late final __objc_msgSend_675Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -18737,7 +19104,7 @@ class SentryCocoa { ffi.UnsignedLong, ffi.Pointer<_NSRange>, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_663 = __objc_msgSend_663Ptr.asFunction< + late final __objc_msgSend_675 = __objc_msgSend_675Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -18748,23 +19115,23 @@ class SentryCocoa { late final _sel_isEqualToAttributedString_1 = _registerName1("isEqualToAttributedString:"); - bool _objc_msgSend_664( + bool _objc_msgSend_676( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer other, ) { - return __objc_msgSend_664( + return __objc_msgSend_676( obj, sel, other, ); } - late final __objc_msgSend_664Ptr = _lookup< + late final __objc_msgSend_676Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_664 = __objc_msgSend_664Ptr.asFunction< + late final __objc_msgSend_676 = __objc_msgSend_676Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -18772,36 +19139,36 @@ class SentryCocoa { _registerName1("initWithString:attributes:"); late final _sel_initWithAttributedString_1 = _registerName1("initWithAttributedString:"); - instancetype _objc_msgSend_665( + instancetype _objc_msgSend_677( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrStr, ) { - return __objc_msgSend_665( + return __objc_msgSend_677( obj, sel, attrStr, ); } - late final __objc_msgSend_665Ptr = _lookup< + late final __objc_msgSend_677Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_665 = __objc_msgSend_665Ptr.asFunction< + late final __objc_msgSend_677 = __objc_msgSend_677Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_enumerateAttributesInRange_options_usingBlock_1 = _registerName1("enumerateAttributesInRange:options:usingBlock:"); - void _objc_msgSend_666( + void _objc_msgSend_678( ffi.Pointer obj, ffi.Pointer sel, _NSRange enumerationRange, int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_666( + return __objc_msgSend_678( obj, sel, enumerationRange, @@ -18810,17 +19177,17 @@ class SentryCocoa { ); } - late final __objc_msgSend_666Ptr = _lookup< + late final __objc_msgSend_678Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_666 = __objc_msgSend_666Ptr.asFunction< + late final __objc_msgSend_678 = __objc_msgSend_678Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); late final _sel_enumerateAttribute_inRange_options_usingBlock_1 = _registerName1("enumerateAttribute:inRange:options:usingBlock:"); - void _objc_msgSend_667( + void _objc_msgSend_679( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrName, @@ -18828,7 +19195,7 @@ class SentryCocoa { int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_667( + return __objc_msgSend_679( obj, sel, attrName, @@ -18838,7 +19205,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_667Ptr = _lookup< + late final __objc_msgSend_679Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -18847,7 +19214,7 @@ class SentryCocoa { _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_667 = __objc_msgSend_667Ptr.asFunction< + late final __objc_msgSend_679 = __objc_msgSend_679Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); @@ -18858,80 +19225,80 @@ class SentryCocoa { late final _sel_setAllowsExtendedAttributes_1 = _registerName1("setAllowsExtendedAttributes:"); late final _sel_interpretedSyntax1 = _registerName1("interpretedSyntax"); - int _objc_msgSend_668( + int _objc_msgSend_680( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_668( + return __objc_msgSend_680( obj, sel, ); } - late final __objc_msgSend_668Ptr = _lookup< + late final __objc_msgSend_680Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_668 = __objc_msgSend_668Ptr.asFunction< + late final __objc_msgSend_680 = __objc_msgSend_680Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setInterpretedSyntax_1 = _registerName1("setInterpretedSyntax:"); - void _objc_msgSend_669( + void _objc_msgSend_681( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_669( + return __objc_msgSend_681( obj, sel, value, ); } - late final __objc_msgSend_669Ptr = _lookup< + late final __objc_msgSend_681Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_669 = __objc_msgSend_669Ptr.asFunction< + late final __objc_msgSend_681 = __objc_msgSend_681Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_failurePolicy1 = _registerName1("failurePolicy"); - int _objc_msgSend_670( + int _objc_msgSend_682( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_670( + return __objc_msgSend_682( obj, sel, ); } - late final __objc_msgSend_670Ptr = _lookup< + late final __objc_msgSend_682Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_670 = __objc_msgSend_670Ptr.asFunction< + late final __objc_msgSend_682 = __objc_msgSend_682Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setFailurePolicy_1 = _registerName1("setFailurePolicy:"); - void _objc_msgSend_671( + void _objc_msgSend_683( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_671( + return __objc_msgSend_683( obj, sel, value, ); } - late final __objc_msgSend_671Ptr = _lookup< + late final __objc_msgSend_683Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_671 = __objc_msgSend_671Ptr.asFunction< + late final __objc_msgSend_683 = __objc_msgSend_683Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setLanguageCode_1 = _registerName1("setLanguageCode:"); @@ -18942,7 +19309,7 @@ class SentryCocoa { late final _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1 = _registerName1( "initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"); - instancetype _objc_msgSend_672( + instancetype _objc_msgSend_684( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer markdownFile, @@ -18950,7 +19317,7 @@ class SentryCocoa { ffi.Pointer baseURL, ffi.Pointer> error, ) { - return __objc_msgSend_672( + return __objc_msgSend_684( obj, sel, markdownFile, @@ -18960,7 +19327,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_672Ptr = _lookup< + late final __objc_msgSend_684Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -18969,7 +19336,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_672 = __objc_msgSend_672Ptr.asFunction< + late final __objc_msgSend_684 = __objc_msgSend_684Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -18980,7 +19347,7 @@ class SentryCocoa { late final _sel_initWithMarkdown_options_baseURL_error_1 = _registerName1("initWithMarkdown:options:baseURL:error:"); - instancetype _objc_msgSend_673( + instancetype _objc_msgSend_685( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer markdown, @@ -18988,7 +19355,7 @@ class SentryCocoa { ffi.Pointer baseURL, ffi.Pointer> error, ) { - return __objc_msgSend_673( + return __objc_msgSend_685( obj, sel, markdown, @@ -18998,7 +19365,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_673Ptr = _lookup< + late final __objc_msgSend_685Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -19007,7 +19374,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_673 = __objc_msgSend_673Ptr.asFunction< + late final __objc_msgSend_685 = __objc_msgSend_685Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -19018,7 +19385,7 @@ class SentryCocoa { late final _sel_initWithMarkdownString_options_baseURL_error_1 = _registerName1("initWithMarkdownString:options:baseURL:error:"); - instancetype _objc_msgSend_674( + instancetype _objc_msgSend_686( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer markdownString, @@ -19026,7 +19393,7 @@ class SentryCocoa { ffi.Pointer baseURL, ffi.Pointer> error, ) { - return __objc_msgSend_674( + return __objc_msgSend_686( obj, sel, markdownString, @@ -19036,7 +19403,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_674Ptr = _lookup< + late final __objc_msgSend_686Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -19045,7 +19412,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_674 = __objc_msgSend_674Ptr.asFunction< + late final __objc_msgSend_686 = __objc_msgSend_686Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -19056,14 +19423,14 @@ class SentryCocoa { late final _sel_initWithFormat_options_locale_1 = _registerName1("initWithFormat:options:locale:"); - instancetype _objc_msgSend_675( + instancetype _objc_msgSend_687( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, int options, ffi.Pointer locale, ) { - return __objc_msgSend_675( + return __objc_msgSend_687( obj, sel, format, @@ -19072,7 +19439,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_675Ptr = _lookup< + late final __objc_msgSend_687Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -19080,21 +19447,21 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_675 = __objc_msgSend_675Ptr.asFunction< + late final __objc_msgSend_687 = __objc_msgSend_687Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_initWithFormat_options_locale_arguments_1 = _registerName1("initWithFormat:options:locale:arguments:"); - instancetype _objc_msgSend_676( + instancetype _objc_msgSend_688( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, int options, ffi.Pointer locale, - ffi.Pointer<__va_list_tag> arguments, + ffi.Pointer arguments, ) { - return __objc_msgSend_676( + return __objc_msgSend_688( obj, sel, format, @@ -19104,7 +19471,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_676Ptr = _lookup< + late final __objc_msgSend_688Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -19112,27 +19479,27 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer, - ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_676 = __objc_msgSend_676Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_688 = __objc_msgSend_688Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer, - ffi.Pointer<__va_list_tag>)>(); + ffi.Pointer)>(); late final _sel_localizedAttributedStringWithFormat_1 = _registerName1("localizedAttributedStringWithFormat:"); late final _sel_localizedAttributedStringWithFormat_options_1 = _registerName1("localizedAttributedStringWithFormat:options:"); - instancetype _objc_msgSend_677( + instancetype _objc_msgSend_689( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, int options, ) { - return __objc_msgSend_677( + return __objc_msgSend_689( obj, sel, format, @@ -19140,17 +19507,17 @@ class SentryCocoa { ); } - late final __objc_msgSend_677Ptr = _lookup< + late final __objc_msgSend_689Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_677 = __objc_msgSend_677Ptr.asFunction< + late final __objc_msgSend_689 = __objc_msgSend_689Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithFormat_options_locale_context_1 = _registerName1("initWithFormat:options:locale:context:"); - instancetype _objc_msgSend_678( + instancetype _objc_msgSend_690( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, @@ -19158,7 +19525,7 @@ class SentryCocoa { ffi.Pointer locale, ffi.Pointer context, ) { - return __objc_msgSend_678( + return __objc_msgSend_690( obj, sel, format, @@ -19168,7 +19535,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_678Ptr = _lookup< + late final __objc_msgSend_690Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -19177,7 +19544,7 @@ class SentryCocoa { ffi.Int32, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_678 = __objc_msgSend_678Ptr.asFunction< + late final __objc_msgSend_690 = __objc_msgSend_690Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -19188,16 +19555,16 @@ class SentryCocoa { late final _sel_initWithFormat_options_locale_context_arguments_1 = _registerName1("initWithFormat:options:locale:context:arguments:"); - instancetype _objc_msgSend_679( + instancetype _objc_msgSend_691( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, int options, ffi.Pointer locale, ffi.Pointer context, - ffi.Pointer<__va_list_tag> arguments, + ffi.Pointer arguments, ) { - return __objc_msgSend_679( + return __objc_msgSend_691( obj, sel, format, @@ -19208,7 +19575,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_679Ptr = _lookup< + late final __objc_msgSend_691Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -19217,8 +19584,8 @@ class SentryCocoa { ffi.Int32, ffi.Pointer, ffi.Pointer, - ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_679 = __objc_msgSend_679Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_691 = __objc_msgSend_691Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -19226,17 +19593,17 @@ class SentryCocoa { int, ffi.Pointer, ffi.Pointer, - ffi.Pointer<__va_list_tag>)>(); + ffi.Pointer)>(); late final _sel_localizedAttributedStringWithFormat_context_1 = _registerName1("localizedAttributedStringWithFormat:context:"); - instancetype _objc_msgSend_680( + instancetype _objc_msgSend_692( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, ffi.Pointer context, ) { - return __objc_msgSend_680( + return __objc_msgSend_692( obj, sel, format, @@ -19244,27 +19611,27 @@ class SentryCocoa { ); } - late final __objc_msgSend_680Ptr = _lookup< + late final __objc_msgSend_692Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_680 = __objc_msgSend_680Ptr.asFunction< + late final __objc_msgSend_692 = __objc_msgSend_692Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_localizedAttributedStringWithFormat_options_context_1 = _registerName1("localizedAttributedStringWithFormat:options:context:"); - instancetype _objc_msgSend_681( + instancetype _objc_msgSend_693( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer format, int options, ffi.Pointer context, ) { - return __objc_msgSend_681( + return __objc_msgSend_693( obj, sel, format, @@ -19273,7 +19640,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_681Ptr = _lookup< + late final __objc_msgSend_693Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -19281,40 +19648,40 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_681 = __objc_msgSend_681Ptr.asFunction< + late final __objc_msgSend_693 = __objc_msgSend_693Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_attributedStringByInflectingString1 = _registerName1("attributedStringByInflectingString"); - ffi.Pointer _objc_msgSend_682( + ffi.Pointer _objc_msgSend_694( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_682( + return __objc_msgSend_694( obj, sel, ); } - late final __objc_msgSend_682Ptr = _lookup< + late final __objc_msgSend_694Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_682 = __objc_msgSend_682Ptr.asFunction< + late final __objc_msgSend_694 = __objc_msgSend_694Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_localizedAttributedStringForKey_value_table_1 = _registerName1("localizedAttributedStringForKey:value:table:"); - ffi.Pointer _objc_msgSend_683( + ffi.Pointer _objc_msgSend_695( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer value, ffi.Pointer tableName, ) { - return __objc_msgSend_683( + return __objc_msgSend_695( obj, sel, key, @@ -19323,7 +19690,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_683Ptr = _lookup< + late final __objc_msgSend_695Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -19331,7 +19698,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_683 = __objc_msgSend_683Ptr.asFunction< + late final __objc_msgSend_695 = __objc_msgSend_695Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -19341,7 +19708,7 @@ class SentryCocoa { late final _sel_localizedStringForKey_value_table_localizations_1 = _registerName1("localizedStringForKey:value:table:localizations:"); - ffi.Pointer _objc_msgSend_684( + ffi.Pointer _objc_msgSend_696( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, @@ -19349,7 +19716,7 @@ class SentryCocoa { ffi.Pointer tableName, ffi.Pointer localizations, ) { - return __objc_msgSend_684( + return __objc_msgSend_696( obj, sel, key, @@ -19359,7 +19726,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_684Ptr = _lookup< + late final __objc_msgSend_696Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -19368,7 +19735,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_684 = __objc_msgSend_684Ptr.asFunction< + late final __objc_msgSend_696 = __objc_msgSend_696Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -19394,13 +19761,13 @@ class SentryCocoa { _registerName1("preferredLocalizationsFromArray:"); late final _sel_preferredLocalizationsFromArray_forPreferences_1 = _registerName1("preferredLocalizationsFromArray:forPreferences:"); - ffi.Pointer _objc_msgSend_685( + ffi.Pointer _objc_msgSend_697( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer localizationsArray, ffi.Pointer preferencesArray, ) { - return __objc_msgSend_685( + return __objc_msgSend_697( obj, sel, localizationsArray, @@ -19408,14 +19775,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_685Ptr = _lookup< + late final __objc_msgSend_697Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_685 = __objc_msgSend_685Ptr.asFunction< + late final __objc_msgSend_697 = __objc_msgSend_697Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -19426,13 +19793,13 @@ class SentryCocoa { _registerName1("executableArchitectures"); late final _sel_setPreservationPriority_forTags_1 = _registerName1("setPreservationPriority:forTags:"); - void _objc_msgSend_686( + void _objc_msgSend_698( ffi.Pointer obj, ffi.Pointer sel, double priority, ffi.Pointer tags, ) { - return __objc_msgSend_686( + return __objc_msgSend_698( obj, sel, priority, @@ -19440,11 +19807,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_686Ptr = _lookup< + late final __objc_msgSend_698Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Double, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_686 = __objc_msgSend_686Ptr.asFunction< + late final __objc_msgSend_698 = __objc_msgSend_698Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double, ffi.Pointer)>(); @@ -19454,13 +19821,13 @@ class SentryCocoa { _getClass1("NSMutableAttributedString"); late final _sel_setAttributes_range_1 = _registerName1("setAttributes:range:"); - void _objc_msgSend_687( + void _objc_msgSend_699( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrs, _NSRange range, ) { - return __objc_msgSend_687( + return __objc_msgSend_699( obj, sel, attrs, @@ -19468,43 +19835,43 @@ class SentryCocoa { ); } - late final __objc_msgSend_687Ptr = _lookup< + late final __objc_msgSend_699Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_687 = __objc_msgSend_687Ptr.asFunction< + late final __objc_msgSend_699 = __objc_msgSend_699Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_mutableString1 = _registerName1("mutableString"); - ffi.Pointer _objc_msgSend_688( + ffi.Pointer _objc_msgSend_700( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_688( + return __objc_msgSend_700( obj, sel, ); } - late final __objc_msgSend_688Ptr = _lookup< + late final __objc_msgSend_700Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_688 = __objc_msgSend_688Ptr.asFunction< + late final __objc_msgSend_700 = __objc_msgSend_700Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_addAttribute_value_range_1 = _registerName1("addAttribute:value:range:"); - void _objc_msgSend_689( + void _objc_msgSend_701( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer value, _NSRange range, ) { - return __objc_msgSend_689( + return __objc_msgSend_701( obj, sel, name, @@ -19513,7 +19880,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_689Ptr = _lookup< + late final __objc_msgSend_701Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -19521,7 +19888,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_689 = __objc_msgSend_689Ptr.asFunction< + late final __objc_msgSend_701 = __objc_msgSend_701Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); @@ -19529,13 +19896,13 @@ class SentryCocoa { _registerName1("addAttributes:range:"); late final _sel_removeAttribute_range_1 = _registerName1("removeAttribute:range:"); - void _objc_msgSend_690( + void _objc_msgSend_702( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, _NSRange range, ) { - return __objc_msgSend_690( + return __objc_msgSend_702( obj, sel, name, @@ -19543,23 +19910,23 @@ class SentryCocoa { ); } - late final __objc_msgSend_690Ptr = _lookup< + late final __objc_msgSend_702Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_690 = __objc_msgSend_690Ptr.asFunction< + late final __objc_msgSend_702 = __objc_msgSend_702Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_replaceCharactersInRange_withAttributedString_1 = _registerName1("replaceCharactersInRange:withAttributedString:"); - void _objc_msgSend_691( + void _objc_msgSend_703( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer attrString, ) { - return __objc_msgSend_691( + return __objc_msgSend_703( obj, sel, range, @@ -19567,23 +19934,23 @@ class SentryCocoa { ); } - late final __objc_msgSend_691Ptr = _lookup< + late final __objc_msgSend_703Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_691 = __objc_msgSend_691Ptr.asFunction< + late final __objc_msgSend_703 = __objc_msgSend_703Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_insertAttributedString_atIndex_1 = _registerName1("insertAttributedString:atIndex:"); - void _objc_msgSend_692( + void _objc_msgSend_704( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrString, int loc, ) { - return __objc_msgSend_692( + return __objc_msgSend_704( obj, sel, attrString, @@ -19591,33 +19958,33 @@ class SentryCocoa { ); } - late final __objc_msgSend_692Ptr = _lookup< + late final __objc_msgSend_704Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_692 = __objc_msgSend_692Ptr.asFunction< + late final __objc_msgSend_704 = __objc_msgSend_704Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_appendAttributedString_1 = _registerName1("appendAttributedString:"); - void _objc_msgSend_693( + void _objc_msgSend_705( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer attrString, ) { - return __objc_msgSend_693( + return __objc_msgSend_705( obj, sel, attrString, ); } - late final __objc_msgSend_693Ptr = _lookup< + late final __objc_msgSend_705Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_693 = __objc_msgSend_693Ptr.asFunction< + late final __objc_msgSend_705 = __objc_msgSend_705Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -19633,13 +20000,13 @@ class SentryCocoa { _registerName1("stringForObjectValue:"); late final _sel_attributedStringForObjectValue_withDefaultAttributes_1 = _registerName1("attributedStringForObjectValue:withDefaultAttributes:"); - ffi.Pointer _objc_msgSend_694( + ffi.Pointer _objc_msgSend_706( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer obj1, ffi.Pointer attrs, ) { - return __objc_msgSend_694( + return __objc_msgSend_706( obj, sel, obj1, @@ -19647,14 +20014,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_694Ptr = _lookup< + late final __objc_msgSend_706Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_694 = __objc_msgSend_694Ptr.asFunction< + late final __objc_msgSend_706 = __objc_msgSend_706Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -19665,14 +20032,14 @@ class SentryCocoa { _registerName1("editingStringForObjectValue:"); late final _sel_getObjectValue_forString_errorDescription_1 = _registerName1("getObjectValue:forString:errorDescription:"); - bool _objc_msgSend_695( + bool _objc_msgSend_707( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> obj1, ffi.Pointer string, ffi.Pointer> error, ) { - return __objc_msgSend_695( + return __objc_msgSend_707( obj, sel, obj1, @@ -19681,7 +20048,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_695Ptr = _lookup< + late final __objc_msgSend_707Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -19689,7 +20056,7 @@ class SentryCocoa { ffi.Pointer>, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_695 = __objc_msgSend_695Ptr.asFunction< + late final __objc_msgSend_707 = __objc_msgSend_707Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -19699,14 +20066,14 @@ class SentryCocoa { late final _sel_isPartialStringValid_newEditingString_errorDescription_1 = _registerName1("isPartialStringValid:newEditingString:errorDescription:"); - bool _objc_msgSend_696( + bool _objc_msgSend_708( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer partialString, ffi.Pointer> newString, ffi.Pointer> error, ) { - return __objc_msgSend_696( + return __objc_msgSend_708( obj, sel, partialString, @@ -19715,7 +20082,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_696Ptr = _lookup< + late final __objc_msgSend_708Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -19723,7 +20090,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_696 = __objc_msgSend_696Ptr.asFunction< + late final __objc_msgSend_708 = __objc_msgSend_708Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -19734,7 +20101,7 @@ class SentryCocoa { late final _sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1 = _registerName1( "isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription:"); - bool _objc_msgSend_697( + bool _objc_msgSend_709( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> partialStringPtr, @@ -19743,7 +20110,7 @@ class SentryCocoa { _NSRange origSelRange, ffi.Pointer> error, ) { - return __objc_msgSend_697( + return __objc_msgSend_709( obj, sel, partialStringPtr, @@ -19754,7 +20121,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_697Ptr = _lookup< + late final __objc_msgSend_709Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -19764,7 +20131,7 @@ class SentryCocoa { ffi.Pointer, _NSRange, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_697 = __objc_msgSend_697Ptr.asFunction< + late final __objc_msgSend_709 = __objc_msgSend_709Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -19775,47 +20142,47 @@ class SentryCocoa { ffi.Pointer>)>(); late final _sel_formattingContext1 = _registerName1("formattingContext"); - int _objc_msgSend_698( + int _objc_msgSend_710( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_698( + return __objc_msgSend_710( obj, sel, ); } - late final __objc_msgSend_698Ptr = _lookup< + late final __objc_msgSend_710Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_698 = __objc_msgSend_698Ptr.asFunction< + late final __objc_msgSend_710 = __objc_msgSend_710Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setFormattingContext_1 = _registerName1("setFormattingContext:"); - void _objc_msgSend_699( + void _objc_msgSend_711( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_699( + return __objc_msgSend_711( obj, sel, value, ); } - late final __objc_msgSend_699Ptr = _lookup< + late final __objc_msgSend_711Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_699 = __objc_msgSend_699Ptr.asFunction< + late final __objc_msgSend_711 = __objc_msgSend_711Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_getObjectValue_forString_range_error_1 = _registerName1("getObjectValue:forString:range:error:"); - bool _objc_msgSend_700( + bool _objc_msgSend_712( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> obj1, @@ -19823,7 +20190,7 @@ class SentryCocoa { ffi.Pointer<_NSRange> rangep, ffi.Pointer> error, ) { - return __objc_msgSend_700( + return __objc_msgSend_712( obj, sel, obj1, @@ -19833,7 +20200,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_700Ptr = _lookup< + late final __objc_msgSend_712Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -19842,7 +20209,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer<_NSRange>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_700 = __objc_msgSend_700Ptr.asFunction< + late final __objc_msgSend_712 = __objc_msgSend_712Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -19855,14 +20222,14 @@ class SentryCocoa { late final _sel_dateFromString_1 = _registerName1("dateFromString:"); late final _sel_localizedStringFromDate_dateStyle_timeStyle_1 = _registerName1("localizedStringFromDate:dateStyle:timeStyle:"); - ffi.Pointer _objc_msgSend_701( + ffi.Pointer _objc_msgSend_713( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, int dstyle, int tstyle, ) { - return __objc_msgSend_701( + return __objc_msgSend_713( obj, sel, date, @@ -19871,7 +20238,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_701Ptr = _lookup< + late final __objc_msgSend_713Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -19879,20 +20246,20 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_701 = __objc_msgSend_701Ptr.asFunction< + late final __objc_msgSend_713 = __objc_msgSend_713Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_dateFormatFromTemplate_options_locale_1 = _registerName1("dateFormatFromTemplate:options:locale:"); - ffi.Pointer _objc_msgSend_702( + ffi.Pointer _objc_msgSend_714( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer tmplate, int opts, ffi.Pointer locale, ) { - return __objc_msgSend_702( + return __objc_msgSend_714( obj, sel, tmplate, @@ -19901,7 +20268,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_702Ptr = _lookup< + late final __objc_msgSend_714Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -19909,7 +20276,7 @@ class SentryCocoa { ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_702 = __objc_msgSend_702Ptr.asFunction< + late final __objc_msgSend_714 = __objc_msgSend_714Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -19919,42 +20286,42 @@ class SentryCocoa { late final _sel_defaultFormatterBehavior1 = _registerName1("defaultFormatterBehavior"); - int _objc_msgSend_703( + int _objc_msgSend_715( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_703( + return __objc_msgSend_715( obj, sel, ); } - late final __objc_msgSend_703Ptr = _lookup< + late final __objc_msgSend_715Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_703 = __objc_msgSend_703Ptr.asFunction< + late final __objc_msgSend_715 = __objc_msgSend_715Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDefaultFormatterBehavior_1 = _registerName1("setDefaultFormatterBehavior:"); - void _objc_msgSend_704( + void _objc_msgSend_716( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_704( + return __objc_msgSend_716( obj, sel, value, ); } - late final __objc_msgSend_704Ptr = _lookup< + late final __objc_msgSend_716Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_704 = __objc_msgSend_704Ptr.asFunction< + late final __objc_msgSend_716 = __objc_msgSend_716Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setLocalizedDateFormatFromTemplate_1 = @@ -19962,64 +20329,64 @@ class SentryCocoa { late final _sel_dateFormat1 = _registerName1("dateFormat"); late final _sel_setDateFormat_1 = _registerName1("setDateFormat:"); late final _sel_dateStyle1 = _registerName1("dateStyle"); - int _objc_msgSend_705( + int _objc_msgSend_717( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_705( + return __objc_msgSend_717( obj, sel, ); } - late final __objc_msgSend_705Ptr = _lookup< + late final __objc_msgSend_717Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_705 = __objc_msgSend_705Ptr.asFunction< + late final __objc_msgSend_717 = __objc_msgSend_717Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDateStyle_1 = _registerName1("setDateStyle:"); - void _objc_msgSend_706( + void _objc_msgSend_718( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_706( + return __objc_msgSend_718( obj, sel, value, ); } - late final __objc_msgSend_706Ptr = _lookup< + late final __objc_msgSend_718Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_706 = __objc_msgSend_706Ptr.asFunction< + late final __objc_msgSend_718 = __objc_msgSend_718Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_timeStyle1 = _registerName1("timeStyle"); late final _sel_setTimeStyle_1 = _registerName1("setTimeStyle:"); late final _sel_locale1 = _registerName1("locale"); late final _sel_setLocale_1 = _registerName1("setLocale:"); - void _objc_msgSend_707( + void _objc_msgSend_719( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_707( + return __objc_msgSend_719( obj, sel, value, ); } - late final __objc_msgSend_707Ptr = _lookup< + late final __objc_msgSend_719Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_707 = __objc_msgSend_707Ptr.asFunction< + late final __objc_msgSend_719 = __objc_msgSend_719Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -20032,21 +20399,21 @@ class SentryCocoa { _registerName1("setFormatterBehavior:"); late final _class_NSCalendar1 = _getClass1("NSCalendar"); late final _sel_currentCalendar1 = _registerName1("currentCalendar"); - ffi.Pointer _objc_msgSend_708( + ffi.Pointer _objc_msgSend_720( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_708( + return __objc_msgSend_720( obj, sel, ); } - late final __objc_msgSend_708Ptr = _lookup< + late final __objc_msgSend_720Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_708 = __objc_msgSend_708Ptr.asFunction< + late final __objc_msgSend_720 = __objc_msgSend_720Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -20054,23 +20421,23 @@ class SentryCocoa { _registerName1("autoupdatingCurrentCalendar"); late final _sel_calendarWithIdentifier_1 = _registerName1("calendarWithIdentifier:"); - ffi.Pointer _objc_msgSend_709( + ffi.Pointer _objc_msgSend_721( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer calendarIdentifierConstant, ) { - return __objc_msgSend_709( + return __objc_msgSend_721( obj, sel, calendarIdentifierConstant, ); } - late final __objc_msgSend_709Ptr = _lookup< + late final __objc_msgSend_721Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_709 = __objc_msgSend_709Ptr.asFunction< + late final __objc_msgSend_721 = __objc_msgSend_721Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -20113,13 +20480,13 @@ class SentryCocoa { late final _sel_AMSymbol1 = _registerName1("AMSymbol"); late final _sel_PMSymbol1 = _registerName1("PMSymbol"); late final _sel_minimumRangeOfUnit_1 = _registerName1("minimumRangeOfUnit:"); - void _objc_msgSend_710( + void _objc_msgSend_722( ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, int unit, ) { - return __objc_msgSend_710( + return __objc_msgSend_722( stret, obj, sel, @@ -20127,18 +20494,18 @@ class SentryCocoa { ); } - late final __objc_msgSend_710Ptr = _lookup< + late final __objc_msgSend_722Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend_stret'); - late final __objc_msgSend_710 = __objc_msgSend_710Ptr.asFunction< + late final __objc_msgSend_722 = __objc_msgSend_722Ptr.asFunction< void Function(ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_maximumRangeOfUnit_1 = _registerName1("maximumRangeOfUnit:"); late final _sel_rangeOfUnit_inUnit_forDate_1 = _registerName1("rangeOfUnit:inUnit:forDate:"); - void _objc_msgSend_711( + void _objc_msgSend_723( ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, @@ -20146,7 +20513,7 @@ class SentryCocoa { int larger, ffi.Pointer date, ) { - return __objc_msgSend_711( + return __objc_msgSend_723( stret, obj, sel, @@ -20156,7 +20523,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_711Ptr = _lookup< + late final __objc_msgSend_723Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer<_NSRange>, @@ -20165,20 +20532,20 @@ class SentryCocoa { ffi.Int32, ffi.Int32, ffi.Pointer)>>('objc_msgSend_stret'); - late final __objc_msgSend_711 = __objc_msgSend_711Ptr.asFunction< + late final __objc_msgSend_723 = __objc_msgSend_723Ptr.asFunction< void Function(ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); late final _sel_ordinalityOfUnit_inUnit_forDate_1 = _registerName1("ordinalityOfUnit:inUnit:forDate:"); - int _objc_msgSend_712( + int _objc_msgSend_724( ffi.Pointer obj, ffi.Pointer sel, int smaller, int larger, ffi.Pointer date, ) { - return __objc_msgSend_712( + return __objc_msgSend_724( obj, sel, smaller, @@ -20187,7 +20554,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_712Ptr = _lookup< + late final __objc_msgSend_724Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -20195,13 +20562,13 @@ class SentryCocoa { ffi.Int32, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_712 = __objc_msgSend_712Ptr.asFunction< + late final __objc_msgSend_724 = __objc_msgSend_724Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); late final _sel_rangeOfUnit_startDate_interval_forDate_1 = _registerName1("rangeOfUnit:startDate:interval:forDate:"); - bool _objc_msgSend_713( + bool _objc_msgSend_725( ffi.Pointer obj, ffi.Pointer sel, int unit, @@ -20209,7 +20576,7 @@ class SentryCocoa { ffi.Pointer tip, ffi.Pointer date, ) { - return __objc_msgSend_713( + return __objc_msgSend_725( obj, sel, unit, @@ -20219,7 +20586,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_713Ptr = _lookup< + late final __objc_msgSend_725Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -20228,7 +20595,7 @@ class SentryCocoa { ffi.Pointer>, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_713 = __objc_msgSend_713Ptr.asFunction< + late final __objc_msgSend_725 = __objc_msgSend_725Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -20240,23 +20607,23 @@ class SentryCocoa { late final _class_NSDateComponents1 = _getClass1("NSDateComponents"); late final _sel_calendar1 = _registerName1("calendar"); late final _sel_setCalendar_1 = _registerName1("setCalendar:"); - void _objc_msgSend_714( + void _objc_msgSend_726( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_714( + return __objc_msgSend_726( obj, sel, value, ); } - late final __objc_msgSend_714Ptr = _lookup< + late final __objc_msgSend_726Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_714 = __objc_msgSend_714Ptr.asFunction< + late final __objc_msgSend_726 = __objc_msgSend_726Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -20292,17 +20659,19 @@ class SentryCocoa { late final _sel_setDayOfYear_1 = _registerName1("setDayOfYear:"); late final _sel_isLeapMonth1 = _registerName1("isLeapMonth"); late final _sel_setLeapMonth_1 = _registerName1("setLeapMonth:"); + late final _sel_isRepeatedDay1 = _registerName1("isRepeatedDay"); + late final _sel_setRepeatedDay_1 = _registerName1("setRepeatedDay:"); late final _sel_week1 = _registerName1("week"); late final _sel_setWeek_1 = _registerName1("setWeek:"); late final _sel_setValue_forComponent_1 = _registerName1("setValue:forComponent:"); - void _objc_msgSend_715( + void _objc_msgSend_727( ffi.Pointer obj, ffi.Pointer sel, int value, int unit, ) { - return __objc_msgSend_715( + return __objc_msgSend_727( obj, sel, value, @@ -20310,86 +20679,86 @@ class SentryCocoa { ); } - late final __objc_msgSend_715Ptr = _lookup< + late final __objc_msgSend_727Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Long, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_715 = __objc_msgSend_715Ptr.asFunction< + late final __objc_msgSend_727 = __objc_msgSend_727Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_valueForComponent_1 = _registerName1("valueForComponent:"); - int _objc_msgSend_716( + int _objc_msgSend_728( ffi.Pointer obj, ffi.Pointer sel, int unit, ) { - return __objc_msgSend_716( + return __objc_msgSend_728( obj, sel, unit, ); } - late final __objc_msgSend_716Ptr = _lookup< + late final __objc_msgSend_728Ptr = _lookup< ffi.NativeFunction< ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_716 = __objc_msgSend_716Ptr.asFunction< + late final __objc_msgSend_728 = __objc_msgSend_728Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isValidDate1 = _registerName1("isValidDate"); late final _sel_isValidDateInCalendar_1 = _registerName1("isValidDateInCalendar:"); - bool _objc_msgSend_717( + bool _objc_msgSend_729( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer calendar, ) { - return __objc_msgSend_717( + return __objc_msgSend_729( obj, sel, calendar, ); } - late final __objc_msgSend_717Ptr = _lookup< + late final __objc_msgSend_729Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_717 = __objc_msgSend_717Ptr.asFunction< + late final __objc_msgSend_729 = __objc_msgSend_729Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dateFromComponents_1 = _registerName1("dateFromComponents:"); - ffi.Pointer _objc_msgSend_718( + ffi.Pointer _objc_msgSend_730( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer comps, ) { - return __objc_msgSend_718( + return __objc_msgSend_730( obj, sel, comps, ); } - late final __objc_msgSend_718Ptr = _lookup< + late final __objc_msgSend_730Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_718 = __objc_msgSend_718Ptr.asFunction< + late final __objc_msgSend_730 = __objc_msgSend_730Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_components_fromDate_1 = _registerName1("components:fromDate:"); - ffi.Pointer _objc_msgSend_719( + ffi.Pointer _objc_msgSend_731( ffi.Pointer obj, ffi.Pointer sel, int unitFlags, ffi.Pointer date, ) { - return __objc_msgSend_719( + return __objc_msgSend_731( obj, sel, unitFlags, @@ -20397,27 +20766,27 @@ class SentryCocoa { ); } - late final __objc_msgSend_719Ptr = _lookup< + late final __objc_msgSend_731Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_719 = __objc_msgSend_719Ptr.asFunction< + late final __objc_msgSend_731 = __objc_msgSend_731Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_dateByAddingComponents_toDate_options_1 = _registerName1("dateByAddingComponents:toDate:options:"); - ffi.Pointer _objc_msgSend_720( + ffi.Pointer _objc_msgSend_732( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer comps, ffi.Pointer date, int opts, ) { - return __objc_msgSend_720( + return __objc_msgSend_732( obj, sel, comps, @@ -20426,7 +20795,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_720Ptr = _lookup< + late final __objc_msgSend_732Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -20434,7 +20803,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_720 = __objc_msgSend_720Ptr.asFunction< + late final __objc_msgSend_732 = __objc_msgSend_732Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -20444,7 +20813,7 @@ class SentryCocoa { late final _sel_components_fromDate_toDate_options_1 = _registerName1("components:fromDate:toDate:options:"); - ffi.Pointer _objc_msgSend_721( + ffi.Pointer _objc_msgSend_733( ffi.Pointer obj, ffi.Pointer sel, int unitFlags, @@ -20452,7 +20821,7 @@ class SentryCocoa { ffi.Pointer resultDate, int opts, ) { - return __objc_msgSend_721( + return __objc_msgSend_733( obj, sel, unitFlags, @@ -20462,7 +20831,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_721Ptr = _lookup< + late final __objc_msgSend_733Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -20471,7 +20840,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_721 = __objc_msgSend_721Ptr.asFunction< + late final __objc_msgSend_733 = __objc_msgSend_733Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -20482,7 +20851,7 @@ class SentryCocoa { late final _sel_getEra_year_month_day_fromDate_1 = _registerName1("getEra:year:month:day:fromDate:"); - void _objc_msgSend_722( + void _objc_msgSend_734( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer eraValuePointer, @@ -20491,7 +20860,7 @@ class SentryCocoa { ffi.Pointer dayValuePointer, ffi.Pointer date, ) { - return __objc_msgSend_722( + return __objc_msgSend_734( obj, sel, eraValuePointer, @@ -20502,7 +20871,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_722Ptr = _lookup< + late final __objc_msgSend_734Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -20512,7 +20881,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_722 = __objc_msgSend_722Ptr.asFunction< + late final __objc_msgSend_734 = __objc_msgSend_734Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -20527,13 +20896,13 @@ class SentryCocoa { late final _sel_getHour_minute_second_nanosecond_fromDate_1 = _registerName1("getHour:minute:second:nanosecond:fromDate:"); late final _sel_component_fromDate_1 = _registerName1("component:fromDate:"); - int _objc_msgSend_723( + int _objc_msgSend_735( ffi.Pointer obj, ffi.Pointer sel, int unit, ffi.Pointer date, ) { - return __objc_msgSend_723( + return __objc_msgSend_735( obj, sel, unit, @@ -20541,18 +20910,18 @@ class SentryCocoa { ); } - late final __objc_msgSend_723Ptr = _lookup< + late final __objc_msgSend_735Ptr = _lookup< ffi.NativeFunction< ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_723 = __objc_msgSend_723Ptr.asFunction< + late final __objc_msgSend_735 = __objc_msgSend_735Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_dateWithEra_year_month_day_hour_minute_second_nanosecond_1 = _registerName1( "dateWithEra:year:month:day:hour:minute:second:nanosecond:"); - ffi.Pointer _objc_msgSend_724( + ffi.Pointer _objc_msgSend_736( ffi.Pointer obj, ffi.Pointer sel, int eraValue, @@ -20564,7 +20933,7 @@ class SentryCocoa { int secondValue, int nanosecondValue, ) { - return __objc_msgSend_724( + return __objc_msgSend_736( obj, sel, eraValue, @@ -20578,7 +20947,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_724Ptr = _lookup< + late final __objc_msgSend_736Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -20591,7 +20960,7 @@ class SentryCocoa { ffi.Long, ffi.Long, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_724 = __objc_msgSend_724Ptr.asFunction< + late final __objc_msgSend_736 = __objc_msgSend_736Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, int, int, int, int, int, int)>(); @@ -20601,13 +20970,13 @@ class SentryCocoa { late final _sel_startOfDayForDate_1 = _registerName1("startOfDayForDate:"); late final _sel_componentsInTimeZone_fromDate_1 = _registerName1("componentsInTimeZone:fromDate:"); - ffi.Pointer _objc_msgSend_725( + ffi.Pointer _objc_msgSend_737( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer timezone, ffi.Pointer date, ) { - return __objc_msgSend_725( + return __objc_msgSend_737( obj, sel, timezone, @@ -20615,14 +20984,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_725Ptr = _lookup< + late final __objc_msgSend_737Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_725 = __objc_msgSend_725Ptr.asFunction< + late final __objc_msgSend_737 = __objc_msgSend_737Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -20631,14 +21000,14 @@ class SentryCocoa { late final _sel_compareDate_toDate_toUnitGranularity_1 = _registerName1("compareDate:toDate:toUnitGranularity:"); - int _objc_msgSend_726( + int _objc_msgSend_738( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date1, ffi.Pointer date2, int unit, ) { - return __objc_msgSend_726( + return __objc_msgSend_738( obj, sel, date1, @@ -20647,7 +21016,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_726Ptr = _lookup< + late final __objc_msgSend_738Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, @@ -20655,20 +21024,20 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_726 = __objc_msgSend_726Ptr.asFunction< + late final __objc_msgSend_738 = __objc_msgSend_738Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isDate_equalToDate_toUnitGranularity_1 = _registerName1("isDate:equalToDate:toUnitGranularity:"); - bool _objc_msgSend_727( + bool _objc_msgSend_739( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date1, ffi.Pointer date2, int unit, ) { - return __objc_msgSend_727( + return __objc_msgSend_739( obj, sel, date1, @@ -20677,7 +21046,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_727Ptr = _lookup< + late final __objc_msgSend_739Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -20685,19 +21054,19 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_727 = __objc_msgSend_727Ptr.asFunction< + late final __objc_msgSend_739 = __objc_msgSend_739Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isDate_inSameDayAsDate_1 = _registerName1("isDate:inSameDayAsDate:"); - bool _objc_msgSend_728( + bool _objc_msgSend_740( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date1, ffi.Pointer date2, ) { - return __objc_msgSend_728( + return __objc_msgSend_740( obj, sel, date1, @@ -20705,14 +21074,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_728Ptr = _lookup< + late final __objc_msgSend_740Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_728 = __objc_msgSend_728Ptr.asFunction< + late final __objc_msgSend_740 = __objc_msgSend_740Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -20722,14 +21091,14 @@ class SentryCocoa { late final _sel_isDateInWeekend_1 = _registerName1("isDateInWeekend:"); late final _sel_rangeOfWeekendStartDate_interval_containingDate_1 = _registerName1("rangeOfWeekendStartDate:interval:containingDate:"); - bool _objc_msgSend_729( + bool _objc_msgSend_741( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> datep, ffi.Pointer tip, ffi.Pointer date, ) { - return __objc_msgSend_729( + return __objc_msgSend_741( obj, sel, datep, @@ -20738,7 +21107,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_729Ptr = _lookup< + late final __objc_msgSend_741Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -20746,7 +21115,7 @@ class SentryCocoa { ffi.Pointer>, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_729 = __objc_msgSend_729Ptr.asFunction< + late final __objc_msgSend_741 = __objc_msgSend_741Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -20756,7 +21125,7 @@ class SentryCocoa { late final _sel_nextWeekendStartDate_interval_options_afterDate_1 = _registerName1("nextWeekendStartDate:interval:options:afterDate:"); - bool _objc_msgSend_730( + bool _objc_msgSend_742( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> datep, @@ -20764,7 +21133,7 @@ class SentryCocoa { int options, ffi.Pointer date, ) { - return __objc_msgSend_730( + return __objc_msgSend_742( obj, sel, datep, @@ -20774,7 +21143,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_730Ptr = _lookup< + late final __objc_msgSend_742Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -20783,7 +21152,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_730 = __objc_msgSend_730Ptr.asFunction< + late final __objc_msgSend_742 = __objc_msgSend_742Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -20794,7 +21163,7 @@ class SentryCocoa { late final _sel_components_fromDateComponents_toDateComponents_options_1 = _registerName1("components:fromDateComponents:toDateComponents:options:"); - ffi.Pointer _objc_msgSend_731( + ffi.Pointer _objc_msgSend_743( ffi.Pointer obj, ffi.Pointer sel, int unitFlags, @@ -20802,7 +21171,7 @@ class SentryCocoa { ffi.Pointer resultDateComp, int options, ) { - return __objc_msgSend_731( + return __objc_msgSend_743( obj, sel, unitFlags, @@ -20812,7 +21181,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_731Ptr = _lookup< + late final __objc_msgSend_743Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -20821,7 +21190,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_731 = __objc_msgSend_731Ptr.asFunction< + late final __objc_msgSend_743 = __objc_msgSend_743Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -20832,7 +21201,7 @@ class SentryCocoa { late final _sel_dateByAddingUnit_value_toDate_options_1 = _registerName1("dateByAddingUnit:value:toDate:options:"); - ffi.Pointer _objc_msgSend_732( + ffi.Pointer _objc_msgSend_744( ffi.Pointer obj, ffi.Pointer sel, int unit, @@ -20840,7 +21209,7 @@ class SentryCocoa { ffi.Pointer date, int options, ) { - return __objc_msgSend_732( + return __objc_msgSend_744( obj, sel, unit, @@ -20850,7 +21219,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_732Ptr = _lookup< + late final __objc_msgSend_744Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -20859,14 +21228,14 @@ class SentryCocoa { ffi.Long, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_732 = __objc_msgSend_732Ptr.asFunction< + late final __objc_msgSend_744 = __objc_msgSend_744Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer, int)>(); late final _sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1 = _registerName1( "enumerateDatesStartingAfterDate:matchingComponents:options:usingBlock:"); - void _objc_msgSend_733( + void _objc_msgSend_745( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer start, @@ -20874,7 +21243,7 @@ class SentryCocoa { int opts, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_733( + return __objc_msgSend_745( obj, sel, start, @@ -20884,7 +21253,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_733Ptr = _lookup< + late final __objc_msgSend_745Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -20893,7 +21262,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_733 = __objc_msgSend_733Ptr.asFunction< + late final __objc_msgSend_745 = __objc_msgSend_745Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -20904,14 +21273,14 @@ class SentryCocoa { late final _sel_nextDateAfterDate_matchingComponents_options_1 = _registerName1("nextDateAfterDate:matchingComponents:options:"); - ffi.Pointer _objc_msgSend_734( + ffi.Pointer _objc_msgSend_746( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ffi.Pointer comps, int options, ) { - return __objc_msgSend_734( + return __objc_msgSend_746( obj, sel, date, @@ -20920,7 +21289,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_734Ptr = _lookup< + late final __objc_msgSend_746Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -20928,7 +21297,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_734 = __objc_msgSend_734Ptr.asFunction< + late final __objc_msgSend_746 = __objc_msgSend_746Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -20938,7 +21307,7 @@ class SentryCocoa { late final _sel_nextDateAfterDate_matchingUnit_value_options_1 = _registerName1("nextDateAfterDate:matchingUnit:value:options:"); - ffi.Pointer _objc_msgSend_735( + ffi.Pointer _objc_msgSend_747( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -20946,7 +21315,7 @@ class SentryCocoa { int value, int options, ) { - return __objc_msgSend_735( + return __objc_msgSend_747( obj, sel, date, @@ -20956,7 +21325,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_735Ptr = _lookup< + late final __objc_msgSend_747Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -20965,13 +21334,13 @@ class SentryCocoa { ffi.Int32, ffi.Long, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_735 = __objc_msgSend_735Ptr.asFunction< + late final __objc_msgSend_747 = __objc_msgSend_747Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, int)>(); late final _sel_nextDateAfterDate_matchingHour_minute_second_options_1 = _registerName1("nextDateAfterDate:matchingHour:minute:second:options:"); - ffi.Pointer _objc_msgSend_736( + ffi.Pointer _objc_msgSend_748( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, @@ -20980,7 +21349,7 @@ class SentryCocoa { int secondValue, int options, ) { - return __objc_msgSend_736( + return __objc_msgSend_748( obj, sel, date, @@ -20991,7 +21360,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_736Ptr = _lookup< + late final __objc_msgSend_748Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -21001,7 +21370,7 @@ class SentryCocoa { ffi.Long, ffi.Long, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_736 = __objc_msgSend_736Ptr.asFunction< + late final __objc_msgSend_748 = __objc_msgSend_748Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, int, int, int)>(); @@ -21009,7 +21378,7 @@ class SentryCocoa { _registerName1("dateBySettingUnit:value:ofDate:options:"); late final _sel_dateBySettingHour_minute_second_ofDate_options_1 = _registerName1("dateBySettingHour:minute:second:ofDate:options:"); - ffi.Pointer _objc_msgSend_737( + ffi.Pointer _objc_msgSend_749( ffi.Pointer obj, ffi.Pointer sel, int h, @@ -21018,7 +21387,7 @@ class SentryCocoa { ffi.Pointer date, int opts, ) { - return __objc_msgSend_737( + return __objc_msgSend_749( obj, sel, h, @@ -21029,7 +21398,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_737Ptr = _lookup< + late final __objc_msgSend_749Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -21039,19 +21408,19 @@ class SentryCocoa { ffi.Long, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_737 = __objc_msgSend_737Ptr.asFunction< + late final __objc_msgSend_749 = __objc_msgSend_749Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, int, ffi.Pointer, int)>(); late final _sel_date_matchesComponents_1 = _registerName1("date:matchesComponents:"); - bool _objc_msgSend_738( + bool _objc_msgSend_750( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, ffi.Pointer components, ) { - return __objc_msgSend_738( + return __objc_msgSend_750( obj, sel, date, @@ -21059,14 +21428,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_738Ptr = _lookup< + late final __objc_msgSend_750Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_738 = __objc_msgSend_738Ptr.asFunction< + late final __objc_msgSend_750 = __objc_msgSend_750Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -21078,23 +21447,23 @@ class SentryCocoa { late final _sel_defaultDate1 = _registerName1("defaultDate"); late final _sel_setDefaultDate_1 = _registerName1("setDefaultDate:"); late final _sel_setEraSymbols_1 = _registerName1("setEraSymbols:"); - void _objc_msgSend_739( + void _objc_msgSend_751( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_739( + return __objc_msgSend_751( obj, sel, value, ); } - late final __objc_msgSend_739Ptr = _lookup< + late final __objc_msgSend_751Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_739 = __objc_msgSend_739Ptr.asFunction< + late final __objc_msgSend_751 = __objc_msgSend_751Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -21143,56 +21512,56 @@ class SentryCocoa { _registerName1("allowsNaturalLanguage"); late final _class_NSNumberFormatter1 = _getClass1("NSNumberFormatter"); late final _sel_stringFromNumber_1 = _registerName1("stringFromNumber:"); - ffi.Pointer _objc_msgSend_740( + ffi.Pointer _objc_msgSend_752( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer number, ) { - return __objc_msgSend_740( + return __objc_msgSend_752( obj, sel, number, ); } - late final __objc_msgSend_740Ptr = _lookup< + late final __objc_msgSend_752Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_740 = __objc_msgSend_740Ptr.asFunction< + late final __objc_msgSend_752 = __objc_msgSend_752Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_numberFromString_1 = _registerName1("numberFromString:"); - ffi.Pointer _objc_msgSend_741( + ffi.Pointer _objc_msgSend_753( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ) { - return __objc_msgSend_741( + return __objc_msgSend_753( obj, sel, string, ); } - late final __objc_msgSend_741Ptr = _lookup< + late final __objc_msgSend_753Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_741 = __objc_msgSend_741Ptr.asFunction< + late final __objc_msgSend_753 = __objc_msgSend_753Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_localizedStringFromNumber_numberStyle_1 = _registerName1("localizedStringFromNumber:numberStyle:"); - ffi.Pointer _objc_msgSend_742( + ffi.Pointer _objc_msgSend_754( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer num, int nstyle, ) { - return __objc_msgSend_742( + return __objc_msgSend_754( obj, sel, num, @@ -21200,51 +21569,51 @@ class SentryCocoa { ); } - late final __objc_msgSend_742Ptr = _lookup< + late final __objc_msgSend_754Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_742 = __objc_msgSend_742Ptr.asFunction< + late final __objc_msgSend_754 = __objc_msgSend_754Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); - int _objc_msgSend_743( + int _objc_msgSend_755( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_743( + return __objc_msgSend_755( obj, sel, ); } - late final __objc_msgSend_743Ptr = _lookup< + late final __objc_msgSend_755Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_743 = __objc_msgSend_743Ptr.asFunction< + late final __objc_msgSend_755 = __objc_msgSend_755Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); - void _objc_msgSend_744( + void _objc_msgSend_756( ffi.Pointer obj, ffi.Pointer sel, int behavior, ) { - return __objc_msgSend_744( + return __objc_msgSend_756( obj, sel, behavior, ); } - late final __objc_msgSend_744Ptr = _lookup< + late final __objc_msgSend_756Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_744 = __objc_msgSend_744Ptr.asFunction< + late final __objc_msgSend_756 = __objc_msgSend_756Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_minimumGroupingDigits1 = @@ -21252,64 +21621,64 @@ class SentryCocoa { late final _sel_setMinimumGroupingDigits_1 = _registerName1("setMinimumGroupingDigits:"); late final _sel_numberStyle1 = _registerName1("numberStyle"); - int _objc_msgSend_745( + int _objc_msgSend_757( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_745( + return __objc_msgSend_757( obj, sel, ); } - late final __objc_msgSend_745Ptr = _lookup< + late final __objc_msgSend_757Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_745 = __objc_msgSend_745Ptr.asFunction< + late final __objc_msgSend_757 = __objc_msgSend_757Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setNumberStyle_1 = _registerName1("setNumberStyle:"); - void _objc_msgSend_746( + void _objc_msgSend_758( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_746( + return __objc_msgSend_758( obj, sel, value, ); } - late final __objc_msgSend_746Ptr = _lookup< + late final __objc_msgSend_758Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_746 = __objc_msgSend_746Ptr.asFunction< + late final __objc_msgSend_758 = __objc_msgSend_758Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_generatesDecimalNumbers1 = _registerName1("generatesDecimalNumbers"); late final _sel_setGeneratesDecimalNumbers_1 = _registerName1("setGeneratesDecimalNumbers:"); - void _objc_msgSend_747( + void _objc_msgSend_759( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_747( + return __objc_msgSend_759( obj, sel, value, ); } - late final __objc_msgSend_747Ptr = _lookup< + late final __objc_msgSend_759Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_747 = __objc_msgSend_747Ptr.asFunction< + late final __objc_msgSend_759 = __objc_msgSend_759Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_negativeFormat1 = _registerName1("negativeFormat"); @@ -21415,79 +21784,79 @@ class SentryCocoa { late final _sel_setPaddingCharacter_1 = _registerName1("setPaddingCharacter:"); late final _sel_paddingPosition1 = _registerName1("paddingPosition"); - int _objc_msgSend_748( + int _objc_msgSend_760( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_748( + return __objc_msgSend_760( obj, sel, ); } - late final __objc_msgSend_748Ptr = _lookup< + late final __objc_msgSend_760Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_748 = __objc_msgSend_748Ptr.asFunction< + late final __objc_msgSend_760 = __objc_msgSend_760Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setPaddingPosition_1 = _registerName1("setPaddingPosition:"); - void _objc_msgSend_749( + void _objc_msgSend_761( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_749( + return __objc_msgSend_761( obj, sel, value, ); } - late final __objc_msgSend_749Ptr = _lookup< + late final __objc_msgSend_761Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_749 = __objc_msgSend_749Ptr.asFunction< + late final __objc_msgSend_761 = __objc_msgSend_761Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_roundingMode1 = _registerName1("roundingMode"); - int _objc_msgSend_750( + int _objc_msgSend_762( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_750( + return __objc_msgSend_762( obj, sel, ); } - late final __objc_msgSend_750Ptr = _lookup< + late final __objc_msgSend_762Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_750 = __objc_msgSend_750Ptr.asFunction< + late final __objc_msgSend_762 = __objc_msgSend_762Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setRoundingMode_1 = _registerName1("setRoundingMode:"); - void _objc_msgSend_751( + void _objc_msgSend_763( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_751( + return __objc_msgSend_763( obj, sel, value, ); } - late final __objc_msgSend_751Ptr = _lookup< + late final __objc_msgSend_763Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_751 = __objc_msgSend_751Ptr.asFunction< + late final __objc_msgSend_763 = __objc_msgSend_763Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_roundingIncrement1 = _registerName1("roundingIncrement"); @@ -21548,23 +21917,23 @@ class SentryCocoa { _registerName1("attributedStringForZero"); late final _sel_setAttributedStringForZero_1 = _registerName1("setAttributedStringForZero:"); - void _objc_msgSend_752( + void _objc_msgSend_764( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_752( + return __objc_msgSend_764( obj, sel, value, ); } - late final __objc_msgSend_752Ptr = _lookup< + late final __objc_msgSend_764Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_752 = __objc_msgSend_752Ptr.asFunction< + late final __objc_msgSend_764 = __objc_msgSend_764Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -21580,28 +21949,28 @@ class SentryCocoa { _getClass1("NSDecimalNumberHandler"); late final _sel_defaultDecimalNumberHandler1 = _registerName1("defaultDecimalNumberHandler"); - ffi.Pointer _objc_msgSend_753( + ffi.Pointer _objc_msgSend_765( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_753( + return __objc_msgSend_765( obj, sel, ); } - late final __objc_msgSend_753Ptr = _lookup< + late final __objc_msgSend_765Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_753 = __objc_msgSend_753Ptr.asFunction< + late final __objc_msgSend_765 = __objc_msgSend_765Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1 = _registerName1( "initWithRoundingMode:scale:raiseOnExactness:raiseOnOverflow:raiseOnUnderflow:raiseOnDivideByZero:"); - instancetype _objc_msgSend_754( + instancetype _objc_msgSend_766( ffi.Pointer obj, ffi.Pointer sel, int roundingMode, @@ -21611,7 +21980,7 @@ class SentryCocoa { bool underflow, bool divideByZero, ) { - return __objc_msgSend_754( + return __objc_msgSend_766( obj, sel, roundingMode, @@ -21623,7 +21992,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_754Ptr = _lookup< + late final __objc_msgSend_766Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -21634,7 +22003,7 @@ class SentryCocoa { ffi.Bool, ffi.Bool, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_754 = __objc_msgSend_754Ptr.asFunction< + late final __objc_msgSend_766 = __objc_msgSend_766Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, int, bool, bool, bool, bool)>(); @@ -21644,23 +22013,23 @@ class SentryCocoa { late final _sel_roundingBehavior1 = _registerName1("roundingBehavior"); late final _sel_setRoundingBehavior_1 = _registerName1("setRoundingBehavior:"); - void _objc_msgSend_755( + void _objc_msgSend_767( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_755( + return __objc_msgSend_767( obj, sel, value, ); } - late final __objc_msgSend_755Ptr = _lookup< + late final __objc_msgSend_767Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_755 = __objc_msgSend_755Ptr.asFunction< + late final __objc_msgSend_767 = __objc_msgSend_767Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -21671,173 +22040,173 @@ class SentryCocoa { _registerName1("charactersToBeSkipped"); late final _sel_setCharactersToBeSkipped_1 = _registerName1("setCharactersToBeSkipped:"); - void _objc_msgSend_756( + void _objc_msgSend_768( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_756( + return __objc_msgSend_768( obj, sel, value, ); } - late final __objc_msgSend_756Ptr = _lookup< + late final __objc_msgSend_768Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_756 = __objc_msgSend_756Ptr.asFunction< + late final __objc_msgSend_768 = __objc_msgSend_768Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_caseSensitive1 = _registerName1("caseSensitive"); late final _sel_setCaseSensitive_1 = _registerName1("setCaseSensitive:"); late final _sel_scanInt_1 = _registerName1("scanInt:"); - bool _objc_msgSend_757( + bool _objc_msgSend_769( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_757( + return __objc_msgSend_769( obj, sel, result, ); } - late final __objc_msgSend_757Ptr = _lookup< + late final __objc_msgSend_769Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_757 = __objc_msgSend_757Ptr.asFunction< + late final __objc_msgSend_769 = __objc_msgSend_769Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanInteger_1 = _registerName1("scanInteger:"); - bool _objc_msgSend_758( + bool _objc_msgSend_770( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_758( + return __objc_msgSend_770( obj, sel, result, ); } - late final __objc_msgSend_758Ptr = _lookup< + late final __objc_msgSend_770Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_758 = __objc_msgSend_758Ptr.asFunction< + late final __objc_msgSend_770 = __objc_msgSend_770Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanLongLong_1 = _registerName1("scanLongLong:"); - bool _objc_msgSend_759( + bool _objc_msgSend_771( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_759( + return __objc_msgSend_771( obj, sel, result, ); } - late final __objc_msgSend_759Ptr = _lookup< + late final __objc_msgSend_771Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_759 = __objc_msgSend_759Ptr.asFunction< + late final __objc_msgSend_771 = __objc_msgSend_771Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanUnsignedLongLong_1 = _registerName1("scanUnsignedLongLong:"); - bool _objc_msgSend_760( + bool _objc_msgSend_772( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_760( + return __objc_msgSend_772( obj, sel, result, ); } - late final __objc_msgSend_760Ptr = _lookup< + late final __objc_msgSend_772Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_760 = __objc_msgSend_760Ptr.asFunction< + late final __objc_msgSend_772 = __objc_msgSend_772Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanFloat_1 = _registerName1("scanFloat:"); - bool _objc_msgSend_761( + bool _objc_msgSend_773( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_761( + return __objc_msgSend_773( obj, sel, result, ); } - late final __objc_msgSend_761Ptr = _lookup< + late final __objc_msgSend_773Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_761 = __objc_msgSend_761Ptr.asFunction< + late final __objc_msgSend_773 = __objc_msgSend_773Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanDouble_1 = _registerName1("scanDouble:"); - bool _objc_msgSend_762( + bool _objc_msgSend_774( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_762( + return __objc_msgSend_774( obj, sel, result, ); } - late final __objc_msgSend_762Ptr = _lookup< + late final __objc_msgSend_774Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_762 = __objc_msgSend_762Ptr.asFunction< + late final __objc_msgSend_774 = __objc_msgSend_774Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_scanHexInt_1 = _registerName1("scanHexInt:"); - bool _objc_msgSend_763( + bool _objc_msgSend_775( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, ) { - return __objc_msgSend_763( + return __objc_msgSend_775( obj, sel, result, ); } - late final __objc_msgSend_763Ptr = _lookup< + late final __objc_msgSend_775Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_763 = __objc_msgSend_763Ptr.asFunction< + late final __objc_msgSend_775 = __objc_msgSend_775Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -21846,13 +22215,13 @@ class SentryCocoa { late final _sel_scanHexDouble_1 = _registerName1("scanHexDouble:"); late final _sel_scanString_intoString_1 = _registerName1("scanString:intoString:"); - bool _objc_msgSend_764( + bool _objc_msgSend_776( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, ffi.Pointer> result, ) { - return __objc_msgSend_764( + return __objc_msgSend_776( obj, sel, string, @@ -21860,26 +22229,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_764Ptr = _lookup< + late final __objc_msgSend_776Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_764 = __objc_msgSend_764Ptr.asFunction< + late final __objc_msgSend_776 = __objc_msgSend_776Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_scanCharactersFromSet_intoString_1 = _registerName1("scanCharactersFromSet:intoString:"); - bool _objc_msgSend_765( + bool _objc_msgSend_777( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer set1, ffi.Pointer> result, ) { - return __objc_msgSend_765( + return __objc_msgSend_777( obj, sel, set1, @@ -21887,14 +22256,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_765Ptr = _lookup< + late final __objc_msgSend_777Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_765 = __objc_msgSend_765Ptr.asFunction< + late final __objc_msgSend_777 = __objc_msgSend_777Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -21907,37 +22276,37 @@ class SentryCocoa { late final _sel_localizedScannerWithString_1 = _registerName1("localizedScannerWithString:"); late final _sel_scanDecimal_1 = _registerName1("scanDecimal:"); - bool _objc_msgSend_766( + bool _objc_msgSend_778( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dcm, ) { - return __objc_msgSend_766( + return __objc_msgSend_778( obj, sel, dcm, ); } - late final __objc_msgSend_766Ptr = _lookup< + late final __objc_msgSend_778Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_766 = __objc_msgSend_766Ptr.asFunction< + late final __objc_msgSend_778 = __objc_msgSend_778Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSException1 = _getClass1("NSException"); late final _sel_exceptionWithName_reason_userInfo_1 = _registerName1("exceptionWithName:reason:userInfo:"); - ffi.Pointer _objc_msgSend_767( + ffi.Pointer _objc_msgSend_779( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer reason, ffi.Pointer userInfo, ) { - return __objc_msgSend_767( + return __objc_msgSend_779( obj, sel, name, @@ -21946,7 +22315,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_767Ptr = _lookup< + late final __objc_msgSend_779Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -21954,7 +22323,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_767 = __objc_msgSend_767Ptr.asFunction< + late final __objc_msgSend_779 = __objc_msgSend_779Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -21969,14 +22338,14 @@ class SentryCocoa { late final _sel_raise_format_1 = _registerName1("raise:format:"); late final _sel_raise_format_arguments_1 = _registerName1("raise:format:arguments:"); - void _objc_msgSend_768( + void _objc_msgSend_780( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer format, - ffi.Pointer<__va_list_tag> argList, + ffi.Pointer argList, ) { - return __objc_msgSend_768( + return __objc_msgSend_780( obj, sel, name, @@ -21985,33 +22354,33 @@ class SentryCocoa { ); } - late final __objc_msgSend_768Ptr = _lookup< + late final __objc_msgSend_780Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<__va_list_tag>)>>('objc_msgSend'); - late final __objc_msgSend_768 = __objc_msgSend_768Ptr.asFunction< + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_780 = __objc_msgSend_780Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<__va_list_tag>)>(); + ffi.Pointer)>(); late final _class_NSFileHandle1 = _getClass1("NSFileHandle"); late final _sel_availableData1 = _registerName1("availableData"); late final _sel_initWithFileDescriptor_closeOnDealloc_1 = _registerName1("initWithFileDescriptor:closeOnDealloc:"); - instancetype _objc_msgSend_769( + instancetype _objc_msgSend_781( ffi.Pointer obj, ffi.Pointer sel, int fd, bool closeopt, ) { - return __objc_msgSend_769( + return __objc_msgSend_781( obj, sel, fd, @@ -22019,47 +22388,47 @@ class SentryCocoa { ); } - late final __objc_msgSend_769Ptr = _lookup< + late final __objc_msgSend_781Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_769 = __objc_msgSend_769Ptr.asFunction< + late final __objc_msgSend_781 = __objc_msgSend_781Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int, bool)>(); late final _sel_readDataToEndOfFileAndReturnError_1 = _registerName1("readDataToEndOfFileAndReturnError:"); - ffi.Pointer _objc_msgSend_770( + ffi.Pointer _objc_msgSend_782( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> error, ) { - return __objc_msgSend_770( + return __objc_msgSend_782( obj, sel, error, ); } - late final __objc_msgSend_770Ptr = _lookup< + late final __objc_msgSend_782Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_770 = __objc_msgSend_770Ptr.asFunction< + late final __objc_msgSend_782 = __objc_msgSend_782Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_readDataUpToLength_error_1 = _registerName1("readDataUpToLength:error:"); - ffi.Pointer _objc_msgSend_771( + ffi.Pointer _objc_msgSend_783( ffi.Pointer obj, ffi.Pointer sel, int length, ffi.Pointer> error, ) { - return __objc_msgSend_771( + return __objc_msgSend_783( obj, sel, length, @@ -22067,25 +22436,25 @@ class SentryCocoa { ); } - late final __objc_msgSend_771Ptr = _lookup< + late final __objc_msgSend_783Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_771 = __objc_msgSend_771Ptr.asFunction< + late final __objc_msgSend_783 = __objc_msgSend_783Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); late final _sel_writeData_error_1 = _registerName1("writeData:error:"); - bool _objc_msgSend_772( + bool _objc_msgSend_784( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer> error, ) { - return __objc_msgSend_772( + return __objc_msgSend_784( obj, sel, data, @@ -22093,25 +22462,25 @@ class SentryCocoa { ); } - late final __objc_msgSend_772Ptr = _lookup< + late final __objc_msgSend_784Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_772 = __objc_msgSend_772Ptr.asFunction< + late final __objc_msgSend_784 = __objc_msgSend_784Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); late final _sel_getOffset_error_1 = _registerName1("getOffset:error:"); - bool _objc_msgSend_773( + bool _objc_msgSend_785( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer offsetInFile, ffi.Pointer> error, ) { - return __objc_msgSend_773( + return __objc_msgSend_785( obj, sel, offsetInFile, @@ -22119,14 +22488,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_773Ptr = _lookup< + late final __objc_msgSend_785Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_773 = __objc_msgSend_773Ptr.asFunction< + late final __objc_msgSend_785 = __objc_msgSend_785Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -22136,13 +22505,13 @@ class SentryCocoa { late final _sel_seekToEndReturningOffset_error_1 = _registerName1("seekToEndReturningOffset:error:"); late final _sel_seekToOffset_error_1 = _registerName1("seekToOffset:error:"); - bool _objc_msgSend_774( + bool _objc_msgSend_786( ffi.Pointer obj, ffi.Pointer sel, int offset, ffi.Pointer> error, ) { - return __objc_msgSend_774( + return __objc_msgSend_786( obj, sel, offset, @@ -22150,14 +22519,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_774Ptr = _lookup< + late final __objc_msgSend_786Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.UnsignedLongLong, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_774 = __objc_msgSend_774Ptr.asFunction< + late final __objc_msgSend_786 = __objc_msgSend_786Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer>)>(); @@ -22169,21 +22538,21 @@ class SentryCocoa { _registerName1("closeAndReturnError:"); late final _sel_fileHandleWithStandardInput1 = _registerName1("fileHandleWithStandardInput"); - ffi.Pointer _objc_msgSend_775( + ffi.Pointer _objc_msgSend_787( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_775( + return __objc_msgSend_787( obj, sel, ); } - late final __objc_msgSend_775Ptr = _lookup< + late final __objc_msgSend_787Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_775 = __objc_msgSend_775Ptr.asFunction< + late final __objc_msgSend_787 = __objc_msgSend_787Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -22201,13 +22570,13 @@ class SentryCocoa { _registerName1("fileHandleForUpdatingAtPath:"); late final _sel_fileHandleForReadingFromURL_error_1 = _registerName1("fileHandleForReadingFromURL:error:"); - instancetype _objc_msgSend_776( + instancetype _objc_msgSend_788( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer> error, ) { - return __objc_msgSend_776( + return __objc_msgSend_788( obj, sel, url, @@ -22215,14 +22584,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_776Ptr = _lookup< + late final __objc_msgSend_788Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_776 = __objc_msgSend_776Ptr.asFunction< + late final __objc_msgSend_788 = __objc_msgSend_788Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer>)>(); @@ -22247,43 +22616,43 @@ class SentryCocoa { late final _sel_waitForDataInBackgroundAndNotify1 = _registerName1("waitForDataInBackgroundAndNotify"); late final _sel_readabilityHandler1 = _registerName1("readabilityHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_777( + ffi.Pointer<_ObjCBlock> _objc_msgSend_789( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_777( + return __objc_msgSend_789( obj, sel, ); } - late final __objc_msgSend_777Ptr = _lookup< + late final __objc_msgSend_789Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_777 = __objc_msgSend_777Ptr.asFunction< + late final __objc_msgSend_789 = __objc_msgSend_789Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setReadabilityHandler_1 = _registerName1("setReadabilityHandler:"); - void _objc_msgSend_778( + void _objc_msgSend_790( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_778( + return __objc_msgSend_790( obj, sel, value, ); } - late final __objc_msgSend_778Ptr = _lookup< + late final __objc_msgSend_790Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_778 = __objc_msgSend_778Ptr.asFunction< + late final __objc_msgSend_790 = __objc_msgSend_790Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -22292,23 +22661,23 @@ class SentryCocoa { _registerName1("setWriteabilityHandler:"); late final _sel_initWithFileDescriptor_1 = _registerName1("initWithFileDescriptor:"); - instancetype _objc_msgSend_779( + instancetype _objc_msgSend_791( ffi.Pointer obj, ffi.Pointer sel, int fd, ) { - return __objc_msgSend_779( + return __objc_msgSend_791( obj, sel, fd, ); } - late final __objc_msgSend_779Ptr = _lookup< + late final __objc_msgSend_791Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_779 = __objc_msgSend_779Ptr.asFunction< + late final __objc_msgSend_791 = __objc_msgSend_791Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -22318,23 +22687,23 @@ class SentryCocoa { late final _sel_offsetInFile1 = _registerName1("offsetInFile"); late final _sel_seekToEndOfFile1 = _registerName1("seekToEndOfFile"); late final _sel_seekToFileOffset_1 = _registerName1("seekToFileOffset:"); - void _objc_msgSend_780( + void _objc_msgSend_792( ffi.Pointer obj, ffi.Pointer sel, int offset, ) { - return __objc_msgSend_780( + return __objc_msgSend_792( obj, sel, offset, ); } - late final __objc_msgSend_780Ptr = _lookup< + late final __objc_msgSend_792Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLongLong)>>('objc_msgSend'); - late final __objc_msgSend_780 = __objc_msgSend_780Ptr.asFunction< + late final __objc_msgSend_792 = __objc_msgSend_792Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_truncateFileAtOffset_1 = @@ -22344,43 +22713,43 @@ class SentryCocoa { late final _class_NSHTTPCookieStorage1 = _getClass1("NSHTTPCookieStorage"); late final _sel_sharedHTTPCookieStorage1 = _registerName1("sharedHTTPCookieStorage"); - ffi.Pointer _objc_msgSend_781( + ffi.Pointer _objc_msgSend_793( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_781( + return __objc_msgSend_793( obj, sel, ); } - late final __objc_msgSend_781Ptr = _lookup< + late final __objc_msgSend_793Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_781 = __objc_msgSend_781Ptr.asFunction< + late final __objc_msgSend_793 = __objc_msgSend_793Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_sharedCookieStorageForGroupContainerIdentifier_1 = _registerName1("sharedCookieStorageForGroupContainerIdentifier:"); - ffi.Pointer _objc_msgSend_782( + ffi.Pointer _objc_msgSend_794( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_782( + return __objc_msgSend_794( obj, sel, identifier, ); } - late final __objc_msgSend_782Ptr = _lookup< + late final __objc_msgSend_794Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_782 = __objc_msgSend_782Ptr.asFunction< + late final __objc_msgSend_794 = __objc_msgSend_794Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -22389,23 +22758,23 @@ class SentryCocoa { late final _sel_initWithProperties_1 = _registerName1("initWithProperties:"); late final _sel_cookieWithProperties_1 = _registerName1("cookieWithProperties:"); - ffi.Pointer _objc_msgSend_783( + ffi.Pointer _objc_msgSend_795( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer properties, ) { - return __objc_msgSend_783( + return __objc_msgSend_795( obj, sel, properties, ); } - late final __objc_msgSend_783Ptr = _lookup< + late final __objc_msgSend_795Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_783 = __objc_msgSend_783Ptr.asFunction< + late final __objc_msgSend_795 = __objc_msgSend_795Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -22413,13 +22782,13 @@ class SentryCocoa { _registerName1("requestHeaderFieldsWithCookies:"); late final _sel_cookiesWithResponseHeaderFields_forURL_1 = _registerName1("cookiesWithResponseHeaderFields:forURL:"); - ffi.Pointer _objc_msgSend_784( + ffi.Pointer _objc_msgSend_796( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer headerFields, ffi.Pointer URL, ) { - return __objc_msgSend_784( + return __objc_msgSend_796( obj, sel, headerFields, @@ -22427,14 +22796,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_784Ptr = _lookup< + late final __objc_msgSend_796Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_784 = __objc_msgSend_784Ptr.asFunction< + late final __objc_msgSend_796 = __objc_msgSend_796Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -22452,23 +22821,23 @@ class SentryCocoa { late final _sel_portList1 = _registerName1("portList"); late final _sel_sameSitePolicy1 = _registerName1("sameSitePolicy"); late final _sel_setCookie_1 = _registerName1("setCookie:"); - void _objc_msgSend_785( + void _objc_msgSend_797( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cookie, ) { - return __objc_msgSend_785( + return __objc_msgSend_797( obj, sel, cookie, ); } - late final __objc_msgSend_785Ptr = _lookup< + late final __objc_msgSend_797Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_785 = __objc_msgSend_785Ptr.asFunction< + late final __objc_msgSend_797 = __objc_msgSend_797Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -22478,14 +22847,14 @@ class SentryCocoa { late final _sel_cookiesForURL_1 = _registerName1("cookiesForURL:"); late final _sel_setCookies_forURL_mainDocumentURL_1 = _registerName1("setCookies:forURL:mainDocumentURL:"); - void _objc_msgSend_786( + void _objc_msgSend_798( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cookies, ffi.Pointer URL, ffi.Pointer mainDocumentURL, ) { - return __objc_msgSend_786( + return __objc_msgSend_798( obj, sel, cookies, @@ -22494,7 +22863,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_786Ptr = _lookup< + late final __objc_msgSend_798Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22502,7 +22871,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_786 = __objc_msgSend_786Ptr.asFunction< + late final __objc_msgSend_798 = __objc_msgSend_798Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -22511,42 +22880,42 @@ class SentryCocoa { ffi.Pointer)>(); late final _sel_cookieAcceptPolicy1 = _registerName1("cookieAcceptPolicy"); - int _objc_msgSend_787( + int _objc_msgSend_799( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_787( + return __objc_msgSend_799( obj, sel, ); } - late final __objc_msgSend_787Ptr = _lookup< + late final __objc_msgSend_799Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_787 = __objc_msgSend_787Ptr.asFunction< + late final __objc_msgSend_799 = __objc_msgSend_799Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setCookieAcceptPolicy_1 = _registerName1("setCookieAcceptPolicy:"); - void _objc_msgSend_788( + void _objc_msgSend_800( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_788( + return __objc_msgSend_800( obj, sel, value, ); } - late final __objc_msgSend_788Ptr = _lookup< + late final __objc_msgSend_800Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_788 = __objc_msgSend_788Ptr.asFunction< + late final __objc_msgSend_800 = __objc_msgSend_800Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_sortedCookiesUsingDescriptors_1 = @@ -22559,14 +22928,14 @@ class SentryCocoa { _registerName1("supportsSecureCoding"); late final _sel_requestWithURL_cachePolicy_timeoutInterval_1 = _registerName1("requestWithURL:cachePolicy:timeoutInterval:"); - instancetype _objc_msgSend_789( + instancetype _objc_msgSend_801( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer URL, int cachePolicy, double timeoutInterval, ) { - return __objc_msgSend_789( + return __objc_msgSend_801( obj, sel, URL, @@ -22575,53 +22944,52 @@ class SentryCocoa { ); } - late final __objc_msgSend_789Ptr = _lookup< + late final __objc_msgSend_801Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_789 = __objc_msgSend_789Ptr.asFunction< + late final __objc_msgSend_801 = __objc_msgSend_801Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, double)>(); late final _sel_initWithURL_cachePolicy_timeoutInterval_1 = _registerName1("initWithURL:cachePolicy:timeoutInterval:"); - late final _sel_URL1 = _registerName1("URL"); late final _sel_cachePolicy1 = _registerName1("cachePolicy"); - int _objc_msgSend_790( + int _objc_msgSend_802( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_790( + return __objc_msgSend_802( obj, sel, ); } - late final __objc_msgSend_790Ptr = _lookup< + late final __objc_msgSend_802Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_790 = __objc_msgSend_790Ptr.asFunction< + late final __objc_msgSend_802 = __objc_msgSend_802Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_timeoutInterval1 = _registerName1("timeoutInterval"); late final _sel_mainDocumentURL1 = _registerName1("mainDocumentURL"); late final _sel_networkServiceType1 = _registerName1("networkServiceType"); - int _objc_msgSend_791( + int _objc_msgSend_803( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_791( + return __objc_msgSend_803( obj, sel, ); } - late final __objc_msgSend_791Ptr = _lookup< + late final __objc_msgSend_803Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_791 = __objc_msgSend_791Ptr.asFunction< + late final __objc_msgSend_803 = __objc_msgSend_803Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_allowsCellularAccess1 = @@ -22630,23 +22998,25 @@ class SentryCocoa { _registerName1("allowsExpensiveNetworkAccess"); late final _sel_allowsConstrainedNetworkAccess1 = _registerName1("allowsConstrainedNetworkAccess"); + late final _sel_allowsUltraConstrainedNetworkAccess1 = + _registerName1("allowsUltraConstrainedNetworkAccess"); late final _sel_assumesHTTP3Capable1 = _registerName1("assumesHTTP3Capable"); late final _sel_attribution1 = _registerName1("attribution"); - int _objc_msgSend_792( + int _objc_msgSend_804( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_792( + return __objc_msgSend_804( obj, sel, ); } - late final __objc_msgSend_792Ptr = _lookup< + late final __objc_msgSend_804Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_792 = __objc_msgSend_792Ptr.asFunction< + late final __objc_msgSend_804 = __objc_msgSend_804Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_requiresDNSSECValidation1 = @@ -22664,33 +23034,33 @@ class SentryCocoa { late final _sel_open1 = _registerName1("open"); late final _sel_close1 = _registerName1("close"); late final _sel_streamStatus1 = _registerName1("streamStatus"); - int _objc_msgSend_793( + int _objc_msgSend_805( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_793( + return __objc_msgSend_805( obj, sel, ); } - late final __objc_msgSend_793Ptr = _lookup< + late final __objc_msgSend_805Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_793 = __objc_msgSend_793Ptr.asFunction< + late final __objc_msgSend_805 = __objc_msgSend_805Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_streamError1 = _registerName1("streamError"); late final _class_NSOutputStream1 = _getClass1("NSOutputStream"); late final _sel_write_maxLength_1 = _registerName1("write:maxLength:"); - int _objc_msgSend_794( + int _objc_msgSend_806( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int len, ) { - return __objc_msgSend_794( + return __objc_msgSend_806( obj, sel, buffer, @@ -22698,11 +23068,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_794Ptr = _lookup< + late final __objc_msgSend_806Ptr = _lookup< ffi.NativeFunction< ffi.Long Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_794 = __objc_msgSend_794Ptr.asFunction< + late final __objc_msgSend_806 = __objc_msgSend_806Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -22710,13 +23080,13 @@ class SentryCocoa { late final _sel_initToMemory1 = _registerName1("initToMemory"); late final _sel_initToBuffer_capacity_1 = _registerName1("initToBuffer:capacity:"); - instancetype _objc_msgSend_795( + instancetype _objc_msgSend_807( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer buffer, int capacity, ) { - return __objc_msgSend_795( + return __objc_msgSend_807( obj, sel, buffer, @@ -22724,11 +23094,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_795Ptr = _lookup< + late final __objc_msgSend_807Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_795 = __objc_msgSend_795Ptr.asFunction< + late final __objc_msgSend_807 = __objc_msgSend_807Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -22745,7 +23115,7 @@ class SentryCocoa { _registerName1("outputStreamWithURL:append:"); late final _sel_getStreamsToHostWithName_port_inputStream_outputStream_1 = _registerName1("getStreamsToHostWithName:port:inputStream:outputStream:"); - void _objc_msgSend_796( + void _objc_msgSend_808( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer hostname, @@ -22753,7 +23123,7 @@ class SentryCocoa { ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_796( + return __objc_msgSend_808( obj, sel, hostname, @@ -22763,7 +23133,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_796Ptr = _lookup< + late final __objc_msgSend_808Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22772,7 +23142,7 @@ class SentryCocoa { ffi.Long, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_796 = __objc_msgSend_796Ptr.asFunction< + late final __objc_msgSend_808 = __objc_msgSend_808Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -22786,56 +23156,55 @@ class SentryCocoa { late final _sel_hostWithName_1 = _registerName1("hostWithName:"); late final _sel_hostWithAddress_1 = _registerName1("hostWithAddress:"); late final _sel_isEqualToHost_1 = _registerName1("isEqualToHost:"); - bool _objc_msgSend_797( + bool _objc_msgSend_809( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aHost, ) { - return __objc_msgSend_797( + return __objc_msgSend_809( obj, sel, aHost, ); } - late final __objc_msgSend_797Ptr = _lookup< + late final __objc_msgSend_809Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_797 = __objc_msgSend_797Ptr.asFunction< + late final __objc_msgSend_809 = __objc_msgSend_809Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_names1 = _registerName1("names"); late final _sel_address1 = _registerName1("address"); late final _sel_addresses1 = _registerName1("addresses"); - late final _sel_localizedName1 = _registerName1("localizedName"); late final _sel_setHostCacheEnabled_1 = _registerName1("setHostCacheEnabled:"); - void _objc_msgSend_798( + void _objc_msgSend_810( ffi.Pointer obj, ffi.Pointer sel, bool flag, ) { - return __objc_msgSend_798( + return __objc_msgSend_810( obj, sel, flag, ); } - late final __objc_msgSend_798Ptr = _lookup< + late final __objc_msgSend_810Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_798 = __objc_msgSend_798Ptr.asFunction< + late final __objc_msgSend_810 = __objc_msgSend_810Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_isHostCacheEnabled1 = _registerName1("isHostCacheEnabled"); late final _sel_flushHostCache1 = _registerName1("flushHostCache"); late final _sel_getStreamsToHost_port_inputStream_outputStream_1 = _registerName1("getStreamsToHost:port:inputStream:outputStream:"); - void _objc_msgSend_799( + void _objc_msgSend_811( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer host, @@ -22843,7 +23212,7 @@ class SentryCocoa { ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_799( + return __objc_msgSend_811( obj, sel, host, @@ -22853,7 +23222,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_799Ptr = _lookup< + late final __objc_msgSend_811Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22862,7 +23231,7 @@ class SentryCocoa { ffi.Long, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_799 = __objc_msgSend_799Ptr.asFunction< + late final __objc_msgSend_811 = __objc_msgSend_811Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -22873,14 +23242,14 @@ class SentryCocoa { late final _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1 = _registerName1("getBoundStreamsWithBufferSize:inputStream:outputStream:"); - void _objc_msgSend_800( + void _objc_msgSend_812( ffi.Pointer obj, ffi.Pointer sel, int bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_800( + return __objc_msgSend_812( obj, sel, bufferSize, @@ -22889,7 +23258,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_800Ptr = _lookup< + late final __objc_msgSend_812Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -22897,7 +23266,7 @@ class SentryCocoa { ffi.UnsignedLong, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_800 = __objc_msgSend_800Ptr.asFunction< + late final __objc_msgSend_812 = __objc_msgSend_812Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -22907,13 +23276,13 @@ class SentryCocoa { late final _sel_read_maxLength_1 = _registerName1("read:maxLength:"); late final _sel_getBuffer_length_1 = _registerName1("getBuffer:length:"); - bool _objc_msgSend_801( + bool _objc_msgSend_813( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> buffer, ffi.Pointer len, ) { - return __objc_msgSend_801( + return __objc_msgSend_813( obj, sel, buffer, @@ -22921,14 +23290,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_801Ptr = _lookup< + late final __objc_msgSend_813Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_801 = __objc_msgSend_801Ptr.asFunction< + late final __objc_msgSend_813 = __objc_msgSend_813Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -22943,21 +23312,21 @@ class SentryCocoa { _registerName1("inputStreamWithFileAtPath:"); late final _sel_inputStreamWithURL_1 = _registerName1("inputStreamWithURL:"); late final _sel_HTTPBodyStream1 = _registerName1("HTTPBodyStream"); - ffi.Pointer _objc_msgSend_802( + ffi.Pointer _objc_msgSend_814( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_802( + return __objc_msgSend_814( obj, sel, ); } - late final __objc_msgSend_802Ptr = _lookup< + late final __objc_msgSend_814Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_802 = __objc_msgSend_802Ptr.asFunction< + late final __objc_msgSend_814 = __objc_msgSend_814Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -22966,21 +23335,21 @@ class SentryCocoa { late final _sel_HTTPShouldUsePipelining1 = _registerName1("HTTPShouldUsePipelining"); late final _sel_originalRequest1 = _registerName1("originalRequest"); - ffi.Pointer _objc_msgSend_803( + ffi.Pointer _objc_msgSend_815( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_803( + return __objc_msgSend_815( obj, sel, ); } - late final __objc_msgSend_803Ptr = _lookup< + late final __objc_msgSend_815Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_803 = __objc_msgSend_803Ptr.asFunction< + late final __objc_msgSend_815 = __objc_msgSend_815Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -22989,7 +23358,7 @@ class SentryCocoa { late final _sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1 = _registerName1( "initWithURL:MIMEType:expectedContentLength:textEncodingName:"); - instancetype _objc_msgSend_804( + instancetype _objc_msgSend_816( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer URL, @@ -22997,7 +23366,7 @@ class SentryCocoa { int length, ffi.Pointer name, ) { - return __objc_msgSend_804( + return __objc_msgSend_816( obj, sel, URL, @@ -23007,7 +23376,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_804Ptr = _lookup< + late final __objc_msgSend_816Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -23016,7 +23385,7 @@ class SentryCocoa { ffi.Pointer, ffi.Long, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_804 = __objc_msgSend_804Ptr.asFunction< + late final __objc_msgSend_816 = __objc_msgSend_816Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -23031,21 +23400,21 @@ class SentryCocoa { late final _sel_textEncodingName1 = _registerName1("textEncodingName"); late final _sel_suggestedFilename1 = _registerName1("suggestedFilename"); late final _sel_response1 = _registerName1("response"); - ffi.Pointer _objc_msgSend_805( + ffi.Pointer _objc_msgSend_817( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_805( + return __objc_msgSend_817( obj, sel, ); } - late final __objc_msgSend_805Ptr = _lookup< + late final __objc_msgSend_817Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_805 = __objc_msgSend_805Ptr.asFunction< + late final __objc_msgSend_817 = __objc_msgSend_817Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -23071,43 +23440,43 @@ class SentryCocoa { late final _sel_taskDescription1 = _registerName1("taskDescription"); late final _sel_setTaskDescription_1 = _registerName1("setTaskDescription:"); late final _sel_state1 = _registerName1("state"); - int _objc_msgSend_806( + int _objc_msgSend_818( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_806( + return __objc_msgSend_818( obj, sel, ); } - late final __objc_msgSend_806Ptr = _lookup< + late final __objc_msgSend_818Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_806 = __objc_msgSend_806Ptr.asFunction< + late final __objc_msgSend_818 = __objc_msgSend_818Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_suspend1 = _registerName1("suspend"); late final _sel_priority1 = _registerName1("priority"); late final _sel_setPriority_1 = _registerName1("setPriority:"); - void _objc_msgSend_807( + void _objc_msgSend_819( ffi.Pointer obj, ffi.Pointer sel, double value, ) { - return __objc_msgSend_807( + return __objc_msgSend_819( obj, sel, value, ); } - late final __objc_msgSend_807Ptr = _lookup< + late final __objc_msgSend_819Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Float)>>('objc_msgSend'); - late final __objc_msgSend_807 = __objc_msgSend_807Ptr.asFunction< + late final __objc_msgSend_819 = __objc_msgSend_819Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, double)>(); late final _sel_prefersIncrementalDelivery1 = @@ -23116,13 +23485,13 @@ class SentryCocoa { _registerName1("setPrefersIncrementalDelivery:"); late final _sel_storeCookies_forTask_1 = _registerName1("storeCookies:forTask:"); - void _objc_msgSend_808( + void _objc_msgSend_820( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cookies, ffi.Pointer task, ) { - return __objc_msgSend_808( + return __objc_msgSend_820( obj, sel, cookies, @@ -23130,26 +23499,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_808Ptr = _lookup< + late final __objc_msgSend_820Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_808 = __objc_msgSend_808Ptr.asFunction< + late final __objc_msgSend_820 = __objc_msgSend_820Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getCookiesForTask_completionHandler_1 = _registerName1("getCookiesForTask:completionHandler:"); - void _objc_msgSend_809( + void _objc_msgSend_821( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer task, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_809( + return __objc_msgSend_821( obj, sel, task, @@ -23157,14 +23526,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_809Ptr = _lookup< + late final __objc_msgSend_821Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_809 = __objc_msgSend_809Ptr.asFunction< + late final __objc_msgSend_821 = __objc_msgSend_821Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); @@ -23172,13 +23541,13 @@ class SentryCocoa { late final _sel_indexPathWithIndex_1 = _registerName1("indexPathWithIndex:"); late final _sel_indexPathWithIndexes_length_1 = _registerName1("indexPathWithIndexes:length:"); - instancetype _objc_msgSend_810( + instancetype _objc_msgSend_822( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, int length, ) { - return __objc_msgSend_810( + return __objc_msgSend_822( obj, sel, indexes, @@ -23186,14 +23555,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_810Ptr = _lookup< + late final __objc_msgSend_822Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_810 = __objc_msgSend_810Ptr.asFunction< + late final __objc_msgSend_822 = __objc_msgSend_822Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); @@ -23201,55 +23570,55 @@ class SentryCocoa { _registerName1("initWithIndexes:length:"); late final _sel_indexPathByAddingIndex_1 = _registerName1("indexPathByAddingIndex:"); - ffi.Pointer _objc_msgSend_811( + ffi.Pointer _objc_msgSend_823( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_811( + return __objc_msgSend_823( obj, sel, index, ); } - late final __objc_msgSend_811Ptr = _lookup< + late final __objc_msgSend_823Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_811 = __objc_msgSend_811Ptr.asFunction< + late final __objc_msgSend_823 = __objc_msgSend_823Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_indexPathByRemovingLastIndex1 = _registerName1("indexPathByRemovingLastIndex"); - ffi.Pointer _objc_msgSend_812( + ffi.Pointer _objc_msgSend_824( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_812( + return __objc_msgSend_824( obj, sel, ); } - late final __objc_msgSend_812Ptr = _lookup< + late final __objc_msgSend_824Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_812 = __objc_msgSend_812Ptr.asFunction< + late final __objc_msgSend_824 = __objc_msgSend_824Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_indexAtPosition_1 = _registerName1("indexAtPosition:"); late final _sel_getIndexes_range_1 = _registerName1("getIndexes:range:"); - void _objc_msgSend_813( + void _objc_msgSend_825( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, _NSRange positionRange, ) { - return __objc_msgSend_813( + return __objc_msgSend_825( obj, sel, indexes, @@ -23257,72 +23626,72 @@ class SentryCocoa { ); } - late final __objc_msgSend_813Ptr = _lookup< + late final __objc_msgSend_825Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_813 = __objc_msgSend_813Ptr.asFunction< + late final __objc_msgSend_825 = __objc_msgSend_825Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, _NSRange)>(); - int _objc_msgSend_814( + int _objc_msgSend_826( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer otherObject, ) { - return __objc_msgSend_814( + return __objc_msgSend_826( obj, sel, otherObject, ); } - late final __objc_msgSend_814Ptr = _lookup< + late final __objc_msgSend_826Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_814 = __objc_msgSend_814Ptr.asFunction< + late final __objc_msgSend_826 = __objc_msgSend_826Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getIndexes_1 = _registerName1("getIndexes:"); - void _objc_msgSend_815( + void _objc_msgSend_827( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer indexes, ) { - return __objc_msgSend_815( + return __objc_msgSend_827( obj, sel, indexes, ); } - late final __objc_msgSend_815Ptr = _lookup< + late final __objc_msgSend_827Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_815 = __objc_msgSend_815Ptr.asFunction< + late final __objc_msgSend_827 = __objc_msgSend_827Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSInflectionRule1 = _getClass1("NSInflectionRule"); late final _sel_automaticRule1 = _registerName1("automaticRule"); - ffi.Pointer _objc_msgSend_816( + ffi.Pointer _objc_msgSend_828( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_816( + return __objc_msgSend_828( obj, sel, ); } - late final __objc_msgSend_816Ptr = _lookup< + late final __objc_msgSend_828Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_816 = __objc_msgSend_816Ptr.asFunction< + late final __objc_msgSend_828 = __objc_msgSend_828Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -23331,309 +23700,309 @@ class SentryCocoa { _registerName1("canInflectPreferredLocalization"); late final _class_NSMorphology1 = _getClass1("NSMorphology"); late final _sel_grammaticalGender1 = _registerName1("grammaticalGender"); - int _objc_msgSend_817( + int _objc_msgSend_829( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_817( + return __objc_msgSend_829( obj, sel, ); } - late final __objc_msgSend_817Ptr = _lookup< + late final __objc_msgSend_829Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_817 = __objc_msgSend_817Ptr.asFunction< + late final __objc_msgSend_829 = __objc_msgSend_829Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setGrammaticalGender_1 = _registerName1("setGrammaticalGender:"); - void _objc_msgSend_818( + void _objc_msgSend_830( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_818( + return __objc_msgSend_830( obj, sel, value, ); } - late final __objc_msgSend_818Ptr = _lookup< + late final __objc_msgSend_830Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_818 = __objc_msgSend_818Ptr.asFunction< + late final __objc_msgSend_830 = __objc_msgSend_830Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_partOfSpeech1 = _registerName1("partOfSpeech"); - int _objc_msgSend_819( + int _objc_msgSend_831( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_819( + return __objc_msgSend_831( obj, sel, ); } - late final __objc_msgSend_819Ptr = _lookup< + late final __objc_msgSend_831Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_819 = __objc_msgSend_819Ptr.asFunction< + late final __objc_msgSend_831 = __objc_msgSend_831Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setPartOfSpeech_1 = _registerName1("setPartOfSpeech:"); - void _objc_msgSend_820( + void _objc_msgSend_832( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_820( + return __objc_msgSend_832( obj, sel, value, ); } - late final __objc_msgSend_820Ptr = _lookup< + late final __objc_msgSend_832Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_820 = __objc_msgSend_820Ptr.asFunction< + late final __objc_msgSend_832 = __objc_msgSend_832Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_number1 = _registerName1("number"); - int _objc_msgSend_821( + int _objc_msgSend_833( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_821( + return __objc_msgSend_833( obj, sel, ); } - late final __objc_msgSend_821Ptr = _lookup< + late final __objc_msgSend_833Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_821 = __objc_msgSend_821Ptr.asFunction< + late final __objc_msgSend_833 = __objc_msgSend_833Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setNumber_1 = _registerName1("setNumber:"); - void _objc_msgSend_822( + void _objc_msgSend_834( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_822( + return __objc_msgSend_834( obj, sel, value, ); } - late final __objc_msgSend_822Ptr = _lookup< + late final __objc_msgSend_834Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_822 = __objc_msgSend_822Ptr.asFunction< + late final __objc_msgSend_834 = __objc_msgSend_834Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_grammaticalCase1 = _registerName1("grammaticalCase"); - int _objc_msgSend_823( + int _objc_msgSend_835( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_823( + return __objc_msgSend_835( obj, sel, ); } - late final __objc_msgSend_823Ptr = _lookup< + late final __objc_msgSend_835Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_823 = __objc_msgSend_823Ptr.asFunction< + late final __objc_msgSend_835 = __objc_msgSend_835Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setGrammaticalCase_1 = _registerName1("setGrammaticalCase:"); - void _objc_msgSend_824( + void _objc_msgSend_836( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_824( + return __objc_msgSend_836( obj, sel, value, ); } - late final __objc_msgSend_824Ptr = _lookup< + late final __objc_msgSend_836Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_824 = __objc_msgSend_824Ptr.asFunction< + late final __objc_msgSend_836 = __objc_msgSend_836Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_determination1 = _registerName1("determination"); - int _objc_msgSend_825( + int _objc_msgSend_837( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_825( + return __objc_msgSend_837( obj, sel, ); } - late final __objc_msgSend_825Ptr = _lookup< + late final __objc_msgSend_837Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_825 = __objc_msgSend_825Ptr.asFunction< + late final __objc_msgSend_837 = __objc_msgSend_837Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDetermination_1 = _registerName1("setDetermination:"); - void _objc_msgSend_826( + void _objc_msgSend_838( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_826( + return __objc_msgSend_838( obj, sel, value, ); } - late final __objc_msgSend_826Ptr = _lookup< + late final __objc_msgSend_838Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_826 = __objc_msgSend_826Ptr.asFunction< + late final __objc_msgSend_838 = __objc_msgSend_838Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_grammaticalPerson1 = _registerName1("grammaticalPerson"); - int _objc_msgSend_827( + int _objc_msgSend_839( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_827( + return __objc_msgSend_839( obj, sel, ); } - late final __objc_msgSend_827Ptr = _lookup< + late final __objc_msgSend_839Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_827 = __objc_msgSend_827Ptr.asFunction< + late final __objc_msgSend_839 = __objc_msgSend_839Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setGrammaticalPerson_1 = _registerName1("setGrammaticalPerson:"); - void _objc_msgSend_828( + void _objc_msgSend_840( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_828( + return __objc_msgSend_840( obj, sel, value, ); } - late final __objc_msgSend_828Ptr = _lookup< + late final __objc_msgSend_840Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_828 = __objc_msgSend_828Ptr.asFunction< + late final __objc_msgSend_840 = __objc_msgSend_840Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_pronounType1 = _registerName1("pronounType"); - int _objc_msgSend_829( + int _objc_msgSend_841( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_829( + return __objc_msgSend_841( obj, sel, ); } - late final __objc_msgSend_829Ptr = _lookup< + late final __objc_msgSend_841Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_829 = __objc_msgSend_829Ptr.asFunction< + late final __objc_msgSend_841 = __objc_msgSend_841Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setPronounType_1 = _registerName1("setPronounType:"); - void _objc_msgSend_830( + void _objc_msgSend_842( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_830( + return __objc_msgSend_842( obj, sel, value, ); } - late final __objc_msgSend_830Ptr = _lookup< + late final __objc_msgSend_842Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_830 = __objc_msgSend_830Ptr.asFunction< + late final __objc_msgSend_842 = __objc_msgSend_842Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_definiteness1 = _registerName1("definiteness"); - int _objc_msgSend_831( + int _objc_msgSend_843( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_831( + return __objc_msgSend_843( obj, sel, ); } - late final __objc_msgSend_831Ptr = _lookup< + late final __objc_msgSend_843Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_831 = __objc_msgSend_831Ptr.asFunction< + late final __objc_msgSend_843 = __objc_msgSend_843Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDefiniteness_1 = _registerName1("setDefiniteness:"); - void _objc_msgSend_832( + void _objc_msgSend_844( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_832( + return __objc_msgSend_844( obj, sel, value, ); } - late final __objc_msgSend_832Ptr = _lookup< + late final __objc_msgSend_844Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_832 = __objc_msgSend_832Ptr.asFunction< + late final __objc_msgSend_844 = __objc_msgSend_844Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _class_NSMorphologyCustomPronoun1 = @@ -23656,36 +24025,36 @@ class SentryCocoa { late final _sel_setReflexiveForm_1 = _registerName1("setReflexiveForm:"); late final _sel_customPronounForLanguage_1 = _registerName1("customPronounForLanguage:"); - ffi.Pointer _objc_msgSend_833( + ffi.Pointer _objc_msgSend_845( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer language, ) { - return __objc_msgSend_833( + return __objc_msgSend_845( obj, sel, language, ); } - late final __objc_msgSend_833Ptr = _lookup< + late final __objc_msgSend_845Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_833 = __objc_msgSend_833Ptr.asFunction< + late final __objc_msgSend_845 = __objc_msgSend_845Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setCustomPronoun_forLanguage_error_1 = _registerName1("setCustomPronoun:forLanguage:error:"); - bool _objc_msgSend_834( + bool _objc_msgSend_846( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer features, ffi.Pointer language, ffi.Pointer> error, ) { - return __objc_msgSend_834( + return __objc_msgSend_846( obj, sel, features, @@ -23694,7 +24063,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_834Ptr = _lookup< + late final __objc_msgSend_846Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -23702,7 +24071,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_834 = __objc_msgSend_834Ptr.asFunction< + late final __objc_msgSend_846 = __objc_msgSend_846Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -23712,21 +24081,21 @@ class SentryCocoa { late final _sel_isUnspecified1 = _registerName1("isUnspecified"); late final _sel_userMorphology1 = _registerName1("userMorphology"); - ffi.Pointer _objc_msgSend_835( + ffi.Pointer _objc_msgSend_847( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_835( + return __objc_msgSend_847( obj, sel, ); } - late final __objc_msgSend_835Ptr = _lookup< + late final __objc_msgSend_847Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_835 = __objc_msgSend_835Ptr.asFunction< + late final __objc_msgSend_847 = __objc_msgSend_847Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -23736,64 +24105,64 @@ class SentryCocoa { late final _sel_isAsynchronous1 = _registerName1("isAsynchronous"); late final _sel_isReady1 = _registerName1("isReady"); late final _sel_addDependency_1 = _registerName1("addDependency:"); - void _objc_msgSend_836( + void _objc_msgSend_848( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer op, ) { - return __objc_msgSend_836( + return __objc_msgSend_848( obj, sel, op, ); } - late final __objc_msgSend_836Ptr = _lookup< + late final __objc_msgSend_848Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_836 = __objc_msgSend_836Ptr.asFunction< + late final __objc_msgSend_848 = __objc_msgSend_848Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removeDependency_1 = _registerName1("removeDependency:"); late final _sel_dependencies1 = _registerName1("dependencies"); late final _sel_queuePriority1 = _registerName1("queuePriority"); - int _objc_msgSend_837( + int _objc_msgSend_849( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_837( + return __objc_msgSend_849( obj, sel, ); } - late final __objc_msgSend_837Ptr = _lookup< + late final __objc_msgSend_849Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_837 = __objc_msgSend_837Ptr.asFunction< + late final __objc_msgSend_849 = __objc_msgSend_849Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setQueuePriority_1 = _registerName1("setQueuePriority:"); - void _objc_msgSend_838( + void _objc_msgSend_850( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_838( + return __objc_msgSend_850( obj, sel, value, ); } - late final __objc_msgSend_838Ptr = _lookup< + late final __objc_msgSend_850Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_838 = __objc_msgSend_838Ptr.asFunction< + late final __objc_msgSend_850 = __objc_msgSend_850Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_completionBlock1 = _registerName1("completionBlock"); @@ -23802,13 +24171,13 @@ class SentryCocoa { late final _sel_addOperation_1 = _registerName1("addOperation:"); late final _sel_addOperations_waitUntilFinished_1 = _registerName1("addOperations:waitUntilFinished:"); - void _objc_msgSend_839( + void _objc_msgSend_851( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer ops, bool wait, ) { - return __objc_msgSend_839( + return __objc_msgSend_851( obj, sel, ops, @@ -23816,11 +24185,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_839Ptr = _lookup< + late final __objc_msgSend_851Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_839 = __objc_msgSend_839Ptr.asFunction< + late final __objc_msgSend_851 = __objc_msgSend_851Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -23834,42 +24203,42 @@ class SentryCocoa { late final _sel_isSuspended1 = _registerName1("isSuspended"); late final _sel_setSuspended_1 = _registerName1("setSuspended:"); late final _sel_underlyingQueue1 = _registerName1("underlyingQueue"); - ffi.Pointer _objc_msgSend_840( + ffi.Pointer _objc_msgSend_852( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_840( + return __objc_msgSend_852( obj, sel, ); } - late final __objc_msgSend_840Ptr = _lookup< + late final __objc_msgSend_852Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_840 = __objc_msgSend_840Ptr.asFunction< + late final __objc_msgSend_852 = __objc_msgSend_852Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setUnderlyingQueue_1 = _registerName1("setUnderlyingQueue:"); - void _objc_msgSend_841( + void _objc_msgSend_853( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_841( + return __objc_msgSend_853( obj, sel, value, ); } - late final __objc_msgSend_841Ptr = _lookup< + late final __objc_msgSend_853Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_841 = __objc_msgSend_841Ptr.asFunction< + late final __objc_msgSend_853 = __objc_msgSend_853Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -23877,21 +24246,21 @@ class SentryCocoa { late final _sel_waitUntilAllOperationsAreFinished1 = _registerName1("waitUntilAllOperationsAreFinished"); late final _sel_currentQueue1 = _registerName1("currentQueue"); - ffi.Pointer _objc_msgSend_842( + ffi.Pointer _objc_msgSend_854( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_842( + return __objc_msgSend_854( obj, sel, ); } - late final __objc_msgSend_842Ptr = _lookup< + late final __objc_msgSend_854Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_842 = __objc_msgSend_842Ptr.asFunction< + late final __objc_msgSend_854 = __objc_msgSend_854Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -23900,46 +24269,46 @@ class SentryCocoa { late final _sel_operationCount1 = _registerName1("operationCount"); late final _class_NSPointerArray1 = _getClass1("NSPointerArray"); late final _sel_initWithOptions_1 = _registerName1("initWithOptions:"); - instancetype _objc_msgSend_843( + instancetype _objc_msgSend_855( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_843( + return __objc_msgSend_855( obj, sel, options, ); } - late final __objc_msgSend_843Ptr = _lookup< + late final __objc_msgSend_855Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_843 = __objc_msgSend_843Ptr.asFunction< + late final __objc_msgSend_855 = __objc_msgSend_855Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int)>(); late final _class_NSPointerFunctions1 = _getClass1("NSPointerFunctions"); late final _sel_pointerFunctionsWithOptions_1 = _registerName1("pointerFunctionsWithOptions:"); - ffi.Pointer _objc_msgSend_844( + ffi.Pointer _objc_msgSend_856( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_844( + return __objc_msgSend_856( obj, sel, options, ); } - late final __objc_msgSend_844Ptr = _lookup< + late final __objc_msgSend_856Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_844 = __objc_msgSend_844Ptr.asFunction< + late final __objc_msgSend_856 = __objc_msgSend_856Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -23951,17 +24320,17 @@ class SentryCocoa { ffi.Pointer< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer)>>)>> - _objc_msgSend_845( + _objc_msgSend_857( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_845( + return __objc_msgSend_857( obj, sel, ); } - late final __objc_msgSend_845Ptr = _lookup< + late final __objc_msgSend_857Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< @@ -23973,7 +24342,7 @@ class SentryCocoa { ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_845 = __objc_msgSend_845Ptr.asFunction< + late final __objc_msgSend_857 = __objc_msgSend_857Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.UnsignedLong Function( @@ -23985,7 +24354,7 @@ class SentryCocoa { Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setHashFunction_1 = _registerName1("setHashFunction:"); - void _objc_msgSend_846( + void _objc_msgSend_858( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -23998,14 +24367,14 @@ class SentryCocoa { ffi.Pointer)>>)>> value, ) { - return __objc_msgSend_846( + return __objc_msgSend_858( obj, sel, value, ); } - late final __objc_msgSend_846Ptr = _lookup< + late final __objc_msgSend_858Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24019,7 +24388,7 @@ class SentryCocoa { ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>>( 'objc_msgSend'); - late final __objc_msgSend_846 = __objc_msgSend_846Ptr.asFunction< + late final __objc_msgSend_858 = __objc_msgSend_858Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24041,17 +24410,17 @@ class SentryCocoa { ffi.Pointer< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer)>>)>> - _objc_msgSend_847( + _objc_msgSend_859( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_847( + return __objc_msgSend_859( obj, sel, ); } - late final __objc_msgSend_847Ptr = _lookup< + late final __objc_msgSend_859Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< @@ -24064,7 +24433,7 @@ class SentryCocoa { ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_847 = __objc_msgSend_847Ptr.asFunction< + late final __objc_msgSend_859 = __objc_msgSend_859Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Bool Function( @@ -24077,7 +24446,7 @@ class SentryCocoa { Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setIsEqualFunction_1 = _registerName1("setIsEqualFunction:"); - void _objc_msgSend_848( + void _objc_msgSend_860( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -24091,14 +24460,14 @@ class SentryCocoa { ffi.Pointer)>>)>> value, ) { - return __objc_msgSend_848( + return __objc_msgSend_860( obj, sel, value, ); } - late final __objc_msgSend_848Ptr = _lookup< + late final __objc_msgSend_860Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24113,7 +24482,7 @@ class SentryCocoa { ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>>( 'objc_msgSend'); - late final __objc_msgSend_848 = __objc_msgSend_848Ptr.asFunction< + late final __objc_msgSend_860 = __objc_msgSend_860Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24130,31 +24499,31 @@ class SentryCocoa { late final _sel_sizeFunction1 = _registerName1("sizeFunction"); ffi.Pointer< ffi.NativeFunction)>> - _objc_msgSend_849( + _objc_msgSend_861( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_849( + return __objc_msgSend_861( obj, sel, ); } - late final __objc_msgSend_849Ptr = _lookup< + late final __objc_msgSend_861Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_849 = __objc_msgSend_849Ptr.asFunction< + late final __objc_msgSend_861 = __objc_msgSend_861Ptr.asFunction< ffi.Pointer< ffi .NativeFunction)>> Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setSizeFunction_1 = _registerName1("setSizeFunction:"); - void _objc_msgSend_850( + void _objc_msgSend_862( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -24162,14 +24531,14 @@ class SentryCocoa { .NativeFunction)>> value, ) { - return __objc_msgSend_850( + return __objc_msgSend_862( obj, sel, value, ); } - late final __objc_msgSend_850Ptr = _lookup< + late final __objc_msgSend_862Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24178,7 +24547,7 @@ class SentryCocoa { ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer)>>)>>('objc_msgSend'); - late final __objc_msgSend_850 = __objc_msgSend_850Ptr.asFunction< + late final __objc_msgSend_862 = __objc_msgSend_862Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24190,17 +24559,17 @@ class SentryCocoa { ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer)>> - _objc_msgSend_851( + _objc_msgSend_863( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_851( + return __objc_msgSend_863( obj, sel, ); } - late final __objc_msgSend_851Ptr = + late final __objc_msgSend_863Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< @@ -24209,7 +24578,7 @@ class SentryCocoa { ffi.Pointer)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_851 = __objc_msgSend_851Ptr.asFunction< + late final __objc_msgSend_863 = __objc_msgSend_863Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer)>> @@ -24217,7 +24586,7 @@ class SentryCocoa { late final _sel_setDescriptionFunction_1 = _registerName1("setDescriptionFunction:"); - void _objc_msgSend_852( + void _objc_msgSend_864( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -24225,14 +24594,14 @@ class SentryCocoa { ffi.Pointer Function(ffi.Pointer)>> value, ) { - return __objc_msgSend_852( + return __objc_msgSend_864( obj, sel, value, ); } - late final __objc_msgSend_852Ptr = _lookup< + late final __objc_msgSend_864Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24241,7 +24610,7 @@ class SentryCocoa { ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer)>>)>>('objc_msgSend'); - late final __objc_msgSend_852 = __objc_msgSend_852Ptr.asFunction< + late final __objc_msgSend_864 = __objc_msgSend_864Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24257,17 +24626,17 @@ class SentryCocoa { ffi.Pointer< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer)>>)>> - _objc_msgSend_853( + _objc_msgSend_865( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_853( + return __objc_msgSend_865( obj, sel, ); } - late final __objc_msgSend_853Ptr = _lookup< + late final __objc_msgSend_865Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< @@ -24279,7 +24648,7 @@ class SentryCocoa { ffi.Pointer)>>)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_853 = __objc_msgSend_853Ptr.asFunction< + late final __objc_msgSend_865 = __objc_msgSend_865Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Void Function( @@ -24292,7 +24661,7 @@ class SentryCocoa { late final _sel_setRelinquishFunction_1 = _registerName1("setRelinquishFunction:"); - void _objc_msgSend_854( + void _objc_msgSend_866( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -24305,14 +24674,14 @@ class SentryCocoa { ffi.Pointer)>>)>> value, ) { - return __objc_msgSend_854( + return __objc_msgSend_866( obj, sel, value, ); } - late final __objc_msgSend_854Ptr = _lookup< + late final __objc_msgSend_866Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24326,7 +24695,7 @@ class SentryCocoa { ffi.UnsignedLong Function( ffi.Pointer)>>)>>)>>( 'objc_msgSend'); - late final __objc_msgSend_854 = __objc_msgSend_854Ptr.asFunction< + late final __objc_msgSend_866 = __objc_msgSend_866Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24347,17 +24716,17 @@ class SentryCocoa { ffi.Pointer< ffi.NativeFunction< ffi.UnsignedLong Function(ffi.Pointer)>>, - ffi.Bool)>> _objc_msgSend_855( + ffi.Bool)>> _objc_msgSend_867( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_855( + return __objc_msgSend_867( obj, sel, ); } - late final __objc_msgSend_855Ptr = _lookup< + late final __objc_msgSend_867Ptr = _lookup< ffi.NativeFunction< ffi.Pointer< ffi.NativeFunction< @@ -24370,7 +24739,7 @@ class SentryCocoa { ffi.Bool)>> Function(ffi.Pointer, ffi.Pointer)>>( 'objc_msgSend'); - late final __objc_msgSend_855 = __objc_msgSend_855Ptr.asFunction< + late final __objc_msgSend_867 = __objc_msgSend_867Ptr.asFunction< ffi.Pointer< ffi.NativeFunction< ffi.Pointer Function( @@ -24383,7 +24752,7 @@ class SentryCocoa { Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setAcquireFunction_1 = _registerName1("setAcquireFunction:"); - void _objc_msgSend_856( + void _objc_msgSend_868( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer< @@ -24396,14 +24765,14 @@ class SentryCocoa { ffi.Bool)>> value, ) { - return __objc_msgSend_856( + return __objc_msgSend_868( obj, sel, value, ); } - late final __objc_msgSend_856Ptr = _lookup< + late final __objc_msgSend_868Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24417,7 +24786,7 @@ class SentryCocoa { ffi.UnsignedLong Function( ffi.Pointer)>>, ffi.Bool)>>)>>('objc_msgSend'); - late final __objc_msgSend_856 = __objc_msgSend_856Ptr.asFunction< + late final __objc_msgSend_868 = __objc_msgSend_868Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -24441,86 +24810,86 @@ class SentryCocoa { _registerName1("setUsesWeakReadAndWriteBarriers:"); late final _sel_initWithPointerFunctions_1 = _registerName1("initWithPointerFunctions:"); - instancetype _objc_msgSend_857( + instancetype _objc_msgSend_869( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer functions, ) { - return __objc_msgSend_857( + return __objc_msgSend_869( obj, sel, functions, ); } - late final __objc_msgSend_857Ptr = _lookup< + late final __objc_msgSend_869Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_857 = __objc_msgSend_857Ptr.asFunction< + late final __objc_msgSend_869 = __objc_msgSend_869Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_pointerArrayWithOptions_1 = _registerName1("pointerArrayWithOptions:"); - ffi.Pointer _objc_msgSend_858( + ffi.Pointer _objc_msgSend_870( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_858( + return __objc_msgSend_870( obj, sel, options, ); } - late final __objc_msgSend_858Ptr = _lookup< + late final __objc_msgSend_870Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_858 = __objc_msgSend_858Ptr.asFunction< + late final __objc_msgSend_870 = __objc_msgSend_870Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_pointerArrayWithPointerFunctions_1 = _registerName1("pointerArrayWithPointerFunctions:"); - ffi.Pointer _objc_msgSend_859( + ffi.Pointer _objc_msgSend_871( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer functions, ) { - return __objc_msgSend_859( + return __objc_msgSend_871( obj, sel, functions, ); } - late final __objc_msgSend_859Ptr = _lookup< + late final __objc_msgSend_871Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_859 = __objc_msgSend_859Ptr.asFunction< + late final __objc_msgSend_871 = __objc_msgSend_871Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_pointerFunctions1 = _registerName1("pointerFunctions"); - ffi.Pointer _objc_msgSend_860( + ffi.Pointer _objc_msgSend_872( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_860( + return __objc_msgSend_872( obj, sel, ); } - late final __objc_msgSend_860Ptr = _lookup< + late final __objc_msgSend_872Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_860 = __objc_msgSend_860Ptr.asFunction< + late final __objc_msgSend_872 = __objc_msgSend_872Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -24532,13 +24901,13 @@ class SentryCocoa { _registerName1("insertPointer:atIndex:"); late final _sel_replacePointerAtIndex_withPointer_1 = _registerName1("replacePointerAtIndex:withPointer:"); - void _objc_msgSend_861( + void _objc_msgSend_873( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer item, ) { - return __objc_msgSend_861( + return __objc_msgSend_873( obj, sel, index, @@ -24546,11 +24915,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_861Ptr = _lookup< + late final __objc_msgSend_873Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_861 = __objc_msgSend_861Ptr.asFunction< + late final __objc_msgSend_873 = __objc_msgSend_873Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -24562,21 +24931,21 @@ class SentryCocoa { _registerName1("pointerArrayWithWeakObjects"); late final _sel_strongObjectsPointerArray1 = _registerName1("strongObjectsPointerArray"); - ffi.Pointer _objc_msgSend_862( + ffi.Pointer _objc_msgSend_874( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_862( + return __objc_msgSend_874( obj, sel, ); } - late final __objc_msgSend_862Ptr = _lookup< + late final __objc_msgSend_874Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_862 = __objc_msgSend_862Ptr.asFunction< + late final __objc_msgSend_874 = __objc_msgSend_874Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -24584,21 +24953,21 @@ class SentryCocoa { _registerName1("weakObjectsPointerArray"); late final _class_NSProcessInfo1 = _getClass1("NSProcessInfo"); late final _sel_processInfo1 = _registerName1("processInfo"); - ffi.Pointer _objc_msgSend_863( + ffi.Pointer _objc_msgSend_875( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_863( + return __objc_msgSend_875( obj, sel, ); } - late final __objc_msgSend_863Ptr = _lookup< + late final __objc_msgSend_875Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_863 = __objc_msgSend_863Ptr.asFunction< + late final __objc_msgSend_875 = __objc_msgSend_875Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -24615,25 +24984,25 @@ class SentryCocoa { _registerName1("operatingSystemVersionString"); late final _sel_operatingSystemVersion1 = _registerName1("operatingSystemVersion"); - void _objc_msgSend_864( + void _objc_msgSend_876( ffi.Pointer stret, ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_864( + return __objc_msgSend_876( stret, obj, sel, ); } - late final __objc_msgSend_864Ptr = _lookup< + late final __objc_msgSend_876Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend_stret'); - late final __objc_msgSend_864 = __objc_msgSend_864Ptr.asFunction< + late final __objc_msgSend_876 = __objc_msgSend_876Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -24643,23 +25012,23 @@ class SentryCocoa { late final _sel_physicalMemory1 = _registerName1("physicalMemory"); late final _sel_isOperatingSystemAtLeastVersion_1 = _registerName1("isOperatingSystemAtLeastVersion:"); - bool _objc_msgSend_865( + bool _objc_msgSend_877( ffi.Pointer obj, ffi.Pointer sel, NSOperatingSystemVersion version, ) { - return __objc_msgSend_865( + return __objc_msgSend_877( obj, sel, version, ); } - late final __objc_msgSend_865Ptr = _lookup< + late final __objc_msgSend_877Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, NSOperatingSystemVersion)>>('objc_msgSend'); - late final __objc_msgSend_865 = __objc_msgSend_865Ptr.asFunction< + late final __objc_msgSend_877 = __objc_msgSend_877Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, NSOperatingSystemVersion)>(); @@ -24678,13 +25047,13 @@ class SentryCocoa { _registerName1("setAutomaticTerminationSupportEnabled:"); late final _sel_beginActivityWithOptions_reason_1 = _registerName1("beginActivityWithOptions:reason:"); - ffi.Pointer _objc_msgSend_866( + ffi.Pointer _objc_msgSend_878( ffi.Pointer obj, ffi.Pointer sel, int options, ffi.Pointer reason, ) { - return __objc_msgSend_866( + return __objc_msgSend_878( obj, sel, options, @@ -24692,28 +25061,28 @@ class SentryCocoa { ); } - late final __objc_msgSend_866Ptr = _lookup< + late final __objc_msgSend_878Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_866 = __objc_msgSend_866Ptr.asFunction< + late final __objc_msgSend_878 = __objc_msgSend_878Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _sel_endActivity_1 = _registerName1("endActivity:"); late final _sel_performActivityWithOptions_reason_usingBlock_1 = _registerName1("performActivityWithOptions:reason:usingBlock:"); - void _objc_msgSend_867( + void _objc_msgSend_879( ffi.Pointer obj, ffi.Pointer sel, int options, ffi.Pointer reason, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_867( + return __objc_msgSend_879( obj, sel, options, @@ -24722,7 +25091,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_867Ptr = _lookup< + late final __objc_msgSend_879Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24730,19 +25099,19 @@ class SentryCocoa { ffi.Int32, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_867 = __objc_msgSend_867Ptr.asFunction< + late final __objc_msgSend_879 = __objc_msgSend_879Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_performExpiringActivityWithReason_usingBlock_1 = _registerName1("performExpiringActivityWithReason:usingBlock:"); - void _objc_msgSend_868( + void _objc_msgSend_880( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer reason, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_868( + return __objc_msgSend_880( obj, sel, reason, @@ -24750,80 +25119,82 @@ class SentryCocoa { ); } - late final __objc_msgSend_868Ptr = _lookup< + late final __objc_msgSend_880Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_868 = __objc_msgSend_868Ptr.asFunction< + late final __objc_msgSend_880 = __objc_msgSend_880Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_userName1 = _registerName1("userName"); late final _sel_fullUserName1 = _registerName1("fullUserName"); late final _sel_thermalState1 = _registerName1("thermalState"); - int _objc_msgSend_869( + int _objc_msgSend_881( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_869( + return __objc_msgSend_881( obj, sel, ); } - late final __objc_msgSend_869Ptr = _lookup< + late final __objc_msgSend_881Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_869 = __objc_msgSend_869Ptr.asFunction< + late final __objc_msgSend_881 = __objc_msgSend_881Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_isLowPowerModeEnabled1 = _registerName1("isLowPowerModeEnabled"); late final _sel_isMacCatalystApp1 = _registerName1("isMacCatalystApp"); late final _sel_isiOSAppOnMac1 = _registerName1("isiOSAppOnMac"); + late final _sel_isiOSAppOnVision1 = _registerName1("isiOSAppOnVision"); late final _sel_processDirectoryPath1 = _registerName1("processDirectoryPath"); late final _sel_processPath1 = _registerName1("processPath"); + late final _sel_isiOSAppOnVisionOS1 = _registerName1("isiOSAppOnVisionOS"); late final _class_NSTextCheckingResult1 = _getClass1("NSTextCheckingResult"); late final _sel_resultType1 = _registerName1("resultType"); - int _objc_msgSend_870( + int _objc_msgSend_882( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_870( + return __objc_msgSend_882( obj, sel, ); } - late final __objc_msgSend_870Ptr = _lookup< + late final __objc_msgSend_882Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_870 = __objc_msgSend_870Ptr.asFunction< + late final __objc_msgSend_882 = __objc_msgSend_882Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_range1 = _registerName1("range"); late final _sel_orthography1 = _registerName1("orthography"); - ffi.Pointer _objc_msgSend_871( + ffi.Pointer _objc_msgSend_883( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_871( + return __objc_msgSend_883( obj, sel, ); } - late final __objc_msgSend_871Ptr = _lookup< + late final __objc_msgSend_883Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_871 = __objc_msgSend_871Ptr.asFunction< + late final __objc_msgSend_883 = __objc_msgSend_883Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -24835,14 +25206,14 @@ class SentryCocoa { late final _class_NSRegularExpression1 = _getClass1("NSRegularExpression"); late final _sel_regularExpressionWithPattern_options_error_1 = _registerName1("regularExpressionWithPattern:options:error:"); - ffi.Pointer _objc_msgSend_872( + ffi.Pointer _objc_msgSend_884( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer pattern, int options, ffi.Pointer> error, ) { - return __objc_msgSend_872( + return __objc_msgSend_884( obj, sel, pattern, @@ -24851,7 +25222,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_872Ptr = _lookup< + late final __objc_msgSend_884Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -24859,7 +25230,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_872 = __objc_msgSend_872Ptr.asFunction< + late final __objc_msgSend_884 = __objc_msgSend_884Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -24869,14 +25240,14 @@ class SentryCocoa { late final _sel_initWithPattern_options_error_1 = _registerName1("initWithPattern:options:error:"); - instancetype _objc_msgSend_873( + instancetype _objc_msgSend_885( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer pattern, int options, ffi.Pointer> error, ) { - return __objc_msgSend_873( + return __objc_msgSend_885( obj, sel, pattern, @@ -24885,7 +25256,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_873Ptr = _lookup< + late final __objc_msgSend_885Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -24893,7 +25264,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_873 = __objc_msgSend_873Ptr.asFunction< + late final __objc_msgSend_885 = __objc_msgSend_885Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -24903,21 +25274,21 @@ class SentryCocoa { late final _sel_pattern1 = _registerName1("pattern"); late final _sel_options1 = _registerName1("options"); - int _objc_msgSend_874( + int _objc_msgSend_886( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_874( + return __objc_msgSend_886( obj, sel, ); } - late final __objc_msgSend_874Ptr = _lookup< + late final __objc_msgSend_886Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_874 = __objc_msgSend_874Ptr.asFunction< + late final __objc_msgSend_886 = __objc_msgSend_886Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_numberOfCaptureGroups1 = @@ -24926,7 +25297,7 @@ class SentryCocoa { _registerName1("escapedPatternForString:"); late final _sel_enumerateMatchesInString_options_range_usingBlock_1 = _registerName1("enumerateMatchesInString:options:range:usingBlock:"); - void _objc_msgSend_875( + void _objc_msgSend_887( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, @@ -24934,7 +25305,7 @@ class SentryCocoa { _NSRange range, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_875( + return __objc_msgSend_887( obj, sel, string, @@ -24944,7 +25315,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_875Ptr = _lookup< + late final __objc_msgSend_887Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -24953,20 +25324,20 @@ class SentryCocoa { ffi.Int32, _NSRange, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_875 = __objc_msgSend_875Ptr.asFunction< + late final __objc_msgSend_887 = __objc_msgSend_887Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange, ffi.Pointer<_ObjCBlock>)>(); late final _sel_matchesInString_options_range_1 = _registerName1("matchesInString:options:range:"); - ffi.Pointer _objc_msgSend_876( + ffi.Pointer _objc_msgSend_888( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, _NSRange range, ) { - return __objc_msgSend_876( + return __objc_msgSend_888( obj, sel, string, @@ -24975,7 +25346,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_876Ptr = _lookup< + late final __objc_msgSend_888Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -24983,20 +25354,20 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_876 = __objc_msgSend_876Ptr.asFunction< + late final __objc_msgSend_888 = __objc_msgSend_888Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_numberOfMatchesInString_options_range_1 = _registerName1("numberOfMatchesInString:options:range:"); - int _objc_msgSend_877( + int _objc_msgSend_889( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, _NSRange range, ) { - return __objc_msgSend_877( + return __objc_msgSend_889( obj, sel, string, @@ -25005,7 +25376,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_877Ptr = _lookup< + late final __objc_msgSend_889Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -25013,20 +25384,20 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_877 = __objc_msgSend_877Ptr.asFunction< + late final __objc_msgSend_889 = __objc_msgSend_889Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_firstMatchInString_options_range_1 = _registerName1("firstMatchInString:options:range:"); - ffi.Pointer _objc_msgSend_878( + ffi.Pointer _objc_msgSend_890( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int options, _NSRange range, ) { - return __objc_msgSend_878( + return __objc_msgSend_890( obj, sel, string, @@ -25035,7 +25406,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_878Ptr = _lookup< + late final __objc_msgSend_890Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -25043,13 +25414,13 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_878 = __objc_msgSend_878Ptr.asFunction< + late final __objc_msgSend_890 = __objc_msgSend_890Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_rangeOfFirstMatchInString_options_range_1 = _registerName1("rangeOfFirstMatchInString:options:range:"); - void _objc_msgSend_879( + void _objc_msgSend_891( ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, @@ -25057,7 +25428,7 @@ class SentryCocoa { int options, _NSRange range, ) { - return __objc_msgSend_879( + return __objc_msgSend_891( stret, obj, sel, @@ -25067,7 +25438,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_879Ptr = _lookup< + late final __objc_msgSend_891Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer<_NSRange>, @@ -25076,14 +25447,14 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend_stret'); - late final __objc_msgSend_879 = __objc_msgSend_879Ptr.asFunction< + late final __objc_msgSend_891 = __objc_msgSend_891Ptr.asFunction< void Function(ffi.Pointer<_NSRange>, ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange)>(); late final _sel_stringByReplacingMatchesInString_options_range_withTemplate_1 = _registerName1( "stringByReplacingMatchesInString:options:range:withTemplate:"); - ffi.Pointer _objc_msgSend_880( + ffi.Pointer _objc_msgSend_892( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, @@ -25091,7 +25462,7 @@ class SentryCocoa { _NSRange range, ffi.Pointer templ, ) { - return __objc_msgSend_880( + return __objc_msgSend_892( obj, sel, string, @@ -25101,7 +25472,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_880Ptr = _lookup< + late final __objc_msgSend_892Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -25110,7 +25481,7 @@ class SentryCocoa { ffi.Int32, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_880 = __objc_msgSend_880Ptr.asFunction< + late final __objc_msgSend_892 = __objc_msgSend_892Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25121,7 +25492,7 @@ class SentryCocoa { late final _sel_replaceMatchesInString_options_range_withTemplate_1 = _registerName1("replaceMatchesInString:options:range:withTemplate:"); - int _objc_msgSend_881( + int _objc_msgSend_893( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, @@ -25129,7 +25500,7 @@ class SentryCocoa { _NSRange range, ffi.Pointer templ, ) { - return __objc_msgSend_881( + return __objc_msgSend_893( obj, sel, string, @@ -25139,7 +25510,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_881Ptr = _lookup< + late final __objc_msgSend_893Ptr = _lookup< ffi.NativeFunction< ffi.UnsignedLong Function( ffi.Pointer, @@ -25148,13 +25519,13 @@ class SentryCocoa { ffi.Int32, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_881 = __objc_msgSend_881Ptr.asFunction< + late final __objc_msgSend_893 = __objc_msgSend_893Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int, _NSRange, ffi.Pointer)>(); late final _sel_replacementStringForResult_inString_offset_template_1 = _registerName1("replacementStringForResult:inString:offset:template:"); - ffi.Pointer _objc_msgSend_882( + ffi.Pointer _objc_msgSend_894( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer result, @@ -25162,7 +25533,7 @@ class SentryCocoa { int offset, ffi.Pointer templ, ) { - return __objc_msgSend_882( + return __objc_msgSend_894( obj, sel, result, @@ -25172,7 +25543,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_882Ptr = _lookup< + late final __objc_msgSend_894Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -25181,7 +25552,7 @@ class SentryCocoa { ffi.Pointer, ffi.Long, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_882 = __objc_msgSend_882Ptr.asFunction< + late final __objc_msgSend_894 = __objc_msgSend_894Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25193,21 +25564,21 @@ class SentryCocoa { late final _sel_escapedTemplateForString_1 = _registerName1("escapedTemplateForString:"); late final _sel_regularExpression1 = _registerName1("regularExpression"); - ffi.Pointer _objc_msgSend_883( + ffi.Pointer _objc_msgSend_895( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_883( + return __objc_msgSend_895( obj, sel, ); } - late final __objc_msgSend_883Ptr = _lookup< + late final __objc_msgSend_895Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_883 = __objc_msgSend_883Ptr.asFunction< + late final __objc_msgSend_895 = __objc_msgSend_895Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -25217,36 +25588,36 @@ class SentryCocoa { late final _sel_rangeWithName_1 = _registerName1("rangeWithName:"); late final _sel_resultByAdjustingRangesWithOffset_1 = _registerName1("resultByAdjustingRangesWithOffset:"); - ffi.Pointer _objc_msgSend_884( + ffi.Pointer _objc_msgSend_896( ffi.Pointer obj, ffi.Pointer sel, int offset, ) { - return __objc_msgSend_884( + return __objc_msgSend_896( obj, sel, offset, ); } - late final __objc_msgSend_884Ptr = _lookup< + late final __objc_msgSend_896Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_884 = __objc_msgSend_884Ptr.asFunction< + late final __objc_msgSend_896 = __objc_msgSend_896Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_addressComponents1 = _registerName1("addressComponents"); late final _sel_orthographyCheckingResultWithRange_orthography_1 = _registerName1("orthographyCheckingResultWithRange:orthography:"); - ffi.Pointer _objc_msgSend_885( + ffi.Pointer _objc_msgSend_897( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer orthography, ) { - return __objc_msgSend_885( + return __objc_msgSend_897( obj, sel, range, @@ -25254,48 +25625,48 @@ class SentryCocoa { ); } - late final __objc_msgSend_885Ptr = _lookup< + late final __objc_msgSend_897Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_885 = __objc_msgSend_885Ptr.asFunction< + late final __objc_msgSend_897 = __objc_msgSend_897Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_spellCheckingResultWithRange_1 = _registerName1("spellCheckingResultWithRange:"); - ffi.Pointer _objc_msgSend_886( + ffi.Pointer _objc_msgSend_898( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { - return __objc_msgSend_886( + return __objc_msgSend_898( obj, sel, range, ); } - late final __objc_msgSend_886Ptr = _lookup< + late final __objc_msgSend_898Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange)>>('objc_msgSend'); - late final __objc_msgSend_886 = __objc_msgSend_886Ptr.asFunction< + late final __objc_msgSend_898 = __objc_msgSend_898Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_grammarCheckingResultWithRange_details_1 = _registerName1("grammarCheckingResultWithRange:details:"); - ffi.Pointer _objc_msgSend_887( + ffi.Pointer _objc_msgSend_899( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer details, ) { - return __objc_msgSend_887( + return __objc_msgSend_899( obj, sel, range, @@ -25303,26 +25674,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_887Ptr = _lookup< + late final __objc_msgSend_899Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_887 = __objc_msgSend_887Ptr.asFunction< + late final __objc_msgSend_899 = __objc_msgSend_899Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_dateCheckingResultWithRange_date_1 = _registerName1("dateCheckingResultWithRange:date:"); - ffi.Pointer _objc_msgSend_888( + ffi.Pointer _objc_msgSend_900( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer date, ) { - return __objc_msgSend_888( + return __objc_msgSend_900( obj, sel, range, @@ -25330,20 +25701,20 @@ class SentryCocoa { ); } - late final __objc_msgSend_888Ptr = _lookup< + late final __objc_msgSend_900Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_888 = __objc_msgSend_888Ptr.asFunction< + late final __objc_msgSend_900 = __objc_msgSend_900Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_dateCheckingResultWithRange_date_timeZone_duration_1 = _registerName1("dateCheckingResultWithRange:date:timeZone:duration:"); - ffi.Pointer _objc_msgSend_889( + ffi.Pointer _objc_msgSend_901( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, @@ -25351,7 +25722,7 @@ class SentryCocoa { ffi.Pointer timeZone, double duration, ) { - return __objc_msgSend_889( + return __objc_msgSend_901( obj, sel, range, @@ -25361,7 +25732,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_889Ptr = _lookup< + late final __objc_msgSend_901Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -25370,7 +25741,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Double)>>('objc_msgSend'); - late final __objc_msgSend_889 = __objc_msgSend_889Ptr.asFunction< + late final __objc_msgSend_901 = __objc_msgSend_901Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25381,13 +25752,13 @@ class SentryCocoa { late final _sel_addressCheckingResultWithRange_components_1 = _registerName1("addressCheckingResultWithRange:components:"); - ffi.Pointer _objc_msgSend_890( + ffi.Pointer _objc_msgSend_902( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer components, ) { - return __objc_msgSend_890( + return __objc_msgSend_902( obj, sel, range, @@ -25395,26 +25766,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_890Ptr = _lookup< + late final __objc_msgSend_902Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_890 = __objc_msgSend_890Ptr.asFunction< + late final __objc_msgSend_902 = __objc_msgSend_902Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_linkCheckingResultWithRange_URL_1 = _registerName1("linkCheckingResultWithRange:URL:"); - ffi.Pointer _objc_msgSend_891( + ffi.Pointer _objc_msgSend_903( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer url, ) { - return __objc_msgSend_891( + return __objc_msgSend_903( obj, sel, range, @@ -25422,26 +25793,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_891Ptr = _lookup< + late final __objc_msgSend_903Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_891 = __objc_msgSend_891Ptr.asFunction< + late final __objc_msgSend_903 = __objc_msgSend_903Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); late final _sel_quoteCheckingResultWithRange_replacementString_1 = _registerName1("quoteCheckingResultWithRange:replacementString:"); - ffi.Pointer _objc_msgSend_892( + ffi.Pointer _objc_msgSend_904( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer replacementString, ) { - return __objc_msgSend_892( + return __objc_msgSend_904( obj, sel, range, @@ -25449,14 +25820,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_892Ptr = _lookup< + late final __objc_msgSend_904Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_892 = __objc_msgSend_892Ptr.asFunction< + late final __objc_msgSend_904 = __objc_msgSend_904Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); @@ -25469,14 +25840,14 @@ class SentryCocoa { late final _sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_1 = _registerName1( "correctionCheckingResultWithRange:replacementString:alternativeStrings:"); - ffi.Pointer _objc_msgSend_893( + ffi.Pointer _objc_msgSend_905( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ffi.Pointer replacementString, ffi.Pointer alternativeStrings, ) { - return __objc_msgSend_893( + return __objc_msgSend_905( obj, sel, range, @@ -25485,7 +25856,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_893Ptr = _lookup< + late final __objc_msgSend_905Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -25493,7 +25864,7 @@ class SentryCocoa { _NSRange, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_893 = __objc_msgSend_893Ptr.asFunction< + late final __objc_msgSend_905 = __objc_msgSend_905Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25504,14 +25875,14 @@ class SentryCocoa { late final _sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1 = _registerName1( "regularExpressionCheckingResultWithRanges:count:regularExpression:"); - ffi.Pointer _objc_msgSend_894( + ffi.Pointer _objc_msgSend_906( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_NSRange> ranges, int count, ffi.Pointer regularExpression, ) { - return __objc_msgSend_894( + return __objc_msgSend_906( obj, sel, ranges, @@ -25520,7 +25891,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_894Ptr = _lookup< + late final __objc_msgSend_906Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -25528,7 +25899,7 @@ class SentryCocoa { ffi.Pointer<_NSRange>, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_894 = __objc_msgSend_894Ptr.asFunction< + late final __objc_msgSend_906 = __objc_msgSend_906Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25542,55 +25913,55 @@ class SentryCocoa { _registerName1("transitInformationCheckingResultWithRange:components:"); late final _class_NSURLCache1 = _getClass1("NSURLCache"); late final _sel_sharedURLCache1 = _registerName1("sharedURLCache"); - ffi.Pointer _objc_msgSend_895( + ffi.Pointer _objc_msgSend_907( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_895( + return __objc_msgSend_907( obj, sel, ); } - late final __objc_msgSend_895Ptr = _lookup< + late final __objc_msgSend_907Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_895 = __objc_msgSend_895Ptr.asFunction< + late final __objc_msgSend_907 = __objc_msgSend_907Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setSharedURLCache_1 = _registerName1("setSharedURLCache:"); - void _objc_msgSend_896( + void _objc_msgSend_908( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_896( + return __objc_msgSend_908( obj, sel, value, ); } - late final __objc_msgSend_896Ptr = _lookup< + late final __objc_msgSend_908Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_896 = __objc_msgSend_896Ptr.asFunction< + late final __objc_msgSend_908 = __objc_msgSend_908Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithMemoryCapacity_diskCapacity_diskPath_1 = _registerName1("initWithMemoryCapacity:diskCapacity:diskPath:"); - instancetype _objc_msgSend_897( + instancetype _objc_msgSend_909( ffi.Pointer obj, ffi.Pointer sel, int memoryCapacity, int diskCapacity, ffi.Pointer path, ) { - return __objc_msgSend_897( + return __objc_msgSend_909( obj, sel, memoryCapacity, @@ -25599,7 +25970,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_897Ptr = _lookup< + late final __objc_msgSend_909Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -25607,20 +25978,20 @@ class SentryCocoa { ffi.UnsignedLong, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_897 = __objc_msgSend_897Ptr.asFunction< + late final __objc_msgSend_909 = __objc_msgSend_909Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); late final _sel_initWithMemoryCapacity_diskCapacity_directoryURL_1 = _registerName1("initWithMemoryCapacity:diskCapacity:directoryURL:"); - instancetype _objc_msgSend_898( + instancetype _objc_msgSend_910( ffi.Pointer obj, ffi.Pointer sel, int memoryCapacity, int diskCapacity, ffi.Pointer directoryURL, ) { - return __objc_msgSend_898( + return __objc_msgSend_910( obj, sel, memoryCapacity, @@ -25629,7 +26000,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_898Ptr = _lookup< + late final __objc_msgSend_910Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -25637,20 +26008,20 @@ class SentryCocoa { ffi.UnsignedLong, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_898 = __objc_msgSend_898Ptr.asFunction< + late final __objc_msgSend_910 = __objc_msgSend_910Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); late final _class_NSCachedURLResponse1 = _getClass1("NSCachedURLResponse"); late final _sel_initWithResponse_data_1 = _registerName1("initWithResponse:data:"); - instancetype _objc_msgSend_899( + instancetype _objc_msgSend_911( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer response, ffi.Pointer data, ) { - return __objc_msgSend_899( + return __objc_msgSend_911( obj, sel, response, @@ -25658,20 +26029,20 @@ class SentryCocoa { ); } - late final __objc_msgSend_899Ptr = _lookup< + late final __objc_msgSend_911Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_899 = __objc_msgSend_899Ptr.asFunction< + late final __objc_msgSend_911 = __objc_msgSend_911Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithResponse_data_userInfo_storagePolicy_1 = _registerName1("initWithResponse:data:userInfo:storagePolicy:"); - instancetype _objc_msgSend_900( + instancetype _objc_msgSend_912( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer response, @@ -25679,7 +26050,7 @@ class SentryCocoa { ffi.Pointer userInfo, int storagePolicy, ) { - return __objc_msgSend_900( + return __objc_msgSend_912( obj, sel, response, @@ -25689,7 +26060,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_900Ptr = _lookup< + late final __objc_msgSend_912Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -25698,7 +26069,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_900 = __objc_msgSend_900Ptr.asFunction< + late final __objc_msgSend_912 = __objc_msgSend_912Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -25708,54 +26079,54 @@ class SentryCocoa { int)>(); late final _sel_storagePolicy1 = _registerName1("storagePolicy"); - int _objc_msgSend_901( + int _objc_msgSend_913( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_901( + return __objc_msgSend_913( obj, sel, ); } - late final __objc_msgSend_901Ptr = _lookup< + late final __objc_msgSend_913Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_901 = __objc_msgSend_901Ptr.asFunction< + late final __objc_msgSend_913 = __objc_msgSend_913Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_cachedResponseForRequest_1 = _registerName1("cachedResponseForRequest:"); - ffi.Pointer _objc_msgSend_902( + ffi.Pointer _objc_msgSend_914( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_902( + return __objc_msgSend_914( obj, sel, request, ); } - late final __objc_msgSend_902Ptr = _lookup< + late final __objc_msgSend_914Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_902 = __objc_msgSend_902Ptr.asFunction< + late final __objc_msgSend_914 = __objc_msgSend_914Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_storeCachedResponse_forRequest_1 = _registerName1("storeCachedResponse:forRequest:"); - void _objc_msgSend_903( + void _objc_msgSend_915( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cachedResponse, ffi.Pointer request, ) { - return __objc_msgSend_903( + return __objc_msgSend_915( obj, sel, cachedResponse, @@ -25763,36 +26134,36 @@ class SentryCocoa { ); } - late final __objc_msgSend_903Ptr = _lookup< + late final __objc_msgSend_915Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_903 = __objc_msgSend_903Ptr.asFunction< + late final __objc_msgSend_915 = __objc_msgSend_915Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_removeCachedResponseForRequest_1 = _registerName1("removeCachedResponseForRequest:"); - void _objc_msgSend_904( + void _objc_msgSend_916( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_904( + return __objc_msgSend_916( obj, sel, request, ); } - late final __objc_msgSend_904Ptr = _lookup< + late final __objc_msgSend_916Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_904 = __objc_msgSend_904Ptr.asFunction< + late final __objc_msgSend_916 = __objc_msgSend_916Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -25809,13 +26180,13 @@ class SentryCocoa { late final _class_NSURLSessionDataTask1 = _getClass1("NSURLSessionDataTask"); late final _sel_storeCachedResponse_forDataTask_1 = _registerName1("storeCachedResponse:forDataTask:"); - void _objc_msgSend_905( + void _objc_msgSend_917( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer cachedResponse, ffi.Pointer dataTask, ) { - return __objc_msgSend_905( + return __objc_msgSend_917( obj, sel, cachedResponse, @@ -25823,26 +26194,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_905Ptr = _lookup< + late final __objc_msgSend_917Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_905 = __objc_msgSend_905Ptr.asFunction< + late final __objc_msgSend_917 = __objc_msgSend_917Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_getCachedResponseForDataTask_completionHandler_1 = _registerName1("getCachedResponseForDataTask:completionHandler:"); - void _objc_msgSend_906( + void _objc_msgSend_918( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dataTask, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_906( + return __objc_msgSend_918( obj, sel, dataTask, @@ -25850,50 +26221,50 @@ class SentryCocoa { ); } - late final __objc_msgSend_906Ptr = _lookup< + late final __objc_msgSend_918Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_906 = __objc_msgSend_906Ptr.asFunction< + late final __objc_msgSend_918 = __objc_msgSend_918Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_removeCachedResponseForDataTask_1 = _registerName1("removeCachedResponseForDataTask:"); - void _objc_msgSend_907( + void _objc_msgSend_919( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dataTask, ) { - return __objc_msgSend_907( + return __objc_msgSend_919( obj, sel, dataTask, ); } - late final __objc_msgSend_907Ptr = _lookup< + late final __objc_msgSend_919Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_907 = __objc_msgSend_907Ptr.asFunction< + late final __objc_msgSend_919 = __objc_msgSend_919Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_NSURLConnection1 = _getClass1("NSURLConnection"); late final _sel_initWithRequest_delegate_startImmediately_1 = _registerName1("initWithRequest:delegate:startImmediately:"); - instancetype _objc_msgSend_908( + instancetype _objc_msgSend_920( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer delegate, bool startImmediately, ) { - return __objc_msgSend_908( + return __objc_msgSend_920( obj, sel, request, @@ -25902,7 +26273,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_908Ptr = _lookup< + late final __objc_msgSend_920Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -25910,19 +26281,19 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_908 = __objc_msgSend_908Ptr.asFunction< + late final __objc_msgSend_920 = __objc_msgSend_920Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); late final _sel_initWithRequest_delegate_1 = _registerName1("initWithRequest:delegate:"); - instancetype _objc_msgSend_909( + instancetype _objc_msgSend_921( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer delegate, ) { - return __objc_msgSend_909( + return __objc_msgSend_921( obj, sel, request, @@ -25930,26 +26301,26 @@ class SentryCocoa { ); } - late final __objc_msgSend_909Ptr = _lookup< + late final __objc_msgSend_921Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_909 = __objc_msgSend_909Ptr.asFunction< + late final __objc_msgSend_921 = __objc_msgSend_921Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_connectionWithRequest_delegate_1 = _registerName1("connectionWithRequest:delegate:"); - ffi.Pointer _objc_msgSend_910( + ffi.Pointer _objc_msgSend_922( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer delegate, ) { - return __objc_msgSend_910( + return __objc_msgSend_922( obj, sel, request, @@ -25957,14 +26328,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_910Ptr = _lookup< + late final __objc_msgSend_922Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_910 = __objc_msgSend_910Ptr.asFunction< + late final __objc_msgSend_922 = __objc_msgSend_922Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -25974,57 +26345,57 @@ class SentryCocoa { late final _sel_unscheduleFromRunLoop_forMode_1 = _registerName1("unscheduleFromRunLoop:forMode:"); late final _sel_setDelegateQueue_1 = _registerName1("setDelegateQueue:"); - void _objc_msgSend_911( + void _objc_msgSend_923( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer queue, ) { - return __objc_msgSend_911( + return __objc_msgSend_923( obj, sel, queue, ); } - late final __objc_msgSend_911Ptr = _lookup< + late final __objc_msgSend_923Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_911 = __objc_msgSend_911Ptr.asFunction< + late final __objc_msgSend_923 = __objc_msgSend_923Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_canHandleRequest_1 = _registerName1("canHandleRequest:"); - bool _objc_msgSend_912( + bool _objc_msgSend_924( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_912( + return __objc_msgSend_924( obj, sel, request, ); } - late final __objc_msgSend_912Ptr = _lookup< + late final __objc_msgSend_924Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_912 = __objc_msgSend_912Ptr.asFunction< + late final __objc_msgSend_924 = __objc_msgSend_924Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_sendSynchronousRequest_returningResponse_error_1 = _registerName1("sendSynchronousRequest:returningResponse:error:"); - ffi.Pointer _objc_msgSend_913( + ffi.Pointer _objc_msgSend_925( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer> response, ffi.Pointer> error, ) { - return __objc_msgSend_913( + return __objc_msgSend_925( obj, sel, request, @@ -26033,7 +26404,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_913Ptr = _lookup< + late final __objc_msgSend_925Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -26041,7 +26412,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_913 = __objc_msgSend_913Ptr.asFunction< + late final __objc_msgSend_925 = __objc_msgSend_925Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26051,14 +26422,14 @@ class SentryCocoa { late final _sel_sendAsynchronousRequest_queue_completionHandler_1 = _registerName1("sendAsynchronousRequest:queue:completionHandler:"); - void _objc_msgSend_914( + void _objc_msgSend_926( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer queue, ffi.Pointer<_ObjCBlock> handler, ) { - return __objc_msgSend_914( + return __objc_msgSend_926( obj, sel, request, @@ -26067,7 +26438,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_914Ptr = _lookup< + late final __objc_msgSend_926Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -26075,7 +26446,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_914 = __objc_msgSend_914Ptr.asFunction< + late final __objc_msgSend_926 = __objc_msgSend_926Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -26085,33 +26456,33 @@ class SentryCocoa { late final _class_NSURLCredential1 = _getClass1("NSURLCredential"); late final _sel_persistence1 = _registerName1("persistence"); - int _objc_msgSend_915( + int _objc_msgSend_927( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_915( + return __objc_msgSend_927( obj, sel, ); } - late final __objc_msgSend_915Ptr = _lookup< + late final __objc_msgSend_927Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_915 = __objc_msgSend_915Ptr.asFunction< + late final __objc_msgSend_927 = __objc_msgSend_927Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithUser_password_persistence_1 = _registerName1("initWithUser:password:persistence:"); - instancetype _objc_msgSend_916( + instancetype _objc_msgSend_928( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer user, ffi.Pointer password, int persistence, ) { - return __objc_msgSend_916( + return __objc_msgSend_928( obj, sel, user, @@ -26120,7 +26491,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_916Ptr = _lookup< + late final __objc_msgSend_928Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -26128,20 +26499,20 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_916 = __objc_msgSend_916Ptr.asFunction< + late final __objc_msgSend_928 = __objc_msgSend_928Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_credentialWithUser_password_persistence_1 = _registerName1("credentialWithUser:password:persistence:"); - ffi.Pointer _objc_msgSend_917( + ffi.Pointer _objc_msgSend_929( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer user, ffi.Pointer password, int persistence, ) { - return __objc_msgSend_917( + return __objc_msgSend_929( obj, sel, user, @@ -26150,7 +26521,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_917Ptr = _lookup< + late final __objc_msgSend_929Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -26158,7 +26529,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_917 = __objc_msgSend_917Ptr.asFunction< + late final __objc_msgSend_929 = __objc_msgSend_929Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26169,14 +26540,14 @@ class SentryCocoa { late final _sel_hasPassword1 = _registerName1("hasPassword"); late final _sel_initWithIdentity_certificates_persistence_1 = _registerName1("initWithIdentity:certificates:persistence:"); - instancetype _objc_msgSend_918( + instancetype _objc_msgSend_930( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<__SecIdentity> identity, ffi.Pointer certArray, int persistence, ) { - return __objc_msgSend_918( + return __objc_msgSend_930( obj, sel, identity, @@ -26185,7 +26556,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_918Ptr = _lookup< + late final __objc_msgSend_930Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -26193,20 +26564,20 @@ class SentryCocoa { ffi.Pointer<__SecIdentity>, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_918 = __objc_msgSend_918Ptr.asFunction< + late final __objc_msgSend_930 = __objc_msgSend_930Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<__SecIdentity>, ffi.Pointer, int)>(); late final _sel_credentialWithIdentity_certificates_persistence_1 = _registerName1("credentialWithIdentity:certificates:persistence:"); - ffi.Pointer _objc_msgSend_919( + ffi.Pointer _objc_msgSend_931( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<__SecIdentity> identity, ffi.Pointer certArray, int persistence, ) { - return __objc_msgSend_919( + return __objc_msgSend_931( obj, sel, identity, @@ -26215,7 +26586,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_919Ptr = _lookup< + late final __objc_msgSend_931Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -26223,7 +26594,7 @@ class SentryCocoa { ffi.Pointer<__SecIdentity>, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_919 = __objc_msgSend_919Ptr.asFunction< + late final __objc_msgSend_931 = __objc_msgSend_931Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26232,71 +26603,71 @@ class SentryCocoa { int)>(); late final _sel_identity1 = _registerName1("identity"); - ffi.Pointer<__SecIdentity> _objc_msgSend_920( + ffi.Pointer<__SecIdentity> _objc_msgSend_932( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_920( + return __objc_msgSend_932( obj, sel, ); } - late final __objc_msgSend_920Ptr = _lookup< + late final __objc_msgSend_932Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<__SecIdentity> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_920 = __objc_msgSend_920Ptr.asFunction< + late final __objc_msgSend_932 = __objc_msgSend_932Ptr.asFunction< ffi.Pointer<__SecIdentity> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_certificates1 = _registerName1("certificates"); late final _sel_initWithTrust_1 = _registerName1("initWithTrust:"); - instancetype _objc_msgSend_921( + instancetype _objc_msgSend_933( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<__SecTrust> trust, ) { - return __objc_msgSend_921( + return __objc_msgSend_933( obj, sel, trust, ); } - late final __objc_msgSend_921Ptr = _lookup< + late final __objc_msgSend_933Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<__SecTrust>)>>('objc_msgSend'); - late final __objc_msgSend_921 = __objc_msgSend_921Ptr.asFunction< + late final __objc_msgSend_933 = __objc_msgSend_933Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<__SecTrust>)>(); late final _sel_credentialForTrust_1 = _registerName1("credentialForTrust:"); - ffi.Pointer _objc_msgSend_922( + ffi.Pointer _objc_msgSend_934( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<__SecTrust> trust, ) { - return __objc_msgSend_922( + return __objc_msgSend_934( obj, sel, trust, ); } - late final __objc_msgSend_922Ptr = _lookup< + late final __objc_msgSend_934Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<__SecTrust>)>>('objc_msgSend'); - late final __objc_msgSend_922 = __objc_msgSend_922Ptr.asFunction< + late final __objc_msgSend_934 = __objc_msgSend_934Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<__SecTrust>)>(); late final _class_NSURLProtectionSpace1 = _getClass1("NSURLProtectionSpace"); late final _sel_initWithHost_port_protocol_realm_authenticationMethod_1 = _registerName1("initWithHost:port:protocol:realm:authenticationMethod:"); - instancetype _objc_msgSend_923( + instancetype _objc_msgSend_935( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer host, @@ -26305,7 +26676,7 @@ class SentryCocoa { ffi.Pointer realm, ffi.Pointer authenticationMethod, ) { - return __objc_msgSend_923( + return __objc_msgSend_935( obj, sel, host, @@ -26316,7 +26687,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_923Ptr = _lookup< + late final __objc_msgSend_935Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -26326,7 +26697,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_923 = __objc_msgSend_923Ptr.asFunction< + late final __objc_msgSend_935 = __objc_msgSend_935Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -26348,21 +26719,21 @@ class SentryCocoa { _registerName1("authenticationMethod"); late final _sel_distinguishedNames1 = _registerName1("distinguishedNames"); late final _sel_serverTrust1 = _registerName1("serverTrust"); - ffi.Pointer<__SecTrust> _objc_msgSend_924( + ffi.Pointer<__SecTrust> _objc_msgSend_936( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_924( + return __objc_msgSend_936( obj, sel, ); } - late final __objc_msgSend_924Ptr = _lookup< + late final __objc_msgSend_936Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<__SecTrust> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_924 = __objc_msgSend_924Ptr.asFunction< + late final __objc_msgSend_936 = __objc_msgSend_936Ptr.asFunction< ffi.Pointer<__SecTrust> Function( ffi.Pointer, ffi.Pointer)>(); @@ -26370,56 +26741,56 @@ class SentryCocoa { _getClass1("NSURLCredentialStorage"); late final _sel_sharedCredentialStorage1 = _registerName1("sharedCredentialStorage"); - ffi.Pointer _objc_msgSend_925( + ffi.Pointer _objc_msgSend_937( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_925( + return __objc_msgSend_937( obj, sel, ); } - late final __objc_msgSend_925Ptr = _lookup< + late final __objc_msgSend_937Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_925 = __objc_msgSend_925Ptr.asFunction< + late final __objc_msgSend_937 = __objc_msgSend_937Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_credentialsForProtectionSpace_1 = _registerName1("credentialsForProtectionSpace:"); - ffi.Pointer _objc_msgSend_926( + ffi.Pointer _objc_msgSend_938( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer space, ) { - return __objc_msgSend_926( + return __objc_msgSend_938( obj, sel, space, ); } - late final __objc_msgSend_926Ptr = _lookup< + late final __objc_msgSend_938Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_926 = __objc_msgSend_926Ptr.asFunction< + late final __objc_msgSend_938 = __objc_msgSend_938Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_allCredentials1 = _registerName1("allCredentials"); late final _sel_setCredential_forProtectionSpace_1 = _registerName1("setCredential:forProtectionSpace:"); - void _objc_msgSend_927( + void _objc_msgSend_939( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, ffi.Pointer space, ) { - return __objc_msgSend_927( + return __objc_msgSend_939( obj, sel, credential, @@ -26427,14 +26798,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_927Ptr = _lookup< + late final __objc_msgSend_939Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_927 = __objc_msgSend_927Ptr.asFunction< + late final __objc_msgSend_939 = __objc_msgSend_939Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -26442,14 +26813,14 @@ class SentryCocoa { _registerName1("removeCredential:forProtectionSpace:"); late final _sel_removeCredential_forProtectionSpace_options_1 = _registerName1("removeCredential:forProtectionSpace:options:"); - void _objc_msgSend_928( + void _objc_msgSend_940( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, ffi.Pointer space, ffi.Pointer options, ) { - return __objc_msgSend_928( + return __objc_msgSend_940( obj, sel, credential, @@ -26458,7 +26829,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_928Ptr = _lookup< + late final __objc_msgSend_940Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -26466,7 +26837,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_928 = __objc_msgSend_928Ptr.asFunction< + late final __objc_msgSend_940 = __objc_msgSend_940Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -26476,23 +26847,23 @@ class SentryCocoa { late final _sel_defaultCredentialForProtectionSpace_1 = _registerName1("defaultCredentialForProtectionSpace:"); - ffi.Pointer _objc_msgSend_929( + ffi.Pointer _objc_msgSend_941( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer space, ) { - return __objc_msgSend_929( + return __objc_msgSend_941( obj, sel, space, ); } - late final __objc_msgSend_929Ptr = _lookup< + late final __objc_msgSend_941Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_929 = __objc_msgSend_929Ptr.asFunction< + late final __objc_msgSend_941 = __objc_msgSend_941Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -26501,14 +26872,14 @@ class SentryCocoa { late final _sel_getCredentialsForProtectionSpace_task_completionHandler_1 = _registerName1( "getCredentialsForProtectionSpace:task:completionHandler:"); - void _objc_msgSend_930( + void _objc_msgSend_942( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer protectionSpace, ffi.Pointer task, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_930( + return __objc_msgSend_942( obj, sel, protectionSpace, @@ -26517,7 +26888,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_930Ptr = _lookup< + late final __objc_msgSend_942Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -26525,7 +26896,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_930 = __objc_msgSend_930Ptr.asFunction< + late final __objc_msgSend_942 = __objc_msgSend_942Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -26535,14 +26906,14 @@ class SentryCocoa { late final _sel_setCredential_forProtectionSpace_task_1 = _registerName1("setCredential:forProtectionSpace:task:"); - void _objc_msgSend_931( + void _objc_msgSend_943( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, ffi.Pointer protectionSpace, ffi.Pointer task, ) { - return __objc_msgSend_931( + return __objc_msgSend_943( obj, sel, credential, @@ -26551,7 +26922,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_931Ptr = _lookup< + late final __objc_msgSend_943Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -26559,7 +26930,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_931 = __objc_msgSend_931Ptr.asFunction< + late final __objc_msgSend_943 = __objc_msgSend_943Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -26569,7 +26940,7 @@ class SentryCocoa { late final _sel_removeCredential_forProtectionSpace_options_task_1 = _registerName1("removeCredential:forProtectionSpace:options:task:"); - void _objc_msgSend_932( + void _objc_msgSend_944( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer credential, @@ -26577,7 +26948,7 @@ class SentryCocoa { ffi.Pointer options, ffi.Pointer task, ) { - return __objc_msgSend_932( + return __objc_msgSend_944( obj, sel, credential, @@ -26587,7 +26958,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_932Ptr = _lookup< + late final __objc_msgSend_944Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -26596,7 +26967,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_932 = __objc_msgSend_932Ptr.asFunction< + late final __objc_msgSend_944 = __objc_msgSend_944Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -26608,14 +26979,14 @@ class SentryCocoa { late final _sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1 = _registerName1( "getDefaultCredentialForProtectionSpace:task:completionHandler:"); - void _objc_msgSend_933( + void _objc_msgSend_945( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer space, ffi.Pointer task, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_933( + return __objc_msgSend_945( obj, sel, space, @@ -26624,7 +26995,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_933Ptr = _lookup< + late final __objc_msgSend_945Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -26632,7 +27003,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_933 = __objc_msgSend_933Ptr.asFunction< + late final __objc_msgSend_945 = __objc_msgSend_945Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -26645,14 +27016,14 @@ class SentryCocoa { late final _class_NSURLProtocol1 = _getClass1("NSURLProtocol"); late final _sel_initWithRequest_cachedResponse_client_1 = _registerName1("initWithRequest:cachedResponse:client:"); - instancetype _objc_msgSend_934( + instancetype _objc_msgSend_946( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer cachedResponse, ffi.Pointer client, ) { - return __objc_msgSend_934( + return __objc_msgSend_946( obj, sel, request, @@ -26661,7 +27032,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_934Ptr = _lookup< + late final __objc_msgSend_946Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -26669,7 +27040,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_934 = __objc_msgSend_934Ptr.asFunction< + late final __objc_msgSend_946 = __objc_msgSend_946Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -26680,56 +27051,56 @@ class SentryCocoa { late final _sel_client1 = _registerName1("client"); late final _sel_request1 = _registerName1("request"); late final _sel_cachedResponse1 = _registerName1("cachedResponse"); - ffi.Pointer _objc_msgSend_935( + ffi.Pointer _objc_msgSend_947( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_935( + return __objc_msgSend_947( obj, sel, ); } - late final __objc_msgSend_935Ptr = _lookup< + late final __objc_msgSend_947Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_935 = __objc_msgSend_935Ptr.asFunction< + late final __objc_msgSend_947 = __objc_msgSend_947Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_canInitWithRequest_1 = _registerName1("canInitWithRequest:"); late final _sel_canonicalRequestForRequest_1 = _registerName1("canonicalRequestForRequest:"); - ffi.Pointer _objc_msgSend_936( + ffi.Pointer _objc_msgSend_948( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_936( + return __objc_msgSend_948( obj, sel, request, ); } - late final __objc_msgSend_936Ptr = _lookup< + late final __objc_msgSend_948Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_936 = __objc_msgSend_936Ptr.asFunction< + late final __objc_msgSend_948 = __objc_msgSend_948Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_requestIsCacheEquivalent_toRequest_1 = _registerName1("requestIsCacheEquivalent:toRequest:"); - bool _objc_msgSend_937( + bool _objc_msgSend_949( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer a, ffi.Pointer b, ) { - return __objc_msgSend_937( + return __objc_msgSend_949( obj, sel, a, @@ -26737,14 +27108,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_937Ptr = _lookup< + late final __objc_msgSend_949Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_937 = __objc_msgSend_937Ptr.asFunction< + late final __objc_msgSend_949 = __objc_msgSend_949Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -26752,13 +27123,13 @@ class SentryCocoa { late final _sel_stopLoading1 = _registerName1("stopLoading"); late final _sel_propertyForKey_inRequest_1 = _registerName1("propertyForKey:inRequest:"); - ffi.Pointer _objc_msgSend_938( + ffi.Pointer _objc_msgSend_950( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer request, ) { - return __objc_msgSend_938( + return __objc_msgSend_950( obj, sel, key, @@ -26766,14 +27137,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_938Ptr = _lookup< + late final __objc_msgSend_950Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_938 = __objc_msgSend_938Ptr.asFunction< + late final __objc_msgSend_950 = __objc_msgSend_950Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -26783,46 +27154,46 @@ class SentryCocoa { late final _class_NSMutableURLRequest1 = _getClass1("NSMutableURLRequest"); late final _sel_setURL_1 = _registerName1("setURL:"); late final _sel_setCachePolicy_1 = _registerName1("setCachePolicy:"); - void _objc_msgSend_939( + void _objc_msgSend_951( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_939( + return __objc_msgSend_951( obj, sel, value, ); } - late final __objc_msgSend_939Ptr = _lookup< + late final __objc_msgSend_951Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_939 = __objc_msgSend_939Ptr.asFunction< + late final __objc_msgSend_951 = __objc_msgSend_951Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setTimeoutInterval_1 = _registerName1("setTimeoutInterval:"); late final _sel_setMainDocumentURL_1 = _registerName1("setMainDocumentURL:"); late final _sel_setNetworkServiceType_1 = _registerName1("setNetworkServiceType:"); - void _objc_msgSend_940( + void _objc_msgSend_952( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_940( + return __objc_msgSend_952( obj, sel, value, ); } - late final __objc_msgSend_940Ptr = _lookup< + late final __objc_msgSend_952Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_940 = __objc_msgSend_940Ptr.asFunction< + late final __objc_msgSend_952 = __objc_msgSend_952Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setAllowsCellularAccess_1 = @@ -26831,26 +27202,28 @@ class SentryCocoa { _registerName1("setAllowsExpensiveNetworkAccess:"); late final _sel_setAllowsConstrainedNetworkAccess_1 = _registerName1("setAllowsConstrainedNetworkAccess:"); + late final _sel_setAllowsUltraConstrainedNetworkAccess_1 = + _registerName1("setAllowsUltraConstrainedNetworkAccess:"); late final _sel_setAssumesHTTP3Capable_1 = _registerName1("setAssumesHTTP3Capable:"); late final _sel_setAttribution_1 = _registerName1("setAttribution:"); - void _objc_msgSend_941( + void _objc_msgSend_953( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_941( + return __objc_msgSend_953( obj, sel, value, ); } - late final __objc_msgSend_941Ptr = _lookup< + late final __objc_msgSend_953Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_941 = __objc_msgSend_941Ptr.asFunction< + late final __objc_msgSend_953 = __objc_msgSend_953Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setRequiresDNSSECValidation_1 = @@ -26867,44 +27240,44 @@ class SentryCocoa { late final _sel_addValue_forHTTPHeaderField_1 = _registerName1("addValue:forHTTPHeaderField:"); late final _sel_setHTTPBody_1 = _registerName1("setHTTPBody:"); - void _objc_msgSend_942( + void _objc_msgSend_954( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_942( + return __objc_msgSend_954( obj, sel, value, ); } - late final __objc_msgSend_942Ptr = _lookup< + late final __objc_msgSend_954Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_942 = __objc_msgSend_942Ptr.asFunction< + late final __objc_msgSend_954 = __objc_msgSend_954Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setHTTPBodyStream_1 = _registerName1("setHTTPBodyStream:"); - void _objc_msgSend_943( + void _objc_msgSend_955( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_943( + return __objc_msgSend_955( obj, sel, value, ); } - late final __objc_msgSend_943Ptr = _lookup< + late final __objc_msgSend_955Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_943 = __objc_msgSend_943Ptr.asFunction< + late final __objc_msgSend_955 = __objc_msgSend_955Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -26914,14 +27287,14 @@ class SentryCocoa { _registerName1("setHTTPShouldUsePipelining:"); late final _sel_setProperty_forKey_inRequest_1 = _registerName1("setProperty:forKey:inRequest:"); - void _objc_msgSend_944( + void _objc_msgSend_956( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ffi.Pointer key, ffi.Pointer request, ) { - return __objc_msgSend_944( + return __objc_msgSend_956( obj, sel, value, @@ -26930,7 +27303,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_944Ptr = _lookup< + late final __objc_msgSend_956Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -26938,7 +27311,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_944 = __objc_msgSend_944Ptr.asFunction< + late final __objc_msgSend_956 = __objc_msgSend_956Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -26948,13 +27321,13 @@ class SentryCocoa { late final _sel_removePropertyForKey_inRequest_1 = _registerName1("removePropertyForKey:inRequest:"); - void _objc_msgSend_945( + void _objc_msgSend_957( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ffi.Pointer request, ) { - return __objc_msgSend_945( + return __objc_msgSend_957( obj, sel, key, @@ -26962,50 +27335,50 @@ class SentryCocoa { ); } - late final __objc_msgSend_945Ptr = _lookup< + late final __objc_msgSend_957Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_945 = __objc_msgSend_945Ptr.asFunction< + late final __objc_msgSend_957 = __objc_msgSend_957Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_registerClass_1 = _registerName1("registerClass:"); late final _sel_unregisterClass_1 = _registerName1("unregisterClass:"); late final _sel_canInitWithTask_1 = _registerName1("canInitWithTask:"); - bool _objc_msgSend_946( + bool _objc_msgSend_958( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer task, ) { - return __objc_msgSend_946( + return __objc_msgSend_958( obj, sel, task, ); } - late final __objc_msgSend_946Ptr = _lookup< + late final __objc_msgSend_958Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_946 = __objc_msgSend_946Ptr.asFunction< + late final __objc_msgSend_958 = __objc_msgSend_958Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_initWithTask_cachedResponse_client_1 = _registerName1("initWithTask:cachedResponse:client:"); - instancetype _objc_msgSend_947( + instancetype _objc_msgSend_959( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer task, ffi.Pointer cachedResponse, ffi.Pointer client, ) { - return __objc_msgSend_947( + return __objc_msgSend_959( obj, sel, task, @@ -27014,7 +27387,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_947Ptr = _lookup< + late final __objc_msgSend_959Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -27022,7 +27395,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_947 = __objc_msgSend_947Ptr.asFunction< + late final __objc_msgSend_959 = __objc_msgSend_959Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -27031,43 +27404,43 @@ class SentryCocoa { ffi.Pointer)>(); late final _sel_task1 = _registerName1("task"); - ffi.Pointer _objc_msgSend_948( + ffi.Pointer _objc_msgSend_960( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_948( + return __objc_msgSend_960( obj, sel, ); } - late final __objc_msgSend_948Ptr = _lookup< + late final __objc_msgSend_960Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_948 = __objc_msgSend_948Ptr.asFunction< + late final __objc_msgSend_960 = __objc_msgSend_960Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _class_NSXMLParser1 = _getClass1("NSXMLParser"); late final _sel_initWithStream_1 = _registerName1("initWithStream:"); - instancetype _objc_msgSend_949( + instancetype _objc_msgSend_961( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer stream, ) { - return __objc_msgSend_949( + return __objc_msgSend_961( obj, sel, stream, ); } - late final __objc_msgSend_949Ptr = _lookup< + late final __objc_msgSend_961Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_949 = __objc_msgSend_949Ptr.asFunction< + late final __objc_msgSend_961 = __objc_msgSend_961Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27081,65 +27454,65 @@ class SentryCocoa { _registerName1("setShouldReportNamespacePrefixes:"); late final _sel_externalEntityResolvingPolicy1 = _registerName1("externalEntityResolvingPolicy"); - int _objc_msgSend_950( + int _objc_msgSend_962( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_950( + return __objc_msgSend_962( obj, sel, ); } - late final __objc_msgSend_950Ptr = _lookup< + late final __objc_msgSend_962Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_950 = __objc_msgSend_950Ptr.asFunction< + late final __objc_msgSend_962 = __objc_msgSend_962Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setExternalEntityResolvingPolicy_1 = _registerName1("setExternalEntityResolvingPolicy:"); - void _objc_msgSend_951( + void _objc_msgSend_963( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_951( + return __objc_msgSend_963( obj, sel, value, ); } - late final __objc_msgSend_951Ptr = _lookup< + late final __objc_msgSend_963Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_951 = __objc_msgSend_951Ptr.asFunction< + late final __objc_msgSend_963 = __objc_msgSend_963Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_allowedExternalEntityURLs1 = _registerName1("allowedExternalEntityURLs"); late final _sel_setAllowedExternalEntityURLs_1 = _registerName1("setAllowedExternalEntityURLs:"); - void _objc_msgSend_952( + void _objc_msgSend_964( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_952( + return __objc_msgSend_964( obj, sel, value, ); } - late final __objc_msgSend_952Ptr = _lookup< + late final __objc_msgSend_964Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_952 = __objc_msgSend_952Ptr.asFunction< + late final __objc_msgSend_964 = __objc_msgSend_964Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27157,14 +27530,14 @@ class SentryCocoa { late final _class_NSFileWrapper1 = _getClass1("NSFileWrapper"); late final _sel_initWithURL_options_error_1 = _registerName1("initWithURL:options:error:"); - instancetype _objc_msgSend_953( + instancetype _objc_msgSend_965( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int options, ffi.Pointer> outError, ) { - return __objc_msgSend_953( + return __objc_msgSend_965( obj, sel, url, @@ -27173,7 +27546,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_953Ptr = _lookup< + late final __objc_msgSend_965Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -27181,7 +27554,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_953 = __objc_msgSend_953Ptr.asFunction< + late final __objc_msgSend_965 = __objc_msgSend_965Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -27211,14 +27584,14 @@ class SentryCocoa { _registerName1("matchesContentsOfURL:"); late final _sel_readFromURL_options_error_1 = _registerName1("readFromURL:options:error:"); - bool _objc_msgSend_954( + bool _objc_msgSend_966( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int options, ffi.Pointer> outError, ) { - return __objc_msgSend_954( + return __objc_msgSend_966( obj, sel, url, @@ -27227,7 +27600,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_954Ptr = _lookup< + late final __objc_msgSend_966Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -27235,7 +27608,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_954 = __objc_msgSend_954Ptr.asFunction< + late final __objc_msgSend_966 = __objc_msgSend_966Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -27245,7 +27618,7 @@ class SentryCocoa { late final _sel_writeToURL_options_originalContentsURL_error_1 = _registerName1("writeToURL:options:originalContentsURL:error:"); - bool _objc_msgSend_955( + bool _objc_msgSend_967( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -27253,7 +27626,7 @@ class SentryCocoa { ffi.Pointer originalContentsURL, ffi.Pointer> outError, ) { - return __objc_msgSend_955( + return __objc_msgSend_967( obj, sel, url, @@ -27263,7 +27636,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_955Ptr = _lookup< + late final __objc_msgSend_967Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, @@ -27272,7 +27645,7 @@ class SentryCocoa { ffi.Int32, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_955 = __objc_msgSend_955Ptr.asFunction< + late final __objc_msgSend_967 = __objc_msgSend_967Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -27284,35 +27657,35 @@ class SentryCocoa { late final _sel_serializedRepresentation1 = _registerName1("serializedRepresentation"); late final _sel_addFileWrapper_1 = _registerName1("addFileWrapper:"); - ffi.Pointer _objc_msgSend_956( + ffi.Pointer _objc_msgSend_968( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, ) { - return __objc_msgSend_956( + return __objc_msgSend_968( obj, sel, child, ); } - late final __objc_msgSend_956Ptr = _lookup< + late final __objc_msgSend_968Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_956 = __objc_msgSend_956Ptr.asFunction< + late final __objc_msgSend_968 = __objc_msgSend_968Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_addRegularFileWithContents_preferredFilename_1 = _registerName1("addRegularFileWithContents:preferredFilename:"); - ffi.Pointer _objc_msgSend_957( + ffi.Pointer _objc_msgSend_969( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ffi.Pointer fileName, ) { - return __objc_msgSend_957( + return __objc_msgSend_969( obj, sel, data, @@ -27320,14 +27693,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_957Ptr = _lookup< + late final __objc_msgSend_969Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_957 = __objc_msgSend_957Ptr.asFunction< + late final __objc_msgSend_969 = __objc_msgSend_969Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27335,23 +27708,23 @@ class SentryCocoa { ffi.Pointer)>(); late final _sel_removeFileWrapper_1 = _registerName1("removeFileWrapper:"); - void _objc_msgSend_958( + void _objc_msgSend_970( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, ) { - return __objc_msgSend_958( + return __objc_msgSend_970( obj, sel, child, ); } - late final __objc_msgSend_958Ptr = _lookup< + late final __objc_msgSend_970Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_958 = __objc_msgSend_958Ptr.asFunction< + late final __objc_msgSend_970 = __objc_msgSend_970Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27367,14 +27740,14 @@ class SentryCocoa { late final _sel_updateFromPath_1 = _registerName1("updateFromPath:"); late final _sel_writeToFile_atomically_updateFilenames_1 = _registerName1("writeToFile:atomically:updateFilenames:"); - bool _objc_msgSend_959( + bool _objc_msgSend_971( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, bool atomicFlag, bool updateFilenamesFlag, ) { - return __objc_msgSend_959( + return __objc_msgSend_971( obj, sel, path, @@ -27383,11 +27756,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_959Ptr = _lookup< + late final __objc_msgSend_971Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_959 = __objc_msgSend_959Ptr.asFunction< + late final __objc_msgSend_971 = __objc_msgSend_971Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool, bool)>(); @@ -27398,21 +27771,21 @@ class SentryCocoa { _registerName1("symbolicLinkDestination"); late final _class_NSURLSession1 = _getClass1("NSURLSession"); late final _sel_sharedSession1 = _registerName1("sharedSession"); - ffi.Pointer _objc_msgSend_960( + ffi.Pointer _objc_msgSend_972( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_960( + return __objc_msgSend_972( obj, sel, ); } - late final __objc_msgSend_960Ptr = _lookup< + late final __objc_msgSend_972Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_960 = __objc_msgSend_960Ptr.asFunction< + late final __objc_msgSend_972 = __objc_msgSend_972Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -27420,21 +27793,21 @@ class SentryCocoa { _getClass1("NSURLSessionConfiguration"); late final _sel_defaultSessionConfiguration1 = _registerName1("defaultSessionConfiguration"); - ffi.Pointer _objc_msgSend_961( + ffi.Pointer _objc_msgSend_973( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_961( + return __objc_msgSend_973( obj, sel, ); } - late final __objc_msgSend_961Ptr = _lookup< + late final __objc_msgSend_973Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_961 = __objc_msgSend_961Ptr.asFunction< + late final __objc_msgSend_973 = __objc_msgSend_973Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -27442,23 +27815,23 @@ class SentryCocoa { _registerName1("ephemeralSessionConfiguration"); late final _sel_backgroundSessionConfigurationWithIdentifier_1 = _registerName1("backgroundSessionConfigurationWithIdentifier:"); - ffi.Pointer _objc_msgSend_962( + ffi.Pointer _objc_msgSend_974( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer identifier, ) { - return __objc_msgSend_962( + return __objc_msgSend_974( obj, sel, identifier, ); } - late final __objc_msgSend_962Ptr = _lookup< + late final __objc_msgSend_974Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_962 = __objc_msgSend_962Ptr.asFunction< + late final __objc_msgSend_974 = __objc_msgSend_974Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27494,42 +27867,42 @@ class SentryCocoa { _registerName1("setConnectionProxyDictionary:"); late final _sel_TLSMinimumSupportedProtocol1 = _registerName1("TLSMinimumSupportedProtocol"); - int _objc_msgSend_963( + int _objc_msgSend_975( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_963( + return __objc_msgSend_975( obj, sel, ); } - late final __objc_msgSend_963Ptr = _lookup< + late final __objc_msgSend_975Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_963 = __objc_msgSend_963Ptr.asFunction< + late final __objc_msgSend_975 = __objc_msgSend_975Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTLSMinimumSupportedProtocol_1 = _registerName1("setTLSMinimumSupportedProtocol:"); - void _objc_msgSend_964( + void _objc_msgSend_976( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_964( + return __objc_msgSend_976( obj, sel, value, ); } - late final __objc_msgSend_964Ptr = _lookup< + late final __objc_msgSend_976Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_964 = __objc_msgSend_964Ptr.asFunction< + late final __objc_msgSend_976 = __objc_msgSend_976Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_TLSMaximumSupportedProtocol1 = @@ -27538,42 +27911,42 @@ class SentryCocoa { _registerName1("setTLSMaximumSupportedProtocol:"); late final _sel_TLSMinimumSupportedProtocolVersion1 = _registerName1("TLSMinimumSupportedProtocolVersion"); - int _objc_msgSend_965( + int _objc_msgSend_977( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_965( + return __objc_msgSend_977( obj, sel, ); } - late final __objc_msgSend_965Ptr = _lookup< + late final __objc_msgSend_977Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_965 = __objc_msgSend_965Ptr.asFunction< + late final __objc_msgSend_977 = __objc_msgSend_977Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setTLSMinimumSupportedProtocolVersion_1 = _registerName1("setTLSMinimumSupportedProtocolVersion:"); - void _objc_msgSend_966( + void _objc_msgSend_978( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_966( + return __objc_msgSend_978( obj, sel, value, ); } - late final __objc_msgSend_966Ptr = _lookup< + late final __objc_msgSend_978Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_966 = __objc_msgSend_966Ptr.asFunction< + late final __objc_msgSend_978 = __objc_msgSend_978Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_TLSMaximumSupportedProtocolVersion1 = @@ -27599,23 +27972,23 @@ class SentryCocoa { late final _sel_HTTPCookieStorage1 = _registerName1("HTTPCookieStorage"); late final _sel_setHTTPCookieStorage_1 = _registerName1("setHTTPCookieStorage:"); - void _objc_msgSend_967( + void _objc_msgSend_979( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_967( + return __objc_msgSend_979( obj, sel, value, ); } - late final __objc_msgSend_967Ptr = _lookup< + late final __objc_msgSend_979Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_967 = __objc_msgSend_967Ptr.asFunction< + late final __objc_msgSend_979 = __objc_msgSend_979Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27623,23 +27996,23 @@ class SentryCocoa { _registerName1("URLCredentialStorage"); late final _sel_setURLCredentialStorage_1 = _registerName1("setURLCredentialStorage:"); - void _objc_msgSend_968( + void _objc_msgSend_980( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_968( + return __objc_msgSend_980( obj, sel, value, ); } - late final __objc_msgSend_968Ptr = _lookup< + late final __objc_msgSend_980Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_968 = __objc_msgSend_968Ptr.asFunction< + late final __objc_msgSend_980 = __objc_msgSend_980Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27653,82 +28026,85 @@ class SentryCocoa { late final _sel_setProtocolClasses_1 = _registerName1("setProtocolClasses:"); late final _sel_multipathServiceType1 = _registerName1("multipathServiceType"); - int _objc_msgSend_969( + int _objc_msgSend_981( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_969( + return __objc_msgSend_981( obj, sel, ); } - late final __objc_msgSend_969Ptr = _lookup< + late final __objc_msgSend_981Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_969 = __objc_msgSend_969Ptr.asFunction< + late final __objc_msgSend_981 = __objc_msgSend_981Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setMultipathServiceType_1 = _registerName1("setMultipathServiceType:"); - void _objc_msgSend_970( + void _objc_msgSend_982( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_970( + return __objc_msgSend_982( obj, sel, value, ); } - late final __objc_msgSend_970Ptr = _lookup< + late final __objc_msgSend_982Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_970 = __objc_msgSend_970Ptr.asFunction< + late final __objc_msgSend_982 = __objc_msgSend_982Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_usesClassicLoadingMode1 = _registerName1("usesClassicLoadingMode"); late final _sel_setUsesClassicLoadingMode_1 = _registerName1("setUsesClassicLoadingMode:"); + late final _sel_enablesEarlyData1 = _registerName1("enablesEarlyData"); + late final _sel_setEnablesEarlyData_1 = + _registerName1("setEnablesEarlyData:"); late final _sel_backgroundSessionConfiguration_1 = _registerName1("backgroundSessionConfiguration:"); late final _sel_sessionWithConfiguration_1 = _registerName1("sessionWithConfiguration:"); - ffi.Pointer _objc_msgSend_971( + ffi.Pointer _objc_msgSend_983( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer configuration, ) { - return __objc_msgSend_971( + return __objc_msgSend_983( obj, sel, configuration, ); } - late final __objc_msgSend_971Ptr = _lookup< + late final __objc_msgSend_983Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_971 = __objc_msgSend_971Ptr.asFunction< + late final __objc_msgSend_983 = __objc_msgSend_983Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_sessionWithConfiguration_delegate_delegateQueue_1 = _registerName1("sessionWithConfiguration:delegate:delegateQueue:"); - ffi.Pointer _objc_msgSend_972( + ffi.Pointer _objc_msgSend_984( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer configuration, ffi.Pointer delegate, ffi.Pointer queue, ) { - return __objc_msgSend_972( + return __objc_msgSend_984( obj, sel, configuration, @@ -27737,7 +28113,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_972Ptr = _lookup< + late final __objc_msgSend_984Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -27745,7 +28121,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_972 = __objc_msgSend_972Ptr.asFunction< + late final __objc_msgSend_984 = __objc_msgSend_984Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27767,88 +28143,88 @@ class SentryCocoa { _registerName1("flushWithCompletionHandler:"); late final _sel_getTasksWithCompletionHandler_1 = _registerName1("getTasksWithCompletionHandler:"); - void _objc_msgSend_973( + void _objc_msgSend_985( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_973( + return __objc_msgSend_985( obj, sel, completionHandler, ); } - late final __objc_msgSend_973Ptr = _lookup< + late final __objc_msgSend_985Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_973 = __objc_msgSend_973Ptr.asFunction< + late final __objc_msgSend_985 = __objc_msgSend_985Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_getAllTasksWithCompletionHandler_1 = _registerName1("getAllTasksWithCompletionHandler:"); - void _objc_msgSend_974( + void _objc_msgSend_986( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_974( + return __objc_msgSend_986( obj, sel, completionHandler, ); } - late final __objc_msgSend_974Ptr = _lookup< + late final __objc_msgSend_986Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_974 = __objc_msgSend_974Ptr.asFunction< + late final __objc_msgSend_986 = __objc_msgSend_986Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_dataTaskWithRequest_1 = _registerName1("dataTaskWithRequest:"); - ffi.Pointer _objc_msgSend_975( + ffi.Pointer _objc_msgSend_987( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_975( + return __objc_msgSend_987( obj, sel, request, ); } - late final __objc_msgSend_975Ptr = _lookup< + late final __objc_msgSend_987Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_975 = __objc_msgSend_975Ptr.asFunction< + late final __objc_msgSend_987 = __objc_msgSend_987Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataTaskWithURL_1 = _registerName1("dataTaskWithURL:"); - ffi.Pointer _objc_msgSend_976( + ffi.Pointer _objc_msgSend_988( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_976( + return __objc_msgSend_988( obj, sel, url, ); } - late final __objc_msgSend_976Ptr = _lookup< + late final __objc_msgSend_988Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_976 = __objc_msgSend_976Ptr.asFunction< + late final __objc_msgSend_988 = __objc_msgSend_988Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27856,35 +28232,35 @@ class SentryCocoa { _getClass1("NSURLSessionUploadTask"); late final _sel_cancelByProducingResumeData_1 = _registerName1("cancelByProducingResumeData:"); - void _objc_msgSend_977( + void _objc_msgSend_989( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_977( + return __objc_msgSend_989( obj, sel, completionHandler, ); } - late final __objc_msgSend_977Ptr = _lookup< + late final __objc_msgSend_989Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_977 = __objc_msgSend_977Ptr.asFunction< + late final __objc_msgSend_989 = __objc_msgSend_989Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_uploadTaskWithRequest_fromFile_1 = _registerName1("uploadTaskWithRequest:fromFile:"); - ffi.Pointer _objc_msgSend_978( + ffi.Pointer _objc_msgSend_990( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer fileURL, ) { - return __objc_msgSend_978( + return __objc_msgSend_990( obj, sel, request, @@ -27892,14 +28268,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_978Ptr = _lookup< + late final __objc_msgSend_990Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_978 = __objc_msgSend_978Ptr.asFunction< + late final __objc_msgSend_990 = __objc_msgSend_990Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27908,13 +28284,13 @@ class SentryCocoa { late final _sel_uploadTaskWithRequest_fromData_1 = _registerName1("uploadTaskWithRequest:fromData:"); - ffi.Pointer _objc_msgSend_979( + ffi.Pointer _objc_msgSend_991( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer bodyData, ) { - return __objc_msgSend_979( + return __objc_msgSend_991( obj, sel, request, @@ -27922,14 +28298,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_979Ptr = _lookup< + late final __objc_msgSend_991Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_979 = __objc_msgSend_979Ptr.asFunction< + late final __objc_msgSend_991 = __objc_msgSend_991Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -27938,45 +28314,45 @@ class SentryCocoa { late final _sel_uploadTaskWithResumeData_1 = _registerName1("uploadTaskWithResumeData:"); - ffi.Pointer _objc_msgSend_980( + ffi.Pointer _objc_msgSend_992( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer resumeData, ) { - return __objc_msgSend_980( + return __objc_msgSend_992( obj, sel, resumeData, ); } - late final __objc_msgSend_980Ptr = _lookup< + late final __objc_msgSend_992Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_980 = __objc_msgSend_980Ptr.asFunction< + late final __objc_msgSend_992 = __objc_msgSend_992Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_uploadTaskWithStreamedRequest_1 = _registerName1("uploadTaskWithStreamedRequest:"); - ffi.Pointer _objc_msgSend_981( + ffi.Pointer _objc_msgSend_993( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_981( + return __objc_msgSend_993( obj, sel, request, ); } - late final __objc_msgSend_981Ptr = _lookup< + late final __objc_msgSend_993Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_981 = __objc_msgSend_981Ptr.asFunction< + late final __objc_msgSend_993 = __objc_msgSend_993Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -27984,67 +28360,67 @@ class SentryCocoa { _getClass1("NSURLSessionDownloadTask"); late final _sel_downloadTaskWithRequest_1 = _registerName1("downloadTaskWithRequest:"); - ffi.Pointer _objc_msgSend_982( + ffi.Pointer _objc_msgSend_994( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_982( + return __objc_msgSend_994( obj, sel, request, ); } - late final __objc_msgSend_982Ptr = _lookup< + late final __objc_msgSend_994Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_982 = __objc_msgSend_982Ptr.asFunction< + late final __objc_msgSend_994 = __objc_msgSend_994Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_downloadTaskWithURL_1 = _registerName1("downloadTaskWithURL:"); - ffi.Pointer _objc_msgSend_983( + ffi.Pointer _objc_msgSend_995( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_983( + return __objc_msgSend_995( obj, sel, url, ); } - late final __objc_msgSend_983Ptr = _lookup< + late final __objc_msgSend_995Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_983 = __objc_msgSend_983Ptr.asFunction< + late final __objc_msgSend_995 = __objc_msgSend_995Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_downloadTaskWithResumeData_1 = _registerName1("downloadTaskWithResumeData:"); - ffi.Pointer _objc_msgSend_984( + ffi.Pointer _objc_msgSend_996( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer resumeData, ) { - return __objc_msgSend_984( + return __objc_msgSend_996( obj, sel, resumeData, ); } - late final __objc_msgSend_984Ptr = _lookup< + late final __objc_msgSend_996Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_984 = __objc_msgSend_984Ptr.asFunction< + late final __objc_msgSend_996 = __objc_msgSend_996Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -28053,7 +28429,7 @@ class SentryCocoa { late final _sel_readDataOfMinLength_maxLength_timeout_completionHandler_1 = _registerName1( "readDataOfMinLength:maxLength:timeout:completionHandler:"); - void _objc_msgSend_985( + void _objc_msgSend_997( ffi.Pointer obj, ffi.Pointer sel, int minBytes, @@ -28061,7 +28437,7 @@ class SentryCocoa { double timeout, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_985( + return __objc_msgSend_997( obj, sel, minBytes, @@ -28071,7 +28447,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_985Ptr = _lookup< + late final __objc_msgSend_997Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -28080,20 +28456,20 @@ class SentryCocoa { ffi.UnsignedLong, ffi.Double, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_985 = __objc_msgSend_985Ptr.asFunction< + late final __objc_msgSend_997 = __objc_msgSend_997Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, int, double, ffi.Pointer<_ObjCBlock>)>(); late final _sel_writeData_timeout_completionHandler_1 = _registerName1("writeData:timeout:completionHandler:"); - void _objc_msgSend_986( + void _objc_msgSend_998( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, double timeout, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_986( + return __objc_msgSend_998( obj, sel, data, @@ -28102,7 +28478,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_986Ptr = _lookup< + late final __objc_msgSend_998Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -28110,7 +28486,7 @@ class SentryCocoa { ffi.Pointer, ffi.Double, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_986 = __objc_msgSend_986Ptr.asFunction< + late final __objc_msgSend_998 = __objc_msgSend_998Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, double, ffi.Pointer<_ObjCBlock>)>(); @@ -28123,13 +28499,13 @@ class SentryCocoa { _registerName1("stopSecureConnection"); late final _sel_streamTaskWithHostName_port_1 = _registerName1("streamTaskWithHostName:port:"); - ffi.Pointer _objc_msgSend_987( + ffi.Pointer _objc_msgSend_999( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer hostname, int port, ) { - return __objc_msgSend_987( + return __objc_msgSend_999( obj, sel, hostname, @@ -28137,21 +28513,21 @@ class SentryCocoa { ); } - late final __objc_msgSend_987Ptr = _lookup< + late final __objc_msgSend_999Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Long)>>('objc_msgSend'); - late final __objc_msgSend_987 = __objc_msgSend_987Ptr.asFunction< + late final __objc_msgSend_999 = __objc_msgSend_999Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _class_NSNetService1 = _getClass1("NSNetService"); late final _sel_initWithDomain_type_name_port_1 = _registerName1("initWithDomain:type:name:port:"); - instancetype _objc_msgSend_988( + instancetype _objc_msgSend_1000( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer domain, @@ -28159,7 +28535,7 @@ class SentryCocoa { ffi.Pointer name, int port, ) { - return __objc_msgSend_988( + return __objc_msgSend_1000( obj, sel, domain, @@ -28169,7 +28545,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_988Ptr = _lookup< + late final __objc_msgSend_1000Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -28178,7 +28554,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int)>>('objc_msgSend'); - late final __objc_msgSend_988 = __objc_msgSend_988Ptr.asFunction< + late final __objc_msgSend_1000 = __objc_msgSend_1000Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -28194,81 +28570,81 @@ class SentryCocoa { _registerName1("setIncludesPeerToPeer:"); late final _sel_type1 = _registerName1("type"); late final _sel_publishWithOptions_1 = _registerName1("publishWithOptions:"); - void _objc_msgSend_989( + void _objc_msgSend_1001( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_989( + return __objc_msgSend_1001( obj, sel, options, ); } - late final __objc_msgSend_989Ptr = _lookup< + late final __objc_msgSend_1001Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_989 = __objc_msgSend_989Ptr.asFunction< + late final __objc_msgSend_1001 = __objc_msgSend_1001Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_resolve1 = _registerName1("resolve"); late final _sel_stop1 = _registerName1("stop"); late final _sel_dictionaryFromTXTRecordData_1 = _registerName1("dictionaryFromTXTRecordData:"); - ffi.Pointer _objc_msgSend_990( + ffi.Pointer _objc_msgSend_1002( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer txtData, ) { - return __objc_msgSend_990( + return __objc_msgSend_1002( obj, sel, txtData, ); } - late final __objc_msgSend_990Ptr = _lookup< + late final __objc_msgSend_1002Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_990 = __objc_msgSend_990Ptr.asFunction< + late final __objc_msgSend_1002 = __objc_msgSend_1002Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataFromTXTRecordDictionary_1 = _registerName1("dataFromTXTRecordDictionary:"); - ffi.Pointer _objc_msgSend_991( + ffi.Pointer _objc_msgSend_1003( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer txtDictionary, ) { - return __objc_msgSend_991( + return __objc_msgSend_1003( obj, sel, txtDictionary, ); } - late final __objc_msgSend_991Ptr = _lookup< + late final __objc_msgSend_1003Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_991 = __objc_msgSend_991Ptr.asFunction< + late final __objc_msgSend_1003 = __objc_msgSend_1003Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_resolveWithTimeout_1 = _registerName1("resolveWithTimeout:"); late final _sel_getInputStream_outputStream_1 = _registerName1("getInputStream:outputStream:"); - bool _objc_msgSend_992( + bool _objc_msgSend_1004( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer> inputStream, ffi.Pointer> outputStream, ) { - return __objc_msgSend_992( + return __objc_msgSend_1004( obj, sel, inputStream, @@ -28276,14 +28652,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_992Ptr = _lookup< + late final __objc_msgSend_1004Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_992 = __objc_msgSend_992Ptr.asFunction< + late final __objc_msgSend_1004 = __objc_msgSend_1004Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, @@ -28296,23 +28672,23 @@ class SentryCocoa { late final _sel_stopMonitoring1 = _registerName1("stopMonitoring"); late final _sel_streamTaskWithNetService_1 = _registerName1("streamTaskWithNetService:"); - ffi.Pointer _objc_msgSend_993( + ffi.Pointer _objc_msgSend_1005( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer service, ) { - return __objc_msgSend_993( + return __objc_msgSend_1005( obj, sel, service, ); } - late final __objc_msgSend_993Ptr = _lookup< + late final __objc_msgSend_1005Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_993 = __objc_msgSend_993Ptr.asFunction< + late final __objc_msgSend_1005 = __objc_msgSend_1005Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -28320,32 +28696,32 @@ class SentryCocoa { _getClass1("NSURLSessionWebSocketTask"); late final _class_NSURLSessionWebSocketMessage1 = _getClass1("NSURLSessionWebSocketMessage"); - int _objc_msgSend_994( + int _objc_msgSend_1006( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_994( + return __objc_msgSend_1006( obj, sel, ); } - late final __objc_msgSend_994Ptr = _lookup< + late final __objc_msgSend_1006Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_994 = __objc_msgSend_994Ptr.asFunction< + late final __objc_msgSend_1006 = __objc_msgSend_1006Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_sendMessage_completionHandler_1 = _registerName1("sendMessage:completionHandler:"); - void _objc_msgSend_995( + void _objc_msgSend_1007( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer message, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_995( + return __objc_msgSend_1007( obj, sel, message, @@ -28353,70 +28729,70 @@ class SentryCocoa { ); } - late final __objc_msgSend_995Ptr = _lookup< + late final __objc_msgSend_1007Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_995 = __objc_msgSend_995Ptr.asFunction< + late final __objc_msgSend_1007 = __objc_msgSend_1007Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_receiveMessageWithCompletionHandler_1 = _registerName1("receiveMessageWithCompletionHandler:"); - void _objc_msgSend_996( + void _objc_msgSend_1008( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_996( + return __objc_msgSend_1008( obj, sel, completionHandler, ); } - late final __objc_msgSend_996Ptr = _lookup< + late final __objc_msgSend_1008Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_996 = __objc_msgSend_996Ptr.asFunction< + late final __objc_msgSend_1008 = __objc_msgSend_1008Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_sendPingWithPongReceiveHandler_1 = _registerName1("sendPingWithPongReceiveHandler:"); - void _objc_msgSend_997( + void _objc_msgSend_1009( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> pongReceiveHandler, ) { - return __objc_msgSend_997( + return __objc_msgSend_1009( obj, sel, pongReceiveHandler, ); } - late final __objc_msgSend_997Ptr = _lookup< + late final __objc_msgSend_1009Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_997 = __objc_msgSend_997Ptr.asFunction< + late final __objc_msgSend_1009 = __objc_msgSend_1009Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_cancelWithCloseCode_reason_1 = _registerName1("cancelWithCloseCode:reason:"); - void _objc_msgSend_998( + void _objc_msgSend_1010( ffi.Pointer obj, ffi.Pointer sel, int closeCode, ffi.Pointer reason, ) { - return __objc_msgSend_998( + return __objc_msgSend_1010( obj, sel, closeCode, @@ -28424,11 +28800,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_998Ptr = _lookup< + late final __objc_msgSend_1010Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_998 = __objc_msgSend_998Ptr.asFunction< + late final __objc_msgSend_1010 = __objc_msgSend_1010Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); @@ -28436,55 +28812,55 @@ class SentryCocoa { late final _sel_setMaximumMessageSize_1 = _registerName1("setMaximumMessageSize:"); late final _sel_closeCode1 = _registerName1("closeCode"); - int _objc_msgSend_999( + int _objc_msgSend_1011( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_999( + return __objc_msgSend_1011( obj, sel, ); } - late final __objc_msgSend_999Ptr = _lookup< + late final __objc_msgSend_1011Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_999 = __objc_msgSend_999Ptr.asFunction< + late final __objc_msgSend_1011 = __objc_msgSend_1011Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_closeReason1 = _registerName1("closeReason"); late final _sel_webSocketTaskWithURL_1 = _registerName1("webSocketTaskWithURL:"); - ffi.Pointer _objc_msgSend_1000( + ffi.Pointer _objc_msgSend_1012( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ) { - return __objc_msgSend_1000( + return __objc_msgSend_1012( obj, sel, url, ); } - late final __objc_msgSend_1000Ptr = _lookup< + late final __objc_msgSend_1012Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1000 = __objc_msgSend_1000Ptr.asFunction< + late final __objc_msgSend_1012 = __objc_msgSend_1012Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_webSocketTaskWithURL_protocols_1 = _registerName1("webSocketTaskWithURL:protocols:"); - ffi.Pointer _objc_msgSend_1001( + ffi.Pointer _objc_msgSend_1013( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer protocols, ) { - return __objc_msgSend_1001( + return __objc_msgSend_1013( obj, sel, url, @@ -28492,14 +28868,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1001Ptr = _lookup< + late final __objc_msgSend_1013Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1001 = __objc_msgSend_1001Ptr.asFunction< + late final __objc_msgSend_1013 = __objc_msgSend_1013Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28508,35 +28884,35 @@ class SentryCocoa { late final _sel_webSocketTaskWithRequest_1 = _registerName1("webSocketTaskWithRequest:"); - ffi.Pointer _objc_msgSend_1002( + ffi.Pointer _objc_msgSend_1014( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ) { - return __objc_msgSend_1002( + return __objc_msgSend_1014( obj, sel, request, ); } - late final __objc_msgSend_1002Ptr = _lookup< + late final __objc_msgSend_1014Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1002 = __objc_msgSend_1002Ptr.asFunction< + late final __objc_msgSend_1014 = __objc_msgSend_1014Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_dataTaskWithRequest_completionHandler_1 = _registerName1("dataTaskWithRequest:completionHandler:"); - ffi.Pointer _objc_msgSend_1003( + ffi.Pointer _objc_msgSend_1015( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_1003( + return __objc_msgSend_1015( obj, sel, request, @@ -28544,14 +28920,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1003Ptr = _lookup< + late final __objc_msgSend_1015Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1003 = __objc_msgSend_1003Ptr.asFunction< + late final __objc_msgSend_1015 = __objc_msgSend_1015Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28560,13 +28936,13 @@ class SentryCocoa { late final _sel_dataTaskWithURL_completionHandler_1 = _registerName1("dataTaskWithURL:completionHandler:"); - ffi.Pointer _objc_msgSend_1004( + ffi.Pointer _objc_msgSend_1016( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_1004( + return __objc_msgSend_1016( obj, sel, url, @@ -28574,14 +28950,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1004Ptr = _lookup< + late final __objc_msgSend_1016Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1004 = __objc_msgSend_1004Ptr.asFunction< + late final __objc_msgSend_1016 = __objc_msgSend_1016Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28590,14 +28966,14 @@ class SentryCocoa { late final _sel_uploadTaskWithRequest_fromFile_completionHandler_1 = _registerName1("uploadTaskWithRequest:fromFile:completionHandler:"); - ffi.Pointer _objc_msgSend_1005( + ffi.Pointer _objc_msgSend_1017( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer fileURL, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_1005( + return __objc_msgSend_1017( obj, sel, request, @@ -28606,7 +28982,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1005Ptr = _lookup< + late final __objc_msgSend_1017Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -28614,7 +28990,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1005 = __objc_msgSend_1005Ptr.asFunction< + late final __objc_msgSend_1017 = __objc_msgSend_1017Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28624,14 +29000,14 @@ class SentryCocoa { late final _sel_uploadTaskWithRequest_fromData_completionHandler_1 = _registerName1("uploadTaskWithRequest:fromData:completionHandler:"); - ffi.Pointer _objc_msgSend_1006( + ffi.Pointer _objc_msgSend_1018( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer bodyData, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_1006( + return __objc_msgSend_1018( obj, sel, request, @@ -28640,7 +29016,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1006Ptr = _lookup< + late final __objc_msgSend_1018Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -28648,7 +29024,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1006 = __objc_msgSend_1006Ptr.asFunction< + late final __objc_msgSend_1018 = __objc_msgSend_1018Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28658,13 +29034,13 @@ class SentryCocoa { late final _sel_uploadTaskWithResumeData_completionHandler_1 = _registerName1("uploadTaskWithResumeData:completionHandler:"); - ffi.Pointer _objc_msgSend_1007( + ffi.Pointer _objc_msgSend_1019( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer resumeData, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_1007( + return __objc_msgSend_1019( obj, sel, resumeData, @@ -28672,14 +29048,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1007Ptr = _lookup< + late final __objc_msgSend_1019Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1007 = __objc_msgSend_1007Ptr.asFunction< + late final __objc_msgSend_1019 = __objc_msgSend_1019Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28688,13 +29064,13 @@ class SentryCocoa { late final _sel_downloadTaskWithRequest_completionHandler_1 = _registerName1("downloadTaskWithRequest:completionHandler:"); - ffi.Pointer _objc_msgSend_1008( + ffi.Pointer _objc_msgSend_1020( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer request, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_1008( + return __objc_msgSend_1020( obj, sel, request, @@ -28702,14 +29078,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1008Ptr = _lookup< + late final __objc_msgSend_1020Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1008 = __objc_msgSend_1008Ptr.asFunction< + late final __objc_msgSend_1020 = __objc_msgSend_1020Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28718,13 +29094,13 @@ class SentryCocoa { late final _sel_downloadTaskWithURL_completionHandler_1 = _registerName1("downloadTaskWithURL:completionHandler:"); - ffi.Pointer _objc_msgSend_1009( + ffi.Pointer _objc_msgSend_1021( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_1009( + return __objc_msgSend_1021( obj, sel, url, @@ -28732,14 +29108,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1009Ptr = _lookup< + late final __objc_msgSend_1021Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1009 = __objc_msgSend_1009Ptr.asFunction< + late final __objc_msgSend_1021 = __objc_msgSend_1021Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28748,13 +29124,13 @@ class SentryCocoa { late final _sel_downloadTaskWithResumeData_completionHandler_1 = _registerName1("downloadTaskWithResumeData:completionHandler:"); - ffi.Pointer _objc_msgSend_1010( + ffi.Pointer _objc_msgSend_1022( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer resumeData, ffi.Pointer<_ObjCBlock> completionHandler, ) { - return __objc_msgSend_1010( + return __objc_msgSend_1022( obj, sel, resumeData, @@ -28762,14 +29138,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1010Ptr = _lookup< + late final __objc_msgSend_1022Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1010 = __objc_msgSend_1010Ptr.asFunction< + late final __objc_msgSend_1022 = __objc_msgSend_1022Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28777,33 +29153,33 @@ class SentryCocoa { ffi.Pointer<_ObjCBlock>)>(); late final _class_NSProtocolChecker1 = _getClass1("NSProtocolChecker"); - ffi.Pointer _objc_msgSend_1011( + ffi.Pointer _objc_msgSend_1023( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1011( + return __objc_msgSend_1023( obj, sel, ); } - late final __objc_msgSend_1011Ptr = _lookup< + late final __objc_msgSend_1023Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1011 = __objc_msgSend_1011Ptr.asFunction< + late final __objc_msgSend_1023 = __objc_msgSend_1023Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_protocolCheckerWithTarget_protocol_1 = _registerName1("protocolCheckerWithTarget:protocol:"); - instancetype _objc_msgSend_1012( + instancetype _objc_msgSend_1024( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer anObject, ffi.Pointer aProtocol, ) { - return __objc_msgSend_1012( + return __objc_msgSend_1024( obj, sel, anObject, @@ -28811,14 +29187,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1012Ptr = _lookup< + late final __objc_msgSend_1024Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1012 = __objc_msgSend_1012Ptr.asFunction< + late final __objc_msgSend_1024 = __objc_msgSend_1024Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -28847,68 +29223,68 @@ class SentryCocoa { late final _sel_isRunning1 = _registerName1("isRunning"); late final _sel_terminationStatus1 = _registerName1("terminationStatus"); late final _sel_terminationReason1 = _registerName1("terminationReason"); - int _objc_msgSend_1013( + int _objc_msgSend_1025( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1013( + return __objc_msgSend_1025( obj, sel, ); } - late final __objc_msgSend_1013Ptr = _lookup< + late final __objc_msgSend_1025Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1013 = __objc_msgSend_1013Ptr.asFunction< + late final __objc_msgSend_1025 = __objc_msgSend_1025Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_terminationHandler1 = _registerName1("terminationHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_1014( + ffi.Pointer<_ObjCBlock> _objc_msgSend_1026( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1014( + return __objc_msgSend_1026( obj, sel, ); } - late final __objc_msgSend_1014Ptr = _lookup< + late final __objc_msgSend_1026Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1014 = __objc_msgSend_1014Ptr.asFunction< + late final __objc_msgSend_1026 = __objc_msgSend_1026Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setTerminationHandler_1 = _registerName1("setTerminationHandler:"); - void _objc_msgSend_1015( + void _objc_msgSend_1027( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_1015( + return __objc_msgSend_1027( obj, sel, value, ); } - late final __objc_msgSend_1015Ptr = _lookup< + late final __objc_msgSend_1027Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1015 = __objc_msgSend_1015Ptr.asFunction< + late final __objc_msgSend_1027 = __objc_msgSend_1027Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_1 = _registerName1( "launchedTaskWithExecutableURL:arguments:error:terminationHandler:"); - ffi.Pointer _objc_msgSend_1016( + ffi.Pointer _objc_msgSend_1028( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, @@ -28916,7 +29292,7 @@ class SentryCocoa { ffi.Pointer> error, ffi.Pointer<_ObjCBlock> terminationHandler, ) { - return __objc_msgSend_1016( + return __objc_msgSend_1028( obj, sel, url, @@ -28926,7 +29302,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1016Ptr = _lookup< + late final __objc_msgSend_1028Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -28935,7 +29311,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer>, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1016 = __objc_msgSend_1016Ptr.asFunction< + late final __objc_msgSend_1028 = __objc_msgSend_1028Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28952,13 +29328,13 @@ class SentryCocoa { late final _sel_launch1 = _registerName1("launch"); late final _sel_launchedTaskWithLaunchPath_arguments_1 = _registerName1("launchedTaskWithLaunchPath:arguments:"); - ffi.Pointer _objc_msgSend_1017( + ffi.Pointer _objc_msgSend_1029( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer path, ffi.Pointer arguments, ) { - return __objc_msgSend_1017( + return __objc_msgSend_1029( obj, sel, path, @@ -28966,14 +29342,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1017Ptr = _lookup< + late final __objc_msgSend_1029Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1017 = __objc_msgSend_1017Ptr.asFunction< + late final __objc_msgSend_1029 = __objc_msgSend_1029Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -28983,35 +29359,35 @@ class SentryCocoa { late final _class_NSXMLElement1 = _getClass1("NSXMLElement"); late final _class_NSXMLNode1 = _getClass1("NSXMLNode"); late final _sel_initWithKind_1 = _registerName1("initWithKind:"); - instancetype _objc_msgSend_1018( + instancetype _objc_msgSend_1030( ffi.Pointer obj, ffi.Pointer sel, int kind, ) { - return __objc_msgSend_1018( + return __objc_msgSend_1030( obj, sel, kind, ); } - late final __objc_msgSend_1018Ptr = _lookup< + late final __objc_msgSend_1030Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1018 = __objc_msgSend_1018Ptr.asFunction< + late final __objc_msgSend_1030 = __objc_msgSend_1030Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_initWithKind_options_1 = _registerName1("initWithKind:options:"); - instancetype _objc_msgSend_1019( + instancetype _objc_msgSend_1031( ffi.Pointer obj, ffi.Pointer sel, int kind, int options, ) { - return __objc_msgSend_1019( + return __objc_msgSend_1031( obj, sel, kind, @@ -29019,34 +29395,34 @@ class SentryCocoa { ); } - late final __objc_msgSend_1019Ptr = _lookup< + late final __objc_msgSend_1031Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, ffi.Int32, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1019 = __objc_msgSend_1019Ptr.asFunction< + late final __objc_msgSend_1031 = __objc_msgSend_1031Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, int, int)>(); late final _sel_document1 = _registerName1("document"); late final _sel_documentWithRootElement_1 = _registerName1("documentWithRootElement:"); - ffi.Pointer _objc_msgSend_1020( + ffi.Pointer _objc_msgSend_1032( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer element, ) { - return __objc_msgSend_1020( + return __objc_msgSend_1032( obj, sel, element, ); } - late final __objc_msgSend_1020Ptr = _lookup< + late final __objc_msgSend_1032Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1020 = __objc_msgSend_1020Ptr.asFunction< + late final __objc_msgSend_1032 = __objc_msgSend_1032Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -29057,14 +29433,14 @@ class SentryCocoa { _registerName1("elementWithName:stringValue:"); late final _sel_elementWithName_children_attributes_1 = _registerName1("elementWithName:children:attributes:"); - ffi.Pointer _objc_msgSend_1021( + ffi.Pointer _objc_msgSend_1033( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer children, ffi.Pointer attributes, ) { - return __objc_msgSend_1021( + return __objc_msgSend_1033( obj, sel, name, @@ -29073,7 +29449,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1021Ptr = _lookup< + late final __objc_msgSend_1033Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -29081,7 +29457,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1021 = __objc_msgSend_1021Ptr.asFunction< + late final __objc_msgSend_1033 = __objc_msgSend_1033Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -29103,21 +29479,21 @@ class SentryCocoa { _registerName1("textWithStringValue:"); late final _sel_DTDNodeWithXMLString_1 = _registerName1("DTDNodeWithXMLString:"); - int _objc_msgSend_1022( + int _objc_msgSend_1034( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1022( + return __objc_msgSend_1034( obj, sel, ); } - late final __objc_msgSend_1022Ptr = _lookup< + late final __objc_msgSend_1034Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1022 = __objc_msgSend_1022Ptr.asFunction< + late final __objc_msgSend_1034 = __objc_msgSend_1034Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_objectValue1 = _registerName1("objectValue"); @@ -29125,13 +29501,13 @@ class SentryCocoa { late final _sel_setStringValue_1 = _registerName1("setStringValue:"); late final _sel_setStringValue_resolvingEntities_1 = _registerName1("setStringValue:resolvingEntities:"); - void _objc_msgSend_1023( + void _objc_msgSend_1035( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, bool resolve, ) { - return __objc_msgSend_1023( + return __objc_msgSend_1035( obj, sel, string, @@ -29139,11 +29515,11 @@ class SentryCocoa { ); } - late final __objc_msgSend_1023Ptr = _lookup< + late final __objc_msgSend_1035Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_1023 = __objc_msgSend_1023Ptr.asFunction< + late final __objc_msgSend_1035 = __objc_msgSend_1035Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, bool)>(); @@ -29152,14 +29528,14 @@ class SentryCocoa { late final _class_NSXMLDocument1 = _getClass1("NSXMLDocument"); late final _sel_initWithXMLString_options_error_1 = _registerName1("initWithXMLString:options:error:"); - instancetype _objc_msgSend_1024( + instancetype _objc_msgSend_1036( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer string, int mask, ffi.Pointer> error, ) { - return __objc_msgSend_1024( + return __objc_msgSend_1036( obj, sel, string, @@ -29168,7 +29544,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1024Ptr = _lookup< + late final __objc_msgSend_1036Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -29176,7 +29552,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1024 = __objc_msgSend_1024Ptr.asFunction< + late final __objc_msgSend_1036 = __objc_msgSend_1036Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -29184,14 +29560,14 @@ class SentryCocoa { int, ffi.Pointer>)>(); - instancetype _objc_msgSend_1025( + instancetype _objc_msgSend_1037( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer url, int mask, ffi.Pointer> error, ) { - return __objc_msgSend_1025( + return __objc_msgSend_1037( obj, sel, url, @@ -29200,7 +29576,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1025Ptr = _lookup< + late final __objc_msgSend_1037Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -29208,7 +29584,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1025 = __objc_msgSend_1025Ptr.asFunction< + late final __objc_msgSend_1037 = __objc_msgSend_1037Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -29218,14 +29594,14 @@ class SentryCocoa { late final _sel_initWithData_options_error_1 = _registerName1("initWithData:options:error:"); - instancetype _objc_msgSend_1026( + instancetype _objc_msgSend_1038( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, int mask, ffi.Pointer> error, ) { - return __objc_msgSend_1026( + return __objc_msgSend_1038( obj, sel, data, @@ -29234,7 +29610,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1026Ptr = _lookup< + late final __objc_msgSend_1038Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -29242,7 +29618,7 @@ class SentryCocoa { ffi.Pointer, ffi.Int32, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1026 = __objc_msgSend_1026Ptr.asFunction< + late final __objc_msgSend_1038 = __objc_msgSend_1038Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -29260,42 +29636,42 @@ class SentryCocoa { late final _sel_isStandalone1 = _registerName1("isStandalone"); late final _sel_setStandalone_1 = _registerName1("setStandalone:"); late final _sel_documentContentKind1 = _registerName1("documentContentKind"); - int _objc_msgSend_1027( + int _objc_msgSend_1039( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1027( + return __objc_msgSend_1039( obj, sel, ); } - late final __objc_msgSend_1027Ptr = _lookup< + late final __objc_msgSend_1039Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1027 = __objc_msgSend_1027Ptr.asFunction< + late final __objc_msgSend_1039 = __objc_msgSend_1039Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDocumentContentKind_1 = _registerName1("setDocumentContentKind:"); - void _objc_msgSend_1028( + void _objc_msgSend_1040( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_1028( + return __objc_msgSend_1040( obj, sel, value, ); } - late final __objc_msgSend_1028Ptr = _lookup< + late final __objc_msgSend_1040Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1028 = __objc_msgSend_1028Ptr.asFunction< + late final __objc_msgSend_1040 = __objc_msgSend_1040Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_setMIMEType_1 = _registerName1("setMIMEType:"); @@ -29304,13 +29680,13 @@ class SentryCocoa { late final _sel_setSystemID_1 = _registerName1("setSystemID:"); late final _sel_insertChild_atIndex_1 = _registerName1("insertChild:atIndex:"); - void _objc_msgSend_1029( + void _objc_msgSend_1041( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, int index, ) { - return __objc_msgSend_1029( + return __objc_msgSend_1041( obj, sel, child, @@ -29318,23 +29694,23 @@ class SentryCocoa { ); } - late final __objc_msgSend_1029Ptr = _lookup< + late final __objc_msgSend_1041Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_1029 = __objc_msgSend_1029Ptr.asFunction< + late final __objc_msgSend_1041 = __objc_msgSend_1041Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_insertChildren_atIndex_1 = _registerName1("insertChildren:atIndex:"); - void _objc_msgSend_1030( + void _objc_msgSend_1042( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer children, int index, ) { - return __objc_msgSend_1030( + return __objc_msgSend_1042( obj, sel, children, @@ -29342,46 +29718,46 @@ class SentryCocoa { ); } - late final __objc_msgSend_1030Ptr = _lookup< + late final __objc_msgSend_1042Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_1030 = __objc_msgSend_1030Ptr.asFunction< + late final __objc_msgSend_1042 = __objc_msgSend_1042Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, int)>(); late final _sel_removeChildAtIndex_1 = _registerName1("removeChildAtIndex:"); late final _sel_setChildren_1 = _registerName1("setChildren:"); late final _sel_addChild_1 = _registerName1("addChild:"); - void _objc_msgSend_1031( + void _objc_msgSend_1043( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer child, ) { - return __objc_msgSend_1031( + return __objc_msgSend_1043( obj, sel, child, ); } - late final __objc_msgSend_1031Ptr = _lookup< + late final __objc_msgSend_1043Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1031 = __objc_msgSend_1031Ptr.asFunction< + late final __objc_msgSend_1043 = __objc_msgSend_1043Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_replaceChildAtIndex_withNode_1 = _registerName1("replaceChildAtIndex:withNode:"); - void _objc_msgSend_1032( + void _objc_msgSend_1044( ffi.Pointer obj, ffi.Pointer sel, int index, ffi.Pointer node, ) { - return __objc_msgSend_1032( + return __objc_msgSend_1044( obj, sel, index, @@ -29389,52 +29765,52 @@ class SentryCocoa { ); } - late final __objc_msgSend_1032Ptr = _lookup< + late final __objc_msgSend_1044Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1032 = __objc_msgSend_1032Ptr.asFunction< + late final __objc_msgSend_1044 = __objc_msgSend_1044Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int, ffi.Pointer)>(); late final _class_NSXMLDTDNode1 = _getClass1("NSXMLDTDNode"); late final _sel_initWithXMLString_1 = _registerName1("initWithXMLString:"); late final _sel_DTDKind1 = _registerName1("DTDKind"); - int _objc_msgSend_1033( + int _objc_msgSend_1045( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1033( + return __objc_msgSend_1045( obj, sel, ); } - late final __objc_msgSend_1033Ptr = _lookup< + late final __objc_msgSend_1045Ptr = _lookup< ffi.NativeFunction< ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1033 = __objc_msgSend_1033Ptr.asFunction< + late final __objc_msgSend_1045 = __objc_msgSend_1045Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_setDTDKind_1 = _registerName1("setDTDKind:"); - void _objc_msgSend_1034( + void _objc_msgSend_1046( ffi.Pointer obj, ffi.Pointer sel, int value, ) { - return __objc_msgSend_1034( + return __objc_msgSend_1046( obj, sel, value, ); } - late final __objc_msgSend_1034Ptr = _lookup< + late final __objc_msgSend_1046Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1034 = __objc_msgSend_1034Ptr.asFunction< + late final __objc_msgSend_1046 = __objc_msgSend_1046Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_isExternal1 = _registerName1("isExternal"); @@ -29444,45 +29820,45 @@ class SentryCocoa { late final _sel_prefixForName_1 = _registerName1("prefixForName:"); late final _sel_predefinedNamespaceForPrefix_1 = _registerName1("predefinedNamespaceForPrefix:"); - ffi.Pointer _objc_msgSend_1035( + ffi.Pointer _objc_msgSend_1047( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ) { - return __objc_msgSend_1035( + return __objc_msgSend_1047( obj, sel, name, ); } - late final __objc_msgSend_1035Ptr = _lookup< + late final __objc_msgSend_1047Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1035 = __objc_msgSend_1035Ptr.asFunction< + late final __objc_msgSend_1047 = __objc_msgSend_1047Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_entityDeclarationForName_1 = _registerName1("entityDeclarationForName:"); - ffi.Pointer _objc_msgSend_1036( + ffi.Pointer _objc_msgSend_1048( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ) { - return __objc_msgSend_1036( + return __objc_msgSend_1048( obj, sel, name, ); } - late final __objc_msgSend_1036Ptr = _lookup< + late final __objc_msgSend_1048Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1036 = __objc_msgSend_1036Ptr.asFunction< + late final __objc_msgSend_1048 = __objc_msgSend_1048Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -29492,13 +29868,13 @@ class SentryCocoa { _registerName1("elementDeclarationForName:"); late final _sel_attributeDeclarationForName_elementName_1 = _registerName1("attributeDeclarationForName:elementName:"); - ffi.Pointer _objc_msgSend_1037( + ffi.Pointer _objc_msgSend_1049( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, ffi.Pointer elementName, ) { - return __objc_msgSend_1037( + return __objc_msgSend_1049( obj, sel, name, @@ -29506,14 +29882,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1037Ptr = _lookup< + late final __objc_msgSend_1049Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1037 = __objc_msgSend_1037Ptr.asFunction< + late final __objc_msgSend_1049 = __objc_msgSend_1049Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -29523,117 +29899,117 @@ class SentryCocoa { late final _sel_predefinedEntityDeclarationForName_1 = _registerName1("predefinedEntityDeclarationForName:"); late final _sel_DTD1 = _registerName1("DTD"); - ffi.Pointer _objc_msgSend_1038( + ffi.Pointer _objc_msgSend_1050( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1038( + return __objc_msgSend_1050( obj, sel, ); } - late final __objc_msgSend_1038Ptr = _lookup< + late final __objc_msgSend_1050Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1038 = __objc_msgSend_1038Ptr.asFunction< + late final __objc_msgSend_1050 = __objc_msgSend_1050Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setDTD_1 = _registerName1("setDTD:"); - void _objc_msgSend_1039( + void _objc_msgSend_1051( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer value, ) { - return __objc_msgSend_1039( + return __objc_msgSend_1051( obj, sel, value, ); } - late final __objc_msgSend_1039Ptr = _lookup< + late final __objc_msgSend_1051Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1039 = __objc_msgSend_1039Ptr.asFunction< + late final __objc_msgSend_1051 = __objc_msgSend_1051Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_setRootElement_1 = _registerName1("setRootElement:"); - void _objc_msgSend_1040( + void _objc_msgSend_1052( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer root, ) { - return __objc_msgSend_1040( + return __objc_msgSend_1052( obj, sel, root, ); } - late final __objc_msgSend_1040Ptr = _lookup< + late final __objc_msgSend_1052Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1040 = __objc_msgSend_1040Ptr.asFunction< + late final __objc_msgSend_1052 = __objc_msgSend_1052Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_rootElement1 = _registerName1("rootElement"); - ffi.Pointer _objc_msgSend_1041( + ffi.Pointer _objc_msgSend_1053( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1041( + return __objc_msgSend_1053( obj, sel, ); } - late final __objc_msgSend_1041Ptr = _lookup< + late final __objc_msgSend_1053Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1041 = __objc_msgSend_1041Ptr.asFunction< + late final __objc_msgSend_1053 = __objc_msgSend_1053Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_XMLData1 = _registerName1("XMLData"); late final _sel_XMLDataWithOptions_1 = _registerName1("XMLDataWithOptions:"); - ffi.Pointer _objc_msgSend_1042( + ffi.Pointer _objc_msgSend_1054( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_1042( + return __objc_msgSend_1054( obj, sel, options, ); } - late final __objc_msgSend_1042Ptr = _lookup< + late final __objc_msgSend_1054Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1042 = __objc_msgSend_1042Ptr.asFunction< + late final __objc_msgSend_1054 = __objc_msgSend_1054Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_objectByApplyingXSLT_arguments_error_1 = _registerName1("objectByApplyingXSLT:arguments:error:"); - ffi.Pointer _objc_msgSend_1043( + ffi.Pointer _objc_msgSend_1055( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer xslt, ffi.Pointer arguments, ffi.Pointer> error, ) { - return __objc_msgSend_1043( + return __objc_msgSend_1055( obj, sel, xslt, @@ -29642,7 +30018,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1043Ptr = _lookup< + late final __objc_msgSend_1055Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -29650,7 +30026,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1043 = __objc_msgSend_1043Ptr.asFunction< + late final __objc_msgSend_1055 = __objc_msgSend_1055Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -29660,14 +30036,14 @@ class SentryCocoa { late final _sel_objectByApplyingXSLTString_arguments_error_1 = _registerName1("objectByApplyingXSLTString:arguments:error:"); - ffi.Pointer _objc_msgSend_1044( + ffi.Pointer _objc_msgSend_1056( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer xslt, ffi.Pointer arguments, ffi.Pointer> error, ) { - return __objc_msgSend_1044( + return __objc_msgSend_1056( obj, sel, xslt, @@ -29676,7 +30052,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1044Ptr = _lookup< + late final __objc_msgSend_1056Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -29684,7 +30060,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1044 = __objc_msgSend_1044Ptr.asFunction< + late final __objc_msgSend_1056 = __objc_msgSend_1056Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -29694,14 +30070,14 @@ class SentryCocoa { late final _sel_objectByApplyingXSLTAtURL_arguments_error_1 = _registerName1("objectByApplyingXSLTAtURL:arguments:error:"); - ffi.Pointer _objc_msgSend_1045( + ffi.Pointer _objc_msgSend_1057( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer xsltURL, ffi.Pointer argument, ffi.Pointer> error, ) { - return __objc_msgSend_1045( + return __objc_msgSend_1057( obj, sel, xsltURL, @@ -29710,7 +30086,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1045Ptr = _lookup< + late final __objc_msgSend_1057Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -29718,7 +30094,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1045 = __objc_msgSend_1045Ptr.asFunction< + late final __objc_msgSend_1057 = __objc_msgSend_1057Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -29729,63 +30105,63 @@ class SentryCocoa { late final _sel_validateAndReturnError_1 = _registerName1("validateAndReturnError:"); late final _sel_rootDocument1 = _registerName1("rootDocument"); - ffi.Pointer _objc_msgSend_1046( + ffi.Pointer _objc_msgSend_1058( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1046( + return __objc_msgSend_1058( obj, sel, ); } - late final __objc_msgSend_1046Ptr = _lookup< + late final __objc_msgSend_1058Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1046 = __objc_msgSend_1046Ptr.asFunction< + late final __objc_msgSend_1058 = __objc_msgSend_1058Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_parent1 = _registerName1("parent"); - ffi.Pointer _objc_msgSend_1047( + ffi.Pointer _objc_msgSend_1059( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1047( + return __objc_msgSend_1059( obj, sel, ); } - late final __objc_msgSend_1047Ptr = _lookup< + late final __objc_msgSend_1059Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1047 = __objc_msgSend_1047Ptr.asFunction< + late final __objc_msgSend_1059 = __objc_msgSend_1059Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_childCount1 = _registerName1("childCount"); late final _sel_children1 = _registerName1("children"); late final _sel_childAtIndex_1 = _registerName1("childAtIndex:"); - ffi.Pointer _objc_msgSend_1048( + ffi.Pointer _objc_msgSend_1060( ffi.Pointer obj, ffi.Pointer sel, int index, ) { - return __objc_msgSend_1048( + return __objc_msgSend_1060( obj, sel, index, ); } - late final __objc_msgSend_1048Ptr = _lookup< + late final __objc_msgSend_1060Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); - late final __objc_msgSend_1048 = __objc_msgSend_1048Ptr.asFunction< + late final __objc_msgSend_1060 = __objc_msgSend_1060Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); @@ -29802,45 +30178,45 @@ class SentryCocoa { late final _sel_XMLString1 = _registerName1("XMLString"); late final _sel_XMLStringWithOptions_1 = _registerName1("XMLStringWithOptions:"); - ffi.Pointer _objc_msgSend_1049( + ffi.Pointer _objc_msgSend_1061( ffi.Pointer obj, ffi.Pointer sel, int options, ) { - return __objc_msgSend_1049( + return __objc_msgSend_1061( obj, sel, options, ); } - late final __objc_msgSend_1049Ptr = _lookup< + late final __objc_msgSend_1061Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1049 = __objc_msgSend_1049Ptr.asFunction< + late final __objc_msgSend_1061 = __objc_msgSend_1061Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, int)>(); late final _sel_canonicalXMLStringPreservingComments_1 = _registerName1("canonicalXMLStringPreservingComments:"); - ffi.Pointer _objc_msgSend_1050( + ffi.Pointer _objc_msgSend_1062( ffi.Pointer obj, ffi.Pointer sel, bool comments, ) { - return __objc_msgSend_1050( + return __objc_msgSend_1062( obj, sel, comments, ); } - late final __objc_msgSend_1050Ptr = _lookup< + late final __objc_msgSend_1062Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_1050 = __objc_msgSend_1050Ptr.asFunction< + late final __objc_msgSend_1062 = __objc_msgSend_1062Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, bool)>(); @@ -29848,14 +30224,14 @@ class SentryCocoa { _registerName1("nodesForXPath:error:"); late final _sel_objectsForXQuery_constants_error_1 = _registerName1("objectsForXQuery:constants:error:"); - ffi.Pointer _objc_msgSend_1051( + ffi.Pointer _objc_msgSend_1063( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer xquery, ffi.Pointer constants, ffi.Pointer> error, ) { - return __objc_msgSend_1051( + return __objc_msgSend_1063( obj, sel, xquery, @@ -29864,7 +30240,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1051Ptr = _lookup< + late final __objc_msgSend_1063Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -29872,7 +30248,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_1051 = __objc_msgSend_1051Ptr.asFunction< + late final __objc_msgSend_1063 = __objc_msgSend_1063Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -29900,13 +30276,13 @@ class SentryCocoa { late final _sel_attributeForName_1 = _registerName1("attributeForName:"); late final _sel_attributeForLocalName_URI_1 = _registerName1("attributeForLocalName:URI:"); - ffi.Pointer _objc_msgSend_1052( + ffi.Pointer _objc_msgSend_1064( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer localName, ffi.Pointer URI, ) { - return __objc_msgSend_1052( + return __objc_msgSend_1064( obj, sel, localName, @@ -29914,14 +30290,14 @@ class SentryCocoa { ); } - late final __objc_msgSend_1052Ptr = _lookup< + late final __objc_msgSend_1064Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1052 = __objc_msgSend_1052Ptr.asFunction< + late final __objc_msgSend_1064 = __objc_msgSend_1064Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -29943,91 +30319,176 @@ class SentryCocoa { late final _sel_setAttributesAsDictionary_1 = _registerName1("setAttributesAsDictionary:"); late final _class_PrivateSentrySDKOnly1 = _getClass1("PrivateSentrySDKOnly"); - late final _class_SentryEnvelope1 = _getClass1("SentryEnvelope"); + late final _class_SentryEnvelope2 = _getClass1("SentryEnvelope"); late final _sel_storeEnvelope_1 = _registerName1("storeEnvelope:"); - void _objc_msgSend_1053( + void _objc_msgSend_1065( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer envelope, ) { - return __objc_msgSend_1053( + return __objc_msgSend_1065( obj, sel, envelope, ); } - late final __objc_msgSend_1053Ptr = _lookup< + late final __objc_msgSend_1065Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1053 = __objc_msgSend_1053Ptr.asFunction< + late final __objc_msgSend_1065 = __objc_msgSend_1065Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_captureEnvelope_1 = _registerName1("captureEnvelope:"); late final _sel_envelopeWithData_1 = _registerName1("envelopeWithData:"); - ffi.Pointer _objc_msgSend_1054( + ffi.Pointer _objc_msgSend_1066( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer data, ) { - return __objc_msgSend_1054( + return __objc_msgSend_1066( obj, sel, data, ); } - late final __objc_msgSend_1054Ptr = _lookup< + late final __objc_msgSend_1066Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1054 = __objc_msgSend_1054Ptr.asFunction< + late final __objc_msgSend_1066 = __objc_msgSend_1066Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_getDebugImages1 = _registerName1("getDebugImages"); - late final _sel_getDebugImagesCrashed_1 = - _registerName1("getDebugImagesCrashed:"); - ffi.Pointer _objc_msgSend_1055( + late final _sel_setSdkName_andVersionString_1 = + _registerName1("setSdkName:andVersionString:"); + late final _sel_setSdkName_1 = _registerName1("setSdkName:"); + late final _sel_getSdkName1 = _registerName1("getSdkName"); + late final _sel_getSdkVersionString1 = _registerName1("getSdkVersionString"); + late final _sel_addSdkPackage_version_1 = + _registerName1("addSdkPackage:version:"); + late final _sel_getExtraContext1 = _registerName1("getExtraContext"); + late final _class_SentryId1 = _getClass1("SentryId"); + late final _sel_empty1 = _registerName1("empty"); + ffi.Pointer _objc_msgSend_1067( ffi.Pointer obj, ffi.Pointer sel, - bool isCrash, ) { - return __objc_msgSend_1055( + return __objc_msgSend_1067( obj, sel, - isCrash, ); } - late final __objc_msgSend_1055Ptr = _lookup< + late final __objc_msgSend_1067Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); - late final __objc_msgSend_1055 = __objc_msgSend_1055Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1067 = __objc_msgSend_1067Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, bool)>(); + ffi.Pointer, ffi.Pointer)>(); - late final _sel_setSdkName_andVersionString_1 = - _registerName1("setSdkName:andVersionString:"); - late final _sel_setSdkName_1 = _registerName1("setSdkName:"); - late final _sel_getSdkName1 = _registerName1("getSdkName"); - late final _sel_getSdkVersionString1 = _registerName1("getSdkVersionString"); - late final _sel_addSdkPackage_version_1 = - _registerName1("addSdkPackage:version:"); - late final _sel_getExtraContext1 = _registerName1("getExtraContext"); - late final _class_SentryId2 = _getClass1("Sentry.SentryId"); + late final _sel_sentryIdString1 = _registerName1("sentryIdString"); + late final _class_NSUUID1 = _getClass1("NSUUID"); + late final _sel_UUID1 = _registerName1("UUID"); + late final _sel_initWithUUIDString_1 = _registerName1("initWithUUIDString:"); + late final _sel_initWithUUIDBytes_1 = _registerName1("initWithUUIDBytes:"); + instancetype _objc_msgSend_1068( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer bytes, + ) { + return __objc_msgSend_1068( + obj, + sel, + bytes, + ); + } + + late final __objc_msgSend_1068Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1068 = __objc_msgSend_1068Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_getUUIDBytes_1 = _registerName1("getUUIDBytes:"); + void _objc_msgSend_1069( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer uuid, + ) { + return __objc_msgSend_1069( + obj, + sel, + uuid, + ); + } + + late final __objc_msgSend_1069Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1069 = __objc_msgSend_1069Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + int _objc_msgSend_1070( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer otherUUID, + ) { + return __objc_msgSend_1070( + obj, + sel, + otherUUID, + ); + } + + late final __objc_msgSend_1070Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1070 = __objc_msgSend_1070Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_UUIDString1 = _registerName1("UUIDString"); + late final _sel_initWithUuid_1 = _registerName1("initWithUuid:"); + instancetype _objc_msgSend_1071( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer uuid, + ) { + return __objc_msgSend_1071( + obj, + sel, + uuid, + ); + } + + late final __objc_msgSend_1071Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1071 = __objc_msgSend_1071Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_isEqual_1 = _registerName1("isEqual:"); late final _class_SentrySpanId1 = _getClass1("SentrySpanId"); late final _sel_setTrace_spanId_1 = _registerName1("setTrace:spanId:"); - void _objc_msgSend_1056( + void _objc_msgSend_1072( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer traceId, ffi.Pointer spanId, ) { - return __objc_msgSend_1056( + return __objc_msgSend_1072( obj, sel, traceId, @@ -30035,49 +30496,49 @@ class SentryCocoa { ); } - late final __objc_msgSend_1056Ptr = _lookup< + late final __objc_msgSend_1072Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1056 = __objc_msgSend_1056Ptr.asFunction< + late final __objc_msgSend_1072 = __objc_msgSend_1072Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_startProfilerForTrace_1 = _registerName1("startProfilerForTrace:"); - int _objc_msgSend_1057( + int _objc_msgSend_1073( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer traceId, ) { - return __objc_msgSend_1057( + return __objc_msgSend_1073( obj, sel, traceId, ); } - late final __objc_msgSend_1057Ptr = _lookup< + late final __objc_msgSend_1073Ptr = _lookup< ffi.NativeFunction< ffi.Uint64 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1057 = __objc_msgSend_1057Ptr.asFunction< + late final __objc_msgSend_1073 = __objc_msgSend_1073Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _sel_collectProfileBetween_and_forTrace_1 = _registerName1("collectProfileBetween:and:forTrace:"); - ffi.Pointer _objc_msgSend_1058( + ffi.Pointer _objc_msgSend_1074( ffi.Pointer obj, ffi.Pointer sel, int startSystemTime, int endSystemTime, ffi.Pointer traceId, ) { - return __objc_msgSend_1058( + return __objc_msgSend_1074( obj, sel, startSystemTime, @@ -30086,7 +30547,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1058Ptr = _lookup< + late final __objc_msgSend_1074Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -30094,29 +30555,29 @@ class SentryCocoa { ffi.Uint64, ffi.Uint64, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1058 = __objc_msgSend_1058Ptr.asFunction< + late final __objc_msgSend_1074 = __objc_msgSend_1074Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, int, int, ffi.Pointer)>(); late final _sel_discardProfilerForTrace_1 = _registerName1("discardProfilerForTrace:"); - void _objc_msgSend_1059( + void _objc_msgSend_1075( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer traceId, ) { - return __objc_msgSend_1059( + return __objc_msgSend_1075( obj, sel, traceId, ); } - late final __objc_msgSend_1059Ptr = _lookup< + late final __objc_msgSend_1075Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1059 = __objc_msgSend_1059Ptr.asFunction< + late final __objc_msgSend_1075 = __objc_msgSend_1075Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -30124,82 +30585,82 @@ class SentryCocoa { _getClass1("SentryAppStartMeasurement"); late final _sel_onAppStartMeasurementAvailable1 = _registerName1("onAppStartMeasurementAvailable"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_1060( + ffi.Pointer<_ObjCBlock> _objc_msgSend_1076( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1060( + return __objc_msgSend_1076( obj, sel, ); } - late final __objc_msgSend_1060Ptr = _lookup< + late final __objc_msgSend_1076Ptr = _lookup< ffi.NativeFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1060 = __objc_msgSend_1060Ptr.asFunction< + late final __objc_msgSend_1076 = __objc_msgSend_1076Ptr.asFunction< ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_setOnAppStartMeasurementAvailable_1 = _registerName1("setOnAppStartMeasurementAvailable:"); - void _objc_msgSend_1061( + void _objc_msgSend_1077( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer<_ObjCBlock> value, ) { - return __objc_msgSend_1061( + return __objc_msgSend_1077( obj, sel, value, ); } - late final __objc_msgSend_1061Ptr = _lookup< + late final __objc_msgSend_1077Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1061 = __objc_msgSend_1061Ptr.asFunction< + late final __objc_msgSend_1077 = __objc_msgSend_1077Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); late final _sel_appStartMeasurement1 = _registerName1("appStartMeasurement"); - ffi.Pointer _objc_msgSend_1062( + ffi.Pointer _objc_msgSend_1078( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1062( + return __objc_msgSend_1078( obj, sel, ); } - late final __objc_msgSend_1062Ptr = _lookup< + late final __objc_msgSend_1078Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1062 = __objc_msgSend_1062Ptr.asFunction< + late final __objc_msgSend_1078 = __objc_msgSend_1078Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_installationID1 = _registerName1("installationID"); - late final _class_SentryOptions1 = _getClass1("SentryOptions"); - ffi.Pointer _objc_msgSend_1063( + late final _class_SentryOptions2 = _getClass1("SentryOptions"); + ffi.Pointer _objc_msgSend_1079( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1063( + return __objc_msgSend_1079( obj, sel, ); } - late final __objc_msgSend_1063Ptr = _lookup< + late final __objc_msgSend_1079Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1063 = __objc_msgSend_1063Ptr.asFunction< + late final __objc_msgSend_1079 = __objc_msgSend_1079Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); @@ -30211,72 +30672,143 @@ class SentryCocoa { _registerName1("appStartMeasurementWithSpans"); late final _class_SentryUser1 = _getClass1("SentryUser"); late final _sel_userWithDictionary_1 = _registerName1("userWithDictionary:"); - ffi.Pointer _objc_msgSend_1064( + ffi.Pointer _objc_msgSend_1080( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dictionary, ) { - return __objc_msgSend_1064( + return __objc_msgSend_1080( obj, sel, dictionary, ); } - late final __objc_msgSend_1064Ptr = _lookup< + late final __objc_msgSend_1080Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1064 = __objc_msgSend_1064Ptr.asFunction< + late final __objc_msgSend_1080 = __objc_msgSend_1080Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); late final _class_SentryBreadcrumb1 = _getClass1("SentryBreadcrumb"); late final _sel_breadcrumbWithDictionary_1 = _registerName1("breadcrumbWithDictionary:"); - ffi.Pointer _objc_msgSend_1065( + ffi.Pointer _objc_msgSend_1081( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dictionary, ) { - return __objc_msgSend_1065( + return __objc_msgSend_1081( obj, sel, dictionary, ); } - late final __objc_msgSend_1065Ptr = _lookup< + late final __objc_msgSend_1081Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1065 = __objc_msgSend_1065Ptr.asFunction< + late final __objc_msgSend_1081 = __objc_msgSend_1081Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + late final _sel_optionsWithDictionary_didFailWithError_1 = + _registerName1("optionsWithDictionary:didFailWithError:"); + ffi.Pointer _objc_msgSend_1082( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer options, + ffi.Pointer> error, + ) { + return __objc_msgSend_1082( + obj, + sel, + options, + error, + ); + } + + late final __objc_msgSend_1082Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_1082 = __objc_msgSend_1082Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_setLogOutput_1 = _registerName1("setLogOutput:"); + void _objc_msgSend_1083( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> output, + ) { + return __objc_msgSend_1083( + obj, + sel, + output, + ); + } + + late final __objc_msgSend_1083Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1083 = __objc_msgSend_1083Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); + + late final _sel_ignoreNextSignal_1 = _registerName1("ignoreNextSignal:"); + void _objc_msgSend_1084( + ffi.Pointer obj, + ffi.Pointer sel, + int signum, + ) { + return __objc_msgSend_1084( + obj, + sel, + signum, + ); + } + + late final __objc_msgSend_1084Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int)>>('objc_msgSend'); + late final __objc_msgSend_1084 = __objc_msgSend_1084Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); + late final _class_NSNotificationCenter1 = _getClass1("NSNotificationCenter"); late final _sel_defaultCenter1 = _registerName1("defaultCenter"); - ffi.Pointer _objc_msgSend_1066( + ffi.Pointer _objc_msgSend_1085( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1066( + return __objc_msgSend_1085( obj, sel, ); } - late final __objc_msgSend_1066Ptr = _lookup< + late final __objc_msgSend_1085Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1066 = __objc_msgSend_1066Ptr.asFunction< + late final __objc_msgSend_1085 = __objc_msgSend_1085Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); late final _sel_addObserver_selector_name_object_1 = _registerName1("addObserver:selector:name:object:"); - void _objc_msgSend_1067( + void _objc_msgSend_1086( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, @@ -30284,7 +30816,7 @@ class SentryCocoa { ffi.Pointer aName, ffi.Pointer anObject, ) { - return __objc_msgSend_1067( + return __objc_msgSend_1086( obj, sel, observer, @@ -30294,7 +30826,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1067Ptr = _lookup< + late final __objc_msgSend_1086Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -30303,7 +30835,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1067 = __objc_msgSend_1067Ptr.asFunction< + late final __objc_msgSend_1086 = __objc_msgSend_1086Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -30313,23 +30845,23 @@ class SentryCocoa { ffi.Pointer)>(); late final _sel_postNotification_1 = _registerName1("postNotification:"); - void _objc_msgSend_1068( + void _objc_msgSend_1087( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer notification, ) { - return __objc_msgSend_1068( + return __objc_msgSend_1087( obj, sel, notification, ); } - late final __objc_msgSend_1068Ptr = _lookup< + late final __objc_msgSend_1087Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1068 = __objc_msgSend_1068Ptr.asFunction< + late final __objc_msgSend_1087 = __objc_msgSend_1087Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -30337,14 +30869,14 @@ class SentryCocoa { _registerName1("postNotificationName:object:"); late final _sel_postNotificationName_object_userInfo_1 = _registerName1("postNotificationName:object:userInfo:"); - void _objc_msgSend_1069( + void _objc_msgSend_1088( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer aName, ffi.Pointer anObject, ffi.Pointer aUserInfo, ) { - return __objc_msgSend_1069( + return __objc_msgSend_1088( obj, sel, aName, @@ -30353,7 +30885,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1069Ptr = _lookup< + late final __objc_msgSend_1088Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -30361,7 +30893,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1069 = __objc_msgSend_1069Ptr.asFunction< + late final __objc_msgSend_1088 = __objc_msgSend_1088Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -30372,14 +30904,14 @@ class SentryCocoa { late final _sel_removeObserver_1 = _registerName1("removeObserver:"); late final _sel_removeObserver_name_object_1 = _registerName1("removeObserver:name:object:"); - void _objc_msgSend_1070( + void _objc_msgSend_1089( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer observer, ffi.Pointer aName, ffi.Pointer anObject, ) { - return __objc_msgSend_1070( + return __objc_msgSend_1089( obj, sel, observer, @@ -30388,7 +30920,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1070Ptr = _lookup< + late final __objc_msgSend_1089Ptr = _lookup< ffi.NativeFunction< ffi.Void Function( ffi.Pointer, @@ -30396,7 +30928,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1070 = __objc_msgSend_1070Ptr.asFunction< + late final __objc_msgSend_1089 = __objc_msgSend_1089Ptr.asFunction< void Function( ffi.Pointer, ffi.Pointer, @@ -30406,7 +30938,7 @@ class SentryCocoa { late final _sel_addObserverForName_object_queue_usingBlock_1 = _registerName1("addObserverForName:object:queue:usingBlock:"); - ffi.Pointer _objc_msgSend_1071( + ffi.Pointer _objc_msgSend_1090( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, @@ -30414,7 +30946,7 @@ class SentryCocoa { ffi.Pointer queue, ffi.Pointer<_ObjCBlock> block, ) { - return __objc_msgSend_1071( + return __objc_msgSend_1090( obj, sel, name, @@ -30424,7 +30956,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1071Ptr = _lookup< + late final __objc_msgSend_1090Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( ffi.Pointer, @@ -30433,7 +30965,7 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); - late final __objc_msgSend_1071 = __objc_msgSend_1071Ptr.asFunction< + late final __objc_msgSend_1090 = __objc_msgSend_1090Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, @@ -30442,179 +30974,331 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _class_SentryCrashWrapper1 = _getClass1("SentryCrashWrapper"); + late final _class_SentryBreadcrumbTracker1 = + _getClass1("SentryBreadcrumbTracker"); + late final _sel_connectivityChanged_typeDescription_1 = + _registerName1("connectivityChanged:typeDescription:"); + late final _class_SentryDefaultCrashReporter1 = + _getClass1("SentryDefaultCrashReporter"); + late final _sel_processInfoWrapper1 = _registerName1("processInfoWrapper"); late final _sel_systemInfo1 = _registerName1("systemInfo"); - late final _sel_initWithProcessInfoWrapper_1 = - _registerName1("initWithProcessInfoWrapper:"); - late final _sel_startBinaryImageCache1 = - _registerName1("startBinaryImageCache"); - late final _sel_stopBinaryImageCache1 = - _registerName1("stopBinaryImageCache"); + late final _class_SentryCrashBridge1 = _getClass1("SentryCrashBridge"); + late final _sel_notificationCenterWrapper1 = + _registerName1("notificationCenterWrapper"); + late final _sel_dateProvider1 = _registerName1("dateProvider"); + late final _class_SentryCrashSwift1 = _getClass1("SentryCrashSwift"); late final _sel_crashedLastLaunch1 = _registerName1("crashedLastLaunch"); - late final _sel_durationFromCrashStateInitToLastCrash1 = - _registerName1("durationFromCrashStateInitToLastCrash"); late final _sel_activeDurationSinceLastCrash1 = _registerName1("activeDurationSinceLastCrash"); - late final _sel_isBeingTraced1 = _registerName1("isBeingTraced"); - late final _sel_isSimulatorBuild1 = _registerName1("isSimulatorBuild"); - late final _sel_isApplicationInForeground1 = - _registerName1("isApplicationInForeground"); - late final _sel_freeMemorySize1 = _registerName1("freeMemorySize"); - int _objc_msgSend_1072( + late final _class_SentryCrashReportFilterSwift1 = + _getClass1("SentryCrashReportFilterSwift"); + late final _sel_initWithFilterReports_1 = + _registerName1("initWithFilterReports:"); + instancetype _objc_msgSend_1091( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> filter, ) { - return __objc_msgSend_1072( + return __objc_msgSend_1091( obj, sel, + filter, ); } - late final __objc_msgSend_1072Ptr = _lookup< + late final __objc_msgSend_1091Ptr = _lookup< ffi.NativeFunction< - ffi.Uint64 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1072 = __objc_msgSend_1072Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1091 = __objc_msgSend_1091Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_appMemorySize1 = _registerName1("appMemorySize"); - late final _class_SentryScope1 = _getClass1("SentryScope"); - late final _sel_enrichScope_1 = _registerName1("enrichScope:"); - void _objc_msgSend_1073( + late final _sel_setSink_1 = _registerName1("setSink:"); + void _objc_msgSend_1092( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer scope, + ffi.Pointer newValue, ) { - return __objc_msgSend_1073( + return __objc_msgSend_1092( obj, sel, - scope, + newValue, ); } - late final __objc_msgSend_1073Ptr = _lookup< + late final __objc_msgSend_1092Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1073 = __objc_msgSend_1073Ptr.asFunction< + late final __objc_msgSend_1092 = __objc_msgSend_1092Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _class_SentryFeedback1 = _getClass1("SentryFeedback"); - late final _class_SentryId11 = _getClass1("Sentry.SentryId"); - late final _sel_empty1 = _registerName1("empty"); - ffi.Pointer _objc_msgSend_1074( + late final _sel_setupOnCrash1 = _registerName1("setupOnCrash"); + late final _sel_removeOnCrash1 = _registerName1("removeOnCrash"); + late final _sel_uncaughtExceptionHandler1 = + _registerName1("uncaughtExceptionHandler"); + ffi.Pointer)>> + _objc_msgSend_1093( ffi.Pointer obj, ffi.Pointer sel, ) { - return __objc_msgSend_1074( + return __objc_msgSend_1093( obj, sel, ); } - late final __objc_msgSend_1074Ptr = _lookup< + late final __objc_msgSend_1093Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer)>> + Function(ffi.Pointer, ffi.Pointer)>>( + 'objc_msgSend'); + late final __objc_msgSend_1093 = __objc_msgSend_1093Ptr.asFunction< + ffi.Pointer< + ffi.NativeFunction)>> + Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_setUncaughtExceptionHandler_1 = + _registerName1("setUncaughtExceptionHandler:"); + void _objc_msgSend_1094( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer)>> + value, + ) { + return __objc_msgSend_1094( + obj, + sel, + value, + ); + } + + late final __objc_msgSend_1094Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1074 = __objc_msgSend_1074Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer)>>)>>('objc_msgSend'); + late final __objc_msgSend_1094 = __objc_msgSend_1094Ptr.asFunction< + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi + .NativeFunction)>>)>(); - late final _sel_sentryIdString1 = _registerName1("sentryIdString"); - late final _class_NSUUID1 = _getClass1("NSUUID"); - late final _sel_UUID1 = _registerName1("UUID"); - late final _sel_initWithUUIDString_1 = _registerName1("initWithUUIDString:"); - late final _sel_initWithUUIDBytes_1 = _registerName1("initWithUUIDBytes:"); - instancetype _objc_msgSend_1075( + late final _sel_setBridge_1 = _registerName1("setBridge:"); + void _objc_msgSend_1095( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer bytes, + ffi.Pointer bridge, ) { - return __objc_msgSend_1075( + return __objc_msgSend_1095( obj, sel, - bytes, + bridge, ); } - late final __objc_msgSend_1075Ptr = _lookup< + late final __objc_msgSend_1095Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1075 = __objc_msgSend_1075Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1095 = __objc_msgSend_1095Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_getUUIDBytes_1 = _registerName1("getUUIDBytes:"); - void _objc_msgSend_1076( + late final _sel_basePath1 = _registerName1("basePath"); + late final _sel_setBasePath_1 = _registerName1("setBasePath:"); + late final _sel_install1 = _registerName1("install"); + late final _sel_uninstall1 = _registerName1("uninstall"); + late final _sel_setUserInfo_1 = _registerName1("setUserInfo:"); + late final _sel_sendAllReportsWithCompletion_1 = + _registerName1("sendAllReportsWithCompletion:"); + void _objc_msgSend_1096( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer uuid, + ffi.Pointer<_ObjCBlock> completion, ) { - return __objc_msgSend_1076( + return __objc_msgSend_1096( obj, sel, - uuid, + completion, ); } - late final __objc_msgSend_1076Ptr = _lookup< + late final __objc_msgSend_1096Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1076 = __objc_msgSend_1076Ptr.asFunction< + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1096 = __objc_msgSend_1096Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer<_ObjCBlock>)>(); - int _objc_msgSend_1077( + late final _sel_monitoring1 = _registerName1("monitoring"); + int _objc_msgSend_1097( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer otherUUID, ) { - return __objc_msgSend_1077( + return __objc_msgSend_1097( obj, sel, - otherUUID, ); } - late final __objc_msgSend_1077Ptr = _lookup< + late final __objc_msgSend_1097Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Uint32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1097 = __objc_msgSend_1097Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_hasOnCrash1 = _registerName1("hasOnCrash"); + late final _sel_crashReporter1 = _registerName1("crashReporter"); + ffi.Pointer _objc_msgSend_1098( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1098( + obj, + sel, + ); + } + + late final __objc_msgSend_1098Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1098 = __objc_msgSend_1098Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initWithNotificationCenterWrapper_dateProvider_crashReporter_1 = + _registerName1( + "initWithNotificationCenterWrapper:dateProvider:crashReporter:"); + instancetype _objc_msgSend_1099( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer notificationCenterWrapper, + ffi.Pointer dateProvider, + ffi.Pointer crashReporter, + ) { + return __objc_msgSend_1099( + obj, + sel, + notificationCenterWrapper, + dateProvider, + crashReporter, + ); + } + + late final __objc_msgSend_1099Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1077 = __objc_msgSend_1077Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, + late final __objc_msgSend_1099 = __objc_msgSend_1099Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_UUIDString1 = _registerName1("UUIDString"); - late final _sel_initWithUuid_1 = _registerName1("initWithUuid:"); - instancetype _objc_msgSend_1078( + late final _sel_initWithProcessInfoWrapper_bridge_1 = + _registerName1("initWithProcessInfoWrapper:bridge:"); + instancetype _objc_msgSend_1100( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer uuid, + ffi.Pointer processInfoWrapper, + ffi.Pointer bridge, ) { - return __objc_msgSend_1078( + return __objc_msgSend_1100( obj, sel, - uuid, + processInfoWrapper, + bridge, ); } - late final __objc_msgSend_1078Ptr = _lookup< + late final __objc_msgSend_1100Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1078 = __objc_msgSend_1078Ptr.asFunction< + late final __objc_msgSend_1100 = __objc_msgSend_1100Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_startBinaryImageCache1 = + _registerName1("startBinaryImageCache"); + late final _sel_stopBinaryImageCache1 = + _registerName1("stopBinaryImageCache"); + late final _sel_durationFromCrashStateInitToLastCrash1 = + _registerName1("durationFromCrashStateInitToLastCrash"); + late final _sel_isBeingTraced1 = _registerName1("isBeingTraced"); + late final _sel_isSimulatorBuild1 = _registerName1("isSimulatorBuild"); + late final _sel_isApplicationInForeground1 = + _registerName1("isApplicationInForeground"); + late final _sel_freeMemorySize1 = _registerName1("freeMemorySize"); + int _objc_msgSend_1101( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1101( + obj, + sel, + ); + } + + late final __objc_msgSend_1101Ptr = _lookup< + ffi.NativeFunction< + ffi.Uint64 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1101 = __objc_msgSend_1101Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); + + late final _sel_appMemorySize1 = _registerName1("appMemorySize"); + late final _class_SentryScope1 = _getClass1("SentryScope"); + late final _sel_enrichScope_1 = _registerName1("enrichScope:"); + void _objc_msgSend_1102( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer scope, + ) { + return __objc_msgSend_1102( + obj, + sel, + scope, + ); + } + + late final __objc_msgSend_1102Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1102 = __objc_msgSend_1102Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_isEqual_1 = _registerName1("isEqual:"); + late final _class_SentryFeedback1 = _getClass1("SentryFeedback"); late final _sel_eventId1 = _registerName1("eventId"); late final _sel_initWithMessage_name_email_source_associatedEventId_attachments_1 = _registerName1( "initWithMessage:name:email:source:associatedEventId:attachments:"); - instancetype _objc_msgSend_1079( + instancetype _objc_msgSend_1103( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer message, @@ -30624,7 +31308,7 @@ class SentryCocoa { ffi.Pointer associatedEventId, ffi.Pointer attachments, ) { - return __objc_msgSend_1079( + return __objc_msgSend_1103( obj, sel, message, @@ -30636,7 +31320,7 @@ class SentryCocoa { ); } - late final __objc_msgSend_1079Ptr = _lookup< + late final __objc_msgSend_1103Ptr = _lookup< ffi.NativeFunction< instancetype Function( ffi.Pointer, @@ -30647,7 +31331,7 @@ class SentryCocoa { ffi.Int32, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1079 = __objc_msgSend_1079Ptr.asFunction< + late final __objc_msgSend_1103 = __objc_msgSend_1103Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, @@ -30658,1413 +31342,2480 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer)>(); + late final _sel_serialize1 = _registerName1("serialize"); late final _sel_attachmentsForEnvelope1 = _registerName1("attachmentsForEnvelope"); - late final _sel_serialize1 = _registerName1("serialize"); - late final _class_SentryLog1 = _getClass1("SentryLog"); - late final _sel_timestamp1 = _registerName1("timestamp"); - late final _sel_setTimestamp_1 = _registerName1("setTimestamp:"); - late final _sel_traceId1 = _registerName1("traceId"); - late final _sel_setTraceId_1 = _registerName1("setTraceId:"); - void _objc_msgSend_1080( + late final _class_SentryFileManager1 = _getClass1("SentryFileManager"); + late final _class_SentryEnvelopeItem1 = _getClass1("SentryEnvelopeItem"); + late final _sel_initWithType_data_contentType_itemCount_1 = + _registerName1("initWithType:data:contentType:itemCount:"); + instancetype _objc_msgSend_1104( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, + ffi.Pointer type, + ffi.Pointer data, + ffi.Pointer contentType, + ffi.Pointer itemCount, ) { - return __objc_msgSend_1080( + return __objc_msgSend_1104( obj, sel, - value, + type, + data, + contentType, + itemCount, ); } - late final __objc_msgSend_1080Ptr = _lookup< + late final __objc_msgSend_1104Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1080 = __objc_msgSend_1080Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, + late final __objc_msgSend_1104 = __objc_msgSend_1104Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - int _objc_msgSend_1081( + late final _sel_initWithType_data_addPlatform_1 = + _registerName1("initWithType:data:addPlatform:"); + instancetype _objc_msgSend_1105( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer type, + ffi.Pointer data, + bool addPlatform, ) { - return __objc_msgSend_1081( + return __objc_msgSend_1105( obj, sel, + type, + data, + addPlatform, ); } - late final __objc_msgSend_1081Ptr = _lookup< + late final __objc_msgSend_1105Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_1081 = __objc_msgSend_1081Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setLevel_1 = _registerName1("setLevel:"); - void _objc_msgSend_1082( - ffi.Pointer obj, - ffi.Pointer sel, - int value, + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); + late final __objc_msgSend_1105 = __objc_msgSend_1105Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, bool)>(); + + late final _sel_initWithEvent_1 = _registerName1("initWithEvent:"); + late final _class_SentrySession1 = _getClass1("SentrySession"); + late final _sel_initWithReleaseName_distinctId_1 = + _registerName1("initWithReleaseName:distinctId:"); + late final _sel_initWithJSONObject_1 = _registerName1("initWithJSONObject:"); + late final _sel_endSessionExitedWithTimestamp_1 = + _registerName1("endSessionExitedWithTimestamp:"); + late final _sel_endSessionCrashedWithTimestamp_1 = + _registerName1("endSessionCrashedWithTimestamp:"); + late final _sel_endSessionAbnormalWithTimestamp_1 = + _registerName1("endSessionAbnormalWithTimestamp:"); + late final _sel_incrementErrors1 = _registerName1("incrementErrors"); + late final _sel_setFlagInit1 = _registerName1("setFlagInit"); + late final _sel_sessionId1 = _registerName1("sessionId"); + ffi.Pointer _objc_msgSend_1106( + ffi.Pointer obj, + ffi.Pointer sel, ) { - return __objc_msgSend_1082( + return __objc_msgSend_1106( obj, sel, - value, ); } - late final __objc_msgSend_1082Ptr = _lookup< + late final __objc_msgSend_1106Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); - late final __objc_msgSend_1082 = __objc_msgSend_1082Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1106 = __objc_msgSend_1106Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_body1 = _registerName1("body"); - late final _sel_setBody_1 = _registerName1("setBody:"); - late final _sel_severityNumber1 = _registerName1("severityNumber"); - late final _sel_setSeverityNumber_1 = _registerName1("setSeverityNumber:"); -} + late final _sel_started1 = _registerName1("started"); + late final _sel_errors1 = _registerName1("errors"); + late final _sel_setErrors_1 = _registerName1("setErrors:"); + late final _sel_sequence1 = _registerName1("sequence"); + late final _sel_distinctId1 = _registerName1("distinctId"); + late final _sel_flagInit1 = _registerName1("flagInit"); + late final _sel_timestamp1 = _registerName1("timestamp"); + late final _sel_releaseName1 = _registerName1("releaseName"); + late final _sel_abnormalMechanism1 = _registerName1("abnormalMechanism"); + late final _sel_setAbnormalMechanism_1 = + _registerName1("setAbnormalMechanism:"); + late final _sel_initWithSession_1 = _registerName1("initWithSession:"); + instancetype _objc_msgSend_1107( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer session, + ) { + return __objc_msgSend_1107( + obj, + sel, + session, + ); + } -class _ObjCWrapper implements ffi.Finalizable { - final ffi.Pointer _id; - final SentryCocoa _lib; - bool _pendingRelease; + late final __objc_msgSend_1107Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1107 = __objc_msgSend_1107Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - _ObjCWrapper._(this._id, this._lib, - {bool retain = false, bool release = false}) - : _pendingRelease = release { - if (retain) { - _lib._objc_retain(_id.cast()); - } - if (release) { - _lib._objc_releaseFinalizer2.attach(this, _id.cast(), detach: this); - } + late final _class_SentryAttachment1 = _getClass1("SentryAttachment"); + late final _sel_initWithAttachment_maxAttachmentSize_1 = + _registerName1("initWithAttachment:maxAttachmentSize:"); + instancetype _objc_msgSend_1108( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer attachment, + int maxAttachmentSize, + ) { + return __objc_msgSend_1108( + obj, + sel, + attachment, + maxAttachmentSize, + ); } - /// Releases the reference to the underlying ObjC object held by this wrapper. - /// Throws a StateError if this wrapper doesn't currently hold a reference. - void release() { - if (_pendingRelease) { - _pendingRelease = false; - _lib._objc_release(_id.cast()); - _lib._objc_releaseFinalizer2.detach(this); - } else { - throw StateError( - 'Released an ObjC object that was unowned or already released.'); - } - } + late final __objc_msgSend_1108Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + late final __objc_msgSend_1108 = __objc_msgSend_1108Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - @override - bool operator ==(Object other) { - return other is _ObjCWrapper && _id == other._id; + late final _class_SentryClientReport1 = _getClass1("SentryClientReport"); + late final _sel_initWithDiscardedEvents_dateProvider_1 = + _registerName1("initWithDiscardedEvents:dateProvider:"); + instancetype _objc_msgSend_1109( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer discardedEvents, + ffi.Pointer dateProvider, + ) { + return __objc_msgSend_1109( + obj, + sel, + discardedEvents, + dateProvider, + ); } - @override - int get hashCode => _id.hashCode; + late final __objc_msgSend_1109Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1109 = __objc_msgSend_1109Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - /// Return a pointer to this object. - ffi.Pointer get pointer => _id; -} + late final _sel_initWithClientReport_1 = + _registerName1("initWithClientReport:"); + instancetype _objc_msgSend_1110( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer clientReport, + ) { + return __objc_msgSend_1110( + obj, + sel, + clientReport, + ); + } -class NSObject extends _ObjCWrapper { - NSObject._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + late final __objc_msgSend_1110Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1110 = __objc_msgSend_1110Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - /// Returns a [NSObject] that points to the same underlying object as [other]. - static NSObject castFrom(T other) { - return NSObject._(other._id, other._lib, retain: true, release: true); + late final _class_SentryReplayEvent1 = _getClass1("SentryReplayEvent"); + late final _sel_replayStartTimestamp1 = + _registerName1("replayStartTimestamp"); + late final _sel_replayType1 = _registerName1("replayType"); + int _objc_msgSend_1111( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1111( + obj, + sel, + ); } - /// Returns a [NSObject] that wraps the given raw object pointer. - static NSObject castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSObject._(other, lib, retain: retain, release: release); - } + late final __objc_msgSend_1111Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1111 = __objc_msgSend_1111Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - /// Returns whether [obj] is an instance of [NSObject]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSObject1); + late final _sel_segmentId1 = _registerName1("segmentId"); + late final _sel_urls1 = _registerName1("urls"); + late final _sel_setUrls_1 = _registerName1("setUrls:"); + late final _sel_initWithEventId_replayStartTimestamp_replayType_segmentId_1 = + _registerName1( + "initWithEventId:replayStartTimestamp:replayType:segmentId:"); + instancetype _objc_msgSend_1112( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer eventId, + ffi.Pointer replayStartTimestamp, + int replayType, + int segmentId, + ) { + return __objc_msgSend_1112( + obj, + sel, + eventId, + replayStartTimestamp, + replayType, + segmentId, + ); } - static void load(SentryCocoa _lib) { - _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_load1); - } + late final __objc_msgSend_1112Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Long)>>('objc_msgSend'); + late final __objc_msgSend_1112 = __objc_msgSend_1112Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, int)>(); - static void initialize(SentryCocoa _lib) { - _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_initialize1); + late final _sel_initWithLevel_1 = _registerName1("initWithLevel:"); + late final _class_SentryReplayRecording1 = + _getClass1("SentryReplayRecording"); + late final _class_SentryVideoInfo1 = _getClass1("SentryVideoInfo"); + late final _sel_end1 = _registerName1("end"); + late final _sel_initWithSegmentId_video_extraEvents_1 = + _registerName1("initWithSegmentId:video:extraEvents:"); + instancetype _objc_msgSend_1113( + ffi.Pointer obj, + ffi.Pointer sel, + int segmentId, + ffi.Pointer video, + ffi.Pointer extraEvents, + ) { + return __objc_msgSend_1113( + obj, + sel, + segmentId, + video, + extraEvents, + ); } - NSObject init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1113Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1113 = __objc_msgSend_1113Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer, ffi.Pointer)>(); - static NSObject new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_new1); - return NSObject._(_ret, _lib, retain: false, release: true); + late final _sel_initWithReplayEvent_replayRecording_video_1 = + _registerName1("initWithReplayEvent:replayRecording:video:"); + instancetype _objc_msgSend_1114( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer replayEvent, + ffi.Pointer replayRecording, + ffi.Pointer video, + ) { + return __objc_msgSend_1114( + obj, + sel, + replayEvent, + replayRecording, + video, + ); } - static NSObject allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSObject1, _lib._sel_allocWithZone_1, zone); - return NSObject._(_ret, _lib, retain: false, release: true); - } + late final __objc_msgSend_1114Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1114 = __objc_msgSend_1114Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - static NSObject alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_alloc1); - return NSObject._(_ret, _lib, retain: false, release: true); + late final _sel_envelopeDeletedCallback1 = + _registerName1("envelopeDeletedCallback"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_1115( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1115( + obj, + sel, + ); } - void dealloc() { - _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); - } + late final __objc_msgSend_1115Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1115 = __objc_msgSend_1115Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); - void finalize() { - _lib._objc_msgSend_1(_id, _lib._sel_finalize1); + late final _sel_setEnvelopeDeletedCallback_1 = + _registerName1("setEnvelopeDeletedCallback:"); + void _objc_msgSend_1116( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> value, + ) { + return __objc_msgSend_1116( + obj, + sel, + value, + ); } - NSObject copy() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_copy1); - return NSObject._(_ret, _lib, retain: false, release: true); - } + late final __objc_msgSend_1116Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1116 = __objc_msgSend_1116Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - NSObject mutableCopy() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_mutableCopy1); - return NSObject._(_ret, _lib, retain: false, release: true); + late final _sel_sentryPath1 = _registerName1("sentryPath"); + late final _sel_breadcrumbsFilePathOne1 = + _registerName1("breadcrumbsFilePathOne"); + late final _sel_breadcrumbsFilePathTwo1 = + _registerName1("breadcrumbsFilePathTwo"); + late final _sel_previousBreadcrumbsFilePathOne1 = + _registerName1("previousBreadcrumbsFilePathOne"); + late final _sel_previousBreadcrumbsFilePathTwo1 = + _registerName1("previousBreadcrumbsFilePathTwo"); + late final _class_SentryOptions11 = _getClass1("SentryOptions"); + late final _sel_dsn1 = _registerName1("dsn"); + late final _sel_setDsn_1 = _registerName1("setDsn:"); + late final _class_SentryDsn1 = _getClass1("SentryDsn"); + late final _sel_url1 = _registerName1("url"); + late final _sel_initWithString_didFailWithError_1 = + _registerName1("initWithString:didFailWithError:"); + late final _sel_getHash1 = _registerName1("getHash"); + late final _sel_getEnvelopeEndpoint1 = _registerName1("getEnvelopeEndpoint"); + late final _sel_orgId1 = _registerName1("orgId"); + late final _sel_parsedDsn1 = _registerName1("parsedDsn"); + ffi.Pointer _objc_msgSend_1117( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1117( + obj, + sel, + ); } - static NSObject copyWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSObject1, _lib._sel_copyWithZone_1, zone); - return NSObject._(_ret, _lib, retain: false, release: true); - } + late final __objc_msgSend_1117Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1117 = __objc_msgSend_1117Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - static NSObject mutableCopyWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSObject1, _lib._sel_mutableCopyWithZone_1, zone); - return NSObject._(_ret, _lib, retain: false, release: true); + late final _sel_setParsedDsn_1 = _registerName1("setParsedDsn:"); + void _objc_msgSend_1118( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_1118( + obj, + sel, + value, + ); } - static bool instancesRespondToSelector_( - SentryCocoa _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_4(_lib._class_NSObject1, - _lib._sel_instancesRespondToSelector_1, aSelector); - } + late final __objc_msgSend_1118Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1118 = __objc_msgSend_1118Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - static bool conformsToProtocol_(SentryCocoa _lib, Protocol? protocol) { - return _lib._objc_msgSend_5(_lib._class_NSObject1, - _lib._sel_conformsToProtocol_1, protocol?._id ?? ffi.nullptr); + late final _sel_debug1 = _registerName1("debug"); + late final _sel_setDebug_1 = _registerName1("setDebug:"); + late final _sel_diagnosticLevel1 = _registerName1("diagnosticLevel"); + late final _sel_setDiagnosticLevel_1 = _registerName1("setDiagnosticLevel:"); + void _objc_msgSend_1119( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_1119( + obj, + sel, + value, + ); } - ffi.Pointer> methodForSelector_( - ffi.Pointer aSelector) { - return _lib._objc_msgSend_6(_id, _lib._sel_methodForSelector_1, aSelector); - } + late final __objc_msgSend_1119Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int)>>('objc_msgSend'); + late final __objc_msgSend_1119 = __objc_msgSend_1119Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - static ffi.Pointer> - instanceMethodForSelector_( - SentryCocoa _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_6(_lib._class_NSObject1, - _lib._sel_instanceMethodForSelector_1, aSelector); + late final _sel_setReleaseName_1 = _registerName1("setReleaseName:"); + late final _sel_dist1 = _registerName1("dist"); + late final _sel_setDist_1 = _registerName1("setDist:"); + late final _sel_enabled1 = _registerName1("enabled"); + late final _sel_setEnabled_1 = _registerName1("setEnabled:"); + late final _sel_shutdownTimeInterval1 = + _registerName1("shutdownTimeInterval"); + late final _sel_setShutdownTimeInterval_1 = + _registerName1("setShutdownTimeInterval:"); + late final _sel_enableCrashHandler1 = _registerName1("enableCrashHandler"); + late final _sel_setEnableCrashHandler_1 = + _registerName1("setEnableCrashHandler:"); + late final _sel_enableUncaughtNSExceptionReporting1 = + _registerName1("enableUncaughtNSExceptionReporting"); + late final _sel_setEnableUncaughtNSExceptionReporting_1 = + _registerName1("setEnableUncaughtNSExceptionReporting:"); + late final _sel_enableSigtermReporting1 = + _registerName1("enableSigtermReporting"); + late final _sel_setEnableSigtermReporting_1 = + _registerName1("setEnableSigtermReporting:"); + late final _sel_maxBreadcrumbs1 = _registerName1("maxBreadcrumbs"); + late final _sel_setMaxBreadcrumbs_1 = _registerName1("setMaxBreadcrumbs:"); + late final _sel_enableNetworkBreadcrumbs1 = + _registerName1("enableNetworkBreadcrumbs"); + late final _sel_setEnableNetworkBreadcrumbs_1 = + _registerName1("setEnableNetworkBreadcrumbs:"); + late final _sel_maxCacheItems1 = _registerName1("maxCacheItems"); + late final _sel_setMaxCacheItems_1 = _registerName1("setMaxCacheItems:"); + late final _sel_beforeSend1 = _registerName1("beforeSend"); + late final _sel_setBeforeSend_1 = _registerName1("setBeforeSend:"); + late final _sel_beforeSendSpan1 = _registerName1("beforeSendSpan"); + late final _sel_setBeforeSendSpan_1 = _registerName1("setBeforeSendSpan:"); + late final _sel_enableLogs1 = _registerName1("enableLogs"); + late final _sel_setEnableLogs_1 = _registerName1("setEnableLogs:"); + late final _class_SentryLog1 = _getClass1("SentryLog"); + late final _sel_setTimestamp_1 = _registerName1("setTimestamp:"); + late final _sel_traceId1 = _registerName1("traceId"); + late final _sel_setTraceId_1 = _registerName1("setTraceId:"); + void _objc_msgSend_1120( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_1120( + obj, + sel, + value, + ); } - void doesNotRecognizeSelector_(ffi.Pointer aSelector) { - _lib._objc_msgSend_7(_id, _lib._sel_doesNotRecognizeSelector_1, aSelector); - } + late final __objc_msgSend_1120Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1120 = __objc_msgSend_1120Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - NSObject forwardingTargetForSelector_(ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_8( - _id, _lib._sel_forwardingTargetForSelector_1, aSelector); - return NSObject._(_ret, _lib, retain: true, release: true); + late final _sel_spanId1 = _registerName1("spanId"); + ffi.Pointer _objc_msgSend_1121( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1121( + obj, + sel, + ); } - void forwardInvocation_(NSInvocation? anInvocation) { - _lib._objc_msgSend_394( - _id, _lib._sel_forwardInvocation_1, anInvocation?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1121Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1121 = __objc_msgSend_1121Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - NSMethodSignature methodSignatureForSelector_( - ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_395( - _id, _lib._sel_methodSignatureForSelector_1, aSelector); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); + late final _sel_setSpanId_1 = _registerName1("setSpanId:"); + void _objc_msgSend_1122( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_1122( + obj, + sel, + value, + ); } - static NSMethodSignature instanceMethodSignatureForSelector_( - SentryCocoa _lib, ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_395(_lib._class_NSObject1, - _lib._sel_instanceMethodSignatureForSelector_1, aSelector); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1122Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1122 = __objc_msgSend_1122Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - bool allowsWeakReference() { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsWeakReference1); + int _objc_msgSend_1123( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1123( + obj, + sel, + ); } - bool retainWeakReference() { - return _lib._objc_msgSend_12(_id, _lib._sel_retainWeakReference1); - } + late final __objc_msgSend_1123Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1123 = __objc_msgSend_1123Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - static bool isSubclassOfClass_(SentryCocoa _lib, NSObject aClass) { - return _lib._objc_msgSend_0( - _lib._class_NSObject1, _lib._sel_isSubclassOfClass_1, aClass._id); + late final _sel_setLevel_1 = _registerName1("setLevel:"); + void _objc_msgSend_1124( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_1124( + obj, + sel, + value, + ); } - static bool resolveClassMethod_(SentryCocoa _lib, ffi.Pointer sel) { - return _lib._objc_msgSend_4( - _lib._class_NSObject1, _lib._sel_resolveClassMethod_1, sel); - } + late final __objc_msgSend_1124Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_1124 = __objc_msgSend_1124Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - static bool resolveInstanceMethod_( - SentryCocoa _lib, ffi.Pointer sel) { - return _lib._objc_msgSend_4( - _lib._class_NSObject1, _lib._sel_resolveInstanceMethod_1, sel); + late final _sel_body1 = _registerName1("body"); + late final _sel_setBody_1 = _registerName1("setBody:"); + late final _sel_severityNumber1 = _registerName1("severityNumber"); + late final _sel_setSeverityNumber_1 = _registerName1("setSeverityNumber:"); + late final _sel_initWithLevel_body_1 = _registerName1("initWithLevel:body:"); + instancetype _objc_msgSend_1125( + ffi.Pointer obj, + ffi.Pointer sel, + int level, + ffi.Pointer body, + ) { + return __objc_msgSend_1125( + obj, + sel, + level, + body, + ); } - static int hash(SentryCocoa _lib) { - return _lib._objc_msgSend_10(_lib._class_NSObject1, _lib._sel_hash1); - } + late final __objc_msgSend_1125Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1125 = __objc_msgSend_1125Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); - static NSObject superclass(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_superclass1); - return NSObject._(_ret, _lib, retain: true, release: true); + late final _sel_initWithLevel_body_attributes_1 = + _registerName1("initWithLevel:body:attributes:"); + instancetype _objc_msgSend_1126( + ffi.Pointer obj, + ffi.Pointer sel, + int level, + ffi.Pointer body, + ffi.Pointer attributes, + ) { + return __objc_msgSend_1126( + obj, + sel, + level, + body, + attributes, + ); } - static NSObject class1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_class1); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1126Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1126 = __objc_msgSend_1126Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer, ffi.Pointer)>(); - static NSString description(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_20(_lib._class_NSObject1, _lib._sel_description1); - return NSString._(_ret, _lib, retain: true, release: true); + late final _class_SentryAttribute1 = _getClass1("SentryAttribute"); + late final _sel_initWithBoolean_1 = _registerName1("initWithBoolean:"); + instancetype _objc_msgSend_1127( + ffi.Pointer obj, + ffi.Pointer sel, + double value, + ) { + return __objc_msgSend_1127( + obj, + sel, + value, + ); } - static NSString debugDescription(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_20( - _lib._class_NSObject1, _lib._sel_debugDescription1); - return NSString._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1127Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Float)>>('objc_msgSend'); + late final __objc_msgSend_1127 = __objc_msgSend_1127Ptr.asFunction< + instancetype Function( + ffi.Pointer, ffi.Pointer, double)>(); - static int version(SentryCocoa _lib) { - return _lib._objc_msgSend_78(_lib._class_NSObject1, _lib._sel_version1); + late final _sel_initWithStringArray_1 = + _registerName1("initWithStringArray:"); + late final _sel_initWithBooleanArray_1 = + _registerName1("initWithBooleanArray:"); + late final _sel_initWithIntegerArray_1 = + _registerName1("initWithIntegerArray:"); + late final _sel_initWithDoubleArray_1 = + _registerName1("initWithDoubleArray:"); + late final _sel_initWithFloatArray_1 = _registerName1("initWithFloatArray:"); + late final _sel_setAttribute_forKey_1 = + _registerName1("setAttribute:forKey:"); + void _objc_msgSend_1128( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer attribute, + ffi.Pointer key, + ) { + return __objc_msgSend_1128( + obj, + sel, + attribute, + key, + ); } - static void setVersion_(SentryCocoa _lib, int aVersion) { - _lib._objc_msgSend_396( - _lib._class_NSObject1, _lib._sel_setVersion_1, aVersion); - } + late final __objc_msgSend_1128Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1128 = __objc_msgSend_1128Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - NSObject get classForCoder { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForCoder1); - return NSObject._(_ret, _lib, retain: true, release: true); + late final _sel_beforeSendLog1 = _registerName1("beforeSendLog"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_1129( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1129( + obj, + sel, + ); } - NSObject replacementObjectForCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_replacementObjectForCoder_1, coder?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1129Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1129 = __objc_msgSend_1129Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); - NSObject awakeAfterUsingCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_awakeAfterUsingCoder_1, coder?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: false, release: true); + late final _sel_setBeforeSendLog_1 = _registerName1("setBeforeSendLog:"); + void _objc_msgSend_1130( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> value, + ) { + return __objc_msgSend_1130( + obj, + sel, + value, + ); } - static void poseAsClass_(SentryCocoa _lib, NSObject aClass) { - _lib._objc_msgSend_15( - _lib._class_NSObject1, _lib._sel_poseAsClass_1, aClass._id); - } + late final __objc_msgSend_1130Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1130 = __objc_msgSend_1130Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - NSObject get autoContentAccessingProxy { - final _ret = - _lib._objc_msgSend_2(_id, _lib._sel_autoContentAccessingProxy1); - return NSObject._(_ret, _lib, retain: true, release: true); + late final _sel_beforeBreadcrumb1 = _registerName1("beforeBreadcrumb"); + late final _sel_setBeforeBreadcrumb_1 = + _registerName1("setBeforeBreadcrumb:"); + late final _sel_beforeCaptureScreenshot1 = + _registerName1("beforeCaptureScreenshot"); + late final _sel_setBeforeCaptureScreenshot_1 = + _registerName1("setBeforeCaptureScreenshot:"); + late final _sel_beforeCaptureViewHierarchy1 = + _registerName1("beforeCaptureViewHierarchy"); + late final _sel_setBeforeCaptureViewHierarchy_1 = + _registerName1("setBeforeCaptureViewHierarchy:"); + late final _sel_onCrashedLastRun1 = _registerName1("onCrashedLastRun"); + late final _sel_setOnCrashedLastRun_1 = + _registerName1("setOnCrashedLastRun:"); + late final _sel_onLastRunStatusDetermined1 = + _registerName1("onLastRunStatusDetermined"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_1131( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1131( + obj, + sel, + ); } - void - attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_( - NSError? error, - int recoveryOptionIndex, - NSObject delegate, - ffi.Pointer didRecoverSelector, - ffi.Pointer contextInfo) { - _lib._objc_msgSend_397( - _id, - _lib._sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1, - error?._id ?? ffi.nullptr, - recoveryOptionIndex, - delegate._id, - didRecoverSelector, - contextInfo); - } + late final __objc_msgSend_1131Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1131 = __objc_msgSend_1131Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); - bool attemptRecoveryFromError_optionIndex_( - NSError? error, int recoveryOptionIndex) { - return _lib._objc_msgSend_398( - _id, - _lib._sel_attemptRecoveryFromError_optionIndex_1, - error?._id ?? ffi.nullptr, - recoveryOptionIndex); + late final _sel_setOnLastRunStatusDetermined_1 = + _registerName1("setOnLastRunStatusDetermined:"); + void _objc_msgSend_1132( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> value, + ) { + return __objc_msgSend_1132( + obj, + sel, + value, + ); } - void performSelector_withObject_afterDelay_inModes_( - ffi.Pointer aSelector, - NSObject anArgument, - double delay, - NSArray? modes) { - _lib._objc_msgSend_399( - _id, - _lib._sel_performSelector_withObject_afterDelay_inModes_1, - aSelector, - anArgument._id, - delay, - modes?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1132Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1132 = __objc_msgSend_1132Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - void performSelector_withObject_afterDelay_( - ffi.Pointer aSelector, NSObject anArgument, double delay) { - _lib._objc_msgSend_400( - _id, - _lib._sel_performSelector_withObject_afterDelay_1, - aSelector, - anArgument._id, - delay); - } + late final _sel_sampleRate1 = _registerName1("sampleRate"); + late final _sel_setSampleRate_1 = _registerName1("setSampleRate:"); + late final _sel_enableAutoSessionTracking1 = + _registerName1("enableAutoSessionTracking"); + late final _sel_setEnableAutoSessionTracking_1 = + _registerName1("setEnableAutoSessionTracking:"); + late final _sel_enableGraphQLOperationTracking1 = + _registerName1("enableGraphQLOperationTracking"); + late final _sel_setEnableGraphQLOperationTracking_1 = + _registerName1("setEnableGraphQLOperationTracking:"); + late final _sel_enableWatchdogTerminationTracking1 = + _registerName1("enableWatchdogTerminationTracking"); + late final _sel_setEnableWatchdogTerminationTracking_1 = + _registerName1("setEnableWatchdogTerminationTracking:"); + late final _sel_sessionTrackingIntervalMillis1 = + _registerName1("sessionTrackingIntervalMillis"); + late final _sel_setSessionTrackingIntervalMillis_1 = + _registerName1("setSessionTrackingIntervalMillis:"); + late final _sel_attachStacktrace1 = _registerName1("attachStacktrace"); + late final _sel_setAttachStacktrace_1 = + _registerName1("setAttachStacktrace:"); + late final _sel_attachAllThreads1 = _registerName1("attachAllThreads"); + late final _sel_setAttachAllThreads_1 = + _registerName1("setAttachAllThreads:"); + late final _sel_maxAttachmentSize1 = _registerName1("maxAttachmentSize"); + late final _sel_setMaxAttachmentSize_1 = + _registerName1("setMaxAttachmentSize:"); + late final _sel_sendDefaultPii1 = _registerName1("sendDefaultPii"); + late final _sel_setSendDefaultPii_1 = _registerName1("setSendDefaultPii:"); + late final _sel_enableAutoPerformanceTracing1 = + _registerName1("enableAutoPerformanceTracing"); + late final _sel_setEnableAutoPerformanceTracing_1 = + _registerName1("setEnableAutoPerformanceTracing:"); + late final _sel_enablePersistingTracesWhenCrashing1 = + _registerName1("enablePersistingTracesWhenCrashing"); + late final _sel_setEnablePersistingTracesWhenCrashing_1 = + _registerName1("setEnablePersistingTracesWhenCrashing:"); + late final _sel_initialScope1 = _registerName1("initialScope"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_1133( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1133( + obj, + sel, + ); + } + + late final __objc_msgSend_1133Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1133 = __objc_msgSend_1133Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSObject1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + late final _sel_setInitialScope_1 = _registerName1("setInitialScope:"); + void _objc_msgSend_1134( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> value, + ) { + return __objc_msgSend_1134( + obj, + sel, + value, + ); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSObject1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); - } + late final __objc_msgSend_1134Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1134 = __objc_msgSend_1134Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - void URL_resourceDataDidBecomeAvailable_(NSURL? sender, NSData? newBytes) { - _lib._objc_msgSend_401(_id, _lib._sel_URL_resourceDataDidBecomeAvailable_1, - sender?._id ?? ffi.nullptr, newBytes?._id ?? ffi.nullptr); + late final _sel_enableNetworkTracking1 = + _registerName1("enableNetworkTracking"); + late final _sel_setEnableNetworkTracking_1 = + _registerName1("setEnableNetworkTracking:"); + late final _sel_enableFileIOTracing1 = _registerName1("enableFileIOTracing"); + late final _sel_setEnableFileIOTracing_1 = + _registerName1("setEnableFileIOTracing:"); + late final _sel_enableDataSwizzling1 = _registerName1("enableDataSwizzling"); + late final _sel_setEnableDataSwizzling_1 = + _registerName1("setEnableDataSwizzling:"); + late final _sel_enableFileManagerSwizzling1 = + _registerName1("enableFileManagerSwizzling"); + late final _sel_setEnableFileManagerSwizzling_1 = + _registerName1("setEnableFileManagerSwizzling:"); + late final _sel_tracesSampleRate1 = _registerName1("tracesSampleRate"); + late final _sel_setTracesSampleRate_1 = + _registerName1("setTracesSampleRate:"); + late final _sel_tracesSampler1 = _registerName1("tracesSampler"); + late final _sel_setTracesSampler_1 = _registerName1("setTracesSampler:"); + late final _sel_isTracingEnabled1 = _registerName1("isTracingEnabled"); + late final _sel_inAppIncludes1 = _registerName1("inAppIncludes"); + late final _sel_addInAppInclude_1 = _registerName1("addInAppInclude:"); + late final _sel_urlSessionDelegate1 = _registerName1("urlSessionDelegate"); + late final _sel_setUrlSessionDelegate_1 = + _registerName1("setUrlSessionDelegate:"); + late final _sel_urlSession1 = _registerName1("urlSession"); + late final _sel_setUrlSession_1 = _registerName1("setUrlSession:"); + void _objc_msgSend_1135( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_1135( + obj, + sel, + value, + ); } - void URLResourceDidFinishLoading_(NSURL? sender) { - _lib._objc_msgSend_402(_id, _lib._sel_URLResourceDidFinishLoading_1, - sender?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1135Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1135 = __objc_msgSend_1135Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - void URLResourceDidCancelLoading_(NSURL? sender) { - _lib._objc_msgSend_402(_id, _lib._sel_URLResourceDidCancelLoading_1, - sender?._id ?? ffi.nullptr); + late final _sel_enableSwizzling1 = _registerName1("enableSwizzling"); + late final _sel_setEnableSwizzling_1 = _registerName1("setEnableSwizzling:"); + late final _sel_swizzleClassNameExcludes1 = + _registerName1("swizzleClassNameExcludes"); + late final _sel_setSwizzleClassNameExcludes_1 = + _registerName1("setSwizzleClassNameExcludes:"); + late final _sel_enableCoreDataTracing1 = + _registerName1("enableCoreDataTracing"); + late final _sel_setEnableCoreDataTracing_1 = + _registerName1("setEnableCoreDataTracing:"); + late final _class_SentryProfileOptions1 = _getClass1("SentryProfileOptions"); + late final _sel_lifecycle1 = _registerName1("lifecycle"); + int _objc_msgSend_1136( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1136( + obj, + sel, + ); } - void URL_resourceDidFailLoadingWithReason_(NSURL? sender, NSString? reason) { - _lib._objc_msgSend_403( - _id, - _lib._sel_URL_resourceDidFailLoadingWithReason_1, - sender?._id ?? ffi.nullptr, - reason?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1136Ptr = _lookup< + ffi.NativeFunction< + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1136 = __objc_msgSend_1136Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - bool fileManager_shouldProceedAfterError_( - NSFileManager? fm, NSDictionary? errorInfo) { - return _lib._objc_msgSend_438( - _id, - _lib._sel_fileManager_shouldProceedAfterError_1, - fm?._id ?? ffi.nullptr, - errorInfo?._id ?? ffi.nullptr); + late final _sel_setLifecycle_1 = _registerName1("setLifecycle:"); + void _objc_msgSend_1137( + ffi.Pointer obj, + ffi.Pointer sel, + int value, + ) { + return __objc_msgSend_1137( + obj, + sel, + value, + ); } - void fileManager_willProcessPath_(NSFileManager? fm, NSString? path) { - _lib._objc_msgSend_439(_id, _lib._sel_fileManager_willProcessPath_1, - fm?._id ?? ffi.nullptr, path?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1137Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_1137 = __objc_msgSend_1137Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, int)>(); - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSObject1, _lib._sel_accessInstanceVariablesDirectly1); + late final _sel_sessionSampleRate1 = _registerName1("sessionSampleRate"); + late final _sel_setSessionSampleRate_1 = + _registerName1("setSessionSampleRate:"); + late final _sel_profileAppStarts1 = _registerName1("profileAppStarts"); + late final _sel_setProfileAppStarts_1 = + _registerName1("setProfileAppStarts:"); + late final _sel_configureProfiling1 = _registerName1("configureProfiling"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_1138( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1138( + obj, + sel, + ); } - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1138Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1138 = __objc_msgSend_1138Ptr.asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); - void setValue_forKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + late final _sel_setConfigureProfiling_1 = + _registerName1("setConfigureProfiling:"); + void _objc_msgSend_1139( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> value, + ) { + return __objc_msgSend_1139( + obj, + sel, + value, + ); } - bool validateValue_forKey_error_(ffi.Pointer> ioValue, - NSString? inKey, ffi.Pointer> outError) { - return _lib._objc_msgSend_225(_id, _lib._sel_validateValue_forKey_error_1, - ioValue, inKey?._id ?? ffi.nullptr, outError); - } + late final __objc_msgSend_1139Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1139 = __objc_msgSend_1139Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - NSMutableArray mutableArrayValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_456( - _id, _lib._sel_mutableArrayValueForKey_1, key?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + late final _sel_profiling1 = _registerName1("profiling"); + ffi.Pointer _objc_msgSend_1140( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1140( + obj, + sel, + ); } - NSMutableOrderedSet mutableOrderedSetValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_475( - _id, _lib._sel_mutableOrderedSetValueForKey_1, key?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1140Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1140 = __objc_msgSend_1140Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - NSMutableSet mutableSetValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_476( - _id, _lib._sel_mutableSetValueForKey_1, key?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + late final _sel_setProfiling_1 = _registerName1("setProfiling:"); + void _objc_msgSend_1141( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_1141( + obj, + sel, + value, + ); } - NSObject valueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKeyPath_1, keyPath?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1141Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1141 = __objc_msgSend_1141Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - void setValue_forKeyPath_(NSObject value, NSString? keyPath) { - _lib._objc_msgSend_126(_id, _lib._sel_setValue_forKeyPath_1, value._id, - keyPath?._id ?? ffi.nullptr); - } + late final _sel_isContinuousProfilingEnabled1 = + _registerName1("isContinuousProfilingEnabled"); + late final _sel_isProfilingCorrelatedToTraces1 = + _registerName1("isProfilingCorrelatedToTraces"); + late final _sel_sendClientReports1 = _registerName1("sendClientReports"); + late final _sel_setSendClientReports_1 = + _registerName1("setSendClientReports:"); + late final _sel_enableAppHangTracking1 = + _registerName1("enableAppHangTracking"); + late final _sel_setEnableAppHangTracking_1 = + _registerName1("setEnableAppHangTracking:"); + late final _sel_appHangTimeoutInterval1 = + _registerName1("appHangTimeoutInterval"); + late final _sel_setAppHangTimeoutInterval_1 = + _registerName1("setAppHangTimeoutInterval:"); + late final _sel_enableAutoBreadcrumbTracking1 = + _registerName1("enableAutoBreadcrumbTracking"); + late final _sel_setEnableAutoBreadcrumbTracking_1 = + _registerName1("setEnableAutoBreadcrumbTracking:"); + late final _sel_enablePropagateTraceparent1 = + _registerName1("enablePropagateTraceparent"); + late final _sel_setEnablePropagateTraceparent_1 = + _registerName1("setEnablePropagateTraceparent:"); + late final _sel_tracePropagationTargets1 = + _registerName1("tracePropagationTargets"); + late final _sel_setTracePropagationTargets_1 = + _registerName1("setTracePropagationTargets:"); + late final _sel_enableCaptureFailedRequests1 = + _registerName1("enableCaptureFailedRequests"); + late final _sel_setEnableCaptureFailedRequests_1 = + _registerName1("setEnableCaptureFailedRequests:"); + late final _sel_failedRequestStatusCodes1 = + _registerName1("failedRequestStatusCodes"); + late final _sel_setFailedRequestStatusCodes_1 = + _registerName1("setFailedRequestStatusCodes:"); + late final _sel_failedRequestTargets1 = + _registerName1("failedRequestTargets"); + late final _sel_setFailedRequestTargets_1 = + _registerName1("setFailedRequestTargets:"); + late final _sel_enableMetricKit1 = _registerName1("enableMetricKit"); + late final _sel_setEnableMetricKit_1 = _registerName1("setEnableMetricKit:"); + late final _sel_enableMetricKitRawPayload1 = + _registerName1("enableMetricKitRawPayload"); + late final _sel_setEnableMetricKitRawPayload_1 = + _registerName1("setEnableMetricKitRawPayload:"); + late final _sel_enableTimeToFullDisplayTracing1 = + _registerName1("enableTimeToFullDisplayTracing"); + late final _sel_setEnableTimeToFullDisplayTracing_1 = + _registerName1("setEnableTimeToFullDisplayTracing:"); + late final _sel_swiftAsyncStacktraces1 = + _registerName1("swiftAsyncStacktraces"); + late final _sel_setSwiftAsyncStacktraces_1 = + _registerName1("setSwiftAsyncStacktraces:"); + late final _sel_cacheDirectoryPath1 = _registerName1("cacheDirectoryPath"); + late final _sel_setCacheDirectoryPath_1 = + _registerName1("setCacheDirectoryPath:"); + late final _sel_enableSpotlight1 = _registerName1("enableSpotlight"); + late final _sel_setEnableSpotlight_1 = _registerName1("setEnableSpotlight:"); + late final _sel_spotlightUrl1 = _registerName1("spotlightUrl"); + late final _sel_setSpotlightUrl_1 = _registerName1("setSpotlightUrl:"); + late final _sel_strictTraceContinuation1 = + _registerName1("strictTraceContinuation"); + late final _sel_setStrictTraceContinuation_1 = + _registerName1("setStrictTraceContinuation:"); + late final _sel_setOrgId_1 = _registerName1("setOrgId:"); + late final _sel_effectiveOrgId1 = _registerName1("effectiveOrgId"); + late final _class_SentryExperimentalOptions1 = + _getClass1("SentryExperimentalOptions"); + late final _sel_enableUnhandledCPPExceptionsV21 = + _registerName1("enableUnhandledCPPExceptionsV2"); + late final _sel_setEnableUnhandledCPPExceptionsV2_1 = + _registerName1("setEnableUnhandledCPPExceptionsV2:"); + late final _sel_enableWatchdogTerminationsV21 = + _registerName1("enableWatchdogTerminationsV2"); + late final _sel_setEnableWatchdogTerminationsV2_1 = + _registerName1("setEnableWatchdogTerminationsV2:"); + late final _sel_enableReplayNetworkDetailsCapturing1 = + _registerName1("enableReplayNetworkDetailsCapturing"); + late final _sel_setEnableReplayNetworkDetailsCapturing_1 = + _registerName1("setEnableReplayNetworkDetailsCapturing:"); + late final _sel_enableStandaloneAppStartTracing1 = + _registerName1("enableStandaloneAppStartTracing"); + late final _sel_setEnableStandaloneAppStartTracing_1 = + _registerName1("setEnableStandaloneAppStartTracing:"); + late final _sel_validateOptions_1 = _registerName1("validateOptions:"); + late final _sel_experimental1 = _registerName1("experimental"); + ffi.Pointer _objc_msgSend_1142( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1142( + obj, + sel, + ); + } + + late final __objc_msgSend_1142Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1142 = __objc_msgSend_1142Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - bool validateValue_forKeyPath_error_( - ffi.Pointer> ioValue, - NSString? inKeyPath, - ffi.Pointer> outError) { - return _lib._objc_msgSend_225( - _id, - _lib._sel_validateValue_forKeyPath_error_1, - ioValue, - inKeyPath?._id ?? ffi.nullptr, - outError); + late final _sel_setExperimental_1 = _registerName1("setExperimental:"); + void _objc_msgSend_1143( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer value, + ) { + return __objc_msgSend_1143( + obj, + sel, + value, + ); } - NSMutableArray mutableArrayValueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_456(_id, - _lib._sel_mutableArrayValueForKeyPath_1, keyPath?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1143Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1143 = __objc_msgSend_1143Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - NSMutableOrderedSet mutableOrderedSetValueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_475( - _id, - _lib._sel_mutableOrderedSetValueForKeyPath_1, - keyPath?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + late final _sel_isValidSampleRate_1 = _registerName1("isValidSampleRate:"); + late final _sel_defaultEnvironment1 = _registerName1("defaultEnvironment"); + late final _sel_enableMetrics1 = _registerName1("enableMetrics"); + late final _sel_setEnableMetrics_1 = _registerName1("setEnableMetrics:"); + late final _class_SentryDispatchQueueWrapper1 = + _getClass1("SentryDispatchQueueWrapper"); + late final _sel_initWithName_relativePriority_1 = + _registerName1("initWithName:relativePriority:"); + instancetype _objc_msgSend_1144( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + int relativePriority, + ) { + return __objc_msgSend_1144( + obj, + sel, + name, + relativePriority, + ); } - NSMutableSet mutableSetValueForKeyPath_(NSString? keyPath) { - final _ret = _lib._objc_msgSend_476(_id, - _lib._sel_mutableSetValueForKeyPath_1, keyPath?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1144Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + late final __objc_msgSend_1144 = __objc_msgSend_1144Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - NSObject valueForUndefinedKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForUndefinedKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + late final _sel_initWithName_attributes_1 = + _registerName1("initWithName:attributes:"); + instancetype _objc_msgSend_1145( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer attributes, + ) { + return __objc_msgSend_1145( + obj, + sel, + name, + attributes, + ); } - void setValue_forUndefinedKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_setValue_forUndefinedKey_1, value._id, - key?._id ?? ffi.nullptr); + late final __objc_msgSend_1145Ptr = _lookup< + ffi.NativeFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1145 = __objc_msgSend_1145Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initWithHighPriority_1 = + _registerName1("initWithHighPriority:"); + late final _sel_queue1 = _registerName1("queue"); + late final _sel_dispatchAsyncWithBlock_1 = + _registerName1("dispatchAsyncWithBlock:"); + late final _sel_dispatchAsyncOnMainQueueIfNotMainThread_1 = + _registerName1("dispatchAsyncOnMainQueueIfNotMainThread:"); + late final _sel_dispatchSyncOnMainQueue_1 = + _registerName1("dispatchSyncOnMainQueue:"); + late final _sel_dispatchSyncOnMainQueue_timeout_1 = + _registerName1("dispatchSyncOnMainQueue:timeout:"); + void _objc_msgSend_1146( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> block, + double timeout, + ) { + return __objc_msgSend_1146( + obj, + sel, + block, + timeout, + ); } - void setNilValueForKey_(NSString? key) { - _lib._objc_msgSend_192( - _id, _lib._sel_setNilValueForKey_1, key?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1146Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>, ffi.Double)>>('objc_msgSend'); + late final __objc_msgSend_1146 = __objc_msgSend_1146Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>, double)>(); - NSDictionary dictionaryWithValuesForKeys_(NSArray? keys) { - final _ret = _lib._objc_msgSend_477( - _id, _lib._sel_dictionaryWithValuesForKeys_1, keys?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + late final _sel_dispatchAfter_block_1 = + _registerName1("dispatchAfter:block:"); + void _objc_msgSend_1147( + ffi.Pointer obj, + ffi.Pointer sel, + double interval, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_1147( + obj, + sel, + interval, + block, + ); } - void setValuesForKeysWithDictionary_(NSDictionary? keyedValues) { - _lib._objc_msgSend_478(_id, _lib._sel_setValuesForKeysWithDictionary_1, - keyedValues?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1147Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Double, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1147 = __objc_msgSend_1147Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, double, + ffi.Pointer<_ObjCBlock>)>(); - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSObject1, _lib._sel_useStoredAccessor1); + late final _sel_dispatchOnce_block_1 = _registerName1("dispatchOnce:block:"); + void _objc_msgSend_1148( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer predicate, + ffi.Pointer<_ObjCBlock> block, + ) { + return __objc_msgSend_1148( + obj, + sel, + predicate, + block, + ); } - NSObject storedValueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_storedValueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1148Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + late final __objc_msgSend_1148 = __objc_msgSend_1148Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - void takeStoredValue_forKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_takeStoredValue_forKey_1, value._id, - key?._id ?? ffi.nullptr); + late final _sel_shouldDispatchCancel1 = + _registerName1("shouldDispatchCancel"); + late final _sel_shouldCreateDispatchBlock1 = + _registerName1("shouldCreateDispatchBlock"); + late final _sel_initWithOptions_dateProvider_dispatchQueueWrapper_error_1 = + _registerName1( + "initWithOptions:dateProvider:dispatchQueueWrapper:error:"); + instancetype _objc_msgSend_1149( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer options, + ffi.Pointer dateProvider, + ffi.Pointer dispatchQueueWrapper, + ffi.Pointer> error, + ) { + return __objc_msgSend_1149( + obj, + sel, + options, + dateProvider, + dispatchQueueWrapper, + error, + ); } - void takeValue_forKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126( - _id, _lib._sel_takeValue_forKey_1, value._id, key?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1149Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_1149 = __objc_msgSend_1149Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - void takeValue_forKeyPath_(NSObject value, NSString? keyPath) { - _lib._objc_msgSend_126(_id, _lib._sel_takeValue_forKeyPath_1, value._id, - keyPath?._id ?? ffi.nullptr); + late final _class_SentryEnvelope11 = _getClass1("SentryEnvelope"); + late final _sel_initWithId_singleItem_1 = + _registerName1("initWithId:singleItem:"); + instancetype _objc_msgSend_1150( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer id, + ffi.Pointer item, + ) { + return __objc_msgSend_1150( + obj, + sel, + id, + item, + ); } - NSObject handleQueryWithUnboundKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_handleQueryWithUnboundKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } + late final __objc_msgSend_1150Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1150 = __objc_msgSend_1150Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - void handleTakeValue_forUnboundKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_handleTakeValue_forUnboundKey_1, - value._id, key?._id ?? ffi.nullptr); + late final _class_SentryEnvelopeHeader1 = _getClass1("SentryEnvelopeHeader"); + late final _class_SentryTraceContext1 = _getClass1("SentryTraceContext"); + late final _sel_initWithId_traceContext_1 = + _registerName1("initWithId:traceContext:"); + instancetype _objc_msgSend_1151( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer eventId, + ffi.Pointer traceContext, + ) { + return __objc_msgSend_1151( + obj, + sel, + eventId, + traceContext, + ); } - void unableToSetNilForKey_(NSString? key) { - _lib._objc_msgSend_192( - _id, _lib._sel_unableToSetNilForKey_1, key?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1151Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1151 = __objc_msgSend_1151Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - NSDictionary valuesForKeys_(NSArray? keys) { - final _ret = _lib._objc_msgSend_477( - _id, _lib._sel_valuesForKeys_1, keys?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + late final _sel_initWithId_sdkInfo_1 = _registerName1("initWithId:sdkInfo:"); + instancetype _objc_msgSend_1152( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer eventId, + ffi.Pointer sdkInfo, + ) { + return __objc_msgSend_1152( + obj, + sel, + eventId, + sdkInfo, + ); } - void takeValuesFromDictionary_(NSDictionary? properties) { - _lib._objc_msgSend_478(_id, _lib._sel_takeValuesFromDictionary_1, - properties?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1152Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1152 = __objc_msgSend_1152Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - void observeValueForKeyPath_ofObject_change_context_(NSString? keyPath, - NSObject object, NSDictionary? change, ffi.Pointer context) { - _lib._objc_msgSend_479( - _id, - _lib._sel_observeValueForKeyPath_ofObject_change_context_1, - keyPath?._id ?? ffi.nullptr, - object._id, - change?._id ?? ffi.nullptr, - context); + late final _sel_traceContext1 = _registerName1("traceContext"); + ffi.Pointer _objc_msgSend_1153( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1153( + obj, + sel, + ); } - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - _lib._objc_msgSend_130( - _id, - _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - options, - context); - } + late final __objc_msgSend_1153Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1153 = __objc_msgSend_1153Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - _lib._objc_msgSend_131(_id, _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr, context); + late final _sel_sentAt1 = _registerName1("sentAt"); + late final _sel_setSentAt_1 = _registerName1("setSentAt:"); + late final _sel_initWithHeader_singleItem_1 = + _registerName1("initWithHeader:singleItem:"); + instancetype _objc_msgSend_1154( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer header, + ffi.Pointer item, + ) { + return __objc_msgSend_1154( + obj, + sel, + header, + item, + ); } - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1154Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1154 = __objc_msgSend_1154Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - void willChangeValueForKey_(NSString? key) { - _lib._objc_msgSend_192( - _id, _lib._sel_willChangeValueForKey_1, key?._id ?? ffi.nullptr); + late final _sel_initWithId_items_1 = _registerName1("initWithId:items:"); + instancetype _objc_msgSend_1155( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer id, + ffi.Pointer items, + ) { + return __objc_msgSend_1155( + obj, + sel, + id, + items, + ); } - void didChangeValueForKey_(NSString? key) { - _lib._objc_msgSend_192( - _id, _lib._sel_didChangeValueForKey_1, key?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1155Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1155 = __objc_msgSend_1155Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - void willChange_valuesAtIndexes_forKey_( - int changeKind, NSIndexSet? indexes, NSString? key) { - _lib._objc_msgSend_480(_id, _lib._sel_willChange_valuesAtIndexes_forKey_1, - changeKind, indexes?._id ?? ffi.nullptr, key?._id ?? ffi.nullptr); + late final _sel_initWithHeader_items_1 = + _registerName1("initWithHeader:items:"); + instancetype _objc_msgSend_1156( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer header, + ffi.Pointer items, + ) { + return __objc_msgSend_1156( + obj, + sel, + header, + items, + ); } - void didChange_valuesAtIndexes_forKey_( - int changeKind, NSIndexSet? indexes, NSString? key) { - _lib._objc_msgSend_480(_id, _lib._sel_didChange_valuesAtIndexes_forKey_1, - changeKind, indexes?._id ?? ffi.nullptr, key?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1156Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1156 = __objc_msgSend_1156Ptr.asFunction< + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - void willChangeValueForKey_withSetMutation_usingObjects_( - NSString? key, int mutationKind, NSSet? objects) { - _lib._objc_msgSend_481( - _id, - _lib._sel_willChangeValueForKey_withSetMutation_usingObjects_1, - key?._id ?? ffi.nullptr, - mutationKind, - objects?._id ?? ffi.nullptr); + late final _sel_header1 = _registerName1("header"); + ffi.Pointer _objc_msgSend_1157( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1157( + obj, + sel, + ); } - void didChangeValueForKey_withSetMutation_usingObjects_( - NSString? key, int mutationKind, NSSet? objects) { - _lib._objc_msgSend_481( - _id, - _lib._sel_didChangeValueForKey_withSetMutation_usingObjects_1, - key?._id ?? ffi.nullptr, - mutationKind, - objects?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1157Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1157 = __objc_msgSend_1157Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSObject1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + late final _sel_items1 = _registerName1("items"); + ffi.Pointer _objc_msgSend_1158( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer envelope, + ) { + return __objc_msgSend_1158( + obj, + sel, + envelope, + ); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSObject1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } + late final __objc_msgSend_1158Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1158 = __objc_msgSend_1158Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - ffi.Pointer get observationInfo { - return _lib._objc_msgSend_19(_id, _lib._sel_observationInfo1); + late final _sel_getEnvelopesPath_1 = _registerName1("getEnvelopesPath:"); + late final _sel_getAllEnvelopes1 = _registerName1("getAllEnvelopes"); + late final _class_SentryFileContents1 = _getClass1("SentryFileContents"); + late final _sel_contents1 = _registerName1("contents"); + late final _sel_initWithPath_contents_1 = + _registerName1("initWithPath:contents:"); + late final _sel_getOldestEnvelope1 = _registerName1("getOldestEnvelope"); + ffi.Pointer _objc_msgSend_1159( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1159( + obj, + sel, + ); } - set observationInfo(ffi.Pointer value) { - return _lib._objc_msgSend_482(_id, _lib._sel_setObservationInfo_1, value); + late final __objc_msgSend_1159Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1159 = __objc_msgSend_1159Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_deleteOldEnvelopeItems1 = + _registerName1("deleteOldEnvelopeItems"); + late final _sel_deleteAllEnvelopes1 = _registerName1("deleteAllEnvelopes"); + late final _sel_getSentryPathAsURL1 = _registerName1("getSentryPathAsURL"); + late final _sel_moveState_toPreviousState_1 = + _registerName1("moveState:toPreviousState:"); + late final _sel_storeCurrentSession_1 = + _registerName1("storeCurrentSession:"); + void _objc_msgSend_1160( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer session, + ) { + return __objc_msgSend_1160( + obj, + sel, + session, + ); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSObject1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + late final __objc_msgSend_1160Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1160 = __objc_msgSend_1160Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_readCurrentSession1 = _registerName1("readCurrentSession"); + ffi.Pointer _objc_msgSend_1161( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1161( + obj, + sel, + ); } - void setSharedObservers_(NSKeyValueSharedObserversSnapshot? sharedObservers) { - _lib._objc_msgSend_483(_id, _lib._sel_setSharedObservers_1, - sharedObservers?._id ?? ffi.nullptr); + late final __objc_msgSend_1161Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1161 = __objc_msgSend_1161Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_deleteCurrentSession1 = + _registerName1("deleteCurrentSession"); + late final _sel_storeCrashedSession_1 = + _registerName1("storeCrashedSession:"); + late final _sel_readCrashedSession1 = _registerName1("readCrashedSession"); + late final _sel_deleteCrashedSession1 = + _registerName1("deleteCrashedSession"); + late final _sel_storeAbnormalSession_1 = + _registerName1("storeAbnormalSession:"); + late final _sel_readAbnormalSession1 = _registerName1("readAbnormalSession"); + late final _sel_deleteAbnormalSession1 = + _registerName1("deleteAbnormalSession"); + late final _sel_storeTimestampLastInForeground_1 = + _registerName1("storeTimestampLastInForeground:"); + late final _sel_readTimestampLastInForeground1 = + _registerName1("readTimestampLastInForeground"); + late final _sel_deleteTimestampLastInForeground1 = + _registerName1("deleteTimestampLastInForeground"); + late final _class_SentryAppState1 = _getClass1("SentryAppState"); + late final _sel_osVersion1 = _registerName1("osVersion"); + late final _sel_vendorId1 = _registerName1("vendorId"); + late final _sel_isDebugging1 = _registerName1("isDebugging"); + late final _sel_systemBootTimestamp1 = _registerName1("systemBootTimestamp"); + late final _sel_isActive1 = _registerName1("isActive"); + late final _sel_setIsActive_1 = _registerName1("setIsActive:"); + late final _sel_wasTerminated1 = _registerName1("wasTerminated"); + late final _sel_setWasTerminated_1 = _registerName1("setWasTerminated:"); + late final _sel_isANROngoing1 = _registerName1("isANROngoing"); + late final _sel_setIsANROngoing_1 = _registerName1("setIsANROngoing:"); + late final _sel_isSDKRunning1 = _registerName1("isSDKRunning"); + late final _sel_setIsSDKRunning_1 = _registerName1("setIsSDKRunning:"); + late final _sel_initWithReleaseName_osVersion_vendorId_isDebugging_systemBootTimestamp_1 = + _registerName1( + "initWithReleaseName:osVersion:vendorId:isDebugging:systemBootTimestamp:"); + instancetype _objc_msgSend_1162( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer releaseName, + ffi.Pointer osVersion, + ffi.Pointer vendorId, + bool isDebugging, + ffi.Pointer systemBootTimestamp, + ) { + return __objc_msgSend_1162( + obj, + sel, + releaseName, + osVersion, + vendorId, + isDebugging, + systemBootTimestamp, + ); } - NSObject get classForKeyedArchiver { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForKeyedArchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + late final __objc_msgSend_1162Ptr = _lookup< + ffi.NativeFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1162 = __objc_msgSend_1162Ptr.asFunction< + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + bool, + ffi.Pointer)>(); + + late final _sel_storeAppState_1 = _registerName1("storeAppState:"); + void _objc_msgSend_1163( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer appState, + ) { + return __objc_msgSend_1163( + obj, + sel, + appState, + ); } - NSObject replacementObjectForKeyedArchiver_(NSKeyedArchiver? archiver) { - final _ret = _lib._objc_msgSend_496( - _id, - _lib._sel_replacementObjectForKeyedArchiver_1, - archiver?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + late final __objc_msgSend_1163Ptr = _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1163 = __objc_msgSend_1163Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_moveAppStateToPreviousAppState1 = + _registerName1("moveAppStateToPreviousAppState"); + late final _sel_readAppState1 = _registerName1("readAppState"); + ffi.Pointer _objc_msgSend_1164( + ffi.Pointer obj, + ffi.Pointer sel, + ) { + return __objc_msgSend_1164( + obj, + sel, + ); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSObject1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + late final __objc_msgSend_1164Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1164 = __objc_msgSend_1164Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_readPreviousAppState1 = + _registerName1("readPreviousAppState"); + late final _sel_deleteAppState1 = _registerName1("deleteAppState"); + late final _sel_moveBreadcrumbsToPreviousBreadcrumbs1 = + _registerName1("moveBreadcrumbsToPreviousBreadcrumbs"); + late final _sel_readPreviousBreadcrumbs1 = + _registerName1("readPreviousBreadcrumbs"); + late final _sel_readTimezoneOffset1 = _registerName1("readTimezoneOffset"); + late final _sel_storeTimezoneOffset_1 = + _registerName1("storeTimezoneOffset:"); + late final _sel_deleteTimezoneOffset1 = + _registerName1("deleteTimezoneOffset"); + late final _sel_storeAppHangEvent_1 = _registerName1("storeAppHangEvent:"); + late final _sel_readAppHangEvent1 = _registerName1("readAppHangEvent"); + late final _sel_appHangEventExists1 = _registerName1("appHangEventExists"); + late final _sel_deleteAppHangEvent1 = _registerName1("deleteAppHangEvent"); + late final _sel_createDirectoryAtPath_error_1 = + _registerName1("createDirectoryAtPath:error:"); + late final _sel_deleteAllFolders1 = _registerName1("deleteAllFolders"); + late final _sel_removeFileAtPath_1 = _registerName1("removeFileAtPath:"); + late final _sel_allFilesInFolder_1 = _registerName1("allFilesInFolder:"); + late final _sel_isDirectory_1 = _registerName1("isDirectory:"); + late final _sel_readDataFromPath_error_1 = + _registerName1("readDataFromPath:error:"); + ffi.Pointer _objc_msgSend_1165( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer path, + ffi.Pointer> error, + ) { + return __objc_msgSend_1165( + obj, + sel, + path, + error, + ); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSObject1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + late final __objc_msgSend_1165Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); + late final __objc_msgSend_1165 = __objc_msgSend_1165Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); + + late final _sel_writeData_toPath_1 = _registerName1("writeData:toPath:"); + bool _objc_msgSend_1166( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer data, + ffi.Pointer toPath, + ) { + return __objc_msgSend_1166( + obj, + sel, + data, + toPath, + ); } - void performSelectorOnMainThread_withObject_waitUntilDone_modes_( - ffi.Pointer aSelector, NSObject arg, bool wait, NSArray? array) { - _lib._objc_msgSend_497( - _id, - _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_1, - aSelector, - arg._id, - wait, - array?._id ?? ffi.nullptr); + late final __objc_msgSend_1166Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1166 = __objc_msgSend_1166Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); +} + +class _ObjCWrapper implements ffi.Finalizable { + final ffi.Pointer _id; + final SentryCocoa _lib; + bool _pendingRelease; + + _ObjCWrapper._(this._id, this._lib, + {bool retain = false, bool release = false}) + : _pendingRelease = release { + if (retain) { + _lib._objc_retain(_id.cast()); + } + if (release) { + _lib._objc_releaseFinalizer2.attach(this, _id.cast(), detach: this); + } } - void performSelectorOnMainThread_withObject_waitUntilDone_( - ffi.Pointer aSelector, NSObject arg, bool wait) { - _lib._objc_msgSend_498( - _id, - _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_1, - aSelector, - arg._id, - wait); + /// Releases the reference to the underlying ObjC object held by this wrapper. + /// Throws a StateError if this wrapper doesn't currently hold a reference. + void release() { + if (_pendingRelease) { + _pendingRelease = false; + _lib._objc_release(_id.cast()); + _lib._objc_releaseFinalizer2.detach(this); + } else { + throw StateError( + 'Released an ObjC object that was unowned or already released.'); + } } - void performSelector_onThread_withObject_waitUntilDone_modes_( - ffi.Pointer aSelector, - NSThread? thr, - NSObject arg, - bool wait, - NSArray? array) { - _lib._objc_msgSend_515( - _id, - _lib._sel_performSelector_onThread_withObject_waitUntilDone_modes_1, - aSelector, - thr?._id ?? ffi.nullptr, - arg._id, - wait, - array?._id ?? ffi.nullptr); + @override + bool operator ==(Object other) { + return other is _ObjCWrapper && _id == other._id; } - void performSelector_onThread_withObject_waitUntilDone_( - ffi.Pointer aSelector, NSThread? thr, NSObject arg, bool wait) { - _lib._objc_msgSend_516( - _id, - _lib._sel_performSelector_onThread_withObject_waitUntilDone_1, - aSelector, - thr?._id ?? ffi.nullptr, - arg._id, - wait); + @override + int get hashCode => _id.hashCode; + + /// Return a pointer to this object. + ffi.Pointer get pointer => _id; +} + +class NSObject extends _ObjCWrapper { + NSObject._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSObject] that points to the same underlying object as [other]. + static NSObject castFrom(T other) { + return NSObject._(other._id, other._lib, retain: true, release: true); } - void performSelectorInBackground_withObject_( - ffi.Pointer aSelector, NSObject arg) { - _lib._objc_msgSend_84(_id, - _lib._sel_performSelectorInBackground_withObject_1, aSelector, arg._id); + /// Returns a [NSObject] that wraps the given raw object pointer. + static NSObject castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSObject._(other, lib, retain: retain, release: release); } - NSObject get classForArchiver { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForArchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSObject]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSObject1); } - NSObject replacementObjectForArchiver_(NSArchiver? archiver) { - final _ret = _lib._objc_msgSend_519(_id, - _lib._sel_replacementObjectForArchiver_1, archiver?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static void load(SentryCocoa _lib) { + _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_load1); } - NSObject get classForPortCoder { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForPortCoder1); - return NSObject._(_ret, _lib, retain: true, release: true); + static void initialize(SentryCocoa _lib) { + _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_initialize1); } - NSObject replacementObjectForPortCoder_(NSPortCoder? coder) { - final _ret = _lib._objc_msgSend_557(_id, - _lib._sel_replacementObjectForPortCoder_1, coder?._id ?? ffi.nullptr); + NSObject init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSObject._(_ret, _lib, retain: true, release: true); } - NSClassDescription? get classDescription { - final _ret = _lib._objc_msgSend_560(_id, _lib._sel_classDescription1); - return _ret.address == 0 - ? null - : NSClassDescription._(_ret, _lib, retain: true, release: true); + static NSObject new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_new1); + return NSObject._(_ret, _lib, retain: false, release: true); } - NSArray? get attributeKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attributeKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSObject allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSObject1, _lib._sel_allocWithZone_1, zone); + return NSObject._(_ret, _lib, retain: false, release: true); } - NSArray? get toOneRelationshipKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toOneRelationshipKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSObject alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_alloc1); + return NSObject._(_ret, _lib, retain: false, release: true); } - NSArray? get toManyRelationshipKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toManyRelationshipKeys1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + void dealloc() { + _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); } - NSString inverseForRelationshipKey_(NSString? relationshipKey) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_inverseForRelationshipKey_1, - relationshipKey?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + void finalize() { + _lib._objc_msgSend_1(_id, _lib._sel_finalize1); } - NSObject scriptingValueForSpecifier_( - NSScriptObjectSpecifier? objectSpecifier) { - final _ret = _lib._objc_msgSend_604( - _id, - _lib._sel_scriptingValueForSpecifier_1, - objectSpecifier?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject copy() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_copy1); + return NSObject._(_ret, _lib, retain: false, release: true); } - NSDictionary? get scriptingProperties { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_scriptingProperties1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSObject mutableCopy() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_mutableCopy1); + return NSObject._(_ret, _lib, retain: false, release: true); } - set scriptingProperties(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setScriptingProperties_1, value?._id ?? ffi.nullptr); + static NSObject copyWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSObject1, _lib._sel_copyWithZone_1, zone); + return NSObject._(_ret, _lib, retain: false, release: true); } - NSObject copyScriptingValue_forKey_withProperties_( - NSObject value, NSString? key, NSDictionary? properties) { - final _ret = _lib._objc_msgSend_605( - _id, - _lib._sel_copyScriptingValue_forKey_withProperties_1, - value._id, - key?._id ?? ffi.nullptr, - properties?._id ?? ffi.nullptr); + static NSObject mutableCopyWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSObject1, _lib._sel_mutableCopyWithZone_1, zone); return NSObject._(_ret, _lib, retain: false, release: true); } - NSObject - newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_( - NSObject objectClass, - NSString? key, - NSObject contentsValue, - NSDictionary? properties) { - final _ret = _lib._objc_msgSend_606( - _id, - _lib._sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_1, - objectClass._id, - key?._id ?? ffi.nullptr, - contentsValue._id, - properties?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: false, release: true); + static bool instancesRespondToSelector_( + SentryCocoa _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_4(_lib._class_NSObject1, + _lib._sel_instancesRespondToSelector_1, aSelector); } - int get classCode { - return _lib._objc_msgSend_197(_id, _lib._sel_classCode1); + static bool conformsToProtocol_(SentryCocoa _lib, Protocol? protocol) { + return _lib._objc_msgSend_5(_lib._class_NSObject1, + _lib._sel_conformsToProtocol_1, protocol?._id ?? ffi.nullptr); } - NSString? get className { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_className1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + ffi.Pointer> methodForSelector_( + ffi.Pointer aSelector) { + return _lib._objc_msgSend_6(_id, _lib._sel_methodForSelector_1, aSelector); } - NSObject valueAtIndex_inPropertyWithKey_(int index, NSString? key) { - final _ret = _lib._objc_msgSend_607( - _id, - _lib._sel_valueAtIndex_inPropertyWithKey_1, - index, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static ffi.Pointer> + instanceMethodForSelector_( + SentryCocoa _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_6(_lib._class_NSObject1, + _lib._sel_instanceMethodForSelector_1, aSelector); } - NSObject valueWithName_inPropertyWithKey_(NSString? name, NSString? key) { - final _ret = _lib._objc_msgSend_165( - _id, - _lib._sel_valueWithName_inPropertyWithKey_1, - name?._id ?? ffi.nullptr, - key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + void doesNotRecognizeSelector_(ffi.Pointer aSelector) { + _lib._objc_msgSend_7(_id, _lib._sel_doesNotRecognizeSelector_1, aSelector); } - NSObject valueWithUniqueID_inPropertyWithKey_( - NSObject uniqueID, NSString? key) { - final _ret = _lib._objc_msgSend_289( - _id, - _lib._sel_valueWithUniqueID_inPropertyWithKey_1, - uniqueID._id, - key?._id ?? ffi.nullptr); + NSObject forwardingTargetForSelector_(ffi.Pointer aSelector) { + final _ret = _lib._objc_msgSend_8( + _id, _lib._sel_forwardingTargetForSelector_1, aSelector); return NSObject._(_ret, _lib, retain: true, release: true); } - void insertValue_atIndex_inPropertyWithKey_( - NSObject value, int index, NSString? key) { - _lib._objc_msgSend_608( - _id, - _lib._sel_insertValue_atIndex_inPropertyWithKey_1, - value._id, - index, - key?._id ?? ffi.nullptr); - } - - void removeValueAtIndex_fromPropertyWithKey_(int index, NSString? key) { - _lib._objc_msgSend_609( - _id, - _lib._sel_removeValueAtIndex_fromPropertyWithKey_1, - index, - key?._id ?? ffi.nullptr); + void forwardInvocation_(NSInvocation? anInvocation) { + _lib._objc_msgSend_394( + _id, _lib._sel_forwardInvocation_1, anInvocation?._id ?? ffi.nullptr); } - void replaceValueAtIndex_inPropertyWithKey_withValue_( - int index, NSString? key, NSObject value) { - _lib._objc_msgSend_610( - _id, - _lib._sel_replaceValueAtIndex_inPropertyWithKey_withValue_1, - index, - key?._id ?? ffi.nullptr, - value._id); + NSMethodSignature methodSignatureForSelector_( + ffi.Pointer aSelector) { + final _ret = _lib._objc_msgSend_395( + _id, _lib._sel_methodSignatureForSelector_1, aSelector); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); } - void insertValue_inPropertyWithKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_insertValue_inPropertyWithKey_1, - value._id, key?._id ?? ffi.nullptr); + static NSMethodSignature instanceMethodSignatureForSelector_( + SentryCocoa _lib, ffi.Pointer aSelector) { + final _ret = _lib._objc_msgSend_395(_lib._class_NSObject1, + _lib._sel_instanceMethodSignatureForSelector_1, aSelector); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); } - NSObject coerceValue_forKey_(NSObject value, NSString? key) { - final _ret = _lib._objc_msgSend_289(_id, _lib._sel_coerceValue_forKey_1, - value._id, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + bool allowsWeakReference() { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsWeakReference1); } - NSScriptObjectSpecifier? get objectSpecifier { - final _ret = _lib._objc_msgSend_591(_id, _lib._sel_objectSpecifier1); - return _ret.address == 0 - ? null - : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + bool retainWeakReference() { + return _lib._objc_msgSend_12(_id, _lib._sel_retainWeakReference1); } - NSArray indicesOfObjectsByEvaluatingObjectSpecifier_( - NSScriptObjectSpecifier? specifier) { - final _ret = _lib._objc_msgSend_611( - _id, - _lib._sel_indicesOfObjectsByEvaluatingObjectSpecifier_1, - specifier?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static bool isSubclassOfClass_(SentryCocoa _lib, NSObject aClass) { + return _lib._objc_msgSend_0( + _lib._class_NSObject1, _lib._sel_isSubclassOfClass_1, aClass._id); } - bool isEqualTo_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isEqualTo_1, object._id); + static bool resolveClassMethod_(SentryCocoa _lib, ffi.Pointer sel) { + return _lib._objc_msgSend_4( + _lib._class_NSObject1, _lib._sel_resolveClassMethod_1, sel); } - bool isLessThanOrEqualTo_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_isLessThanOrEqualTo_1, object._id); + static bool resolveInstanceMethod_( + SentryCocoa _lib, ffi.Pointer sel) { + return _lib._objc_msgSend_4( + _lib._class_NSObject1, _lib._sel_resolveInstanceMethod_1, sel); } - bool isLessThan_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isLessThan_1, object._id); + static int hash(SentryCocoa _lib) { + return _lib._objc_msgSend_10(_lib._class_NSObject1, _lib._sel_hash1); } - bool isGreaterThanOrEqualTo_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_isGreaterThanOrEqualTo_1, object._id); + static NSObject superclass(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_superclass1); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool isGreaterThan_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isGreaterThan_1, object._id); + static NSObject class1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSObject1, _lib._sel_class1); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool isNotEqualTo_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isNotEqualTo_1, object._id); + static NSString description(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_20(_lib._class_NSObject1, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - bool doesContain_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_doesContain_1, object._id); + static NSString debugDescription(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_20( + _lib._class_NSObject1, _lib._sel_debugDescription1); + return NSString._(_ret, _lib, retain: true, release: true); } - bool isLike_(NSString? object) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isLike_1, object?._id ?? ffi.nullptr); + static int version(SentryCocoa _lib) { + return _lib._objc_msgSend_78(_lib._class_NSObject1, _lib._sel_version1); } - bool isCaseInsensitiveLike_(NSString? object) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isCaseInsensitiveLike_1, object?._id ?? ffi.nullptr); + static void setVersion_(SentryCocoa _lib, int aVersion) { + _lib._objc_msgSend_396( + _lib._class_NSObject1, _lib._sel_setVersion_1, aVersion); } - bool scriptingIsEqualTo_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_scriptingIsEqualTo_1, object._id); + NSObject get classForCoder { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForCoder1); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool scriptingIsLessThanOrEqualTo_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_scriptingIsLessThanOrEqualTo_1, object._id); + NSObject replacementObjectForCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_replacementObjectForCoder_1, coder?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool scriptingIsLessThan_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_scriptingIsLessThan_1, object._id); + NSObject awakeAfterUsingCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_awakeAfterUsingCoder_1, coder?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: false, release: true); } - bool scriptingIsGreaterThanOrEqualTo_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_scriptingIsGreaterThanOrEqualTo_1, object._id); + static void poseAsClass_(SentryCocoa _lib, NSObject aClass) { + _lib._objc_msgSend_15( + _lib._class_NSObject1, _lib._sel_poseAsClass_1, aClass._id); } - bool scriptingIsGreaterThan_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_scriptingIsGreaterThan_1, object._id); + NSObject get autoContentAccessingProxy { + final _ret = + _lib._objc_msgSend_2(_id, _lib._sel_autoContentAccessingProxy1); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool scriptingBeginsWith_(NSObject object) { - return _lib._objc_msgSend_0( - _id, _lib._sel_scriptingBeginsWith_1, object._id); + void + attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_( + NSError? error, + int recoveryOptionIndex, + NSObject delegate, + ffi.Pointer didRecoverSelector, + ffi.Pointer contextInfo) { + _lib._objc_msgSend_397( + _id, + _lib._sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1, + error?._id ?? ffi.nullptr, + recoveryOptionIndex, + delegate._id, + didRecoverSelector, + contextInfo); } - bool scriptingEndsWith_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_scriptingEndsWith_1, object._id); + bool attemptRecoveryFromError_optionIndex_( + NSError? error, int recoveryOptionIndex) { + return _lib._objc_msgSend_398( + _id, + _lib._sel_attemptRecoveryFromError_optionIndex_1, + error?._id ?? ffi.nullptr, + recoveryOptionIndex); } - bool scriptingContains_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_scriptingContains_1, object._id); + void performSelector_withObject_afterDelay_inModes_( + ffi.Pointer aSelector, + NSObject anArgument, + double delay, + NSArray? modes) { + _lib._objc_msgSend_399( + _id, + _lib._sel_performSelector_withObject_afterDelay_inModes_1, + aSelector, + anArgument._id, + delay, + modes?._id ?? ffi.nullptr); } -} - -final class ObjCSel extends ffi.Opaque {} - -final class ObjCObject extends ffi.Opaque {} - -typedef instancetype = ffi.Pointer; - -final class _NSZone extends ffi.Opaque {} - -class Protocol extends _ObjCWrapper { - Protocol._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [Protocol] that points to the same underlying object as [other]. - static Protocol castFrom(T other) { - return Protocol._(other._id, other._lib, retain: true, release: true); + void performSelector_withObject_afterDelay_( + ffi.Pointer aSelector, NSObject anArgument, double delay) { + _lib._objc_msgSend_400( + _id, + _lib._sel_performSelector_withObject_afterDelay_1, + aSelector, + anArgument._id, + delay); } - /// Returns a [Protocol] that wraps the given raw object pointer. - static Protocol castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return Protocol._(other, lib, retain: retain, release: release); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSObject1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - /// Returns whether [obj] is an instance of [Protocol]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_Protocol1); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSObject1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } -} - -class NSInvocation extends NSObject { - NSInvocation._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSInvocation] that points to the same underlying object as [other]. - static NSInvocation castFrom(T other) { - return NSInvocation._(other._id, other._lib, retain: true, release: true); + void URL_resourceDataDidBecomeAvailable_(NSURL? sender, NSData? newBytes) { + _lib._objc_msgSend_401(_id, _lib._sel_URL_resourceDataDidBecomeAvailable_1, + sender?._id ?? ffi.nullptr, newBytes?._id ?? ffi.nullptr); } - /// Returns a [NSInvocation] that wraps the given raw object pointer. - static NSInvocation castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSInvocation._(other, lib, retain: retain, release: release); + void URLResourceDidFinishLoading_(NSURL? sender) { + _lib._objc_msgSend_402(_id, _lib._sel_URLResourceDidFinishLoading_1, + sender?._id ?? ffi.nullptr); } - /// Returns whether [obj] is an instance of [NSInvocation]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSInvocation1); + void URLResourceDidCancelLoading_(NSURL? sender) { + _lib._objc_msgSend_402(_id, _lib._sel_URLResourceDidCancelLoading_1, + sender?._id ?? ffi.nullptr); } - static NSInvocation invocationWithMethodSignature_( - SentryCocoa _lib, NSMethodSignature? sig) { - final _ret = _lib._objc_msgSend_387(_lib._class_NSInvocation1, - _lib._sel_invocationWithMethodSignature_1, sig?._id ?? ffi.nullptr); - return NSInvocation._(_ret, _lib, retain: true, release: true); + void URL_resourceDidFailLoadingWithReason_(NSURL? sender, NSString? reason) { + _lib._objc_msgSend_403( + _id, + _lib._sel_URL_resourceDidFailLoadingWithReason_1, + sender?._id ?? ffi.nullptr, + reason?._id ?? ffi.nullptr); } - NSMethodSignature? get methodSignature { - final _ret = _lib._objc_msgSend_388(_id, _lib._sel_methodSignature1); - return _ret.address == 0 - ? null - : NSMethodSignature._(_ret, _lib, retain: true, release: true); + bool fileManager_shouldProceedAfterError_( + NSFileManager? fm, NSDictionary? errorInfo) { + return _lib._objc_msgSend_452( + _id, + _lib._sel_fileManager_shouldProceedAfterError_1, + fm?._id ?? ffi.nullptr, + errorInfo?._id ?? ffi.nullptr); } - void retainArguments() { - _lib._objc_msgSend_1(_id, _lib._sel_retainArguments1); + void fileManager_willProcessPath_(NSFileManager? fm, NSString? path) { + _lib._objc_msgSend_453(_id, _lib._sel_fileManager_willProcessPath_1, + fm?._id ?? ffi.nullptr, path?._id ?? ffi.nullptr); } - bool get argumentsRetained { - return _lib._objc_msgSend_12(_id, _lib._sel_argumentsRetained1); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSObject1, _lib._sel_accessInstanceVariablesDirectly1); } - NSObject get target { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_target1); + NSObject valueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } - set target(NSObject value) { - return _lib._objc_msgSend_389(_id, _lib._sel_setTarget_1, value._id); - } - - ffi.Pointer get selector { - return _lib._objc_msgSend_390(_id, _lib._sel_selector1); + void setValue_forKey_(NSObject value, NSString? key) { + _lib._objc_msgSend_126( + _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); } - set selector(ffi.Pointer value) { - return _lib._objc_msgSend_391(_id, _lib._sel_setSelector_1, value); + bool validateValue_forKey_error_(ffi.Pointer> ioValue, + NSString? inKey, ffi.Pointer> outError) { + return _lib._objc_msgSend_225(_id, _lib._sel_validateValue_forKey_error_1, + ioValue, inKey?._id ?? ffi.nullptr, outError); } - void getReturnValue_(ffi.Pointer retLoc) { - _lib._objc_msgSend_47(_id, _lib._sel_getReturnValue_1, retLoc); + NSMutableArray mutableArrayValueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_470( + _id, _lib._sel_mutableArrayValueForKey_1, key?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - void setReturnValue_(ffi.Pointer retLoc) { - _lib._objc_msgSend_47(_id, _lib._sel_setReturnValue_1, retLoc); + NSMutableOrderedSet mutableOrderedSetValueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_489( + _id, _lib._sel_mutableOrderedSetValueForKey_1, key?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - void getArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { - _lib._objc_msgSend_392( - _id, _lib._sel_getArgument_atIndex_1, argumentLocation, idx); + NSMutableSet mutableSetValueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_490( + _id, _lib._sel_mutableSetValueForKey_1, key?._id ?? ffi.nullptr); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - void setArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { - _lib._objc_msgSend_392( - _id, _lib._sel_setArgument_atIndex_1, argumentLocation, idx); + NSObject valueForKeyPath_(NSString? keyPath) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_valueForKeyPath_1, keyPath?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - void invoke() { - _lib._objc_msgSend_1(_id, _lib._sel_invoke1); + void setValue_forKeyPath_(NSObject value, NSString? keyPath) { + _lib._objc_msgSend_126(_id, _lib._sel_setValue_forKeyPath_1, value._id, + keyPath?._id ?? ffi.nullptr); } - void invokeWithTarget_(NSObject target) { - _lib._objc_msgSend_15(_id, _lib._sel_invokeWithTarget_1, target._id); + bool validateValue_forKeyPath_error_( + ffi.Pointer> ioValue, + NSString? inKeyPath, + ffi.Pointer> outError) { + return _lib._objc_msgSend_225( + _id, + _lib._sel_validateValue_forKeyPath_error_1, + ioValue, + inKeyPath?._id ?? ffi.nullptr, + outError); } - void invokeUsingIMP_( - ffi.Pointer> imp) { - _lib._objc_msgSend_393(_id, _lib._sel_invokeUsingIMP_1, imp); + NSMutableArray mutableArrayValueForKeyPath_(NSString? keyPath) { + final _ret = _lib._objc_msgSend_470(_id, + _lib._sel_mutableArrayValueForKeyPath_1, keyPath?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - @override - NSInvocation init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSInvocation._(_ret, _lib, retain: true, release: true); + NSMutableOrderedSet mutableOrderedSetValueForKeyPath_(NSString? keyPath) { + final _ret = _lib._objc_msgSend_489( + _id, + _lib._sel_mutableOrderedSetValueForKeyPath_1, + keyPath?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSInvocation new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSInvocation1, _lib._sel_new1); - return NSInvocation._(_ret, _lib, retain: false, release: true); + NSMutableSet mutableSetValueForKeyPath_(NSString? keyPath) { + final _ret = _lib._objc_msgSend_490(_id, + _lib._sel_mutableSetValueForKeyPath_1, keyPath?._id ?? ffi.nullptr); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSInvocation allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSInvocation1, _lib._sel_allocWithZone_1, zone); - return NSInvocation._(_ret, _lib, retain: false, release: true); + NSObject valueForUndefinedKey_(NSString? key) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_valueForUndefinedKey_1, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSInvocation alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSInvocation1, _lib._sel_alloc1); - return NSInvocation._(_ret, _lib, retain: false, release: true); + void setValue_forUndefinedKey_(NSObject value, NSString? key) { + _lib._objc_msgSend_126(_id, _lib._sel_setValue_forUndefinedKey_1, value._id, + key?._id ?? ffi.nullptr); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSInvocation1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + void setNilValueForKey_(NSString? key) { + _lib._objc_msgSend_192( + _id, _lib._sel_setNilValueForKey_1, key?._id ?? ffi.nullptr); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSInvocation1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + NSDictionary dictionaryWithValuesForKeys_(NSArray? keys) { + final _ret = _lib._objc_msgSend_491( + _id, _lib._sel_dictionaryWithValuesForKeys_1, keys?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSInvocation1, _lib._sel_accessInstanceVariablesDirectly1); + void setValuesForKeysWithDictionary_(NSDictionary? keyedValues) { + _lib._objc_msgSend_492(_id, _lib._sel_setValuesForKeysWithDictionary_1, + keyedValues?._id ?? ffi.nullptr); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSInvocation1, _lib._sel_useStoredAccessor1); + _lib._class_NSObject1, _lib._sel_useStoredAccessor1); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSInvocation1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSObject storedValueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_storedValueForKey_1, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSInvocation1, - _lib._sel_automaticallyNotifiesObserversForKey_1, + void takeStoredValue_forKey_(NSObject value, NSString? key) { + _lib._objc_msgSend_126(_id, _lib._sel_takeStoredValue_forKey_1, value._id, key?._id ?? ffi.nullptr); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSInvocation1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + void takeValue_forKey_(NSObject value, NSString? key) { + _lib._objc_msgSend_126( + _id, _lib._sel_takeValue_forKey_1, value._id, key?._id ?? ffi.nullptr); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSInvocation1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + void takeValue_forKeyPath_(NSObject value, NSString? keyPath) { + _lib._objc_msgSend_126(_id, _lib._sel_takeValue_forKeyPath_1, value._id, + keyPath?._id ?? ffi.nullptr); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSInvocation1, _lib._sel_classForKeyedUnarchiver1); + NSObject handleQueryWithUnboundKey_(NSString? key) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_handleQueryWithUnboundKey_1, key?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } -} -class NSMethodSignature extends NSObject { - NSMethodSignature._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + void handleTakeValue_forUnboundKey_(NSObject value, NSString? key) { + _lib._objc_msgSend_126(_id, _lib._sel_handleTakeValue_forUnboundKey_1, + value._id, key?._id ?? ffi.nullptr); + } - /// Returns a [NSMethodSignature] that points to the same underlying object as [other]. - static NSMethodSignature castFrom(T other) { - return NSMethodSignature._(other._id, other._lib, - retain: true, release: true); + void unableToSetNilForKey_(NSString? key) { + _lib._objc_msgSend_192( + _id, _lib._sel_unableToSetNilForKey_1, key?._id ?? ffi.nullptr); } - /// Returns a [NSMethodSignature] that wraps the given raw object pointer. - static NSMethodSignature castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMethodSignature._(other, lib, retain: retain, release: release); + NSDictionary valuesForKeys_(NSArray? keys) { + final _ret = _lib._objc_msgSend_491( + _id, _lib._sel_valuesForKeys_1, keys?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSMethodSignature]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMethodSignature1); - } - - static NSMethodSignature signatureWithObjCTypes_( - SentryCocoa _lib, ffi.Pointer types) { - final _ret = _lib._objc_msgSend_9(_lib._class_NSMethodSignature1, - _lib._sel_signatureWithObjCTypes_1, types); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); - } - - int get numberOfArguments { - return _lib._objc_msgSend_10(_id, _lib._sel_numberOfArguments1); - } - - ffi.Pointer getArgumentTypeAtIndex_(int idx) { - return _lib._objc_msgSend_11(_id, _lib._sel_getArgumentTypeAtIndex_1, idx); - } - - int get frameLength { - return _lib._objc_msgSend_10(_id, _lib._sel_frameLength1); - } - - bool isOneway() { - return _lib._objc_msgSend_12(_id, _lib._sel_isOneway1); + void takeValuesFromDictionary_(NSDictionary? properties) { + _lib._objc_msgSend_492(_id, _lib._sel_takeValuesFromDictionary_1, + properties?._id ?? ffi.nullptr); } - ffi.Pointer get methodReturnType { - return _lib._objc_msgSend_13(_id, _lib._sel_methodReturnType1); + void observeValueForKeyPath_ofObject_change_context_(NSString? keyPath, + NSObject object, NSDictionary? change, ffi.Pointer context) { + _lib._objc_msgSend_493( + _id, + _lib._sel_observeValueForKeyPath_ofObject_change_context_1, + keyPath?._id ?? ffi.nullptr, + object._id, + change?._id ?? ffi.nullptr, + context); } - int get methodReturnLength { - return _lib._objc_msgSend_10(_id, _lib._sel_methodReturnLength1); + void addObserver_forKeyPath_options_context_(NSObject? observer, + NSString? keyPath, int options, ffi.Pointer context) { + _lib._objc_msgSend_130( + _id, + _lib._sel_addObserver_forKeyPath_options_context_1, + observer?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + options, + context); } - @override - NSMethodSignature init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); + void removeObserver_forKeyPath_context_( + NSObject? observer, NSString? keyPath, ffi.Pointer context) { + _lib._objc_msgSend_131(_id, _lib._sel_removeObserver_forKeyPath_context_1, + observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr, context); } - static NSMethodSignature new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_new1); - return NSMethodSignature._(_ret, _lib, retain: false, release: true); + void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { + _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, + observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); } - static NSMethodSignature allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSMethodSignature1, _lib._sel_allocWithZone_1, zone); - return NSMethodSignature._(_ret, _lib, retain: false, release: true); + void willChangeValueForKey_(NSString? key) { + _lib._objc_msgSend_192( + _id, _lib._sel_willChangeValueForKey_1, key?._id ?? ffi.nullptr); } - static NSMethodSignature alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_alloc1); - return NSMethodSignature._(_ret, _lib, retain: false, release: true); + void didChangeValueForKey_(NSString? key) { + _lib._objc_msgSend_192( + _id, _lib._sel_didChangeValueForKey_1, key?._id ?? ffi.nullptr); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSMethodSignature1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + void willChange_valuesAtIndexes_forKey_( + int changeKind, NSIndexSet? indexes, NSString? key) { + _lib._objc_msgSend_494(_id, _lib._sel_willChange_valuesAtIndexes_forKey_1, + changeKind, indexes?._id ?? ffi.nullptr, key?._id ?? ffi.nullptr); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMethodSignature1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + void didChange_valuesAtIndexes_forKey_( + int changeKind, NSIndexSet? indexes, NSString? key) { + _lib._objc_msgSend_494(_id, _lib._sel_didChange_valuesAtIndexes_forKey_1, + changeKind, indexes?._id ?? ffi.nullptr, key?._id ?? ffi.nullptr); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMethodSignature1, - _lib._sel_accessInstanceVariablesDirectly1); + void willChangeValueForKey_withSetMutation_usingObjects_( + NSString? key, int mutationKind, NSSet? objects) { + _lib._objc_msgSend_495( + _id, + _lib._sel_willChangeValueForKey_withSetMutation_usingObjects_1, + key?._id ?? ffi.nullptr, + mutationKind, + objects?._id ?? ffi.nullptr); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMethodSignature1, _lib._sel_useStoredAccessor1); + void didChangeValueForKey_withSetMutation_usingObjects_( + NSString? key, int mutationKind, NSSet? objects) { + _lib._objc_msgSend_495( + _id, + _lib._sel_didChangeValueForKey_withSetMutation_usingObjects_1, + key?._id ?? ffi.nullptr, + mutationKind, + objects?._id ?? ffi.nullptr); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMethodSignature1, + _lib._class_NSObject1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -32073,314 +33824,539 @@ class NSMethodSignature extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSMethodSignature1, + _lib._class_NSObject1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } + ffi.Pointer get observationInfo { + return _lib._objc_msgSend_19(_id, _lib._sel_observationInfo1); + } + + set observationInfo(ffi.Pointer value) { + return _lib._objc_msgSend_496(_id, _lib._sel_setObservationInfo_1, value); + } + static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSMethodSignature1, + _lib._class_NSObject1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } + void setSharedObservers_(NSKeyValueSharedObserversSnapshot? sharedObservers) { + _lib._objc_msgSend_497(_id, _lib._sel_setSharedObservers_1, + sharedObservers?._id ?? ffi.nullptr); + } + + NSObject get classForKeyedArchiver { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForKeyedArchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject replacementObjectForKeyedArchiver_(NSKeyedArchiver? archiver) { + final _ret = _lib._objc_msgSend_509( + _id, + _lib._sel_replacementObjectForKeyedArchiver_1, + archiver?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMethodSignature1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSObject1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMethodSignature1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSObject1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } -} -class NSSet extends NSObject { - NSSet._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + void performSelectorOnMainThread_withObject_waitUntilDone_modes_( + ffi.Pointer aSelector, NSObject arg, bool wait, NSArray? array) { + _lib._objc_msgSend_510( + _id, + _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_1, + aSelector, + arg._id, + wait, + array?._id ?? ffi.nullptr); + } - /// Returns a [NSSet] that points to the same underlying object as [other]. - static NSSet castFrom(T other) { - return NSSet._(other._id, other._lib, retain: true, release: true); + void performSelectorOnMainThread_withObject_waitUntilDone_( + ffi.Pointer aSelector, NSObject arg, bool wait) { + _lib._objc_msgSend_511( + _id, + _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_1, + aSelector, + arg._id, + wait); } - /// Returns a [NSSet] that wraps the given raw object pointer. - static NSSet castFromPointer(SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSSet._(other, lib, retain: retain, release: release); + void performSelector_onThread_withObject_waitUntilDone_modes_( + ffi.Pointer aSelector, + NSThread? thr, + NSObject arg, + bool wait, + NSArray? array) { + _lib._objc_msgSend_527( + _id, + _lib._sel_performSelector_onThread_withObject_waitUntilDone_modes_1, + aSelector, + thr?._id ?? ffi.nullptr, + arg._id, + wait, + array?._id ?? ffi.nullptr); } - /// Returns whether [obj] is an instance of [NSSet]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSSet1); + void performSelector_onThread_withObject_waitUntilDone_( + ffi.Pointer aSelector, NSThread? thr, NSObject arg, bool wait) { + _lib._objc_msgSend_528( + _id, + _lib._sel_performSelector_onThread_withObject_waitUntilDone_1, + aSelector, + thr?._id ?? ffi.nullptr, + arg._id, + wait); } - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); + void performSelectorInBackground_withObject_( + ffi.Pointer aSelector, NSObject arg) { + _lib._objc_msgSend_84(_id, + _lib._sel_performSelectorInBackground_withObject_1, aSelector, arg._id); } - NSObject member_(NSObject object) { - final _ret = _lib._objc_msgSend_16(_id, _lib._sel_member_1, object._id); + NSObject get classForArchiver { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForArchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } - NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); + NSObject replacementObjectForArchiver_(NSArchiver? archiver) { + final _ret = _lib._objc_msgSend_531(_id, + _lib._sel_replacementObjectForArchiver_1, archiver?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - NSSet init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSSet._(_ret, _lib, retain: true, release: true); + NSObject get classForPortCoder { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForPortCoder1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSSet initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); - return NSSet._(_ret, _lib, retain: true, release: true); + NSObject replacementObjectForPortCoder_(NSPortCoder? coder) { + final _ret = _lib._objc_msgSend_569(_id, + _lib._sel_replacementObjectForPortCoder_1, coder?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSClassDescription? get classDescription { + final _ret = _lib._objc_msgSend_572(_id, _lib._sel_classDescription1); + return _ret.address == 0 + ? null + : NSClassDescription._(_ret, _lib, retain: true, release: true); } - NSArray? get allObjects { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allObjects1); + NSArray? get attributeKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attributeKeys1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - NSObject anyObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_anyObject1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - bool containsObject_(NSObject anObject) { - return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); + NSArray? get toOneRelationshipKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toOneRelationshipKeys1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + NSArray? get toManyRelationshipKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toManyRelationshipKeys1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); + NSString inverseForRelationshipKey_(NSString? relationshipKey) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_inverseForRelationshipKey_1, + relationshipKey?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - bool intersectsSet_(NSSet? otherSet) { - return _lib._objc_msgSend_376( - _id, _lib._sel_intersectsSet_1, otherSet?._id ?? ffi.nullptr); + NSObject scriptingValueForSpecifier_( + NSScriptObjectSpecifier? objectSpecifier) { + final _ret = _lib._objc_msgSend_616( + _id, + _lib._sel_scriptingValueForSpecifier_1, + objectSpecifier?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool isEqualToSet_(NSSet? otherSet) { - return _lib._objc_msgSend_376( - _id, _lib._sel_isEqualToSet_1, otherSet?._id ?? ffi.nullptr); + NSDictionary? get scriptingProperties { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_scriptingProperties1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - bool isSubsetOfSet_(NSSet? otherSet) { - return _lib._objc_msgSend_376( - _id, _lib._sel_isSubsetOfSet_1, otherSet?._id ?? ffi.nullptr); + set scriptingProperties(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setScriptingProperties_1, value?._id ?? ffi.nullptr); } - void makeObjectsPerformSelector_(ffi.Pointer aSelector) { - _lib._objc_msgSend_7( - _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); + NSObject copyScriptingValue_forKey_withProperties_( + NSObject value, NSString? key, NSDictionary? properties) { + final _ret = _lib._objc_msgSend_617( + _id, + _lib._sel_copyScriptingValue_forKey_withProperties_1, + value._id, + key?._id ?? ffi.nullptr, + properties?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: false, release: true); } - void makeObjectsPerformSelector_withObject_( - ffi.Pointer aSelector, NSObject argument) { - _lib._objc_msgSend_84( + NSObject + newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_( + NSObject objectClass, + NSString? key, + NSObject contentsValue, + NSDictionary? properties) { + final _ret = _lib._objc_msgSend_618( _id, - _lib._sel_makeObjectsPerformSelector_withObject_1, - aSelector, - argument._id); + _lib._sel_newScriptingObjectOfClass_forValueForKey_withContentsValue_properties_1, + objectClass._id, + key?._id ?? ffi.nullptr, + contentsValue._id, + properties?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: false, release: true); } - NSSet setByAddingObject_(NSObject anObject) { - final _ret = _lib._objc_msgSend_377( - _id, _lib._sel_setByAddingObject_1, anObject._id); - return NSSet._(_ret, _lib, retain: true, release: true); + int get classCode { + return _lib._objc_msgSend_197(_id, _lib._sel_classCode1); } - NSSet setByAddingObjectsFromSet_(NSSet? other) { - final _ret = _lib._objc_msgSend_378( - _id, _lib._sel_setByAddingObjectsFromSet_1, other?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSString? get className { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_className1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSSet setByAddingObjectsFromArray_(NSArray? other) { - final _ret = _lib._objc_msgSend_379(_id, - _lib._sel_setByAddingObjectsFromArray_1, other?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSObject valueAtIndex_inPropertyWithKey_(int index, NSString? key) { + final _ret = _lib._objc_msgSend_619( + _id, + _lib._sel_valueAtIndex_inPropertyWithKey_1, + index, + key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - void enumerateObjectsUsingBlock_(ObjCBlock_ffiVoid_ObjCObject_bool block) { - _lib._objc_msgSend_380( - _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); + NSObject valueWithName_inPropertyWithKey_(NSString? name, NSString? key) { + final _ret = _lib._objc_msgSend_165( + _id, + _lib._sel_valueWithName_inPropertyWithKey_1, + name?._id ?? ffi.nullptr, + key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - void enumerateObjectsWithOptions_usingBlock_( - int opts, ObjCBlock_ffiVoid_ObjCObject_bool block) { - _lib._objc_msgSend_381(_id, - _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); + NSObject valueWithUniqueID_inPropertyWithKey_( + NSObject uniqueID, NSString? key) { + final _ret = _lib._objc_msgSend_289( + _id, + _lib._sel_valueWithUniqueID_inPropertyWithKey_1, + uniqueID._id, + key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSSet objectsPassingTest_(ObjCBlock_bool_ObjCObject_bool predicate) { - final _ret = _lib._objc_msgSend_382( - _id, _lib._sel_objectsPassingTest_1, predicate._id); - return NSSet._(_ret, _lib, retain: true, release: true); + void insertValue_atIndex_inPropertyWithKey_( + NSObject value, int index, NSString? key) { + _lib._objc_msgSend_620( + _id, + _lib._sel_insertValue_atIndex_inPropertyWithKey_1, + value._id, + index, + key?._id ?? ffi.nullptr); } - NSSet objectsWithOptions_passingTest_( - int opts, ObjCBlock_bool_ObjCObject_bool predicate) { - final _ret = _lib._objc_msgSend_383( - _id, _lib._sel_objectsWithOptions_passingTest_1, opts, predicate._id); - return NSSet._(_ret, _lib, retain: true, release: true); + void removeValueAtIndex_fromPropertyWithKey_(int index, NSString? key) { + _lib._objc_msgSend_621( + _id, + _lib._sel_removeValueAtIndex_fromPropertyWithKey_1, + index, + key?._id ?? ffi.nullptr); } - static NSSet set1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_set1); - return NSSet._(_ret, _lib, retain: true, release: true); + void replaceValueAtIndex_inPropertyWithKey_withValue_( + int index, NSString? key, NSObject value) { + _lib._objc_msgSend_622( + _id, + _lib._sel_replaceValueAtIndex_inPropertyWithKey_withValue_1, + index, + key?._id ?? ffi.nullptr, + value._id); } - static NSSet setWithObject_(SentryCocoa _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSSet1, _lib._sel_setWithObject_1, object._id); - return NSSet._(_ret, _lib, retain: true, release: true); + void insertValue_inPropertyWithKey_(NSObject value, NSString? key) { + _lib._objc_msgSend_126(_id, _lib._sel_insertValue_inPropertyWithKey_1, + value._id, key?._id ?? ffi.nullptr); } - static NSSet setWithObjects_count_( - SentryCocoa _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _lib._class_NSSet1, _lib._sel_setWithObjects_count_1, objects, cnt); - return NSSet._(_ret, _lib, retain: true, release: true); + NSObject coerceValue_forKey_(NSObject value, NSString? key) { + final _ret = _lib._objc_msgSend_289(_id, _lib._sel_coerceValue_forKey_1, + value._id, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSSet setWithObjects_(SentryCocoa _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSSet1, _lib._sel_setWithObjects_1, firstObj._id); - return NSSet._(_ret, _lib, retain: true, release: true); + NSScriptObjectSpecifier? get objectSpecifier { + final _ret = _lib._objc_msgSend_603(_id, _lib._sel_objectSpecifier1); + return _ret.address == 0 + ? null + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - static NSSet setWithSet_(SentryCocoa _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_384( - _lib._class_NSSet1, _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSArray indicesOfObjectsByEvaluatingObjectSpecifier_( + NSScriptObjectSpecifier? specifier) { + final _ret = _lib._objc_msgSend_623( + _id, + _lib._sel_indicesOfObjectsByEvaluatingObjectSpecifier_1, + specifier?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSSet setWithArray_(SentryCocoa _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSSet1, - _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + bool isEqualTo_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_isEqualTo_1, object._id); } - NSSet initWithObjects_(NSObject firstObj) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); - return NSSet._(_ret, _lib, retain: true, release: true); + bool isLessThanOrEqualTo_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_isLessThanOrEqualTo_1, object._id); } - NSSet initWithSet_(NSSet? set) { - final _ret = _lib._objc_msgSend_384( - _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + bool isLessThan_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_isLessThan_1, object._id); } - NSSet initWithSet_copyItems_(NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_385( - _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSSet._(_ret, _lib, retain: false, release: true); + bool isGreaterThanOrEqualTo_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_isGreaterThanOrEqualTo_1, object._id); } - NSSet initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + bool isGreaterThan_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_isGreaterThan_1, object._id); } - @override - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + bool isNotEqualTo_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_isNotEqualTo_1, object._id); } - @override - void setValue_forKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + bool doesContain_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_doesContain_1, object._id); } - @override - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - _lib._objc_msgSend_130( - _id, - _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - options, - context); + bool isLike_(NSString? object) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isLike_1, object?._id ?? ffi.nullptr); } - @override - void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - _lib._objc_msgSend_131(_id, _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr, context); + bool isCaseInsensitiveLike_(NSString? object) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isCaseInsensitiveLike_1, object?._id ?? ffi.nullptr); } - @override - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); - } + bool scriptingIsEqualTo_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_scriptingIsEqualTo_1, object._id); + } - NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedArrayUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + bool scriptingIsLessThanOrEqualTo_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_scriptingIsLessThanOrEqualTo_1, object._id); } - NSSet filteredSetUsingPredicate_(NSPredicate? predicate) { - final _ret = _lib._objc_msgSend_386(_id, - _lib._sel_filteredSetUsingPredicate_1, predicate?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + bool scriptingIsLessThan_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_scriptingIsLessThan_1, object._id); } - static NSSet new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_new1); - return NSSet._(_ret, _lib, retain: false, release: true); + bool scriptingIsGreaterThanOrEqualTo_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_scriptingIsGreaterThanOrEqualTo_1, object._id); } - static NSSet allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + bool scriptingIsGreaterThan_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_scriptingIsGreaterThan_1, object._id); + } + + bool scriptingBeginsWith_(NSObject object) { + return _lib._objc_msgSend_0( + _id, _lib._sel_scriptingBeginsWith_1, object._id); + } + + bool scriptingEndsWith_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_scriptingEndsWith_1, object._id); + } + + bool scriptingContains_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_scriptingContains_1, object._id); + } +} + +final class ObjCSel extends ffi.Opaque {} + +final class ObjCObject extends ffi.Opaque {} + +typedef instancetype = ffi.Pointer; + +final class _NSZone extends ffi.Opaque {} + +class Protocol extends _ObjCWrapper { + Protocol._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [Protocol] that points to the same underlying object as [other]. + static Protocol castFrom(T other) { + return Protocol._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [Protocol] that wraps the given raw object pointer. + static Protocol castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return Protocol._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [Protocol]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_Protocol1); + } +} + +class NSInvocation extends NSObject { + NSInvocation._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSInvocation] that points to the same underlying object as [other]. + static NSInvocation castFrom(T other) { + return NSInvocation._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSInvocation] that wraps the given raw object pointer. + static NSInvocation castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSInvocation._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSInvocation]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSInvocation1); + } + + static NSInvocation invocationWithMethodSignature_( + SentryCocoa _lib, NSMethodSignature? sig) { + final _ret = _lib._objc_msgSend_387(_lib._class_NSInvocation1, + _lib._sel_invocationWithMethodSignature_1, sig?._id ?? ffi.nullptr); + return NSInvocation._(_ret, _lib, retain: true, release: true); + } + + NSMethodSignature? get methodSignature { + final _ret = _lib._objc_msgSend_388(_id, _lib._sel_methodSignature1); + return _ret.address == 0 + ? null + : NSMethodSignature._(_ret, _lib, retain: true, release: true); + } + + void retainArguments() { + _lib._objc_msgSend_1(_id, _lib._sel_retainArguments1); + } + + bool get argumentsRetained { + return _lib._objc_msgSend_12(_id, _lib._sel_argumentsRetained1); + } + + NSObject get target { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_target1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + set target(NSObject value) { + return _lib._objc_msgSend_389(_id, _lib._sel_setTarget_1, value._id); + } + + ffi.Pointer get selector { + return _lib._objc_msgSend_390(_id, _lib._sel_selector1); + } + + set selector(ffi.Pointer value) { + return _lib._objc_msgSend_391(_id, _lib._sel_setSelector_1, value); + } + + void getReturnValue_(ffi.Pointer retLoc) { + _lib._objc_msgSend_47(_id, _lib._sel_getReturnValue_1, retLoc); + } + + void setReturnValue_(ffi.Pointer retLoc) { + _lib._objc_msgSend_47(_id, _lib._sel_setReturnValue_1, retLoc); + } + + void getArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { + _lib._objc_msgSend_392( + _id, _lib._sel_getArgument_atIndex_1, argumentLocation, idx); + } + + void setArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { + _lib._objc_msgSend_392( + _id, _lib._sel_setArgument_atIndex_1, argumentLocation, idx); + } + + void invoke() { + _lib._objc_msgSend_1(_id, _lib._sel_invoke1); + } + + void invokeWithTarget_(NSObject target) { + _lib._objc_msgSend_15(_id, _lib._sel_invokeWithTarget_1, target._id); + } + + void invokeUsingIMP_( + ffi.Pointer> imp) { + _lib._objc_msgSend_393(_id, _lib._sel_invokeUsingIMP_1, imp); + } + + @override + NSInvocation init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSInvocation._(_ret, _lib, retain: true, release: true); + } + + static NSInvocation new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSInvocation1, _lib._sel_new1); + return NSInvocation._(_ret, _lib, retain: false, release: true); + } + + static NSInvocation allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSSet1, _lib._sel_allocWithZone_1, zone); - return NSSet._(_ret, _lib, retain: false, release: true); + _lib._class_NSInvocation1, _lib._sel_allocWithZone_1, zone); + return NSInvocation._(_ret, _lib, retain: false, release: true); } - static NSSet alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_alloc1); - return NSSet._(_ret, _lib, retain: false, release: true); + static NSInvocation alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSInvocation1, _lib._sel_alloc1); + return NSInvocation._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -32389,7 +34365,7 @@ class NSSet extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSSet1, + _lib._class_NSInvocation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -32398,24 +34374,24 @@ class NSSet extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSSet1, + _lib._objc_msgSend_15(_lib._class_NSInvocation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSSet1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSInvocation1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSSet1, _lib._sel_useStoredAccessor1); + _lib._class_NSInvocation1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSSet1, + _lib._class_NSInvocation1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -32424,7 +34400,7 @@ class NSSet extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSSet1, + _lib._class_NSInvocation1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -32432,7 +34408,7 @@ class NSSet extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSSet1, + _lib._class_NSInvocation1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -32440,75 +34416,95 @@ class NSSet extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSSet1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSInvocation1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSSet1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSInvocation1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSEnumerator extends NSObject { - NSEnumerator._(ffi.Pointer id, SentryCocoa lib, +class NSMethodSignature extends NSObject { + NSMethodSignature._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSEnumerator] that points to the same underlying object as [other]. - static NSEnumerator castFrom(T other) { - return NSEnumerator._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSMethodSignature] that points to the same underlying object as [other]. + static NSMethodSignature castFrom(T other) { + return NSMethodSignature._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSEnumerator] that wraps the given raw object pointer. - static NSEnumerator castFromPointer( + /// Returns a [NSMethodSignature] that wraps the given raw object pointer. + static NSMethodSignature castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSEnumerator._(other, lib, retain: retain, release: release); + return NSMethodSignature._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSEnumerator]. + /// Returns whether [obj] is an instance of [NSMethodSignature]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSEnumerator1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMethodSignature1); } - NSObject nextObject() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nextObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSMethodSignature signatureWithObjCTypes_( + SentryCocoa _lib, ffi.Pointer types) { + final _ret = _lib._objc_msgSend_9(_lib._class_NSMethodSignature1, + _lib._sel_signatureWithObjCTypes_1, types); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); } - NSObject? get allObjects { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_allObjects1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + int get numberOfArguments { + return _lib._objc_msgSend_10(_id, _lib._sel_numberOfArguments1); + } + + ffi.Pointer getArgumentTypeAtIndex_(int idx) { + return _lib._objc_msgSend_11(_id, _lib._sel_getArgumentTypeAtIndex_1, idx); + } + + int get frameLength { + return _lib._objc_msgSend_10(_id, _lib._sel_frameLength1); + } + + bool isOneway() { + return _lib._objc_msgSend_12(_id, _lib._sel_isOneway1); + } + + ffi.Pointer get methodReturnType { + return _lib._objc_msgSend_13(_id, _lib._sel_methodReturnType1); + } + + int get methodReturnLength { + return _lib._objc_msgSend_10(_id, _lib._sel_methodReturnLength1); } @override - NSEnumerator init() { + NSMethodSignature init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); } - static NSEnumerator new1(SentryCocoa _lib) { + static NSMethodSignature new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_new1); - return NSEnumerator._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_new1); + return NSMethodSignature._(_ret, _lib, retain: false, release: true); } - static NSEnumerator allocWithZone_( + static NSMethodSignature allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSEnumerator1, _lib._sel_allocWithZone_1, zone); - return NSEnumerator._(_ret, _lib, retain: false, release: true); + _lib._class_NSMethodSignature1, _lib._sel_allocWithZone_1, zone); + return NSMethodSignature._(_ret, _lib, retain: false, release: true); } - static NSEnumerator alloc(SentryCocoa _lib) { + static NSMethodSignature alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_alloc1); - return NSEnumerator._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_alloc1); + return NSMethodSignature._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -32517,7 +34513,7 @@ class NSEnumerator extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSEnumerator1, + _lib._class_NSMethodSignature1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -32526,24 +34522,24 @@ class NSEnumerator extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSEnumerator1, + _lib._objc_msgSend_15(_lib._class_NSMethodSignature1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSEnumerator1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSMethodSignature1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSEnumerator1, _lib._sel_useStoredAccessor1); + _lib._class_NSMethodSignature1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSEnumerator1, + _lib._class_NSMethodSignature1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -32552,7 +34548,7 @@ class NSEnumerator extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSEnumerator1, + _lib._class_NSMethodSignature1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -32560,185 +34556,664 @@ class NSEnumerator extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSEnumerator1, + _lib._class_NSMethodSignature1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSEnumerator1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSMethodSignature1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSEnumerator1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSMethodSignature1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSString extends NSObject { - NSString._(ffi.Pointer id, SentryCocoa lib, +class NSSet extends NSObject { + NSSet._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSString] that points to the same underlying object as [other]. - static NSString castFrom(T other) { - return NSString._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSSet] that points to the same underlying object as [other]. + static NSSet castFrom(T other) { + return NSSet._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSString] that wraps the given raw object pointer. - static NSString castFromPointer( - SentryCocoa lib, ffi.Pointer other, + /// Returns a [NSSet] that wraps the given raw object pointer. + static NSSet castFromPointer(SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSString._(other, lib, retain: retain, release: release); + return NSSet._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSString]. + /// Returns whether [obj] is an instance of [NSSet]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSString1); - } - - factory NSString(SentryCocoa _lib, String str) { - final cstr = str.toNativeUtf16(); - final nsstr = stringWithCharacters_length_(_lib, cstr.cast(), str.length); - pkg_ffi.calloc.free(cstr); - return nsstr; + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSSet1); } - @override - String toString() { - final data = - dataUsingEncoding_(0x94000100 /* NSUTF16LittleEndianStringEncoding */); - return data.bytes.cast().toDartString(length: length); + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); } - int get length { - return _lib._objc_msgSend_10(_id, _lib._sel_length1); + NSObject member_(NSObject object) { + final _ret = _lib._objc_msgSend_16(_id, _lib._sel_member_1, object._id); + return NSObject._(_ret, _lib, retain: true, release: true); } - int characterAtIndex_(int index) { - return _lib._objc_msgSend_17(_id, _lib._sel_characterAtIndex_1, index); + NSEnumerator objectEnumerator() { + final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); } @override - NSString init() { + NSSet init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSString._(_ret, _lib, retain: true, release: true); + return NSSet._(_ret, _lib, retain: true, release: true); } - NSString initWithCoder_(NSCoder? coder) { + NSSet initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + NSSet initWithCoder_(NSCoder? coder) { final _ret = _lib._objc_msgSend_42( _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + return NSSet._(_ret, _lib, retain: true, release: true); } - NSString substringFromIndex_(int from) { - final _ret = - _lib._objc_msgSend_310(_id, _lib._sel_substringFromIndex_1, from); - return NSString._(_ret, _lib, retain: true, release: true); + NSArray? get allObjects { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allObjects1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSString substringToIndex_(int to) { - final _ret = _lib._objc_msgSend_310(_id, _lib._sel_substringToIndex_1, to); - return NSString._(_ret, _lib, retain: true, release: true); + NSObject anyObject() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_anyObject1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString substringWithRange_(_NSRange range) { - final _ret = - _lib._objc_msgSend_311(_id, _lib._sel_substringWithRange_1, range); - return NSString._(_ret, _lib, retain: true, release: true); + bool containsObject_(NSObject anObject) { + return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, anObject._id); } - void getCharacters_range_( - ffi.Pointer buffer, _NSRange range) { - _lib._objc_msgSend_312(_id, _lib._sel_getCharacters_range_1, buffer, range); + NSString? get description { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - int compare_(NSString? string) { - return _lib._objc_msgSend_313( - _id, _lib._sel_compare_1, string?._id ?? ffi.nullptr); + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_descriptionWithLocale_1, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); } - int compare_options_(NSString? string, int mask) { - return _lib._objc_msgSend_314( - _id, _lib._sel_compare_options_1, string?._id ?? ffi.nullptr, mask); + bool intersectsSet_(NSSet? otherSet) { + return _lib._objc_msgSend_376( + _id, _lib._sel_intersectsSet_1, otherSet?._id ?? ffi.nullptr); } - int compare_options_range_( - NSString? string, int mask, _NSRange rangeOfReceiverToCompare) { - return _lib._objc_msgSend_315(_id, _lib._sel_compare_options_range_1, - string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare); + bool isEqualToSet_(NSSet? otherSet) { + return _lib._objc_msgSend_376( + _id, _lib._sel_isEqualToSet_1, otherSet?._id ?? ffi.nullptr); } - int compare_options_range_locale_(NSString? string, int mask, - _NSRange rangeOfReceiverToCompare, NSObject locale) { - return _lib._objc_msgSend_316(_id, _lib._sel_compare_options_range_locale_1, - string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare, locale._id); + bool isSubsetOfSet_(NSSet? otherSet) { + return _lib._objc_msgSend_376( + _id, _lib._sel_isSubsetOfSet_1, otherSet?._id ?? ffi.nullptr); } - int caseInsensitiveCompare_(NSString? string) { - return _lib._objc_msgSend_313( - _id, _lib._sel_caseInsensitiveCompare_1, string?._id ?? ffi.nullptr); + void makeObjectsPerformSelector_(ffi.Pointer aSelector) { + _lib._objc_msgSend_7( + _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); } - int localizedCompare_(NSString? string) { - return _lib._objc_msgSend_313( - _id, _lib._sel_localizedCompare_1, string?._id ?? ffi.nullptr); + void makeObjectsPerformSelector_withObject_( + ffi.Pointer aSelector, NSObject argument) { + _lib._objc_msgSend_84( + _id, + _lib._sel_makeObjectsPerformSelector_withObject_1, + aSelector, + argument._id); } - int localizedCaseInsensitiveCompare_(NSString? string) { - return _lib._objc_msgSend_313( - _id, - _lib._sel_localizedCaseInsensitiveCompare_1, - string?._id ?? ffi.nullptr); + NSSet setByAddingObject_(NSObject anObject) { + final _ret = _lib._objc_msgSend_377( + _id, _lib._sel_setByAddingObject_1, anObject._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - int localizedStandardCompare_(NSString? string) { - return _lib._objc_msgSend_313( - _id, _lib._sel_localizedStandardCompare_1, string?._id ?? ffi.nullptr); + NSSet setByAddingObjectsFromSet_(NSSet? other) { + final _ret = _lib._objc_msgSend_378( + _id, _lib._sel_setByAddingObjectsFromSet_1, other?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - bool isEqualToString_(NSString? aString) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isEqualToString_1, aString?._id ?? ffi.nullptr); + NSSet setByAddingObjectsFromArray_(NSArray? other) { + final _ret = _lib._objc_msgSend_379(_id, + _lib._sel_setByAddingObjectsFromArray_1, other?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - bool hasPrefix_(NSString? str) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasPrefix_1, str?._id ?? ffi.nullptr); + void enumerateObjectsUsingBlock_(ObjCBlock_ffiVoid_ObjCObject_bool block) { + _lib._objc_msgSend_380( + _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); } - bool hasSuffix_(NSString? str) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasSuffix_1, str?._id ?? ffi.nullptr); + void enumerateObjectsWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ObjCObject_bool block) { + _lib._objc_msgSend_381(_id, + _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); } - NSString commonPrefixWithString_options_(NSString? str, int mask) { - final _ret = _lib._objc_msgSend_317( - _id, - _lib._sel_commonPrefixWithString_options_1, - str?._id ?? ffi.nullptr, - mask); - return NSString._(_ret, _lib, retain: true, release: true); + NSSet objectsPassingTest_(ObjCBlock_bool_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_382( + _id, _lib._sel_objectsPassingTest_1, predicate._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - bool containsString_(NSString? str) { - return _lib._objc_msgSend_59( - _id, _lib._sel_containsString_1, str?._id ?? ffi.nullptr); + NSSet objectsWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_bool predicate) { + final _ret = _lib._objc_msgSend_383( + _id, _lib._sel_objectsWithOptions_passingTest_1, opts, predicate._id); + return NSSet._(_ret, _lib, retain: true, release: true); } - bool localizedCaseInsensitiveContainsString_(NSString? str) { - return _lib._objc_msgSend_59( - _id, - _lib._sel_localizedCaseInsensitiveContainsString_1, - str?._id ?? ffi.nullptr); + static NSSet set1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_set1); + return NSSet._(_ret, _lib, retain: true, release: true); } - bool localizedStandardContainsString_(NSString? str) { + static NSSet setWithObject_(SentryCocoa _lib, NSObject object) { + final _ret = _lib._objc_msgSend_16( + _lib._class_NSSet1, _lib._sel_setWithObject_1, object._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static NSSet setWithObjects_count_( + SentryCocoa _lib, ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61( + _lib._class_NSSet1, _lib._sel_setWithObjects_count_1, objects, cnt); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static NSSet setWithObjects_(SentryCocoa _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_16( + _lib._class_NSSet1, _lib._sel_setWithObjects_1, firstObj._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static NSSet setWithSet_(SentryCocoa _lib, NSSet? set) { + final _ret = _lib._objc_msgSend_384( + _lib._class_NSSet1, _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static NSSet setWithArray_(SentryCocoa _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSSet1, + _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + NSSet initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + NSSet initWithSet_(NSSet? set) { + final _ret = _lib._objc_msgSend_384( + _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + NSSet initWithSet_copyItems_(NSSet? set, bool flag) { + final _ret = _lib._objc_msgSend_385( + _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSSet._(_ret, _lib, retain: false, release: true); + } + + NSSet initWithArray_(NSArray? array) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + @override + NSObject valueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + @override + void setValue_forKey_(NSObject value, NSString? key) { + _lib._objc_msgSend_126( + _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + } + + @override + void addObserver_forKeyPath_options_context_(NSObject? observer, + NSString? keyPath, int options, ffi.Pointer context) { + _lib._objc_msgSend_130( + _id, + _lib._sel_addObserver_forKeyPath_options_context_1, + observer?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + options, + context); + } + + @override + void removeObserver_forKeyPath_context_( + NSObject? observer, NSString? keyPath, ffi.Pointer context) { + _lib._objc_msgSend_131(_id, _lib._sel_removeObserver_forKeyPath_context_1, + observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr, context); + } + + @override + void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { + _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, + observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + } + + NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { + final _ret = _lib._objc_msgSend_63( + _id, + _lib._sel_sortedArrayUsingDescriptors_1, + sortDescriptors?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSSet filteredSetUsingPredicate_(NSPredicate? predicate) { + final _ret = _lib._objc_msgSend_386(_id, + _lib._sel_filteredSetUsingPredicate_1, predicate?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static NSSet new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_new1); + return NSSet._(_ret, _lib, retain: false, release: true); + } + + static NSSet allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSSet1, _lib._sel_allocWithZone_1, zone); + return NSSet._(_ret, _lib, retain: false, release: true); + } + + static NSSet alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSSet1, _lib._sel_alloc1); + return NSSet._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSSet1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSSet1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSSet1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSSet1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSSet1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSEnumerator extends NSObject { + NSEnumerator._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSEnumerator] that points to the same underlying object as [other]. + static NSEnumerator castFrom(T other) { + return NSEnumerator._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSEnumerator] that wraps the given raw object pointer. + static NSEnumerator castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSEnumerator._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSEnumerator]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSEnumerator1); + } + + NSObject nextObject() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_nextObject1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject? get allObjects { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_allObjects1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + @override + NSEnumerator init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); + } + + static NSEnumerator new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_new1); + return NSEnumerator._(_ret, _lib, retain: false, release: true); + } + + static NSEnumerator allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSEnumerator1, _lib._sel_allocWithZone_1, zone); + return NSEnumerator._(_ret, _lib, retain: false, release: true); + } + + static NSEnumerator alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSEnumerator1, _lib._sel_alloc1); + return NSEnumerator._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSEnumerator1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSEnumerator1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSEnumerator1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSEnumerator1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSEnumerator1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSEnumerator1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSEnumerator1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSEnumerator1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSEnumerator1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSString extends NSObject { + NSString._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSString] that points to the same underlying object as [other]. + static NSString castFrom(T other) { + return NSString._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSString] that wraps the given raw object pointer. + static NSString castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSString._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSString]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSString1); + } + + factory NSString(SentryCocoa _lib, String str) { + final cstr = str.toNativeUtf16(); + final nsstr = stringWithCharacters_length_(_lib, cstr.cast(), str.length); + pkg_ffi.calloc.free(cstr); + return nsstr; + } + + @override + String toString() { + final data = + dataUsingEncoding_(0x94000100 /* NSUTF16LittleEndianStringEncoding */); + return data.bytes.cast().toDartString(length: length); + } + + int get length { + return _lib._objc_msgSend_10(_id, _lib._sel_length1); + } + + int characterAtIndex_(int index) { + return _lib._objc_msgSend_17(_id, _lib._sel_characterAtIndex_1, index); + } + + @override + NSString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString substringFromIndex_(int from) { + final _ret = + _lib._objc_msgSend_310(_id, _lib._sel_substringFromIndex_1, from); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString substringToIndex_(int to) { + final _ret = _lib._objc_msgSend_310(_id, _lib._sel_substringToIndex_1, to); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString substringWithRange_(_NSRange range) { + final _ret = + _lib._objc_msgSend_311(_id, _lib._sel_substringWithRange_1, range); + return NSString._(_ret, _lib, retain: true, release: true); + } + + void getCharacters_range_( + ffi.Pointer buffer, _NSRange range) { + _lib._objc_msgSend_312(_id, _lib._sel_getCharacters_range_1, buffer, range); + } + + int compare_(NSString? string) { + return _lib._objc_msgSend_313( + _id, _lib._sel_compare_1, string?._id ?? ffi.nullptr); + } + + int compare_options_(NSString? string, int mask) { + return _lib._objc_msgSend_314( + _id, _lib._sel_compare_options_1, string?._id ?? ffi.nullptr, mask); + } + + int compare_options_range_( + NSString? string, int mask, _NSRange rangeOfReceiverToCompare) { + return _lib._objc_msgSend_315(_id, _lib._sel_compare_options_range_1, + string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare); + } + + int compare_options_range_locale_(NSString? string, int mask, + _NSRange rangeOfReceiverToCompare, NSObject locale) { + return _lib._objc_msgSend_316(_id, _lib._sel_compare_options_range_locale_1, + string?._id ?? ffi.nullptr, mask, rangeOfReceiverToCompare, locale._id); + } + + int caseInsensitiveCompare_(NSString? string) { + return _lib._objc_msgSend_313( + _id, _lib._sel_caseInsensitiveCompare_1, string?._id ?? ffi.nullptr); + } + + int localizedCompare_(NSString? string) { + return _lib._objc_msgSend_313( + _id, _lib._sel_localizedCompare_1, string?._id ?? ffi.nullptr); + } + + int localizedCaseInsensitiveCompare_(NSString? string) { + return _lib._objc_msgSend_313( + _id, + _lib._sel_localizedCaseInsensitiveCompare_1, + string?._id ?? ffi.nullptr); + } + + int localizedStandardCompare_(NSString? string) { + return _lib._objc_msgSend_313( + _id, _lib._sel_localizedStandardCompare_1, string?._id ?? ffi.nullptr); + } + + bool isEqualToString_(NSString? aString) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isEqualToString_1, aString?._id ?? ffi.nullptr); + } + + bool hasPrefix_(NSString? str) { + return _lib._objc_msgSend_59( + _id, _lib._sel_hasPrefix_1, str?._id ?? ffi.nullptr); + } + + bool hasSuffix_(NSString? str) { + return _lib._objc_msgSend_59( + _id, _lib._sel_hasSuffix_1, str?._id ?? ffi.nullptr); + } + + NSString commonPrefixWithString_options_(NSString? str, int mask) { + final _ret = _lib._objc_msgSend_317( + _id, + _lib._sel_commonPrefixWithString_options_1, + str?._id ?? ffi.nullptr, + mask); + return NSString._(_ret, _lib, retain: true, release: true); + } + + bool containsString_(NSString? str) { + return _lib._objc_msgSend_59( + _id, _lib._sel_containsString_1, str?._id ?? ffi.nullptr); + } + + bool localizedCaseInsensitiveContainsString_(NSString? str) { + return _lib._objc_msgSend_59( + _id, + _lib._sel_localizedCaseInsensitiveContainsString_1, + str?._id ?? ffi.nullptr); + } + + bool localizedStandardContainsString_(NSString? str) { return _lib._objc_msgSend_59(_id, _lib._sel_localizedStandardContainsString_1, str?._id ?? ffi.nullptr); } @@ -33264,7 +35739,7 @@ class NSString extends NSObject { } NSString initWithFormat_arguments_( - NSString? format, ffi.Pointer<__va_list_tag> argList) { + NSString? format, ffi.Pointer argList) { final _ret = _lib._objc_msgSend_350( _id, _lib._sel_initWithFormat_arguments_1, @@ -33280,7 +35755,7 @@ class NSString extends NSObject { } NSString initWithFormat_locale_arguments_( - NSString? format, NSObject locale, ffi.Pointer<__va_list_tag> argList) { + NSString? format, NSObject locale, ffi.Pointer argList) { final _ret = _lib._objc_msgSend_351( _id, _lib._sel_initWithFormat_locale_arguments_1, @@ -33321,7 +35796,7 @@ class NSString extends NSObject { NSString initWithValidatedFormat_validFormatSpecifiers_arguments_error_( NSString? format, NSString? validFormatSpecifiers, - ffi.Pointer<__va_list_tag> argList, + ffi.Pointer argList, ffi.Pointer> error) { final _ret = _lib._objc_msgSend_354( _id, @@ -33338,7 +35813,7 @@ class NSString extends NSObject { NSString? format, NSString? validFormatSpecifiers, NSObject locale, - ffi.Pointer<__va_list_tag> argList, + ffi.Pointer argList, ffi.Pointer> error) { final _ret = _lib._objc_msgSend_355( _id, @@ -38471,7 +40946,7 @@ class NSPredicate extends NSObject { } static NSPredicate predicateWithFormat_arguments_(SentryCocoa _lib, - NSString? predicateFormat, ffi.Pointer<__va_list_tag> argList) { + NSString? predicateFormat, ffi.Pointer argList) { final _ret = _lib._objc_msgSend_135( _lib._class_NSPredicate1, _lib._sel_predicateWithFormat_arguments_1, @@ -38627,18 +41102,6 @@ class NSPredicate extends NSObject { } } -final class __va_list_tag extends ffi.Struct { - @ffi.UnsignedInt() - external int gp_offset; - - @ffi.UnsignedInt() - external int fp_offset; - - external ffi.Pointer overflow_arg_area; - - external ffi.Pointer reg_save_area; -} - bool _ObjCBlock_bool_ObjCObject_NSDictionary_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, @@ -43203,9 +45666,50 @@ class NSFileManager extends NSObject { : NSObject._(_ret, _lib, retain: true, release: true); } + void pauseSyncForUbiquitousItemAtURL_completionHandler_( + NSURL? url, ObjCBlock_ffiVoid_NSError completionHandler) { + _lib._objc_msgSend_437( + _id, + _lib._sel_pauseSyncForUbiquitousItemAtURL_completionHandler_1, + url?._id ?? ffi.nullptr, + completionHandler._id); + } + + void resumeSyncForUbiquitousItemAtURL_withBehavior_completionHandler_( + NSURL? url, int behavior, ObjCBlock_ffiVoid_NSError completionHandler) { + _lib._objc_msgSend_438( + _id, + _lib._sel_resumeSyncForUbiquitousItemAtURL_withBehavior_completionHandler_1, + url?._id ?? ffi.nullptr, + behavior, + completionHandler._id); + } + + void fetchLatestRemoteVersionOfItemAtURL_completionHandler_( + NSURL? url, ObjCBlock_ffiVoid_NSFileVersion_NSError completionHandler) { + _lib._objc_msgSend_449( + _id, + _lib._sel_fetchLatestRemoteVersionOfItemAtURL_completionHandler_1, + url?._id ?? ffi.nullptr, + completionHandler._id); + } + + void + uploadLocalVersionOfUbiquitousItemAtURL_withConflictResolutionPolicy_completionHandler_( + NSURL? url, + int conflictResolutionPolicy, + ObjCBlock_ffiVoid_NSFileVersion_NSError completionHandler) { + _lib._objc_msgSend_450( + _id, + _lib._sel_uploadLocalVersionOfUbiquitousItemAtURL_withConflictResolutionPolicy_completionHandler_1, + url?._id ?? ffi.nullptr, + conflictResolutionPolicy, + completionHandler._id); + } + void getFileProviderServicesForItemAtURL_completionHandler_( NSURL? url, ObjCBlock_ffiVoid_NSDictionary_NSError completionHandler) { - _lib._objc_msgSend_437( + _lib._objc_msgSend_451( _id, _lib._sel_getFileProviderServicesForItemAtURL_completionHandler_1, url?._id ?? ffi.nullptr, @@ -43562,7 +46066,14 @@ abstract class NSFileManagerItemReplacementOptions { static const int NSFileManagerItemReplacementWithoutDeletingBackupItem = 2; } -void _ObjCBlock_ffiVoid_NSDictionary_NSError_fnPtrTrampoline( +abstract class NSFileManagerResumeSyncBehavior { + static const int NSFileManagerResumeSyncBehaviorPreserveLocalChanges = 0; + static const int + NSFileManagerResumeSyncBehaviorAfterUploadWithFailOnConflict = 1; + static const int NSFileManagerResumeSyncBehaviorDropLocalChanges = 2; +} + +void _ObjCBlock_ffiVoid_NSFileVersion_NSError_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1) { @@ -43576,33 +46087,33 @@ void _ObjCBlock_ffiVoid_NSDictionary_NSError_fnPtrTrampoline( ffi.Pointer arg1)>()(arg0, arg1); } -final _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry = +final _ObjCBlock_ffiVoid_NSFileVersion_NSError_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSDictionary_NSError_registerClosure( +int _ObjCBlock_ffiVoid_NSFileVersion_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSFileVersion_NSError_registerClosure( Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry[id] = fn; + final id = ++_ObjCBlock_ffiVoid_NSFileVersion_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSFileVersion_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSDictionary_NSError_closureTrampoline( +void _ObjCBlock_ffiVoid_NSFileVersion_NSError_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1) { - return (_ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry[ + return (_ObjCBlock_ffiVoid_NSFileVersion_NSError_closureRegistry[ block.ref.target.address] as void Function( ffi.Pointer, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_ffiVoid_NSDictionary_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSDictionary_NSError._( +class ObjCBlock_ffiVoid_NSFileVersion_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSFileVersion_NSError._( ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSDictionary_NSError.fromFunctionPointer( + ObjCBlock_ffiVoid_NSFileVersion_NSError.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -43616,14 +46127,14 @@ class ObjCBlock_ffiVoid_NSDictionary_NSError extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_NSDictionary_NSError_fnPtrTrampoline) + _ObjCBlock_ffiVoid_NSFileVersion_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSDictionary_NSError.fromFunction( + ObjCBlock_ffiVoid_NSFileVersion_NSError.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0, ffi.Pointer arg1) fn) @@ -43634,9 +46145,9 @@ class ObjCBlock_ffiVoid_NSDictionary_NSError extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_NSDictionary_NSError_closureTrampoline) + _ObjCBlock_ffiVoid_NSFileVersion_NSError_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSDictionary_NSError_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSFileVersion_NSError_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0, ffi.Pointer arg1) { @@ -43655,322 +46166,217 @@ class ObjCBlock_ffiVoid_NSDictionary_NSError extends _ObjCBlockBase { } } -class NSMutableArray extends NSArray { - NSMutableArray._(ffi.Pointer id, SentryCocoa lib, +class NSFileVersion extends NSObject { + NSFileVersion._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMutableArray] that points to the same underlying object as [other]. - static NSMutableArray castFrom(T other) { - return NSMutableArray._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSFileVersion] that points to the same underlying object as [other]. + static NSFileVersion castFrom(T other) { + return NSFileVersion._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSMutableArray] that wraps the given raw object pointer. - static NSMutableArray castFromPointer( + /// Returns a [NSFileVersion] that wraps the given raw object pointer. + static NSFileVersion castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableArray._(other, lib, retain: retain, release: release); + return NSFileVersion._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableArray]. + /// Returns whether [obj] is an instance of [NSFileVersion]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableArray1); - } - - void addObject_(NSObject anObject) { - _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, anObject._id); - } - - void insertObject_atIndex_(NSObject anObject, int index) { - _lib._objc_msgSend_440( - _id, _lib._sel_insertObject_atIndex_1, anObject._id, index); - } - - void removeLastObject() { - _lib._objc_msgSend_1(_id, _lib._sel_removeLastObject1); - } - - void removeObjectAtIndex_(int index) { - _lib._objc_msgSend_441(_id, _lib._sel_removeObjectAtIndex_1, index); - } - - void replaceObjectAtIndex_withObject_(int index, NSObject anObject) { - _lib._objc_msgSend_442( - _id, _lib._sel_replaceObjectAtIndex_withObject_1, index, anObject._id); - } - - @override - NSMutableArray init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } - - NSMutableArray initWithCapacity_(int numItems) { - final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } - - @override - NSMutableArray initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); - } - - void addObjectsFromArray_(NSArray? otherArray) { - _lib._objc_msgSend_443( - _id, _lib._sel_addObjectsFromArray_1, otherArray?._id ?? ffi.nullptr); - } - - void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { - _lib._objc_msgSend_444( - _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); - } - - void removeAllObjects() { - _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); - } - - void removeObject_inRange_(NSObject anObject, _NSRange range) { - _lib._objc_msgSend_445( - _id, _lib._sel_removeObject_inRange_1, anObject._id, range); - } - - void removeObject_(NSObject anObject) { - _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, anObject._id); - } - - void removeObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { - _lib._objc_msgSend_445( - _id, _lib._sel_removeObjectIdenticalTo_inRange_1, anObject._id, range); - } - - void removeObjectIdenticalTo_(NSObject anObject) { - _lib._objc_msgSend_15( - _id, _lib._sel_removeObjectIdenticalTo_1, anObject._id); - } - - void removeObjectsFromIndices_numIndices_( - ffi.Pointer indices, int cnt) { - _lib._objc_msgSend_446( - _id, _lib._sel_removeObjectsFromIndices_numIndices_1, indices, cnt); - } - - void removeObjectsInArray_(NSArray? otherArray) { - _lib._objc_msgSend_443( - _id, _lib._sel_removeObjectsInArray_1, otherArray?._id ?? ffi.nullptr); - } - - void removeObjectsInRange_(_NSRange range) { - _lib._objc_msgSend_447(_id, _lib._sel_removeObjectsInRange_1, range); - } - - void replaceObjectsInRange_withObjectsFromArray_range_( - _NSRange range, NSArray? otherArray, _NSRange otherRange) { - _lib._objc_msgSend_448( - _id, - _lib._sel_replaceObjectsInRange_withObjectsFromArray_range_1, - range, - otherArray?._id ?? ffi.nullptr, - otherRange); - } - - void replaceObjectsInRange_withObjectsFromArray_( - _NSRange range, NSArray? otherArray) { - _lib._objc_msgSend_449( - _id, - _lib._sel_replaceObjectsInRange_withObjectsFromArray_1, - range, - otherArray?._id ?? ffi.nullptr); - } - - void setArray_(NSArray? otherArray) { - _lib._objc_msgSend_443( - _id, _lib._sel_setArray_1, otherArray?._id ?? ffi.nullptr); - } - - void sortUsingFunction_context_( - ffi.Pointer< - ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>> - compare, - ffi.Pointer context) { - _lib._objc_msgSend_450( - _id, _lib._sel_sortUsingFunction_context_1, compare, context); - } - - void sortUsingSelector_(ffi.Pointer comparator) { - _lib._objc_msgSend_7(_id, _lib._sel_sortUsingSelector_1, comparator); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileVersion1); } - void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { - _lib._objc_msgSend_451(_id, _lib._sel_insertObjects_atIndexes_1, - objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); + static NSFileVersion currentVersionOfItemAtURL_( + SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_439(_lib._class_NSFileVersion1, + _lib._sel_currentVersionOfItemAtURL_1, url?._id ?? ffi.nullptr); + return NSFileVersion._(_ret, _lib, retain: true, release: true); } - void removeObjectsAtIndexes_(NSIndexSet? indexes) { - _lib._objc_msgSend_452( - _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + static NSArray otherVersionsOfItemAtURL_(SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_124(_lib._class_NSFileVersion1, + _lib._sel_otherVersionsOfItemAtURL_1, url?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - void replaceObjectsAtIndexes_withObjects_( - NSIndexSet? indexes, NSArray? objects) { - _lib._objc_msgSend_453(_id, _lib._sel_replaceObjectsAtIndexes_withObjects_1, - indexes?._id ?? ffi.nullptr, objects?._id ?? ffi.nullptr); + static NSArray unresolvedConflictVersionsOfItemAtURL_( + SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_124( + _lib._class_NSFileVersion1, + _lib._sel_unresolvedConflictVersionsOfItemAtURL_1, + url?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - void setObject_atIndexedSubscript_(NSObject obj, int idx) { + static void getNonlocalVersionsOfItemAtURL_completionHandler_( + SentryCocoa _lib, + NSURL? url, + ObjCBlock_ffiVoid_NSArray_NSError completionHandler) { _lib._objc_msgSend_440( - _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); + _lib._class_NSFileVersion1, + _lib._sel_getNonlocalVersionsOfItemAtURL_completionHandler_1, + url?._id ?? ffi.nullptr, + completionHandler._id); } - void sortUsingComparator_( - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - _lib._objc_msgSend_454(_id, _lib._sel_sortUsingComparator_1, cmptr._id); + static NSFileVersion versionOfItemAtURL_forPersistentIdentifier_( + SentryCocoa _lib, NSURL? url, NSObject persistentIdentifier) { + final _ret = _lib._objc_msgSend_441( + _lib._class_NSFileVersion1, + _lib._sel_versionOfItemAtURL_forPersistentIdentifier_1, + url?._id ?? ffi.nullptr, + persistentIdentifier._id); + return NSFileVersion._(_ret, _lib, retain: true, release: true); } - void sortWithOptions_usingComparator_( - int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - _lib._objc_msgSend_455( - _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); + static NSFileVersion addVersionOfItemAtURL_withContentsOfURL_options_error_( + SentryCocoa _lib, + NSURL? url, + NSURL? contentsURL, + int options, + ffi.Pointer> outError) { + final _ret = _lib._objc_msgSend_442( + _lib._class_NSFileVersion1, + _lib._sel_addVersionOfItemAtURL_withContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + contentsURL?._id ?? ffi.nullptr, + options, + outError); + return NSFileVersion._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithCapacity_(SentryCocoa _lib, int numItems) { - final _ret = _lib._objc_msgSend_60( - _lib._class_NSMutableArray1, _lib._sel_arrayWithCapacity_1, numItems); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + static NSURL temporaryDirectoryURLForNewVersionOfItemAtURL_( + SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_443( + _lib._class_NSFileVersion1, + _lib._sel_temporaryDirectoryURLForNewVersionOfItemAtURL_1, + url?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithContentsOfFile_( - SentryCocoa _lib, NSString? path) { - final _ret = _lib._objc_msgSend_456(_lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + NSURL? get URL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithContentsOfURL_(SentryCocoa _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_457(_lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + NSString? get localizedName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSMutableArray initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_456( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + NSString? get localizedNameOfSavingComputer { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_localizedNameOfSavingComputer1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSMutableArray initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_457( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + NSPersonNameComponents? get originatorNameComponents { + final _ret = + _lib._objc_msgSend_445(_id, _lib._sel_originatorNameComponents1); + return _ret.address == 0 + ? null + : NSPersonNameComponents._(_ret, _lib, retain: true, release: true); } - void applyDifference_(NSObject? difference) { - _lib._objc_msgSend_15( - _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); + NSDate? get modificationDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_modificationDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - void sortUsingDescriptors_(NSArray? sortDescriptors) { - _lib._objc_msgSend_443(_id, _lib._sel_sortUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); + NSObject? get persistentIdentifier { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_persistentIdentifier1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void filterUsingPredicate_(NSPredicate? predicate) { - _lib._objc_msgSend_458( - _id, _lib._sel_filterUsingPredicate_1, predicate?._id ?? ffi.nullptr); + bool get conflict { + return _lib._objc_msgSend_12(_id, _lib._sel_isConflict1); } - @override - NSMutableArray initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + bool get resolved { + return _lib._objc_msgSend_12(_id, _lib._sel_isResolved1); } - static NSMutableArray array(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_array1); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + set resolved(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setResolved_1, value); } - static NSMutableArray arrayWithObject_(SentryCocoa _lib, NSObject anObject) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSMutableArray1, _lib._sel_arrayWithObject_1, anObject._id); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + bool get discardable { + return _lib._objc_msgSend_12(_id, _lib._sel_isDiscardable1); } - static NSMutableArray arrayWithObjects_count_( - SentryCocoa _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableArray1, - _lib._sel_arrayWithObjects_count_1, objects, cnt); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + set discardable(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setDiscardable_1, value); } - static NSMutableArray arrayWithObjects_(SentryCocoa _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableArray1, - _lib._sel_arrayWithObjects_1, firstObj._id); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + bool get hasLocalContents { + return _lib._objc_msgSend_12(_id, _lib._sel_hasLocalContents1); } - static NSMutableArray arrayWithArray_(SentryCocoa _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableArray1, - _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + bool get hasThumbnail { + return _lib._objc_msgSend_12(_id, _lib._sel_hasThumbnail1); } - @override - NSMutableArray initWithObjects_(NSObject firstObj) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + NSURL replaceItemAtURL_options_error_( + NSURL? url, int options, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_448( + _id, + _lib._sel_replaceItemAtURL_options_error_1, + url?._id ?? ffi.nullptr, + options, + error); + return NSURL._(_ret, _lib, retain: true, release: true); } - @override - NSMutableArray initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableArray._(_ret, _lib, retain: true, release: true); + bool removeAndReturnError_(ffi.Pointer> outError) { + return _lib._objc_msgSend_236( + _id, _lib._sel_removeAndReturnError_1, outError); } - @override - NSMutableArray initWithArray_copyItems_(NSArray? array, bool flag) { - final _ret = _lib._objc_msgSend_118(_id, - _lib._sel_initWithArray_copyItems_1, array?._id ?? ffi.nullptr, flag); - return NSMutableArray._(_ret, _lib, retain: false, release: true); + static bool removeOtherVersionsOfItemAtURL_error_(SentryCocoa _lib, + NSURL? url, ffi.Pointer> outError) { + return _lib._objc_msgSend_83( + _lib._class_NSFileVersion1, + _lib._sel_removeOtherVersionsOfItemAtURL_error_1, + url?._id ?? ffi.nullptr, + outError); } - static NSArray arrayWithContentsOfURL_error_(SentryCocoa _lib, NSURL? url, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_119( - _lib._class_NSMutableArray1, - _lib._sel_arrayWithContentsOfURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + @override + NSFileVersion init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSFileVersion._(_ret, _lib, retain: true, release: true); } - static NSMutableArray new1(SentryCocoa _lib) { + static NSFileVersion new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_new1); - return NSMutableArray._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSFileVersion1, _lib._sel_new1); + return NSFileVersion._(_ret, _lib, retain: false, release: true); } - static NSMutableArray allocWithZone_( + static NSFileVersion allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSMutableArray1, _lib._sel_allocWithZone_1, zone); - return NSMutableArray._(_ret, _lib, retain: false, release: true); + _lib._class_NSFileVersion1, _lib._sel_allocWithZone_1, zone); + return NSFileVersion._(_ret, _lib, retain: false, release: true); } - static NSMutableArray alloc(SentryCocoa _lib) { + static NSFileVersion alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_alloc1); - return NSMutableArray._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSFileVersion1, _lib._sel_alloc1); + return NSFileVersion._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -43979,7 +46385,7 @@ class NSMutableArray extends NSArray { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSMutableArray1, + _lib._class_NSFileVersion1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -43988,24 +46394,24 @@ class NSMutableArray extends NSArray { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableArray1, + _lib._objc_msgSend_15(_lib._class_NSFileVersion1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableArray1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSFileVersion1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMutableArray1, _lib._sel_useStoredAccessor1); + _lib._class_NSFileVersion1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableArray1, + _lib._class_NSFileVersion1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -44014,7 +46420,7 @@ class NSMutableArray extends NSArray { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSMutableArray1, + _lib._class_NSFileVersion1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -44022,7 +46428,7 @@ class NSMutableArray extends NSArray { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSMutableArray1, + _lib._class_NSFileVersion1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -44030,404 +46436,245 @@ class NSMutableArray extends NSArray { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSMutableArray1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSFileVersion1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableArray1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSFileVersion1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSMutableOrderedSet extends NSOrderedSet { - NSMutableOrderedSet._(ffi.Pointer id, SentryCocoa lib, +void _ObjCBlock_ffiVoid_NSArray_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} + +final _ObjCBlock_ffiVoid_NSArray_NSError_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSArray_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSArray_NSError_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSArray_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSArray_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) { + return (_ObjCBlock_ffiVoid_NSArray_NSError_closureRegistry[ + block.ref.target.address] + as void Function( + ffi.Pointer, ffi.Pointer))(arg0, arg1); +} + +class ObjCBlock_ffiVoid_NSArray_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray_NSError._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSArray_NSError.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock_ffiVoid_NSArray_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSArray_NSError.fromFunction( + SentryCocoa lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock_ffiVoid_NSArray_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSArray_NSError_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +abstract class NSFileVersionAddingOptions { + static const int NSFileVersionAddingByMoving = 1; +} + +class NSPersonNameComponents extends NSObject { + NSPersonNameComponents._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMutableOrderedSet] that points to the same underlying object as [other]. - static NSMutableOrderedSet castFrom(T other) { - return NSMutableOrderedSet._(other._id, other._lib, + /// Returns a [NSPersonNameComponents] that points to the same underlying object as [other]. + static NSPersonNameComponents castFrom(T other) { + return NSPersonNameComponents._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSMutableOrderedSet] that wraps the given raw object pointer. - static NSMutableOrderedSet castFromPointer( + /// Returns a [NSPersonNameComponents] that wraps the given raw object pointer. + static NSPersonNameComponents castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableOrderedSet._(other, lib, retain: retain, release: release); + return NSPersonNameComponents._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableOrderedSet]. + /// Returns whether [obj] is an instance of [NSPersonNameComponents]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableOrderedSet1); + obj._lib._class_NSPersonNameComponents1); } - void insertObject_atIndex_(NSObject object, int idx) { - _lib._objc_msgSend_440( - _id, _lib._sel_insertObject_atIndex_1, object._id, idx); + NSString? get namePrefix { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_namePrefix1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void removeObjectAtIndex_(int idx) { - _lib._objc_msgSend_441(_id, _lib._sel_removeObjectAtIndex_1, idx); + set namePrefix(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setNamePrefix_1, value?._id ?? ffi.nullptr); } - void replaceObjectAtIndex_withObject_(int idx, NSObject object) { - _lib._objc_msgSend_442( - _id, _lib._sel_replaceObjectAtIndex_withObject_1, idx, object._id); + NSString? get givenName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_givenName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - NSMutableOrderedSet initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + set givenName(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setGivenName_1, value?._id ?? ffi.nullptr); } - @override - NSMutableOrderedSet init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + NSString? get middleName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_middleName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSMutableOrderedSet initWithCapacity_(int numItems) { - final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + set middleName(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setMiddleName_1, value?._id ?? ffi.nullptr); } - void addObject_(NSObject object) { - _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); + NSString? get familyName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_familyName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void addObjects_count_( - ffi.Pointer> objects, int count) { - _lib._objc_msgSend_469(_id, _lib._sel_addObjects_count_1, objects, count); + set familyName(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setFamilyName_1, value?._id ?? ffi.nullptr); } - void addObjectsFromArray_(NSArray? array) { - _lib._objc_msgSend_443( - _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); + NSString? get nameSuffix { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_nameSuffix1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { - _lib._objc_msgSend_444( - _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); + set nameSuffix(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setNameSuffix_1, value?._id ?? ffi.nullptr); } - void moveObjectsAtIndexes_toIndex_(NSIndexSet? indexes, int idx) { - _lib._objc_msgSend_470(_id, _lib._sel_moveObjectsAtIndexes_toIndex_1, - indexes?._id ?? ffi.nullptr, idx); + NSString? get nickname { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_nickname1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { - _lib._objc_msgSend_451(_id, _lib._sel_insertObjects_atIndexes_1, - objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); + set nickname(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setNickname_1, value?._id ?? ffi.nullptr); } - void setObject_atIndex_(NSObject obj, int idx) { - _lib._objc_msgSend_440(_id, _lib._sel_setObject_atIndex_1, obj._id, idx); + NSPersonNameComponents? get phoneticRepresentation { + final _ret = _lib._objc_msgSend_445(_id, _lib._sel_phoneticRepresentation1); + return _ret.address == 0 + ? null + : NSPersonNameComponents._(_ret, _lib, retain: true, release: true); } - void setObject_atIndexedSubscript_(NSObject obj, int idx) { - _lib._objc_msgSend_440( - _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); + set phoneticRepresentation(NSPersonNameComponents? value) { + return _lib._objc_msgSend_446( + _id, _lib._sel_setPhoneticRepresentation_1, value?._id ?? ffi.nullptr); } - void replaceObjectsInRange_withObjects_count_( - _NSRange range, ffi.Pointer> objects, int count) { - _lib._objc_msgSend_471( - _id, - _lib._sel_replaceObjectsInRange_withObjects_count_1, - range, - objects, - count); + @override + NSPersonNameComponents init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPersonNameComponents._(_ret, _lib, retain: true, release: true); } - void replaceObjectsAtIndexes_withObjects_( - NSIndexSet? indexes, NSArray? objects) { - _lib._objc_msgSend_453(_id, _lib._sel_replaceObjectsAtIndexes_withObjects_1, - indexes?._id ?? ffi.nullptr, objects?._id ?? ffi.nullptr); + static NSPersonNameComponents new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPersonNameComponents1, _lib._sel_new1); + return NSPersonNameComponents._(_ret, _lib, retain: false, release: true); } - void removeObjectsInRange_(_NSRange range) { - _lib._objc_msgSend_447(_id, _lib._sel_removeObjectsInRange_1, range); + static NSPersonNameComponents allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPersonNameComponents1, _lib._sel_allocWithZone_1, zone); + return NSPersonNameComponents._(_ret, _lib, retain: false, release: true); } - void removeObjectsAtIndexes_(NSIndexSet? indexes) { - _lib._objc_msgSend_452( - _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); - } - - void removeAllObjects() { - _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); - } - - void removeObject_(NSObject object) { - _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); - } - - void removeObjectsInArray_(NSArray? array) { - _lib._objc_msgSend_443( - _id, _lib._sel_removeObjectsInArray_1, array?._id ?? ffi.nullptr); - } - - void intersectOrderedSet_(NSOrderedSet? other) { - _lib._objc_msgSend_472( - _id, _lib._sel_intersectOrderedSet_1, other?._id ?? ffi.nullptr); - } - - void minusOrderedSet_(NSOrderedSet? other) { - _lib._objc_msgSend_472( - _id, _lib._sel_minusOrderedSet_1, other?._id ?? ffi.nullptr); - } - - void unionOrderedSet_(NSOrderedSet? other) { - _lib._objc_msgSend_472( - _id, _lib._sel_unionOrderedSet_1, other?._id ?? ffi.nullptr); - } - - void intersectSet_(NSSet? other) { - _lib._objc_msgSend_473( - _id, _lib._sel_intersectSet_1, other?._id ?? ffi.nullptr); - } - - void minusSet_(NSSet? other) { - _lib._objc_msgSend_473( - _id, _lib._sel_minusSet_1, other?._id ?? ffi.nullptr); - } - - void unionSet_(NSSet? other) { - _lib._objc_msgSend_473( - _id, _lib._sel_unionSet_1, other?._id ?? ffi.nullptr); - } - - void sortUsingComparator_( - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - _lib._objc_msgSend_454(_id, _lib._sel_sortUsingComparator_1, cmptr._id); - } - - void sortWithOptions_usingComparator_( - int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - _lib._objc_msgSend_455( - _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); - } - - void sortRange_options_usingComparator_(_NSRange range, int opts, - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - _lib._objc_msgSend_474(_id, _lib._sel_sortRange_options_usingComparator_1, - range, opts, cmptr._id); - } - - static NSMutableOrderedSet orderedSetWithCapacity_( - SentryCocoa _lib, int numItems) { - final _ret = _lib._objc_msgSend_60(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithCapacity_1, numItems); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - void applyDifference_(NSObject? difference) { - _lib._objc_msgSend_15( - _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); - } - - void sortUsingDescriptors_(NSArray? sortDescriptors) { - _lib._objc_msgSend_443(_id, _lib._sel_sortUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); - } - - void filterUsingPredicate_(NSPredicate? p) { - _lib._objc_msgSend_458( - _id, _lib._sel_filterUsingPredicate_1, p?._id ?? ffi.nullptr); - } - - @override - NSMutableOrderedSet initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableOrderedSet orderedSet(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableOrderedSet1, _lib._sel_orderedSet1); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableOrderedSet orderedSetWithObject_( - SentryCocoa _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithObject_1, object._id); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableOrderedSet orderedSetWithObjects_count_( - SentryCocoa _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithObjects_count_1, objects, cnt); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableOrderedSet orderedSetWithObjects_( - SentryCocoa _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithObjects_1, firstObj._id); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableOrderedSet orderedSetWithOrderedSet_( - SentryCocoa _lib, NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_461(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_1, set?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableOrderedSet orderedSetWithOrderedSet_range_copyItems_( - SentryCocoa _lib, NSOrderedSet? set, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_462( - _lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); - } - - static NSMutableOrderedSet orderedSetWithArray_( - SentryCocoa _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableOrderedSet orderedSetWithArray_range_copyItems_( - SentryCocoa _lib, NSArray? array, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_463( - _lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithArray_range_copyItems_1, - array?._id ?? ffi.nullptr, - range, - flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); - } - - static NSMutableOrderedSet orderedSetWithSet_(SentryCocoa _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_384(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithSet_1, set?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSMutableOrderedSet orderedSetWithSet_copyItems_( - SentryCocoa _lib, NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_385(_lib._class_NSMutableOrderedSet1, - _lib._sel_orderedSetWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); - } - - @override - NSMutableOrderedSet initWithObject_(NSObject object) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObject_1, object._id); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - @override - NSMutableOrderedSet initWithObjects_(NSObject firstObj) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - @override - NSMutableOrderedSet initWithOrderedSet_(NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_461( - _id, _lib._sel_initWithOrderedSet_1, set?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - @override - NSMutableOrderedSet initWithOrderedSet_copyItems_( - NSOrderedSet? set, bool flag) { - final _ret = _lib._objc_msgSend_464( - _id, - _lib._sel_initWithOrderedSet_copyItems_1, - set?._id ?? ffi.nullptr, - flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); - } - - @override - NSMutableOrderedSet initWithOrderedSet_range_copyItems_( - NSOrderedSet? set, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_462( - _id, - _lib._sel_initWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); - } - - @override - NSMutableOrderedSet initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - @override - NSMutableOrderedSet initWithArray_copyItems_(NSArray? set, bool flag) { - final _ret = _lib._objc_msgSend_118(_id, - _lib._sel_initWithArray_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); - } - - @override - NSMutableOrderedSet initWithArray_range_copyItems_( - NSArray? set, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_463( - _id, - _lib._sel_initWithArray_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); - } - - @override - NSMutableOrderedSet initWithSet_(NSSet? set) { - final _ret = _lib._objc_msgSend_384( - _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); - return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); - } - - @override - NSMutableOrderedSet initWithSet_copyItems_(NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_385( - _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); - } - - static NSMutableOrderedSet new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableOrderedSet1, _lib._sel_new1); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); - } - - static NSMutableOrderedSet allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSMutableOrderedSet1, _lib._sel_allocWithZone_1, zone); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); - } - - static NSMutableOrderedSet alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableOrderedSet1, _lib._sel_alloc1); - return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + static NSPersonNameComponents alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPersonNameComponents1, _lib._sel_alloc1); + return NSPersonNameComponents._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -44436,7 +46683,7 @@ class NSMutableOrderedSet extends NSOrderedSet { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSMutableOrderedSet1, + _lib._class_NSPersonNameComponents1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -44445,24 +46692,24 @@ class NSMutableOrderedSet extends NSOrderedSet { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableOrderedSet1, + _lib._objc_msgSend_15(_lib._class_NSPersonNameComponents1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableOrderedSet1, + return _lib._objc_msgSend_12(_lib._class_NSPersonNameComponents1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMutableOrderedSet1, _lib._sel_useStoredAccessor1); + _lib._class_NSPersonNameComponents1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableOrderedSet1, + _lib._class_NSPersonNameComponents1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -44471,7 +46718,7 @@ class NSMutableOrderedSet extends NSOrderedSet { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSMutableOrderedSet1, + _lib._class_NSPersonNameComponents1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -44479,539 +46726,443 @@ class NSMutableOrderedSet extends NSOrderedSet { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSMutableOrderedSet1, + _lib._class_NSPersonNameComponents1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableOrderedSet1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSPersonNameComponents1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableOrderedSet1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSPersonNameComponents1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSOrderedSet extends NSObject { - NSOrderedSet._(ffi.Pointer id, SentryCocoa lib, +abstract class NSFileVersionReplacingOptions { + static const int NSFileVersionReplacingByMoving = 1; +} + +abstract class NSFileManagerUploadLocalVersionConflictPolicy { + static const int NSFileManagerUploadConflictPolicyDefault = 0; + static const int NSFileManagerUploadConflictPolicyFailOnConflict = 1; +} + +void _ObjCBlock_ffiVoid_NSDictionary_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} + +final _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSDictionary_NSError_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSDictionary_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) { + return (_ObjCBlock_ffiVoid_NSDictionary_NSError_closureRegistry[ + block.ref.target.address] + as void Function( + ffi.Pointer, ffi.Pointer))(arg0, arg1); +} + +class ObjCBlock_ffiVoid_NSDictionary_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDictionary_NSError._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSDictionary_NSError.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock_ffiVoid_NSDictionary_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSDictionary_NSError.fromFunction( + SentryCocoa lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock_ffiVoid_NSDictionary_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSDictionary_NSError_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +class NSMutableArray extends NSArray { + NSMutableArray._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSOrderedSet] that points to the same underlying object as [other]. - static NSOrderedSet castFrom(T other) { - return NSOrderedSet._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSMutableArray] that points to the same underlying object as [other]. + static NSMutableArray castFrom(T other) { + return NSMutableArray._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSOrderedSet] that wraps the given raw object pointer. - static NSOrderedSet castFromPointer( + /// Returns a [NSMutableArray] that wraps the given raw object pointer. + static NSMutableArray castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSOrderedSet._(other, lib, retain: retain, release: release); + return NSMutableArray._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSOrderedSet]. + /// Returns whether [obj] is an instance of [NSMutableArray]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOrderedSet1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableArray1); } - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); + void addObject_(NSObject anObject) { + _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, anObject._id); } - NSObject objectAtIndex_(int idx) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndex_1, idx); - return NSObject._(_ret, _lib, retain: true, release: true); + void insertObject_atIndex_(NSObject anObject, int index) { + _lib._objc_msgSend_454( + _id, _lib._sel_insertObject_atIndex_1, anObject._id, index); } - int indexOfObject_(NSObject object) { - return _lib._objc_msgSend_69(_id, _lib._sel_indexOfObject_1, object._id); + void removeLastObject() { + _lib._objc_msgSend_1(_id, _lib._sel_removeLastObject1); + } + + void removeObjectAtIndex_(int index) { + _lib._objc_msgSend_455(_id, _lib._sel_removeObjectAtIndex_1, index); + } + + void replaceObjectAtIndex_withObject_(int index, NSObject anObject) { + _lib._objc_msgSend_456( + _id, _lib._sel_replaceObjectAtIndex_withObject_1, index, anObject._id); } @override - NSOrderedSet init() { + NSMutableArray init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + NSMutableArray initWithCapacity_(int numItems) { + final _ret = + _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithCoder_(NSCoder? coder) { + @override + NSMutableArray initWithCoder_(NSCoder? coder) { final _ret = _lib._objc_msgSend_42( _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - void getObjects_range_( - ffi.Pointer> objects, _NSRange range) { - _lib._objc_msgSend_68(_id, _lib._sel_getObjects_range_1, objects, range); + void addObjectsFromArray_(NSArray? otherArray) { + _lib._objc_msgSend_457( + _id, _lib._sel_addObjectsFromArray_1, otherArray?._id ?? ffi.nullptr); } - NSArray objectsAtIndexes_(NSIndexSet? indexes) { - final _ret = _lib._objc_msgSend_105( - _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { + _lib._objc_msgSend_458( + _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); } - NSObject get firstObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_firstObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + void removeAllObjects() { + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } - NSObject get lastObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_lastObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + void removeObject_inRange_(NSObject anObject, _NSRange range) { + _lib._objc_msgSend_459( + _id, _lib._sel_removeObject_inRange_1, anObject._id, range); } - bool isEqualToOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_459( - _id, _lib._sel_isEqualToOrderedSet_1, other?._id ?? ffi.nullptr); + void removeObject_(NSObject anObject) { + _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, anObject._id); } - bool containsObject_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, object._id); + void removeObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { + _lib._objc_msgSend_459( + _id, _lib._sel_removeObjectIdenticalTo_inRange_1, anObject._id, range); } - bool intersectsOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_459( - _id, _lib._sel_intersectsOrderedSet_1, other?._id ?? ffi.nullptr); + void removeObjectIdenticalTo_(NSObject anObject) { + _lib._objc_msgSend_15( + _id, _lib._sel_removeObjectIdenticalTo_1, anObject._id); } - bool intersectsSet_(NSSet? set) { - return _lib._objc_msgSend_376( - _id, _lib._sel_intersectsSet_1, set?._id ?? ffi.nullptr); + void removeObjectsFromIndices_numIndices_( + ffi.Pointer indices, int cnt) { + _lib._objc_msgSend_460( + _id, _lib._sel_removeObjectsFromIndices_numIndices_1, indices, cnt); } - bool isSubsetOfOrderedSet_(NSOrderedSet? other) { - return _lib._objc_msgSend_459( - _id, _lib._sel_isSubsetOfOrderedSet_1, other?._id ?? ffi.nullptr); + void removeObjectsInArray_(NSArray? otherArray) { + _lib._objc_msgSend_457( + _id, _lib._sel_removeObjectsInArray_1, otherArray?._id ?? ffi.nullptr); } - bool isSubsetOfSet_(NSSet? set) { - return _lib._objc_msgSend_376( - _id, _lib._sel_isSubsetOfSet_1, set?._id ?? ffi.nullptr); + void removeObjectsInRange_(_NSRange range) { + _lib._objc_msgSend_461(_id, _lib._sel_removeObjectsInRange_1, range); } - NSObject objectAtIndexedSubscript_(int idx) { - final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndexedSubscript_1, idx); - return NSObject._(_ret, _lib, retain: true, release: true); + void replaceObjectsInRange_withObjectsFromArray_range_( + _NSRange range, NSArray? otherArray, _NSRange otherRange) { + _lib._objc_msgSend_462( + _id, + _lib._sel_replaceObjectsInRange_withObjectsFromArray_range_1, + range, + otherArray?._id ?? ffi.nullptr, + otherRange); } - NSEnumerator objectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); + void replaceObjectsInRange_withObjectsFromArray_( + _NSRange range, NSArray? otherArray) { + _lib._objc_msgSend_463( + _id, + _lib._sel_replaceObjectsInRange_withObjectsFromArray_1, + range, + otherArray?._id ?? ffi.nullptr); } - NSEnumerator reverseObjectEnumerator() { - final _ret = _lib._objc_msgSend_72(_id, _lib._sel_reverseObjectEnumerator1); - return NSEnumerator._(_ret, _lib, retain: true, release: true); + void setArray_(NSArray? otherArray) { + _lib._objc_msgSend_457( + _id, _lib._sel_setArray_1, otherArray?._id ?? ffi.nullptr); } - NSOrderedSet? get reversedOrderedSet { - final _ret = _lib._objc_msgSend_460(_id, _lib._sel_reversedOrderedSet1); - return _ret.address == 0 - ? null - : NSOrderedSet._(_ret, _lib, retain: true, release: true); + void sortUsingFunction_context_( + ffi.Pointer< + ffi.NativeFunction< + ffi.Long Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>> + compare, + ffi.Pointer context) { + _lib._objc_msgSend_464( + _id, _lib._sel_sortUsingFunction_context_1, compare, context); } - NSArray? get array { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_array1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + void sortUsingSelector_(ffi.Pointer comparator) { + _lib._objc_msgSend_7(_id, _lib._sel_sortUsingSelector_1, comparator); } - NSSet? get set1 { - final _ret = _lib._objc_msgSend_297(_id, _lib._sel_set1); - return _ret.address == 0 - ? null - : NSSet._(_ret, _lib, retain: true, release: true); - } - - void enumerateObjectsUsingBlock_( - ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { - _lib._objc_msgSend_106( - _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); - } - - void enumerateObjectsWithOptions_usingBlock_( - int opts, ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { - _lib._objc_msgSend_107(_id, - _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); - } - - void enumerateObjectsAtIndexes_options_usingBlock_(NSIndexSet? s, int opts, - ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { - _lib._objc_msgSend_108( - _id, - _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, - s?._id ?? ffi.nullptr, - opts, - block._id); - } - - int indexOfObjectPassingTest_( - ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { - return _lib._objc_msgSend_109( - _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); - } - - int indexOfObjectWithOptions_passingTest_( - int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { - return _lib._objc_msgSend_110(_id, - _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); - } - - int indexOfObjectAtIndexes_options_passingTest_(NSIndexSet? s, int opts, - ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { - return _lib._objc_msgSend_111( - _id, - _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, - opts, - predicate._id); - } - - NSIndexSet indexesOfObjectsPassingTest_( - ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { - final _ret = _lib._objc_msgSend_112( - _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { + _lib._objc_msgSend_465(_id, _lib._sel_insertObjects_atIndexes_1, + objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); } - NSIndexSet indexesOfObjectsWithOptions_passingTest_( - int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { - final _ret = _lib._objc_msgSend_113( - _id, - _lib._sel_indexesOfObjectsWithOptions_passingTest_1, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + void removeObjectsAtIndexes_(NSIndexSet? indexes) { + _lib._objc_msgSend_466( + _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); } - NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_(NSIndexSet? s, - int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { - final _ret = _lib._objc_msgSend_114( - _id, - _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, - s?._id ?? ffi.nullptr, - opts, - predicate._id); - return NSIndexSet._(_ret, _lib, retain: true, release: true); + void replaceObjectsAtIndexes_withObjects_( + NSIndexSet? indexes, NSArray? objects) { + _lib._objc_msgSend_467(_id, _lib._sel_replaceObjectsAtIndexes_withObjects_1, + indexes?._id ?? ffi.nullptr, objects?._id ?? ffi.nullptr); } - int indexOfObject_inSortedRange_options_usingComparator_( - NSObject object, - _NSRange range, - int opts, - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmp) { - return _lib._objc_msgSend_117( - _id, - _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, - object._id, - range, - opts, - cmp._id); + void setObject_atIndexedSubscript_(NSObject obj, int idx) { + _lib._objc_msgSend_454( + _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); } - NSArray sortedArrayUsingComparator_( + void sortUsingComparator_( ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - final _ret = _lib._objc_msgSend_115( - _id, _lib._sel_sortedArrayUsingComparator_1, cmptr._id); - return NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_468(_id, _lib._sel_sortUsingComparator_1, cmptr._id); } - NSArray sortedArrayWithOptions_usingComparator_( + void sortWithOptions_usingComparator_( int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - final _ret = _lib._objc_msgSend_116(_id, - _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); - return NSArray._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_469( + _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSMutableArray arrayWithCapacity_(SentryCocoa _lib, int numItems) { + final _ret = _lib._objc_msgSend_60( + _lib._class_NSMutableArray1, _lib._sel_arrayWithCapacity_1, numItems); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_(NSObject locale) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_descriptionWithLocale_1, locale._id); - return NSString._(_ret, _lib, retain: true, release: true); + static NSMutableArray arrayWithContentsOfFile_( + SentryCocoa _lib, NSString? path) { + final _ret = _lib._objc_msgSend_470(_lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSString descriptionWithLocale_indent_(NSObject locale, int level) { - final _ret = _lib._objc_msgSend_66( - _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); - return NSString._(_ret, _lib, retain: true, release: true); + static NSMutableArray arrayWithContentsOfURL_(SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_471(_lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSOrderedSet orderedSet(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_orderedSet1); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + NSMutableArray initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_470( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSOrderedSet orderedSetWithObject_(SentryCocoa _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithObject_1, object._id); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + NSMutableArray initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_471( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSOrderedSet orderedSetWithObjects_count_( - SentryCocoa _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithObjects_count_1, objects, cnt); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + void applyDifference_(NSObject? difference) { + _lib._objc_msgSend_15( + _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); } - static NSOrderedSet orderedSetWithObjects_( - SentryCocoa _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithObjects_1, firstObj._id); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + void sortUsingDescriptors_(NSArray? sortDescriptors) { + _lib._objc_msgSend_457(_id, _lib._sel_sortUsingDescriptors_1, + sortDescriptors?._id ?? ffi.nullptr); } - static NSOrderedSet orderedSetWithOrderedSet_( - SentryCocoa _lib, NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_461(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_1, set?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + void filterUsingPredicate_(NSPredicate? predicate) { + _lib._objc_msgSend_472( + _id, _lib._sel_filterUsingPredicate_1, predicate?._id ?? ffi.nullptr); } - static NSOrderedSet orderedSetWithOrderedSet_range_copyItems_( - SentryCocoa _lib, NSOrderedSet? set, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_462( - _lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + @override + NSMutableArray initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSOrderedSet orderedSetWithArray_(SentryCocoa _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithArray_1, array?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + static NSMutableArray array(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_array1); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSOrderedSet orderedSetWithArray_range_copyItems_( - SentryCocoa _lib, NSArray? array, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_463( - _lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithArray_range_copyItems_1, - array?._id ?? ffi.nullptr, - range, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + static NSMutableArray arrayWithObject_(SentryCocoa _lib, NSObject anObject) { + final _ret = _lib._objc_msgSend_16( + _lib._class_NSMutableArray1, _lib._sel_arrayWithObject_1, anObject._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSOrderedSet orderedSetWithSet_(SentryCocoa _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_384(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithSet_1, set?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + static NSMutableArray arrayWithObjects_count_( + SentryCocoa _lib, ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableArray1, + _lib._sel_arrayWithObjects_count_1, objects, cnt); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSOrderedSet orderedSetWithSet_copyItems_( - SentryCocoa _lib, NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_385(_lib._class_NSOrderedSet1, - _lib._sel_orderedSetWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + static NSMutableArray arrayWithObjects_(SentryCocoa _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableArray1, + _lib._sel_arrayWithObjects_1, firstObj._id); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithObject_(NSObject object) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObject_1, object._id); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); + static NSMutableArray arrayWithArray_(SentryCocoa _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableArray1, + _lib._sel_arrayWithArray_1, array?._id ?? ffi.nullptr); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithObjects_(NSObject firstObj) { + @override + NSMutableArray initWithObjects_(NSObject firstObj) { final _ret = _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - NSOrderedSet initWithOrderedSet_(NSOrderedSet? set) { - final _ret = _lib._objc_msgSend_461( - _id, _lib._sel_initWithOrderedSet_1, set?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - NSOrderedSet initWithOrderedSet_copyItems_(NSOrderedSet? set, bool flag) { - final _ret = _lib._objc_msgSend_464( - _id, - _lib._sel_initWithOrderedSet_copyItems_1, - set?._id ?? ffi.nullptr, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); - } - - NSOrderedSet initWithOrderedSet_range_copyItems_( - NSOrderedSet? set, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_462( - _id, - _lib._sel_initWithOrderedSet_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } - NSOrderedSet initWithArray_(NSArray? array) { + @override + NSMutableArray initWithArray_(NSArray? array) { final _ret = _lib._objc_msgSend_67( _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - NSOrderedSet initWithArray_copyItems_(NSArray? set, bool flag) { - final _ret = _lib._objc_msgSend_118(_id, - _lib._sel_initWithArray_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); - } - - NSOrderedSet initWithArray_range_copyItems_( - NSArray? set, _NSRange range, bool flag) { - final _ret = _lib._objc_msgSend_463( - _id, - _lib._sel_initWithArray_range_copyItems_1, - set?._id ?? ffi.nullptr, - range, - flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); - } - - NSOrderedSet initWithSet_(NSSet? set) { - final _ret = _lib._objc_msgSend_384( - _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - NSOrderedSet initWithSet_copyItems_(NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_385( - _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); - } - - NSObject differenceFromOrderedSet_withOptions_usingEquivalenceTest_( - NSOrderedSet? other, - int options, - ObjCBlock_bool_ObjCObject_ObjCObject block) { - final _ret = _lib._objc_msgSend_465( - _id, - _lib._sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_1, - other?._id ?? ffi.nullptr, - options, - block._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject differenceFromOrderedSet_withOptions_( - NSOrderedSet? other, int options) { - final _ret = _lib._objc_msgSend_466( - _id, - _lib._sel_differenceFromOrderedSet_withOptions_1, - other?._id ?? ffi.nullptr, - options); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject differenceFromOrderedSet_(NSOrderedSet? other) { - final _ret = _lib._objc_msgSend_461( - _id, _lib._sel_differenceFromOrderedSet_1, other?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSOrderedSet orderedSetByApplyingDifference_(NSObject? difference) { - final _ret = _lib._objc_msgSend_467( - _id, - _lib._sel_orderedSetByApplyingDifference_1, - difference?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - @override - NSObject valueForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - @override - void setValue_forKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); - } - - @override - void addObserver_forKeyPath_options_context_(NSObject? observer, - NSString? keyPath, int options, ffi.Pointer context) { - _lib._objc_msgSend_130( - _id, - _lib._sel_addObserver_forKeyPath_options_context_1, - observer?._id ?? ffi.nullptr, - keyPath?._id ?? ffi.nullptr, - options, - context); - } - - @override - void removeObserver_forKeyPath_context_( - NSObject? observer, NSString? keyPath, ffi.Pointer context) { - _lib._objc_msgSend_131(_id, _lib._sel_removeObserver_forKeyPath_context_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr, context); + return NSMutableArray._(_ret, _lib, retain: true, release: true); } @override - void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, - observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); + NSMutableArray initWithArray_copyItems_(NSArray? array, bool flag) { + final _ret = _lib._objc_msgSend_118(_id, + _lib._sel_initWithArray_copyItems_1, array?._id ?? ffi.nullptr, flag); + return NSMutableArray._(_ret, _lib, retain: false, release: true); } - NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedArrayUsingDescriptors_1, - sortDescriptors?._id ?? ffi.nullptr); + static NSArray arrayWithContentsOfURL_error_(SentryCocoa _lib, NSURL? url, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_119( + _lib._class_NSMutableArray1, + _lib._sel_arrayWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); return NSArray._(_ret, _lib, retain: true, release: true); } - NSOrderedSet filteredOrderedSetUsingPredicate_(NSPredicate? p) { - final _ret = _lib._objc_msgSend_468(_id, - _lib._sel_filteredOrderedSetUsingPredicate_1, p?._id ?? ffi.nullptr); - return NSOrderedSet._(_ret, _lib, retain: true, release: true); - } - - static NSOrderedSet new1(SentryCocoa _lib) { + static NSMutableArray new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_new1); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_new1); + return NSMutableArray._(_ret, _lib, retain: false, release: true); } - static NSOrderedSet allocWithZone_( + static NSMutableArray allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSOrderedSet1, _lib._sel_allocWithZone_1, zone); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + _lib._class_NSMutableArray1, _lib._sel_allocWithZone_1, zone); + return NSMutableArray._(_ret, _lib, retain: false, release: true); } - static NSOrderedSet alloc(SentryCocoa _lib) { + static NSMutableArray alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_alloc1); - return NSOrderedSet._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_alloc1); + return NSMutableArray._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -45020,7 +47171,7 @@ class NSOrderedSet extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSOrderedSet1, + _lib._class_NSMutableArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -45029,24 +47180,24 @@ class NSOrderedSet extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSOrderedSet1, + _lib._objc_msgSend_15(_lib._class_NSMutableArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSOrderedSet1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSMutableArray1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSOrderedSet1, _lib._sel_useStoredAccessor1); + _lib._class_NSMutableArray1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSOrderedSet1, + _lib._class_NSMutableArray1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -45055,7 +47206,7 @@ class NSOrderedSet extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSOrderedSet1, + _lib._class_NSMutableArray1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -45063,7 +47214,7 @@ class NSOrderedSet extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSOrderedSet1, + _lib._class_NSMutableArray1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -45071,335 +47222,404 @@ class NSOrderedSet extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSOrderedSet1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSMutableArray1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSOrderedSet1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSMutableArray1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSMutableSet extends NSSet { - NSMutableSet._(ffi.Pointer id, SentryCocoa lib, +class NSMutableOrderedSet extends NSOrderedSet { + NSMutableOrderedSet._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMutableSet] that points to the same underlying object as [other]. - static NSMutableSet castFrom(T other) { - return NSMutableSet._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSMutableOrderedSet] that points to the same underlying object as [other]. + static NSMutableOrderedSet castFrom(T other) { + return NSMutableOrderedSet._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSMutableSet] that wraps the given raw object pointer. - static NSMutableSet castFromPointer( + /// Returns a [NSMutableOrderedSet] that wraps the given raw object pointer. + static NSMutableOrderedSet castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableSet._(other, lib, retain: retain, release: release); + return NSMutableOrderedSet._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableSet]. + /// Returns whether [obj] is an instance of [NSMutableOrderedSet]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMutableSet1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableOrderedSet1); } - void addObject_(NSObject object) { - _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); + void insertObject_atIndex_(NSObject object, int idx) { + _lib._objc_msgSend_454( + _id, _lib._sel_insertObject_atIndex_1, object._id, idx); } - void removeObject_(NSObject object) { - _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); + void removeObjectAtIndex_(int idx) { + _lib._objc_msgSend_455(_id, _lib._sel_removeObjectAtIndex_1, idx); + } + + void replaceObjectAtIndex_withObject_(int idx, NSObject object) { + _lib._objc_msgSend_456( + _id, _lib._sel_replaceObjectAtIndex_withObject_1, idx, object._id); } @override - NSMutableSet initWithCoder_(NSCoder? coder) { + NSMutableOrderedSet initWithCoder_(NSCoder? coder) { final _ret = _lib._objc_msgSend_42( _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } @override - NSMutableSet init() { + NSMutableOrderedSet init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - NSMutableSet initWithCapacity_(int numItems) { + NSMutableOrderedSet initWithCapacity_(int numItems) { final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + void addObject_(NSObject object) { + _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); + } + + void addObjects_count_( + ffi.Pointer> objects, int count) { + _lib._objc_msgSend_483(_id, _lib._sel_addObjects_count_1, objects, count); } void addObjectsFromArray_(NSArray? array) { - _lib._objc_msgSend_443( + _lib._objc_msgSend_457( _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); } - void intersectSet_(NSSet? otherSet) { - _lib._objc_msgSend_473( - _id, _lib._sel_intersectSet_1, otherSet?._id ?? ffi.nullptr); + void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { + _lib._objc_msgSend_458( + _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); } - void minusSet_(NSSet? otherSet) { - _lib._objc_msgSend_473( - _id, _lib._sel_minusSet_1, otherSet?._id ?? ffi.nullptr); + void moveObjectsAtIndexes_toIndex_(NSIndexSet? indexes, int idx) { + _lib._objc_msgSend_484(_id, _lib._sel_moveObjectsAtIndexes_toIndex_1, + indexes?._id ?? ffi.nullptr, idx); } - void removeAllObjects() { - _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { + _lib._objc_msgSend_465(_id, _lib._sel_insertObjects_atIndexes_1, + objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); } - void unionSet_(NSSet? otherSet) { - _lib._objc_msgSend_473( - _id, _lib._sel_unionSet_1, otherSet?._id ?? ffi.nullptr); + void setObject_atIndex_(NSObject obj, int idx) { + _lib._objc_msgSend_454(_id, _lib._sel_setObject_atIndex_1, obj._id, idx); } - void setSet_(NSSet? otherSet) { - _lib._objc_msgSend_473( - _id, _lib._sel_setSet_1, otherSet?._id ?? ffi.nullptr); + void setObject_atIndexedSubscript_(NSObject obj, int idx) { + _lib._objc_msgSend_454( + _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); } - static NSMutableSet setWithCapacity_(SentryCocoa _lib, int numItems) { - final _ret = _lib._objc_msgSend_60( - _lib._class_NSMutableSet1, _lib._sel_setWithCapacity_1, numItems); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + void replaceObjectsInRange_withObjects_count_( + _NSRange range, ffi.Pointer> objects, int count) { + _lib._objc_msgSend_485( + _id, + _lib._sel_replaceObjectsInRange_withObjects_count_1, + range, + objects, + count); } - void filterUsingPredicate_(NSPredicate? predicate) { - _lib._objc_msgSend_458( - _id, _lib._sel_filterUsingPredicate_1, predicate?._id ?? ffi.nullptr); + void replaceObjectsAtIndexes_withObjects_( + NSIndexSet? indexes, NSArray? objects) { + _lib._objc_msgSend_467(_id, _lib._sel_replaceObjectsAtIndexes_withObjects_1, + indexes?._id ?? ffi.nullptr, objects?._id ?? ffi.nullptr); } - @override - NSMutableSet initWithObjects_count_( - ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61( - _id, _lib._sel_initWithObjects_count_1, objects, cnt); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + void removeObjectsInRange_(_NSRange range) { + _lib._objc_msgSend_461(_id, _lib._sel_removeObjectsInRange_1, range); } - static NSMutableSet set1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_set1); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + void removeObjectsAtIndexes_(NSIndexSet? indexes) { + _lib._objc_msgSend_466( + _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); } - static NSMutableSet setWithObject_(SentryCocoa _lib, NSObject object) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSMutableSet1, _lib._sel_setWithObject_1, object._id); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + void removeAllObjects() { + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } - static NSMutableSet setWithObjects_count_( - SentryCocoa _lib, ffi.Pointer> objects, int cnt) { - final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableSet1, - _lib._sel_setWithObjects_count_1, objects, cnt); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + void removeObject_(NSObject object) { + _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); } - static NSMutableSet setWithObjects_(SentryCocoa _lib, NSObject firstObj) { - final _ret = _lib._objc_msgSend_16( - _lib._class_NSMutableSet1, _lib._sel_setWithObjects_1, firstObj._id); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + void removeObjectsInArray_(NSArray? array) { + _lib._objc_msgSend_457( + _id, _lib._sel_removeObjectsInArray_1, array?._id ?? ffi.nullptr); } - static NSMutableSet setWithSet_(SentryCocoa _lib, NSSet? set) { - final _ret = _lib._objc_msgSend_384(_lib._class_NSMutableSet1, - _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + void intersectOrderedSet_(NSOrderedSet? other) { + _lib._objc_msgSend_486( + _id, _lib._sel_intersectOrderedSet_1, other?._id ?? ffi.nullptr); } - static NSMutableSet setWithArray_(SentryCocoa _lib, NSArray? array) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableSet1, - _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + void minusOrderedSet_(NSOrderedSet? other) { + _lib._objc_msgSend_486( + _id, _lib._sel_minusOrderedSet_1, other?._id ?? ffi.nullptr); } - @override - NSMutableSet initWithObjects_(NSObject firstObj) { - final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + void unionOrderedSet_(NSOrderedSet? other) { + _lib._objc_msgSend_486( + _id, _lib._sel_unionOrderedSet_1, other?._id ?? ffi.nullptr); } - @override - NSMutableSet initWithSet_(NSSet? set) { - final _ret = _lib._objc_msgSend_384( - _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + void intersectSet_(NSSet? other) { + _lib._objc_msgSend_487( + _id, _lib._sel_intersectSet_1, other?._id ?? ffi.nullptr); } - @override - NSMutableSet initWithSet_copyItems_(NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_385( - _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSMutableSet._(_ret, _lib, retain: false, release: true); + void minusSet_(NSSet? other) { + _lib._objc_msgSend_487( + _id, _lib._sel_minusSet_1, other?._id ?? ffi.nullptr); + } + + void unionSet_(NSSet? other) { + _lib._objc_msgSend_487( + _id, _lib._sel_unionSet_1, other?._id ?? ffi.nullptr); + } + + void sortUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_468(_id, _lib._sel_sortUsingComparator_1, cmptr._id); + } + + void sortWithOptions_usingComparator_( + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_469( + _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); + } + + void sortRange_options_usingComparator_(_NSRange range, int opts, + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + _lib._objc_msgSend_488(_id, _lib._sel_sortRange_options_usingComparator_1, + range, opts, cmptr._id); + } + + static NSMutableOrderedSet orderedSetWithCapacity_( + SentryCocoa _lib, int numItems) { + final _ret = _lib._objc_msgSend_60(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithCapacity_1, numItems); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } + + void applyDifference_(NSObject? difference) { + _lib._objc_msgSend_15( + _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); + } + + void sortUsingDescriptors_(NSArray? sortDescriptors) { + _lib._objc_msgSend_457(_id, _lib._sel_sortUsingDescriptors_1, + sortDescriptors?._id ?? ffi.nullptr); + } + + void filterUsingPredicate_(NSPredicate? p) { + _lib._objc_msgSend_472( + _id, _lib._sel_filterUsingPredicate_1, p?._id ?? ffi.nullptr); } @override - NSMutableSet initWithArray_(NSArray? array) { - final _ret = _lib._objc_msgSend_67( - _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); + NSMutableOrderedSet initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSMutableSet new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_new1); - return NSMutableSet._(_ret, _lib, retain: false, release: true); + static NSMutableOrderedSet orderedSet(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableOrderedSet1, _lib._sel_orderedSet1); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSMutableSet allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSMutableSet1, _lib._sel_allocWithZone_1, zone); - return NSMutableSet._(_ret, _lib, retain: false, release: true); + static NSMutableOrderedSet orderedSetWithObject_( + SentryCocoa _lib, NSObject object) { + final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithObject_1, object._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSMutableSet alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_alloc1); - return NSMutableSet._(_ret, _lib, retain: false, release: true); + static NSMutableOrderedSet orderedSetWithObjects_count_( + SentryCocoa _lib, ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithObjects_count_1, objects, cnt); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSMutableSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + static NSMutableOrderedSet orderedSetWithObjects_( + SentryCocoa _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithObjects_1, firstObj._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableSet1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + static NSMutableOrderedSet orderedSetWithOrderedSet_( + SentryCocoa _lib, NSOrderedSet? set) { + final _ret = _lib._objc_msgSend_475(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_1, set?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableSet1, _lib._sel_accessInstanceVariablesDirectly1); + static NSMutableOrderedSet orderedSetWithOrderedSet_range_copyItems_( + SentryCocoa _lib, NSOrderedSet? set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_476( + _lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, + set?._id ?? ffi.nullptr, + range, + flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableSet1, _lib._sel_useStoredAccessor1); + static NSMutableOrderedSet orderedSetWithArray_( + SentryCocoa _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithArray_1, array?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableSet1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + static NSMutableOrderedSet orderedSetWithArray_range_copyItems_( + SentryCocoa _lib, NSArray? array, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_477( + _lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithArray_range_copyItems_1, + array?._id ?? ffi.nullptr, + range, + flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableSet1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + static NSMutableOrderedSet orderedSetWithSet_(SentryCocoa _lib, NSSet? set) { + final _ret = _lib._objc_msgSend_384(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithSet_1, set?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSMutableSet1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + static NSMutableOrderedSet orderedSetWithSet_copyItems_( + SentryCocoa _lib, NSSet? set, bool flag) { + final _ret = _lib._objc_msgSend_385(_lib._class_NSMutableOrderedSet1, + _lib._sel_orderedSetWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSMutableSet1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + @override + NSMutableOrderedSet initWithObject_(NSObject object) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithObject_1, object._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableSet1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + NSMutableOrderedSet initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } -} -abstract class NSKeyValueChange { - static const int NSKeyValueChangeSetting = 1; - static const int NSKeyValueChangeInsertion = 2; - static const int NSKeyValueChangeRemoval = 3; - static const int NSKeyValueChangeReplacement = 4; -} + @override + NSMutableOrderedSet initWithOrderedSet_(NSOrderedSet? set) { + final _ret = _lib._objc_msgSend_475( + _id, _lib._sel_initWithOrderedSet_1, set?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); + } -abstract class NSKeyValueSetMutationKind { - static const int NSKeyValueUnionSetMutation = 1; - static const int NSKeyValueMinusSetMutation = 2; - static const int NSKeyValueIntersectSetMutation = 3; - static const int NSKeyValueSetSetMutation = 4; -} + @override + NSMutableOrderedSet initWithOrderedSet_copyItems_( + NSOrderedSet? set, bool flag) { + final _ret = _lib._objc_msgSend_478( + _id, + _lib._sel_initWithOrderedSet_copyItems_1, + set?._id ?? ffi.nullptr, + flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } -class NSKeyValueSharedObserversSnapshot extends NSObject { - NSKeyValueSharedObserversSnapshot._( - ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + @override + NSMutableOrderedSet initWithOrderedSet_range_copyItems_( + NSOrderedSet? set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_476( + _id, + _lib._sel_initWithOrderedSet_range_copyItems_1, + set?._id ?? ffi.nullptr, + range, + flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } - /// Returns a [NSKeyValueSharedObserversSnapshot] that points to the same underlying object as [other]. - static NSKeyValueSharedObserversSnapshot castFrom( - T other) { - return NSKeyValueSharedObserversSnapshot._(other._id, other._lib, - retain: true, release: true); + @override + NSMutableOrderedSet initWithArray_(NSArray? array) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSKeyValueSharedObserversSnapshot] that wraps the given raw object pointer. - static NSKeyValueSharedObserversSnapshot castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSKeyValueSharedObserversSnapshot._(other, lib, - retain: retain, release: release); + @override + NSMutableOrderedSet initWithArray_copyItems_(NSArray? set, bool flag) { + final _ret = _lib._objc_msgSend_118(_id, + _lib._sel_initWithArray_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - /// Returns whether [obj] is an instance of [NSKeyValueSharedObserversSnapshot]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSKeyValueSharedObserversSnapshot1); + @override + NSMutableOrderedSet initWithArray_range_copyItems_( + NSArray? set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_477( + _id, + _lib._sel_initWithArray_range_copyItems_1, + set?._id ?? ffi.nullptr, + range, + flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } @override - NSObject init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSMutableOrderedSet initWithSet_(NSSet? set) { + final _ret = _lib._objc_msgSend_384( + _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); + return NSMutableOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSObject new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSKeyValueSharedObserversSnapshot1, _lib._sel_new1); - return NSObject._(_ret, _lib, retain: false, release: true); + @override + NSMutableOrderedSet initWithSet_copyItems_(NSSet? set, bool flag) { + final _ret = _lib._objc_msgSend_385( + _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSKeyValueSharedObserversSnapshot allocWithZone_( + static NSMutableOrderedSet new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableOrderedSet1, _lib._sel_new1); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); + } + + static NSMutableOrderedSet allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSKeyValueSharedObserversSnapshot1, - _lib._sel_allocWithZone_1, - zone); - return NSKeyValueSharedObserversSnapshot._(_ret, _lib, - retain: false, release: true); + _lib._class_NSMutableOrderedSet1, _lib._sel_allocWithZone_1, zone); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSKeyValueSharedObserversSnapshot alloc(SentryCocoa _lib) { + static NSMutableOrderedSet alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSKeyValueSharedObserversSnapshot1, _lib._sel_alloc1); - return NSKeyValueSharedObserversSnapshot._(_ret, _lib, - retain: false, release: true); + _lib._class_NSMutableOrderedSet1, _lib._sel_alloc1); + return NSMutableOrderedSet._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -45408,7 +47628,7 @@ class NSKeyValueSharedObserversSnapshot extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSKeyValueSharedObserversSnapshot1, + _lib._class_NSMutableOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -45417,24 +47637,24 @@ class NSKeyValueSharedObserversSnapshot extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSKeyValueSharedObserversSnapshot1, + _lib._objc_msgSend_15(_lib._class_NSMutableOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSKeyValueSharedObserversSnapshot1, + return _lib._objc_msgSend_12(_lib._class_NSMutableOrderedSet1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSKeyValueSharedObserversSnapshot1, - _lib._sel_useStoredAccessor1); + return _lib._objc_msgSend_12( + _lib._class_NSMutableOrderedSet1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSKeyValueSharedObserversSnapshot1, + _lib._class_NSMutableOrderedSet1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -45443,7 +47663,7 @@ class NSKeyValueSharedObserversSnapshot extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSKeyValueSharedObserversSnapshot1, + _lib._class_NSMutableOrderedSet1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -45451,227 +47671,539 @@ class NSKeyValueSharedObserversSnapshot extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSKeyValueSharedObserversSnapshot1, + _lib._class_NSMutableOrderedSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSKeyValueSharedObserversSnapshot1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableOrderedSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSKeyValueSharedObserversSnapshot1, - _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSMutableOrderedSet1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSKeyedArchiver extends NSCoder { - NSKeyedArchiver._(ffi.Pointer id, SentryCocoa lib, +class NSOrderedSet extends NSObject { + NSOrderedSet._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSKeyedArchiver] that points to the same underlying object as [other]. - static NSKeyedArchiver castFrom(T other) { - return NSKeyedArchiver._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSOrderedSet] that points to the same underlying object as [other]. + static NSOrderedSet castFrom(T other) { + return NSOrderedSet._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSKeyedArchiver] that wraps the given raw object pointer. - static NSKeyedArchiver castFromPointer( + /// Returns a [NSOrderedSet] that wraps the given raw object pointer. + static NSOrderedSet castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSKeyedArchiver._(other, lib, retain: retain, release: release); + return NSOrderedSet._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSKeyedArchiver]. + /// Returns whether [obj] is an instance of [NSOrderedSet]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSKeyedArchiver1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOrderedSet1); } - NSKeyedArchiver initRequiringSecureCoding_(bool requiresSecureCoding) { - final _ret = _lib._objc_msgSend_484( - _id, _lib._sel_initRequiringSecureCoding_1, requiresSecureCoding); - return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); } - static NSData archivedDataWithRootObject_requiringSecureCoding_error_( - SentryCocoa _lib, - NSObject object, - bool requiresSecureCoding, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_485( - _lib._class_NSKeyedArchiver1, - _lib._sel_archivedDataWithRootObject_requiringSecureCoding_error_1, - object._id, - requiresSecureCoding, - error); - return NSData._(_ret, _lib, retain: true, release: true); + NSObject objectAtIndex_(int idx) { + final _ret = _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndex_1, idx); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - NSKeyedArchiver init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); + int indexOfObject_(NSObject object) { + return _lib._objc_msgSend_69(_id, _lib._sel_indexOfObject_1, object._id); } - NSKeyedArchiver initForWritingWithMutableData_(NSMutableData? data) { - final _ret = _lib._objc_msgSend_490(_id, - _lib._sel_initForWritingWithMutableData_1, data?._id ?? ffi.nullptr); - return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); + @override + NSOrderedSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - static NSData archivedDataWithRootObject_( - SentryCocoa _lib, NSObject rootObject) { - final _ret = _lib._objc_msgSend_491(_lib._class_NSKeyedArchiver1, - _lib._sel_archivedDataWithRootObject_1, rootObject._id); - return NSData._(_ret, _lib, retain: true, release: true); + NSOrderedSet initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - static bool archiveRootObject_toFile_( - SentryCocoa _lib, NSObject rootObject, NSString? path) { - return _lib._objc_msgSend_240( - _lib._class_NSKeyedArchiver1, - _lib._sel_archiveRootObject_toFile_1, - rootObject._id, - path?._id ?? ffi.nullptr); + NSOrderedSet initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + void getObjects_range_( + ffi.Pointer> objects, _NSRange range) { + _lib._objc_msgSend_68(_id, _lib._sel_getObjects_range_1, objects, range); } - set delegate(NSObject? value) { - return _lib._objc_msgSend_389( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + NSArray objectsAtIndexes_(NSIndexSet? indexes) { + final _ret = _lib._objc_msgSend_105( + _id, _lib._sel_objectsAtIndexes_1, indexes?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - int get outputFormat { - return _lib._objc_msgSend_492(_id, _lib._sel_outputFormat1); + NSObject get firstObject { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_firstObject1); + return NSObject._(_ret, _lib, retain: true, release: true); } - set outputFormat(int value) { - return _lib._objc_msgSend_493(_id, _lib._sel_setOutputFormat_1, value); + NSObject get lastObject { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_lastObject1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSData? get encodedData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_encodedData1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + bool isEqualToOrderedSet_(NSOrderedSet? other) { + return _lib._objc_msgSend_473( + _id, _lib._sel_isEqualToOrderedSet_1, other?._id ?? ffi.nullptr); } - void finishEncoding() { - _lib._objc_msgSend_1(_id, _lib._sel_finishEncoding1); + bool containsObject_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_containsObject_1, object._id); } - static void setClassName_forClass_( - SentryCocoa _lib, NSString? codedName, NSObject cls) { - _lib._objc_msgSend_494( - _lib._class_NSKeyedArchiver1, - _lib._sel_setClassName_forClass_1, - codedName?._id ?? ffi.nullptr, - cls._id); + bool intersectsOrderedSet_(NSOrderedSet? other) { + return _lib._objc_msgSend_473( + _id, _lib._sel_intersectsOrderedSet_1, other?._id ?? ffi.nullptr); } - static NSString classNameForClass_(SentryCocoa _lib, NSObject cls) { - final _ret = _lib._objc_msgSend_65( - _lib._class_NSKeyedArchiver1, _lib._sel_classNameForClass_1, cls._id); - return NSString._(_ret, _lib, retain: true, release: true); + bool intersectsSet_(NSSet? set) { + return _lib._objc_msgSend_376( + _id, _lib._sel_intersectsSet_1, set?._id ?? ffi.nullptr); } - @override - void encodeObject_forKey_(NSObject object, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_encodeObject_forKey_1, object._id, - key?._id ?? ffi.nullptr); + bool isSubsetOfOrderedSet_(NSOrderedSet? other) { + return _lib._objc_msgSend_473( + _id, _lib._sel_isSubsetOfOrderedSet_1, other?._id ?? ffi.nullptr); } - @override - void encodeConditionalObject_forKey_(NSObject object, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_encodeConditionalObject_forKey_1, - object._id, key?._id ?? ffi.nullptr); + bool isSubsetOfSet_(NSSet? set) { + return _lib._objc_msgSend_376( + _id, _lib._sel_isSubsetOfSet_1, set?._id ?? ffi.nullptr); } - @override - void encodeBool_forKey_(bool value, NSString? key) { - _lib._objc_msgSend_272( - _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); + NSObject objectAtIndexedSubscript_(int idx) { + final _ret = + _lib._objc_msgSend_60(_id, _lib._sel_objectAtIndexedSubscript_1, idx); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - void encodeInt_forKey_(int value, NSString? key) { - _lib._objc_msgSend_273( - _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); + NSEnumerator objectEnumerator() { + final _ret = _lib._objc_msgSend_72(_id, _lib._sel_objectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); } - @override - void encodeInt32_forKey_(int value, NSString? key) { - _lib._objc_msgSend_274( - _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); + NSEnumerator reverseObjectEnumerator() { + final _ret = _lib._objc_msgSend_72(_id, _lib._sel_reverseObjectEnumerator1); + return NSEnumerator._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet? get reversedOrderedSet { + final _ret = _lib._objc_msgSend_474(_id, _lib._sel_reversedOrderedSet1); + return _ret.address == 0 + ? null + : NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSArray? get array { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_array1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSSet? get set1 { + final _ret = _lib._objc_msgSend_297(_id, _lib._sel_set1); + return _ret.address == 0 + ? null + : NSSet._(_ret, _lib, retain: true, release: true); + } + + void enumerateObjectsUsingBlock_( + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_106( + _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); + } + + void enumerateObjectsWithOptions_usingBlock_( + int opts, ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_107(_id, + _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); + } + + void enumerateObjectsAtIndexes_options_usingBlock_(NSIndexSet? s, int opts, + ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { + _lib._objc_msgSend_108( + _id, + _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, + s?._id ?? ffi.nullptr, + opts, + block._id); + } + + int indexOfObjectPassingTest_( + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_109( + _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); + } + + int indexOfObjectWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_110(_id, + _lib._sel_indexOfObjectWithOptions_passingTest_1, opts, predicate._id); + } + + int indexOfObjectAtIndexes_options_passingTest_(NSIndexSet? s, int opts, + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + return _lib._objc_msgSend_111( + _id, + _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, + s?._id ?? ffi.nullptr, + opts, + predicate._id); + } + + NSIndexSet indexesOfObjectsPassingTest_( + ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_112( + _id, _lib._sel_indexesOfObjectsPassingTest_1, predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet indexesOfObjectsWithOptions_passingTest_( + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_113( + _id, + _lib._sel_indexesOfObjectsWithOptions_passingTest_1, + opts, + predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_(NSIndexSet? s, + int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + final _ret = _lib._objc_msgSend_114( + _id, + _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, + s?._id ?? ffi.nullptr, + opts, + predicate._id); + return NSIndexSet._(_ret, _lib, retain: true, release: true); + } + + int indexOfObject_inSortedRange_options_usingComparator_( + NSObject object, + _NSRange range, + int opts, + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmp) { + return _lib._objc_msgSend_117( + _id, + _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, + object._id, + range, + opts, + cmp._id); + } + + NSArray sortedArrayUsingComparator_( + ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_115( + _id, _lib._sel_sortedArrayUsingComparator_1, cmptr._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray sortedArrayWithOptions_usingComparator_( + int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + final _ret = _lib._objc_msgSend_116(_id, + _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString? get description { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithLocale_(NSObject locale) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_descriptionWithLocale_1, locale._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString descriptionWithLocale_indent_(NSObject locale, int level) { + final _ret = _lib._objc_msgSend_66( + _id, _lib._sel_descriptionWithLocale_indent_1, locale._id, level); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSOrderedSet orderedSet(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_orderedSet1); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSOrderedSet orderedSetWithObject_(SentryCocoa _lib, NSObject object) { + final _ret = _lib._objc_msgSend_16(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithObject_1, object._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSOrderedSet orderedSetWithObjects_count_( + SentryCocoa _lib, ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithObjects_count_1, objects, cnt); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSOrderedSet orderedSetWithObjects_( + SentryCocoa _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_16(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithObjects_1, firstObj._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSOrderedSet orderedSetWithOrderedSet_( + SentryCocoa _lib, NSOrderedSet? set) { + final _ret = _lib._objc_msgSend_475(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_1, set?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSOrderedSet orderedSetWithOrderedSet_range_copyItems_( + SentryCocoa _lib, NSOrderedSet? set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_476( + _lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithOrderedSet_range_copyItems_1, + set?._id ?? ffi.nullptr, + range, + flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + static NSOrderedSet orderedSetWithArray_(SentryCocoa _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithArray_1, array?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSOrderedSet orderedSetWithArray_range_copyItems_( + SentryCocoa _lib, NSArray? array, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_477( + _lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithArray_range_copyItems_1, + array?._id ?? ffi.nullptr, + range, + flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + static NSOrderedSet orderedSetWithSet_(SentryCocoa _lib, NSSet? set) { + final _ret = _lib._objc_msgSend_384(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithSet_1, set?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSOrderedSet orderedSetWithSet_copyItems_( + SentryCocoa _lib, NSSet? set, bool flag) { + final _ret = _lib._objc_msgSend_385(_lib._class_NSOrderedSet1, + _lib._sel_orderedSetWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + NSOrderedSet initWithObject_(NSObject object) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithObject_1, object._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet initWithOrderedSet_(NSOrderedSet? set) { + final _ret = _lib._objc_msgSend_475( + _id, _lib._sel_initWithOrderedSet_1, set?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet initWithOrderedSet_copyItems_(NSOrderedSet? set, bool flag) { + final _ret = _lib._objc_msgSend_478( + _id, + _lib._sel_initWithOrderedSet_copyItems_1, + set?._id ?? ffi.nullptr, + flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + NSOrderedSet initWithOrderedSet_range_copyItems_( + NSOrderedSet? set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_476( + _id, + _lib._sel_initWithOrderedSet_range_copyItems_1, + set?._id ?? ffi.nullptr, + range, + flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + NSOrderedSet initWithArray_(NSArray? array) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet initWithArray_copyItems_(NSArray? set, bool flag) { + final _ret = _lib._objc_msgSend_118(_id, + _lib._sel_initWithArray_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + NSOrderedSet initWithArray_range_copyItems_( + NSArray? set, _NSRange range, bool flag) { + final _ret = _lib._objc_msgSend_477( + _id, + _lib._sel_initWithArray_range_copyItems_1, + set?._id ?? ffi.nullptr, + range, + flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + NSOrderedSet initWithSet_(NSSet? set) { + final _ret = _lib._objc_msgSend_384( + _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet initWithSet_copyItems_(NSSet? set, bool flag) { + final _ret = _lib._objc_msgSend_385( + _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); + } + + NSObject differenceFromOrderedSet_withOptions_usingEquivalenceTest_( + NSOrderedSet? other, + int options, + ObjCBlock_bool_ObjCObject_ObjCObject block) { + final _ret = _lib._objc_msgSend_479( + _id, + _lib._sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_1, + other?._id ?? ffi.nullptr, + options, + block._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromOrderedSet_withOptions_( + NSOrderedSet? other, int options) { + final _ret = _lib._objc_msgSend_480( + _id, + _lib._sel_differenceFromOrderedSet_withOptions_1, + other?._id ?? ffi.nullptr, + options); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject differenceFromOrderedSet_(NSOrderedSet? other) { + final _ret = _lib._objc_msgSend_475( + _id, _lib._sel_differenceFromOrderedSet_1, other?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSOrderedSet orderedSetByApplyingDifference_(NSObject? difference) { + final _ret = _lib._objc_msgSend_481( + _id, + _lib._sel_orderedSetByApplyingDifference_1, + difference?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); } @override - void encodeInt64_forKey_(int value, NSString? key) { - _lib._objc_msgSend_275( - _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); + NSObject valueForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_valueForKey_1, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } @override - void encodeFloat_forKey_(double value, NSString? key) { - _lib._objc_msgSend_276( - _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); + void setValue_forKey_(NSObject value, NSString? key) { + _lib._objc_msgSend_126( + _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); } @override - void encodeDouble_forKey_(double value, NSString? key) { - _lib._objc_msgSend_277( - _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); + void addObserver_forKeyPath_options_context_(NSObject? observer, + NSString? keyPath, int options, ffi.Pointer context) { + _lib._objc_msgSend_130( + _id, + _lib._sel_addObserver_forKeyPath_options_context_1, + observer?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + options, + context); } @override - void encodeBytes_length_forKey_( - ffi.Pointer bytes, int length, NSString? key) { - _lib._objc_msgSend_278(_id, _lib._sel_encodeBytes_length_forKey_1, bytes, - length, key?._id ?? ffi.nullptr); + void removeObserver_forKeyPath_context_( + NSObject? observer, NSString? keyPath, ffi.Pointer context) { + _lib._objc_msgSend_131(_id, _lib._sel_removeObserver_forKeyPath_context_1, + observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr, context); } @override - bool get requiresSecureCoding { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresSecureCoding1); + void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { + _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, + observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); } - set requiresSecureCoding(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setRequiresSecureCoding_1, value); + NSArray sortedArrayUsingDescriptors_(NSArray? sortDescriptors) { + final _ret = _lib._objc_msgSend_63( + _id, + _lib._sel_sortedArrayUsingDescriptors_1, + sortDescriptors?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSKeyedArchiver new1(SentryCocoa _lib) { + NSOrderedSet filteredOrderedSetUsingPredicate_(NSPredicate? p) { + final _ret = _lib._objc_msgSend_482(_id, + _lib._sel_filteredOrderedSetUsingPredicate_1, p?._id ?? ffi.nullptr); + return NSOrderedSet._(_ret, _lib, retain: true, release: true); + } + + static NSOrderedSet new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSKeyedArchiver1, _lib._sel_new1); - return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_new1); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSKeyedArchiver allocWithZone_( + static NSOrderedSet allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSKeyedArchiver1, _lib._sel_allocWithZone_1, zone); - return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); + _lib._class_NSOrderedSet1, _lib._sel_allocWithZone_1, zone); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSKeyedArchiver alloc(SentryCocoa _lib) { + static NSOrderedSet alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSKeyedArchiver1, _lib._sel_alloc1); - return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_alloc1); + return NSOrderedSet._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -45680,7 +48212,7 @@ class NSKeyedArchiver extends NSCoder { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSKeyedArchiver1, + _lib._class_NSOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -45689,24 +48221,24 @@ class NSKeyedArchiver extends NSCoder { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSKeyedArchiver1, + _lib._objc_msgSend_15(_lib._class_NSOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSKeyedArchiver1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSOrderedSet1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSKeyedArchiver1, _lib._sel_useStoredAccessor1); + _lib._class_NSOrderedSet1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSKeyedArchiver1, + _lib._class_NSOrderedSet1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -45715,7 +48247,7 @@ class NSKeyedArchiver extends NSCoder { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSKeyedArchiver1, + _lib._class_NSOrderedSet1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -45723,357 +48255,343 @@ class NSKeyedArchiver extends NSCoder { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSKeyedArchiver1, + _lib._class_NSOrderedSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSKeyedArchiver1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSOrderedSet1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSKeyedArchiver1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSOrderedSet1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSMutableData extends NSData { - NSMutableData._(ffi.Pointer id, SentryCocoa lib, +class NSMutableSet extends NSSet { + NSMutableSet._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMutableData] that points to the same underlying object as [other]. - static NSMutableData castFrom(T other) { - return NSMutableData._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSMutableSet] that points to the same underlying object as [other]. + static NSMutableSet castFrom(T other) { + return NSMutableSet._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSMutableData] that wraps the given raw object pointer. - static NSMutableData castFromPointer( + /// Returns a [NSMutableSet] that wraps the given raw object pointer. + static NSMutableSet castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableData._(other, lib, retain: retain, release: release); + return NSMutableSet._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableData]. + /// Returns whether [obj] is an instance of [NSMutableSet]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMutableData1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMutableSet1); } - ffi.Pointer get mutableBytes { - return _lib._objc_msgSend_19(_id, _lib._sel_mutableBytes1); + void addObject_(NSObject object) { + _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); } - @override - int get length { - return _lib._objc_msgSend_10(_id, _lib._sel_length1); + void removeObject_(NSObject object) { + _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); } - set length(int value) { - return _lib._objc_msgSend_486(_id, _lib._sel_setLength_1, value); + @override + NSMutableSet initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - void appendBytes_length_(ffi.Pointer bytes, int length) { - _lib._objc_msgSend_21(_id, _lib._sel_appendBytes_length_1, bytes, length); + @override + NSMutableSet init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - void appendData_(NSData? other) { - _lib._objc_msgSend_263( - _id, _lib._sel_appendData_1, other?._id ?? ffi.nullptr); + NSMutableSet initWithCapacity_(int numItems) { + final _ret = + _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - void increaseLengthBy_(int extraLength) { - _lib._objc_msgSend_441(_id, _lib._sel_increaseLengthBy_1, extraLength); + void addObjectsFromArray_(NSArray? array) { + _lib._objc_msgSend_457( + _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); } - void replaceBytesInRange_withBytes_( - _NSRange range, ffi.Pointer bytes) { + void intersectSet_(NSSet? otherSet) { _lib._objc_msgSend_487( - _id, _lib._sel_replaceBytesInRange_withBytes_1, range, bytes); + _id, _lib._sel_intersectSet_1, otherSet?._id ?? ffi.nullptr); } - void resetBytesInRange_(_NSRange range) { - _lib._objc_msgSend_447(_id, _lib._sel_resetBytesInRange_1, range); + void minusSet_(NSSet? otherSet) { + _lib._objc_msgSend_487( + _id, _lib._sel_minusSet_1, otherSet?._id ?? ffi.nullptr); } - void setData_(NSData? data) { - _lib._objc_msgSend_263(_id, _lib._sel_setData_1, data?._id ?? ffi.nullptr); + void removeAllObjects() { + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } - void replaceBytesInRange_withBytes_length_(_NSRange range, - ffi.Pointer replacementBytes, int replacementLength) { - _lib._objc_msgSend_488( - _id, - _lib._sel_replaceBytesInRange_withBytes_length_1, - range, - replacementBytes, - replacementLength); + void unionSet_(NSSet? otherSet) { + _lib._objc_msgSend_487( + _id, _lib._sel_unionSet_1, otherSet?._id ?? ffi.nullptr); } - static NSMutableData dataWithCapacity_(SentryCocoa _lib, int aNumItems) { - final _ret = _lib._objc_msgSend_60( - _lib._class_NSMutableData1, _lib._sel_dataWithCapacity_1, aNumItems); - return NSMutableData._(_ret, _lib, retain: true, release: true); + void setSet_(NSSet? otherSet) { + _lib._objc_msgSend_487( + _id, _lib._sel_setSet_1, otherSet?._id ?? ffi.nullptr); } - static NSMutableData dataWithLength_(SentryCocoa _lib, int length) { + static NSMutableSet setWithCapacity_(SentryCocoa _lib, int numItems) { final _ret = _lib._objc_msgSend_60( - _lib._class_NSMutableData1, _lib._sel_dataWithLength_1, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); + _lib._class_NSMutableSet1, _lib._sel_setWithCapacity_1, numItems); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - NSMutableData initWithCapacity_(int capacity) { - final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, capacity); - return NSMutableData._(_ret, _lib, retain: true, release: true); + void filterUsingPredicate_(NSPredicate? predicate) { + _lib._objc_msgSend_472( + _id, _lib._sel_filterUsingPredicate_1, predicate?._id ?? ffi.nullptr); } - NSMutableData initWithLength_(int length) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithLength_1, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); + @override + NSMutableSet initWithObjects_count_( + ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61( + _id, _lib._sel_initWithObjects_count_1, objects, cnt); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - bool decompressUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - return _lib._objc_msgSend_489( - _id, _lib._sel_decompressUsingAlgorithm_error_1, algorithm, error); + static NSMutableSet set1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_set1); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - bool compressUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - return _lib._objc_msgSend_489( - _id, _lib._sel_compressUsingAlgorithm_error_1, algorithm, error); + static NSMutableSet setWithObject_(SentryCocoa _lib, NSObject object) { + final _ret = _lib._objc_msgSend_16( + _lib._class_NSMutableSet1, _lib._sel_setWithObject_1, object._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSMutableData data(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_data1); - return NSMutableData._(_ret, _lib, retain: true, release: true); + static NSMutableSet setWithObjects_count_( + SentryCocoa _lib, ffi.Pointer> objects, int cnt) { + final _ret = _lib._objc_msgSend_61(_lib._class_NSMutableSet1, + _lib._sel_setWithObjects_count_1, objects, cnt); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithBytes_length_( - SentryCocoa _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_252(_lib._class_NSMutableData1, - _lib._sel_dataWithBytes_length_1, bytes, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); + static NSMutableSet setWithObjects_(SentryCocoa _lib, NSObject firstObj) { + final _ret = _lib._objc_msgSend_16( + _lib._class_NSMutableSet1, _lib._sel_setWithObjects_1, firstObj._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithBytesNoCopy_length_( - SentryCocoa _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_252(_lib._class_NSMutableData1, - _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); - return NSMutableData._(_ret, _lib, retain: false, release: true); + static NSMutableSet setWithSet_(SentryCocoa _lib, NSSet? set) { + final _ret = _lib._objc_msgSend_384(_lib._class_NSMutableSet1, + _lib._sel_setWithSet_1, set?._id ?? ffi.nullptr); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithBytesNoCopy_length_freeWhenDone_( - SentryCocoa _lib, ffi.Pointer bytes, int length, bool b) { - final _ret = _lib._objc_msgSend_253(_lib._class_NSMutableData1, - _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); - return NSMutableData._(_ret, _lib, retain: false, release: true); + static NSMutableSet setWithArray_(SentryCocoa _lib, NSArray? array) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableSet1, + _lib._sel_setWithArray_1, array?._id ?? ffi.nullptr); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithContentsOfFile_options_error_( - SentryCocoa _lib, - NSString? path, - int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_254( - _lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + @override + NSMutableSet initWithObjects_(NSObject firstObj) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithObjects_1, firstObj._id); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithContentsOfURL_options_error_( - SentryCocoa _lib, - NSURL? url, - int readOptionsMask, - ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_255( - _lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + @override + NSMutableSet initWithSet_(NSSet? set) { + final _ret = _lib._objc_msgSend_384( + _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - static NSMutableData dataWithContentsOfFile_( - SentryCocoa _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + @override + NSMutableSet initWithSet_copyItems_(NSSet? set, bool flag) { + final _ret = _lib._objc_msgSend_385( + _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); + return NSMutableSet._(_ret, _lib, retain: false, release: true); } - static NSMutableData dataWithContentsOfURL_(SentryCocoa _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + @override + NSMutableSet initWithArray_(NSArray? array) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithArray_1, array?._id ?? ffi.nullptr); + return NSMutableSet._(_ret, _lib, retain: true, release: true); } - @override - NSMutableData initWithBytes_length_(ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_252( - _id, _lib._sel_initWithBytes_length_1, bytes, length); - return NSMutableData._(_ret, _lib, retain: true, release: true); + static NSMutableSet new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_new1); + return NSMutableSet._(_ret, _lib, retain: false, release: true); } - @override - NSMutableData initWithBytesNoCopy_length_( - ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_252( - _id, _lib._sel_initWithBytesNoCopy_length_1, bytes, length); - return NSMutableData._(_ret, _lib, retain: false, release: true); + static NSMutableSet allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableSet1, _lib._sel_allocWithZone_1, zone); + return NSMutableSet._(_ret, _lib, retain: false, release: true); } - @override - NSMutableData initWithBytesNoCopy_length_freeWhenDone_( - ffi.Pointer bytes, int length, bool b) { - final _ret = _lib._objc_msgSend_253(_id, - _lib._sel_initWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); - return NSMutableData._(_ret, _lib, retain: false, release: true); + static NSMutableSet alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_alloc1); + return NSMutableSet._(_ret, _lib, retain: false, release: true); } - @override - NSMutableData initWithBytesNoCopy_length_deallocator_( - ffi.Pointer bytes, - int length, - ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong deallocator) { - final _ret = _lib._objc_msgSend_256( - _id, - _lib._sel_initWithBytesNoCopy_length_deallocator_1, - bytes, - length, - deallocator._id); - return NSMutableData._(_ret, _lib, retain: false, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSMutableSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - @override - NSMutableData initWithContentsOfFile_options_error_(NSString? path, - int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_254( - _id, - _lib._sel_initWithContentsOfFile_options_error_1, - path?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSMutableSet1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - @override - NSMutableData initWithContentsOfURL_options_error_(NSURL? url, - int readOptionsMask, ffi.Pointer> errorPtr) { - final _ret = _lib._objc_msgSend_255( - _id, - _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - readOptionsMask, - errorPtr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableSet1, _lib._sel_accessInstanceVariablesDirectly1); } - @override - NSMutableData initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableSet1, _lib._sel_useStoredAccessor1); } - @override - NSMutableData initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMutableSet1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - @override - NSMutableData initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_257( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSMutableSet1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - static NSMutableData dataWithData_(SentryCocoa _lib, NSData? data) { - final _ret = _lib._objc_msgSend_257(_lib._class_NSMutableData1, - _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); - return NSMutableData._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSMutableSet1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - @override - NSMutableData initWithBase64EncodedString_options_( - NSString? base64String, int options) { - final _ret = _lib._objc_msgSend_258( - _id, - _lib._sel_initWithBase64EncodedString_options_1, - base64String?._id ?? ffi.nullptr, - options); - return NSMutableData._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSMutableSet1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - @override - NSMutableData initWithBase64EncodedData_options_( - NSData? base64Data, int options) { - final _ret = _lib._objc_msgSend_260( - _id, - _lib._sel_initWithBase64EncodedData_options_1, - base64Data?._id ?? ffi.nullptr, - options); - return NSMutableData._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableSet1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - @override - NSMutableData decompressedDataUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_262(_id, - _lib._sel_decompressedDataUsingAlgorithm_error_1, algorithm, error); - return NSMutableData._(_ret, _lib, retain: true, release: true); +abstract class NSKeyValueChange { + static const int NSKeyValueChangeSetting = 1; + static const int NSKeyValueChangeInsertion = 2; + static const int NSKeyValueChangeRemoval = 3; + static const int NSKeyValueChangeReplacement = 4; +} + +abstract class NSKeyValueSetMutationKind { + static const int NSKeyValueUnionSetMutation = 1; + static const int NSKeyValueMinusSetMutation = 2; + static const int NSKeyValueIntersectSetMutation = 3; + static const int NSKeyValueSetSetMutation = 4; +} + +class NSKeyValueSharedObserversSnapshot extends NSObject { + NSKeyValueSharedObserversSnapshot._( + ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSKeyValueSharedObserversSnapshot] that points to the same underlying object as [other]. + static NSKeyValueSharedObserversSnapshot castFrom( + T other) { + return NSKeyValueSharedObserversSnapshot._(other._id, other._lib, + retain: true, release: true); } - @override - NSMutableData compressedDataUsingAlgorithm_error_( - int algorithm, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_262( - _id, _lib._sel_compressedDataUsingAlgorithm_error_1, algorithm, error); - return NSMutableData._(_ret, _lib, retain: true, release: true); + /// Returns a [NSKeyValueSharedObserversSnapshot] that wraps the given raw object pointer. + static NSKeyValueSharedObserversSnapshot castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSKeyValueSharedObserversSnapshot._(other, lib, + retain: retain, release: release); } - static NSObject dataWithContentsOfMappedFile_( - SentryCocoa _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableData1, - _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSKeyValueSharedObserversSnapshot]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSKeyValueSharedObserversSnapshot1); } @override - NSMutableData init() { + NSObject init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableData._(_ret, _lib, retain: true, release: true); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSMutableData new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_new1); - return NSMutableData._(_ret, _lib, retain: false, release: true); + static NSObject new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSKeyValueSharedObserversSnapshot1, _lib._sel_new1); + return NSObject._(_ret, _lib, retain: false, release: true); } - static NSMutableData allocWithZone_( + static NSKeyValueSharedObserversSnapshot allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSMutableData1, _lib._sel_allocWithZone_1, zone); - return NSMutableData._(_ret, _lib, retain: false, release: true); + _lib._class_NSKeyValueSharedObserversSnapshot1, + _lib._sel_allocWithZone_1, + zone); + return NSKeyValueSharedObserversSnapshot._(_ret, _lib, + retain: false, release: true); } - static NSMutableData alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_alloc1); - return NSMutableData._(_ret, _lib, retain: false, release: true); + static NSKeyValueSharedObserversSnapshot alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSKeyValueSharedObserversSnapshot1, _lib._sel_alloc1); + return NSKeyValueSharedObserversSnapshot._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -46082,7 +48600,7 @@ class NSMutableData extends NSData { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSMutableData1, + _lib._class_NSKeyValueSharedObserversSnapshot1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -46091,24 +48609,24 @@ class NSMutableData extends NSData { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableData1, + _lib._objc_msgSend_15(_lib._class_NSKeyValueSharedObserversSnapshot1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableData1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSKeyValueSharedObserversSnapshot1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableData1, _lib._sel_useStoredAccessor1); + return _lib._objc_msgSend_12(_lib._class_NSKeyValueSharedObserversSnapshot1, + _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableData1, + _lib._class_NSKeyValueSharedObserversSnapshot1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -46117,7 +48635,7 @@ class NSMutableData extends NSData { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSMutableData1, + _lib._class_NSKeyValueSharedObserversSnapshot1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -46125,7 +48643,7 @@ class NSMutableData extends NSData { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSMutableData1, + _lib._class_NSKeyValueSharedObserversSnapshot1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -46133,221 +48651,219 @@ class NSMutableData extends NSData { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSMutableData1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSKeyValueSharedObserversSnapshot1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableData1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSKeyValueSharedObserversSnapshot1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSPropertyListFormat { - static const int NSPropertyListOpenStepFormat = 1; - static const int NSPropertyListXMLFormat_v1_0 = 100; - static const int NSPropertyListBinaryFormat_v1_0 = 200; -} - -class NSThread extends NSObject { - NSThread._(ffi.Pointer id, SentryCocoa lib, +class NSKeyedArchiver extends NSCoder { + NSKeyedArchiver._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSThread] that points to the same underlying object as [other]. - static NSThread castFrom(T other) { - return NSThread._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSKeyedArchiver] that points to the same underlying object as [other]. + static NSKeyedArchiver castFrom(T other) { + return NSKeyedArchiver._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSThread] that wraps the given raw object pointer. - static NSThread castFromPointer( + /// Returns a [NSKeyedArchiver] that wraps the given raw object pointer. + static NSKeyedArchiver castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSThread._(other, lib, retain: retain, release: release); + return NSKeyedArchiver._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSThread]. + /// Returns whether [obj] is an instance of [NSKeyedArchiver]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSThread1); - } - - static NSThread? getCurrentThread(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_499(_lib._class_NSThread1, _lib._sel_currentThread1); - return _ret.address == 0 - ? null - : NSThread._(_ret, _lib, retain: true, release: true); - } - - static void detachNewThreadWithBlock_( - SentryCocoa _lib, ObjCBlock_ffiVoid block) { - _lib._objc_msgSend_500( - _lib._class_NSThread1, _lib._sel_detachNewThreadWithBlock_1, block._id); - } - - static void detachNewThreadSelector_toTarget_withObject_(SentryCocoa _lib, - ffi.Pointer selector, NSObject target, NSObject argument) { - _lib._objc_msgSend_501( - _lib._class_NSThread1, - _lib._sel_detachNewThreadSelector_toTarget_withObject_1, - selector, - target._id, - argument._id); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSKeyedArchiver1); } - static bool isMultiThreaded(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSThread1, _lib._sel_isMultiThreaded1); + NSKeyedArchiver initRequiringSecureCoding_(bool requiresSecureCoding) { + final _ret = _lib._objc_msgSend_498( + _id, _lib._sel_initRequiringSecureCoding_1, requiresSecureCoding); + return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); } - NSMutableDictionary? get threadDictionary { - final _ret = _lib._objc_msgSend_506(_id, _lib._sel_threadDictionary1); - return _ret.address == 0 - ? null - : NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSData archivedDataWithRootObject_requiringSecureCoding_error_( + SentryCocoa _lib, + NSObject object, + bool requiresSecureCoding, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_499( + _lib._class_NSKeyedArchiver1, + _lib._sel_archivedDataWithRootObject_requiringSecureCoding_error_1, + object._id, + requiresSecureCoding, + error); + return NSData._(_ret, _lib, retain: true, release: true); } - static void sleepUntilDate_(SentryCocoa _lib, NSDate? date) { - _lib._objc_msgSend_507(_lib._class_NSThread1, _lib._sel_sleepUntilDate_1, - date?._id ?? ffi.nullptr); + @override + NSKeyedArchiver init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); } - static void sleepForTimeInterval_(SentryCocoa _lib, double ti) { - _lib._objc_msgSend_508( - _lib._class_NSThread1, _lib._sel_sleepForTimeInterval_1, ti); + NSKeyedArchiver initForWritingWithMutableData_(NSMutableData? data) { + final _ret = _lib._objc_msgSend_504(_id, + _lib._sel_initForWritingWithMutableData_1, data?._id ?? ffi.nullptr); + return NSKeyedArchiver._(_ret, _lib, retain: true, release: true); } - static void exit(SentryCocoa _lib) { - _lib._objc_msgSend_1(_lib._class_NSThread1, _lib._sel_exit1); + static NSData archivedDataWithRootObject_( + SentryCocoa _lib, NSObject rootObject) { + final _ret = _lib._objc_msgSend_505(_lib._class_NSKeyedArchiver1, + _lib._sel_archivedDataWithRootObject_1, rootObject._id); + return NSData._(_ret, _lib, retain: true, release: true); } - double get threadPriority { - return _lib._objc_msgSend_155(_id, _lib._sel_threadPriority1); + static bool archiveRootObject_toFile_( + SentryCocoa _lib, NSObject rootObject, NSString? path) { + return _lib._objc_msgSend_240( + _lib._class_NSKeyedArchiver1, + _lib._sel_archiveRootObject_toFile_1, + rootObject._id, + path?._id ?? ffi.nullptr); } - set threadPriority(double value) { - return _lib._objc_msgSend_509(_id, _lib._sel_setThreadPriority_1, value); + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - int get qualityOfService { - return _lib._objc_msgSend_510(_id, _lib._sel_qualityOfService1); + set delegate(NSObject? value) { + return _lib._objc_msgSend_389( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - set qualityOfService(int value) { - return _lib._objc_msgSend_511(_id, _lib._sel_setQualityOfService_1, value); + int get outputFormat { + return _lib._objc_msgSend_506(_id, _lib._sel_outputFormat1); } - static NSArray? getCallStackReturnAddresses(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSThread1, _lib._sel_callStackReturnAddresses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + set outputFormat(int value) { + return _lib._objc_msgSend_507(_id, _lib._sel_setOutputFormat_1, value); } - static NSArray? getCallStackSymbols(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSThread1, _lib._sel_callStackSymbols1); + NSData? get encodedData { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_encodedData1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSData._(_ret, _lib, retain: true, release: true); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void finishEncoding() { + _lib._objc_msgSend_1(_id, _lib._sel_finishEncoding1); } - set name(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); - } - - int get stackSize { - return _lib._objc_msgSend_10(_id, _lib._sel_stackSize1); + static void setClassName_forClass_( + SentryCocoa _lib, NSString? codedName, NSObject cls) { + _lib._objc_msgSend_508( + _lib._class_NSKeyedArchiver1, + _lib._sel_setClassName_forClass_1, + codedName?._id ?? ffi.nullptr, + cls._id); } - set stackSize(int value) { - return _lib._objc_msgSend_486(_id, _lib._sel_setStackSize_1, value); + static NSString classNameForClass_(SentryCocoa _lib, NSObject cls) { + final _ret = _lib._objc_msgSend_65( + _lib._class_NSKeyedArchiver1, _lib._sel_classNameForClass_1, cls._id); + return NSString._(_ret, _lib, retain: true, release: true); } - bool get isMainThread { - return _lib._objc_msgSend_12(_id, _lib._sel_isMainThread1); + @override + void encodeObject_forKey_(NSObject object, NSString? key) { + _lib._objc_msgSend_126(_id, _lib._sel_encodeObject_forKey_1, object._id, + key?._id ?? ffi.nullptr); } - static NSThread? getMainThread(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_499(_lib._class_NSThread1, _lib._sel_mainThread1); - return _ret.address == 0 - ? null - : NSThread._(_ret, _lib, retain: true, release: true); + @override + void encodeConditionalObject_forKey_(NSObject object, NSString? key) { + _lib._objc_msgSend_126(_id, _lib._sel_encodeConditionalObject_forKey_1, + object._id, key?._id ?? ffi.nullptr); } @override - NSThread init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSThread._(_ret, _lib, retain: true, release: true); + void encodeBool_forKey_(bool value, NSString? key) { + _lib._objc_msgSend_272( + _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); } - NSThread initWithTarget_selector_object_( - NSObject target, ffi.Pointer selector, NSObject argument) { - final _ret = _lib._objc_msgSend_513( - _id, - _lib._sel_initWithTarget_selector_object_1, - target._id, - selector, - argument._id); - return NSThread._(_ret, _lib, retain: true, release: true); + @override + void encodeInt_forKey_(int value, NSString? key) { + _lib._objc_msgSend_273( + _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); } - NSThread initWithBlock_(ObjCBlock_ffiVoid block) { - final _ret = - _lib._objc_msgSend_514(_id, _lib._sel_initWithBlock_1, block._id); - return NSThread._(_ret, _lib, retain: true, release: true); + @override + void encodeInt32_forKey_(int value, NSString? key) { + _lib._objc_msgSend_274( + _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); } - bool get executing { - return _lib._objc_msgSend_12(_id, _lib._sel_isExecuting1); + @override + void encodeInt64_forKey_(int value, NSString? key) { + _lib._objc_msgSend_275( + _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); } - bool get finished { - return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); + @override + void encodeFloat_forKey_(double value, NSString? key) { + _lib._objc_msgSend_276( + _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); } - bool get cancelled { - return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); + @override + void encodeDouble_forKey_(double value, NSString? key) { + _lib._objc_msgSend_277( + _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); } - void cancel() { - _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + @override + void encodeBytes_length_forKey_( + ffi.Pointer bytes, int length, NSString? key) { + _lib._objc_msgSend_278(_id, _lib._sel_encodeBytes_length_forKey_1, bytes, + length, key?._id ?? ffi.nullptr); } - void start() { - _lib._objc_msgSend_1(_id, _lib._sel_start1); + @override + bool get requiresSecureCoding { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresSecureCoding1); } - void main() { - _lib._objc_msgSend_1(_id, _lib._sel_main1); + set requiresSecureCoding(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setRequiresSecureCoding_1, value); } - static NSThread new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSThread1, _lib._sel_new1); - return NSThread._(_ret, _lib, retain: false, release: true); + static NSKeyedArchiver new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSKeyedArchiver1, _lib._sel_new1); + return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); } - static NSThread allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSKeyedArchiver allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSThread1, _lib._sel_allocWithZone_1, zone); - return NSThread._(_ret, _lib, retain: false, release: true); + _lib._class_NSKeyedArchiver1, _lib._sel_allocWithZone_1, zone); + return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); } - static NSThread alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSThread1, _lib._sel_alloc1); - return NSThread._(_ret, _lib, retain: false, release: true); + static NSKeyedArchiver alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSKeyedArchiver1, _lib._sel_alloc1); + return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -46356,7 +48872,7 @@ class NSThread extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSThread1, + _lib._class_NSKeyedArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -46365,24 +48881,24 @@ class NSThread extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSThread1, + _lib._objc_msgSend_15(_lib._class_NSKeyedArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSThread1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSKeyedArchiver1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSThread1, _lib._sel_useStoredAccessor1); + _lib._class_NSKeyedArchiver1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSThread1, + _lib._class_NSKeyedArchiver1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -46391,7 +48907,7 @@ class NSThread extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSThread1, + _lib._class_NSKeyedArchiver1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -46399,331 +48915,357 @@ class NSThread extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSThread1, + _lib._class_NSKeyedArchiver1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSThread1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSKeyedArchiver1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSThread1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSKeyedArchiver1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock_ffiVoid_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block) { - return block.ref.target - .cast>() - .asFunction()(); -} - -final _ObjCBlock_ffiVoid_closureRegistry = {}; -int _ObjCBlock_ffiVoid_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_closureRegistryIndex; - _ObjCBlock_ffiVoid_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_ffiVoid_closureTrampoline(ffi.Pointer<_ObjCBlock> block) { - return (_ObjCBlock_ffiVoid_closureRegistry[block.ref.target.address] as void - Function())(); -} - -class ObjCBlock_ffiVoid extends _ObjCBlockBase { - ObjCBlock_ffiVoid._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid.fromFunctionPointer( - SentryCocoa lib, ffi.Pointer> ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock_ffiVoid_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid.fromFunction(SentryCocoa lib, void Function() fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock_ffiVoid_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call() { - return _id.ref.invoke - .cast< - ffi - .NativeFunction block)>>() - .asFunction block)>()(_id); - } -} - -class NSMutableDictionary extends NSDictionary { - NSMutableDictionary._(ffi.Pointer id, SentryCocoa lib, +class NSMutableData extends NSData { + NSMutableData._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMutableDictionary] that points to the same underlying object as [other]. - static NSMutableDictionary castFrom(T other) { - return NSMutableDictionary._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSMutableData] that points to the same underlying object as [other]. + static NSMutableData castFrom(T other) { + return NSMutableData._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSMutableDictionary] that wraps the given raw object pointer. - static NSMutableDictionary castFromPointer( + /// Returns a [NSMutableData] that wraps the given raw object pointer. + static NSMutableData castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableDictionary._(other, lib, retain: retain, release: release); + return NSMutableData._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableDictionary]. + /// Returns whether [obj] is an instance of [NSMutableData]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableDictionary1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMutableData1); } - void removeObjectForKey_(NSObject aKey) { - _lib._objc_msgSend_15(_id, _lib._sel_removeObjectForKey_1, aKey._id); + ffi.Pointer get mutableBytes { + return _lib._objc_msgSend_19(_id, _lib._sel_mutableBytes1); } - void setObject_forKey_(NSObject anObject, NSObject? aKey) { - _lib._objc_msgSend_502(_id, _lib._sel_setObject_forKey_1, anObject._id, - aKey?._id ?? ffi.nullptr); + @override + int get length { + return _lib._objc_msgSend_10(_id, _lib._sel_length1); } - @override - NSMutableDictionary init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + set length(int value) { + return _lib._objc_msgSend_500(_id, _lib._sel_setLength_1, value); } - NSMutableDictionary initWithCapacity_(int numItems) { - final _ret = - _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + void appendBytes_length_(ffi.Pointer bytes, int length) { + _lib._objc_msgSend_21(_id, _lib._sel_appendBytes_length_1, bytes, length); } - @override - NSMutableDictionary initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + void appendData_(NSData? other) { + _lib._objc_msgSend_263( + _id, _lib._sel_appendData_1, other?._id ?? ffi.nullptr); } - void addEntriesFromDictionary_(NSDictionary? otherDictionary) { - _lib._objc_msgSend_478(_id, _lib._sel_addEntriesFromDictionary_1, - otherDictionary?._id ?? ffi.nullptr); + void increaseLengthBy_(int extraLength) { + _lib._objc_msgSend_455(_id, _lib._sel_increaseLengthBy_1, extraLength); } - void removeAllObjects() { - _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + void replaceBytesInRange_withBytes_( + _NSRange range, ffi.Pointer bytes) { + _lib._objc_msgSend_501( + _id, _lib._sel_replaceBytesInRange_withBytes_1, range, bytes); } - void removeObjectsForKeys_(NSArray? keyArray) { - _lib._objc_msgSend_443( - _id, _lib._sel_removeObjectsForKeys_1, keyArray?._id ?? ffi.nullptr); + void resetBytesInRange_(_NSRange range) { + _lib._objc_msgSend_461(_id, _lib._sel_resetBytesInRange_1, range); } - void setDictionary_(NSDictionary? otherDictionary) { - _lib._objc_msgSend_478( - _id, _lib._sel_setDictionary_1, otherDictionary?._id ?? ffi.nullptr); + void setData_(NSData? data) { + _lib._objc_msgSend_263(_id, _lib._sel_setData_1, data?._id ?? ffi.nullptr); } - void setObject_forKeyedSubscript_(NSObject obj, NSObject? key) { - _lib._objc_msgSend_502(_id, _lib._sel_setObject_forKeyedSubscript_1, - obj._id, key?._id ?? ffi.nullptr); + void replaceBytesInRange_withBytes_length_(_NSRange range, + ffi.Pointer replacementBytes, int replacementLength) { + _lib._objc_msgSend_502( + _id, + _lib._sel_replaceBytesInRange_withBytes_length_1, + range, + replacementBytes, + replacementLength); } - static NSMutableDictionary dictionaryWithCapacity_( - SentryCocoa _lib, int numItems) { - final _ret = _lib._objc_msgSend_60(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithCapacity_1, numItems); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableData dataWithCapacity_(SentryCocoa _lib, int aNumItems) { + final _ret = _lib._objc_msgSend_60( + _lib._class_NSMutableData1, _lib._sel_dataWithCapacity_1, aNumItems); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithContentsOfFile_( - SentryCocoa _lib, NSString? path) { - final _ret = _lib._objc_msgSend_503(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableData dataWithLength_(SentryCocoa _lib, int length) { + final _ret = _lib._objc_msgSend_60( + _lib._class_NSMutableData1, _lib._sel_dataWithLength_1, length); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithContentsOfURL_( - SentryCocoa _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_504(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSMutableData initWithCapacity_(int capacity) { + final _ret = + _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, capacity); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - NSMutableDictionary initWithContentsOfFile_(NSString? path) { - final _ret = _lib._objc_msgSend_503( - _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSMutableData initWithLength_(int length) { + final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithLength_1, length); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - NSMutableDictionary initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_504( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + bool decompressUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + return _lib._objc_msgSend_503( + _id, _lib._sel_decompressUsingAlgorithm_error_1, algorithm, error); } - static NSMutableDictionary dictionaryWithSharedKeySet_( - SentryCocoa _lib, NSObject keyset) { - final _ret = _lib._objc_msgSend_505(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithSharedKeySet_1, keyset._id); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + bool compressUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + return _lib._objc_msgSend_503( + _id, _lib._sel_compressUsingAlgorithm_error_1, algorithm, error); } - void setValue_forKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126( - _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + static NSMutableData data(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_data1); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - @override - NSMutableDictionary initWithObjects_forKeys_count_( - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_137( - _id, _lib._sel_initWithObjects_forKeys_count_1, objects, keys, cnt); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableData dataWithBytes_length_( + SentryCocoa _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_252(_lib._class_NSMutableData1, + _lib._sel_dataWithBytes_length_1, bytes, length); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionary(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableDictionary1, _lib._sel_dictionary1); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableData dataWithBytesNoCopy_length_( + SentryCocoa _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_252(_lib._class_NSMutableData1, + _lib._sel_dataWithBytesNoCopy_length_1, bytes, length); + return NSMutableData._(_ret, _lib, retain: false, release: true); } - static NSMutableDictionary dictionaryWithObject_forKey_( - SentryCocoa _lib, NSObject object, NSObject? key) { - final _ret = _lib._objc_msgSend_148( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObject_forKey_1, - object._id, - key?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableData dataWithBytesNoCopy_length_freeWhenDone_( + SentryCocoa _lib, ffi.Pointer bytes, int length, bool b) { + final _ret = _lib._objc_msgSend_253(_lib._class_NSMutableData1, + _lib._sel_dataWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); + return NSMutableData._(_ret, _lib, retain: false, release: true); } - static NSMutableDictionary dictionaryWithObjects_forKeys_count_( + static NSMutableData dataWithContentsOfFile_options_error_( SentryCocoa _lib, - ffi.Pointer> objects, - ffi.Pointer> keys, - int cnt) { - final _ret = _lib._objc_msgSend_137(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSString? path, + int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_254( + _lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfFile_options_error_1, + path?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithObjectsAndKeys_( - SentryCocoa _lib, NSObject firstObject) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableData dataWithContentsOfURL_options_error_( + SentryCocoa _lib, + NSURL? url, + int readOptionsMask, + ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_255( + _lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithDictionary_( - SentryCocoa _lib, NSDictionary? dict) { - final _ret = _lib._objc_msgSend_149(_lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableData dataWithContentsOfFile_( + SentryCocoa _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary dictionaryWithObjects_forKeys_( - SentryCocoa _lib, NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_150( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + static NSMutableData dataWithContentsOfURL_(SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: true, release: true); } @override - NSMutableDictionary initWithObjectsAndKeys_(NSObject firstObject) { - final _ret = _lib._objc_msgSend_16( - _id, _lib._sel_initWithObjectsAndKeys_1, firstObject._id); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSMutableData initWithBytes_length_(ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_252( + _id, _lib._sel_initWithBytes_length_1, bytes, length); + return NSMutableData._(_ret, _lib, retain: true, release: true); } @override - NSMutableDictionary initWithDictionary_(NSDictionary? otherDictionary) { - final _ret = _lib._objc_msgSend_149(_id, _lib._sel_initWithDictionary_1, - otherDictionary?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + NSMutableData initWithBytesNoCopy_length_( + ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_252( + _id, _lib._sel_initWithBytesNoCopy_length_1, bytes, length); + return NSMutableData._(_ret, _lib, retain: false, release: true); } @override - NSMutableDictionary initWithDictionary_copyItems_( - NSDictionary? otherDictionary, bool flag) { - final _ret = _lib._objc_msgSend_151( + NSMutableData initWithBytesNoCopy_length_freeWhenDone_( + ffi.Pointer bytes, int length, bool b) { + final _ret = _lib._objc_msgSend_253(_id, + _lib._sel_initWithBytesNoCopy_length_freeWhenDone_1, bytes, length, b); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableData initWithBytesNoCopy_length_deallocator_( + ffi.Pointer bytes, + int length, + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong deallocator) { + final _ret = _lib._objc_msgSend_256( _id, - _lib._sel_initWithDictionary_copyItems_1, - otherDictionary?._id ?? ffi.nullptr, - flag); - return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + _lib._sel_initWithBytesNoCopy_length_deallocator_1, + bytes, + length, + deallocator._id); + return NSMutableData._(_ret, _lib, retain: false, release: true); } @override - NSMutableDictionary initWithObjects_forKeys_( - NSArray? objects, NSArray? keys) { - final _ret = _lib._objc_msgSend_150( + NSMutableData initWithContentsOfFile_options_error_(NSString? path, + int readOptionsMask, ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_254( _id, - _lib._sel_initWithObjects_forKeys_1, - objects?._id ?? ffi.nullptr, - keys?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithContentsOfFile_options_error_1, + path?._id ?? ffi.nullptr, + readOptionsMask, + errorPtr); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSDictionary dictionaryWithContentsOfURL_error_(SentryCocoa _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_152( - _lib._class_NSMutableDictionary1, - _lib._sel_dictionaryWithContentsOfURL_error_1, + @override + NSMutableData initWithContentsOfURL_options_error_(NSURL? url, + int readOptionsMask, ffi.Pointer> errorPtr) { + final _ret = _lib._objc_msgSend_255( + _id, + _lib._sel_initWithContentsOfURL_options_error_1, url?._id ?? ffi.nullptr, - error); - return NSDictionary._(_ret, _lib, retain: true, release: true); + readOptionsMask, + errorPtr); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSObject sharedKeySetForKeys_(SentryCocoa _lib, NSArray? keys) { - final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableDictionary1, - _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + NSMutableData initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableDictionary1, _lib._sel_new1); - return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + @override + NSMutableData initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSMutableDictionary1, _lib._sel_allocWithZone_1, zone); - return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + @override + NSMutableData initWithData_(NSData? data) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: true, release: true); } - static NSMutableDictionary alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableDictionary1, _lib._sel_alloc1); - return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + static NSMutableData dataWithData_(SentryCocoa _lib, NSData? data) { + final _ret = _lib._objc_msgSend_257(_lib._class_NSMutableData1, + _lib._sel_dataWithData_1, data?._id ?? ffi.nullptr); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData initWithBase64EncodedString_options_( + NSString? base64String, int options) { + final _ret = _lib._objc_msgSend_258( + _id, + _lib._sel_initWithBase64EncodedString_options_1, + base64String?._id ?? ffi.nullptr, + options); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData initWithBase64EncodedData_options_( + NSData? base64Data, int options) { + final _ret = _lib._objc_msgSend_260( + _id, + _lib._sel_initWithBase64EncodedData_options_1, + base64Data?._id ?? ffi.nullptr, + options); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData decompressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_262(_id, + _lib._sel_decompressedDataUsingAlgorithm_error_1, algorithm, error); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData compressedDataUsingAlgorithm_error_( + int algorithm, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_262( + _id, _lib._sel_compressedDataUsingAlgorithm_error_1, algorithm, error); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSObject dataWithContentsOfMappedFile_( + SentryCocoa _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableData1, + _lib._sel_dataWithContentsOfMappedFile_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableData init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableData._(_ret, _lib, retain: true, release: true); + } + + static NSMutableData new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_new1); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + + static NSMutableData allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableData1, _lib._sel_allocWithZone_1, zone); + return NSMutableData._(_ret, _lib, retain: false, release: true); + } + + static NSMutableData alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableData1, _lib._sel_alloc1); + return NSMutableData._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -46732,7 +49274,7 @@ class NSMutableDictionary extends NSDictionary { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSMutableDictionary1, + _lib._class_NSMutableData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -46741,24 +49283,24 @@ class NSMutableDictionary extends NSDictionary { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableDictionary1, + _lib._objc_msgSend_15(_lib._class_NSMutableData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableDictionary1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSMutableData1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMutableDictionary1, _lib._sel_useStoredAccessor1); + _lib._class_NSMutableData1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableDictionary1, + _lib._class_NSMutableData1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -46767,7 +49309,7 @@ class NSMutableDictionary extends NSDictionary { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSMutableDictionary1, + _lib._class_NSMutableData1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -46775,300 +49317,229 @@ class NSMutableDictionary extends NSDictionary { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSMutableDictionary1, + _lib._class_NSMutableData1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableDictionary1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSMutableData1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableDictionary1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSMutableData1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSQualityOfService { - static const int NSQualityOfServiceUserInteractive = 33; - static const int NSQualityOfServiceUserInitiated = 25; - static const int NSQualityOfServiceUtility = 17; - static const int NSQualityOfServiceBackground = 9; - static const int NSQualityOfServiceDefault = -1; +abstract class NSPropertyListFormat { + static const int NSPropertyListOpenStepFormat = 1; + static const int NSPropertyListXMLFormat_v1_0 = 100; + static const int NSPropertyListBinaryFormat_v1_0 = 200; } -class NSArchiver extends NSCoder { - NSArchiver._(ffi.Pointer id, SentryCocoa lib, +class NSThread extends NSObject { + NSThread._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSArchiver] that points to the same underlying object as [other]. - static NSArchiver castFrom(T other) { - return NSArchiver._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSThread] that points to the same underlying object as [other]. + static NSThread castFrom(T other) { + return NSThread._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSArchiver] that wraps the given raw object pointer. - static NSArchiver castFromPointer( + /// Returns a [NSThread] that wraps the given raw object pointer. + static NSThread castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSArchiver._(other, lib, retain: retain, release: release); + return NSThread._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSArchiver]. + /// Returns whether [obj] is an instance of [NSThread]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSArchiver1); - } - - NSArchiver initForWritingWithMutableData_(NSMutableData? mdata) { - final _ret = _lib._objc_msgSend_490(_id, - _lib._sel_initForWritingWithMutableData_1, mdata?._id ?? ffi.nullptr); - return NSArchiver._(_ret, _lib, retain: true, release: true); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSThread1); } - NSMutableData? get archiverData { - final _ret = _lib._objc_msgSend_517(_id, _lib._sel_archiverData1); + static NSThread? getCurrentThread(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_512(_lib._class_NSThread1, _lib._sel_currentThread1); return _ret.address == 0 ? null - : NSMutableData._(_ret, _lib, retain: true, release: true); - } - - @override - void encodeRootObject_(NSObject rootObject) { - _lib._objc_msgSend_15(_id, _lib._sel_encodeRootObject_1, rootObject._id); - } - - @override - void encodeConditionalObject_(NSObject object) { - _lib._objc_msgSend_15(_id, _lib._sel_encodeConditionalObject_1, object._id); - } - - static NSData archivedDataWithRootObject_( - SentryCocoa _lib, NSObject rootObject) { - final _ret = _lib._objc_msgSend_491(_lib._class_NSArchiver1, - _lib._sel_archivedDataWithRootObject_1, rootObject._id); - return NSData._(_ret, _lib, retain: true, release: true); - } - - static bool archiveRootObject_toFile_( - SentryCocoa _lib, NSObject rootObject, NSString? path) { - return _lib._objc_msgSend_240( - _lib._class_NSArchiver1, - _lib._sel_archiveRootObject_toFile_1, - rootObject._id, - path?._id ?? ffi.nullptr); + : NSThread._(_ret, _lib, retain: true, release: true); } - void encodeClassName_intoClassName_( - NSString? trueName, NSString? inArchiveName) { - _lib._objc_msgSend_518(_id, _lib._sel_encodeClassName_intoClassName_1, - trueName?._id ?? ffi.nullptr, inArchiveName?._id ?? ffi.nullptr); + static void detachNewThreadWithBlock_( + SentryCocoa _lib, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_513( + _lib._class_NSThread1, _lib._sel_detachNewThreadWithBlock_1, block._id); } - NSString classNameEncodedForTrueClassName_(NSString? trueName) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_classNameEncodedForTrueClassName_1, - trueName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static void detachNewThreadSelector_toTarget_withObject_(SentryCocoa _lib, + ffi.Pointer selector, NSObject target, NSObject argument) { + _lib._objc_msgSend_514( + _lib._class_NSThread1, + _lib._sel_detachNewThreadSelector_toTarget_withObject_1, + selector, + target._id, + argument._id); } - void replaceObject_withObject_(NSObject object, NSObject newObject) { - _lib._objc_msgSend_502( - _id, _lib._sel_replaceObject_withObject_1, object._id, newObject._id); + static bool isMultiThreaded(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSThread1, _lib._sel_isMultiThreaded1); } - @override - NSArchiver init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSArchiver._(_ret, _lib, retain: true, release: true); + NSMutableDictionary? get threadDictionary { + final _ret = _lib._objc_msgSend_519(_id, _lib._sel_threadDictionary1); + return _ret.address == 0 + ? null + : NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - static NSArchiver new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSArchiver1, _lib._sel_new1); - return NSArchiver._(_ret, _lib, retain: false, release: true); + static void sleepUntilDate_(SentryCocoa _lib, NSDate? date) { + _lib._objc_msgSend_520(_lib._class_NSThread1, _lib._sel_sleepUntilDate_1, + date?._id ?? ffi.nullptr); } - static NSArchiver allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSArchiver1, _lib._sel_allocWithZone_1, zone); - return NSArchiver._(_ret, _lib, retain: false, release: true); + static void sleepForTimeInterval_(SentryCocoa _lib, double ti) { + _lib._objc_msgSend_521( + _lib._class_NSThread1, _lib._sel_sleepForTimeInterval_1, ti); } - static NSArchiver alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSArchiver1, _lib._sel_alloc1); - return NSArchiver._(_ret, _lib, retain: false, release: true); + static void exit(SentryCocoa _lib) { + _lib._objc_msgSend_1(_lib._class_NSThread1, _lib._sel_exit1); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSArchiver1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + double get threadPriority { + return _lib._objc_msgSend_155(_id, _lib._sel_threadPriority1); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSArchiver1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + set threadPriority(double value) { + return _lib._objc_msgSend_522(_id, _lib._sel_setThreadPriority_1, value); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSArchiver1, _lib._sel_accessInstanceVariablesDirectly1); + int get qualityOfService { + return _lib._objc_msgSend_523(_id, _lib._sel_qualityOfService1); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSArchiver1, _lib._sel_useStoredAccessor1); + set qualityOfService(int value) { + return _lib._objc_msgSend_524(_id, _lib._sel_setQualityOfService_1, value); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSArchiver1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + static NSArray? getCallStackReturnAddresses(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSThread1, _lib._sel_callStackReturnAddresses1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSArchiver1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + static NSArray? getCallStackSymbols(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSThread1, _lib._sel_callStackSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSArchiver1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSArchiver1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + set name(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSArchiver1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + int get stackSize { + return _lib._objc_msgSend_10(_id, _lib._sel_stackSize1); } -} - -class NSPortCoder extends NSCoder { - NSPortCoder._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSPortCoder] that points to the same underlying object as [other]. - static NSPortCoder castFrom(T other) { - return NSPortCoder._(other._id, other._lib, retain: true, release: true); + set stackSize(int value) { + return _lib._objc_msgSend_500(_id, _lib._sel_setStackSize_1, value); } - /// Returns a [NSPortCoder] that wraps the given raw object pointer. - static NSPortCoder castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSPortCoder._(other, lib, retain: retain, release: release); + bool get isMainThread { + return _lib._objc_msgSend_12(_id, _lib._sel_isMainThread1); } - /// Returns whether [obj] is an instance of [NSPortCoder]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSPortCoder1); + static NSThread? getMainThread(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_512(_lib._class_NSThread1, _lib._sel_mainThread1); + return _ret.address == 0 + ? null + : NSThread._(_ret, _lib, retain: true, release: true); } - bool isBycopy() { - return _lib._objc_msgSend_12(_id, _lib._sel_isBycopy1); + @override + NSThread init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSThread._(_ret, _lib, retain: true, release: true); } - bool isByref() { - return _lib._objc_msgSend_12(_id, _lib._sel_isByref1); + NSThread initWithTarget_selector_object_( + NSObject target, ffi.Pointer selector, NSObject argument) { + final _ret = _lib._objc_msgSend_525( + _id, + _lib._sel_initWithTarget_selector_object_1, + target._id, + selector, + argument._id); + return NSThread._(_ret, _lib, retain: true, release: true); } - void encodePortObject_(NSPort? aport) { - _lib._objc_msgSend_555( - _id, _lib._sel_encodePortObject_1, aport?._id ?? ffi.nullptr); + NSThread initWithBlock_(ObjCBlock_ffiVoid block) { + final _ret = + _lib._objc_msgSend_526(_id, _lib._sel_initWithBlock_1, block._id); + return NSThread._(_ret, _lib, retain: true, release: true); } - NSPort decodePortObject() { - final _ret = _lib._objc_msgSend_520(_id, _lib._sel_decodePortObject1); - return NSPort._(_ret, _lib, retain: true, release: true); + bool get executing { + return _lib._objc_msgSend_12(_id, _lib._sel_isExecuting1); } - NSConnection connection() { - final _ret = _lib._objc_msgSend_539(_id, _lib._sel_connection1); - return NSConnection._(_ret, _lib, retain: true, release: true); + bool get finished { + return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); } - static NSObject portCoderWithReceivePort_sendPort_components_( - SentryCocoa _lib, NSPort? rcvPort, NSPort? sndPort, NSArray? comps) { - final _ret = _lib._objc_msgSend_556( - _lib._class_NSPortCoder1, - _lib._sel_portCoderWithReceivePort_sendPort_components_1, - rcvPort?._id ?? ffi.nullptr, - sndPort?._id ?? ffi.nullptr, - comps?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + bool get cancelled { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); } - NSObject initWithReceivePort_sendPort_components_( - NSPort? rcvPort, NSPort? sndPort, NSArray? comps) { - final _ret = _lib._objc_msgSend_556( - _id, - _lib._sel_initWithReceivePort_sendPort_components_1, - rcvPort?._id ?? ffi.nullptr, - sndPort?._id ?? ffi.nullptr, - comps?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + void cancel() { + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } - void dispatch() { - _lib._objc_msgSend_1(_id, _lib._sel_dispatch1); + void start() { + _lib._objc_msgSend_1(_id, _lib._sel_start1); } - @override - NSPortCoder init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSPortCoder._(_ret, _lib, retain: true, release: true); + void main() { + _lib._objc_msgSend_1(_id, _lib._sel_main1); } - static NSPortCoder new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSPortCoder1, _lib._sel_new1); - return NSPortCoder._(_ret, _lib, retain: false, release: true); + static NSThread new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSThread1, _lib._sel_new1); + return NSThread._(_ret, _lib, retain: false, release: true); } - static NSPortCoder allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSThread allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSPortCoder1, _lib._sel_allocWithZone_1, zone); - return NSPortCoder._(_ret, _lib, retain: false, release: true); + _lib._class_NSThread1, _lib._sel_allocWithZone_1, zone); + return NSThread._(_ret, _lib, retain: false, release: true); } - static NSPortCoder alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPortCoder1, _lib._sel_alloc1); - return NSPortCoder._(_ret, _lib, retain: false, release: true); + static NSThread alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSThread1, _lib._sel_alloc1); + return NSThread._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -47077,7 +49548,7 @@ class NSPortCoder extends NSCoder { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSPortCoder1, + _lib._class_NSThread1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -47086,24 +49557,24 @@ class NSPortCoder extends NSCoder { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSPortCoder1, + _lib._objc_msgSend_15(_lib._class_NSThread1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSPortCoder1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSThread1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSPortCoder1, _lib._sel_useStoredAccessor1); + _lib._class_NSThread1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSPortCoder1, + _lib._class_NSThread1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -47112,7 +49583,7 @@ class NSPortCoder extends NSCoder { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSPortCoder1, + _lib._class_NSThread1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -47120,7 +49591,7 @@ class NSPortCoder extends NSCoder { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSPortCoder1, + _lib._class_NSThread1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -47128,142 +49599,323 @@ class NSPortCoder extends NSCoder { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSPortCoder1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSThread1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSPortCoder1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSThread1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSPort extends NSObject { - NSPort._(ffi.Pointer id, SentryCocoa lib, +void _ObjCBlock_ffiVoid_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block) { + return block.ref.target + .cast>() + .asFunction()(); +} + +final _ObjCBlock_ffiVoid_closureRegistry = {}; +int _ObjCBlock_ffiVoid_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_registerClosure(Function fn) { + final id = ++_ObjCBlock_ffiVoid_closureRegistryIndex; + _ObjCBlock_ffiVoid_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_closureTrampoline(ffi.Pointer<_ObjCBlock> block) { + return (_ObjCBlock_ffiVoid_closureRegistry[block.ref.target.address] as void + Function())(); +} + +class ObjCBlock_ffiVoid extends _ObjCBlockBase { + ObjCBlock_ffiVoid._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid.fromFunctionPointer( + SentryCocoa lib, ffi.Pointer> ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( + _ObjCBlock_ffiVoid_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid.fromFunction(SentryCocoa lib, void Function() fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( + _ObjCBlock_ffiVoid_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call() { + return _id.ref.invoke + .cast< + ffi + .NativeFunction block)>>() + .asFunction block)>()(_id); + } +} + +class NSMutableDictionary extends NSDictionary { + NSMutableDictionary._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSPort] that points to the same underlying object as [other]. - static NSPort castFrom(T other) { - return NSPort._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSMutableDictionary] that points to the same underlying object as [other]. + static NSMutableDictionary castFrom(T other) { + return NSMutableDictionary._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSPort] that wraps the given raw object pointer. - static NSPort castFromPointer(SentryCocoa lib, ffi.Pointer other, + /// Returns a [NSMutableDictionary] that wraps the given raw object pointer. + static NSMutableDictionary castFromPointer( + SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSPort._(other, lib, retain: retain, release: release); + return NSMutableDictionary._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSPort]. + /// Returns whether [obj] is an instance of [NSMutableDictionary]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSPort1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableDictionary1); } - static NSPort port(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_520(_lib._class_NSPort1, _lib._sel_port1); - return NSPort._(_ret, _lib, retain: true, release: true); + void removeObjectForKey_(NSObject aKey) { + _lib._objc_msgSend_15(_id, _lib._sel_removeObjectForKey_1, aKey._id); } - void invalidate() { - _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + void setObject_forKey_(NSObject anObject, NSObject? aKey) { + _lib._objc_msgSend_515(_id, _lib._sel_setObject_forKey_1, anObject._id, + aKey?._id ?? ffi.nullptr); } - bool get valid { - return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); + @override + NSMutableDictionary init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - void setDelegate_(NSObject? anObject) { - _lib._objc_msgSend_15( - _id, _lib._sel_setDelegate_1, anObject?._id ?? ffi.nullptr); + NSMutableDictionary initWithCapacity_(int numItems) { + final _ret = + _lib._objc_msgSend_60(_id, _lib._sel_initWithCapacity_1, numItems); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - NSObject delegate() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + NSMutableDictionary initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - void scheduleInRunLoop_forMode_(NSRunLoop? runLoop, NSString mode) { - _lib._objc_msgSend_536(_id, _lib._sel_scheduleInRunLoop_forMode_1, - runLoop?._id ?? ffi.nullptr, mode._id); + void addEntriesFromDictionary_(NSDictionary? otherDictionary) { + _lib._objc_msgSend_492(_id, _lib._sel_addEntriesFromDictionary_1, + otherDictionary?._id ?? ffi.nullptr); } - void removeFromRunLoop_forMode_(NSRunLoop? runLoop, NSString mode) { - _lib._objc_msgSend_536(_id, _lib._sel_removeFromRunLoop_forMode_1, - runLoop?._id ?? ffi.nullptr, mode._id); + void removeAllObjects() { + _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } - int get reservedSpaceLength { - return _lib._objc_msgSend_10(_id, _lib._sel_reservedSpaceLength1); + void removeObjectsForKeys_(NSArray? keyArray) { + _lib._objc_msgSend_457( + _id, _lib._sel_removeObjectsForKeys_1, keyArray?._id ?? ffi.nullptr); } - bool sendBeforeDate_components_from_reserved_( - NSDate? limitDate, - NSMutableArray? components, - NSPort? receivePort, - int headerSpaceReserved) { - return _lib._objc_msgSend_537( - _id, - _lib._sel_sendBeforeDate_components_from_reserved_1, - limitDate?._id ?? ffi.nullptr, - components?._id ?? ffi.nullptr, - receivePort?._id ?? ffi.nullptr, - headerSpaceReserved); + void setDictionary_(NSDictionary? otherDictionary) { + _lib._objc_msgSend_492( + _id, _lib._sel_setDictionary_1, otherDictionary?._id ?? ffi.nullptr); } - bool sendBeforeDate_msgid_components_from_reserved_( - NSDate? limitDate, - int msgID, - NSMutableArray? components, - NSPort? receivePort, - int headerSpaceReserved) { - return _lib._objc_msgSend_538( - _id, - _lib._sel_sendBeforeDate_msgid_components_from_reserved_1, - limitDate?._id ?? ffi.nullptr, - msgID, - components?._id ?? ffi.nullptr, - receivePort?._id ?? ffi.nullptr, - headerSpaceReserved); + void setObject_forKeyedSubscript_(NSObject obj, NSObject? key) { + _lib._objc_msgSend_515(_id, _lib._sel_setObject_forKeyedSubscript_1, + obj._id, key?._id ?? ffi.nullptr); } - void addConnection_toRunLoop_forMode_( - NSConnection? conn, NSRunLoop? runLoop, NSString mode) { - _lib._objc_msgSend_554(_id, _lib._sel_addConnection_toRunLoop_forMode_1, - conn?._id ?? ffi.nullptr, runLoop?._id ?? ffi.nullptr, mode._id); + static NSMutableDictionary dictionaryWithCapacity_( + SentryCocoa _lib, int numItems) { + final _ret = _lib._objc_msgSend_60(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithCapacity_1, numItems); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - void removeConnection_fromRunLoop_forMode_( - NSConnection? conn, NSRunLoop? runLoop, NSString mode) { - _lib._objc_msgSend_554( + static NSMutableDictionary dictionaryWithContentsOfFile_( + SentryCocoa _lib, NSString? path) { + final _ret = _lib._objc_msgSend_516(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary dictionaryWithContentsOfURL_( + SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_517(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + NSMutableDictionary initWithContentsOfFile_(NSString? path) { + final _ret = _lib._objc_msgSend_516( + _id, _lib._sel_initWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + NSMutableDictionary initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_517( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary dictionaryWithSharedKeySet_( + SentryCocoa _lib, NSObject keyset) { + final _ret = _lib._objc_msgSend_518(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithSharedKeySet_1, keyset._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + void setValue_forKey_(NSObject value, NSString? key) { + _lib._objc_msgSend_126( + _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); + } + + @override + NSMutableDictionary initWithObjects_forKeys_count_( + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt) { + final _ret = _lib._objc_msgSend_137( + _id, _lib._sel_initWithObjects_forKeys_count_1, objects, keys, cnt); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary dictionary(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableDictionary1, _lib._sel_dictionary1); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary dictionaryWithObject_forKey_( + SentryCocoa _lib, NSObject object, NSObject? key) { + final _ret = _lib._objc_msgSend_148( + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObject_forKey_1, + object._id, + key?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary dictionaryWithObjects_forKeys_count_( + SentryCocoa _lib, + ffi.Pointer> objects, + ffi.Pointer> keys, + int cnt) { + final _ret = _lib._objc_msgSend_137(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_count_1, objects, keys, cnt); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary dictionaryWithObjectsAndKeys_( + SentryCocoa _lib, NSObject firstObject) { + final _ret = _lib._objc_msgSend_16(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjectsAndKeys_1, firstObject._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary dictionaryWithDictionary_( + SentryCocoa _lib, NSDictionary? dict) { + final _ret = _lib._objc_msgSend_149(_lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithDictionary_1, dict?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary dictionaryWithObjects_forKeys_( + SentryCocoa _lib, NSArray? objects, NSArray? keys) { + final _ret = _lib._objc_msgSend_150( + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithObjects_forKeys_1, + objects?._id ?? ffi.nullptr, + keys?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableDictionary initWithObjectsAndKeys_(NSObject firstObject) { + final _ret = _lib._objc_msgSend_16( + _id, _lib._sel_initWithObjectsAndKeys_1, firstObject._id); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableDictionary initWithDictionary_(NSDictionary? otherDictionary) { + final _ret = _lib._objc_msgSend_149(_id, _lib._sel_initWithDictionary_1, + otherDictionary?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableDictionary initWithDictionary_copyItems_( + NSDictionary? otherDictionary, bool flag) { + final _ret = _lib._objc_msgSend_151( _id, - _lib._sel_removeConnection_fromRunLoop_forMode_1, - conn?._id ?? ffi.nullptr, - runLoop?._id ?? ffi.nullptr, - mode._id); + _lib._sel_initWithDictionary_copyItems_1, + otherDictionary?._id ?? ffi.nullptr, + flag); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); } @override - NSPort init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSPort._(_ret, _lib, retain: true, release: true); + NSMutableDictionary initWithObjects_forKeys_( + NSArray? objects, NSArray? keys) { + final _ret = _lib._objc_msgSend_150( + _id, + _lib._sel_initWithObjects_forKeys_1, + objects?._id ?? ffi.nullptr, + keys?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - static NSPort new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSPort1, _lib._sel_new1); - return NSPort._(_ret, _lib, retain: false, release: true); + static NSDictionary dictionaryWithContentsOfURL_error_(SentryCocoa _lib, + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_152( + _lib._class_NSMutableDictionary1, + _lib._sel_dictionaryWithContentsOfURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSPort allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSObject sharedKeySetForKeys_(SentryCocoa _lib, NSArray? keys) { + final _ret = _lib._objc_msgSend_67(_lib._class_NSMutableDictionary1, + _lib._sel_sharedKeySetForKeys_1, keys?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSMutableDictionary new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableDictionary1, _lib._sel_new1); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); + } + + static NSMutableDictionary allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSPort1, _lib._sel_allocWithZone_1, zone); - return NSPort._(_ret, _lib, retain: false, release: true); + _lib._class_NSMutableDictionary1, _lib._sel_allocWithZone_1, zone); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); } - static NSPort alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSPort1, _lib._sel_alloc1); - return NSPort._(_ret, _lib, retain: false, release: true); + static NSMutableDictionary alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableDictionary1, _lib._sel_alloc1); + return NSMutableDictionary._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -47272,7 +49924,7 @@ class NSPort extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSPort1, + _lib._class_NSMutableDictionary1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -47281,24 +49933,24 @@ class NSPort extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSPort1, + _lib._objc_msgSend_15(_lib._class_NSMutableDictionary1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSPort1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSMutableDictionary1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSPort1, _lib._sel_useStoredAccessor1); + _lib._class_NSMutableDictionary1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSPort1, + _lib._class_NSMutableDictionary1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -47307,7 +49959,7 @@ class NSPort extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSPort1, + _lib._class_NSMutableDictionary1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -47315,177 +49967,136 @@ class NSPort extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSPort1, + _lib._class_NSMutableDictionary1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSPort1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableDictionary1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSPort1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSMutableDictionary1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSRunLoop extends NSObject { - NSRunLoop._(ffi.Pointer id, SentryCocoa lib, +abstract class NSQualityOfService { + static const int NSQualityOfServiceUserInteractive = 33; + static const int NSQualityOfServiceUserInitiated = 25; + static const int NSQualityOfServiceUtility = 17; + static const int NSQualityOfServiceBackground = 9; + static const int NSQualityOfServiceDefault = -1; +} + +class NSArchiver extends NSCoder { + NSArchiver._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSRunLoop] that points to the same underlying object as [other]. - static NSRunLoop castFrom(T other) { - return NSRunLoop._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSArchiver] that points to the same underlying object as [other]. + static NSArchiver castFrom(T other) { + return NSArchiver._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSRunLoop] that wraps the given raw object pointer. - static NSRunLoop castFromPointer( + /// Returns a [NSArchiver] that wraps the given raw object pointer. + static NSArchiver castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSRunLoop._(other, lib, retain: retain, release: release); + return NSArchiver._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSRunLoop]. + /// Returns whether [obj] is an instance of [NSArchiver]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSRunLoop1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSArchiver1); } - static NSRunLoop? getCurrentRunLoop(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_521( - _lib._class_NSRunLoop1, _lib._sel_currentRunLoop1); - return _ret.address == 0 - ? null - : NSRunLoop._(_ret, _lib, retain: true, release: true); + NSArchiver initForWritingWithMutableData_(NSMutableData? mdata) { + final _ret = _lib._objc_msgSend_504(_id, + _lib._sel_initForWritingWithMutableData_1, mdata?._id ?? ffi.nullptr); + return NSArchiver._(_ret, _lib, retain: true, release: true); } - static NSRunLoop? getMainRunLoop(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_521(_lib._class_NSRunLoop1, _lib._sel_mainRunLoop1); + NSMutableData? get archiverData { + final _ret = _lib._objc_msgSend_529(_id, _lib._sel_archiverData1); return _ret.address == 0 ? null - : NSRunLoop._(_ret, _lib, retain: true, release: true); - } - - NSString get currentMode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentMode1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer<__CFRunLoop> getCFRunLoop() { - return _lib._objc_msgSend_522(_id, _lib._sel_getCFRunLoop1); - } - - void addTimer_forMode_(NSTimer? timer, NSString mode) { - _lib._objc_msgSend_529( - _id, _lib._sel_addTimer_forMode_1, timer?._id ?? ffi.nullptr, mode._id); - } - - void addPort_forMode_(NSPort? aPort, NSString mode) { - _lib._objc_msgSend_530( - _id, _lib._sel_addPort_forMode_1, aPort?._id ?? ffi.nullptr, mode._id); - } - - void removePort_forMode_(NSPort? aPort, NSString mode) { - _lib._objc_msgSend_530(_id, _lib._sel_removePort_forMode_1, - aPort?._id ?? ffi.nullptr, mode._id); - } - - NSDate limitDateForMode_(NSString mode) { - final _ret = - _lib._objc_msgSend_531(_id, _lib._sel_limitDateForMode_1, mode._id); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - void acceptInputForMode_beforeDate_(NSString mode, NSDate? limitDate) { - _lib._objc_msgSend_532(_id, _lib._sel_acceptInputForMode_beforeDate_1, - mode._id, limitDate?._id ?? ffi.nullptr); - } - - void run() { - _lib._objc_msgSend_1(_id, _lib._sel_run1); - } - - void runUntilDate_(NSDate? limitDate) { - _lib._objc_msgSend_507( - _id, _lib._sel_runUntilDate_1, limitDate?._id ?? ffi.nullptr); + : NSMutableData._(_ret, _lib, retain: true, release: true); } - bool runMode_beforeDate_(NSString mode, NSDate? limitDate) { - return _lib._objc_msgSend_533(_id, _lib._sel_runMode_beforeDate_1, mode._id, - limitDate?._id ?? ffi.nullptr); + @override + void encodeRootObject_(NSObject rootObject) { + _lib._objc_msgSend_15(_id, _lib._sel_encodeRootObject_1, rootObject._id); } - void configureAsServer() { - _lib._objc_msgSend_1(_id, _lib._sel_configureAsServer1); + @override + void encodeConditionalObject_(NSObject object) { + _lib._objc_msgSend_15(_id, _lib._sel_encodeConditionalObject_1, object._id); } - void performInModes_block_(NSArray? modes, ObjCBlock_ffiVoid block) { - _lib._objc_msgSend_534(_id, _lib._sel_performInModes_block_1, - modes?._id ?? ffi.nullptr, block._id); + static NSData archivedDataWithRootObject_( + SentryCocoa _lib, NSObject rootObject) { + final _ret = _lib._objc_msgSend_505(_lib._class_NSArchiver1, + _lib._sel_archivedDataWithRootObject_1, rootObject._id); + return NSData._(_ret, _lib, retain: true, release: true); } - void performBlock_(ObjCBlock_ffiVoid block) { - _lib._objc_msgSend_500(_id, _lib._sel_performBlock_1, block._id); + static bool archiveRootObject_toFile_( + SentryCocoa _lib, NSObject rootObject, NSString? path) { + return _lib._objc_msgSend_240( + _lib._class_NSArchiver1, + _lib._sel_archiveRootObject_toFile_1, + rootObject._id, + path?._id ?? ffi.nullptr); } - void performSelector_target_argument_order_modes_( - ffi.Pointer aSelector, - NSObject target, - NSObject arg, - int order, - NSArray? modes) { - _lib._objc_msgSend_535( - _id, - _lib._sel_performSelector_target_argument_order_modes_1, - aSelector, - target._id, - arg._id, - order, - modes?._id ?? ffi.nullptr); + void encodeClassName_intoClassName_( + NSString? trueName, NSString? inArchiveName) { + _lib._objc_msgSend_530(_id, _lib._sel_encodeClassName_intoClassName_1, + trueName?._id ?? ffi.nullptr, inArchiveName?._id ?? ffi.nullptr); } - void cancelPerformSelector_target_argument_( - ffi.Pointer aSelector, NSObject target, NSObject arg) { - _lib._objc_msgSend_501( + NSString classNameEncodedForTrueClassName_(NSString? trueName) { + final _ret = _lib._objc_msgSend_64( _id, - _lib._sel_cancelPerformSelector_target_argument_1, - aSelector, - target._id, - arg._id); + _lib._sel_classNameEncodedForTrueClassName_1, + trueName?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - void cancelPerformSelectorsWithTarget_(NSObject target) { - _lib._objc_msgSend_15( - _id, _lib._sel_cancelPerformSelectorsWithTarget_1, target._id); + void replaceObject_withObject_(NSObject object, NSObject newObject) { + _lib._objc_msgSend_515( + _id, _lib._sel_replaceObject_withObject_1, object._id, newObject._id); } @override - NSRunLoop init() { + NSArchiver init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSRunLoop._(_ret, _lib, retain: true, release: true); + return NSArchiver._(_ret, _lib, retain: true, release: true); } - static NSRunLoop new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_new1); - return NSRunLoop._(_ret, _lib, retain: false, release: true); + static NSArchiver new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSArchiver1, _lib._sel_new1); + return NSArchiver._(_ret, _lib, retain: false, release: true); } - static NSRunLoop allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSArchiver allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSRunLoop1, _lib._sel_allocWithZone_1, zone); - return NSRunLoop._(_ret, _lib, retain: false, release: true); + _lib._class_NSArchiver1, _lib._sel_allocWithZone_1, zone); + return NSArchiver._(_ret, _lib, retain: false, release: true); } - static NSRunLoop alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_alloc1); - return NSRunLoop._(_ret, _lib, retain: false, release: true); + static NSArchiver alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSArchiver1, _lib._sel_alloc1); + return NSArchiver._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -47494,7 +50105,7 @@ class NSRunLoop extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSRunLoop1, + _lib._class_NSArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -47503,24 +50114,24 @@ class NSRunLoop extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSRunLoop1, + _lib._objc_msgSend_15(_lib._class_NSArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSRunLoop1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSArchiver1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSRunLoop1, _lib._sel_useStoredAccessor1); + _lib._class_NSArchiver1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSRunLoop1, + _lib._class_NSArchiver1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -47529,7 +50140,7 @@ class NSRunLoop extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSRunLoop1, + _lib._class_NSArchiver1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -47537,7 +50148,7 @@ class NSRunLoop extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSRunLoop1, + _lib._class_NSArchiver1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -47545,214 +50156,111 @@ class NSRunLoop extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSRunLoop1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSArchiver1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSRunLoop1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSArchiver1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -final class __CFRunLoop extends ffi.Opaque {} - -class NSTimer extends NSObject { - NSTimer._(ffi.Pointer id, SentryCocoa lib, +class NSPortCoder extends NSCoder { + NSPortCoder._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSTimer] that points to the same underlying object as [other]. - static NSTimer castFrom(T other) { - return NSTimer._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSPortCoder] that points to the same underlying object as [other]. + static NSPortCoder castFrom(T other) { + return NSPortCoder._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSTimer] that wraps the given raw object pointer. - static NSTimer castFromPointer(SentryCocoa lib, ffi.Pointer other, + /// Returns a [NSPortCoder] that wraps the given raw object pointer. + static NSPortCoder castFromPointer( + SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSTimer._(other, lib, retain: retain, release: release); + return NSPortCoder._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSTimer]. + /// Returns whether [obj] is an instance of [NSPortCoder]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSTimer1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSPortCoder1); } - static NSTimer timerWithTimeInterval_invocation_repeats_( - SentryCocoa _lib, double ti, NSInvocation? invocation, bool yesOrNo) { - final _ret = _lib._objc_msgSend_523( - _lib._class_NSTimer1, - _lib._sel_timerWithTimeInterval_invocation_repeats_1, - ti, - invocation?._id ?? ffi.nullptr, - yesOrNo); - return NSTimer._(_ret, _lib, retain: true, release: true); + bool isBycopy() { + return _lib._objc_msgSend_12(_id, _lib._sel_isBycopy1); } - static NSTimer scheduledTimerWithTimeInterval_invocation_repeats_( - SentryCocoa _lib, double ti, NSInvocation? invocation, bool yesOrNo) { - final _ret = _lib._objc_msgSend_523( - _lib._class_NSTimer1, - _lib._sel_scheduledTimerWithTimeInterval_invocation_repeats_1, - ti, - invocation?._id ?? ffi.nullptr, - yesOrNo); - return NSTimer._(_ret, _lib, retain: true, release: true); + bool isByref() { + return _lib._objc_msgSend_12(_id, _lib._sel_isByref1); } - static NSTimer timerWithTimeInterval_target_selector_userInfo_repeats_( - SentryCocoa _lib, - double ti, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject userInfo, - bool yesOrNo) { - final _ret = _lib._objc_msgSend_524( - _lib._class_NSTimer1, - _lib._sel_timerWithTimeInterval_target_selector_userInfo_repeats_1, - ti, - aTarget._id, - aSelector, - userInfo._id, - yesOrNo); - return NSTimer._(_ret, _lib, retain: true, release: true); + void encodePortObject_(NSPort? aport) { + _lib._objc_msgSend_567( + _id, _lib._sel_encodePortObject_1, aport?._id ?? ffi.nullptr); } - static NSTimer - scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_( - SentryCocoa _lib, - double ti, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject userInfo, - bool yesOrNo) { - final _ret = _lib._objc_msgSend_524( - _lib._class_NSTimer1, - _lib._sel_scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_1, - ti, - aTarget._id, - aSelector, - userInfo._id, - yesOrNo); - return NSTimer._(_ret, _lib, retain: true, release: true); + NSPort decodePortObject() { + final _ret = _lib._objc_msgSend_532(_id, _lib._sel_decodePortObject1); + return NSPort._(_ret, _lib, retain: true, release: true); } - static NSTimer timerWithTimeInterval_repeats_block_(SentryCocoa _lib, - double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { - final _ret = _lib._objc_msgSend_525( - _lib._class_NSTimer1, - _lib._sel_timerWithTimeInterval_repeats_block_1, - interval, - repeats, - block._id); - return NSTimer._(_ret, _lib, retain: true, release: true); - } - - static NSTimer scheduledTimerWithTimeInterval_repeats_block_(SentryCocoa _lib, - double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { - final _ret = _lib._objc_msgSend_525( - _lib._class_NSTimer1, - _lib._sel_scheduledTimerWithTimeInterval_repeats_block_1, - interval, - repeats, - block._id); - return NSTimer._(_ret, _lib, retain: true, release: true); + NSConnection connection() { + final _ret = _lib._objc_msgSend_551(_id, _lib._sel_connection1); + return NSConnection._(_ret, _lib, retain: true, release: true); } - NSTimer initWithFireDate_interval_repeats_block_(NSDate? date, - double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { - final _ret = _lib._objc_msgSend_526( - _id, - _lib._sel_initWithFireDate_interval_repeats_block_1, - date?._id ?? ffi.nullptr, - interval, - repeats, - block._id); - return NSTimer._(_ret, _lib, retain: true, release: true); + static NSObject portCoderWithReceivePort_sendPort_components_( + SentryCocoa _lib, NSPort? rcvPort, NSPort? sndPort, NSArray? comps) { + final _ret = _lib._objc_msgSend_568( + _lib._class_NSPortCoder1, + _lib._sel_portCoderWithReceivePort_sendPort_components_1, + rcvPort?._id ?? ffi.nullptr, + sndPort?._id ?? ffi.nullptr, + comps?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSTimer initWithFireDate_interval_target_selector_userInfo_repeats_( - NSDate? date, - double ti, - NSObject t, - ffi.Pointer s, - NSObject ui, - bool rep) { - final _ret = _lib._objc_msgSend_527( + NSObject initWithReceivePort_sendPort_components_( + NSPort? rcvPort, NSPort? sndPort, NSArray? comps) { + final _ret = _lib._objc_msgSend_568( _id, - _lib._sel_initWithFireDate_interval_target_selector_userInfo_repeats_1, - date?._id ?? ffi.nullptr, - ti, - t._id, - s, - ui._id, - rep); - return NSTimer._(_ret, _lib, retain: true, release: true); - } - - void fire() { - _lib._objc_msgSend_1(_id, _lib._sel_fire1); - } - - NSDate? get fireDate { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_fireDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - set fireDate(NSDate? value) { - return _lib._objc_msgSend_528( - _id, _lib._sel_setFireDate_1, value?._id ?? ffi.nullptr); - } - - double get timeInterval { - return _lib._objc_msgSend_155(_id, _lib._sel_timeInterval1); - } - - double get tolerance { - return _lib._objc_msgSend_155(_id, _lib._sel_tolerance1); - } - - set tolerance(double value) { - return _lib._objc_msgSend_509(_id, _lib._sel_setTolerance_1, value); - } - - void invalidate() { - _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); - } - - bool get valid { - return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); + _lib._sel_initWithReceivePort_sendPort_components_1, + rcvPort?._id ?? ffi.nullptr, + sndPort?._id ?? ffi.nullptr, + comps?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject get userInfo { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); - return NSObject._(_ret, _lib, retain: true, release: true); + void dispatch() { + _lib._objc_msgSend_1(_id, _lib._sel_dispatch1); } @override - NSTimer init() { + NSPortCoder init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSTimer._(_ret, _lib, retain: true, release: true); + return NSPortCoder._(_ret, _lib, retain: true, release: true); } - static NSTimer new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSTimer1, _lib._sel_new1); - return NSTimer._(_ret, _lib, retain: false, release: true); + static NSPortCoder new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSPortCoder1, _lib._sel_new1); + return NSPortCoder._(_ret, _lib, retain: false, release: true); } - static NSTimer allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSPortCoder allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSTimer1, _lib._sel_allocWithZone_1, zone); - return NSTimer._(_ret, _lib, retain: false, release: true); + _lib._class_NSPortCoder1, _lib._sel_allocWithZone_1, zone); + return NSPortCoder._(_ret, _lib, retain: false, release: true); } - static NSTimer alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSTimer1, _lib._sel_alloc1); - return NSTimer._(_ret, _lib, retain: false, release: true); + static NSPortCoder alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPortCoder1, _lib._sel_alloc1); + return NSPortCoder._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -47761,7 +50269,7 @@ class NSTimer extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSTimer1, + _lib._class_NSPortCoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -47770,24 +50278,24 @@ class NSTimer extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSTimer1, + _lib._objc_msgSend_15(_lib._class_NSPortCoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSTimer1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSPortCoder1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSTimer1, _lib._sel_useStoredAccessor1); + _lib._class_NSPortCoder1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSTimer1, + _lib._class_NSPortCoder1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -47796,7 +50304,7 @@ class NSTimer extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSTimer1, + _lib._class_NSPortCoder1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -47804,7 +50312,7 @@ class NSTimer extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSTimer1, + _lib._class_NSPortCoder1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -47812,394 +50320,364 @@ class NSTimer extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSTimer1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSPortCoder1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSTimer1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSPortCoder1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock_ffiVoid_NSTimer_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSTimer_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSTimer_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSTimer_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSTimer_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_ffiVoid_NSTimer_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSTimer_closureRegistry[block.ref.target.address] - as void Function(ffi.Pointer))(arg0); -} - -class ObjCBlock_ffiVoid_NSTimer extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSTimer._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSTimer.fromFunctionPointer( - SentryCocoa lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSTimer.fromFunction( - SentryCocoa lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSTimer_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSTimer_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } -} - -class NSConnection extends NSObject { - NSConnection._(ffi.Pointer id, SentryCocoa lib, +class NSPort extends NSObject { + NSPort._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSConnection] that points to the same underlying object as [other]. - static NSConnection castFrom(T other) { - return NSConnection._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSPort] that points to the same underlying object as [other]. + static NSPort castFrom(T other) { + return NSPort._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSConnection] that wraps the given raw object pointer. - static NSConnection castFromPointer( - SentryCocoa lib, ffi.Pointer other, + /// Returns a [NSPort] that wraps the given raw object pointer. + static NSPort castFromPointer(SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSConnection._(other, lib, retain: retain, release: release); + return NSPort._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSConnection]. + /// Returns whether [obj] is an instance of [NSPort]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSConnection1); - } - - NSDictionary? get statistics { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_statistics1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSPort1); } - static NSArray allConnections(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSConnection1, _lib._sel_allConnections1); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSPort port(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_532(_lib._class_NSPort1, _lib._sel_port1); + return NSPort._(_ret, _lib, retain: true, release: true); } - static NSConnection defaultConnection(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_539( - _lib._class_NSConnection1, _lib._sel_defaultConnection1); - return NSConnection._(_ret, _lib, retain: true, release: true); + void invalidate() { + _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); } - static NSConnection connectionWithRegisteredName_host_( - SentryCocoa _lib, NSString? name, NSString? hostName) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSConnection1, - _lib._sel_connectionWithRegisteredName_host_1, - name?._id ?? ffi.nullptr, - hostName?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); + bool get valid { + return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); } - static NSConnection connectionWithRegisteredName_host_usingNameServer_( - SentryCocoa _lib, - NSString? name, - NSString? hostName, - NSPortNameServer? server) { - final _ret = _lib._objc_msgSend_544( - _lib._class_NSConnection1, - _lib._sel_connectionWithRegisteredName_host_usingNameServer_1, - name?._id ?? ffi.nullptr, - hostName?._id ?? ffi.nullptr, - server?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); + void setDelegate_(NSObject? anObject) { + _lib._objc_msgSend_15( + _id, _lib._sel_setDelegate_1, anObject?._id ?? ffi.nullptr); } - static NSDistantObject rootProxyForConnectionWithRegisteredName_host_( - SentryCocoa _lib, NSString? name, NSString? hostName) { - final _ret = _lib._objc_msgSend_547( - _lib._class_NSConnection1, - _lib._sel_rootProxyForConnectionWithRegisteredName_host_1, - name?._id ?? ffi.nullptr, - hostName?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); + NSObject delegate() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSDistantObject - rootProxyForConnectionWithRegisteredName_host_usingNameServer_( - SentryCocoa _lib, - NSString? name, - NSString? hostName, - NSPortNameServer? server) { - final _ret = _lib._objc_msgSend_548( - _lib._class_NSConnection1, - _lib._sel_rootProxyForConnectionWithRegisteredName_host_usingNameServer_1, - name?._id ?? ffi.nullptr, - hostName?._id ?? ffi.nullptr, - server?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); + void scheduleInRunLoop_forMode_(NSRunLoop? runLoop, NSString mode) { + _lib._objc_msgSend_548(_id, _lib._sel_scheduleInRunLoop_forMode_1, + runLoop?._id ?? ffi.nullptr, mode._id); } - static NSConnection serviceConnectionWithName_rootObject_usingNameServer_( - SentryCocoa _lib, - NSString? name, - NSObject root, - NSPortNameServer? server) { - final _ret = _lib._objc_msgSend_549( - _lib._class_NSConnection1, - _lib._sel_serviceConnectionWithName_rootObject_usingNameServer_1, - name?._id ?? ffi.nullptr, - root._id, - server?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); + void removeFromRunLoop_forMode_(NSRunLoop? runLoop, NSString mode) { + _lib._objc_msgSend_548(_id, _lib._sel_removeFromRunLoop_forMode_1, + runLoop?._id ?? ffi.nullptr, mode._id); } - static NSConnection serviceConnectionWithName_rootObject_( - SentryCocoa _lib, NSString? name, NSObject root) { - final _ret = _lib._objc_msgSend_163( - _lib._class_NSConnection1, - _lib._sel_serviceConnectionWithName_rootObject_1, - name?._id ?? ffi.nullptr, - root._id); - return NSConnection._(_ret, _lib, retain: true, release: true); + int get reservedSpaceLength { + return _lib._objc_msgSend_10(_id, _lib._sel_reservedSpaceLength1); } - double get requestTimeout { - return _lib._objc_msgSend_155(_id, _lib._sel_requestTimeout1); + bool sendBeforeDate_components_from_reserved_( + NSDate? limitDate, + NSMutableArray? components, + NSPort? receivePort, + int headerSpaceReserved) { + return _lib._objc_msgSend_549( + _id, + _lib._sel_sendBeforeDate_components_from_reserved_1, + limitDate?._id ?? ffi.nullptr, + components?._id ?? ffi.nullptr, + receivePort?._id ?? ffi.nullptr, + headerSpaceReserved); } - set requestTimeout(double value) { - return _lib._objc_msgSend_509(_id, _lib._sel_setRequestTimeout_1, value); + bool sendBeforeDate_msgid_components_from_reserved_( + NSDate? limitDate, + int msgID, + NSMutableArray? components, + NSPort? receivePort, + int headerSpaceReserved) { + return _lib._objc_msgSend_550( + _id, + _lib._sel_sendBeforeDate_msgid_components_from_reserved_1, + limitDate?._id ?? ffi.nullptr, + msgID, + components?._id ?? ffi.nullptr, + receivePort?._id ?? ffi.nullptr, + headerSpaceReserved); } - double get replyTimeout { - return _lib._objc_msgSend_155(_id, _lib._sel_replyTimeout1); + void addConnection_toRunLoop_forMode_( + NSConnection? conn, NSRunLoop? runLoop, NSString mode) { + _lib._objc_msgSend_566(_id, _lib._sel_addConnection_toRunLoop_forMode_1, + conn?._id ?? ffi.nullptr, runLoop?._id ?? ffi.nullptr, mode._id); } - set replyTimeout(double value) { - return _lib._objc_msgSend_509(_id, _lib._sel_setReplyTimeout_1, value); + void removeConnection_fromRunLoop_forMode_( + NSConnection? conn, NSRunLoop? runLoop, NSString mode) { + _lib._objc_msgSend_566( + _id, + _lib._sel_removeConnection_fromRunLoop_forMode_1, + conn?._id ?? ffi.nullptr, + runLoop?._id ?? ffi.nullptr, + mode._id); } - NSObject get rootObject { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_rootObject1); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + NSPort init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSPort._(_ret, _lib, retain: true, release: true); } - set rootObject(NSObject value) { - return _lib._objc_msgSend_389(_id, _lib._sel_setRootObject_1, value._id); + static NSPort new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSPort1, _lib._sel_new1); + return NSPort._(_ret, _lib, retain: false, release: true); } - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + static NSPort allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSPort1, _lib._sel_allocWithZone_1, zone); + return NSPort._(_ret, _lib, retain: false, release: true); } - set delegate(NSObject? value) { - return _lib._objc_msgSend_389( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + static NSPort alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSPort1, _lib._sel_alloc1); + return NSPort._(_ret, _lib, retain: false, release: true); } - bool get independentConversationQueueing { - return _lib._objc_msgSend_12( - _id, _lib._sel_independentConversationQueueing1); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSPort1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - set independentConversationQueueing(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setIndependentConversationQueueing_1, value); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSPort1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - bool get valid { - return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSPort1, _lib._sel_accessInstanceVariablesDirectly1); } - NSDistantObject? get rootProxy { - final _ret = _lib._objc_msgSend_550(_id, _lib._sel_rootProxy1); - return _ret.address == 0 - ? null - : NSDistantObject._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSPort1, _lib._sel_useStoredAccessor1); } - void invalidate() { - _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSPort1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - void addRequestMode_(NSString? rmode) { - _lib._objc_msgSend_192( - _id, _lib._sel_addRequestMode_1, rmode?._id ?? ffi.nullptr); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSPort1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - void removeRequestMode_(NSString? rmode) { - _lib._objc_msgSend_192( - _id, _lib._sel_removeRequestMode_1, rmode?._id ?? ffi.nullptr); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSPort1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - NSArray? get requestModes { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_requestModes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSPort1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - bool registerName_(NSString? name) { - return _lib._objc_msgSend_59( - _id, _lib._sel_registerName_1, name?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPort1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - bool registerName_withNameServer_(NSString? name, NSPortNameServer? server) { - return _lib._objc_msgSend_551(_id, _lib._sel_registerName_withNameServer_1, - name?._id ?? ffi.nullptr, server?._id ?? ffi.nullptr); - } +class NSRunLoop extends NSObject { + NSRunLoop._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - static NSConnection connectionWithReceivePort_sendPort_( - SentryCocoa _lib, NSPort? receivePort, NSPort? sendPort) { - final _ret = _lib._objc_msgSend_552( - _lib._class_NSConnection1, - _lib._sel_connectionWithReceivePort_sendPort_1, - receivePort?._id ?? ffi.nullptr, - sendPort?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); + /// Returns a [NSRunLoop] that points to the same underlying object as [other]. + static NSRunLoop castFrom(T other) { + return NSRunLoop._(other._id, other._lib, retain: true, release: true); } - static NSObject currentConversation(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSConnection1, _lib._sel_currentConversation1); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns a [NSRunLoop] that wraps the given raw object pointer. + static NSRunLoop castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSRunLoop._(other, lib, retain: retain, release: release); } - NSConnection initWithReceivePort_sendPort_( - NSPort? receivePort, NSPort? sendPort) { - final _ret = _lib._objc_msgSend_552( - _id, - _lib._sel_initWithReceivePort_sendPort_1, - receivePort?._id ?? ffi.nullptr, - sendPort?._id ?? ffi.nullptr); - return NSConnection._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSRunLoop]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSRunLoop1); } - NSPort? get sendPort { - final _ret = _lib._objc_msgSend_520(_id, _lib._sel_sendPort1); + static NSRunLoop? getCurrentRunLoop(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_533( + _lib._class_NSRunLoop1, _lib._sel_currentRunLoop1); return _ret.address == 0 ? null - : NSPort._(_ret, _lib, retain: true, release: true); + : NSRunLoop._(_ret, _lib, retain: true, release: true); } - NSPort? get receivePort { - final _ret = _lib._objc_msgSend_520(_id, _lib._sel_receivePort1); + static NSRunLoop? getMainRunLoop(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_533(_lib._class_NSRunLoop1, _lib._sel_mainRunLoop1); return _ret.address == 0 ? null - : NSPort._(_ret, _lib, retain: true, release: true); + : NSRunLoop._(_ret, _lib, retain: true, release: true); } - void enableMultipleThreads() { - _lib._objc_msgSend_1(_id, _lib._sel_enableMultipleThreads1); + NSString get currentMode { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentMode1); + return NSString._(_ret, _lib, retain: true, release: true); } - bool get multipleThreadsEnabled { - return _lib._objc_msgSend_12(_id, _lib._sel_multipleThreadsEnabled1); + ffi.Pointer<__CFRunLoop> getCFRunLoop() { + return _lib._objc_msgSend_534(_id, _lib._sel_getCFRunLoop1); } - void addRunLoop_(NSRunLoop? runloop) { - _lib._objc_msgSend_553( - _id, _lib._sel_addRunLoop_1, runloop?._id ?? ffi.nullptr); + void addTimer_forMode_(NSTimer? timer, NSString mode) { + _lib._objc_msgSend_541( + _id, _lib._sel_addTimer_forMode_1, timer?._id ?? ffi.nullptr, mode._id); } - void removeRunLoop_(NSRunLoop? runloop) { - _lib._objc_msgSend_553( - _id, _lib._sel_removeRunLoop_1, runloop?._id ?? ffi.nullptr); + void addPort_forMode_(NSPort? aPort, NSString mode) { + _lib._objc_msgSend_542( + _id, _lib._sel_addPort_forMode_1, aPort?._id ?? ffi.nullptr, mode._id); } - void runInNewThread() { - _lib._objc_msgSend_1(_id, _lib._sel_runInNewThread1); + void removePort_forMode_(NSPort? aPort, NSString mode) { + _lib._objc_msgSend_542(_id, _lib._sel_removePort_forMode_1, + aPort?._id ?? ffi.nullptr, mode._id); } - NSArray? get remoteObjects { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_remoteObjects1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSDate limitDateForMode_(NSString mode) { + final _ret = + _lib._objc_msgSend_543(_id, _lib._sel_limitDateForMode_1, mode._id); + return NSDate._(_ret, _lib, retain: true, release: true); } - NSArray? get localObjects { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_localObjects1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + void acceptInputForMode_beforeDate_(NSString mode, NSDate? limitDate) { + _lib._objc_msgSend_544(_id, _lib._sel_acceptInputForMode_beforeDate_1, + mode._id, limitDate?._id ?? ffi.nullptr); } - void dispatchWithComponents_(NSArray? components) { - _lib._objc_msgSend_443(_id, _lib._sel_dispatchWithComponents_1, - components?._id ?? ffi.nullptr); + void run() { + _lib._objc_msgSend_1(_id, _lib._sel_run1); + } + + void runUntilDate_(NSDate? limitDate) { + _lib._objc_msgSend_520( + _id, _lib._sel_runUntilDate_1, limitDate?._id ?? ffi.nullptr); + } + + bool runMode_beforeDate_(NSString mode, NSDate? limitDate) { + return _lib._objc_msgSend_545(_id, _lib._sel_runMode_beforeDate_1, mode._id, + limitDate?._id ?? ffi.nullptr); + } + + void configureAsServer() { + _lib._objc_msgSend_1(_id, _lib._sel_configureAsServer1); + } + + void performInModes_block_(NSArray? modes, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_546(_id, _lib._sel_performInModes_block_1, + modes?._id ?? ffi.nullptr, block._id); + } + + void performBlock_(ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_513(_id, _lib._sel_performBlock_1, block._id); + } + + void performSelector_target_argument_order_modes_( + ffi.Pointer aSelector, + NSObject target, + NSObject arg, + int order, + NSArray? modes) { + _lib._objc_msgSend_547( + _id, + _lib._sel_performSelector_target_argument_order_modes_1, + aSelector, + target._id, + arg._id, + order, + modes?._id ?? ffi.nullptr); + } + + void cancelPerformSelector_target_argument_( + ffi.Pointer aSelector, NSObject target, NSObject arg) { + _lib._objc_msgSend_514( + _id, + _lib._sel_cancelPerformSelector_target_argument_1, + aSelector, + target._id, + arg._id); + } + + void cancelPerformSelectorsWithTarget_(NSObject target) { + _lib._objc_msgSend_15( + _id, _lib._sel_cancelPerformSelectorsWithTarget_1, target._id); } @override - NSConnection init() { + NSRunLoop init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSConnection._(_ret, _lib, retain: true, release: true); + return NSRunLoop._(_ret, _lib, retain: true, release: true); } - static NSConnection new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSConnection1, _lib._sel_new1); - return NSConnection._(_ret, _lib, retain: false, release: true); + static NSRunLoop new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_new1); + return NSRunLoop._(_ret, _lib, retain: false, release: true); } - static NSConnection allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSRunLoop allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSConnection1, _lib._sel_allocWithZone_1, zone); - return NSConnection._(_ret, _lib, retain: false, release: true); + _lib._class_NSRunLoop1, _lib._sel_allocWithZone_1, zone); + return NSRunLoop._(_ret, _lib, retain: false, release: true); } - static NSConnection alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSConnection1, _lib._sel_alloc1); - return NSConnection._(_ret, _lib, retain: false, release: true); + static NSRunLoop alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_alloc1); + return NSRunLoop._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -48208,7 +50686,7 @@ class NSConnection extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSConnection1, + _lib._class_NSRunLoop1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -48217,24 +50695,24 @@ class NSConnection extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSConnection1, + _lib._objc_msgSend_15(_lib._class_NSRunLoop1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSConnection1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSRunLoop1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSConnection1, _lib._sel_useStoredAccessor1); + _lib._class_NSRunLoop1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSConnection1, + _lib._class_NSRunLoop1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -48243,7 +50721,7 @@ class NSConnection extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSConnection1, + _lib._class_NSRunLoop1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -48251,7 +50729,7 @@ class NSConnection extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSConnection1, + _lib._class_NSRunLoop1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -48259,92 +50737,214 @@ class NSConnection extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSConnection1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSRunLoop1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSConnection1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSRunLoop1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSPortNameServer extends NSObject { - NSPortNameServer._(ffi.Pointer id, SentryCocoa lib, +final class __CFRunLoop extends ffi.Opaque {} + +class NSTimer extends NSObject { + NSTimer._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSPortNameServer] that points to the same underlying object as [other]. - static NSPortNameServer castFrom(T other) { - return NSPortNameServer._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSTimer] that points to the same underlying object as [other]. + static NSTimer castFrom(T other) { + return NSTimer._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSPortNameServer] that wraps the given raw object pointer. - static NSPortNameServer castFromPointer( - SentryCocoa lib, ffi.Pointer other, + /// Returns a [NSTimer] that wraps the given raw object pointer. + static NSTimer castFromPointer(SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSPortNameServer._(other, lib, retain: retain, release: release); + return NSTimer._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSPortNameServer]. + /// Returns whether [obj] is an instance of [NSTimer]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSPortNameServer1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSTimer1); } - static NSPortNameServer systemDefaultPortNameServer(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_540( - _lib._class_NSPortNameServer1, _lib._sel_systemDefaultPortNameServer1); - return NSPortNameServer._(_ret, _lib, retain: true, release: true); + static NSTimer timerWithTimeInterval_invocation_repeats_( + SentryCocoa _lib, double ti, NSInvocation? invocation, bool yesOrNo) { + final _ret = _lib._objc_msgSend_535( + _lib._class_NSTimer1, + _lib._sel_timerWithTimeInterval_invocation_repeats_1, + ti, + invocation?._id ?? ffi.nullptr, + yesOrNo); + return NSTimer._(_ret, _lib, retain: true, release: true); } - NSPort portForName_(NSString? name) { - final _ret = _lib._objc_msgSend_541( - _id, _lib._sel_portForName_1, name?._id ?? ffi.nullptr); - return NSPort._(_ret, _lib, retain: true, release: true); + static NSTimer scheduledTimerWithTimeInterval_invocation_repeats_( + SentryCocoa _lib, double ti, NSInvocation? invocation, bool yesOrNo) { + final _ret = _lib._objc_msgSend_535( + _lib._class_NSTimer1, + _lib._sel_scheduledTimerWithTimeInterval_invocation_repeats_1, + ti, + invocation?._id ?? ffi.nullptr, + yesOrNo); + return NSTimer._(_ret, _lib, retain: true, release: true); } - NSPort portForName_host_(NSString? name, NSString? host) { - final _ret = _lib._objc_msgSend_542(_id, _lib._sel_portForName_host_1, - name?._id ?? ffi.nullptr, host?._id ?? ffi.nullptr); - return NSPort._(_ret, _lib, retain: true, release: true); + static NSTimer timerWithTimeInterval_target_selector_userInfo_repeats_( + SentryCocoa _lib, + double ti, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject userInfo, + bool yesOrNo) { + final _ret = _lib._objc_msgSend_536( + _lib._class_NSTimer1, + _lib._sel_timerWithTimeInterval_target_selector_userInfo_repeats_1, + ti, + aTarget._id, + aSelector, + userInfo._id, + yesOrNo); + return NSTimer._(_ret, _lib, retain: true, release: true); } - bool registerPort_name_(NSPort? port, NSString? name) { - return _lib._objc_msgSend_543(_id, _lib._sel_registerPort_name_1, - port?._id ?? ffi.nullptr, name?._id ?? ffi.nullptr); + static NSTimer + scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_( + SentryCocoa _lib, + double ti, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject userInfo, + bool yesOrNo) { + final _ret = _lib._objc_msgSend_536( + _lib._class_NSTimer1, + _lib._sel_scheduledTimerWithTimeInterval_target_selector_userInfo_repeats_1, + ti, + aTarget._id, + aSelector, + userInfo._id, + yesOrNo); + return NSTimer._(_ret, _lib, retain: true, release: true); } - bool removePortForName_(NSString? name) { - return _lib._objc_msgSend_59( - _id, _lib._sel_removePortForName_1, name?._id ?? ffi.nullptr); + static NSTimer timerWithTimeInterval_repeats_block_(SentryCocoa _lib, + double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { + final _ret = _lib._objc_msgSend_537( + _lib._class_NSTimer1, + _lib._sel_timerWithTimeInterval_repeats_block_1, + interval, + repeats, + block._id); + return NSTimer._(_ret, _lib, retain: true, release: true); + } + + static NSTimer scheduledTimerWithTimeInterval_repeats_block_(SentryCocoa _lib, + double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { + final _ret = _lib._objc_msgSend_537( + _lib._class_NSTimer1, + _lib._sel_scheduledTimerWithTimeInterval_repeats_block_1, + interval, + repeats, + block._id); + return NSTimer._(_ret, _lib, retain: true, release: true); + } + + NSTimer initWithFireDate_interval_repeats_block_(NSDate? date, + double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { + final _ret = _lib._objc_msgSend_538( + _id, + _lib._sel_initWithFireDate_interval_repeats_block_1, + date?._id ?? ffi.nullptr, + interval, + repeats, + block._id); + return NSTimer._(_ret, _lib, retain: true, release: true); + } + + NSTimer initWithFireDate_interval_target_selector_userInfo_repeats_( + NSDate? date, + double ti, + NSObject t, + ffi.Pointer s, + NSObject ui, + bool rep) { + final _ret = _lib._objc_msgSend_539( + _id, + _lib._sel_initWithFireDate_interval_target_selector_userInfo_repeats_1, + date?._id ?? ffi.nullptr, + ti, + t._id, + s, + ui._id, + rep); + return NSTimer._(_ret, _lib, retain: true, release: true); + } + + void fire() { + _lib._objc_msgSend_1(_id, _lib._sel_fire1); + } + + NSDate? get fireDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_fireDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + set fireDate(NSDate? value) { + return _lib._objc_msgSend_540( + _id, _lib._sel_setFireDate_1, value?._id ?? ffi.nullptr); + } + + double get timeInterval { + return _lib._objc_msgSend_155(_id, _lib._sel_timeInterval1); + } + + double get tolerance { + return _lib._objc_msgSend_155(_id, _lib._sel_tolerance1); + } + + set tolerance(double value) { + return _lib._objc_msgSend_522(_id, _lib._sel_setTolerance_1, value); + } + + void invalidate() { + _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + } + + bool get valid { + return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); + } + + NSObject get userInfo { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); + return NSObject._(_ret, _lib, retain: true, release: true); } @override - NSPortNameServer init() { + NSTimer init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSPortNameServer._(_ret, _lib, retain: true, release: true); + return NSTimer._(_ret, _lib, retain: true, release: true); } - static NSPortNameServer new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPortNameServer1, _lib._sel_new1); - return NSPortNameServer._(_ret, _lib, retain: false, release: true); + static NSTimer new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSTimer1, _lib._sel_new1); + return NSTimer._(_ret, _lib, retain: false, release: true); } - static NSPortNameServer allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSTimer allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSPortNameServer1, _lib._sel_allocWithZone_1, zone); - return NSPortNameServer._(_ret, _lib, retain: false, release: true); + _lib._class_NSTimer1, _lib._sel_allocWithZone_1, zone); + return NSTimer._(_ret, _lib, retain: false, release: true); } - static NSPortNameServer alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPortNameServer1, _lib._sel_alloc1); - return NSPortNameServer._(_ret, _lib, retain: false, release: true); + static NSTimer alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSTimer1, _lib._sel_alloc1); + return NSTimer._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -48353,7 +50953,7 @@ class NSPortNameServer extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSPortNameServer1, + _lib._class_NSTimer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -48362,24 +50962,24 @@ class NSPortNameServer extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSPortNameServer1, + _lib._objc_msgSend_15(_lib._class_NSTimer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSPortNameServer1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSTimer1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSPortNameServer1, _lib._sel_useStoredAccessor1); + _lib._class_NSTimer1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSPortNameServer1, + _lib._class_NSTimer1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -48388,7 +50988,7 @@ class NSPortNameServer extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSPortNameServer1, + _lib._class_NSTimer1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -48396,307 +50996,402 @@ class NSPortNameServer extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSPortNameServer1, + _lib._class_NSTimer1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSPortNameServer1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSTimer1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSPortNameServer1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSTimer1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSDistantObject extends NSProxy { - NSDistantObject._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +void _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} - /// Returns a [NSDistantObject] that points to the same underlying object as [other]. - static NSDistantObject castFrom(T other) { - return NSDistantObject._(other._id, other._lib, - retain: true, release: true); - } +final _ObjCBlock_ffiVoid_NSTimer_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSTimer_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSTimer_registerClosure(Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSTimer_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSTimer_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - /// Returns a [NSDistantObject] that wraps the given raw object pointer. - static NSDistantObject castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSDistantObject._(other, lib, retain: retain, release: release); - } +void _ObjCBlock_ffiVoid_NSTimer_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSTimer_closureRegistry[block.ref.target.address] + as void Function(ffi.Pointer))(arg0); +} - /// Returns whether [obj] is an instance of [NSDistantObject]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSDistantObject1); - } +class ObjCBlock_ffiVoid_NSTimer extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSTimer._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); - static NSObject proxyWithTarget_connection_( - SentryCocoa _lib, NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_545( - _lib._class_NSDistantObject1, - _lib._sel_proxyWithTarget_connection_1, - target._id, - connection?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSTimer.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - NSDistantObject initWithTarget_connection_( - NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_545( - _id, - _lib._sel_initWithTarget_connection_1, - target._id, - connection?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSTimer.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSTimer_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSTimer_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); } +} - static NSObject proxyWithLocal_connection_( - SentryCocoa _lib, NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_545( - _lib._class_NSDistantObject1, - _lib._sel_proxyWithLocal_connection_1, - target._id, - connection?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } +class NSConnection extends NSObject { + NSConnection._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - NSDistantObject initWithLocal_connection_( - NSObject target, NSConnection? connection) { - final _ret = _lib._objc_msgSend_545( - _id, - _lib._sel_initWithLocal_connection_1, - target._id, - connection?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); + /// Returns a [NSConnection] that points to the same underlying object as [other]. + static NSConnection castFrom(T other) { + return NSConnection._(other._id, other._lib, retain: true, release: true); } - NSDistantObject initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSDistantObject._(_ret, _lib, retain: true, release: true); + /// Returns a [NSConnection] that wraps the given raw object pointer. + static NSConnection castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSConnection._(other, lib, retain: retain, release: release); } - void setProtocolForProxy_(Protocol? proto) { - _lib._objc_msgSend_546( - _id, _lib._sel_setProtocolForProxy_1, proto?._id ?? ffi.nullptr); + /// Returns whether [obj] is an instance of [NSConnection]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSConnection1); } - NSConnection? get connectionForProxy { - final _ret = _lib._objc_msgSend_539(_id, _lib._sel_connectionForProxy1); + NSDictionary? get statistics { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_statistics1); return _ret.address == 0 ? null - : NSConnection._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSObject alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSDistantObject1, _lib._sel_alloc1); - return NSObject._(_ret, _lib, retain: false, release: true); + static NSArray allConnections(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSConnection1, _lib._sel_allConnections1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static bool respondsToSelector_( - SentryCocoa _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_4(_lib._class_NSDistantObject1, - _lib._sel_respondsToSelector_1, aSelector); + static NSConnection defaultConnection(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_551( + _lib._class_NSConnection1, _lib._sel_defaultConnection1); + return NSConnection._(_ret, _lib, retain: true, release: true); } -} -class NSProxy extends _ObjCWrapper { - NSProxy._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + static NSConnection connectionWithRegisteredName_host_( + SentryCocoa _lib, NSString? name, NSString? hostName) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSConnection1, + _lib._sel_connectionWithRegisteredName_host_1, + name?._id ?? ffi.nullptr, + hostName?._id ?? ffi.nullptr); + return NSConnection._(_ret, _lib, retain: true, release: true); + } - /// Returns a [NSProxy] that points to the same underlying object as [other]. - static NSProxy castFrom(T other) { - return NSProxy._(other._id, other._lib, retain: true, release: true); + static NSConnection connectionWithRegisteredName_host_usingNameServer_( + SentryCocoa _lib, + NSString? name, + NSString? hostName, + NSPortNameServer? server) { + final _ret = _lib._objc_msgSend_556( + _lib._class_NSConnection1, + _lib._sel_connectionWithRegisteredName_host_usingNameServer_1, + name?._id ?? ffi.nullptr, + hostName?._id ?? ffi.nullptr, + server?._id ?? ffi.nullptr); + return NSConnection._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSProxy] that wraps the given raw object pointer. - static NSProxy castFromPointer(SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSProxy._(other, lib, retain: retain, release: release); + static NSDistantObject rootProxyForConnectionWithRegisteredName_host_( + SentryCocoa _lib, NSString? name, NSString? hostName) { + final _ret = _lib._objc_msgSend_559( + _lib._class_NSConnection1, + _lib._sel_rootProxyForConnectionWithRegisteredName_host_1, + name?._id ?? ffi.nullptr, + hostName?._id ?? ffi.nullptr); + return NSDistantObject._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSProxy]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProxy1); + static NSDistantObject + rootProxyForConnectionWithRegisteredName_host_usingNameServer_( + SentryCocoa _lib, + NSString? name, + NSString? hostName, + NSPortNameServer? server) { + final _ret = _lib._objc_msgSend_560( + _lib._class_NSConnection1, + _lib._sel_rootProxyForConnectionWithRegisteredName_host_usingNameServer_1, + name?._id ?? ffi.nullptr, + hostName?._id ?? ffi.nullptr, + server?._id ?? ffi.nullptr); + return NSDistantObject._(_ret, _lib, retain: true, release: true); } - static NSObject alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSProxy1, _lib._sel_alloc1); - return NSObject._(_ret, _lib, retain: false, release: true); + static NSConnection serviceConnectionWithName_rootObject_usingNameServer_( + SentryCocoa _lib, + NSString? name, + NSObject root, + NSPortNameServer? server) { + final _ret = _lib._objc_msgSend_561( + _lib._class_NSConnection1, + _lib._sel_serviceConnectionWithName_rootObject_usingNameServer_1, + name?._id ?? ffi.nullptr, + root._id, + server?._id ?? ffi.nullptr); + return NSConnection._(_ret, _lib, retain: true, release: true); } - static NSObject allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSProxy1, _lib._sel_allocWithZone_1, zone); - return NSObject._(_ret, _lib, retain: false, release: true); + static NSConnection serviceConnectionWithName_rootObject_( + SentryCocoa _lib, NSString? name, NSObject root) { + final _ret = _lib._objc_msgSend_163( + _lib._class_NSConnection1, + _lib._sel_serviceConnectionWithName_rootObject_1, + name?._id ?? ffi.nullptr, + root._id); + return NSConnection._(_ret, _lib, retain: true, release: true); } - static NSObject class1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSProxy1, _lib._sel_class1); - return NSObject._(_ret, _lib, retain: true, release: true); + double get requestTimeout { + return _lib._objc_msgSend_155(_id, _lib._sel_requestTimeout1); } - void forwardInvocation_(NSInvocation? invocation) { - _lib._objc_msgSend_394( - _id, _lib._sel_forwardInvocation_1, invocation?._id ?? ffi.nullptr); + set requestTimeout(double value) { + return _lib._objc_msgSend_522(_id, _lib._sel_setRequestTimeout_1, value); } - NSMethodSignature methodSignatureForSelector_(ffi.Pointer sel) { - final _ret = _lib._objc_msgSend_395( - _id, _lib._sel_methodSignatureForSelector_1, sel); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); + double get replyTimeout { + return _lib._objc_msgSend_155(_id, _lib._sel_replyTimeout1); } - void dealloc() { - _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); + set replyTimeout(double value) { + return _lib._objc_msgSend_522(_id, _lib._sel_setReplyTimeout_1, value); } - void finalize() { - _lib._objc_msgSend_1(_id, _lib._sel_finalize1); + NSObject get rootObject { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_rootObject1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + set rootObject(NSObject value) { + return _lib._objc_msgSend_389(_id, _lib._sel_setRootObject_1, value._id); + } + + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - NSString? get debugDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_debugDescription1); + set delegate(NSObject? value) { + return _lib._objc_msgSend_389( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + } + + bool get independentConversationQueueing { + return _lib._objc_msgSend_12( + _id, _lib._sel_independentConversationQueueing1); + } + + set independentConversationQueueing(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setIndependentConversationQueueing_1, value); + } + + bool get valid { + return _lib._objc_msgSend_12(_id, _lib._sel_isValid1); + } + + NSDistantObject? get rootProxy { + final _ret = _lib._objc_msgSend_562(_id, _lib._sel_rootProxy1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSDistantObject._(_ret, _lib, retain: true, release: true); } - static bool respondsToSelector_( - SentryCocoa _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_4( - _lib._class_NSProxy1, _lib._sel_respondsToSelector_1, aSelector); + void invalidate() { + _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); } - bool allowsWeakReference() { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsWeakReference1); + void addRequestMode_(NSString? rmode) { + _lib._objc_msgSend_192( + _id, _lib._sel_addRequestMode_1, rmode?._id ?? ffi.nullptr); } - bool retainWeakReference() { - return _lib._objc_msgSend_12(_id, _lib._sel_retainWeakReference1); + void removeRequestMode_(NSString? rmode) { + _lib._objc_msgSend_192( + _id, _lib._sel_removeRequestMode_1, rmode?._id ?? ffi.nullptr); } -} -class NSClassDescription extends NSObject { - NSClassDescription._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSArray? get requestModes { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_requestModes1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } - /// Returns a [NSClassDescription] that points to the same underlying object as [other]. - static NSClassDescription castFrom(T other) { - return NSClassDescription._(other._id, other._lib, - retain: true, release: true); + bool registerName_(NSString? name) { + return _lib._objc_msgSend_59( + _id, _lib._sel_registerName_1, name?._id ?? ffi.nullptr); } - /// Returns a [NSClassDescription] that wraps the given raw object pointer. - static NSClassDescription castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSClassDescription._(other, lib, retain: retain, release: release); + bool registerName_withNameServer_(NSString? name, NSPortNameServer? server) { + return _lib._objc_msgSend_563(_id, _lib._sel_registerName_withNameServer_1, + name?._id ?? ffi.nullptr, server?._id ?? ffi.nullptr); } - /// Returns whether [obj] is an instance of [NSClassDescription]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSClassDescription1); + static NSConnection connectionWithReceivePort_sendPort_( + SentryCocoa _lib, NSPort? receivePort, NSPort? sendPort) { + final _ret = _lib._objc_msgSend_564( + _lib._class_NSConnection1, + _lib._sel_connectionWithReceivePort_sendPort_1, + receivePort?._id ?? ffi.nullptr, + sendPort?._id ?? ffi.nullptr); + return NSConnection._(_ret, _lib, retain: true, release: true); } - static void registerClassDescription_forClass_( - SentryCocoa _lib, NSClassDescription? description, NSObject aClass) { - _lib._objc_msgSend_558( - _lib._class_NSClassDescription1, - _lib._sel_registerClassDescription_forClass_1, - description?._id ?? ffi.nullptr, - aClass._id); + static NSObject currentConversation(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSConnection1, _lib._sel_currentConversation1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static void invalidateClassDescriptionCache(SentryCocoa _lib) { - _lib._objc_msgSend_1(_lib._class_NSClassDescription1, - _lib._sel_invalidateClassDescriptionCache1); + NSConnection initWithReceivePort_sendPort_( + NSPort? receivePort, NSPort? sendPort) { + final _ret = _lib._objc_msgSend_564( + _id, + _lib._sel_initWithReceivePort_sendPort_1, + receivePort?._id ?? ffi.nullptr, + sendPort?._id ?? ffi.nullptr); + return NSConnection._(_ret, _lib, retain: true, release: true); } - static NSClassDescription classDescriptionForClass_( - SentryCocoa _lib, NSObject aClass) { - final _ret = _lib._objc_msgSend_559(_lib._class_NSClassDescription1, - _lib._sel_classDescriptionForClass_1, aClass._id); - return NSClassDescription._(_ret, _lib, retain: true, release: true); + NSPort? get sendPort { + final _ret = _lib._objc_msgSend_532(_id, _lib._sel_sendPort1); + return _ret.address == 0 + ? null + : NSPort._(_ret, _lib, retain: true, release: true); } - @override - NSArray? get attributeKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attributeKeys1); + NSPort? get receivePort { + final _ret = _lib._objc_msgSend_532(_id, _lib._sel_receivePort1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSPort._(_ret, _lib, retain: true, release: true); } - @override - NSArray? get toOneRelationshipKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toOneRelationshipKeys1); + void enableMultipleThreads() { + _lib._objc_msgSend_1(_id, _lib._sel_enableMultipleThreads1); + } + + bool get multipleThreadsEnabled { + return _lib._objc_msgSend_12(_id, _lib._sel_multipleThreadsEnabled1); + } + + void addRunLoop_(NSRunLoop? runloop) { + _lib._objc_msgSend_565( + _id, _lib._sel_addRunLoop_1, runloop?._id ?? ffi.nullptr); + } + + void removeRunLoop_(NSRunLoop? runloop) { + _lib._objc_msgSend_565( + _id, _lib._sel_removeRunLoop_1, runloop?._id ?? ffi.nullptr); + } + + void runInNewThread() { + _lib._objc_msgSend_1(_id, _lib._sel_runInNewThread1); + } + + NSArray? get remoteObjects { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_remoteObjects1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - @override - NSArray? get toManyRelationshipKeys { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toManyRelationshipKeys1); + NSArray? get localObjects { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_localObjects1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - @override - NSString inverseForRelationshipKey_(NSString? relationshipKey) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_inverseForRelationshipKey_1, - relationshipKey?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + void dispatchWithComponents_(NSArray? components) { + _lib._objc_msgSend_457(_id, _lib._sel_dispatchWithComponents_1, + components?._id ?? ffi.nullptr); } @override - NSClassDescription init() { + NSConnection init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSClassDescription._(_ret, _lib, retain: true, release: true); + return NSConnection._(_ret, _lib, retain: true, release: true); } - static NSClassDescription new1(SentryCocoa _lib) { + static NSConnection new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSClassDescription1, _lib._sel_new1); - return NSClassDescription._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSConnection1, _lib._sel_new1); + return NSConnection._(_ret, _lib, retain: false, release: true); } - static NSClassDescription allocWithZone_( + static NSConnection allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSClassDescription1, _lib._sel_allocWithZone_1, zone); - return NSClassDescription._(_ret, _lib, retain: false, release: true); + _lib._class_NSConnection1, _lib._sel_allocWithZone_1, zone); + return NSConnection._(_ret, _lib, retain: false, release: true); } - static NSClassDescription alloc(SentryCocoa _lib) { + static NSConnection alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSClassDescription1, _lib._sel_alloc1); - return NSClassDescription._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSConnection1, _lib._sel_alloc1); + return NSConnection._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -48705,7 +51400,7 @@ class NSClassDescription extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSClassDescription1, + _lib._class_NSConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -48714,24 +51409,24 @@ class NSClassDescription extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSClassDescription1, + _lib._objc_msgSend_15(_lib._class_NSConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSClassDescription1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSConnection1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSClassDescription1, _lib._sel_useStoredAccessor1); + _lib._class_NSConnection1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSClassDescription1, + _lib._class_NSConnection1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -48740,7 +51435,7 @@ class NSClassDescription extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSClassDescription1, + _lib._class_NSConnection1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -48748,232 +51443,100 @@ class NSClassDescription extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSClassDescription1, + _lib._class_NSConnection1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSClassDescription1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSConnection1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSClassDescription1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSConnection1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSScriptObjectSpecifier extends NSObject { - NSScriptObjectSpecifier._(ffi.Pointer id, SentryCocoa lib, +class NSPortNameServer extends NSObject { + NSPortNameServer._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSScriptObjectSpecifier] that points to the same underlying object as [other]. - static NSScriptObjectSpecifier castFrom(T other) { - return NSScriptObjectSpecifier._(other._id, other._lib, + /// Returns a [NSPortNameServer] that points to the same underlying object as [other]. + static NSPortNameServer castFrom(T other) { + return NSPortNameServer._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSScriptObjectSpecifier] that wraps the given raw object pointer. - static NSScriptObjectSpecifier castFromPointer( + /// Returns a [NSPortNameServer] that wraps the given raw object pointer. + static NSPortNameServer castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSScriptObjectSpecifier._(other, lib, - retain: retain, release: release); + return NSPortNameServer._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSScriptObjectSpecifier]. + /// Returns whether [obj] is an instance of [NSPortNameServer]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSScriptObjectSpecifier1); - } - - static NSScriptObjectSpecifier objectSpecifierWithDescriptor_( - SentryCocoa _lib, NSAppleEventDescriptor? descriptor) { - final _ret = _lib._objc_msgSend_583( - _lib._class_NSScriptObjectSpecifier1, - _lib._sel_objectSpecifierWithDescriptor_1, - descriptor?._id ?? ffi.nullptr); - return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - NSScriptObjectSpecifier initWithContainerSpecifier_key_( - NSScriptObjectSpecifier? container, NSString? property) { - final _ret = _lib._objc_msgSend_584( - _id, - _lib._sel_initWithContainerSpecifier_key_1, - container?._id ?? ffi.nullptr, - property?._id ?? ffi.nullptr); - return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - NSScriptObjectSpecifier - initWithContainerClassDescription_containerSpecifier_key_( - NSScriptClassDescription? classDesc, - NSScriptObjectSpecifier? container, - NSString? property) { - final _ret = _lib._objc_msgSend_601( - _id, - _lib._sel_initWithContainerClassDescription_containerSpecifier_key_1, - classDesc?._id ?? ffi.nullptr, - container?._id ?? ffi.nullptr, - property?._id ?? ffi.nullptr); - return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - NSScriptObjectSpecifier initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - NSScriptObjectSpecifier? get childSpecifier { - final _ret = _lib._objc_msgSend_591(_id, _lib._sel_childSpecifier1); - return _ret.address == 0 - ? null - : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - set childSpecifier(NSScriptObjectSpecifier? value) { - return _lib._objc_msgSend_592( - _id, _lib._sel_setChildSpecifier_1, value?._id ?? ffi.nullptr); - } - - NSScriptObjectSpecifier? get containerSpecifier { - final _ret = _lib._objc_msgSend_591(_id, _lib._sel_containerSpecifier1); - return _ret.address == 0 - ? null - : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); - } - - set containerSpecifier(NSScriptObjectSpecifier? value) { - return _lib._objc_msgSend_592( - _id, _lib._sel_setContainerSpecifier_1, value?._id ?? ffi.nullptr); - } - - bool get containerIsObjectBeingTested { - return _lib._objc_msgSend_12(_id, _lib._sel_containerIsObjectBeingTested1); - } - - set containerIsObjectBeingTested(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setContainerIsObjectBeingTested_1, value); - } - - bool get containerIsRangeContainerObject { - return _lib._objc_msgSend_12( - _id, _lib._sel_containerIsRangeContainerObject1); - } - - set containerIsRangeContainerObject(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setContainerIsRangeContainerObject_1, value); - } - - NSString? get key { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_key1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set key(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setKey_1, value?._id ?? ffi.nullptr); - } - - NSScriptClassDescription? get containerClassDescription { - final _ret = - _lib._objc_msgSend_587(_id, _lib._sel_containerClassDescription1); - return _ret.address == 0 - ? null - : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); - } - - set containerClassDescription(NSScriptClassDescription? value) { - return _lib._objc_msgSend_602(_id, _lib._sel_setContainerClassDescription_1, - value?._id ?? ffi.nullptr); - } - - NSScriptClassDescription? get keyClassDescription { - final _ret = _lib._objc_msgSend_587(_id, _lib._sel_keyClassDescription1); - return _ret.address == 0 - ? null - : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer indicesOfObjectsByEvaluatingWithContainer_count_( - NSObject container, ffi.Pointer count) { - return _lib._objc_msgSend_603( - _id, - _lib._sel_indicesOfObjectsByEvaluatingWithContainer_count_1, - container._id, - count); - } - - NSObject objectsByEvaluatingWithContainers_(NSObject containers) { - final _ret = _lib._objc_msgSend_16( - _id, _lib._sel_objectsByEvaluatingWithContainers_1, containers._id); - return NSObject._(_ret, _lib, retain: true, release: true); + obj._lib._class_NSPortNameServer1); } - NSObject get objectsByEvaluatingSpecifier { - final _ret = - _lib._objc_msgSend_2(_id, _lib._sel_objectsByEvaluatingSpecifier1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSPortNameServer systemDefaultPortNameServer(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_552( + _lib._class_NSPortNameServer1, _lib._sel_systemDefaultPortNameServer1); + return NSPortNameServer._(_ret, _lib, retain: true, release: true); } - int get evaluationErrorNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_evaluationErrorNumber1); + NSPort portForName_(NSString? name) { + final _ret = _lib._objc_msgSend_553( + _id, _lib._sel_portForName_1, name?._id ?? ffi.nullptr); + return NSPort._(_ret, _lib, retain: true, release: true); } - set evaluationErrorNumber(int value) { - return _lib._objc_msgSend_593( - _id, _lib._sel_setEvaluationErrorNumber_1, value); + NSPort portForName_host_(NSString? name, NSString? host) { + final _ret = _lib._objc_msgSend_554(_id, _lib._sel_portForName_host_1, + name?._id ?? ffi.nullptr, host?._id ?? ffi.nullptr); + return NSPort._(_ret, _lib, retain: true, release: true); } - NSScriptObjectSpecifier? get evaluationErrorSpecifier { - final _ret = - _lib._objc_msgSend_591(_id, _lib._sel_evaluationErrorSpecifier1); - return _ret.address == 0 - ? null - : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + bool registerPort_name_(NSPort? port, NSString? name) { + return _lib._objc_msgSend_555(_id, _lib._sel_registerPort_name_1, + port?._id ?? ffi.nullptr, name?._id ?? ffi.nullptr); } - NSAppleEventDescriptor? get descriptor { - final _ret = _lib._objc_msgSend_561(_id, _lib._sel_descriptor1); - return _ret.address == 0 - ? null - : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + bool removePortForName_(NSString? name) { + return _lib._objc_msgSend_59( + _id, _lib._sel_removePortForName_1, name?._id ?? ffi.nullptr); } @override - NSScriptObjectSpecifier init() { + NSPortNameServer init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + return NSPortNameServer._(_ret, _lib, retain: true, release: true); } - static NSScriptObjectSpecifier new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptObjectSpecifier1, _lib._sel_new1); - return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); + static NSPortNameServer new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPortNameServer1, _lib._sel_new1); + return NSPortNameServer._(_ret, _lib, retain: false, release: true); } - static NSScriptObjectSpecifier allocWithZone_( + static NSPortNameServer allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSScriptObjectSpecifier1, _lib._sel_allocWithZone_1, zone); - return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); + _lib._class_NSPortNameServer1, _lib._sel_allocWithZone_1, zone); + return NSPortNameServer._(_ret, _lib, retain: false, release: true); } - static NSScriptObjectSpecifier alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptObjectSpecifier1, _lib._sel_alloc1); - return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); + static NSPortNameServer alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPortNameServer1, _lib._sel_alloc1); + return NSPortNameServer._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -48982,7 +51545,7 @@ class NSScriptObjectSpecifier extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSScriptObjectSpecifier1, + _lib._class_NSPortNameServer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -48991,24 +51554,24 @@ class NSScriptObjectSpecifier extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSScriptObjectSpecifier1, + _lib._objc_msgSend_15(_lib._class_NSPortNameServer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSScriptObjectSpecifier1, + return _lib._objc_msgSend_12(_lib._class_NSPortNameServer1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSScriptObjectSpecifier1, _lib._sel_useStoredAccessor1); + _lib._class_NSPortNameServer1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptObjectSpecifier1, + _lib._class_NSPortNameServer1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -49017,7 +51580,7 @@ class NSScriptObjectSpecifier extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSScriptObjectSpecifier1, + _lib._class_NSPortNameServer1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -49025,440 +51588,307 @@ class NSScriptObjectSpecifier extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSScriptObjectSpecifier1, + _lib._class_NSPortNameServer1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptObjectSpecifier1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSPortNameServer1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptObjectSpecifier1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPortNameServer1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSAppleEventDescriptor extends NSObject { - NSAppleEventDescriptor._(ffi.Pointer id, SentryCocoa lib, +class NSDistantObject extends NSProxy { + NSDistantObject._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSAppleEventDescriptor] that points to the same underlying object as [other]. - static NSAppleEventDescriptor castFrom(T other) { - return NSAppleEventDescriptor._(other._id, other._lib, + /// Returns a [NSDistantObject] that points to the same underlying object as [other]. + static NSDistantObject castFrom(T other) { + return NSDistantObject._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSAppleEventDescriptor] that wraps the given raw object pointer. - static NSAppleEventDescriptor castFromPointer( + /// Returns a [NSDistantObject] that wraps the given raw object pointer. + static NSDistantObject castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSAppleEventDescriptor._(other, lib, - retain: retain, release: release); + return NSDistantObject._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSAppleEventDescriptor]. + /// Returns whether [obj] is an instance of [NSDistantObject]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSAppleEventDescriptor1); + obj._lib._class_NSDistantObject1); } - static NSAppleEventDescriptor nullDescriptor(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_561( - _lib._class_NSAppleEventDescriptor1, _lib._sel_nullDescriptor1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + static NSObject proxyWithTarget_connection_( + SentryCocoa _lib, NSObject target, NSConnection? connection) { + final _ret = _lib._objc_msgSend_557( + _lib._class_NSDistantObject1, + _lib._sel_proxyWithTarget_connection_1, + target._id, + connection?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor descriptorWithDescriptorType_bytes_length_( - SentryCocoa _lib, - int descriptorType, - ffi.Pointer bytes, - int byteCount) { - final _ret = _lib._objc_msgSend_562( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithDescriptorType_bytes_length_1, - descriptorType, - bytes, - byteCount); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + NSDistantObject initWithTarget_connection_( + NSObject target, NSConnection? connection) { + final _ret = _lib._objc_msgSend_557( + _id, + _lib._sel_initWithTarget_connection_1, + target._id, + connection?._id ?? ffi.nullptr); + return NSDistantObject._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor descriptorWithDescriptorType_data_( - SentryCocoa _lib, int descriptorType, NSData? data) { - final _ret = _lib._objc_msgSend_563( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithDescriptorType_data_1, - descriptorType, - data?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + static NSObject proxyWithLocal_connection_( + SentryCocoa _lib, NSObject target, NSConnection? connection) { + final _ret = _lib._objc_msgSend_557( + _lib._class_NSDistantObject1, + _lib._sel_proxyWithLocal_connection_1, + target._id, + connection?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor descriptorWithBoolean_( - SentryCocoa _lib, int boolean) { - final _ret = _lib._objc_msgSend_564(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithBoolean_1, boolean); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + NSDistantObject initWithLocal_connection_( + NSObject target, NSConnection? connection) { + final _ret = _lib._objc_msgSend_557( + _id, + _lib._sel_initWithLocal_connection_1, + target._id, + connection?._id ?? ffi.nullptr); + return NSDistantObject._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor descriptorWithEnumCode_( - SentryCocoa _lib, int enumerator) { - final _ret = _lib._objc_msgSend_565(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithEnumCode_1, enumerator); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + NSDistantObject initWithCoder_(NSCoder? inCoder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); + return NSDistantObject._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor descriptorWithInt32_( - SentryCocoa _lib, int signedInt) { - final _ret = _lib._objc_msgSend_566(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithInt32_1, signedInt); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + void setProtocolForProxy_(Protocol? proto) { + _lib._objc_msgSend_558( + _id, _lib._sel_setProtocolForProxy_1, proto?._id ?? ffi.nullptr); } - static NSAppleEventDescriptor descriptorWithDouble_( - SentryCocoa _lib, double doubleValue) { - final _ret = _lib._objc_msgSend_567(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithDouble_1, doubleValue); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + NSConnection? get connectionForProxy { + final _ret = _lib._objc_msgSend_551(_id, _lib._sel_connectionForProxy1); + return _ret.address == 0 + ? null + : NSConnection._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor descriptorWithTypeCode_( - SentryCocoa _lib, int typeCode) { - final _ret = _lib._objc_msgSend_565(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithTypeCode_1, typeCode); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + static NSObject alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDistantObject1, _lib._sel_alloc1); + return NSObject._(_ret, _lib, retain: false, release: true); } - static NSAppleEventDescriptor descriptorWithString_( - SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_568(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithString_1, string?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + static bool respondsToSelector_( + SentryCocoa _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_4(_lib._class_NSDistantObject1, + _lib._sel_respondsToSelector_1, aSelector); } +} - static NSAppleEventDescriptor descriptorWithDate_( - SentryCocoa _lib, NSDate? date) { - final _ret = _lib._objc_msgSend_569(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithDate_1, date?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } +class NSProxy extends _ObjCWrapper { + NSProxy._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - static NSAppleEventDescriptor descriptorWithFileURL_( - SentryCocoa _lib, NSURL? fileURL) { - final _ret = _lib._objc_msgSend_570(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithFileURL_1, fileURL?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + /// Returns a [NSProxy] that points to the same underlying object as [other]. + static NSProxy castFrom(T other) { + return NSProxy._(other._id, other._lib, retain: true, release: true); } - static NSAppleEventDescriptor - appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_( - SentryCocoa _lib, - int eventClass, - int eventID, - NSAppleEventDescriptor? targetDescriptor, - int returnID, - int transactionID) { - final _ret = _lib._objc_msgSend_571( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_1, - eventClass, - eventID, - targetDescriptor?._id ?? ffi.nullptr, - returnID, - transactionID); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + /// Returns a [NSProxy] that wraps the given raw object pointer. + static NSProxy castFromPointer(SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSProxy._(other, lib, retain: retain, release: release); } - static NSAppleEventDescriptor listDescriptor(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_561( - _lib._class_NSAppleEventDescriptor1, _lib._sel_listDescriptor1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSProxy]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProxy1); } - static NSAppleEventDescriptor recordDescriptor(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_561( - _lib._class_NSAppleEventDescriptor1, _lib._sel_recordDescriptor1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + static NSObject alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSProxy1, _lib._sel_alloc1); + return NSObject._(_ret, _lib, retain: false, release: true); } - static NSAppleEventDescriptor currentProcessDescriptor(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_561(_lib._class_NSAppleEventDescriptor1, - _lib._sel_currentProcessDescriptor1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + static NSObject allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSProxy1, _lib._sel_allocWithZone_1, zone); + return NSObject._(_ret, _lib, retain: false, release: true); } - static NSAppleEventDescriptor descriptorWithProcessIdentifier_( - SentryCocoa _lib, int processIdentifier) { - final _ret = _lib._objc_msgSend_566(_lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithProcessIdentifier_1, processIdentifier); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + static NSObject class1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSProxy1, _lib._sel_class1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor descriptorWithBundleIdentifier_( - SentryCocoa _lib, NSString? bundleIdentifier) { - final _ret = _lib._objc_msgSend_568( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithBundleIdentifier_1, - bundleIdentifier?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + void forwardInvocation_(NSInvocation? invocation) { + _lib._objc_msgSend_394( + _id, _lib._sel_forwardInvocation_1, invocation?._id ?? ffi.nullptr); } - static NSAppleEventDescriptor descriptorWithApplicationURL_( - SentryCocoa _lib, NSURL? applicationURL) { - final _ret = _lib._objc_msgSend_570( - _lib._class_NSAppleEventDescriptor1, - _lib._sel_descriptorWithApplicationURL_1, - applicationURL?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + NSMethodSignature methodSignatureForSelector_(ffi.Pointer sel) { + final _ret = _lib._objc_msgSend_395( + _id, _lib._sel_methodSignatureForSelector_1, sel); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor initWithAEDescNoCopy_(ffi.Pointer aeDesc) { - final _ret = - _lib._objc_msgSend_572(_id, _lib._sel_initWithAEDescNoCopy_1, aeDesc); - return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); + void dealloc() { + _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); } - NSAppleEventDescriptor initWithDescriptorType_bytes_length_( - int descriptorType, ffi.Pointer bytes, int byteCount) { - final _ret = _lib._objc_msgSend_573( - _id, - _lib._sel_initWithDescriptorType_bytes_length_1, - descriptorType, - bytes, - byteCount); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + void finalize() { + _lib._objc_msgSend_1(_id, _lib._sel_finalize1); } - NSAppleEventDescriptor initWithDescriptorType_data_( - int descriptorType, NSData? data) { - final _ret = _lib._objc_msgSend_574( - _id, - _lib._sel_initWithDescriptorType_data_1, - descriptorType, - data?._id ?? ffi.nullptr); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + NSString? get description { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor - initWithEventClass_eventID_targetDescriptor_returnID_transactionID_( - int eventClass, - int eventID, - NSAppleEventDescriptor? targetDescriptor, - int returnID, - int transactionID) { - final _ret = _lib._objc_msgSend_575( - _id, - _lib._sel_initWithEventClass_eventID_targetDescriptor_returnID_transactionID_1, - eventClass, - eventID, - targetDescriptor?._id ?? ffi.nullptr, - returnID, - transactionID); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + NSString? get debugDescription { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_debugDescription1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor initListDescriptor() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initListDescriptor1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + static bool respondsToSelector_( + SentryCocoa _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_4( + _lib._class_NSProxy1, _lib._sel_respondsToSelector_1, aSelector); } - NSAppleEventDescriptor initRecordDescriptor() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initRecordDescriptor1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + bool allowsWeakReference() { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsWeakReference1); } - ffi.Pointer get aeDesc { - return _lib._objc_msgSend_576(_id, _lib._sel_aeDesc1); + bool retainWeakReference() { + return _lib._objc_msgSend_12(_id, _lib._sel_retainWeakReference1); } +} - int get descriptorType { - return _lib._objc_msgSend_197(_id, _lib._sel_descriptorType1); - } +class NSClassDescription extends NSObject { + NSClassDescription._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + /// Returns a [NSClassDescription] that points to the same underlying object as [other]. + static NSClassDescription castFrom(T other) { + return NSClassDescription._(other._id, other._lib, + retain: true, release: true); } - int get booleanValue { - return _lib._objc_msgSend_216(_id, _lib._sel_booleanValue1); + /// Returns a [NSClassDescription] that wraps the given raw object pointer. + static NSClassDescription castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSClassDescription._(other, lib, retain: retain, release: release); } - int get enumCodeValue { - return _lib._objc_msgSend_197(_id, _lib._sel_enumCodeValue1); + /// Returns whether [obj] is an instance of [NSClassDescription]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSClassDescription1); } - int get int32Value { - return _lib._objc_msgSend_219(_id, _lib._sel_int32Value1); + static void registerClassDescription_forClass_( + SentryCocoa _lib, NSClassDescription? description, NSObject aClass) { + _lib._objc_msgSend_570( + _lib._class_NSClassDescription1, + _lib._sel_registerClassDescription_forClass_1, + description?._id ?? ffi.nullptr, + aClass._id); } - double get doubleValue { - return _lib._objc_msgSend_155(_id, _lib._sel_doubleValue1); + static void invalidateClassDescriptionCache(SentryCocoa _lib) { + _lib._objc_msgSend_1(_lib._class_NSClassDescription1, + _lib._sel_invalidateClassDescriptionCache1); } - int get typeCodeValue { - return _lib._objc_msgSend_197(_id, _lib._sel_typeCodeValue1); + static NSClassDescription classDescriptionForClass_( + SentryCocoa _lib, NSObject aClass) { + final _ret = _lib._objc_msgSend_571(_lib._class_NSClassDescription1, + _lib._sel_classDescriptionForClass_1, aClass._id); + return NSClassDescription._(_ret, _lib, retain: true, release: true); } - NSString? get stringValue { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); + @override + NSArray? get attributeKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attributeKeys1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - NSDate? get dateValue { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_dateValue1); + @override + NSArray? get toOneRelationshipKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toOneRelationshipKeys1); return _ret.address == 0 ? null - : NSDate._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - NSURL? get fileURLValue { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileURLValue1); + @override + NSArray? get toManyRelationshipKeys { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_toManyRelationshipKeys1); return _ret.address == 0 ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - int get eventClass { - return _lib._objc_msgSend_197(_id, _lib._sel_eventClass1); - } - - int get eventID { - return _lib._objc_msgSend_197(_id, _lib._sel_eventID1); - } - - int get returnID { - return _lib._objc_msgSend_217(_id, _lib._sel_returnID1); - } - - int get transactionID { - return _lib._objc_msgSend_219(_id, _lib._sel_transactionID1); - } - - void setParamDescriptor_forKeyword_( - NSAppleEventDescriptor? descriptor, int keyword) { - _lib._objc_msgSend_577(_id, _lib._sel_setParamDescriptor_forKeyword_1, - descriptor?._id ?? ffi.nullptr, keyword); - } - - NSAppleEventDescriptor paramDescriptorForKeyword_(int keyword) { - final _ret = _lib._objc_msgSend_565( - _id, _lib._sel_paramDescriptorForKeyword_1, keyword); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - void removeParamDescriptorWithKeyword_(int keyword) { - _lib._objc_msgSend_578( - _id, _lib._sel_removeParamDescriptorWithKeyword_1, keyword); - } - - void setAttributeDescriptor_forKeyword_( - NSAppleEventDescriptor? descriptor, int keyword) { - _lib._objc_msgSend_577(_id, _lib._sel_setAttributeDescriptor_forKeyword_1, - descriptor?._id ?? ffi.nullptr, keyword); - } - - NSAppleEventDescriptor attributeDescriptorForKeyword_(int keyword) { - final _ret = _lib._objc_msgSend_565( - _id, _lib._sel_attributeDescriptorForKeyword_1, keyword); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor sendEventWithOptions_timeout_error_(int sendOptions, - double timeoutInSeconds, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_579( + @override + NSString inverseForRelationshipKey_(NSString? relationshipKey) { + final _ret = _lib._objc_msgSend_64( _id, - _lib._sel_sendEventWithOptions_timeout_error_1, - sendOptions, - timeoutInSeconds, - error); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - bool get isRecordDescriptor { - return _lib._objc_msgSend_12(_id, _lib._sel_isRecordDescriptor1); - } - - int get numberOfItems { - return _lib._objc_msgSend_78(_id, _lib._sel_numberOfItems1); - } - - void insertDescriptor_atIndex_( - NSAppleEventDescriptor? descriptor, int index) { - _lib._objc_msgSend_580(_id, _lib._sel_insertDescriptor_atIndex_1, - descriptor?._id ?? ffi.nullptr, index); - } - - NSAppleEventDescriptor descriptorAtIndex_(int index) { - final _ret = - _lib._objc_msgSend_581(_id, _lib._sel_descriptorAtIndex_1, index); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - void removeDescriptorAtIndex_(int index) { - _lib._objc_msgSend_396(_id, _lib._sel_removeDescriptorAtIndex_1, index); - } - - void setDescriptor_forKeyword_( - NSAppleEventDescriptor? descriptor, int keyword) { - _lib._objc_msgSend_577(_id, _lib._sel_setDescriptor_forKeyword_1, - descriptor?._id ?? ffi.nullptr, keyword); - } - - NSAppleEventDescriptor descriptorForKeyword_(int keyword) { - final _ret = - _lib._objc_msgSend_565(_id, _lib._sel_descriptorForKeyword_1, keyword); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); - } - - void removeDescriptorWithKeyword_(int keyword) { - _lib._objc_msgSend_578( - _id, _lib._sel_removeDescriptorWithKeyword_1, keyword); - } - - int keywordForDescriptorAtIndex_(int index) { - return _lib._objc_msgSend_582( - _id, _lib._sel_keywordForDescriptorAtIndex_1, index); - } - - NSAppleEventDescriptor coerceToDescriptorType_(int descriptorType) { - final _ret = _lib._objc_msgSend_565( - _id, _lib._sel_coerceToDescriptorType_1, descriptorType); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + _lib._sel_inverseForRelationshipKey_1, + relationshipKey?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } @override - NSAppleEventDescriptor init() { + NSClassDescription init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + return NSClassDescription._(_ret, _lib, retain: true, release: true); } - static NSAppleEventDescriptor new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSAppleEventDescriptor1, _lib._sel_new1); - return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); + static NSClassDescription new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSClassDescription1, _lib._sel_new1); + return NSClassDescription._(_ret, _lib, retain: false, release: true); } - static NSAppleEventDescriptor allocWithZone_( + static NSClassDescription allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSAppleEventDescriptor1, _lib._sel_allocWithZone_1, zone); - return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); + _lib._class_NSClassDescription1, _lib._sel_allocWithZone_1, zone); + return NSClassDescription._(_ret, _lib, retain: false, release: true); } - static NSAppleEventDescriptor alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSAppleEventDescriptor1, _lib._sel_alloc1); - return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); + static NSClassDescription alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSClassDescription1, _lib._sel_alloc1); + return NSClassDescription._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -49467,7 +51897,7 @@ class NSAppleEventDescriptor extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSAppleEventDescriptor1, + _lib._class_NSClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -49476,24 +51906,24 @@ class NSAppleEventDescriptor extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSAppleEventDescriptor1, + _lib._objc_msgSend_15(_lib._class_NSClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSAppleEventDescriptor1, + return _lib._objc_msgSend_12(_lib._class_NSClassDescription1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSAppleEventDescriptor1, _lib._sel_useStoredAccessor1); + _lib._class_NSClassDescription1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSAppleEventDescriptor1, + _lib._class_NSClassDescription1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -49502,7 +51932,7 @@ class NSAppleEventDescriptor extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSAppleEventDescriptor1, + _lib._class_NSClassDescription1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -49510,244 +51940,232 @@ class NSAppleEventDescriptor extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSAppleEventDescriptor1, + _lib._class_NSClassDescription1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSAppleEventDescriptor1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSClassDescription1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSAppleEventDescriptor1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSClassDescription1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -@ffi.Packed(2) -final class AEDesc extends ffi.Struct { - @ffi.UnsignedInt() - external int descriptorType; +class NSScriptObjectSpecifier extends NSObject { + NSScriptObjectSpecifier._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - external ffi.Pointer> dataHandle; -} + /// Returns a [NSScriptObjectSpecifier] that points to the same underlying object as [other]. + static NSScriptObjectSpecifier castFrom(T other) { + return NSScriptObjectSpecifier._(other._id, other._lib, + retain: true, release: true); + } -final class OpaqueAEDataStorageType extends ffi.Opaque {} + /// Returns a [NSScriptObjectSpecifier] that wraps the given raw object pointer. + static NSScriptObjectSpecifier castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSScriptObjectSpecifier._(other, lib, + retain: retain, release: release); + } -abstract class NSAppleEventSendOptions { - static const int NSAppleEventSendNoReply = 1; - static const int NSAppleEventSendQueueReply = 2; - static const int NSAppleEventSendWaitForReply = 3; - static const int NSAppleEventSendNeverInteract = 16; - static const int NSAppleEventSendCanInteract = 32; - static const int NSAppleEventSendAlwaysInteract = 48; - static const int NSAppleEventSendCanSwitchLayer = 64; - static const int NSAppleEventSendDontRecord = 4096; - static const int NSAppleEventSendDontExecute = 8192; - static const int NSAppleEventSendDontAnnotate = 65536; - static const int NSAppleEventSendDefaultOptions = 35; -} - -class NSScriptClassDescription extends NSClassDescription { - NSScriptClassDescription._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSScriptClassDescription] that points to the same underlying object as [other]. - static NSScriptClassDescription castFrom(T other) { - return NSScriptClassDescription._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSScriptClassDescription] that wraps the given raw object pointer. - static NSScriptClassDescription castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSScriptClassDescription._(other, lib, - retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSScriptClassDescription]. + /// Returns whether [obj] is an instance of [NSScriptObjectSpecifier]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSScriptClassDescription1); + obj._lib._class_NSScriptObjectSpecifier1); } - static NSScriptClassDescription classDescriptionForClass_( - SentryCocoa _lib, NSObject aClass) { - final _ret = _lib._objc_msgSend_585(_lib._class_NSScriptClassDescription1, - _lib._sel_classDescriptionForClass_1, aClass._id); - return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + static NSScriptObjectSpecifier objectSpecifierWithDescriptor_( + SentryCocoa _lib, NSAppleEventDescriptor? descriptor) { + final _ret = _lib._objc_msgSend_595( + _lib._class_NSScriptObjectSpecifier1, + _lib._sel_objectSpecifierWithDescriptor_1, + descriptor?._id ?? ffi.nullptr); + return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - NSScriptClassDescription initWithSuiteName_className_dictionary_( - NSString? suiteName, - NSString? className, - NSDictionary? classDeclaration) { - final _ret = _lib._objc_msgSend_586( + NSScriptObjectSpecifier initWithContainerSpecifier_key_( + NSScriptObjectSpecifier? container, NSString? property) { + final _ret = _lib._objc_msgSend_596( _id, - _lib._sel_initWithSuiteName_className_dictionary_1, - suiteName?._id ?? ffi.nullptr, - className?._id ?? ffi.nullptr, - classDeclaration?._id ?? ffi.nullptr); - return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithContainerSpecifier_key_1, + container?._id ?? ffi.nullptr, + property?._id ?? ffi.nullptr); + return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - NSString? get suiteName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suiteName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSScriptObjectSpecifier + initWithContainerClassDescription_containerSpecifier_key_( + NSScriptClassDescription? classDesc, + NSScriptObjectSpecifier? container, + NSString? property) { + final _ret = _lib._objc_msgSend_613( + _id, + _lib._sel_initWithContainerClassDescription_containerSpecifier_key_1, + classDesc?._id ?? ffi.nullptr, + container?._id ?? ffi.nullptr, + property?._id ?? ffi.nullptr); + return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - NSString? get className { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_className1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSScriptObjectSpecifier initWithCoder_(NSCoder? inCoder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); + return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - NSString? get implementationClassName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_implementationClassName1); + NSScriptObjectSpecifier? get childSpecifier { + final _ret = _lib._objc_msgSend_603(_id, _lib._sel_childSpecifier1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - NSScriptClassDescription? get superclassDescription { - final _ret = _lib._objc_msgSend_587(_id, _lib._sel_superclassDescription1); - return _ret.address == 0 - ? null - : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + set childSpecifier(NSScriptObjectSpecifier? value) { + return _lib._objc_msgSend_604( + _id, _lib._sel_setChildSpecifier_1, value?._id ?? ffi.nullptr); } - int get appleEventCode { - return _lib._objc_msgSend_197(_id, _lib._sel_appleEventCode1); + NSScriptObjectSpecifier? get containerSpecifier { + final _ret = _lib._objc_msgSend_603(_id, _lib._sel_containerSpecifier1); + return _ret.address == 0 + ? null + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - bool matchesAppleEventCode_(int appleEventCode) { - return _lib._objc_msgSend_179( - _id, _lib._sel_matchesAppleEventCode_1, appleEventCode); + set containerSpecifier(NSScriptObjectSpecifier? value) { + return _lib._objc_msgSend_604( + _id, _lib._sel_setContainerSpecifier_1, value?._id ?? ffi.nullptr); } - bool supportsCommand_(NSScriptCommandDescription? commandDescription) { - return _lib._objc_msgSend_597(_id, _lib._sel_supportsCommand_1, - commandDescription?._id ?? ffi.nullptr); + bool get containerIsObjectBeingTested { + return _lib._objc_msgSend_12(_id, _lib._sel_containerIsObjectBeingTested1); } - ffi.Pointer selectorForCommand_( - NSScriptCommandDescription? commandDescription) { - return _lib._objc_msgSend_598(_id, _lib._sel_selectorForCommand_1, - commandDescription?._id ?? ffi.nullptr); + set containerIsObjectBeingTested(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setContainerIsObjectBeingTested_1, value); } - NSString typeForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_typeForKey_1, key?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + bool get containerIsRangeContainerObject { + return _lib._objc_msgSend_12( + _id, _lib._sel_containerIsRangeContainerObject1); } - NSScriptClassDescription classDescriptionForKey_(NSString? key) { - final _ret = _lib._objc_msgSend_599( - _id, _lib._sel_classDescriptionForKey_1, key?._id ?? ffi.nullptr); - return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + set containerIsRangeContainerObject(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setContainerIsRangeContainerObject_1, value); } - int appleEventCodeForKey_(NSString? key) { - return _lib._objc_msgSend_588( - _id, _lib._sel_appleEventCodeForKey_1, key?._id ?? ffi.nullptr); + NSString? get key { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_key1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSString keyWithAppleEventCode_(int appleEventCode) { - final _ret = _lib._objc_msgSend_600( - _id, _lib._sel_keyWithAppleEventCode_1, appleEventCode); - return NSString._(_ret, _lib, retain: true, release: true); + set key(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setKey_1, value?._id ?? ffi.nullptr); } - NSString? get defaultSubcontainerAttributeKey { + NSScriptClassDescription? get containerClassDescription { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_defaultSubcontainerAttributeKey1); + _lib._objc_msgSend_599(_id, _lib._sel_containerClassDescription1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - bool isLocationRequiredToCreateForKey_(NSString? toManyRelationshipKey) { - return _lib._objc_msgSend_59( - _id, - _lib._sel_isLocationRequiredToCreateForKey_1, - toManyRelationshipKey?._id ?? ffi.nullptr); + set containerClassDescription(NSScriptClassDescription? value) { + return _lib._objc_msgSend_614(_id, _lib._sel_setContainerClassDescription_1, + value?._id ?? ffi.nullptr); } - bool hasPropertyForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasPropertyForKey_1, key?._id ?? ffi.nullptr); + NSScriptClassDescription? get keyClassDescription { + final _ret = _lib._objc_msgSend_599(_id, _lib._sel_keyClassDescription1); + return _ret.address == 0 + ? null + : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - bool hasOrderedToManyRelationshipForKey_(NSString? key) { - return _lib._objc_msgSend_59( + ffi.Pointer indicesOfObjectsByEvaluatingWithContainer_count_( + NSObject container, ffi.Pointer count) { + return _lib._objc_msgSend_615( _id, - _lib._sel_hasOrderedToManyRelationshipForKey_1, - key?._id ?? ffi.nullptr); + _lib._sel_indicesOfObjectsByEvaluatingWithContainer_count_1, + container._id, + count); } - bool hasReadablePropertyForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasReadablePropertyForKey_1, key?._id ?? ffi.nullptr); + NSObject objectsByEvaluatingWithContainers_(NSObject containers) { + final _ret = _lib._objc_msgSend_16( + _id, _lib._sel_objectsByEvaluatingWithContainers_1, containers._id); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool hasWritablePropertyForKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_hasWritablePropertyForKey_1, key?._id ?? ffi.nullptr); + NSObject get objectsByEvaluatingSpecifier { + final _ret = + _lib._objc_msgSend_2(_id, _lib._sel_objectsByEvaluatingSpecifier1); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool isReadOnlyKey_(NSString? key) { - return _lib._objc_msgSend_59( - _id, _lib._sel_isReadOnlyKey_1, key?._id ?? ffi.nullptr); + int get evaluationErrorNumber { + return _lib._objc_msgSend_78(_id, _lib._sel_evaluationErrorNumber1); } - static void registerClassDescription_forClass_( - SentryCocoa _lib, NSClassDescription? description, NSObject aClass) { - _lib._objc_msgSend_558( - _lib._class_NSScriptClassDescription1, - _lib._sel_registerClassDescription_forClass_1, - description?._id ?? ffi.nullptr, - aClass._id); + set evaluationErrorNumber(int value) { + return _lib._objc_msgSend_605( + _id, _lib._sel_setEvaluationErrorNumber_1, value); } - static void invalidateClassDescriptionCache(SentryCocoa _lib) { - _lib._objc_msgSend_1(_lib._class_NSScriptClassDescription1, - _lib._sel_invalidateClassDescriptionCache1); + NSScriptObjectSpecifier? get evaluationErrorSpecifier { + final _ret = + _lib._objc_msgSend_603(_id, _lib._sel_evaluationErrorSpecifier1); + return _ret.address == 0 + ? null + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + } + + NSAppleEventDescriptor? get descriptor { + final _ret = _lib._objc_msgSend_573(_id, _lib._sel_descriptor1); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } @override - NSScriptClassDescription init() { + NSScriptObjectSpecifier init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); + return NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - static NSScriptClassDescription new1(SentryCocoa _lib) { + static NSScriptObjectSpecifier new1(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptClassDescription1, _lib._sel_new1); - return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); + _lib._class_NSScriptObjectSpecifier1, _lib._sel_new1); + return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); } - static NSScriptClassDescription allocWithZone_( + static NSScriptObjectSpecifier allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSScriptClassDescription1, _lib._sel_allocWithZone_1, zone); - return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); + _lib._class_NSScriptObjectSpecifier1, _lib._sel_allocWithZone_1, zone); + return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); } - static NSScriptClassDescription alloc(SentryCocoa _lib) { + static NSScriptObjectSpecifier alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptClassDescription1, _lib._sel_alloc1); - return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); + _lib._class_NSScriptObjectSpecifier1, _lib._sel_alloc1); + return NSScriptObjectSpecifier._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -49756,7 +52174,7 @@ class NSScriptClassDescription extends NSClassDescription { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSScriptClassDescription1, + _lib._class_NSScriptObjectSpecifier1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -49765,24 +52183,24 @@ class NSScriptClassDescription extends NSClassDescription { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSScriptClassDescription1, + _lib._objc_msgSend_15(_lib._class_NSScriptObjectSpecifier1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSScriptClassDescription1, + return _lib._objc_msgSend_12(_lib._class_NSScriptObjectSpecifier1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSScriptClassDescription1, _lib._sel_useStoredAccessor1); + _lib._class_NSScriptObjectSpecifier1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptClassDescription1, + _lib._class_NSScriptObjectSpecifier1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -49791,7 +52209,7 @@ class NSScriptClassDescription extends NSClassDescription { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSScriptClassDescription1, + _lib._class_NSScriptObjectSpecifier1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -49799,443 +52217,440 @@ class NSScriptClassDescription extends NSClassDescription { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSScriptClassDescription1, + _lib._class_NSScriptObjectSpecifier1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptClassDescription1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptObjectSpecifier1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptClassDescription1, + final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptObjectSpecifier1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSScriptCommandDescription extends NSObject { - NSScriptCommandDescription._(ffi.Pointer id, SentryCocoa lib, +class NSAppleEventDescriptor extends NSObject { + NSAppleEventDescriptor._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSScriptCommandDescription] that points to the same underlying object as [other]. - static NSScriptCommandDescription castFrom(T other) { - return NSScriptCommandDescription._(other._id, other._lib, + /// Returns a [NSAppleEventDescriptor] that points to the same underlying object as [other]. + static NSAppleEventDescriptor castFrom(T other) { + return NSAppleEventDescriptor._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSScriptCommandDescription] that wraps the given raw object pointer. - static NSScriptCommandDescription castFromPointer( + /// Returns a [NSAppleEventDescriptor] that wraps the given raw object pointer. + static NSAppleEventDescriptor castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSScriptCommandDescription._(other, lib, + return NSAppleEventDescriptor._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSScriptCommandDescription]. + /// Returns whether [obj] is an instance of [NSAppleEventDescriptor]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSScriptCommandDescription1); + obj._lib._class_NSAppleEventDescriptor1); } - @override - NSObject init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSAppleEventDescriptor nullDescriptor(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_573( + _lib._class_NSAppleEventDescriptor1, _lib._sel_nullDescriptor1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSScriptCommandDescription initWithSuiteName_commandName_dictionary_( - NSString? suiteName, - NSString? commandName, - NSDictionary? commandDeclaration) { - final _ret = _lib._objc_msgSend_586( - _id, - _lib._sel_initWithSuiteName_commandName_dictionary_1, - suiteName?._id ?? ffi.nullptr, - commandName?._id ?? ffi.nullptr, - commandDeclaration?._id ?? ffi.nullptr); - return NSScriptCommandDescription._(_ret, _lib, - retain: true, release: true); + static NSAppleEventDescriptor descriptorWithDescriptorType_bytes_length_( + SentryCocoa _lib, + int descriptorType, + ffi.Pointer bytes, + int byteCount) { + final _ret = _lib._objc_msgSend_574( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithDescriptorType_bytes_length_1, + descriptorType, + bytes, + byteCount); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSScriptCommandDescription initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSScriptCommandDescription._(_ret, _lib, - retain: true, release: true); + static NSAppleEventDescriptor descriptorWithDescriptorType_data_( + SentryCocoa _lib, int descriptorType, NSData? data) { + final _ret = _lib._objc_msgSend_575( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithDescriptorType_data_1, + descriptorType, + data?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSString? get suiteName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suiteName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSAppleEventDescriptor descriptorWithBoolean_( + SentryCocoa _lib, int boolean) { + final _ret = _lib._objc_msgSend_576(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithBoolean_1, boolean); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSString? get commandName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_commandName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSAppleEventDescriptor descriptorWithEnumCode_( + SentryCocoa _lib, int enumerator) { + final _ret = _lib._objc_msgSend_577(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithEnumCode_1, enumerator); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - int get appleEventClassCode { - return _lib._objc_msgSend_197(_id, _lib._sel_appleEventClassCode1); + static NSAppleEventDescriptor descriptorWithInt32_( + SentryCocoa _lib, int signedInt) { + final _ret = _lib._objc_msgSend_578(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithInt32_1, signedInt); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - int get appleEventCode { - return _lib._objc_msgSend_197(_id, _lib._sel_appleEventCode1); + static NSAppleEventDescriptor descriptorWithDouble_( + SentryCocoa _lib, double doubleValue) { + final _ret = _lib._objc_msgSend_579(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithDouble_1, doubleValue); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSString? get commandClassName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_commandClassName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSAppleEventDescriptor descriptorWithTypeCode_( + SentryCocoa _lib, int typeCode) { + final _ret = _lib._objc_msgSend_577(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithTypeCode_1, typeCode); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSString? get returnType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_returnType1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSAppleEventDescriptor descriptorWithString_( + SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_580(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithString_1, string?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - int get appleEventCodeForReturnType { - return _lib._objc_msgSend_197(_id, _lib._sel_appleEventCodeForReturnType1); + static NSAppleEventDescriptor descriptorWithDate_( + SentryCocoa _lib, NSDate? date) { + final _ret = _lib._objc_msgSend_581(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithDate_1, date?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSArray? get argumentNames { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_argumentNames1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSAppleEventDescriptor descriptorWithFileURL_( + SentryCocoa _lib, NSURL? fileURL) { + final _ret = _lib._objc_msgSend_582(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithFileURL_1, fileURL?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSString typeForArgumentWithName_(NSString? argumentName) { - final _ret = _lib._objc_msgSend_64(_id, _lib._sel_typeForArgumentWithName_1, - argumentName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSAppleEventDescriptor + appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_( + SentryCocoa _lib, + int eventClass, + int eventID, + NSAppleEventDescriptor? targetDescriptor, + int returnID, + int transactionID) { + final _ret = _lib._objc_msgSend_583( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_1, + eventClass, + eventID, + targetDescriptor?._id ?? ffi.nullptr, + returnID, + transactionID); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - int appleEventCodeForArgumentWithName_(NSString? argumentName) { - return _lib._objc_msgSend_588( - _id, - _lib._sel_appleEventCodeForArgumentWithName_1, - argumentName?._id ?? ffi.nullptr); + static NSAppleEventDescriptor listDescriptor(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_573( + _lib._class_NSAppleEventDescriptor1, _lib._sel_listDescriptor1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - bool isOptionalArgumentWithName_(NSString? argumentName) { - return _lib._objc_msgSend_59(_id, _lib._sel_isOptionalArgumentWithName_1, - argumentName?._id ?? ffi.nullptr); + static NSAppleEventDescriptor recordDescriptor(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_573( + _lib._class_NSAppleEventDescriptor1, _lib._sel_recordDescriptor1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSScriptCommand createCommandInstance() { - final _ret = _lib._objc_msgSend_595(_id, _lib._sel_createCommandInstance1); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); + static NSAppleEventDescriptor currentProcessDescriptor(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_573(_lib._class_NSAppleEventDescriptor1, + _lib._sel_currentProcessDescriptor1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSScriptCommand createCommandInstanceWithZone_(ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_596( - _id, _lib._sel_createCommandInstanceWithZone_1, zone); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); + static NSAppleEventDescriptor descriptorWithProcessIdentifier_( + SentryCocoa _lib, int processIdentifier) { + final _ret = _lib._objc_msgSend_578(_lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithProcessIdentifier_1, processIdentifier); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static NSScriptCommandDescription new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptCommandDescription1, _lib._sel_new1); - return NSScriptCommandDescription._(_ret, _lib, - retain: false, release: true); + static NSAppleEventDescriptor descriptorWithBundleIdentifier_( + SentryCocoa _lib, NSString? bundleIdentifier) { + final _ret = _lib._objc_msgSend_580( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithBundleIdentifier_1, + bundleIdentifier?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static NSScriptCommandDescription allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3(_lib._class_NSScriptCommandDescription1, - _lib._sel_allocWithZone_1, zone); - return NSScriptCommandDescription._(_ret, _lib, - retain: false, release: true); + static NSAppleEventDescriptor descriptorWithApplicationURL_( + SentryCocoa _lib, NSURL? applicationURL) { + final _ret = _lib._objc_msgSend_582( + _lib._class_NSAppleEventDescriptor1, + _lib._sel_descriptorWithApplicationURL_1, + applicationURL?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static NSScriptCommandDescription alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptCommandDescription1, _lib._sel_alloc1); - return NSScriptCommandDescription._(_ret, _lib, - retain: false, release: true); + NSAppleEventDescriptor initWithAEDescNoCopy_(ffi.Pointer aeDesc) { + final _ret = + _lib._objc_msgSend_584(_id, _lib._sel_initWithAEDescNoCopy_1, aeDesc); + return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSScriptCommandDescription1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + NSAppleEventDescriptor initWithDescriptorType_bytes_length_( + int descriptorType, ffi.Pointer bytes, int byteCount) { + final _ret = _lib._objc_msgSend_585( + _id, + _lib._sel_initWithDescriptorType_bytes_length_1, + descriptorType, + bytes, + byteCount); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSScriptCommandDescription1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + NSAppleEventDescriptor initWithDescriptorType_data_( + int descriptorType, NSData? data) { + final _ret = _lib._objc_msgSend_586( + _id, + _lib._sel_initWithDescriptorType_data_1, + descriptorType, + data?._id ?? ffi.nullptr); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSScriptCommandDescription1, - _lib._sel_accessInstanceVariablesDirectly1); + NSAppleEventDescriptor + initWithEventClass_eventID_targetDescriptor_returnID_transactionID_( + int eventClass, + int eventID, + NSAppleEventDescriptor? targetDescriptor, + int returnID, + int transactionID) { + final _ret = _lib._objc_msgSend_587( + _id, + _lib._sel_initWithEventClass_eventID_targetDescriptor_returnID_transactionID_1, + eventClass, + eventID, + targetDescriptor?._id ?? ffi.nullptr, + returnID, + transactionID); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSScriptCommandDescription1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptCommandDescription1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSAppleEventDescriptor initListDescriptor() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initListDescriptor1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSScriptCommandDescription1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + NSAppleEventDescriptor initRecordDescriptor() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initRecordDescriptor1); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSScriptCommandDescription1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + ffi.Pointer get aeDesc { + return _lib._objc_msgSend_588(_id, _lib._sel_aeDesc1); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptCommandDescription1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + int get descriptorType { + return _lib._objc_msgSend_197(_id, _lib._sel_descriptorType1); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptCommandDescription1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSData? get data { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } -} - -class NSScriptCommand extends NSObject { - NSScriptCommand._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSScriptCommand] that points to the same underlying object as [other]. - static NSScriptCommand castFrom(T other) { - return NSScriptCommand._(other._id, other._lib, - retain: true, release: true); + int get booleanValue { + return _lib._objc_msgSend_216(_id, _lib._sel_booleanValue1); } - /// Returns a [NSScriptCommand] that wraps the given raw object pointer. - static NSScriptCommand castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSScriptCommand._(other, lib, retain: retain, release: release); + int get enumCodeValue { + return _lib._objc_msgSend_197(_id, _lib._sel_enumCodeValue1); } - /// Returns whether [obj] is an instance of [NSScriptCommand]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSScriptCommand1); + int get int32Value { + return _lib._objc_msgSend_219(_id, _lib._sel_int32Value1); } - NSScriptCommand initWithCommandDescription_( - NSScriptCommandDescription? commandDef) { - final _ret = _lib._objc_msgSend_589(_id, - _lib._sel_initWithCommandDescription_1, commandDef?._id ?? ffi.nullptr); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); + double get doubleValue { + return _lib._objc_msgSend_155(_id, _lib._sel_doubleValue1); } - NSScriptCommand initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); + int get typeCodeValue { + return _lib._objc_msgSend_197(_id, _lib._sel_typeCodeValue1); } - NSScriptCommandDescription? get commandDescription { - final _ret = _lib._objc_msgSend_590(_id, _lib._sel_commandDescription1); + NSString? get stringValue { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); return _ret.address == 0 ? null - : NSScriptCommandDescription._(_ret, _lib, retain: true, release: true); - } - - NSObject get directParameter { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_directParameter1); - return NSObject._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - set directParameter(NSObject value) { - return _lib._objc_msgSend_389( - _id, _lib._sel_setDirectParameter_1, value._id); + NSDate? get dateValue { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_dateValue1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSScriptObjectSpecifier? get receiversSpecifier { - final _ret = _lib._objc_msgSend_591(_id, _lib._sel_receiversSpecifier1); + NSURL? get fileURLValue { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileURLValue1); return _ret.address == 0 ? null - : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); + : NSURL._(_ret, _lib, retain: true, release: true); } - set receiversSpecifier(NSScriptObjectSpecifier? value) { - return _lib._objc_msgSend_592( - _id, _lib._sel_setReceiversSpecifier_1, value?._id ?? ffi.nullptr); + int get eventClass { + return _lib._objc_msgSend_197(_id, _lib._sel_eventClass1); } - NSObject get evaluatedReceivers { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_evaluatedReceivers1); - return NSObject._(_ret, _lib, retain: true, release: true); + int get eventID { + return _lib._objc_msgSend_197(_id, _lib._sel_eventID1); } - NSDictionary? get arguments { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_arguments1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + int get returnID { + return _lib._objc_msgSend_217(_id, _lib._sel_returnID1); } - set arguments(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); + int get transactionID { + return _lib._objc_msgSend_219(_id, _lib._sel_transactionID1); } - NSDictionary? get evaluatedArguments { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_evaluatedArguments1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + void setParamDescriptor_forKeyword_( + NSAppleEventDescriptor? descriptor, int keyword) { + _lib._objc_msgSend_589(_id, _lib._sel_setParamDescriptor_forKeyword_1, + descriptor?._id ?? ffi.nullptr, keyword); } - bool get wellFormed { - return _lib._objc_msgSend_12(_id, _lib._sel_isWellFormed1); + NSAppleEventDescriptor paramDescriptorForKeyword_(int keyword) { + final _ret = _lib._objc_msgSend_577( + _id, _lib._sel_paramDescriptorForKeyword_1, keyword); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSObject performDefaultImplementation() { - final _ret = - _lib._objc_msgSend_2(_id, _lib._sel_performDefaultImplementation1); - return NSObject._(_ret, _lib, retain: true, release: true); + void removeParamDescriptorWithKeyword_(int keyword) { + _lib._objc_msgSend_590( + _id, _lib._sel_removeParamDescriptorWithKeyword_1, keyword); } - NSObject executeCommand() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_executeCommand1); - return NSObject._(_ret, _lib, retain: true, release: true); + void setAttributeDescriptor_forKeyword_( + NSAppleEventDescriptor? descriptor, int keyword) { + _lib._objc_msgSend_589(_id, _lib._sel_setAttributeDescriptor_forKeyword_1, + descriptor?._id ?? ffi.nullptr, keyword); } - int get scriptErrorNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_scriptErrorNumber1); + NSAppleEventDescriptor attributeDescriptorForKeyword_(int keyword) { + final _ret = _lib._objc_msgSend_577( + _id, _lib._sel_attributeDescriptorForKeyword_1, keyword); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - set scriptErrorNumber(int value) { - return _lib._objc_msgSend_593(_id, _lib._sel_setScriptErrorNumber_1, value); + NSAppleEventDescriptor sendEventWithOptions_timeout_error_(int sendOptions, + double timeoutInSeconds, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_591( + _id, + _lib._sel_sendEventWithOptions_timeout_error_1, + sendOptions, + timeoutInSeconds, + error); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor? get scriptErrorOffendingObjectDescriptor { - final _ret = _lib._objc_msgSend_561( - _id, _lib._sel_scriptErrorOffendingObjectDescriptor1); - return _ret.address == 0 - ? null - : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + bool get isRecordDescriptor { + return _lib._objc_msgSend_12(_id, _lib._sel_isRecordDescriptor1); } - set scriptErrorOffendingObjectDescriptor(NSAppleEventDescriptor? value) { - return _lib._objc_msgSend_594( - _id, - _lib._sel_setScriptErrorOffendingObjectDescriptor_1, - value?._id ?? ffi.nullptr); + int get numberOfItems { + return _lib._objc_msgSend_78(_id, _lib._sel_numberOfItems1); } - NSAppleEventDescriptor? get scriptErrorExpectedTypeDescriptor { - final _ret = _lib._objc_msgSend_561( - _id, _lib._sel_scriptErrorExpectedTypeDescriptor1); - return _ret.address == 0 - ? null - : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + void insertDescriptor_atIndex_( + NSAppleEventDescriptor? descriptor, int index) { + _lib._objc_msgSend_592(_id, _lib._sel_insertDescriptor_atIndex_1, + descriptor?._id ?? ffi.nullptr, index); } - set scriptErrorExpectedTypeDescriptor(NSAppleEventDescriptor? value) { - return _lib._objc_msgSend_594( - _id, - _lib._sel_setScriptErrorExpectedTypeDescriptor_1, - value?._id ?? ffi.nullptr); + NSAppleEventDescriptor descriptorAtIndex_(int index) { + final _ret = + _lib._objc_msgSend_593(_id, _lib._sel_descriptorAtIndex_1, index); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSString? get scriptErrorString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scriptErrorString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void removeDescriptorAtIndex_(int index) { + _lib._objc_msgSend_396(_id, _lib._sel_removeDescriptorAtIndex_1, index); } - set scriptErrorString(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setScriptErrorString_1, value?._id ?? ffi.nullptr); + void setDescriptor_forKeyword_( + NSAppleEventDescriptor? descriptor, int keyword) { + _lib._objc_msgSend_589(_id, _lib._sel_setDescriptor_forKeyword_1, + descriptor?._id ?? ffi.nullptr, keyword); } - static NSScriptCommand currentCommand(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_595( - _lib._class_NSScriptCommand1, _lib._sel_currentCommand1); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); + NSAppleEventDescriptor descriptorForKeyword_(int keyword) { + final _ret = + _lib._objc_msgSend_577(_id, _lib._sel_descriptorForKeyword_1, keyword); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - NSAppleEventDescriptor? get appleEvent { - final _ret = _lib._objc_msgSend_561(_id, _lib._sel_appleEvent1); - return _ret.address == 0 - ? null - : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); + void removeDescriptorWithKeyword_(int keyword) { + _lib._objc_msgSend_590( + _id, _lib._sel_removeDescriptorWithKeyword_1, keyword); } - void suspendExecution() { - _lib._objc_msgSend_1(_id, _lib._sel_suspendExecution1); + int keywordForDescriptorAtIndex_(int index) { + return _lib._objc_msgSend_594( + _id, _lib._sel_keywordForDescriptorAtIndex_1, index); } - void resumeExecutionWithResult_(NSObject result) { - _lib._objc_msgSend_15( - _id, _lib._sel_resumeExecutionWithResult_1, result._id); + NSAppleEventDescriptor coerceToDescriptorType_(int descriptorType) { + final _ret = _lib._objc_msgSend_577( + _id, _lib._sel_coerceToDescriptorType_1, descriptorType); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } @override - NSScriptCommand init() { + NSAppleEventDescriptor init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSScriptCommand._(_ret, _lib, retain: true, release: true); + return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static NSScriptCommand new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSScriptCommand1, _lib._sel_new1); - return NSScriptCommand._(_ret, _lib, retain: false, release: true); + static NSAppleEventDescriptor new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAppleEventDescriptor1, _lib._sel_new1); + return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); } - static NSScriptCommand allocWithZone_( + static NSAppleEventDescriptor allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSScriptCommand1, _lib._sel_allocWithZone_1, zone); - return NSScriptCommand._(_ret, _lib, retain: false, release: true); + _lib._class_NSAppleEventDescriptor1, _lib._sel_allocWithZone_1, zone); + return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); } - static NSScriptCommand alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSScriptCommand1, _lib._sel_alloc1); - return NSScriptCommand._(_ret, _lib, retain: false, release: true); + static NSAppleEventDescriptor alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAppleEventDescriptor1, _lib._sel_alloc1); + return NSAppleEventDescriptor._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -50244,7 +52659,7 @@ class NSScriptCommand extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSScriptCommand1, + _lib._class_NSAppleEventDescriptor1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -50253,24 +52668,24 @@ class NSScriptCommand extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSScriptCommand1, + _lib._objc_msgSend_15(_lib._class_NSAppleEventDescriptor1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSScriptCommand1, + return _lib._objc_msgSend_12(_lib._class_NSAppleEventDescriptor1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSScriptCommand1, _lib._sel_useStoredAccessor1); + _lib._class_NSAppleEventDescriptor1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSScriptCommand1, + _lib._class_NSAppleEventDescriptor1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -50279,7 +52694,7 @@ class NSScriptCommand extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSScriptCommand1, + _lib._class_NSAppleEventDescriptor1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -50287,273 +52702,244 @@ class NSScriptCommand extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSScriptCommand1, + _lib._class_NSAppleEventDescriptor1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptCommand1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSAppleEventDescriptor1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSScriptCommand1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSAppleEventDescriptor1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSItemProvider extends NSObject { - NSItemProvider._(ffi.Pointer id, SentryCocoa lib, +@ffi.Packed(2) +final class AEDesc extends ffi.Struct { + @ffi.UnsignedInt() + external int descriptorType; + + external ffi.Pointer> dataHandle; +} + +final class OpaqueAEDataStorageType extends ffi.Opaque {} + +abstract class NSAppleEventSendOptions { + static const int NSAppleEventSendNoReply = 1; + static const int NSAppleEventSendQueueReply = 2; + static const int NSAppleEventSendWaitForReply = 3; + static const int NSAppleEventSendNeverInteract = 16; + static const int NSAppleEventSendCanInteract = 32; + static const int NSAppleEventSendAlwaysInteract = 48; + static const int NSAppleEventSendCanSwitchLayer = 64; + static const int NSAppleEventSendDontRecord = 4096; + static const int NSAppleEventSendDontExecute = 8192; + static const int NSAppleEventSendDontAnnotate = 65536; + static const int NSAppleEventSendDefaultOptions = 35; +} + +class NSScriptClassDescription extends NSClassDescription { + NSScriptClassDescription._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSItemProvider] that points to the same underlying object as [other]. - static NSItemProvider castFrom(T other) { - return NSItemProvider._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSScriptClassDescription] that points to the same underlying object as [other]. + static NSScriptClassDescription castFrom(T other) { + return NSScriptClassDescription._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSItemProvider] that wraps the given raw object pointer. - static NSItemProvider castFromPointer( + /// Returns a [NSScriptClassDescription] that wraps the given raw object pointer. + static NSScriptClassDescription castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSItemProvider._(other, lib, retain: retain, release: release); + return NSScriptClassDescription._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSItemProvider]. + /// Returns whether [obj] is an instance of [NSScriptClassDescription]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSItemProvider1); + obj._lib._class_NSScriptClassDescription1); } - @override - NSItemProvider init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSItemProvider._(_ret, _lib, retain: true, release: true); + static NSScriptClassDescription classDescriptionForClass_( + SentryCocoa _lib, NSObject aClass) { + final _ret = _lib._objc_msgSend_597(_lib._class_NSScriptClassDescription1, + _lib._sel_classDescriptionForClass_1, aClass._id); + return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - void registerDataRepresentationForTypeIdentifier_visibility_loadHandler_( - NSString? typeIdentifier, - int visibility, - ObjCBlock_NSProgress_ffiVoidNSDataNSError loadHandler) { - _lib._objc_msgSend_626( + NSScriptClassDescription initWithSuiteName_className_dictionary_( + NSString? suiteName, + NSString? className, + NSDictionary? classDeclaration) { + final _ret = _lib._objc_msgSend_598( _id, - _lib._sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - visibility, - loadHandler._id); + _lib._sel_initWithSuiteName_className_dictionary_1, + suiteName?._id ?? ffi.nullptr, + className?._id ?? ffi.nullptr, + classDeclaration?._id ?? ffi.nullptr); + return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - void - registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_( - NSString? typeIdentifier, - int fileOptions, - int visibility, - ObjCBlock_NSProgress_ffiVoidNSURLboolNSError loadHandler) { - _lib._objc_msgSend_627( - _id, - _lib._sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - fileOptions, - visibility, - loadHandler._id); + NSString? get suiteName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suiteName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get registeredTypeIdentifiers { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_registeredTypeIdentifiers1); + NSString? get className { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_className1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSArray registeredTypeIdentifiersWithFileOptions_(int fileOptions) { - final _ret = _lib._objc_msgSend_628( - _id, _lib._sel_registeredTypeIdentifiersWithFileOptions_1, fileOptions); - return NSArray._(_ret, _lib, retain: true, release: true); + NSString? get implementationClassName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_implementationClassName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool hasItemConformingToTypeIdentifier_(NSString? typeIdentifier) { - return _lib._objc_msgSend_59( - _id, - _lib._sel_hasItemConformingToTypeIdentifier_1, - typeIdentifier?._id ?? ffi.nullptr); + NSScriptClassDescription? get superclassDescription { + final _ret = _lib._objc_msgSend_599(_id, _lib._sel_superclassDescription1); + return _ret.address == 0 + ? null + : NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - bool hasRepresentationConformingToTypeIdentifier_fileOptions_( - NSString? typeIdentifier, int fileOptions) { - return _lib._objc_msgSend_629( - _id, - _lib._sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1, - typeIdentifier?._id ?? ffi.nullptr, - fileOptions); + int get appleEventCode { + return _lib._objc_msgSend_197(_id, _lib._sel_appleEventCode1); } - NSProgress loadDataRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, - ObjCBlock_ffiVoid_NSData_NSError completionHandler) { - final _ret = _lib._objc_msgSend_630( - _id, - _lib._sel_loadDataRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - completionHandler._id); - return NSProgress._(_ret, _lib, retain: true, release: true); + bool matchesAppleEventCode_(int appleEventCode) { + return _lib._objc_msgSend_179( + _id, _lib._sel_matchesAppleEventCode_1, appleEventCode); } - NSProgress loadFileRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, - ObjCBlock_ffiVoid_NSURL_NSError completionHandler) { - final _ret = _lib._objc_msgSend_631( - _id, - _lib._sel_loadFileRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - completionHandler._id); - return NSProgress._(_ret, _lib, retain: true, release: true); + bool supportsCommand_(NSScriptCommandDescription? commandDescription) { + return _lib._objc_msgSend_609(_id, _lib._sel_supportsCommand_1, + commandDescription?._id ?? ffi.nullptr); } - NSProgress loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, - ObjCBlock_ffiVoid_NSURL_bool_NSError completionHandler) { - final _ret = _lib._objc_msgSend_632( - _id, - _lib._sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - completionHandler._id); - return NSProgress._(_ret, _lib, retain: true, release: true); + ffi.Pointer selectorForCommand_( + NSScriptCommandDescription? commandDescription) { + return _lib._objc_msgSend_610(_id, _lib._sel_selectorForCommand_1, + commandDescription?._id ?? ffi.nullptr); } - NSString? get suggestedName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suggestedName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString typeForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_typeForKey_1, key?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - set suggestedName(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setSuggestedName_1, value?._id ?? ffi.nullptr); + NSScriptClassDescription classDescriptionForKey_(NSString? key) { + final _ret = _lib._objc_msgSend_611( + _id, _lib._sel_classDescriptionForKey_1, key?._id ?? ffi.nullptr); + return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - NSItemProvider initWithObject_(NSObject? object) { - final _ret = _lib._objc_msgSend_16( - _id, _lib._sel_initWithObject_1, object?._id ?? ffi.nullptr); - return NSItemProvider._(_ret, _lib, retain: true, release: true); + int appleEventCodeForKey_(NSString? key) { + return _lib._objc_msgSend_600( + _id, _lib._sel_appleEventCodeForKey_1, key?._id ?? ffi.nullptr); } - void registerObject_visibility_(NSObject? object, int visibility) { - _lib._objc_msgSend_633(_id, _lib._sel_registerObject_visibility_1, - object?._id ?? ffi.nullptr, visibility); + NSString keyWithAppleEventCode_(int appleEventCode) { + final _ret = _lib._objc_msgSend_612( + _id, _lib._sel_keyWithAppleEventCode_1, appleEventCode); + return NSString._(_ret, _lib, retain: true, release: true); } - void registerObjectOfClass_visibility_loadHandler_( - NSObject? aClass, - int visibility, - ObjCBlock_NSProgress_ffiVoidObjCObjectNSError loadHandler) { - _lib._objc_msgSend_634( - _id, - _lib._sel_registerObjectOfClass_visibility_loadHandler_1, - aClass?._id ?? ffi.nullptr, - visibility, - loadHandler._id); + NSString? get defaultSubcontainerAttributeKey { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_defaultSubcontainerAttributeKey1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool canLoadObjectOfClass_(NSObject? aClass) { - return _lib._objc_msgSend_0( - _id, _lib._sel_canLoadObjectOfClass_1, aClass?._id ?? ffi.nullptr); + bool isLocationRequiredToCreateForKey_(NSString? toManyRelationshipKey) { + return _lib._objc_msgSend_59( + _id, + _lib._sel_isLocationRequiredToCreateForKey_1, + toManyRelationshipKey?._id ?? ffi.nullptr); } - NSProgress loadObjectOfClass_completionHandler_(NSObject? aClass, - ObjCBlock_ffiVoid_ObjCObject_NSError completionHandler) { - final _ret = _lib._objc_msgSend_635( - _id, - _lib._sel_loadObjectOfClass_completionHandler_1, - aClass?._id ?? ffi.nullptr, - completionHandler._id); - return NSProgress._(_ret, _lib, retain: true, release: true); + bool hasPropertyForKey_(NSString? key) { + return _lib._objc_msgSend_59( + _id, _lib._sel_hasPropertyForKey_1, key?._id ?? ffi.nullptr); } - NSItemProvider initWithItem_typeIdentifier_( - NSObject? item, NSString? typeIdentifier) { - final _ret = _lib._objc_msgSend_289( + bool hasOrderedToManyRelationshipForKey_(NSString? key) { + return _lib._objc_msgSend_59( _id, - _lib._sel_initWithItem_typeIdentifier_1, - item?._id ?? ffi.nullptr, - typeIdentifier?._id ?? ffi.nullptr); - return NSItemProvider._(_ret, _lib, retain: true, release: true); + _lib._sel_hasOrderedToManyRelationshipForKey_1, + key?._id ?? ffi.nullptr); } - NSItemProvider initWithContentsOfURL_(NSURL? fileURL) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithContentsOfURL_1, fileURL?._id ?? ffi.nullptr); - return NSItemProvider._(_ret, _lib, retain: true, release: true); + bool hasReadablePropertyForKey_(NSString? key) { + return _lib._objc_msgSend_59( + _id, _lib._sel_hasReadablePropertyForKey_1, key?._id ?? ffi.nullptr); } - void registerItemForTypeIdentifier_loadHandler_( - NSString? typeIdentifier, - ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary - loadHandler) { - _lib._objc_msgSend_636( - _id, - _lib._sel_registerItemForTypeIdentifier_loadHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - loadHandler._id); + bool hasWritablePropertyForKey_(NSString? key) { + return _lib._objc_msgSend_59( + _id, _lib._sel_hasWritablePropertyForKey_1, key?._id ?? ffi.nullptr); } - void loadItemForTypeIdentifier_options_completionHandler_( - NSString? typeIdentifier, - NSDictionary? options, - ObjCBlock_ffiVoid_ObjCObject_NSError completionHandler) { - _lib._objc_msgSend_637( - _id, - _lib._sel_loadItemForTypeIdentifier_options_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - completionHandler._id); + bool isReadOnlyKey_(NSString? key) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isReadOnlyKey_1, key?._id ?? ffi.nullptr); } - ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary - get previewImageHandler { - final _ret = _lib._objc_msgSend_638(_id, _lib._sel_previewImageHandler1); - return ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary._( - _ret, _lib); + static void registerClassDescription_forClass_( + SentryCocoa _lib, NSClassDescription? description, NSObject aClass) { + _lib._objc_msgSend_570( + _lib._class_NSScriptClassDescription1, + _lib._sel_registerClassDescription_forClass_1, + description?._id ?? ffi.nullptr, + aClass._id); } - set previewImageHandler( - ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary - value) { - return _lib._objc_msgSend_639( - _id, _lib._sel_setPreviewImageHandler_1, value._id); + static void invalidateClassDescriptionCache(SentryCocoa _lib) { + _lib._objc_msgSend_1(_lib._class_NSScriptClassDescription1, + _lib._sel_invalidateClassDescriptionCache1); } - void loadPreviewImageWithOptions_completionHandler_(NSDictionary? options, - ObjCBlock_ffiVoid_ObjCObject_NSError completionHandler) { - _lib._objc_msgSend_640( - _id, - _lib._sel_loadPreviewImageWithOptions_completionHandler_1, - options?._id ?? ffi.nullptr, - completionHandler._id); + @override + NSScriptClassDescription init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSScriptClassDescription._(_ret, _lib, retain: true, release: true); } - static NSItemProvider new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_new1); - return NSItemProvider._(_ret, _lib, retain: false, release: true); + static NSScriptClassDescription new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScriptClassDescription1, _lib._sel_new1); + return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); } - static NSItemProvider allocWithZone_( + static NSScriptClassDescription allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSItemProvider1, _lib._sel_allocWithZone_1, zone); - return NSItemProvider._(_ret, _lib, retain: false, release: true); + _lib._class_NSScriptClassDescription1, _lib._sel_allocWithZone_1, zone); + return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); } - static NSItemProvider alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_alloc1); - return NSItemProvider._(_ret, _lib, retain: false, release: true); + static NSScriptClassDescription alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScriptClassDescription1, _lib._sel_alloc1); + return NSScriptClassDescription._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -50562,7 +52948,7 @@ class NSItemProvider extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSItemProvider1, + _lib._class_NSScriptClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -50571,24 +52957,24 @@ class NSItemProvider extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSItemProvider1, + _lib._objc_msgSend_15(_lib._class_NSScriptClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSItemProvider1, + return _lib._objc_msgSend_12(_lib._class_NSScriptClassDescription1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSItemProvider1, _lib._sel_useStoredAccessor1); + _lib._class_NSScriptClassDescription1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSItemProvider1, + _lib._class_NSScriptClassDescription1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -50597,7 +52983,7 @@ class NSItemProvider extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSItemProvider1, + _lib._class_NSScriptClassDescription1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -50605,467 +52991,761 @@ class NSItemProvider extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSItemProvider1, + _lib._class_NSScriptClassDescription1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSItemProvider1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptClassDescription1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSItemProvider1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptClassDescription1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSItemProviderRepresentationVisibility { - static const int NSItemProviderRepresentationVisibilityAll = 0; - static const int NSItemProviderRepresentationVisibilityTeam = 1; - static const int NSItemProviderRepresentationVisibilityGroup = 2; - static const int NSItemProviderRepresentationVisibilityOwnProcess = 3; -} - -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>()(arg0); -} - -final _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry = - {}; -int _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoidNSDataNSError_registerClosure(Function fn) { - final id = ++_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistryIndex; - _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return (_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry[ - block.ref.target.address] - as ffi.Pointer Function(ffi.Pointer<_ObjCBlock>))(arg0); -} - -class ObjCBlock_NSProgress_ffiVoidNSDataNSError extends _ObjCBlockBase { - ObjCBlock_NSProgress_ffiVoidNSDataNSError._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_NSProgress_ffiVoidNSDataNSError.fromFunctionPointer( - SentryCocoa lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_NSProgress_ffiVoidNSDataNSError.fromFunction(SentryCocoa lib, - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline) - .cast(), - _ObjCBlock_NSProgress_ffiVoidNSDataNSError_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>>() - .asFunction< - ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); - } -} - -class NSProgress extends NSObject { - NSProgress._(ffi.Pointer id, SentryCocoa lib, +class NSScriptCommandDescription extends NSObject { + NSScriptCommandDescription._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSProgress] that points to the same underlying object as [other]. - static NSProgress castFrom(T other) { - return NSProgress._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSScriptCommandDescription] that points to the same underlying object as [other]. + static NSScriptCommandDescription castFrom(T other) { + return NSScriptCommandDescription._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSProgress] that wraps the given raw object pointer. - static NSProgress castFromPointer( + /// Returns a [NSScriptCommandDescription] that wraps the given raw object pointer. + static NSScriptCommandDescription castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSProgress._(other, lib, retain: retain, release: release); + return NSScriptCommandDescription._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSProgress]. + /// Returns whether [obj] is an instance of [NSScriptCommandDescription]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProgress1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSScriptCommandDescription1); } - static NSProgress currentProgress(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_612( - _lib._class_NSProgress1, _lib._sel_currentProgress1); - return NSProgress._(_ret, _lib, retain: true, release: true); + @override + NSObject init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSProgress progressWithTotalUnitCount_( - SentryCocoa _lib, int unitCount) { - final _ret = _lib._objc_msgSend_613(_lib._class_NSProgress1, - _lib._sel_progressWithTotalUnitCount_1, unitCount); - return NSProgress._(_ret, _lib, retain: true, release: true); + NSScriptCommandDescription initWithSuiteName_commandName_dictionary_( + NSString? suiteName, + NSString? commandName, + NSDictionary? commandDeclaration) { + final _ret = _lib._objc_msgSend_598( + _id, + _lib._sel_initWithSuiteName_commandName_dictionary_1, + suiteName?._id ?? ffi.nullptr, + commandName?._id ?? ffi.nullptr, + commandDeclaration?._id ?? ffi.nullptr); + return NSScriptCommandDescription._(_ret, _lib, + retain: true, release: true); } - static NSProgress discreteProgressWithTotalUnitCount_( - SentryCocoa _lib, int unitCount) { - final _ret = _lib._objc_msgSend_613(_lib._class_NSProgress1, - _lib._sel_discreteProgressWithTotalUnitCount_1, unitCount); - return NSProgress._(_ret, _lib, retain: true, release: true); + NSScriptCommandDescription initWithCoder_(NSCoder? inCoder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); + return NSScriptCommandDescription._(_ret, _lib, + retain: true, release: true); } - static NSProgress progressWithTotalUnitCount_parent_pendingUnitCount_( - SentryCocoa _lib, - int unitCount, - NSProgress? parent, - int portionOfParentTotalUnitCount) { - final _ret = _lib._objc_msgSend_614( - _lib._class_NSProgress1, - _lib._sel_progressWithTotalUnitCount_parent_pendingUnitCount_1, - unitCount, - parent?._id ?? ffi.nullptr, - portionOfParentTotalUnitCount); - return NSProgress._(_ret, _lib, retain: true, release: true); + NSString? get suiteName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suiteName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSProgress initWithParent_userInfo_( - NSProgress? parentProgressOrNil, NSObject? userInfoOrNil) { - final _ret = _lib._objc_msgSend_615( - _id, - _lib._sel_initWithParent_userInfo_1, - parentProgressOrNil?._id ?? ffi.nullptr, - userInfoOrNil?._id ?? ffi.nullptr); - return NSProgress._(_ret, _lib, retain: true, release: true); + NSString? get commandName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_commandName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void becomeCurrentWithPendingUnitCount_(int unitCount) { - _lib._objc_msgSend_616( - _id, _lib._sel_becomeCurrentWithPendingUnitCount_1, unitCount); + int get appleEventClassCode { + return _lib._objc_msgSend_197(_id, _lib._sel_appleEventClassCode1); } - void performAsCurrentWithPendingUnitCount_usingBlock_( - int unitCount, ObjCBlock_ffiVoid work) { - _lib._objc_msgSend_617( - _id, - _lib._sel_performAsCurrentWithPendingUnitCount_usingBlock_1, - unitCount, - work._id); + int get appleEventCode { + return _lib._objc_msgSend_197(_id, _lib._sel_appleEventCode1); } - void resignCurrent() { - _lib._objc_msgSend_1(_id, _lib._sel_resignCurrent1); + NSString? get commandClassName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_commandClassName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void addChild_withPendingUnitCount_(NSProgress? child, int inUnitCount) { - _lib._objc_msgSend_618(_id, _lib._sel_addChild_withPendingUnitCount_1, - child?._id ?? ffi.nullptr, inUnitCount); + NSString? get returnType { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_returnType1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - int get totalUnitCount { - return _lib._objc_msgSend_619(_id, _lib._sel_totalUnitCount1); + int get appleEventCodeForReturnType { + return _lib._objc_msgSend_197(_id, _lib._sel_appleEventCodeForReturnType1); } - set totalUnitCount(int value) { - return _lib._objc_msgSend_620(_id, _lib._sel_setTotalUnitCount_1, value); + NSArray? get argumentNames { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_argumentNames1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - int get completedUnitCount { - return _lib._objc_msgSend_619(_id, _lib._sel_completedUnitCount1); + NSString typeForArgumentWithName_(NSString? argumentName) { + final _ret = _lib._objc_msgSend_64(_id, _lib._sel_typeForArgumentWithName_1, + argumentName?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - set completedUnitCount(int value) { - return _lib._objc_msgSend_620( - _id, _lib._sel_setCompletedUnitCount_1, value); + int appleEventCodeForArgumentWithName_(NSString? argumentName) { + return _lib._objc_msgSend_600( + _id, + _lib._sel_appleEventCodeForArgumentWithName_1, + argumentName?._id ?? ffi.nullptr); } - NSString? get localizedDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool isOptionalArgumentWithName_(NSString? argumentName) { + return _lib._objc_msgSend_59(_id, _lib._sel_isOptionalArgumentWithName_1, + argumentName?._id ?? ffi.nullptr); } - set localizedDescription(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setLocalizedDescription_1, value?._id ?? ffi.nullptr); + NSScriptCommand createCommandInstance() { + final _ret = _lib._objc_msgSend_607(_id, _lib._sel_createCommandInstance1); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); } - NSString? get localizedAdditionalDescription { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_localizedAdditionalDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSScriptCommand createCommandInstanceWithZone_(ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_608( + _id, _lib._sel_createCommandInstanceWithZone_1, zone); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); } - set localizedAdditionalDescription(NSString? value) { - return _lib._objc_msgSend_512( - _id, - _lib._sel_setLocalizedAdditionalDescription_1, - value?._id ?? ffi.nullptr); + static NSScriptCommandDescription new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScriptCommandDescription1, _lib._sel_new1); + return NSScriptCommandDescription._(_ret, _lib, + retain: false, release: true); } - bool get cancellable { - return _lib._objc_msgSend_12(_id, _lib._sel_isCancellable1); + static NSScriptCommandDescription allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSScriptCommandDescription1, + _lib._sel_allocWithZone_1, zone); + return NSScriptCommandDescription._(_ret, _lib, + retain: false, release: true); } - set cancellable(bool value) { - return _lib._objc_msgSend_495(_id, _lib._sel_setCancellable_1, value); + static NSScriptCommandDescription alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScriptCommandDescription1, _lib._sel_alloc1); + return NSScriptCommandDescription._(_ret, _lib, + retain: false, release: true); } - bool get pausable { - return _lib._objc_msgSend_12(_id, _lib._sel_isPausable1); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSScriptCommandDescription1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - set pausable(bool value) { - return _lib._objc_msgSend_495(_id, _lib._sel_setPausable_1, value); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSScriptCommandDescription1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - bool get cancelled { - return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSScriptCommandDescription1, + _lib._sel_accessInstanceVariablesDirectly1); } - bool get paused { - return _lib._objc_msgSend_12(_id, _lib._sel_isPaused1); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSScriptCommandDescription1, _lib._sel_useStoredAccessor1); } - ObjCBlock_ffiVoid get cancellationHandler { - final _ret = _lib._objc_msgSend_621(_id, _lib._sel_cancellationHandler1); - return ObjCBlock_ffiVoid._(_ret, _lib); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSScriptCommandDescription1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - set cancellationHandler(ObjCBlock_ffiVoid value) { - return _lib._objc_msgSend_622( - _id, _lib._sel_setCancellationHandler_1, value._id); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSScriptCommandDescription1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - ObjCBlock_ffiVoid get pausingHandler { - final _ret = _lib._objc_msgSend_621(_id, _lib._sel_pausingHandler1); - return ObjCBlock_ffiVoid._(_ret, _lib); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSScriptCommandDescription1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - set pausingHandler(ObjCBlock_ffiVoid value) { - return _lib._objc_msgSend_622( - _id, _lib._sel_setPausingHandler_1, value._id); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptCommandDescription1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - ObjCBlock_ffiVoid get resumingHandler { - final _ret = _lib._objc_msgSend_621(_id, _lib._sel_resumingHandler1); - return ObjCBlock_ffiVoid._(_ret, _lib); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSScriptCommandDescription1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - set resumingHandler(ObjCBlock_ffiVoid value) { - return _lib._objc_msgSend_622( - _id, _lib._sel_setResumingHandler_1, value._id); +class NSScriptCommand extends NSObject { + NSScriptCommand._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSScriptCommand] that points to the same underlying object as [other]. + static NSScriptCommand castFrom(T other) { + return NSScriptCommand._(other._id, other._lib, + retain: true, release: true); } - void setUserInfoObject_forKey_(NSObject objectOrNil, NSString key) { - _lib._objc_msgSend_126( - _id, _lib._sel_setUserInfoObject_forKey_1, objectOrNil._id, key._id); + /// Returns a [NSScriptCommand] that wraps the given raw object pointer. + static NSScriptCommand castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSScriptCommand._(other, lib, retain: retain, release: release); } - bool get indeterminate { - return _lib._objc_msgSend_12(_id, _lib._sel_isIndeterminate1); + /// Returns whether [obj] is an instance of [NSScriptCommand]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSScriptCommand1); } - double get fractionCompleted { - return _lib._objc_msgSend_155(_id, _lib._sel_fractionCompleted1); + NSScriptCommand initWithCommandDescription_( + NSScriptCommandDescription? commandDef) { + final _ret = _lib._objc_msgSend_601(_id, + _lib._sel_initWithCommandDescription_1, commandDef?._id ?? ffi.nullptr); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); } - bool get finished { - return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); + NSScriptCommand initWithCoder_(NSCoder? inCoder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); } - void cancel() { - _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + NSScriptCommandDescription? get commandDescription { + final _ret = _lib._objc_msgSend_602(_id, _lib._sel_commandDescription1); + return _ret.address == 0 + ? null + : NSScriptCommandDescription._(_ret, _lib, retain: true, release: true); } - void pause() { - _lib._objc_msgSend_1(_id, _lib._sel_pause1); + NSObject get directParameter { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_directParameter1); + return NSObject._(_ret, _lib, retain: true, release: true); } - void resume() { - _lib._objc_msgSend_1(_id, _lib._sel_resume1); + set directParameter(NSObject value) { + return _lib._objc_msgSend_389( + _id, _lib._sel_setDirectParameter_1, value._id); } - NSObject? get userInfo { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); + NSScriptObjectSpecifier? get receiversSpecifier { + final _ret = _lib._objc_msgSend_603(_id, _lib._sel_receiversSpecifier1); return _ret.address == 0 ? null - : NSObject._(_ret, _lib, retain: true, release: true); + : NSScriptObjectSpecifier._(_ret, _lib, retain: true, release: true); } - NSString get kind { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_kind1); - return NSString._(_ret, _lib, retain: true, release: true); + set receiversSpecifier(NSScriptObjectSpecifier? value) { + return _lib._objc_msgSend_604( + _id, _lib._sel_setReceiversSpecifier_1, value?._id ?? ffi.nullptr); } - set kind(NSString value) { - return _lib._objc_msgSend_512(_id, _lib._sel_setKind_1, value._id); + NSObject get evaluatedReceivers { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_evaluatedReceivers1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSNumber? get estimatedTimeRemaining { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_estimatedTimeRemaining1); + NSDictionary? get arguments { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_arguments1); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - set estimatedTimeRemaining(NSNumber? value) { - return _lib._objc_msgSend_623( - _id, _lib._sel_setEstimatedTimeRemaining_1, value?._id ?? ffi.nullptr); + set arguments(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); } - NSNumber? get throughput { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_throughput1); + NSDictionary? get evaluatedArguments { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_evaluatedArguments1); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - set throughput(NSNumber? value) { - return _lib._objc_msgSend_623( - _id, _lib._sel_setThroughput_1, value?._id ?? ffi.nullptr); + bool get wellFormed { + return _lib._objc_msgSend_12(_id, _lib._sel_isWellFormed1); } - NSString get fileOperationKind { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileOperationKind1); - return NSString._(_ret, _lib, retain: true, release: true); + NSObject performDefaultImplementation() { + final _ret = + _lib._objc_msgSend_2(_id, _lib._sel_performDefaultImplementation1); + return NSObject._(_ret, _lib, retain: true, release: true); } - set fileOperationKind(NSString value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setFileOperationKind_1, value._id); + NSObject executeCommand() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_executeCommand1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURL? get fileURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileURL1); + int get scriptErrorNumber { + return _lib._objc_msgSend_78(_id, _lib._sel_scriptErrorNumber1); + } + + set scriptErrorNumber(int value) { + return _lib._objc_msgSend_605(_id, _lib._sel_setScriptErrorNumber_1, value); + } + + NSAppleEventDescriptor? get scriptErrorOffendingObjectDescriptor { + final _ret = _lib._objc_msgSend_573( + _id, _lib._sel_scriptErrorOffendingObjectDescriptor1); return _ret.address == 0 ? null - : NSURL._(_ret, _lib, retain: true, release: true); + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - set fileURL(NSURL? value) { - return _lib._objc_msgSend_624( - _id, _lib._sel_setFileURL_1, value?._id ?? ffi.nullptr); + set scriptErrorOffendingObjectDescriptor(NSAppleEventDescriptor? value) { + return _lib._objc_msgSend_606( + _id, + _lib._sel_setScriptErrorOffendingObjectDescriptor_1, + value?._id ?? ffi.nullptr); } - NSNumber? get fileTotalCount { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_fileTotalCount1); + NSAppleEventDescriptor? get scriptErrorExpectedTypeDescriptor { + final _ret = _lib._objc_msgSend_573( + _id, _lib._sel_scriptErrorExpectedTypeDescriptor1); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - set fileTotalCount(NSNumber? value) { - return _lib._objc_msgSend_623( - _id, _lib._sel_setFileTotalCount_1, value?._id ?? ffi.nullptr); + set scriptErrorExpectedTypeDescriptor(NSAppleEventDescriptor? value) { + return _lib._objc_msgSend_606( + _id, + _lib._sel_setScriptErrorExpectedTypeDescriptor_1, + value?._id ?? ffi.nullptr); } - NSNumber? get fileCompletedCount { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_fileCompletedCount1); + NSString? get scriptErrorString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_scriptErrorString1); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - set fileCompletedCount(NSNumber? value) { - return _lib._objc_msgSend_623( - _id, _lib._sel_setFileCompletedCount_1, value?._id ?? ffi.nullptr); + set scriptErrorString(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setScriptErrorString_1, value?._id ?? ffi.nullptr); } - void publish() { - _lib._objc_msgSend_1(_id, _lib._sel_publish1); + static NSScriptCommand currentCommand(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_607( + _lib._class_NSScriptCommand1, _lib._sel_currentCommand1); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); } - void unpublish() { - _lib._objc_msgSend_1(_id, _lib._sel_unpublish1); + NSAppleEventDescriptor? get appleEvent { + final _ret = _lib._objc_msgSend_573(_id, _lib._sel_appleEvent1); + return _ret.address == 0 + ? null + : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - static NSObject addSubscriberForFileURL_withPublishingHandler_( + void suspendExecution() { + _lib._objc_msgSend_1(_id, _lib._sel_suspendExecution1); + } + + void resumeExecutionWithResult_(NSObject result) { + _lib._objc_msgSend_15( + _id, _lib._sel_resumeExecutionWithResult_1, result._id); + } + + @override + NSScriptCommand init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSScriptCommand._(_ret, _lib, retain: true, release: true); + } + + static NSScriptCommand new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSScriptCommand1, _lib._sel_new1); + return NSScriptCommand._(_ret, _lib, retain: false, release: true); + } + + static NSScriptCommand allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSScriptCommand1, _lib._sel_allocWithZone_1, zone); + return NSScriptCommand._(_ret, _lib, retain: false, release: true); + } + + static NSScriptCommand alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSScriptCommand1, _lib._sel_alloc1); + return NSScriptCommand._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( SentryCocoa _lib, - NSURL? url, - ObjCBlock_ffiVoid_NSProgress publishingHandler) { - final _ret = _lib._objc_msgSend_625( - _lib._class_NSProgress1, - _lib._sel_addSubscriberForFileURL_withPublishingHandler_1, - url?._id ?? ffi.nullptr, - publishingHandler._id); + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSScriptCommand1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSScriptCommand1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSScriptCommand1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSScriptCommand1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSScriptCommand1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSScriptCommand1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSScriptCommand1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSScriptCommand1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScriptCommand1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } +} - static void removeSubscriber_(SentryCocoa _lib, NSObject subscriber) { - _lib._objc_msgSend_15( - _lib._class_NSProgress1, _lib._sel_removeSubscriber_1, subscriber._id); +class NSItemProvider extends NSObject { + NSItemProvider._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSItemProvider] that points to the same underlying object as [other]. + static NSItemProvider castFrom(T other) { + return NSItemProvider._(other._id, other._lib, retain: true, release: true); } - bool get old { - return _lib._objc_msgSend_12(_id, _lib._sel_isOld1); + /// Returns a [NSItemProvider] that wraps the given raw object pointer. + static NSItemProvider castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSItemProvider._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSItemProvider]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSItemProvider1); } @override - NSProgress init() { + NSItemProvider init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSItemProvider._(_ret, _lib, retain: true, release: true); + } + + void registerDataRepresentationForTypeIdentifier_visibility_loadHandler_( + NSString? typeIdentifier, + int visibility, + ObjCBlock_NSProgress_ffiVoidNSDataNSError loadHandler) { + _lib._objc_msgSend_638( + _id, + _lib._sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + visibility, + loadHandler._id); + } + + void + registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_( + NSString? typeIdentifier, + int fileOptions, + int visibility, + ObjCBlock_NSProgress_ffiVoidNSURLboolNSError loadHandler) { + _lib._objc_msgSend_639( + _id, + _lib._sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + fileOptions, + visibility, + loadHandler._id); + } + + NSArray? get registeredTypeIdentifiers { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_registeredTypeIdentifiers1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray registeredTypeIdentifiersWithFileOptions_(int fileOptions) { + final _ret = _lib._objc_msgSend_640( + _id, _lib._sel_registeredTypeIdentifiersWithFileOptions_1, fileOptions); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + bool hasItemConformingToTypeIdentifier_(NSString? typeIdentifier) { + return _lib._objc_msgSend_59( + _id, + _lib._sel_hasItemConformingToTypeIdentifier_1, + typeIdentifier?._id ?? ffi.nullptr); + } + + bool hasRepresentationConformingToTypeIdentifier_fileOptions_( + NSString? typeIdentifier, int fileOptions) { + return _lib._objc_msgSend_641( + _id, + _lib._sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1, + typeIdentifier?._id ?? ffi.nullptr, + fileOptions); + } + + NSProgress loadDataRepresentationForTypeIdentifier_completionHandler_( + NSString? typeIdentifier, + ObjCBlock_ffiVoid_NSData_NSError completionHandler) { + final _ret = _lib._objc_msgSend_642( + _id, + _lib._sel_loadDataRepresentationForTypeIdentifier_completionHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + completionHandler._id); return NSProgress._(_ret, _lib, retain: true, release: true); } - static NSProgress new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_new1); - return NSProgress._(_ret, _lib, retain: false, release: true); + NSProgress loadFileRepresentationForTypeIdentifier_completionHandler_( + NSString? typeIdentifier, + ObjCBlock_ffiVoid_NSURL_NSError completionHandler) { + final _ret = _lib._objc_msgSend_643( + _id, + _lib._sel_loadFileRepresentationForTypeIdentifier_completionHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + completionHandler._id); + return NSProgress._(_ret, _lib, retain: true, release: true); } - static NSProgress allocWithZone_( + NSProgress loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_( + NSString? typeIdentifier, + ObjCBlock_ffiVoid_NSURL_bool_NSError completionHandler) { + final _ret = _lib._objc_msgSend_644( + _id, + _lib._sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + completionHandler._id); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + NSString? get suggestedName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suggestedName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set suggestedName(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setSuggestedName_1, value?._id ?? ffi.nullptr); + } + + NSItemProvider initWithObject_(NSObject? object) { + final _ret = _lib._objc_msgSend_16( + _id, _lib._sel_initWithObject_1, object?._id ?? ffi.nullptr); + return NSItemProvider._(_ret, _lib, retain: true, release: true); + } + + void registerObject_visibility_(NSObject? object, int visibility) { + _lib._objc_msgSend_645(_id, _lib._sel_registerObject_visibility_1, + object?._id ?? ffi.nullptr, visibility); + } + + void registerObjectOfClass_visibility_loadHandler_( + NSObject? aClass, + int visibility, + ObjCBlock_NSProgress_ffiVoidObjCObjectNSError loadHandler) { + _lib._objc_msgSend_646( + _id, + _lib._sel_registerObjectOfClass_visibility_loadHandler_1, + aClass?._id ?? ffi.nullptr, + visibility, + loadHandler._id); + } + + bool canLoadObjectOfClass_(NSObject? aClass) { + return _lib._objc_msgSend_0( + _id, _lib._sel_canLoadObjectOfClass_1, aClass?._id ?? ffi.nullptr); + } + + NSProgress loadObjectOfClass_completionHandler_(NSObject? aClass, + ObjCBlock_ffiVoid_ObjCObject_NSError completionHandler) { + final _ret = _lib._objc_msgSend_647( + _id, + _lib._sel_loadObjectOfClass_completionHandler_1, + aClass?._id ?? ffi.nullptr, + completionHandler._id); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + NSItemProvider initWithItem_typeIdentifier_( + NSObject? item, NSString? typeIdentifier) { + final _ret = _lib._objc_msgSend_289( + _id, + _lib._sel_initWithItem_typeIdentifier_1, + item?._id ?? ffi.nullptr, + typeIdentifier?._id ?? ffi.nullptr); + return NSItemProvider._(_ret, _lib, retain: true, release: true); + } + + NSItemProvider initWithContentsOfURL_(NSURL? fileURL) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithContentsOfURL_1, fileURL?._id ?? ffi.nullptr); + return NSItemProvider._(_ret, _lib, retain: true, release: true); + } + + void registerItemForTypeIdentifier_loadHandler_( + NSString? typeIdentifier, + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary + loadHandler) { + _lib._objc_msgSend_648( + _id, + _lib._sel_registerItemForTypeIdentifier_loadHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + loadHandler._id); + } + + void loadItemForTypeIdentifier_options_completionHandler_( + NSString? typeIdentifier, + NSDictionary? options, + ObjCBlock_ffiVoid_ObjCObject_NSError completionHandler) { + _lib._objc_msgSend_649( + _id, + _lib._sel_loadItemForTypeIdentifier_options_completionHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + completionHandler._id); + } + + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary + get previewImageHandler { + final _ret = _lib._objc_msgSend_650(_id, _lib._sel_previewImageHandler1); + return ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary._( + _ret, _lib); + } + + set previewImageHandler( + ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary + value) { + return _lib._objc_msgSend_651( + _id, _lib._sel_setPreviewImageHandler_1, value._id); + } + + void loadPreviewImageWithOptions_completionHandler_(NSDictionary? options, + ObjCBlock_ffiVoid_ObjCObject_NSError completionHandler) { + _lib._objc_msgSend_652( + _id, + _lib._sel_loadPreviewImageWithOptions_completionHandler_1, + options?._id ?? ffi.nullptr, + completionHandler._id); + } + + static NSItemProvider new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_new1); + return NSItemProvider._(_ret, _lib, retain: false, release: true); + } + + static NSItemProvider allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSProgress1, _lib._sel_allocWithZone_1, zone); - return NSProgress._(_ret, _lib, retain: false, release: true); + _lib._class_NSItemProvider1, _lib._sel_allocWithZone_1, zone); + return NSItemProvider._(_ret, _lib, retain: false, release: true); } - static NSProgress alloc(SentryCocoa _lib) { + static NSItemProvider alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_alloc1); - return NSProgress._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_alloc1); + return NSItemProvider._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -51074,7 +53754,7 @@ class NSProgress extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSProgress1, + _lib._class_NSItemProvider1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -51083,24 +53763,24 @@ class NSProgress extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSProgress1, + _lib._objc_msgSend_15(_lib._class_NSItemProvider1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSProgress1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSItemProvider1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSProgress1, _lib._sel_useStoredAccessor1); + _lib._class_NSItemProvider1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSProgress1, + _lib._class_NSItemProvider1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -51109,7 +53789,7 @@ class NSProgress extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSProgress1, + _lib._class_NSItemProvider1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -51117,7 +53797,7 @@ class NSProgress extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSProgress1, + _lib._class_NSItemProvider1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -51125,107 +53805,619 @@ class NSProgress extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSProgress1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSItemProvider1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSProgress1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSItemProvider1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -ffi.Pointer<_ObjCBlock> _ObjCBlock_ffiVoid_NSProgress_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { +abstract class NSItemProviderRepresentationVisibility { + static const int NSItemProviderRepresentationVisibilityAll = 0; + static const int NSItemProviderRepresentationVisibilityTeam = 1; + static const int NSItemProviderRepresentationVisibilityGroup = 2; + static const int NSItemProviderRepresentationVisibilityOwnProcess = 3; +} + +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { return block.ref.target .cast< ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function(ffi.Pointer arg0)>>() + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0)>>() .asFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer arg0)>()(arg0); + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>()(arg0); } -final _ObjCBlock_ffiVoid_NSProgress_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSProgress_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSProgress_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSProgress_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSProgress_closureRegistry[id] = fn; +final _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry = + {}; +int _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_registerClosure(Function fn) { + final id = ++_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistryIndex; + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -ffi.Pointer<_ObjCBlock> _ObjCBlock_ffiVoid_NSProgress_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSProgress_closureRegistry[ +ffi.Pointer + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { + return (_ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureRegistry[ block.ref.target.address] - as ffi.Pointer<_ObjCBlock> Function(ffi.Pointer))(arg0); + as ffi.Pointer Function(ffi.Pointer<_ObjCBlock>))(arg0); } -class ObjCBlock_ffiVoid_NSProgress extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSProgress._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock_NSProgress_ffiVoidNSDataNSError extends _ObjCBlockBase { + ObjCBlock_NSProgress_ffiVoidNSDataNSError._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSProgress.fromFunctionPointer( + ObjCBlock_NSProgress_ffiVoidNSDataNSError.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer arg0)>> + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> arg0)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer Function( ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSProgress_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock> arg0)>( + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSProgress.fromFunction(SentryCocoa lib, - ffi.Pointer<_ObjCBlock> Function(ffi.Pointer arg0) fn) + ObjCBlock_NSProgress_ffiVoidNSDataNSError.fromFunction(SentryCocoa lib, + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer Function( ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSProgress_closureTrampoline) + ffi.Pointer<_ObjCBlock> arg0)>( + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSProgress_registerClosure(fn)), + _ObjCBlock_NSProgress_ffiVoidNSDataNSError_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - ffi.Pointer<_ObjCBlock> call(ffi.Pointer arg0) { + ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { return _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>>() .asFunction< - ffi.Pointer<_ObjCBlock> Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0)>()(_id, arg0); } } -void _ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} +class NSProgress extends NSObject { + NSProgress._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSProgress] that points to the same underlying object as [other]. + static NSProgress castFrom(T other) { + return NSProgress._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSProgress] that wraps the given raw object pointer. + static NSProgress castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSProgress._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSProgress]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProgress1); + } + + static NSProgress currentProgress(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_624( + _lib._class_NSProgress1, _lib._sel_currentProgress1); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + static NSProgress progressWithTotalUnitCount_( + SentryCocoa _lib, int unitCount) { + final _ret = _lib._objc_msgSend_625(_lib._class_NSProgress1, + _lib._sel_progressWithTotalUnitCount_1, unitCount); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + static NSProgress discreteProgressWithTotalUnitCount_( + SentryCocoa _lib, int unitCount) { + final _ret = _lib._objc_msgSend_625(_lib._class_NSProgress1, + _lib._sel_discreteProgressWithTotalUnitCount_1, unitCount); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + static NSProgress progressWithTotalUnitCount_parent_pendingUnitCount_( + SentryCocoa _lib, + int unitCount, + NSProgress? parent, + int portionOfParentTotalUnitCount) { + final _ret = _lib._objc_msgSend_626( + _lib._class_NSProgress1, + _lib._sel_progressWithTotalUnitCount_parent_pendingUnitCount_1, + unitCount, + parent?._id ?? ffi.nullptr, + portionOfParentTotalUnitCount); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + NSProgress initWithParent_userInfo_( + NSProgress? parentProgressOrNil, NSObject? userInfoOrNil) { + final _ret = _lib._objc_msgSend_627( + _id, + _lib._sel_initWithParent_userInfo_1, + parentProgressOrNil?._id ?? ffi.nullptr, + userInfoOrNil?._id ?? ffi.nullptr); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + void becomeCurrentWithPendingUnitCount_(int unitCount) { + _lib._objc_msgSend_628( + _id, _lib._sel_becomeCurrentWithPendingUnitCount_1, unitCount); + } + + void performAsCurrentWithPendingUnitCount_usingBlock_( + int unitCount, ObjCBlock_ffiVoid work) { + _lib._objc_msgSend_629( + _id, + _lib._sel_performAsCurrentWithPendingUnitCount_usingBlock_1, + unitCount, + work._id); + } + + void resignCurrent() { + _lib._objc_msgSend_1(_id, _lib._sel_resignCurrent1); + } + + void addChild_withPendingUnitCount_(NSProgress? child, int inUnitCount) { + _lib._objc_msgSend_630(_id, _lib._sel_addChild_withPendingUnitCount_1, + child?._id ?? ffi.nullptr, inUnitCount); + } + + int get totalUnitCount { + return _lib._objc_msgSend_631(_id, _lib._sel_totalUnitCount1); + } + + set totalUnitCount(int value) { + return _lib._objc_msgSend_632(_id, _lib._sel_setTotalUnitCount_1, value); + } + + int get completedUnitCount { + return _lib._objc_msgSend_631(_id, _lib._sel_completedUnitCount1); + } + + set completedUnitCount(int value) { + return _lib._objc_msgSend_632( + _id, _lib._sel_setCompletedUnitCount_1, value); + } + + NSString? get localizedDescription { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedDescription1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set localizedDescription(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setLocalizedDescription_1, value?._id ?? ffi.nullptr); + } + + NSString? get localizedAdditionalDescription { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_localizedAdditionalDescription1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set localizedAdditionalDescription(NSString? value) { + return _lib._objc_msgSend_444( + _id, + _lib._sel_setLocalizedAdditionalDescription_1, + value?._id ?? ffi.nullptr); + } + + bool get cancellable { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancellable1); + } + + set cancellable(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setCancellable_1, value); + } + + bool get pausable { + return _lib._objc_msgSend_12(_id, _lib._sel_isPausable1); + } + + set pausable(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setPausable_1, value); + } + + bool get cancelled { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); + } + + bool get paused { + return _lib._objc_msgSend_12(_id, _lib._sel_isPaused1); + } + + ObjCBlock_ffiVoid get cancellationHandler { + final _ret = _lib._objc_msgSend_633(_id, _lib._sel_cancellationHandler1); + return ObjCBlock_ffiVoid._(_ret, _lib); + } + + set cancellationHandler(ObjCBlock_ffiVoid value) { + return _lib._objc_msgSend_634( + _id, _lib._sel_setCancellationHandler_1, value._id); + } + + ObjCBlock_ffiVoid get pausingHandler { + final _ret = _lib._objc_msgSend_633(_id, _lib._sel_pausingHandler1); + return ObjCBlock_ffiVoid._(_ret, _lib); + } + + set pausingHandler(ObjCBlock_ffiVoid value) { + return _lib._objc_msgSend_634( + _id, _lib._sel_setPausingHandler_1, value._id); + } + + ObjCBlock_ffiVoid get resumingHandler { + final _ret = _lib._objc_msgSend_633(_id, _lib._sel_resumingHandler1); + return ObjCBlock_ffiVoid._(_ret, _lib); + } + + set resumingHandler(ObjCBlock_ffiVoid value) { + return _lib._objc_msgSend_634( + _id, _lib._sel_setResumingHandler_1, value._id); + } + + void setUserInfoObject_forKey_(NSObject objectOrNil, NSString key) { + _lib._objc_msgSend_126( + _id, _lib._sel_setUserInfoObject_forKey_1, objectOrNil._id, key._id); + } + + bool get indeterminate { + return _lib._objc_msgSend_12(_id, _lib._sel_isIndeterminate1); + } + + double get fractionCompleted { + return _lib._objc_msgSend_155(_id, _lib._sel_fractionCompleted1); + } + + bool get finished { + return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); + } + + void cancel() { + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + } + + void pause() { + _lib._objc_msgSend_1(_id, _lib._sel_pause1); + } + + void resume() { + _lib._objc_msgSend_1(_id, _lib._sel_resume1); + } + + NSObject? get userInfo { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + NSString get kind { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_kind1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + set kind(NSString value) { + return _lib._objc_msgSend_444(_id, _lib._sel_setKind_1, value._id); + } + + NSNumber? get estimatedTimeRemaining { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_estimatedTimeRemaining1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set estimatedTimeRemaining(NSNumber? value) { + return _lib._objc_msgSend_635( + _id, _lib._sel_setEstimatedTimeRemaining_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get throughput { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_throughput1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set throughput(NSNumber? value) { + return _lib._objc_msgSend_635( + _id, _lib._sel_setThroughput_1, value?._id ?? ffi.nullptr); + } + + NSString get fileOperationKind { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileOperationKind1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + set fileOperationKind(NSString value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setFileOperationKind_1, value._id); + } + + NSURL? get fileURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_fileURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + set fileURL(NSURL? value) { + return _lib._objc_msgSend_636( + _id, _lib._sel_setFileURL_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get fileTotalCount { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_fileTotalCount1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set fileTotalCount(NSNumber? value) { + return _lib._objc_msgSend_635( + _id, _lib._sel_setFileTotalCount_1, value?._id ?? ffi.nullptr); + } + + NSNumber? get fileCompletedCount { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_fileCompletedCount1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); + } + + set fileCompletedCount(NSNumber? value) { + return _lib._objc_msgSend_635( + _id, _lib._sel_setFileCompletedCount_1, value?._id ?? ffi.nullptr); + } + + void publish() { + _lib._objc_msgSend_1(_id, _lib._sel_publish1); + } + + void unpublish() { + _lib._objc_msgSend_1(_id, _lib._sel_unpublish1); + } + + static NSObject addSubscriberForFileURL_withPublishingHandler_( + SentryCocoa _lib, + NSURL? url, + ObjCBlock_ffiVoid_NSProgress publishingHandler) { + final _ret = _lib._objc_msgSend_637( + _lib._class_NSProgress1, + _lib._sel_addSubscriberForFileURL_withPublishingHandler_1, + url?._id ?? ffi.nullptr, + publishingHandler._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static void removeSubscriber_(SentryCocoa _lib, NSObject subscriber) { + _lib._objc_msgSend_15( + _lib._class_NSProgress1, _lib._sel_removeSubscriber_1, subscriber._id); + } + + bool get old { + return _lib._objc_msgSend_12(_id, _lib._sel_isOld1); + } + + @override + NSProgress init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + static NSProgress new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_new1); + return NSProgress._(_ret, _lib, retain: false, release: true); + } + + static NSProgress allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSProgress1, _lib._sel_allocWithZone_1, zone); + return NSProgress._(_ret, _lib, retain: false, release: true); + } + + static NSProgress alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSProgress1, _lib._sel_alloc1); + return NSProgress._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSProgress1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSProgress1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSProgress1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSProgress1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSProgress1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSProgress1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSProgress1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSProgress1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSProgress1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +ffi.Pointer<_ObjCBlock> _ObjCBlock_ffiVoid_NSProgress_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer arg0)>()(arg0); +} + +final _ObjCBlock_ffiVoid_NSProgress_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSProgress_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSProgress_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSProgress_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSProgress_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +ffi.Pointer<_ObjCBlock> _ObjCBlock_ffiVoid_NSProgress_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSProgress_closureRegistry[ + block.ref.target.address] + as ffi.Pointer<_ObjCBlock> Function(ffi.Pointer))(arg0); +} + +class ObjCBlock_ffiVoid_NSProgress extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSProgress._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSProgress.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSProgress_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSProgress.fromFunction(SentryCocoa lib, + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSProgress_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSProgress_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + ffi.Pointer<_ObjCBlock> call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); + } +} + +void _ObjCBlock_ffiVoid_NSData_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} final _ObjCBlock_ffiVoid_NSData_NSError_closureRegistry = {}; int _ObjCBlock_ffiVoid_NSData_NSError_closureRegistryIndex = 0; @@ -51872,578 +55064,5331 @@ class ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary ffi.Pointer arg1, ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); } -} - -class NSMutableString extends NSString { - NSMutableString._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +} + +class NSMutableString extends NSString { + NSMutableString._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMutableString] that points to the same underlying object as [other]. + static NSMutableString castFrom(T other) { + return NSMutableString._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSMutableString] that wraps the given raw object pointer. + static NSMutableString castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableString._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSMutableString]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableString1); + } + + void replaceCharactersInRange_withString_(_NSRange range, NSString? aString) { + _lib._objc_msgSend_653(_id, _lib._sel_replaceCharactersInRange_withString_1, + range, aString?._id ?? ffi.nullptr); + } + + void insertString_atIndex_(NSString? aString, int loc) { + _lib._objc_msgSend_654(_id, _lib._sel_insertString_atIndex_1, + aString?._id ?? ffi.nullptr, loc); + } + + void deleteCharactersInRange_(_NSRange range) { + _lib._objc_msgSend_461(_id, _lib._sel_deleteCharactersInRange_1, range); + } + + void appendString_(NSString? aString) { + _lib._objc_msgSend_192( + _id, _lib._sel_appendString_1, aString?._id ?? ffi.nullptr); + } + + void appendFormat_(NSString? format) { + _lib._objc_msgSend_192( + _id, _lib._sel_appendFormat_1, format?._id ?? ffi.nullptr); + } + + void setString_(NSString? aString) { + _lib._objc_msgSend_192( + _id, _lib._sel_setString_1, aString?._id ?? ffi.nullptr); + } + + int replaceOccurrencesOfString_withString_options_range_(NSString? target, + NSString? replacement, int options, _NSRange searchRange) { + return _lib._objc_msgSend_655( + _id, + _lib._sel_replaceOccurrencesOfString_withString_options_range_1, + target?._id ?? ffi.nullptr, + replacement?._id ?? ffi.nullptr, + options, + searchRange); + } + + bool applyTransform_reverse_range_updatedRange_(NSString transform, + bool reverse, _NSRange range, ffi.Pointer<_NSRange> resultingRange) { + return _lib._objc_msgSend_656( + _id, + _lib._sel_applyTransform_reverse_range_updatedRange_1, + transform._id, + reverse, + range, + resultingRange); + } + + NSMutableString initWithCapacity_(int capacity) { + final _ret = + _lib._objc_msgSend_657(_id, _lib._sel_initWithCapacity_1, capacity); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithCapacity_(SentryCocoa _lib, int capacity) { + final _ret = _lib._objc_msgSend_657( + _lib._class_NSMutableString1, _lib._sel_stringWithCapacity_1, capacity); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static ffi.Pointer getAvailableStringEncodings( + SentryCocoa _lib) { + return _lib._objc_msgSend_335( + _lib._class_NSMutableString1, _lib._sel_availableStringEncodings1); + } + + static NSString localizedNameOfStringEncoding_( + SentryCocoa _lib, int encoding) { + final _ret = _lib._objc_msgSend_310(_lib._class_NSMutableString1, + _lib._sel_localizedNameOfStringEncoding_1, encoding); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static int getDefaultCStringEncoding(SentryCocoa _lib) { + return _lib._objc_msgSend_10( + _lib._class_NSMutableString1, _lib._sel_defaultCStringEncoding1); + } + + @override + NSMutableString initWithCharactersNoCopy_length_freeWhenDone_( + ffi.Pointer characters, int length, bool freeBuffer) { + final _ret = _lib._objc_msgSend_346( + _id, + _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, + characters, + length, + freeBuffer); + return NSMutableString._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableString initWithCharactersNoCopy_length_deallocator_( + ffi.Pointer chars, + int len, + ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong deallocator) { + final _ret = _lib._objc_msgSend_347( + _id, + _lib._sel_initWithCharactersNoCopy_length_deallocator_1, + chars, + len, + deallocator._id); + return NSMutableString._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableString initWithCharacters_length_( + ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_348( + _id, _lib._sel_initWithCharacters_length_1, characters, length); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithUTF8String_( + ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_349( + _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithString_(NSString? aString) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, aString?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithFormat_(NSString? format) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithFormat_1, format?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithFormat_arguments_( + NSString? format, ffi.Pointer argList) { + final _ret = _lib._objc_msgSend_350( + _id, + _lib._sel_initWithFormat_arguments_1, + format?._id ?? ffi.nullptr, + argList); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithFormat_locale_(NSString? format, NSObject locale) { + final _ret = _lib._objc_msgSend_163(_id, _lib._sel_initWithFormat_locale_1, + format?._id ?? ffi.nullptr, locale._id); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithFormat_locale_arguments_( + NSString? format, NSObject locale, ffi.Pointer argList) { + final _ret = _lib._objc_msgSend_351( + _id, + _lib._sel_initWithFormat_locale_arguments_1, + format?._id ?? ffi.nullptr, + locale._id, + argList); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithValidatedFormat_validFormatSpecifiers_error_( + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_352( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithValidatedFormat_validFormatSpecifiers_locale_error_( + NSString? format, + NSString? validFormatSpecifiers, + NSObject locale, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_353( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + locale._id, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString + initWithValidatedFormat_validFormatSpecifiers_arguments_error_( + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_354( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + argList, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString + initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_( + NSString? format, + NSString? validFormatSpecifiers, + NSObject locale, + ffi.Pointer argList, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_355( + _id, + _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + locale._id, + argList, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithData_encoding_(NSData? data, int encoding) { + final _ret = _lib._objc_msgSend_356(_id, _lib._sel_initWithData_encoding_1, + data?._id ?? ffi.nullptr, encoding); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithBytes_length_encoding_( + ffi.Pointer bytes, int len, int encoding) { + final _ret = _lib._objc_msgSend_357( + _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithBytesNoCopy_length_encoding_freeWhenDone_( + ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { + final _ret = _lib._objc_msgSend_358( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, + bytes, + len, + encoding, + freeBuffer); + return NSMutableString._(_ret, _lib, retain: false, release: true); + } + + @override + NSMutableString initWithBytesNoCopy_length_encoding_deallocator_( + ffi.Pointer bytes, + int len, + int encoding, + ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong deallocator) { + final _ret = _lib._objc_msgSend_359( + _id, + _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, + bytes, + len, + encoding, + deallocator._id); + return NSMutableString._(_ret, _lib, retain: false, release: true); + } + + static NSMutableString string(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_string1); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithString_(SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, + _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithCharacters_length_( + SentryCocoa _lib, ffi.Pointer characters, int length) { + final _ret = _lib._objc_msgSend_348(_lib._class_NSMutableString1, + _lib._sel_stringWithCharacters_length_1, characters, length); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithUTF8String_( + SentryCocoa _lib, ffi.Pointer nullTerminatedCString) { + final _ret = _lib._objc_msgSend_349(_lib._class_NSMutableString1, + _lib._sel_stringWithUTF8String_1, nullTerminatedCString); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithFormat_(SentryCocoa _lib, NSString? format) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, + _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString localizedStringWithFormat_( + SentryCocoa _lib, NSString? format) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, + _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithValidatedFormat_validFormatSpecifiers_error_( + SentryCocoa _lib, + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_352( + _lib._class_NSMutableString1, + _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString + localizedStringWithValidatedFormat_validFormatSpecifiers_error_( + SentryCocoa _lib, + NSString? format, + NSString? validFormatSpecifiers, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_352( + _lib._class_NSMutableString1, + _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, + format?._id ?? ffi.nullptr, + validFormatSpecifiers?._id ?? ffi.nullptr, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithCString_encoding_( + ffi.Pointer nullTerminatedCString, int encoding) { + final _ret = _lib._objc_msgSend_360(_id, + _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithCString_encoding_( + SentryCocoa _lib, ffi.Pointer cString, int enc) { + final _ret = _lib._objc_msgSend_360(_lib._class_NSMutableString1, + _lib._sel_stringWithCString_encoding_1, cString, enc); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithContentsOfURL_encoding_error_( + NSURL? url, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_361( + _id, + _lib._sel_initWithContentsOfURL_encoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithContentsOfFile_encoding_error_( + NSString? path, int enc, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_362( + _id, + _lib._sel_initWithContentsOfFile_encoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithContentsOfURL_encoding_error_( + SentryCocoa _lib, + NSURL? url, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_361( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_encoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithContentsOfFile_encoding_error_( + SentryCocoa _lib, + NSString? path, + int enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_362( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_encoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithContentsOfURL_usedEncoding_error_( + NSURL? url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_363( + _id, + _lib._sel_initWithContentsOfURL_usedEncoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableString initWithContentsOfFile_usedEncoding_error_( + NSString? path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_364( + _id, + _lib._sel_initWithContentsOfFile_usedEncoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithContentsOfURL_usedEncoding_error_( + SentryCocoa _lib, + NSURL? url, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_363( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, + url?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString stringWithContentsOfFile_usedEncoding_error_( + SentryCocoa _lib, + NSString? path, + ffi.Pointer enc, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_364( + _lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, + path?._id ?? ffi.nullptr, + enc, + error); + return NSMutableString._(_ret, _lib, retain: true, release: true); + } + + static int + stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( + SentryCocoa _lib, + NSData? data, + NSDictionary? opts, + ffi.Pointer> string, + ffi.Pointer usedLossyConversion) { + return _lib._objc_msgSend_365( + _lib._class_NSMutableString1, + _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, + data?._id ?? ffi.nullptr, + opts?._id ?? ffi.nullptr, + string, + usedLossyConversion); + } + + static NSObject stringWithContentsOfFile_(SentryCocoa _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithContentsOfURL_(SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSMutableString1, + _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithCString_length_( + SentryCocoa _lib, ffi.Pointer bytes, int length) { + final _ret = _lib._objc_msgSend_360(_lib._class_NSMutableString1, + _lib._sel_stringWithCString_length_1, bytes, length); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject stringWithCString_( + SentryCocoa _lib, ffi.Pointer bytes) { + final _ret = _lib._objc_msgSend_349( + _lib._class_NSMutableString1, _lib._sel_stringWithCString_1, bytes); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSString pathWithComponents_(SentryCocoa _lib, NSArray? components) { + final _ret = _lib._objc_msgSend_371(_lib._class_NSMutableString1, + _lib._sel_pathWithComponents_1, components?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableString new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_new1); + return NSMutableString._(_ret, _lib, retain: false, release: true); + } + + static NSMutableString allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableString1, _lib._sel_allocWithZone_1, zone); + return NSMutableString._(_ret, _lib, retain: false, release: true); + } + + static NSMutableString alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_alloc1); + return NSMutableString._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSMutableString1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSMutableString1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSMutableString1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableString1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMutableString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSMutableString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSMutableString1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableString1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableString1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSNotification extends NSObject { + NSNotification._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSNotification] that points to the same underlying object as [other]. + static NSNotification castFrom(T other) { + return NSNotification._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSNotification] that wraps the given raw object pointer. + static NSNotification castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSNotification._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSNotification]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSNotification1); + } + + NSString get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSObject get object { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_object1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get userInfo { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSNotification initWithName_object_userInfo_( + NSString name, NSObject object, NSDictionary? userInfo) { + final _ret = _lib._objc_msgSend_658( + _id, + _lib._sel_initWithName_object_userInfo_1, + name._id, + object._id, + userInfo?._id ?? ffi.nullptr); + return NSNotification._(_ret, _lib, retain: true, release: true); + } + + NSNotification initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSNotification._(_ret, _lib, retain: true, release: true); + } + + static NSNotification notificationWithName_object_( + SentryCocoa _lib, NSString aName, NSObject anObject) { + final _ret = _lib._objc_msgSend_163(_lib._class_NSNotification1, + _lib._sel_notificationWithName_object_1, aName._id, anObject._id); + return NSNotification._(_ret, _lib, retain: true, release: true); + } + + static NSNotification notificationWithName_object_userInfo_(SentryCocoa _lib, + NSString aName, NSObject anObject, NSDictionary? aUserInfo) { + final _ret = _lib._objc_msgSend_658( + _lib._class_NSNotification1, + _lib._sel_notificationWithName_object_userInfo_1, + aName._id, + anObject._id, + aUserInfo?._id ?? ffi.nullptr); + return NSNotification._(_ret, _lib, retain: true, release: true); + } + + @override + NSNotification init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSNotification._(_ret, _lib, retain: true, release: true); + } + + static NSNotification new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_new1); + return NSNotification._(_ret, _lib, retain: false, release: true); + } + + static NSNotification allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSNotification1, _lib._sel_allocWithZone_1, zone); + return NSNotification._(_ret, _lib, retain: false, release: true); + } + + static NSNotification alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_alloc1); + return NSNotification._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSNotification1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSNotification1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSNotification1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSNotification1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSNotification1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSNotification1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSNotification1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSNotification1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSNotification1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSBundle extends NSObject { + NSBundle._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSBundle] that points to the same underlying object as [other]. + static NSBundle castFrom(T other) { + return NSBundle._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSBundle] that wraps the given raw object pointer. + static NSBundle castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSBundle._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSBundle]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSBundle1); + } + + static NSBundle? getMainBundle(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_659(_lib._class_NSBundle1, _lib._sel_mainBundle1); + return _ret.address == 0 + ? null + : NSBundle._(_ret, _lib, retain: true, release: true); + } + + static NSBundle bundleWithPath_(SentryCocoa _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSBundle1, + _lib._sel_bundleWithPath_1, path?._id ?? ffi.nullptr); + return NSBundle._(_ret, _lib, retain: true, release: true); + } + + NSBundle initWithPath_(NSString? path) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithPath_1, path?._id ?? ffi.nullptr); + return NSBundle._(_ret, _lib, retain: true, release: true); + } + + static NSBundle bundleWithURL_(SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSBundle1, + _lib._sel_bundleWithURL_1, url?._id ?? ffi.nullptr); + return NSBundle._(_ret, _lib, retain: true, release: true); + } + + NSBundle initWithURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); + return NSBundle._(_ret, _lib, retain: true, release: true); + } + + static NSBundle bundleForClass_(SentryCocoa _lib, NSObject aClass) { + final _ret = _lib._objc_msgSend_660( + _lib._class_NSBundle1, _lib._sel_bundleForClass_1, aClass._id); + return NSBundle._(_ret, _lib, retain: true, release: true); + } + + static NSBundle bundleWithIdentifier_( + SentryCocoa _lib, NSString? identifier) { + final _ret = _lib._objc_msgSend_661(_lib._class_NSBundle1, + _lib._sel_bundleWithIdentifier_1, identifier?._id ?? ffi.nullptr); + return NSBundle._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getAllBundles(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_79(_lib._class_NSBundle1, _lib._sel_allBundles1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray? getAllFrameworks(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_79(_lib._class_NSBundle1, _lib._sel_allFrameworks1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + bool load() { + return _lib._objc_msgSend_12(_id, _lib._sel_load1); + } + + bool get loaded { + return _lib._objc_msgSend_12(_id, _lib._sel_isLoaded1); + } + + bool unload() { + return _lib._objc_msgSend_12(_id, _lib._sel_unload1); + } + + bool preflightAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_236( + _id, _lib._sel_preflightAndReturnError_1, error); + } + + bool loadAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_236(_id, _lib._sel_loadAndReturnError_1, error); + } + + NSURL? get bundleURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_bundleURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get resourceURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_resourceURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get executableURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_executableURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL URLForAuxiliaryExecutable_(NSString? executableName) { + final _ret = _lib._objc_msgSend_34( + _id, + _lib._sel_URLForAuxiliaryExecutable_1, + executableName?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get privateFrameworksURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_privateFrameworksURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get sharedFrameworksURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_sharedFrameworksURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get sharedSupportURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_sharedSupportURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get builtInPlugInsURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_builtInPlugInsURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL? get appStoreReceiptURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_appStoreReceiptURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSString? get bundlePath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_bundlePath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get resourcePath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_resourcePath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get executablePath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_executablePath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString pathForAuxiliaryExecutable_(NSString? executableName) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_pathForAuxiliaryExecutable_1, + executableName?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get privateFrameworksPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_privateFrameworksPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get sharedFrameworksPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sharedFrameworksPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get sharedSupportPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sharedSupportPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get builtInPlugInsPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_builtInPlugInsPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + static NSURL URLForResource_withExtension_subdirectory_inBundleWithURL_( + SentryCocoa _lib, + NSString? name, + NSString? ext, + NSString? subpath, + NSURL? bundleURL) { + final _ret = _lib._objc_msgSend_662( + _lib._class_NSBundle1, + _lib._sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + bundleURL?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + static NSArray URLsForResourcesWithExtension_subdirectory_inBundleWithURL_( + SentryCocoa _lib, NSString? ext, NSString? subpath, NSURL? bundleURL) { + final _ret = _lib._objc_msgSend_663( + _lib._class_NSBundle1, + _lib._sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + bundleURL?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSURL URLForResource_withExtension_(NSString? name, NSString? ext) { + final _ret = _lib._objc_msgSend_664( + _id, + _lib._sel_URLForResource_withExtension_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL URLForResource_withExtension_subdirectory_( + NSString? name, NSString? ext, NSString? subpath) { + final _ret = _lib._objc_msgSend_665( + _id, + _lib._sel_URLForResource_withExtension_subdirectory_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSURL URLForResource_withExtension_subdirectory_localization_(NSString? name, + NSString? ext, NSString? subpath, NSString? localizationName) { + final _ret = _lib._objc_msgSend_666( + _id, + _lib._sel_URLForResource_withExtension_subdirectory_localization_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + localizationName?._id ?? ffi.nullptr); + return NSURL._(_ret, _lib, retain: true, release: true); + } + + NSArray URLsForResourcesWithExtension_subdirectory_( + NSString? ext, NSString? subpath) { + final _ret = _lib._objc_msgSend_667( + _id, + _lib._sel_URLsForResourcesWithExtension_subdirectory_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray URLsForResourcesWithExtension_subdirectory_localization_( + NSString? ext, NSString? subpath, NSString? localizationName) { + final _ret = _lib._objc_msgSend_668( + _id, + _lib._sel_URLsForResourcesWithExtension_subdirectory_localization_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + localizationName?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSString pathForResource_ofType_inDirectory_( + SentryCocoa _lib, NSString? name, NSString? ext, NSString? bundlePath) { + final _ret = _lib._objc_msgSend_669( + _lib._class_NSBundle1, + _lib._sel_pathForResource_ofType_inDirectory_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + bundlePath?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSArray pathsForResourcesOfType_inDirectory_( + SentryCocoa _lib, NSString? ext, NSString? bundlePath) { + final _ret = _lib._objc_msgSend_667( + _lib._class_NSBundle1, + _lib._sel_pathsForResourcesOfType_inDirectory_1, + ext?._id ?? ffi.nullptr, + bundlePath?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString pathForResource_ofType_(NSString? name, NSString? ext) { + final _ret = _lib._objc_msgSend_341(_id, _lib._sel_pathForResource_ofType_1, + name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString pathForResource_ofType_inDirectory_forLocalization_(NSString? name, + NSString? ext, NSString? subpath, NSString? localizationName) { + final _ret = _lib._objc_msgSend_670( + _id, + _lib._sel_pathForResource_ofType_inDirectory_forLocalization_1, + name?._id ?? ffi.nullptr, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + localizationName?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray pathsForResourcesOfType_inDirectory_forLocalization_( + NSString? ext, NSString? subpath, NSString? localizationName) { + final _ret = _lib._objc_msgSend_668( + _id, + _lib._sel_pathsForResourcesOfType_inDirectory_forLocalization_1, + ext?._id ?? ffi.nullptr, + subpath?._id ?? ffi.nullptr, + localizationName?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString localizedStringForKey_value_table_( + NSString? key, NSString? value, NSString? tableName) { + final _ret = _lib._objc_msgSend_669( + _id, + _lib._sel_localizedStringForKey_value_table_1, + key?._id ?? ffi.nullptr, + value?._id ?? ffi.nullptr, + tableName?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString localizedAttributedStringForKey_value_table_( + NSString? key, NSString? value, NSString? tableName) { + final _ret = _lib._objc_msgSend_695( + _id, + _lib._sel_localizedAttributedStringForKey_value_table_1, + key?._id ?? ffi.nullptr, + value?._id ?? ffi.nullptr, + tableName?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSString localizedStringForKey_value_table_localizations_(NSString? key, + NSString? value, NSString? tableName, NSArray? localizations) { + final _ret = _lib._objc_msgSend_696( + _id, + _lib._sel_localizedStringForKey_value_table_localizations_1, + key?._id ?? ffi.nullptr, + value?._id ?? ffi.nullptr, + tableName?._id ?? ffi.nullptr, + localizations?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get bundleIdentifier { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_bundleIdentifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get infoDictionary { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_infoDictionary1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get localizedInfoDictionary { + final _ret = + _lib._objc_msgSend_170(_id, _lib._sel_localizedInfoDictionary1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSObject objectForInfoDictionaryKey_(NSString? key) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_objectForInfoDictionaryKey_1, key?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject classNamed_(NSString? className) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_classNamed_1, className?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject get principalClass { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_principalClass1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSArray? get preferredLocalizations { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_preferredLocalizations1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get localizations { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_localizations1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString? get developmentLocalization { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_developmentLocalization1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + static NSArray preferredLocalizationsFromArray_( + SentryCocoa _lib, NSArray? localizationsArray) { + final _ret = _lib._objc_msgSend_63( + _lib._class_NSBundle1, + _lib._sel_preferredLocalizationsFromArray_1, + localizationsArray?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSArray preferredLocalizationsFromArray_forPreferences_( + SentryCocoa _lib, + NSArray? localizationsArray, + NSArray? preferencesArray) { + final _ret = _lib._objc_msgSend_697( + _lib._class_NSBundle1, + _lib._sel_preferredLocalizationsFromArray_forPreferences_1, + localizationsArray?._id ?? ffi.nullptr, + preferencesArray?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get executableArchitectures { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_executableArchitectures1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + void setPreservationPriority_forTags_(double priority, NSSet? tags) { + _lib._objc_msgSend_698(_id, _lib._sel_setPreservationPriority_forTags_1, + priority, tags?._id ?? ffi.nullptr); + } + + double preservationPriorityForTag_(NSString? tag) { + return _lib._objc_msgSend_284( + _id, _lib._sel_preservationPriorityForTag_1, tag?._id ?? ffi.nullptr); + } + + @override + NSBundle init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSBundle._(_ret, _lib, retain: true, release: true); + } + + static NSBundle new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSBundle1, _lib._sel_new1); + return NSBundle._(_ret, _lib, retain: false, release: true); + } + + static NSBundle allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSBundle1, _lib._sel_allocWithZone_1, zone); + return NSBundle._(_ret, _lib, retain: false, release: true); + } + + static NSBundle alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSBundle1, _lib._sel_alloc1); + return NSBundle._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSBundle1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSBundle1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSBundle1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSBundle1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSBundle1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSBundle1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSBundle1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSBundle1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSBundle1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSAttributedString extends NSObject { + NSAttributedString._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSAttributedString] that points to the same underlying object as [other]. + static NSAttributedString castFrom(T other) { + return NSAttributedString._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSAttributedString] that wraps the given raw object pointer. + static NSAttributedString castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSAttributedString._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSAttributedString]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSAttributedString1); + } + + NSString? get string { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSDictionary attributesAtIndex_effectiveRange_( + int location, ffi.Pointer<_NSRange> range) { + final _ret = _lib._objc_msgSend_671( + _id, _lib._sel_attributesAtIndex_effectiveRange_1, location, range); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + int get length { + return _lib._objc_msgSend_10(_id, _lib._sel_length1); + } + + NSObject attribute_atIndex_effectiveRange_( + NSString attrName, int location, ffi.Pointer<_NSRange> range) { + final _ret = _lib._objc_msgSend_672( + _id, + _lib._sel_attribute_atIndex_effectiveRange_1, + attrName._id, + location, + range); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString attributedSubstringFromRange_(_NSRange range) { + final _ret = _lib._objc_msgSend_673( + _id, _lib._sel_attributedSubstringFromRange_1, range); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSDictionary attributesAtIndex_longestEffectiveRange_inRange_( + int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { + final _ret = _lib._objc_msgSend_674( + _id, + _lib._sel_attributesAtIndex_longestEffectiveRange_inRange_1, + location, + range, + rangeLimit); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSObject attribute_atIndex_longestEffectiveRange_inRange_(NSString attrName, + int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { + final _ret = _lib._objc_msgSend_675( + _id, + _lib._sel_attribute_atIndex_longestEffectiveRange_inRange_1, + attrName._id, + location, + range, + rangeLimit); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + bool isEqualToAttributedString_(NSAttributedString? other) { + return _lib._objc_msgSend_676( + _id, _lib._sel_isEqualToAttributedString_1, other?._id ?? ffi.nullptr); + } + + NSAttributedString initWithString_(NSString? str) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, str?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString initWithString_attributes_( + NSString? str, NSDictionary? attrs) { + final _ret = _lib._objc_msgSend_373( + _id, + _lib._sel_initWithString_attributes_1, + str?._id ?? ffi.nullptr, + attrs?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString initWithAttributedString_(NSAttributedString? attrStr) { + final _ret = _lib._objc_msgSend_677( + _id, _lib._sel_initWithAttributedString_1, attrStr?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + void enumerateAttributesInRange_options_usingBlock_(_NSRange enumerationRange, + int opts, ObjCBlock_ffiVoid_NSDictionary_NSRange_bool block) { + _lib._objc_msgSend_678( + _id, + _lib._sel_enumerateAttributesInRange_options_usingBlock_1, + enumerationRange, + opts, + block._id); + } + + void enumerateAttribute_inRange_options_usingBlock_( + NSString attrName, + _NSRange enumerationRange, + int opts, + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool block) { + _lib._objc_msgSend_679( + _id, + _lib._sel_enumerateAttribute_inRange_options_usingBlock_1, + attrName._id, + enumerationRange, + opts, + block._id); + } + + NSAttributedString initWithContentsOfMarkdownFileAtURL_options_baseURL_error_( + NSURL? markdownFile, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_684( + _id, + _lib._sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1, + markdownFile?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString initWithMarkdown_options_baseURL_error_( + NSData? markdown, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_685( + _id, + _lib._sel_initWithMarkdown_options_baseURL_error_1, + markdown?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString initWithMarkdownString_options_baseURL_error_( + NSString? markdownString, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_686( + _id, + _lib._sel_initWithMarkdownString_options_baseURL_error_1, + markdownString?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString initWithFormat_options_locale_( + NSAttributedString? format, int options, NSLocale? locale) { + final _ret = _lib._objc_msgSend_687( + _id, + _lib._sel_initWithFormat_options_locale_1, + format?._id ?? ffi.nullptr, + options, + locale?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString initWithFormat_options_locale_arguments_( + NSAttributedString? format, + int options, + NSLocale? locale, + ffi.Pointer arguments) { + final _ret = _lib._objc_msgSend_688( + _id, + _lib._sel_initWithFormat_options_locale_arguments_1, + format?._id ?? ffi.nullptr, + options, + locale?._id ?? ffi.nullptr, + arguments); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSAttributedString localizedAttributedStringWithFormat_( + SentryCocoa _lib, NSAttributedString? format) { + final _ret = _lib._objc_msgSend_677( + _lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_1, + format?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSAttributedString localizedAttributedStringWithFormat_options_( + SentryCocoa _lib, NSAttributedString? format, int options) { + final _ret = _lib._objc_msgSend_689( + _lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_options_1, + format?._id ?? ffi.nullptr, + options); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString initWithFormat_options_locale_context_( + NSAttributedString? format, + int options, + NSLocale? locale, + NSDictionary? context) { + final _ret = _lib._objc_msgSend_690( + _id, + _lib._sel_initWithFormat_options_locale_context_1, + format?._id ?? ffi.nullptr, + options, + locale?._id ?? ffi.nullptr, + context?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString initWithFormat_options_locale_context_arguments_( + NSAttributedString? format, + int options, + NSLocale? locale, + NSDictionary? context, + ffi.Pointer arguments) { + final _ret = _lib._objc_msgSend_691( + _id, + _lib._sel_initWithFormat_options_locale_context_arguments_1, + format?._id ?? ffi.nullptr, + options, + locale?._id ?? ffi.nullptr, + context?._id ?? ffi.nullptr, + arguments); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSAttributedString localizedAttributedStringWithFormat_context_( + SentryCocoa _lib, NSAttributedString? format, NSDictionary? context) { + final _ret = _lib._objc_msgSend_692( + _lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_context_1, + format?._id ?? ffi.nullptr, + context?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSAttributedString + localizedAttributedStringWithFormat_options_context_(SentryCocoa _lib, + NSAttributedString? format, int options, NSDictionary? context) { + final _ret = _lib._objc_msgSend_693( + _lib._class_NSAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_options_context_1, + format?._id ?? ffi.nullptr, + options, + context?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString attributedStringByInflectingString() { + final _ret = _lib._objc_msgSend_694( + _id, _lib._sel_attributedStringByInflectingString1); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSAttributedString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSAttributedString new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_new1); + return NSAttributedString._(_ret, _lib, retain: false, release: true); + } + + static NSAttributedString allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSAttributedString1, _lib._sel_allocWithZone_1, zone); + return NSAttributedString._(_ret, _lib, retain: false, release: true); + } + + static NSAttributedString alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_alloc1); + return NSAttributedString._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSAttributedString1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSAttributedString1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSAttributedString1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSAttributedString1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSAttributedString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSAttributedString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSAttributedString1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSAttributedString1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAttributedString1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSAttributedStringEnumerationOptions { + static const int NSAttributedStringEnumerationReverse = 2; + static const int + NSAttributedStringEnumerationLongestEffectiveRangeNotRequired = 1048576; +} + +void _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_registerClosure(Function fn) { + final id = + ++_ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, _NSRange, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock_ffiVoid_NSDictionary_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDictionary_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSDictionary_NSRange_bool.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSDictionary_NSRange_bool.fromFunction( + SentryCocoa lib, + void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_registerClosure( + fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call( + ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +void _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_registerClosure(Function fn) { + final id = ++_ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, _NSRange, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock_ffiVoid_ObjCObject_NSRange_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_ObjCObject_NSRange_bool.fromFunction( + SentryCocoa lib, + void Function(ffi.Pointer arg0, _NSRange arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call( + ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +class NSAttributedStringMarkdownParsingOptions extends NSObject { + NSAttributedStringMarkdownParsingOptions._( + ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSAttributedStringMarkdownParsingOptions] that points to the same underlying object as [other]. + static NSAttributedStringMarkdownParsingOptions + castFrom(T other) { + return NSAttributedStringMarkdownParsingOptions._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSAttributedStringMarkdownParsingOptions] that wraps the given raw object pointer. + static NSAttributedStringMarkdownParsingOptions castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSAttributedStringMarkdownParsingOptions._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSAttributedStringMarkdownParsingOptions]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSAttributedStringMarkdownParsingOptions1); + } + + @override + NSAttributedStringMarkdownParsingOptions init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, + retain: true, release: true); + } + + bool get allowsExtendedAttributes { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsExtendedAttributes1); + } + + set allowsExtendedAttributes(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setAllowsExtendedAttributes_1, value); + } + + int get interpretedSyntax { + return _lib._objc_msgSend_680(_id, _lib._sel_interpretedSyntax1); + } + + set interpretedSyntax(int value) { + return _lib._objc_msgSend_681(_id, _lib._sel_setInterpretedSyntax_1, value); + } + + int get failurePolicy { + return _lib._objc_msgSend_682(_id, _lib._sel_failurePolicy1); + } + + set failurePolicy(int value) { + return _lib._objc_msgSend_683(_id, _lib._sel_setFailurePolicy_1, value); + } + + NSString? get languageCode { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_languageCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set languageCode(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setLanguageCode_1, value?._id ?? ffi.nullptr); + } + + bool get appliesSourcePositionAttributes { + return _lib._objc_msgSend_12( + _id, _lib._sel_appliesSourcePositionAttributes1); + } + + set appliesSourcePositionAttributes(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setAppliesSourcePositionAttributes_1, value); + } + + static NSAttributedStringMarkdownParsingOptions new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_new1); + return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, + retain: false, release: true); + } + + static NSAttributedStringMarkdownParsingOptions allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_allocWithZone_1, + zone); + return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, + retain: false, release: true); + } + + static NSAttributedStringMarkdownParsingOptions alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_alloc1); + return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, + retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSAttributedStringMarkdownInterpretedSyntax { + static const int NSAttributedStringMarkdownInterpretedSyntaxFull = 0; + static const int NSAttributedStringMarkdownInterpretedSyntaxInlineOnly = 1; + static const int + NSAttributedStringMarkdownInterpretedSyntaxInlineOnlyPreservingWhitespace = + 2; +} + +abstract class NSAttributedStringMarkdownParsingFailurePolicy { + static const int NSAttributedStringMarkdownParsingFailureReturnError = 0; + static const int + NSAttributedStringMarkdownParsingFailureReturnPartiallyParsedIfPossible = + 1; +} + +abstract class NSAttributedStringFormattingOptions { + static const int + NSAttributedStringFormattingInsertArgumentAttributesWithoutMerging = 1; + static const int NSAttributedStringFormattingApplyReplacementIndexAttribute = + 2; +} + +class NSMutableAttributedString extends NSAttributedString { + NSMutableAttributedString._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMutableAttributedString] that points to the same underlying object as [other]. + static NSMutableAttributedString castFrom(T other) { + return NSMutableAttributedString._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSMutableAttributedString] that wraps the given raw object pointer. + static NSMutableAttributedString castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMutableAttributedString._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSMutableAttributedString]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableAttributedString1); + } + + void replaceCharactersInRange_withString_(_NSRange range, NSString? str) { + _lib._objc_msgSend_653(_id, _lib._sel_replaceCharactersInRange_withString_1, + range, str?._id ?? ffi.nullptr); + } + + void setAttributes_range_(NSDictionary? attrs, _NSRange range) { + _lib._objc_msgSend_699( + _id, _lib._sel_setAttributes_range_1, attrs?._id ?? ffi.nullptr, range); + } + + NSMutableString? get mutableString { + final _ret = _lib._objc_msgSend_700(_id, _lib._sel_mutableString1); + return _ret.address == 0 + ? null + : NSMutableString._(_ret, _lib, retain: true, release: true); + } + + void addAttribute_value_range_( + NSString name, NSObject value, _NSRange range) { + _lib._objc_msgSend_701( + _id, _lib._sel_addAttribute_value_range_1, name._id, value._id, range); + } + + void addAttributes_range_(NSDictionary? attrs, _NSRange range) { + _lib._objc_msgSend_699( + _id, _lib._sel_addAttributes_range_1, attrs?._id ?? ffi.nullptr, range); + } + + void removeAttribute_range_(NSString name, _NSRange range) { + _lib._objc_msgSend_702( + _id, _lib._sel_removeAttribute_range_1, name._id, range); + } + + void replaceCharactersInRange_withAttributedString_( + _NSRange range, NSAttributedString? attrString) { + _lib._objc_msgSend_703( + _id, + _lib._sel_replaceCharactersInRange_withAttributedString_1, + range, + attrString?._id ?? ffi.nullptr); + } + + void insertAttributedString_atIndex_( + NSAttributedString? attrString, int loc) { + _lib._objc_msgSend_704(_id, _lib._sel_insertAttributedString_atIndex_1, + attrString?._id ?? ffi.nullptr, loc); + } + + void appendAttributedString_(NSAttributedString? attrString) { + _lib._objc_msgSend_705(_id, _lib._sel_appendAttributedString_1, + attrString?._id ?? ffi.nullptr); + } + + void deleteCharactersInRange_(_NSRange range) { + _lib._objc_msgSend_461(_id, _lib._sel_deleteCharactersInRange_1, range); + } + + void setAttributedString_(NSAttributedString? attrString) { + _lib._objc_msgSend_705( + _id, _lib._sel_setAttributedString_1, attrString?._id ?? ffi.nullptr); + } + + void beginEditing() { + _lib._objc_msgSend_1(_id, _lib._sel_beginEditing1); + } + + void endEditing() { + _lib._objc_msgSend_1(_id, _lib._sel_endEditing1); + } + + void appendLocalizedFormat_(NSAttributedString? format) { + _lib._objc_msgSend_705( + _id, _lib._sel_appendLocalizedFormat_1, format?._id ?? ffi.nullptr); + } + + @override + NSMutableAttributedString initWithString_(NSString? str) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, str?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithString_attributes_( + NSString? str, NSDictionary? attrs) { + final _ret = _lib._objc_msgSend_373( + _id, + _lib._sel_initWithString_attributes_1, + str?._id ?? ffi.nullptr, + attrs?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithAttributedString_( + NSAttributedString? attrStr) { + final _ret = _lib._objc_msgSend_677( + _id, _lib._sel_initWithAttributedString_1, attrStr?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString + initWithContentsOfMarkdownFileAtURL_options_baseURL_error_( + NSURL? markdownFile, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_684( + _id, + _lib._sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1, + markdownFile?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithMarkdown_options_baseURL_error_( + NSData? markdown, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_685( + _id, + _lib._sel_initWithMarkdown_options_baseURL_error_1, + markdown?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithMarkdownString_options_baseURL_error_( + NSString? markdownString, + NSAttributedStringMarkdownParsingOptions? options, + NSURL? baseURL, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_686( + _id, + _lib._sel_initWithMarkdownString_options_baseURL_error_1, + markdownString?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + baseURL?._id ?? ffi.nullptr, + error); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithFormat_options_locale_( + NSAttributedString? format, int options, NSLocale? locale) { + final _ret = _lib._objc_msgSend_687( + _id, + _lib._sel_initWithFormat_options_locale_1, + format?._id ?? ffi.nullptr, + options, + locale?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithFormat_options_locale_arguments_( + NSAttributedString? format, + int options, + NSLocale? locale, + ffi.Pointer arguments) { + final _ret = _lib._objc_msgSend_688( + _id, + _lib._sel_initWithFormat_options_locale_arguments_1, + format?._id ?? ffi.nullptr, + options, + locale?._id ?? ffi.nullptr, + arguments); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableAttributedString localizedAttributedStringWithFormat_( + SentryCocoa _lib, NSAttributedString? format) { + final _ret = _lib._objc_msgSend_677( + _lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_1, + format?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableAttributedString localizedAttributedStringWithFormat_options_( + SentryCocoa _lib, NSAttributedString? format, int options) { + final _ret = _lib._objc_msgSend_689( + _lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_options_1, + format?._id ?? ffi.nullptr, + options); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithFormat_options_locale_context_( + NSAttributedString? format, + int options, + NSLocale? locale, + NSDictionary? context) { + final _ret = _lib._objc_msgSend_690( + _id, + _lib._sel_initWithFormat_options_locale_context_1, + format?._id ?? ffi.nullptr, + options, + locale?._id ?? ffi.nullptr, + context?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString initWithFormat_options_locale_context_arguments_( + NSAttributedString? format, + int options, + NSLocale? locale, + NSDictionary? context, + ffi.Pointer arguments) { + final _ret = _lib._objc_msgSend_691( + _id, + _lib._sel_initWithFormat_options_locale_context_arguments_1, + format?._id ?? ffi.nullptr, + options, + locale?._id ?? ffi.nullptr, + context?._id ?? ffi.nullptr, + arguments); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableAttributedString localizedAttributedStringWithFormat_context_( + SentryCocoa _lib, NSAttributedString? format, NSDictionary? context) { + final _ret = _lib._objc_msgSend_692( + _lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_context_1, + format?._id ?? ffi.nullptr, + context?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableAttributedString + localizedAttributedStringWithFormat_options_context_(SentryCocoa _lib, + NSAttributedString? format, int options, NSDictionary? context) { + final _ret = _lib._objc_msgSend_693( + _lib._class_NSMutableAttributedString1, + _lib._sel_localizedAttributedStringWithFormat_options_context_1, + format?._id ?? ffi.nullptr, + options, + context?._id ?? ffi.nullptr); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableAttributedString init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + } + + static NSMutableAttributedString new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableAttributedString1, _lib._sel_new1); + return NSMutableAttributedString._(_ret, _lib, + retain: false, release: true); + } + + static NSMutableAttributedString allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSMutableAttributedString1, + _lib._sel_allocWithZone_1, zone); + return NSMutableAttributedString._(_ret, _lib, + retain: false, release: true); + } + + static NSMutableAttributedString alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableAttributedString1, _lib._sel_alloc1); + return NSMutableAttributedString._(_ret, _lib, + retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSMutableAttributedString1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSMutableAttributedString1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSMutableAttributedString1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableAttributedString1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMutableAttributedString1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSMutableAttributedString1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSMutableAttributedString1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableAttributedString1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableAttributedString1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSDateFormatter extends NSFormatter { + NSDateFormatter._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSDateFormatter] that points to the same underlying object as [other]. + static NSDateFormatter castFrom(T other) { + return NSDateFormatter._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSDateFormatter] that wraps the given raw object pointer. + static NSDateFormatter castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSDateFormatter._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSDateFormatter]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSDateFormatter1); + } + + int get formattingContext { + return _lib._objc_msgSend_710(_id, _lib._sel_formattingContext1); + } + + set formattingContext(int value) { + return _lib._objc_msgSend_711(_id, _lib._sel_setFormattingContext_1, value); + } + + bool getObjectValue_forString_range_error_( + ffi.Pointer> obj, + NSString? string, + ffi.Pointer<_NSRange> rangep, + ffi.Pointer> error) { + return _lib._objc_msgSend_712( + _id, + _lib._sel_getObjectValue_forString_range_error_1, + obj, + string?._id ?? ffi.nullptr, + rangep, + error); + } + + NSString stringFromDate_(NSDate? date) { + final _ret = _lib._objc_msgSend_167( + _id, _lib._sel_stringFromDate_1, date?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSDate dateFromString_(NSString? string) { + final _ret = _lib._objc_msgSend_543( + _id, _lib._sel_dateFromString_1, string?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + static NSString localizedStringFromDate_dateStyle_timeStyle_( + SentryCocoa _lib, NSDate? date, int dstyle, int tstyle) { + final _ret = _lib._objc_msgSend_713( + _lib._class_NSDateFormatter1, + _lib._sel_localizedStringFromDate_dateStyle_timeStyle_1, + date?._id ?? ffi.nullptr, + dstyle, + tstyle); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static NSString dateFormatFromTemplate_options_locale_( + SentryCocoa _lib, NSString? tmplate, int opts, NSLocale? locale) { + final _ret = _lib._objc_msgSend_714( + _lib._class_NSDateFormatter1, + _lib._sel_dateFormatFromTemplate_options_locale_1, + tmplate?._id ?? ffi.nullptr, + opts, + locale?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static int getDefaultFormatterBehavior(SentryCocoa _lib) { + return _lib._objc_msgSend_715( + _lib._class_NSDateFormatter1, _lib._sel_defaultFormatterBehavior1); + } + + static void setDefaultFormatterBehavior(SentryCocoa _lib, int value) { + return _lib._objc_msgSend_716(_lib._class_NSDateFormatter1, + _lib._sel_setDefaultFormatterBehavior_1, value); + } + + void setLocalizedDateFormatFromTemplate_(NSString? dateFormatTemplate) { + _lib._objc_msgSend_192(_id, _lib._sel_setLocalizedDateFormatFromTemplate_1, + dateFormatTemplate?._id ?? ffi.nullptr); + } + + NSString? get dateFormat { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dateFormat1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set dateFormat(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setDateFormat_1, value?._id ?? ffi.nullptr); + } + + int get dateStyle { + return _lib._objc_msgSend_717(_id, _lib._sel_dateStyle1); + } + + set dateStyle(int value) { + return _lib._objc_msgSend_718(_id, _lib._sel_setDateStyle_1, value); + } + + int get timeStyle { + return _lib._objc_msgSend_717(_id, _lib._sel_timeStyle1); + } + + set timeStyle(int value) { + return _lib._objc_msgSend_718(_id, _lib._sel_setTimeStyle_1, value); + } + + NSLocale? get locale { + final _ret = _lib._objc_msgSend_182(_id, _lib._sel_locale1); + return _ret.address == 0 + ? null + : NSLocale._(_ret, _lib, retain: true, release: true); + } + + set locale(NSLocale? value) { + return _lib._objc_msgSend_719( + _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); + } + + bool get generatesCalendarDates { + return _lib._objc_msgSend_12(_id, _lib._sel_generatesCalendarDates1); + } + + set generatesCalendarDates(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setGeneratesCalendarDates_1, value); + } + + int get formatterBehavior { + return _lib._objc_msgSend_715(_id, _lib._sel_formatterBehavior1); + } + + set formatterBehavior(int value) { + return _lib._objc_msgSend_716(_id, _lib._sel_setFormatterBehavior_1, value); + } + + NSTimeZone? get timeZone { + final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + set timeZone(NSTimeZone? value) { + return _lib._objc_msgSend_169( + _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); + } + + NSCalendar? get calendar { + final _ret = _lib._objc_msgSend_720(_id, _lib._sel_calendar1); + return _ret.address == 0 + ? null + : NSCalendar._(_ret, _lib, retain: true, release: true); + } + + set calendar(NSCalendar? value) { + return _lib._objc_msgSend_726( + _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); + } + + bool get lenient { + return _lib._objc_msgSend_12(_id, _lib._sel_isLenient1); + } + + set lenient(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setLenient_1, value); + } + + NSDate? get twoDigitStartDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_twoDigitStartDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + set twoDigitStartDate(NSDate? value) { + return _lib._objc_msgSend_540( + _id, _lib._sel_setTwoDigitStartDate_1, value?._id ?? ffi.nullptr); + } + + NSDate? get defaultDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_defaultDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + set defaultDate(NSDate? value) { + return _lib._objc_msgSend_540( + _id, _lib._sel_setDefaultDate_1, value?._id ?? ffi.nullptr); + } + + NSArray? get eraSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_eraSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set eraSymbols(NSArray? value) { + return _lib._objc_msgSend_751( + _id, _lib._sel_setEraSymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get monthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_monthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set monthSymbols(NSArray? value) { + return _lib._objc_msgSend_751( + _id, _lib._sel_setMonthSymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get shortMonthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set shortMonthSymbols(NSArray? value) { + return _lib._objc_msgSend_751( + _id, _lib._sel_setShortMonthSymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get weekdaySymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_weekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set weekdaySymbols(NSArray? value) { + return _lib._objc_msgSend_751( + _id, _lib._sel_setWeekdaySymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get shortWeekdaySymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set shortWeekdaySymbols(NSArray? value) { + return _lib._objc_msgSend_751( + _id, _lib._sel_setShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); + } + + NSString? get AMSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_AMSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set AMSymbol(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setAMSymbol_1, value?._id ?? ffi.nullptr); + } + + NSString? get PMSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_PMSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set PMSymbol(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setPMSymbol_1, value?._id ?? ffi.nullptr); + } + + NSArray? get longEraSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_longEraSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set longEraSymbols(NSArray? value) { + return _lib._objc_msgSend_751( + _id, _lib._sel_setLongEraSymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get veryShortMonthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set veryShortMonthSymbols(NSArray? value) { + return _lib._objc_msgSend_751( + _id, _lib._sel_setVeryShortMonthSymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get standaloneMonthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_standaloneMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set standaloneMonthSymbols(NSArray? value) { + return _lib._objc_msgSend_751( + _id, _lib._sel_setStandaloneMonthSymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get shortStandaloneMonthSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set shortStandaloneMonthSymbols(NSArray? value) { + return _lib._objc_msgSend_751(_id, + _lib._sel_setShortStandaloneMonthSymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get veryShortStandaloneMonthSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_veryShortStandaloneMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set veryShortStandaloneMonthSymbols(NSArray? value) { + return _lib._objc_msgSend_751( + _id, + _lib._sel_setVeryShortStandaloneMonthSymbols_1, + value?._id ?? ffi.nullptr); + } + + NSArray? get veryShortWeekdaySymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set veryShortWeekdaySymbols(NSArray? value) { + return _lib._objc_msgSend_751( + _id, _lib._sel_setVeryShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get standaloneWeekdaySymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_standaloneWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set standaloneWeekdaySymbols(NSArray? value) { + return _lib._objc_msgSend_751(_id, _lib._sel_setStandaloneWeekdaySymbols_1, + value?._id ?? ffi.nullptr); + } + + NSArray? get shortStandaloneWeekdaySymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set shortStandaloneWeekdaySymbols(NSArray? value) { + return _lib._objc_msgSend_751( + _id, + _lib._sel_setShortStandaloneWeekdaySymbols_1, + value?._id ?? ffi.nullptr); + } + + NSArray? get veryShortStandaloneWeekdaySymbols { + final _ret = _lib._objc_msgSend_79( + _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set veryShortStandaloneWeekdaySymbols(NSArray? value) { + return _lib._objc_msgSend_751( + _id, + _lib._sel_setVeryShortStandaloneWeekdaySymbols_1, + value?._id ?? ffi.nullptr); + } + + NSArray? get quarterSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_quarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set quarterSymbols(NSArray? value) { + return _lib._objc_msgSend_751( + _id, _lib._sel_setQuarterSymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get shortQuarterSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortQuarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set shortQuarterSymbols(NSArray? value) { + return _lib._objc_msgSend_751( + _id, _lib._sel_setShortQuarterSymbols_1, value?._id ?? ffi.nullptr); + } + + NSArray? get standaloneQuarterSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_standaloneQuarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set standaloneQuarterSymbols(NSArray? value) { + return _lib._objc_msgSend_751(_id, _lib._sel_setStandaloneQuarterSymbols_1, + value?._id ?? ffi.nullptr); + } + + NSArray? get shortStandaloneQuarterSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneQuarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + set shortStandaloneQuarterSymbols(NSArray? value) { + return _lib._objc_msgSend_751( + _id, + _lib._sel_setShortStandaloneQuarterSymbols_1, + value?._id ?? ffi.nullptr); + } + + NSDate? get gregorianStartDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_gregorianStartDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + set gregorianStartDate(NSDate? value) { + return _lib._objc_msgSend_540( + _id, _lib._sel_setGregorianStartDate_1, value?._id ?? ffi.nullptr); + } + + bool get doesRelativeDateFormatting { + return _lib._objc_msgSend_12(_id, _lib._sel_doesRelativeDateFormatting1); + } + + set doesRelativeDateFormatting(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setDoesRelativeDateFormatting_1, value); + } + + NSObject initWithDateFormat_allowNaturalLanguage_( + NSString? format, bool flag) { + final _ret = _lib._objc_msgSend_29( + _id, + _lib._sel_initWithDateFormat_allowNaturalLanguage_1, + format?._id ?? ffi.nullptr, + flag); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + bool allowsNaturalLanguage() { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsNaturalLanguage1); + } + + @override + NSDateFormatter init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSDateFormatter._(_ret, _lib, retain: true, release: true); + } + + static NSDateFormatter new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_new1); + return NSDateFormatter._(_ret, _lib, retain: false, release: true); + } + + static NSDateFormatter allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSDateFormatter1, _lib._sel_allocWithZone_1, zone); + return NSDateFormatter._(_ret, _lib, retain: false, release: true); + } + + static NSDateFormatter alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_alloc1); + return NSDateFormatter._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSDateFormatter1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSDateFormatter1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSDateFormatter1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDateFormatter1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSDateFormatter1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSDateFormatter1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSDateFormatter1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSDateFormatter1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDateFormatter1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +class NSFormatter extends NSObject { + NSFormatter._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSFormatter] that points to the same underlying object as [other]. + static NSFormatter castFrom(T other) { + return NSFormatter._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSFormatter] that wraps the given raw object pointer. + static NSFormatter castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSFormatter._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSFormatter]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFormatter1); + } + + NSString stringForObjectValue_(NSObject obj) { + final _ret = + _lib._objc_msgSend_65(_id, _lib._sel_stringForObjectValue_1, obj._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSAttributedString attributedStringForObjectValue_withDefaultAttributes_( + NSObject obj, NSDictionary? attrs) { + final _ret = _lib._objc_msgSend_706( + _id, + _lib._sel_attributedStringForObjectValue_withDefaultAttributes_1, + obj._id, + attrs?._id ?? ffi.nullptr); + return NSAttributedString._(_ret, _lib, retain: true, release: true); + } + + NSString editingStringForObjectValue_(NSObject obj) { + final _ret = _lib._objc_msgSend_65( + _id, _lib._sel_editingStringForObjectValue_1, obj._id); + return NSString._(_ret, _lib, retain: true, release: true); + } + + bool getObjectValue_forString_errorDescription_( + ffi.Pointer> obj, + NSString? string, + ffi.Pointer> error) { + return _lib._objc_msgSend_707( + _id, + _lib._sel_getObjectValue_forString_errorDescription_1, + obj, + string?._id ?? ffi.nullptr, + error); + } + + bool isPartialStringValid_newEditingString_errorDescription_( + NSString? partialString, + ffi.Pointer> newString, + ffi.Pointer> error) { + return _lib._objc_msgSend_708( + _id, + _lib._sel_isPartialStringValid_newEditingString_errorDescription_1, + partialString?._id ?? ffi.nullptr, + newString, + error); + } + + bool + isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_( + ffi.Pointer> partialStringPtr, + ffi.Pointer<_NSRange> proposedSelRangePtr, + NSString? origString, + _NSRange origSelRange, + ffi.Pointer> error) { + return _lib._objc_msgSend_709( + _id, + _lib._sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1, + partialStringPtr, + proposedSelRangePtr, + origString?._id ?? ffi.nullptr, + origSelRange, + error); + } + + @override + NSFormatter init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSFormatter._(_ret, _lib, retain: true, release: true); + } + + static NSFormatter new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_new1); + return NSFormatter._(_ret, _lib, retain: false, release: true); + } + + static NSFormatter allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSFormatter1, _lib._sel_allocWithZone_1, zone); + return NSFormatter._(_ret, _lib, retain: false, release: true); + } + + static NSFormatter alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_alloc1); + return NSFormatter._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSFormatter1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSFormatter1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSFormatter1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSFormatter1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSFormatter1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSFormatter1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSFormatter1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSFormatter1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSFormatter1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSFormattingContext { + static const int NSFormattingContextUnknown = 0; + static const int NSFormattingContextDynamic = 1; + static const int NSFormattingContextStandalone = 2; + static const int NSFormattingContextListItem = 3; + static const int NSFormattingContextBeginningOfSentence = 4; + static const int NSFormattingContextMiddleOfSentence = 5; +} + +abstract class NSDateFormatterStyle { + static const int NSDateFormatterNoStyle = 0; + static const int NSDateFormatterShortStyle = 1; + static const int NSDateFormatterMediumStyle = 2; + static const int NSDateFormatterLongStyle = 3; + static const int NSDateFormatterFullStyle = 4; +} + +abstract class NSDateFormatterBehavior { + static const int NSDateFormatterBehaviorDefault = 0; + static const int NSDateFormatterBehavior10_0 = 1000; + static const int NSDateFormatterBehavior10_4 = 1040; +} + +class NSCalendar extends NSObject { + NSCalendar._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSCalendar] that points to the same underlying object as [other]. + static NSCalendar castFrom(T other) { + return NSCalendar._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [NSCalendar] that wraps the given raw object pointer. + static NSCalendar castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSCalendar._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSCalendar]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSCalendar1); + } + + static NSCalendar? getCurrentCalendar(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_720( + _lib._class_NSCalendar1, _lib._sel_currentCalendar1); + return _ret.address == 0 + ? null + : NSCalendar._(_ret, _lib, retain: true, release: true); + } + + static NSCalendar? getAutoupdatingCurrentCalendar(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_720( + _lib._class_NSCalendar1, _lib._sel_autoupdatingCurrentCalendar1); + return _ret.address == 0 + ? null + : NSCalendar._(_ret, _lib, retain: true, release: true); + } + + static NSCalendar calendarWithIdentifier_( + SentryCocoa _lib, NSString calendarIdentifierConstant) { + final _ret = _lib._objc_msgSend_721(_lib._class_NSCalendar1, + _lib._sel_calendarWithIdentifier_1, calendarIdentifierConstant._id); + return NSCalendar._(_ret, _lib, retain: true, release: true); + } + + @override + NSCalendar init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSCalendar._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithCalendarIdentifier_(NSString ident) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithCalendarIdentifier_1, ident._id); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSString get calendarIdentifier { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_calendarIdentifier1); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSLocale? get locale { + final _ret = _lib._objc_msgSend_182(_id, _lib._sel_locale1); + return _ret.address == 0 + ? null + : NSLocale._(_ret, _lib, retain: true, release: true); + } + + set locale(NSLocale? value) { + return _lib._objc_msgSend_719( + _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); + } + + NSTimeZone? get timeZone { + final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + set timeZone(NSTimeZone? value) { + return _lib._objc_msgSend_169( + _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); + } + + int get firstWeekday { + return _lib._objc_msgSend_10(_id, _lib._sel_firstWeekday1); + } + + set firstWeekday(int value) { + return _lib._objc_msgSend_500(_id, _lib._sel_setFirstWeekday_1, value); + } + + int get minimumDaysInFirstWeek { + return _lib._objc_msgSend_10(_id, _lib._sel_minimumDaysInFirstWeek1); + } + + set minimumDaysInFirstWeek(int value) { + return _lib._objc_msgSend_500( + _id, _lib._sel_setMinimumDaysInFirstWeek_1, value); + } + + NSArray? get eraSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_eraSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get longEraSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_longEraSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get monthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_monthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get shortMonthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get veryShortMonthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get standaloneMonthSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_standaloneMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get shortStandaloneMonthSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get veryShortStandaloneMonthSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_veryShortStandaloneMonthSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get weekdaySymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_weekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get shortWeekdaySymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get veryShortWeekdaySymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get standaloneWeekdaySymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_standaloneWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get shortStandaloneWeekdaySymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get veryShortStandaloneWeekdaySymbols { + final _ret = _lib._objc_msgSend_79( + _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get quarterSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_quarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get shortQuarterSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortQuarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get standaloneQuarterSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_standaloneQuarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray? get shortStandaloneQuarterSymbols { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneQuarterSymbols1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + NSString? get AMSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_AMSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get PMSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_PMSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + void minimumRangeOfUnit_(ffi.Pointer<_NSRange> stret, int unit) { + _lib._objc_msgSend_722(stret, _id, _lib._sel_minimumRangeOfUnit_1, unit); + } + + void maximumRangeOfUnit_(ffi.Pointer<_NSRange> stret, int unit) { + _lib._objc_msgSend_722(stret, _id, _lib._sel_maximumRangeOfUnit_1, unit); + } + + void rangeOfUnit_inUnit_forDate_( + ffi.Pointer<_NSRange> stret, int smaller, int larger, NSDate? date) { + _lib._objc_msgSend_723(stret, _id, _lib._sel_rangeOfUnit_inUnit_forDate_1, + smaller, larger, date?._id ?? ffi.nullptr); + } + + int ordinalityOfUnit_inUnit_forDate_(int smaller, int larger, NSDate? date) { + return _lib._objc_msgSend_724( + _id, + _lib._sel_ordinalityOfUnit_inUnit_forDate_1, + smaller, + larger, + date?._id ?? ffi.nullptr); + } + + bool rangeOfUnit_startDate_interval_forDate_( + int unit, + ffi.Pointer> datep, + ffi.Pointer tip, + NSDate? date) { + return _lib._objc_msgSend_725( + _id, + _lib._sel_rangeOfUnit_startDate_interval_forDate_1, + unit, + datep, + tip, + date?._id ?? ffi.nullptr); + } + + NSDate dateFromComponents_(NSDateComponents? comps) { + final _ret = _lib._objc_msgSend_730( + _id, _lib._sel_dateFromComponents_1, comps?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDateComponents components_fromDate_(int unitFlags, NSDate? date) { + final _ret = _lib._objc_msgSend_731(_id, _lib._sel_components_fromDate_1, + unitFlags, date?._id ?? ffi.nullptr); + return NSDateComponents._(_ret, _lib, retain: true, release: true); + } + + NSDate dateByAddingComponents_toDate_options_( + NSDateComponents? comps, NSDate? date, int opts) { + final _ret = _lib._objc_msgSend_732( + _id, + _lib._sel_dateByAddingComponents_toDate_options_1, + comps?._id ?? ffi.nullptr, + date?._id ?? ffi.nullptr, + opts); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDateComponents components_fromDate_toDate_options_( + int unitFlags, NSDate? startingDate, NSDate? resultDate, int opts) { + final _ret = _lib._objc_msgSend_733( + _id, + _lib._sel_components_fromDate_toDate_options_1, + unitFlags, + startingDate?._id ?? ffi.nullptr, + resultDate?._id ?? ffi.nullptr, + opts); + return NSDateComponents._(_ret, _lib, retain: true, release: true); + } + + void getEra_year_month_day_fromDate_( + ffi.Pointer eraValuePointer, + ffi.Pointer yearValuePointer, + ffi.Pointer monthValuePointer, + ffi.Pointer dayValuePointer, + NSDate? date) { + _lib._objc_msgSend_734( + _id, + _lib._sel_getEra_year_month_day_fromDate_1, + eraValuePointer, + yearValuePointer, + monthValuePointer, + dayValuePointer, + date?._id ?? ffi.nullptr); + } + + void getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_( + ffi.Pointer eraValuePointer, + ffi.Pointer yearValuePointer, + ffi.Pointer weekValuePointer, + ffi.Pointer weekdayValuePointer, + NSDate? date) { + _lib._objc_msgSend_734( + _id, + _lib._sel_getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_1, + eraValuePointer, + yearValuePointer, + weekValuePointer, + weekdayValuePointer, + date?._id ?? ffi.nullptr); + } + + void getHour_minute_second_nanosecond_fromDate_( + ffi.Pointer hourValuePointer, + ffi.Pointer minuteValuePointer, + ffi.Pointer secondValuePointer, + ffi.Pointer nanosecondValuePointer, + NSDate? date) { + _lib._objc_msgSend_734( + _id, + _lib._sel_getHour_minute_second_nanosecond_fromDate_1, + hourValuePointer, + minuteValuePointer, + secondValuePointer, + nanosecondValuePointer, + date?._id ?? ffi.nullptr); + } + + int component_fromDate_(int unit, NSDate? date) { + return _lib._objc_msgSend_735( + _id, _lib._sel_component_fromDate_1, unit, date?._id ?? ffi.nullptr); + } + + NSDate dateWithEra_year_month_day_hour_minute_second_nanosecond_( + int eraValue, + int yearValue, + int monthValue, + int dayValue, + int hourValue, + int minuteValue, + int secondValue, + int nanosecondValue) { + final _ret = _lib._objc_msgSend_736( + _id, + _lib._sel_dateWithEra_year_month_day_hour_minute_second_nanosecond_1, + eraValue, + yearValue, + monthValue, + dayValue, + hourValue, + minuteValue, + secondValue, + nanosecondValue); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate + dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_( + int eraValue, + int yearValue, + int weekValue, + int weekdayValue, + int hourValue, + int minuteValue, + int secondValue, + int nanosecondValue) { + final _ret = _lib._objc_msgSend_736( + _id, + _lib._sel_dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_1, + eraValue, + yearValue, + weekValue, + weekdayValue, + hourValue, + minuteValue, + secondValue, + nanosecondValue); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate startOfDayForDate_(NSDate? date) { + final _ret = _lib._objc_msgSend_158( + _id, _lib._sel_startOfDayForDate_1, date?._id ?? ffi.nullptr); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDateComponents componentsInTimeZone_fromDate_( + NSTimeZone? timezone, NSDate? date) { + final _ret = _lib._objc_msgSend_737( + _id, + _lib._sel_componentsInTimeZone_fromDate_1, + timezone?._id ?? ffi.nullptr, + date?._id ?? ffi.nullptr); + return NSDateComponents._(_ret, _lib, retain: true, release: true); + } + + int compareDate_toDate_toUnitGranularity_( + NSDate? date1, NSDate? date2, int unit) { + return _lib._objc_msgSend_738( + _id, + _lib._sel_compareDate_toDate_toUnitGranularity_1, + date1?._id ?? ffi.nullptr, + date2?._id ?? ffi.nullptr, + unit); + } + + bool isDate_equalToDate_toUnitGranularity_( + NSDate? date1, NSDate? date2, int unit) { + return _lib._objc_msgSend_739( + _id, + _lib._sel_isDate_equalToDate_toUnitGranularity_1, + date1?._id ?? ffi.nullptr, + date2?._id ?? ffi.nullptr, + unit); + } + + bool isDate_inSameDayAsDate_(NSDate? date1, NSDate? date2) { + return _lib._objc_msgSend_740(_id, _lib._sel_isDate_inSameDayAsDate_1, + date1?._id ?? ffi.nullptr, date2?._id ?? ffi.nullptr); + } + + bool isDateInToday_(NSDate? date) { + return _lib._objc_msgSend_160( + _id, _lib._sel_isDateInToday_1, date?._id ?? ffi.nullptr); + } + + bool isDateInYesterday_(NSDate? date) { + return _lib._objc_msgSend_160( + _id, _lib._sel_isDateInYesterday_1, date?._id ?? ffi.nullptr); + } + + bool isDateInTomorrow_(NSDate? date) { + return _lib._objc_msgSend_160( + _id, _lib._sel_isDateInTomorrow_1, date?._id ?? ffi.nullptr); + } + + bool isDateInWeekend_(NSDate? date) { + return _lib._objc_msgSend_160( + _id, _lib._sel_isDateInWeekend_1, date?._id ?? ffi.nullptr); + } + + bool rangeOfWeekendStartDate_interval_containingDate_( + ffi.Pointer> datep, + ffi.Pointer tip, + NSDate? date) { + return _lib._objc_msgSend_741( + _id, + _lib._sel_rangeOfWeekendStartDate_interval_containingDate_1, + datep, + tip, + date?._id ?? ffi.nullptr); + } + + bool nextWeekendStartDate_interval_options_afterDate_( + ffi.Pointer> datep, + ffi.Pointer tip, + int options, + NSDate? date) { + return _lib._objc_msgSend_742( + _id, + _lib._sel_nextWeekendStartDate_interval_options_afterDate_1, + datep, + tip, + options, + date?._id ?? ffi.nullptr); + } + + NSDateComponents components_fromDateComponents_toDateComponents_options_( + int unitFlags, + NSDateComponents? startingDateComp, + NSDateComponents? resultDateComp, + int options) { + final _ret = _lib._objc_msgSend_743( + _id, + _lib._sel_components_fromDateComponents_toDateComponents_options_1, + unitFlags, + startingDateComp?._id ?? ffi.nullptr, + resultDateComp?._id ?? ffi.nullptr, + options); + return NSDateComponents._(_ret, _lib, retain: true, release: true); + } + + NSDate dateByAddingUnit_value_toDate_options_( + int unit, int value, NSDate? date, int options) { + final _ret = _lib._objc_msgSend_744( + _id, + _lib._sel_dateByAddingUnit_value_toDate_options_1, + unit, + value, + date?._id ?? ffi.nullptr, + options); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + void enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_( + NSDate? start, + NSDateComponents? comps, + int opts, + ObjCBlock_ffiVoid_NSDate_bool_bool block) { + _lib._objc_msgSend_745( + _id, + _lib._sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1, + start?._id ?? ffi.nullptr, + comps?._id ?? ffi.nullptr, + opts, + block._id); + } + + NSDate nextDateAfterDate_matchingComponents_options_( + NSDate? date, NSDateComponents? comps, int options) { + final _ret = _lib._objc_msgSend_746( + _id, + _lib._sel_nextDateAfterDate_matchingComponents_options_1, + date?._id ?? ffi.nullptr, + comps?._id ?? ffi.nullptr, + options); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate nextDateAfterDate_matchingUnit_value_options_( + NSDate? date, int unit, int value, int options) { + final _ret = _lib._objc_msgSend_747( + _id, + _lib._sel_nextDateAfterDate_matchingUnit_value_options_1, + date?._id ?? ffi.nullptr, + unit, + value, + options); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate nextDateAfterDate_matchingHour_minute_second_options_(NSDate? date, + int hourValue, int minuteValue, int secondValue, int options) { + final _ret = _lib._objc_msgSend_748( + _id, + _lib._sel_nextDateAfterDate_matchingHour_minute_second_options_1, + date?._id ?? ffi.nullptr, + hourValue, + minuteValue, + secondValue, + options); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate dateBySettingUnit_value_ofDate_options_( + int unit, int v, NSDate? date, int opts) { + final _ret = _lib._objc_msgSend_744( + _id, + _lib._sel_dateBySettingUnit_value_ofDate_options_1, + unit, + v, + date?._id ?? ffi.nullptr, + opts); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + NSDate dateBySettingHour_minute_second_ofDate_options_( + int h, int m, int s, NSDate? date, int opts) { + final _ret = _lib._objc_msgSend_749( + _id, + _lib._sel_dateBySettingHour_minute_second_ofDate_options_1, + h, + m, + s, + date?._id ?? ffi.nullptr, + opts); + return NSDate._(_ret, _lib, retain: true, release: true); + } + + bool date_matchesComponents_(NSDate? date, NSDateComponents? components) { + return _lib._objc_msgSend_750(_id, _lib._sel_date_matchesComponents_1, + date?._id ?? ffi.nullptr, components?._id ?? ffi.nullptr); + } + + static NSCalendar new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSCalendar1, _lib._sel_new1); + return NSCalendar._(_ret, _lib, retain: false, release: true); + } + + static NSCalendar allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSCalendar1, _lib._sel_allocWithZone_1, zone); + return NSCalendar._(_ret, _lib, retain: false, release: true); + } + + static NSCalendar alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSCalendar1, _lib._sel_alloc1); + return NSCalendar._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSCalendar1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSCalendar1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSCalendar1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSCalendar1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSCalendar1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSCalendar1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSCalendar1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSCalendar1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSCalendar1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSCalendarUnit { + static const int NSCalendarUnitEra = 2; + static const int NSCalendarUnitYear = 4; + static const int NSCalendarUnitMonth = 8; + static const int NSCalendarUnitDay = 16; + static const int NSCalendarUnitHour = 32; + static const int NSCalendarUnitMinute = 64; + static const int NSCalendarUnitSecond = 128; + static const int NSCalendarUnitWeekday = 512; + static const int NSCalendarUnitWeekdayOrdinal = 1024; + static const int NSCalendarUnitQuarter = 2048; + static const int NSCalendarUnitWeekOfMonth = 4096; + static const int NSCalendarUnitWeekOfYear = 8192; + static const int NSCalendarUnitYearForWeekOfYear = 16384; + static const int NSCalendarUnitNanosecond = 32768; + static const int NSCalendarUnitDayOfYear = 65536; + static const int NSCalendarUnitCalendar = 1048576; + static const int NSCalendarUnitTimeZone = 2097152; + static const int NSCalendarUnitIsLeapMonth = 1073741824; + static const int NSCalendarUnitIsRepeatedDay = 2147483648; + static const int NSEraCalendarUnit = 2; + static const int NSYearCalendarUnit = 4; + static const int NSMonthCalendarUnit = 8; + static const int NSDayCalendarUnit = 16; + static const int NSHourCalendarUnit = 32; + static const int NSMinuteCalendarUnit = 64; + static const int NSSecondCalendarUnit = 128; + static const int NSWeekCalendarUnit = 256; + static const int NSWeekdayCalendarUnit = 512; + static const int NSWeekdayOrdinalCalendarUnit = 1024; + static const int NSQuarterCalendarUnit = 2048; + static const int NSWeekOfMonthCalendarUnit = 4096; + static const int NSWeekOfYearCalendarUnit = 8192; + static const int NSYearForWeekOfYearCalendarUnit = 16384; + static const int NSCalendarCalendarUnit = 1048576; + static const int NSTimeZoneCalendarUnit = 2097152; +} + +class NSDateComponents extends NSObject { + NSDateComponents._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSDateComponents] that points to the same underlying object as [other]. + static NSDateComponents castFrom(T other) { + return NSDateComponents._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSDateComponents] that wraps the given raw object pointer. + static NSDateComponents castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSDateComponents._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSDateComponents]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSDateComponents1); + } + + NSCalendar? get calendar { + final _ret = _lib._objc_msgSend_720(_id, _lib._sel_calendar1); + return _ret.address == 0 + ? null + : NSCalendar._(_ret, _lib, retain: true, release: true); + } + + set calendar(NSCalendar? value) { + return _lib._objc_msgSend_726( + _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); + } + + NSTimeZone? get timeZone { + final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + set timeZone(NSTimeZone? value) { + return _lib._objc_msgSend_169( + _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); + } + + int get era { + return _lib._objc_msgSend_78(_id, _lib._sel_era1); + } + + set era(int value) { + return _lib._objc_msgSend_605(_id, _lib._sel_setEra_1, value); + } + + int get year { + return _lib._objc_msgSend_78(_id, _lib._sel_year1); + } + + set year(int value) { + return _lib._objc_msgSend_605(_id, _lib._sel_setYear_1, value); + } + + int get month { + return _lib._objc_msgSend_78(_id, _lib._sel_month1); + } + + set month(int value) { + return _lib._objc_msgSend_605(_id, _lib._sel_setMonth_1, value); + } + + int get day { + return _lib._objc_msgSend_78(_id, _lib._sel_day1); + } + + set day(int value) { + return _lib._objc_msgSend_605(_id, _lib._sel_setDay_1, value); + } + + int get hour { + return _lib._objc_msgSend_78(_id, _lib._sel_hour1); + } + + set hour(int value) { + return _lib._objc_msgSend_605(_id, _lib._sel_setHour_1, value); + } + + int get minute { + return _lib._objc_msgSend_78(_id, _lib._sel_minute1); + } + + set minute(int value) { + return _lib._objc_msgSend_605(_id, _lib._sel_setMinute_1, value); + } + + int get second { + return _lib._objc_msgSend_78(_id, _lib._sel_second1); + } + + set second(int value) { + return _lib._objc_msgSend_605(_id, _lib._sel_setSecond_1, value); + } + + int get nanosecond { + return _lib._objc_msgSend_78(_id, _lib._sel_nanosecond1); + } + + set nanosecond(int value) { + return _lib._objc_msgSend_605(_id, _lib._sel_setNanosecond_1, value); + } + + int get weekday { + return _lib._objc_msgSend_78(_id, _lib._sel_weekday1); + } + + set weekday(int value) { + return _lib._objc_msgSend_605(_id, _lib._sel_setWeekday_1, value); + } + + int get weekdayOrdinal { + return _lib._objc_msgSend_78(_id, _lib._sel_weekdayOrdinal1); + } + + set weekdayOrdinal(int value) { + return _lib._objc_msgSend_605(_id, _lib._sel_setWeekdayOrdinal_1, value); + } + + int get quarter { + return _lib._objc_msgSend_78(_id, _lib._sel_quarter1); + } + + set quarter(int value) { + return _lib._objc_msgSend_605(_id, _lib._sel_setQuarter_1, value); + } + + int get weekOfMonth { + return _lib._objc_msgSend_78(_id, _lib._sel_weekOfMonth1); + } + + set weekOfMonth(int value) { + return _lib._objc_msgSend_605(_id, _lib._sel_setWeekOfMonth_1, value); + } + + int get weekOfYear { + return _lib._objc_msgSend_78(_id, _lib._sel_weekOfYear1); + } + + set weekOfYear(int value) { + return _lib._objc_msgSend_605(_id, _lib._sel_setWeekOfYear_1, value); + } + + int get yearForWeekOfYear { + return _lib._objc_msgSend_78(_id, _lib._sel_yearForWeekOfYear1); + } + + set yearForWeekOfYear(int value) { + return _lib._objc_msgSend_605(_id, _lib._sel_setYearForWeekOfYear_1, value); + } + + int get dayOfYear { + return _lib._objc_msgSend_78(_id, _lib._sel_dayOfYear1); + } + + set dayOfYear(int value) { + return _lib._objc_msgSend_605(_id, _lib._sel_setDayOfYear_1, value); + } + + bool get leapMonth { + return _lib._objc_msgSend_12(_id, _lib._sel_isLeapMonth1); + } + + set leapMonth(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setLeapMonth_1, value); + } + + bool get repeatedDay { + return _lib._objc_msgSend_12(_id, _lib._sel_isRepeatedDay1); + } + + set repeatedDay(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setRepeatedDay_1, value); + } + + NSDate? get date { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_date1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + int week() { + return _lib._objc_msgSend_78(_id, _lib._sel_week1); + } + + void setWeek_(int v) { + _lib._objc_msgSend_396(_id, _lib._sel_setWeek_1, v); + } + + void setValue_forComponent_(int value, int unit) { + _lib._objc_msgSend_727(_id, _lib._sel_setValue_forComponent_1, value, unit); + } + + int valueForComponent_(int unit) { + return _lib._objc_msgSend_728(_id, _lib._sel_valueForComponent_1, unit); + } + + bool get validDate { + return _lib._objc_msgSend_12(_id, _lib._sel_isValidDate1); + } + + bool isValidDateInCalendar_(NSCalendar? calendar) { + return _lib._objc_msgSend_729( + _id, _lib._sel_isValidDateInCalendar_1, calendar?._id ?? ffi.nullptr); + } + + @override + NSDateComponents init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSDateComponents._(_ret, _lib, retain: true, release: true); + } + + static NSDateComponents new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDateComponents1, _lib._sel_new1); + return NSDateComponents._(_ret, _lib, retain: false, release: true); + } + + static NSDateComponents allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSDateComponents1, _lib._sel_allocWithZone_1, zone); + return NSDateComponents._(_ret, _lib, retain: false, release: true); + } + + static NSDateComponents alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSDateComponents1, _lib._sel_alloc1); + return NSDateComponents._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSDateComponents1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSDateComponents1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSDateComponents1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSDateComponents1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSDateComponents1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSDateComponents1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSDateComponents1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSDateComponents1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDateComponents1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSCalendarOptions { + static const int NSCalendarWrapComponents = 1; + static const int NSCalendarMatchStrictly = 2; + static const int NSCalendarSearchBackwards = 4; + static const int NSCalendarMatchPreviousTimePreservingSmallerUnits = 256; + static const int NSCalendarMatchNextTimePreservingSmallerUnits = 512; + static const int NSCalendarMatchNextTime = 1024; + static const int NSCalendarMatchFirst = 4096; + static const int NSCalendarMatchLast = 8192; +} + +void _ObjCBlock_ffiVoid_NSDate_bool_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer arg0, bool arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSDate_bool_bool_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSDate_bool_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, bool, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock_ffiVoid_NSDate_bool_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDate_bool_bool._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSDate_bool_bool.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_NSDate_bool_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSDate_bool_bool.fromFunction( + SentryCocoa lib, + void Function(ffi.Pointer arg0, bool arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_NSDate_bool_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSDate_bool_bool_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call( + ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Bool arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +class NSNumberFormatter extends NSFormatter { + NSNumberFormatter._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSNumberFormatter] that points to the same underlying object as [other]. + static NSNumberFormatter castFrom(T other) { + return NSNumberFormatter._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSNumberFormatter] that wraps the given raw object pointer. + static NSNumberFormatter castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSNumberFormatter._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSNumberFormatter]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSNumberFormatter1); + } + + int get formattingContext { + return _lib._objc_msgSend_710(_id, _lib._sel_formattingContext1); + } + + set formattingContext(int value) { + return _lib._objc_msgSend_711(_id, _lib._sel_setFormattingContext_1, value); + } + + bool getObjectValue_forString_range_error_( + ffi.Pointer> obj, + NSString? string, + ffi.Pointer<_NSRange> rangep, + ffi.Pointer> error) { + return _lib._objc_msgSend_712( + _id, + _lib._sel_getObjectValue_forString_range_error_1, + obj, + string?._id ?? ffi.nullptr, + rangep, + error); + } + + NSString stringFromNumber_(NSNumber? number) { + final _ret = _lib._objc_msgSend_752( + _id, _lib._sel_stringFromNumber_1, number?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSNumber numberFromString_(NSString? string) { + final _ret = _lib._objc_msgSend_753( + _id, _lib._sel_numberFromString_1, string?._id ?? ffi.nullptr); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + static NSString localizedStringFromNumber_numberStyle_( + SentryCocoa _lib, NSNumber? num, int nstyle) { + final _ret = _lib._objc_msgSend_754( + _lib._class_NSNumberFormatter1, + _lib._sel_localizedStringFromNumber_numberStyle_1, + num?._id ?? ffi.nullptr, + nstyle); + return NSString._(_ret, _lib, retain: true, release: true); + } + + static int defaultFormatterBehavior(SentryCocoa _lib) { + return _lib._objc_msgSend_755( + _lib._class_NSNumberFormatter1, _lib._sel_defaultFormatterBehavior1); + } + + static void setDefaultFormatterBehavior_(SentryCocoa _lib, int behavior) { + _lib._objc_msgSend_756(_lib._class_NSNumberFormatter1, + _lib._sel_setDefaultFormatterBehavior_1, behavior); + } + + int get minimumGroupingDigits { + return _lib._objc_msgSend_78(_id, _lib._sel_minimumGroupingDigits1); + } + + set minimumGroupingDigits(int value) { + return _lib._objc_msgSend_605( + _id, _lib._sel_setMinimumGroupingDigits_1, value); + } + + int get numberStyle { + return _lib._objc_msgSend_757(_id, _lib._sel_numberStyle1); + } + + set numberStyle(int value) { + return _lib._objc_msgSend_758(_id, _lib._sel_setNumberStyle_1, value); + } + + NSLocale? get locale { + final _ret = _lib._objc_msgSend_182(_id, _lib._sel_locale1); + return _ret.address == 0 + ? null + : NSLocale._(_ret, _lib, retain: true, release: true); + } + + set locale(NSLocale? value) { + return _lib._objc_msgSend_719( + _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); + } + + bool get generatesDecimalNumbers { + return _lib._objc_msgSend_12(_id, _lib._sel_generatesDecimalNumbers1); + } + + set generatesDecimalNumbers(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setGeneratesDecimalNumbers_1, value); + } + + int get formatterBehavior { + return _lib._objc_msgSend_755(_id, _lib._sel_formatterBehavior1); + } + + set formatterBehavior(int value) { + return _lib._objc_msgSend_759(_id, _lib._sel_setFormatterBehavior_1, value); + } + + NSString? get negativeFormat { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeFormat1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set negativeFormat(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setNegativeFormat_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get textAttributesForNegativeValues { + final _ret = + _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForNegativeValues1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set textAttributesForNegativeValues(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, + _lib._sel_setTextAttributesForNegativeValues_1, + value?._id ?? ffi.nullptr); + } + + NSString? get positiveFormat { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveFormat1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set positiveFormat(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setPositiveFormat_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get textAttributesForPositiveValues { + final _ret = + _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForPositiveValues1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set textAttributesForPositiveValues(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, + _lib._sel_setTextAttributesForPositiveValues_1, + value?._id ?? ffi.nullptr); + } + + bool get allowsFloats { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsFloats1); + } + + set allowsFloats(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setAllowsFloats_1, value); + } + + NSString? get decimalSeparator { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_decimalSeparator1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set decimalSeparator(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setDecimalSeparator_1, value?._id ?? ffi.nullptr); + } + + bool get alwaysShowsDecimalSeparator { + return _lib._objc_msgSend_12(_id, _lib._sel_alwaysShowsDecimalSeparator1); + } + + set alwaysShowsDecimalSeparator(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setAlwaysShowsDecimalSeparator_1, value); + } + + NSString? get currencyDecimalSeparator { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_currencyDecimalSeparator1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set currencyDecimalSeparator(NSString? value) { + return _lib._objc_msgSend_444(_id, _lib._sel_setCurrencyDecimalSeparator_1, + value?._id ?? ffi.nullptr); + } + + bool get usesGroupingSeparator { + return _lib._objc_msgSend_12(_id, _lib._sel_usesGroupingSeparator1); + } + + set usesGroupingSeparator(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setUsesGroupingSeparator_1, value); + } + + NSString? get groupingSeparator { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_groupingSeparator1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set groupingSeparator(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setGroupingSeparator_1, value?._id ?? ffi.nullptr); + } + + NSString? get zeroSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_zeroSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set zeroSymbol(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setZeroSymbol_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get textAttributesForZero { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForZero1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set textAttributesForZero(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setTextAttributesForZero_1, value?._id ?? ffi.nullptr); + } + + NSString? get nilSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_nilSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set nilSymbol(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setNilSymbol_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get textAttributesForNil { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForNil1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set textAttributesForNil(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setTextAttributesForNil_1, value?._id ?? ffi.nullptr); + } + + NSString? get notANumberSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_notANumberSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set notANumberSymbol(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setNotANumberSymbol_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get textAttributesForNotANumber { + final _ret = + _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForNotANumber1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set textAttributesForNotANumber(NSDictionary? value) { + return _lib._objc_msgSend_171(_id, + _lib._sel_setTextAttributesForNotANumber_1, value?._id ?? ffi.nullptr); + } + + NSString? get positiveInfinitySymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveInfinitySymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set positiveInfinitySymbol(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setPositiveInfinitySymbol_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get textAttributesForPositiveInfinity { + final _ret = _lib._objc_msgSend_170( + _id, _lib._sel_textAttributesForPositiveInfinity1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set textAttributesForPositiveInfinity(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, + _lib._sel_setTextAttributesForPositiveInfinity_1, + value?._id ?? ffi.nullptr); + } + + NSString? get negativeInfinitySymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeInfinitySymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set negativeInfinitySymbol(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setNegativeInfinitySymbol_1, value?._id ?? ffi.nullptr); + } + + NSDictionary? get textAttributesForNegativeInfinity { + final _ret = _lib._objc_msgSend_170( + _id, _lib._sel_textAttributesForNegativeInfinity1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set textAttributesForNegativeInfinity(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, + _lib._sel_setTextAttributesForNegativeInfinity_1, + value?._id ?? ffi.nullptr); + } + + NSString? get positivePrefix { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positivePrefix1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set positivePrefix(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setPositivePrefix_1, value?._id ?? ffi.nullptr); + } + + NSString? get positiveSuffix { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveSuffix1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set positiveSuffix(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setPositiveSuffix_1, value?._id ?? ffi.nullptr); + } + + NSString? get negativePrefix { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativePrefix1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set negativePrefix(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setNegativePrefix_1, value?._id ?? ffi.nullptr); + } + + NSString? get negativeSuffix { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeSuffix1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set negativeSuffix(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setNegativeSuffix_1, value?._id ?? ffi.nullptr); + } + + NSString? get currencyCode { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencyCode1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set currencyCode(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setCurrencyCode_1, value?._id ?? ffi.nullptr); + } + + NSString? get currencySymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencySymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set currencySymbol(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setCurrencySymbol_1, value?._id ?? ffi.nullptr); + } + + NSString? get internationalCurrencySymbol { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_internationalCurrencySymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set internationalCurrencySymbol(NSString? value) { + return _lib._objc_msgSend_444(_id, + _lib._sel_setInternationalCurrencySymbol_1, value?._id ?? ffi.nullptr); + } + + NSString? get percentSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_percentSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set percentSymbol(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setPercentSymbol_1, value?._id ?? ffi.nullptr); + } + + NSString? get perMillSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_perMillSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } - /// Returns a [NSMutableString] that points to the same underlying object as [other]. - static NSMutableString castFrom(T other) { - return NSMutableString._(other._id, other._lib, - retain: true, release: true); + set perMillSymbol(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setPerMillSymbol_1, value?._id ?? ffi.nullptr); } - /// Returns a [NSMutableString] that wraps the given raw object pointer. - static NSMutableString castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMutableString._(other, lib, retain: retain, release: release); + NSString? get minusSign { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_minusSign1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSMutableString]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableString1); + set minusSign(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setMinusSign_1, value?._id ?? ffi.nullptr); } - void replaceCharactersInRange_withString_(_NSRange range, NSString? aString) { - _lib._objc_msgSend_641(_id, _lib._sel_replaceCharactersInRange_withString_1, - range, aString?._id ?? ffi.nullptr); + NSString? get plusSign { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_plusSign1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void insertString_atIndex_(NSString? aString, int loc) { - _lib._objc_msgSend_642(_id, _lib._sel_insertString_atIndex_1, - aString?._id ?? ffi.nullptr, loc); + set plusSign(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setPlusSign_1, value?._id ?? ffi.nullptr); } - void deleteCharactersInRange_(_NSRange range) { - _lib._objc_msgSend_447(_id, _lib._sel_deleteCharactersInRange_1, range); + NSString? get exponentSymbol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_exponentSymbol1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void appendString_(NSString? aString) { - _lib._objc_msgSend_192( - _id, _lib._sel_appendString_1, aString?._id ?? ffi.nullptr); + set exponentSymbol(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setExponentSymbol_1, value?._id ?? ffi.nullptr); } - void appendFormat_(NSString? format) { - _lib._objc_msgSend_192( - _id, _lib._sel_appendFormat_1, format?._id ?? ffi.nullptr); + int get groupingSize { + return _lib._objc_msgSend_10(_id, _lib._sel_groupingSize1); } - void setString_(NSString? aString) { - _lib._objc_msgSend_192( - _id, _lib._sel_setString_1, aString?._id ?? ffi.nullptr); + set groupingSize(int value) { + return _lib._objc_msgSend_500(_id, _lib._sel_setGroupingSize_1, value); } - int replaceOccurrencesOfString_withString_options_range_(NSString? target, - NSString? replacement, int options, _NSRange searchRange) { - return _lib._objc_msgSend_643( - _id, - _lib._sel_replaceOccurrencesOfString_withString_options_range_1, - target?._id ?? ffi.nullptr, - replacement?._id ?? ffi.nullptr, - options, - searchRange); + int get secondaryGroupingSize { + return _lib._objc_msgSend_10(_id, _lib._sel_secondaryGroupingSize1); } - bool applyTransform_reverse_range_updatedRange_(NSString transform, - bool reverse, _NSRange range, ffi.Pointer<_NSRange> resultingRange) { - return _lib._objc_msgSend_644( - _id, - _lib._sel_applyTransform_reverse_range_updatedRange_1, - transform._id, - reverse, - range, - resultingRange); + set secondaryGroupingSize(int value) { + return _lib._objc_msgSend_500( + _id, _lib._sel_setSecondaryGroupingSize_1, value); } - NSMutableString initWithCapacity_(int capacity) { - final _ret = - _lib._objc_msgSend_645(_id, _lib._sel_initWithCapacity_1, capacity); - return NSMutableString._(_ret, _lib, retain: true, release: true); + NSNumber? get multiplier { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_multiplier1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithCapacity_(SentryCocoa _lib, int capacity) { - final _ret = _lib._objc_msgSend_645( - _lib._class_NSMutableString1, _lib._sel_stringWithCapacity_1, capacity); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set multiplier(NSNumber? value) { + return _lib._objc_msgSend_635( + _id, _lib._sel_setMultiplier_1, value?._id ?? ffi.nullptr); } - @override - NSMutableString init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableString._(_ret, _lib, retain: true, release: true); + int get formatWidth { + return _lib._objc_msgSend_10(_id, _lib._sel_formatWidth1); } - @override - NSMutableString initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set formatWidth(int value) { + return _lib._objc_msgSend_500(_id, _lib._sel_setFormatWidth_1, value); } - static ffi.Pointer getAvailableStringEncodings( - SentryCocoa _lib) { - return _lib._objc_msgSend_335( - _lib._class_NSMutableString1, _lib._sel_availableStringEncodings1); + NSString? get paddingCharacter { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_paddingCharacter1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString localizedNameOfStringEncoding_( - SentryCocoa _lib, int encoding) { - final _ret = _lib._objc_msgSend_310(_lib._class_NSMutableString1, - _lib._sel_localizedNameOfStringEncoding_1, encoding); - return NSString._(_ret, _lib, retain: true, release: true); + set paddingCharacter(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setPaddingCharacter_1, value?._id ?? ffi.nullptr); } - static int getDefaultCStringEncoding(SentryCocoa _lib) { - return _lib._objc_msgSend_10( - _lib._class_NSMutableString1, _lib._sel_defaultCStringEncoding1); + int get paddingPosition { + return _lib._objc_msgSend_760(_id, _lib._sel_paddingPosition1); } - @override - NSMutableString initWithCharactersNoCopy_length_freeWhenDone_( - ffi.Pointer characters, int length, bool freeBuffer) { - final _ret = _lib._objc_msgSend_346( - _id, - _lib._sel_initWithCharactersNoCopy_length_freeWhenDone_1, - characters, - length, - freeBuffer); - return NSMutableString._(_ret, _lib, retain: false, release: true); + set paddingPosition(int value) { + return _lib._objc_msgSend_761(_id, _lib._sel_setPaddingPosition_1, value); } - @override - NSMutableString initWithCharactersNoCopy_length_deallocator_( - ffi.Pointer chars, - int len, - ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong deallocator) { - final _ret = _lib._objc_msgSend_347( - _id, - _lib._sel_initWithCharactersNoCopy_length_deallocator_1, - chars, - len, - deallocator._id); - return NSMutableString._(_ret, _lib, retain: false, release: true); + int get roundingMode { + return _lib._objc_msgSend_762(_id, _lib._sel_roundingMode1); } - @override - NSMutableString initWithCharacters_length_( - ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_348( - _id, _lib._sel_initWithCharacters_length_1, characters, length); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set roundingMode(int value) { + return _lib._objc_msgSend_763(_id, _lib._sel_setRoundingMode_1, value); } - @override - NSMutableString initWithUTF8String_( - ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_349( - _id, _lib._sel_initWithUTF8String_1, nullTerminatedCString); - return NSMutableString._(_ret, _lib, retain: true, release: true); + NSNumber? get roundingIncrement { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_roundingIncrement1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - @override - NSMutableString initWithString_(NSString? aString) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, aString?._id ?? ffi.nullptr); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set roundingIncrement(NSNumber? value) { + return _lib._objc_msgSend_635( + _id, _lib._sel_setRoundingIncrement_1, value?._id ?? ffi.nullptr); } - @override - NSMutableString initWithFormat_(NSString? format) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithFormat_1, format?._id ?? ffi.nullptr); - return NSMutableString._(_ret, _lib, retain: true, release: true); + int get minimumIntegerDigits { + return _lib._objc_msgSend_10(_id, _lib._sel_minimumIntegerDigits1); } - @override - NSMutableString initWithFormat_arguments_( - NSString? format, ffi.Pointer<__va_list_tag> argList) { - final _ret = _lib._objc_msgSend_350( - _id, - _lib._sel_initWithFormat_arguments_1, - format?._id ?? ffi.nullptr, - argList); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set minimumIntegerDigits(int value) { + return _lib._objc_msgSend_500( + _id, _lib._sel_setMinimumIntegerDigits_1, value); } - @override - NSMutableString initWithFormat_locale_(NSString? format, NSObject locale) { - final _ret = _lib._objc_msgSend_163(_id, _lib._sel_initWithFormat_locale_1, - format?._id ?? ffi.nullptr, locale._id); - return NSMutableString._(_ret, _lib, retain: true, release: true); + int get maximumIntegerDigits { + return _lib._objc_msgSend_10(_id, _lib._sel_maximumIntegerDigits1); } - @override - NSMutableString initWithFormat_locale_arguments_( - NSString? format, NSObject locale, ffi.Pointer<__va_list_tag> argList) { - final _ret = _lib._objc_msgSend_351( - _id, - _lib._sel_initWithFormat_locale_arguments_1, - format?._id ?? ffi.nullptr, - locale._id, - argList); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set maximumIntegerDigits(int value) { + return _lib._objc_msgSend_500( + _id, _lib._sel_setMaximumIntegerDigits_1, value); } - @override - NSMutableString initWithValidatedFormat_validFormatSpecifiers_error_( - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_352( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + int get minimumFractionDigits { + return _lib._objc_msgSend_10(_id, _lib._sel_minimumFractionDigits1); } - @override - NSMutableString initWithValidatedFormat_validFormatSpecifiers_locale_error_( - NSString? format, - NSString? validFormatSpecifiers, - NSObject locale, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_353( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - locale._id, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set minimumFractionDigits(int value) { + return _lib._objc_msgSend_500( + _id, _lib._sel_setMinimumFractionDigits_1, value); } - @override - NSMutableString - initWithValidatedFormat_validFormatSpecifiers_arguments_error_( - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer<__va_list_tag> argList, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_354( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_arguments_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - argList, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + int get maximumFractionDigits { + return _lib._objc_msgSend_10(_id, _lib._sel_maximumFractionDigits1); } - @override - NSMutableString - initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_( - NSString? format, - NSString? validFormatSpecifiers, - NSObject locale, - ffi.Pointer<__va_list_tag> argList, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_355( - _id, - _lib._sel_initWithValidatedFormat_validFormatSpecifiers_locale_arguments_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - locale._id, - argList, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set maximumFractionDigits(int value) { + return _lib._objc_msgSend_500( + _id, _lib._sel_setMaximumFractionDigits_1, value); } - @override - NSMutableString initWithData_encoding_(NSData? data, int encoding) { - final _ret = _lib._objc_msgSend_356(_id, _lib._sel_initWithData_encoding_1, - data?._id ?? ffi.nullptr, encoding); - return NSMutableString._(_ret, _lib, retain: true, release: true); + NSNumber? get minimum { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_minimum1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - @override - NSMutableString initWithBytes_length_encoding_( - ffi.Pointer bytes, int len, int encoding) { - final _ret = _lib._objc_msgSend_357( - _id, _lib._sel_initWithBytes_length_encoding_1, bytes, len, encoding); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set minimum(NSNumber? value) { + return _lib._objc_msgSend_635( + _id, _lib._sel_setMinimum_1, value?._id ?? ffi.nullptr); } - @override - NSMutableString initWithBytesNoCopy_length_encoding_freeWhenDone_( - ffi.Pointer bytes, int len, int encoding, bool freeBuffer) { - final _ret = _lib._objc_msgSend_358( - _id, - _lib._sel_initWithBytesNoCopy_length_encoding_freeWhenDone_1, - bytes, - len, - encoding, - freeBuffer); - return NSMutableString._(_ret, _lib, retain: false, release: true); + NSNumber? get maximum { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_maximum1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - @override - NSMutableString initWithBytesNoCopy_length_encoding_deallocator_( - ffi.Pointer bytes, - int len, - int encoding, - ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong deallocator) { - final _ret = _lib._objc_msgSend_359( - _id, - _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, - bytes, - len, - encoding, - deallocator._id); - return NSMutableString._(_ret, _lib, retain: false, release: true); + set maximum(NSNumber? value) { + return _lib._objc_msgSend_635( + _id, _lib._sel_setMaximum_1, value?._id ?? ffi.nullptr); } - static NSMutableString string(SentryCocoa _lib) { + NSString? get currencyGroupingSeparator { final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_string1); - return NSMutableString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_20(_id, _lib._sel_currencyGroupingSeparator1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithString_(SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_stringWithString_1, string?._id ?? ffi.nullptr); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set currencyGroupingSeparator(NSString? value) { + return _lib._objc_msgSend_444(_id, _lib._sel_setCurrencyGroupingSeparator_1, + value?._id ?? ffi.nullptr); } - static NSMutableString stringWithCharacters_length_( - SentryCocoa _lib, ffi.Pointer characters, int length) { - final _ret = _lib._objc_msgSend_348(_lib._class_NSMutableString1, - _lib._sel_stringWithCharacters_length_1, characters, length); - return NSMutableString._(_ret, _lib, retain: true, release: true); + bool get lenient { + return _lib._objc_msgSend_12(_id, _lib._sel_isLenient1); } - static NSMutableString stringWithUTF8String_( - SentryCocoa _lib, ffi.Pointer nullTerminatedCString) { - final _ret = _lib._objc_msgSend_349(_lib._class_NSMutableString1, - _lib._sel_stringWithUTF8String_1, nullTerminatedCString); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set lenient(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setLenient_1, value); } - static NSMutableString stringWithFormat_(SentryCocoa _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_stringWithFormat_1, format?._id ?? ffi.nullptr); - return NSMutableString._(_ret, _lib, retain: true, release: true); + bool get usesSignificantDigits { + return _lib._objc_msgSend_12(_id, _lib._sel_usesSignificantDigits1); } - static NSMutableString localizedStringWithFormat_( - SentryCocoa _lib, NSString? format) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_localizedStringWithFormat_1, format?._id ?? ffi.nullptr); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set usesSignificantDigits(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setUsesSignificantDigits_1, value); } - static NSMutableString stringWithValidatedFormat_validFormatSpecifiers_error_( - SentryCocoa _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_352( - _lib._class_NSMutableString1, - _lib._sel_stringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + int get minimumSignificantDigits { + return _lib._objc_msgSend_10(_id, _lib._sel_minimumSignificantDigits1); } - static NSMutableString - localizedStringWithValidatedFormat_validFormatSpecifiers_error_( - SentryCocoa _lib, - NSString? format, - NSString? validFormatSpecifiers, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_352( - _lib._class_NSMutableString1, - _lib._sel_localizedStringWithValidatedFormat_validFormatSpecifiers_error_1, - format?._id ?? ffi.nullptr, - validFormatSpecifiers?._id ?? ffi.nullptr, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set minimumSignificantDigits(int value) { + return _lib._objc_msgSend_500( + _id, _lib._sel_setMinimumSignificantDigits_1, value); } - @override - NSMutableString initWithCString_encoding_( - ffi.Pointer nullTerminatedCString, int encoding) { - final _ret = _lib._objc_msgSend_360(_id, - _lib._sel_initWithCString_encoding_1, nullTerminatedCString, encoding); - return NSMutableString._(_ret, _lib, retain: true, release: true); + int get maximumSignificantDigits { + return _lib._objc_msgSend_10(_id, _lib._sel_maximumSignificantDigits1); } - static NSMutableString stringWithCString_encoding_( - SentryCocoa _lib, ffi.Pointer cString, int enc) { - final _ret = _lib._objc_msgSend_360(_lib._class_NSMutableString1, - _lib._sel_stringWithCString_encoding_1, cString, enc); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set maximumSignificantDigits(int value) { + return _lib._objc_msgSend_500( + _id, _lib._sel_setMaximumSignificantDigits_1, value); } - @override - NSMutableString initWithContentsOfURL_encoding_error_( - NSURL? url, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_361( - _id, - _lib._sel_initWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + bool get partialStringValidationEnabled { + return _lib._objc_msgSend_12( + _id, _lib._sel_isPartialStringValidationEnabled1); } - @override - NSMutableString initWithContentsOfFile_encoding_error_( - NSString? path, int enc, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_362( - _id, - _lib._sel_initWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set partialStringValidationEnabled(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setPartialStringValidationEnabled_1, value); } - static NSMutableString stringWithContentsOfURL_encoding_error_( - SentryCocoa _lib, - NSURL? url, - int enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_361( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_encoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + bool get hasThousandSeparators { + return _lib._objc_msgSend_12(_id, _lib._sel_hasThousandSeparators1); } - static NSMutableString stringWithContentsOfFile_encoding_error_( - SentryCocoa _lib, - NSString? path, - int enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_362( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_encoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set hasThousandSeparators(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setHasThousandSeparators_1, value); } - @override - NSMutableString initWithContentsOfURL_usedEncoding_error_( - NSURL? url, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_363( - _id, - _lib._sel_initWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + NSString? get thousandSeparator { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_thousandSeparator1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - NSMutableString initWithContentsOfFile_usedEncoding_error_( - NSString? path, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_364( - _id, - _lib._sel_initWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set thousandSeparator(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setThousandSeparator_1, value?._id ?? ffi.nullptr); + } + + bool get localizesFormat { + return _lib._objc_msgSend_12(_id, _lib._sel_localizesFormat1); + } + + set localizesFormat(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setLocalizesFormat_1, value); + } + + NSString? get format { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_format1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set format(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setFormat_1, value?._id ?? ffi.nullptr); + } + + NSAttributedString? get attributedStringForZero { + final _ret = + _lib._objc_msgSend_694(_id, _lib._sel_attributedStringForZero1); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); } - static NSMutableString stringWithContentsOfURL_usedEncoding_error_( - SentryCocoa _lib, - NSURL? url, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_363( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_usedEncoding_error_1, - url?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + set attributedStringForZero(NSAttributedString? value) { + return _lib._objc_msgSend_764( + _id, _lib._sel_setAttributedStringForZero_1, value?._id ?? ffi.nullptr); } - static NSMutableString stringWithContentsOfFile_usedEncoding_error_( - SentryCocoa _lib, - NSString? path, - ffi.Pointer enc, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_364( - _lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_usedEncoding_error_1, - path?._id ?? ffi.nullptr, - enc, - error); - return NSMutableString._(_ret, _lib, retain: true, release: true); + NSAttributedString? get attributedStringForNil { + final _ret = _lib._objc_msgSend_694(_id, _lib._sel_attributedStringForNil1); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); } - static int - stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_( - SentryCocoa _lib, - NSData? data, - NSDictionary? opts, - ffi.Pointer> string, - ffi.Pointer usedLossyConversion) { - return _lib._objc_msgSend_365( - _lib._class_NSMutableString1, - _lib._sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1, - data?._id ?? ffi.nullptr, - opts?._id ?? ffi.nullptr, - string, - usedLossyConversion); + set attributedStringForNil(NSAttributedString? value) { + return _lib._objc_msgSend_764( + _id, _lib._sel_setAttributedStringForNil_1, value?._id ?? ffi.nullptr); } - static NSObject stringWithContentsOfFile_(SentryCocoa _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfFile_1, path?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSAttributedString? get attributedStringForNotANumber { + final _ret = + _lib._objc_msgSend_694(_id, _lib._sel_attributedStringForNotANumber1); + return _ret.address == 0 + ? null + : NSAttributedString._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithContentsOfURL_(SentryCocoa _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSMutableString1, - _lib._sel_stringWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + set attributedStringForNotANumber(NSAttributedString? value) { + return _lib._objc_msgSend_764( + _id, + _lib._sel_setAttributedStringForNotANumber_1, + value?._id ?? ffi.nullptr); } - static NSObject stringWithCString_length_( - SentryCocoa _lib, ffi.Pointer bytes, int length) { - final _ret = _lib._objc_msgSend_360(_lib._class_NSMutableString1, - _lib._sel_stringWithCString_length_1, bytes, length); - return NSObject._(_ret, _lib, retain: true, release: true); + NSDecimalNumberHandler? get roundingBehavior { + final _ret = _lib._objc_msgSend_765(_id, _lib._sel_roundingBehavior1); + return _ret.address == 0 + ? null + : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); } - static NSObject stringWithCString_( - SentryCocoa _lib, ffi.Pointer bytes) { - final _ret = _lib._objc_msgSend_349( - _lib._class_NSMutableString1, _lib._sel_stringWithCString_1, bytes); - return NSObject._(_ret, _lib, retain: true, release: true); + set roundingBehavior(NSDecimalNumberHandler? value) { + return _lib._objc_msgSend_767( + _id, _lib._sel_setRoundingBehavior_1, value?._id ?? ffi.nullptr); } - static NSString pathWithComponents_(SentryCocoa _lib, NSArray? components) { - final _ret = _lib._objc_msgSend_371(_lib._class_NSMutableString1, - _lib._sel_pathWithComponents_1, components?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + @override + NSNumberFormatter init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSNumberFormatter._(_ret, _lib, retain: true, release: true); } - static NSMutableString new1(SentryCocoa _lib) { + static NSNumberFormatter new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_new1); - return NSMutableString._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSNumberFormatter1, _lib._sel_new1); + return NSNumberFormatter._(_ret, _lib, retain: false, release: true); } - static NSMutableString allocWithZone_( + static NSNumberFormatter allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSMutableString1, _lib._sel_allocWithZone_1, zone); - return NSMutableString._(_ret, _lib, retain: false, release: true); + _lib._class_NSNumberFormatter1, _lib._sel_allocWithZone_1, zone); + return NSNumberFormatter._(_ret, _lib, retain: false, release: true); } - static NSMutableString alloc(SentryCocoa _lib) { + static NSNumberFormatter alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableString1, _lib._sel_alloc1); - return NSMutableString._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSNumberFormatter1, _lib._sel_alloc1); + return NSNumberFormatter._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -52452,7 +60397,7 @@ class NSMutableString extends NSString { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSMutableString1, + _lib._class_NSNumberFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -52461,24 +60406,24 @@ class NSMutableString extends NSString { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableString1, + _lib._objc_msgSend_15(_lib._class_NSNumberFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableString1, + return _lib._objc_msgSend_12(_lib._class_NSNumberFormatter1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMutableString1, _lib._sel_useStoredAccessor1); + _lib._class_NSNumberFormatter1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableString1, + _lib._class_NSNumberFormatter1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -52487,7 +60432,7 @@ class NSMutableString extends NSString { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSMutableString1, + _lib._class_NSNumberFormatter1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -52495,123 +60440,159 @@ class NSMutableString extends NSString { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSMutableString1, + _lib._class_NSNumberFormatter1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableString1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSNumberFormatter1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableString1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSNumberFormatter1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSNotification extends NSObject { - NSNotification._(ffi.Pointer id, SentryCocoa lib, +abstract class NSNumberFormatterStyle { + static const int NSNumberFormatterNoStyle = 0; + static const int NSNumberFormatterDecimalStyle = 1; + static const int NSNumberFormatterCurrencyStyle = 2; + static const int NSNumberFormatterPercentStyle = 3; + static const int NSNumberFormatterScientificStyle = 4; + static const int NSNumberFormatterSpellOutStyle = 5; + static const int NSNumberFormatterOrdinalStyle = 6; + static const int NSNumberFormatterCurrencyISOCodeStyle = 8; + static const int NSNumberFormatterCurrencyPluralStyle = 9; + static const int NSNumberFormatterCurrencyAccountingStyle = 10; +} + +abstract class NSNumberFormatterBehavior { + static const int NSNumberFormatterBehaviorDefault = 0; + static const int NSNumberFormatterBehavior10_0 = 1000; + static const int NSNumberFormatterBehavior10_4 = 1040; +} + +abstract class NSNumberFormatterPadPosition { + static const int NSNumberFormatterPadBeforePrefix = 0; + static const int NSNumberFormatterPadAfterPrefix = 1; + static const int NSNumberFormatterPadBeforeSuffix = 2; + static const int NSNumberFormatterPadAfterSuffix = 3; +} + +abstract class NSNumberFormatterRoundingMode { + static const int NSNumberFormatterRoundCeiling = 0; + static const int NSNumberFormatterRoundFloor = 1; + static const int NSNumberFormatterRoundDown = 2; + static const int NSNumberFormatterRoundUp = 3; + static const int NSNumberFormatterRoundHalfEven = 4; + static const int NSNumberFormatterRoundHalfDown = 5; + static const int NSNumberFormatterRoundHalfUp = 6; +} + +class NSDecimalNumberHandler extends NSObject { + NSDecimalNumberHandler._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSNotification] that points to the same underlying object as [other]. - static NSNotification castFrom(T other) { - return NSNotification._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSDecimalNumberHandler] that points to the same underlying object as [other]. + static NSDecimalNumberHandler castFrom(T other) { + return NSDecimalNumberHandler._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSNotification] that wraps the given raw object pointer. - static NSNotification castFromPointer( + /// Returns a [NSDecimalNumberHandler] that wraps the given raw object pointer. + static NSDecimalNumberHandler castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSNotification._(other, lib, retain: retain, release: release); + return NSDecimalNumberHandler._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSNotification]. + /// Returns whether [obj] is an instance of [NSDecimalNumberHandler]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSNotification1); - } - - NSString get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSObject get object { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_object1); - return NSObject._(_ret, _lib, retain: true, release: true); + obj._lib._class_NSDecimalNumberHandler1); } - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); + static NSDecimalNumberHandler? getDefaultDecimalNumberHandler( + SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_765(_lib._class_NSDecimalNumberHandler1, + _lib._sel_defaultDecimalNumberHandler1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); } - NSNotification initWithName_object_userInfo_( - NSString name, NSObject object, NSDictionary? userInfo) { - final _ret = _lib._objc_msgSend_646( + NSDecimalNumberHandler + initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_( + int roundingMode, + int scale, + bool exact, + bool overflow, + bool underflow, + bool divideByZero) { + final _ret = _lib._objc_msgSend_766( _id, - _lib._sel_initWithName_object_userInfo_1, - name._id, - object._id, - userInfo?._id ?? ffi.nullptr); - return NSNotification._(_ret, _lib, retain: true, release: true); - } - - NSNotification initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSNotification._(_ret, _lib, retain: true, release: true); - } - - static NSNotification notificationWithName_object_( - SentryCocoa _lib, NSString aName, NSObject anObject) { - final _ret = _lib._objc_msgSend_163(_lib._class_NSNotification1, - _lib._sel_notificationWithName_object_1, aName._id, anObject._id); - return NSNotification._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1, + roundingMode, + scale, + exact, + overflow, + underflow, + divideByZero); + return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); } - static NSNotification notificationWithName_object_userInfo_(SentryCocoa _lib, - NSString aName, NSObject anObject, NSDictionary? aUserInfo) { - final _ret = _lib._objc_msgSend_646( - _lib._class_NSNotification1, - _lib._sel_notificationWithName_object_userInfo_1, - aName._id, - anObject._id, - aUserInfo?._id ?? ffi.nullptr); - return NSNotification._(_ret, _lib, retain: true, release: true); + static NSDecimalNumberHandler + decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_( + SentryCocoa _lib, + int roundingMode, + int scale, + bool exact, + bool overflow, + bool underflow, + bool divideByZero) { + final _ret = _lib._objc_msgSend_766( + _lib._class_NSDecimalNumberHandler1, + _lib._sel_decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1, + roundingMode, + scale, + exact, + overflow, + underflow, + divideByZero); + return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); } @override - NSNotification init() { + NSDecimalNumberHandler init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSNotification._(_ret, _lib, retain: true, release: true); + return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); } - static NSNotification new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_new1); - return NSNotification._(_ret, _lib, retain: false, release: true); + static NSDecimalNumberHandler new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDecimalNumberHandler1, _lib._sel_new1); + return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); } - static NSNotification allocWithZone_( + static NSDecimalNumberHandler allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSNotification1, _lib._sel_allocWithZone_1, zone); - return NSNotification._(_ret, _lib, retain: false, release: true); + _lib._class_NSDecimalNumberHandler1, _lib._sel_allocWithZone_1, zone); + return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); } - static NSNotification alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNotification1, _lib._sel_alloc1); - return NSNotification._(_ret, _lib, retain: false, release: true); + static NSDecimalNumberHandler alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSDecimalNumberHandler1, _lib._sel_alloc1); + return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -52620,7 +60601,7 @@ class NSNotification extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSNotification1, + _lib._class_NSDecimalNumberHandler1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -52629,24 +60610,24 @@ class NSNotification extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSNotification1, + _lib._objc_msgSend_15(_lib._class_NSDecimalNumberHandler1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSNotification1, + return _lib._objc_msgSend_12(_lib._class_NSDecimalNumberHandler1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSNotification1, _lib._sel_useStoredAccessor1); + _lib._class_NSDecimalNumberHandler1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSNotification1, + _lib._class_NSDecimalNumberHandler1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -52655,7 +60636,7 @@ class NSNotification extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSNotification1, + _lib._class_NSDecimalNumberHandler1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -52663,533 +60644,409 @@ class NSNotification extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSNotification1, + _lib._class_NSDecimalNumberHandler1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSNotification1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSDecimalNumberHandler1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSNotification1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSDecimalNumberHandler1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSBundle extends NSObject { - NSBundle._(ffi.Pointer id, SentryCocoa lib, +abstract class NSRoundingMode { + static const int NSRoundPlain = 0; + static const int NSRoundDown = 1; + static const int NSRoundUp = 2; + static const int NSRoundBankers = 3; +} + +class NSScanner extends NSObject { + NSScanner._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSBundle] that points to the same underlying object as [other]. - static NSBundle castFrom(T other) { - return NSBundle._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSScanner] that points to the same underlying object as [other]. + static NSScanner castFrom(T other) { + return NSScanner._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSBundle] that wraps the given raw object pointer. - static NSBundle castFromPointer( + /// Returns a [NSScanner] that wraps the given raw object pointer. + static NSScanner castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSBundle._(other, lib, retain: retain, release: release); + return NSScanner._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSBundle]. + /// Returns whether [obj] is an instance of [NSScanner]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSBundle1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSScanner1); } - static NSBundle? getMainBundle(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_647(_lib._class_NSBundle1, _lib._sel_mainBundle1); + NSString? get string { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); return _ret.address == 0 ? null - : NSBundle._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - static NSBundle bundleWithPath_(SentryCocoa _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSBundle1, - _lib._sel_bundleWithPath_1, path?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + int get scanLocation { + return _lib._objc_msgSend_10(_id, _lib._sel_scanLocation1); } - NSBundle initWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithPath_1, path?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + set scanLocation(int value) { + return _lib._objc_msgSend_500(_id, _lib._sel_setScanLocation_1, value); } - static NSBundle bundleWithURL_(SentryCocoa _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSBundle1, - _lib._sel_bundleWithURL_1, url?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + NSCharacterSet? get charactersToBeSkipped { + final _ret = _lib._objc_msgSend_174(_id, _lib._sel_charactersToBeSkipped1); + return _ret.address == 0 + ? null + : NSCharacterSet._(_ret, _lib, retain: true, release: true); } - NSBundle initWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + set charactersToBeSkipped(NSCharacterSet? value) { + return _lib._objc_msgSend_768( + _id, _lib._sel_setCharactersToBeSkipped_1, value?._id ?? ffi.nullptr); } - static NSBundle bundleForClass_(SentryCocoa _lib, NSObject aClass) { - final _ret = _lib._objc_msgSend_648( - _lib._class_NSBundle1, _lib._sel_bundleForClass_1, aClass._id); - return NSBundle._(_ret, _lib, retain: true, release: true); + bool get caseSensitive { + return _lib._objc_msgSend_12(_id, _lib._sel_caseSensitive1); } - static NSBundle bundleWithIdentifier_( - SentryCocoa _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_649(_lib._class_NSBundle1, - _lib._sel_bundleWithIdentifier_1, identifier?._id ?? ffi.nullptr); - return NSBundle._(_ret, _lib, retain: true, release: true); + set caseSensitive(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setCaseSensitive_1, value); } - static NSArray? getAllBundles(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_79(_lib._class_NSBundle1, _lib._sel_allBundles1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSObject get locale { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_locale1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSArray? getAllFrameworks(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_79(_lib._class_NSBundle1, _lib._sel_allFrameworks1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + set locale(NSObject value) { + return _lib._objc_msgSend_389(_id, _lib._sel_setLocale_1, value._id); } - bool load() { - return _lib._objc_msgSend_12(_id, _lib._sel_load1); + NSScanner initWithString_(NSString? string) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, string?._id ?? ffi.nullptr); + return NSScanner._(_ret, _lib, retain: true, release: true); } - bool get loaded { - return _lib._objc_msgSend_12(_id, _lib._sel_isLoaded1); + bool scanInt_(ffi.Pointer result) { + return _lib._objc_msgSend_769(_id, _lib._sel_scanInt_1, result); } - bool unload() { - return _lib._objc_msgSend_12(_id, _lib._sel_unload1); + bool scanInteger_(ffi.Pointer result) { + return _lib._objc_msgSend_770(_id, _lib._sel_scanInteger_1, result); } - bool preflightAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_236( - _id, _lib._sel_preflightAndReturnError_1, error); + bool scanLongLong_(ffi.Pointer result) { + return _lib._objc_msgSend_771(_id, _lib._sel_scanLongLong_1, result); } - bool loadAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_236(_id, _lib._sel_loadAndReturnError_1, error); + bool scanUnsignedLongLong_(ffi.Pointer result) { + return _lib._objc_msgSend_772( + _id, _lib._sel_scanUnsignedLongLong_1, result); } - NSURL? get bundleURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_bundleURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + bool scanFloat_(ffi.Pointer result) { + return _lib._objc_msgSend_773(_id, _lib._sel_scanFloat_1, result); } - NSURL? get resourceURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_resourceURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + bool scanDouble_(ffi.Pointer result) { + return _lib._objc_msgSend_774(_id, _lib._sel_scanDouble_1, result); } - NSURL? get executableURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_executableURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + bool scanHexInt_(ffi.Pointer result) { + return _lib._objc_msgSend_775(_id, _lib._sel_scanHexInt_1, result); } - NSURL URLForAuxiliaryExecutable_(NSString? executableName) { - final _ret = _lib._objc_msgSend_34( - _id, - _lib._sel_URLForAuxiliaryExecutable_1, - executableName?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + bool scanHexLongLong_(ffi.Pointer result) { + return _lib._objc_msgSend_772(_id, _lib._sel_scanHexLongLong_1, result); } - NSURL? get privateFrameworksURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_privateFrameworksURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + bool scanHexFloat_(ffi.Pointer result) { + return _lib._objc_msgSend_773(_id, _lib._sel_scanHexFloat_1, result); } - NSURL? get sharedFrameworksURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_sharedFrameworksURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + bool scanHexDouble_(ffi.Pointer result) { + return _lib._objc_msgSend_774(_id, _lib._sel_scanHexDouble_1, result); } - NSURL? get sharedSupportURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_sharedSupportURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + bool scanString_intoString_( + NSString? string, ffi.Pointer> result) { + return _lib._objc_msgSend_776(_id, _lib._sel_scanString_intoString_1, + string?._id ?? ffi.nullptr, result); } - NSURL? get builtInPlugInsURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_builtInPlugInsURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + bool scanCharactersFromSet_intoString_( + NSCharacterSet? set, ffi.Pointer> result) { + return _lib._objc_msgSend_777( + _id, + _lib._sel_scanCharactersFromSet_intoString_1, + set?._id ?? ffi.nullptr, + result); } - NSURL? get appStoreReceiptURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_appStoreReceiptURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + bool scanUpToString_intoString_( + NSString? string, ffi.Pointer> result) { + return _lib._objc_msgSend_776(_id, _lib._sel_scanUpToString_intoString_1, + string?._id ?? ffi.nullptr, result); } - NSString? get bundlePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_bundlePath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool scanUpToCharactersFromSet_intoString_( + NSCharacterSet? set, ffi.Pointer> result) { + return _lib._objc_msgSend_777( + _id, + _lib._sel_scanUpToCharactersFromSet_intoString_1, + set?._id ?? ffi.nullptr, + result); } - NSString? get resourcePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_resourcePath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool get atEnd { + return _lib._objc_msgSend_12(_id, _lib._sel_isAtEnd1); + } + + static NSScanner scannerWithString_(SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSScanner1, + _lib._sel_scannerWithString_1, string?._id ?? ffi.nullptr); + return NSScanner._(_ret, _lib, retain: true, release: true); + } + + static NSObject localizedScannerWithString_( + SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSScanner1, + _lib._sel_localizedScannerWithString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString? get executablePath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_executablePath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool scanDecimal_(ffi.Pointer dcm) { + return _lib._objc_msgSend_778(_id, _lib._sel_scanDecimal_1, dcm); } - NSString pathForAuxiliaryExecutable_(NSString? executableName) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_pathForAuxiliaryExecutable_1, - executableName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + @override + NSScanner init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSScanner._(_ret, _lib, retain: true, release: true); } - NSString? get privateFrameworksPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_privateFrameworksPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSScanner new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSScanner1, _lib._sel_new1); + return NSScanner._(_ret, _lib, retain: false, release: true); } - NSString? get sharedFrameworksPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sharedFrameworksPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSScanner allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSScanner1, _lib._sel_allocWithZone_1, zone); + return NSScanner._(_ret, _lib, retain: false, release: true); } - NSString? get sharedSupportPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sharedSupportPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSScanner alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSScanner1, _lib._sel_alloc1); + return NSScanner._(_ret, _lib, retain: false, release: true); } - NSString? get builtInPlugInsPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_builtInPlugInsPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSScanner1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - static NSURL URLForResource_withExtension_subdirectory_inBundleWithURL_( - SentryCocoa _lib, - NSString? name, - NSString? ext, - NSString? subpath, - NSURL? bundleURL) { - final _ret = _lib._objc_msgSend_650( - _lib._class_NSBundle1, - _lib._sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - bundleURL?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSScanner1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - static NSArray URLsForResourcesWithExtension_subdirectory_inBundleWithURL_( - SentryCocoa _lib, NSString? ext, NSString? subpath, NSURL? bundleURL) { - final _ret = _lib._objc_msgSend_651( - _lib._class_NSBundle1, - _lib._sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - bundleURL?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSScanner1, _lib._sel_accessInstanceVariablesDirectly1); } - NSURL URLForResource_withExtension_(NSString? name, NSString? ext) { - final _ret = _lib._objc_msgSend_652( - _id, - _lib._sel_URLForResource_withExtension_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSScanner1, _lib._sel_useStoredAccessor1); } - NSURL URLForResource_withExtension_subdirectory_( - NSString? name, NSString? ext, NSString? subpath) { - final _ret = _lib._objc_msgSend_653( - _id, - _lib._sel_URLForResource_withExtension_subdirectory_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSScanner1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - NSURL URLForResource_withExtension_subdirectory_localization_(NSString? name, - NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_654( - _id, - _lib._sel_URLForResource_withExtension_subdirectory_localization_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - localizationName?._id ?? ffi.nullptr); - return NSURL._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSScanner1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - NSArray URLsForResourcesWithExtension_subdirectory_( - NSString? ext, NSString? subpath) { - final _ret = _lib._objc_msgSend_655( - _id, - _lib._sel_URLsForResourcesWithExtension_subdirectory_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSScanner1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - NSArray URLsForResourcesWithExtension_subdirectory_localization_( - NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_656( - _id, - _lib._sel_URLsForResourcesWithExtension_subdirectory_localization_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - localizationName?._id ?? ffi.nullptr); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSScanner1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } - static NSString pathForResource_ofType_inDirectory_( - SentryCocoa _lib, NSString? name, NSString? ext, NSString? bundlePath) { - final _ret = _lib._objc_msgSend_657( - _lib._class_NSBundle1, - _lib._sel_pathForResource_ofType_inDirectory_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - bundlePath?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScanner1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - static NSArray pathsForResourcesOfType_inDirectory_( - SentryCocoa _lib, NSString? ext, NSString? bundlePath) { - final _ret = _lib._objc_msgSend_655( - _lib._class_NSBundle1, - _lib._sel_pathsForResourcesOfType_inDirectory_1, - ext?._id ?? ffi.nullptr, - bundlePath?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } +final class NSDecimal extends ffi.Opaque {} - NSString pathForResource_ofType_(NSString? name, NSString? ext) { - final _ret = _lib._objc_msgSend_341(_id, _lib._sel_pathForResource_ofType_1, - name?._id ?? ffi.nullptr, ext?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); +class NSException extends NSObject { + NSException._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSException] that points to the same underlying object as [other]. + static NSException castFrom(T other) { + return NSException._(other._id, other._lib, retain: true, release: true); } - NSString pathForResource_ofType_inDirectory_forLocalization_(NSString? name, - NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_658( - _id, - _lib._sel_pathForResource_ofType_inDirectory_forLocalization_1, - name?._id ?? ffi.nullptr, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - localizationName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// Returns a [NSException] that wraps the given raw object pointer. + static NSException castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSException._(other, lib, retain: retain, release: release); } - NSArray pathsForResourcesOfType_inDirectory_forLocalization_( - NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_656( - _id, - _lib._sel_pathsForResourcesOfType_inDirectory_forLocalization_1, - ext?._id ?? ffi.nullptr, - subpath?._id ?? ffi.nullptr, - localizationName?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSException]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSException1); } - NSString localizedStringForKey_value_table_( - NSString? key, NSString? value, NSString? tableName) { - final _ret = _lib._objc_msgSend_657( - _id, - _lib._sel_localizedStringForKey_value_table_1, - key?._id ?? ffi.nullptr, - value?._id ?? ffi.nullptr, - tableName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSException exceptionWithName_reason_userInfo_(SentryCocoa _lib, + NSString name, NSString? reason, NSDictionary? userInfo) { + final _ret = _lib._objc_msgSend_779( + _lib._class_NSException1, + _lib._sel_exceptionWithName_reason_userInfo_1, + name._id, + reason?._id ?? ffi.nullptr, + userInfo?._id ?? ffi.nullptr); + return NSException._(_ret, _lib, retain: true, release: true); } - NSAttributedString localizedAttributedStringForKey_value_table_( - NSString? key, NSString? value, NSString? tableName) { - final _ret = _lib._objc_msgSend_683( + NSException initWithName_reason_userInfo_( + NSString aName, NSString? aReason, NSDictionary? aUserInfo) { + final _ret = _lib._objc_msgSend_598( _id, - _lib._sel_localizedAttributedStringForKey_value_table_1, - key?._id ?? ffi.nullptr, - value?._id ?? ffi.nullptr, - tableName?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithName_reason_userInfo_1, + aName._id, + aReason?._id ?? ffi.nullptr, + aUserInfo?._id ?? ffi.nullptr); + return NSException._(_ret, _lib, retain: true, release: true); } - NSString localizedStringForKey_value_table_localizations_(NSString? key, - NSString? value, NSString? tableName, NSArray? localizations) { - final _ret = _lib._objc_msgSend_684( - _id, - _lib._sel_localizedStringForKey_value_table_localizations_1, - key?._id ?? ffi.nullptr, - value?._id ?? ffi.nullptr, - tableName?._id ?? ffi.nullptr, - localizations?._id ?? ffi.nullptr); + NSString get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get bundleIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_bundleIdentifier1); + NSString? get reason { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_reason1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSDictionary? get infoDictionary { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_infoDictionary1); + NSDictionary? get userInfo { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); return _ret.address == 0 ? null : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSDictionary? get localizedInfoDictionary { + NSArray? get callStackReturnAddresses { final _ret = - _lib._objc_msgSend_170(_id, _lib._sel_localizedInfoDictionary1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSObject objectForInfoDictionaryKey_(NSString? key) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_objectForInfoDictionaryKey_1, key?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject classNamed_(NSString? className) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_classNamed_1, className?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSObject get principalClass { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_principalClass1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSArray? get preferredLocalizations { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_preferredLocalizations1); + _lib._objc_msgSend_79(_id, _lib._sel_callStackReturnAddresses1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get localizations { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_localizations1); + NSArray? get callStackSymbols { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_callStackSymbols1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get developmentLocalization { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_developmentLocalization1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - static NSArray preferredLocalizationsFromArray_( - SentryCocoa _lib, NSArray? localizationsArray) { - final _ret = _lib._objc_msgSend_63( - _lib._class_NSBundle1, - _lib._sel_preferredLocalizationsFromArray_1, - localizationsArray?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSArray preferredLocalizationsFromArray_forPreferences_( - SentryCocoa _lib, - NSArray? localizationsArray, - NSArray? preferencesArray) { - final _ret = _lib._objc_msgSend_685( - _lib._class_NSBundle1, - _lib._sel_preferredLocalizationsFromArray_forPreferences_1, - localizationsArray?._id ?? ffi.nullptr, - preferencesArray?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get executableArchitectures { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_executableArchitectures1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + void raise() { + _lib._objc_msgSend_1(_id, _lib._sel_raise1); } - void setPreservationPriority_forTags_(double priority, NSSet? tags) { - _lib._objc_msgSend_686(_id, _lib._sel_setPreservationPriority_forTags_1, - priority, tags?._id ?? ffi.nullptr); + static void raise_format_(SentryCocoa _lib, NSString name, NSString? format) { + _lib._objc_msgSend_530(_lib._class_NSException1, _lib._sel_raise_format_1, + name._id, format?._id ?? ffi.nullptr); } - double preservationPriorityForTag_(NSString? tag) { - return _lib._objc_msgSend_284( - _id, _lib._sel_preservationPriorityForTag_1, tag?._id ?? ffi.nullptr); + static void raise_format_arguments_(SentryCocoa _lib, NSString name, + NSString? format, ffi.Pointer argList) { + _lib._objc_msgSend_780( + _lib._class_NSException1, + _lib._sel_raise_format_arguments_1, + name._id, + format?._id ?? ffi.nullptr, + argList); } @override - NSBundle init() { + NSException init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSBundle._(_ret, _lib, retain: true, release: true); + return NSException._(_ret, _lib, retain: true, release: true); } - static NSBundle new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSBundle1, _lib._sel_new1); - return NSBundle._(_ret, _lib, retain: false, release: true); + static NSException new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_new1); + return NSException._(_ret, _lib, retain: false, release: true); } - static NSBundle allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSException allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSBundle1, _lib._sel_allocWithZone_1, zone); - return NSBundle._(_ret, _lib, retain: false, release: true); + _lib._class_NSException1, _lib._sel_allocWithZone_1, zone); + return NSException._(_ret, _lib, retain: false, release: true); } - static NSBundle alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSBundle1, _lib._sel_alloc1); - return NSBundle._(_ret, _lib, retain: false, release: true); + static NSException alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_alloc1); + return NSException._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -53198,7 +61055,7 @@ class NSBundle extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSBundle1, + _lib._class_NSException1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -53207,24 +61064,24 @@ class NSBundle extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSBundle1, + _lib._objc_msgSend_15(_lib._class_NSException1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSBundle1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSException1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSBundle1, _lib._sel_useStoredAccessor1); + _lib._class_NSException1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSBundle1, + _lib._class_NSException1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -53233,7 +61090,7 @@ class NSBundle extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSBundle1, + _lib._class_NSException1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -53241,7 +61098,7 @@ class NSBundle extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSBundle1, + _lib._class_NSException1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -53249,323 +61106,331 @@ class NSBundle extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSBundle1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSException1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSBundle1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSException1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSAttributedString extends NSObject { - NSAttributedString._(ffi.Pointer id, SentryCocoa lib, +class NSFileHandle extends NSObject { + NSFileHandle._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSAttributedString] that points to the same underlying object as [other]. - static NSAttributedString castFrom(T other) { - return NSAttributedString._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSFileHandle] that points to the same underlying object as [other]. + static NSFileHandle castFrom(T other) { + return NSFileHandle._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSAttributedString] that wraps the given raw object pointer. - static NSAttributedString castFromPointer( + /// Returns a [NSFileHandle] that wraps the given raw object pointer. + static NSFileHandle castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSAttributedString._(other, lib, retain: retain, release: release); + return NSFileHandle._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSFileHandle]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileHandle1); + } + + NSData? get availableData { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_availableData1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + NSFileHandle initWithFileDescriptor_closeOnDealloc_(int fd, bool closeopt) { + final _ret = _lib._objc_msgSend_781( + _id, _lib._sel_initWithFileDescriptor_closeOnDealloc_1, fd, closeopt); + return NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + NSFileHandle initWithCoder_(NSCoder? coder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); + return NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + NSData readDataToEndOfFileAndReturnError_( + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_782( + _id, _lib._sel_readDataToEndOfFileAndReturnError_1, error); + return NSData._(_ret, _lib, retain: true, release: true); + } + + NSData readDataUpToLength_error_( + int length, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_783( + _id, _lib._sel_readDataUpToLength_error_1, length, error); + return NSData._(_ret, _lib, retain: true, release: true); + } + + bool writeData_error_( + NSData? data, ffi.Pointer> error) { + return _lib._objc_msgSend_784( + _id, _lib._sel_writeData_error_1, data?._id ?? ffi.nullptr, error); + } + + bool getOffset_error_(ffi.Pointer offsetInFile, + ffi.Pointer> error) { + return _lib._objc_msgSend_785( + _id, _lib._sel_getOffset_error_1, offsetInFile, error); + } + + bool seekToEndReturningOffset_error_( + ffi.Pointer offsetInFile, + ffi.Pointer> error) { + return _lib._objc_msgSend_785( + _id, _lib._sel_seekToEndReturningOffset_error_1, offsetInFile, error); + } + + bool seekToOffset_error_( + int offset, ffi.Pointer> error) { + return _lib._objc_msgSend_786( + _id, _lib._sel_seekToOffset_error_1, offset, error); + } + + bool truncateAtOffset_error_( + int offset, ffi.Pointer> error) { + return _lib._objc_msgSend_786( + _id, _lib._sel_truncateAtOffset_error_1, offset, error); + } + + bool synchronizeAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_236( + _id, _lib._sel_synchronizeAndReturnError_1, error); + } + + bool closeAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_236(_id, _lib._sel_closeAndReturnError_1, error); + } + + static NSFileHandle? getFileHandleWithStandardInput(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_787( + _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardInput1); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + static NSFileHandle? getFileHandleWithStandardOutput(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_787( + _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardOutput1); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + static NSFileHandle? getFileHandleWithStandardError(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_787( + _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardError1); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + static NSFileHandle? getFileHandleWithNullDevice(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_787( + _lib._class_NSFileHandle1, _lib._sel_fileHandleWithNullDevice1); + return _ret.address == 0 + ? null + : NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + static NSFileHandle fileHandleForReadingAtPath_( + SentryCocoa _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForReadingAtPath_1, path?._id ?? ffi.nullptr); + return NSFileHandle._(_ret, _lib, retain: true, release: true); + } + + static NSFileHandle fileHandleForWritingAtPath_( + SentryCocoa _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForWritingAtPath_1, path?._id ?? ffi.nullptr); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSAttributedString]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSAttributedString1); + static NSFileHandle fileHandleForUpdatingAtPath_( + SentryCocoa _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, + _lib._sel_fileHandleForUpdatingAtPath_1, path?._id ?? ffi.nullptr); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - NSString? get string { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSFileHandle fileHandleForReadingFromURL_error_(SentryCocoa _lib, + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_788( + _lib._class_NSFileHandle1, + _lib._sel_fileHandleForReadingFromURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - NSDictionary attributesAtIndex_effectiveRange_( - int location, ffi.Pointer<_NSRange> range) { - final _ret = _lib._objc_msgSend_659( - _id, _lib._sel_attributesAtIndex_effectiveRange_1, location, range); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSFileHandle fileHandleForWritingToURL_error_(SentryCocoa _lib, + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_788( + _lib._class_NSFileHandle1, + _lib._sel_fileHandleForWritingToURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - int get length { - return _lib._objc_msgSend_10(_id, _lib._sel_length1); + static NSFileHandle fileHandleForUpdatingURL_error_(SentryCocoa _lib, + NSURL? url, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_788( + _lib._class_NSFileHandle1, + _lib._sel_fileHandleForUpdatingURL_error_1, + url?._id ?? ffi.nullptr, + error); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - NSObject attribute_atIndex_effectiveRange_( - NSString attrName, int location, ffi.Pointer<_NSRange> range) { - final _ret = _lib._objc_msgSend_660( - _id, - _lib._sel_attribute_atIndex_effectiveRange_1, - attrName._id, - location, - range); - return NSObject._(_ret, _lib, retain: true, release: true); + void readInBackgroundAndNotifyForModes_(NSArray? modes) { + _lib._objc_msgSend_457(_id, _lib._sel_readInBackgroundAndNotifyForModes_1, + modes?._id ?? ffi.nullptr); } - NSAttributedString attributedSubstringFromRange_(_NSRange range) { - final _ret = _lib._objc_msgSend_661( - _id, _lib._sel_attributedSubstringFromRange_1, range); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + void readInBackgroundAndNotify() { + _lib._objc_msgSend_1(_id, _lib._sel_readInBackgroundAndNotify1); } - NSDictionary attributesAtIndex_longestEffectiveRange_inRange_( - int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { - final _ret = _lib._objc_msgSend_662( + void readToEndOfFileInBackgroundAndNotifyForModes_(NSArray? modes) { + _lib._objc_msgSend_457( _id, - _lib._sel_attributesAtIndex_longestEffectiveRange_inRange_1, - location, - range, - rangeLimit); - return NSDictionary._(_ret, _lib, retain: true, release: true); + _lib._sel_readToEndOfFileInBackgroundAndNotifyForModes_1, + modes?._id ?? ffi.nullptr); } - NSObject attribute_atIndex_longestEffectiveRange_inRange_(NSString attrName, - int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { - final _ret = _lib._objc_msgSend_663( - _id, - _lib._sel_attribute_atIndex_longestEffectiveRange_inRange_1, - attrName._id, - location, - range, - rangeLimit); - return NSObject._(_ret, _lib, retain: true, release: true); + void readToEndOfFileInBackgroundAndNotify() { + _lib._objc_msgSend_1(_id, _lib._sel_readToEndOfFileInBackgroundAndNotify1); } - bool isEqualToAttributedString_(NSAttributedString? other) { - return _lib._objc_msgSend_664( - _id, _lib._sel_isEqualToAttributedString_1, other?._id ?? ffi.nullptr); + void acceptConnectionInBackgroundAndNotifyForModes_(NSArray? modes) { + _lib._objc_msgSend_457( + _id, + _lib._sel_acceptConnectionInBackgroundAndNotifyForModes_1, + modes?._id ?? ffi.nullptr); } - NSAttributedString initWithString_(NSString? str) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, str?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + void acceptConnectionInBackgroundAndNotify() { + _lib._objc_msgSend_1(_id, _lib._sel_acceptConnectionInBackgroundAndNotify1); } - NSAttributedString initWithString_attributes_( - NSString? str, NSDictionary? attrs) { - final _ret = _lib._objc_msgSend_373( + void waitForDataInBackgroundAndNotifyForModes_(NSArray? modes) { + _lib._objc_msgSend_457( _id, - _lib._sel_initWithString_attributes_1, - str?._id ?? ffi.nullptr, - attrs?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + _lib._sel_waitForDataInBackgroundAndNotifyForModes_1, + modes?._id ?? ffi.nullptr); } - NSAttributedString initWithAttributedString_(NSAttributedString? attrStr) { - final _ret = _lib._objc_msgSend_665( - _id, _lib._sel_initWithAttributedString_1, attrStr?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + void waitForDataInBackgroundAndNotify() { + _lib._objc_msgSend_1(_id, _lib._sel_waitForDataInBackgroundAndNotify1); } - void enumerateAttributesInRange_options_usingBlock_(_NSRange enumerationRange, - int opts, ObjCBlock_ffiVoid_NSDictionary_NSRange_bool block) { - _lib._objc_msgSend_666( - _id, - _lib._sel_enumerateAttributesInRange_options_usingBlock_1, - enumerationRange, - opts, - block._id); + ObjCBlock_ffiVoid_NSFileHandle get readabilityHandler { + final _ret = _lib._objc_msgSend_789(_id, _lib._sel_readabilityHandler1); + return ObjCBlock_ffiVoid_NSFileHandle._(_ret, _lib); } - void enumerateAttribute_inRange_options_usingBlock_( - NSString attrName, - _NSRange enumerationRange, - int opts, - ObjCBlock_ffiVoid_ObjCObject_NSRange_bool block) { - _lib._objc_msgSend_667( - _id, - _lib._sel_enumerateAttribute_inRange_options_usingBlock_1, - attrName._id, - enumerationRange, - opts, - block._id); + set readabilityHandler(ObjCBlock_ffiVoid_NSFileHandle value) { + return _lib._objc_msgSend_790( + _id, _lib._sel_setReadabilityHandler_1, value._id); } - NSAttributedString initWithContentsOfMarkdownFileAtURL_options_baseURL_error_( - NSURL? markdownFile, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_672( - _id, - _lib._sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1, - markdownFile?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr, - error); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + ObjCBlock_ffiVoid_NSFileHandle get writeabilityHandler { + final _ret = _lib._objc_msgSend_789(_id, _lib._sel_writeabilityHandler1); + return ObjCBlock_ffiVoid_NSFileHandle._(_ret, _lib); } - NSAttributedString initWithMarkdown_options_baseURL_error_( - NSData? markdown, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_673( - _id, - _lib._sel_initWithMarkdown_options_baseURL_error_1, - markdown?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr, - error); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + set writeabilityHandler(ObjCBlock_ffiVoid_NSFileHandle value) { + return _lib._objc_msgSend_790( + _id, _lib._sel_setWriteabilityHandler_1, value._id); } - NSAttributedString initWithMarkdownString_options_baseURL_error_( - NSString? markdownString, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_674( - _id, - _lib._sel_initWithMarkdownString_options_baseURL_error_1, - markdownString?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr, - error); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + NSFileHandle initWithFileDescriptor_(int fd) { + final _ret = + _lib._objc_msgSend_791(_id, _lib._sel_initWithFileDescriptor_1, fd); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - NSAttributedString initWithFormat_options_locale_( - NSAttributedString? format, int options, NSLocale? locale) { - final _ret = _lib._objc_msgSend_675( - _id, - _lib._sel_initWithFormat_options_locale_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + int get fileDescriptor { + return _lib._objc_msgSend_219(_id, _lib._sel_fileDescriptor1); } - NSAttributedString initWithFormat_options_locale_arguments_( - NSAttributedString? format, - int options, - NSLocale? locale, - ffi.Pointer<__va_list_tag> arguments) { - final _ret = _lib._objc_msgSend_676( - _id, - _lib._sel_initWithFormat_options_locale_arguments_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr, - arguments); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + NSData readDataToEndOfFile() { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_readDataToEndOfFile1); + return NSData._(_ret, _lib, retain: true, release: true); } - static NSAttributedString localizedAttributedStringWithFormat_( - SentryCocoa _lib, NSAttributedString? format) { - final _ret = _lib._objc_msgSend_665( - _lib._class_NSAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_1, - format?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + NSData readDataOfLength_(int length) { + final _ret = + _lib._objc_msgSend_332(_id, _lib._sel_readDataOfLength_1, length); + return NSData._(_ret, _lib, retain: true, release: true); } - static NSAttributedString localizedAttributedStringWithFormat_options_( - SentryCocoa _lib, NSAttributedString? format, int options) { - final _ret = _lib._objc_msgSend_677( - _lib._class_NSAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_options_1, - format?._id ?? ffi.nullptr, - options); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + void writeData_(NSData? data) { + _lib._objc_msgSend_263( + _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); } - NSAttributedString initWithFormat_options_locale_context_( - NSAttributedString? format, - int options, - NSLocale? locale, - NSDictionary? context) { - final _ret = _lib._objc_msgSend_678( - _id, - _lib._sel_initWithFormat_options_locale_context_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr, - context?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + int get offsetInFile { + return _lib._objc_msgSend_154(_id, _lib._sel_offsetInFile1); } - NSAttributedString initWithFormat_options_locale_context_arguments_( - NSAttributedString? format, - int options, - NSLocale? locale, - NSDictionary? context, - ffi.Pointer<__va_list_tag> arguments) { - final _ret = _lib._objc_msgSend_679( - _id, - _lib._sel_initWithFormat_options_locale_context_arguments_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr, - context?._id ?? ffi.nullptr, - arguments); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + int seekToEndOfFile() { + return _lib._objc_msgSend_154(_id, _lib._sel_seekToEndOfFile1); } - static NSAttributedString localizedAttributedStringWithFormat_context_( - SentryCocoa _lib, NSAttributedString? format, NSDictionary? context) { - final _ret = _lib._objc_msgSend_680( - _lib._class_NSAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_context_1, - format?._id ?? ffi.nullptr, - context?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + void seekToFileOffset_(int offset) { + _lib._objc_msgSend_792(_id, _lib._sel_seekToFileOffset_1, offset); } - static NSAttributedString - localizedAttributedStringWithFormat_options_context_(SentryCocoa _lib, - NSAttributedString? format, int options, NSDictionary? context) { - final _ret = _lib._objc_msgSend_681( - _lib._class_NSAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_options_context_1, - format?._id ?? ffi.nullptr, - options, - context?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + void truncateFileAtOffset_(int offset) { + _lib._objc_msgSend_792(_id, _lib._sel_truncateFileAtOffset_1, offset); } - NSAttributedString attributedStringByInflectingString() { - final _ret = _lib._objc_msgSend_682( - _id, _lib._sel_attributedStringByInflectingString1); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + void synchronizeFile() { + _lib._objc_msgSend_1(_id, _lib._sel_synchronizeFile1); + } + + void closeFile() { + _lib._objc_msgSend_1(_id, _lib._sel_closeFile1); } @override - NSAttributedString init() { + NSFileHandle init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + return NSFileHandle._(_ret, _lib, retain: true, release: true); } - static NSAttributedString new1(SentryCocoa _lib) { + static NSFileHandle new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_new1); - return NSAttributedString._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSFileHandle1, _lib._sel_new1); + return NSFileHandle._(_ret, _lib, retain: false, release: true); } - static NSAttributedString allocWithZone_( + static NSFileHandle allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSAttributedString1, _lib._sel_allocWithZone_1, zone); - return NSAttributedString._(_ret, _lib, retain: false, release: true); + _lib._class_NSFileHandle1, _lib._sel_allocWithZone_1, zone); + return NSFileHandle._(_ret, _lib, retain: false, release: true); } - static NSAttributedString alloc(SentryCocoa _lib) { + static NSFileHandle alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSAttributedString1, _lib._sel_alloc1); - return NSAttributedString._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSFileHandle1, _lib._sel_alloc1); + return NSFileHandle._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -53574,7 +61439,7 @@ class NSAttributedString extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSAttributedString1, + _lib._class_NSFileHandle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -53583,24 +61448,24 @@ class NSAttributedString extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSAttributedString1, + _lib._objc_msgSend_15(_lib._class_NSFileHandle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSAttributedString1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSFileHandle1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSAttributedString1, _lib._sel_useStoredAccessor1); + _lib._class_NSFileHandle1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSAttributedString1, + _lib._class_NSFileHandle1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -53609,7 +61474,7 @@ class NSAttributedString extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSAttributedString1, + _lib._class_NSFileHandle1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -53617,339 +61482,225 @@ class NSAttributedString extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSAttributedString1, + _lib._class_NSFileHandle1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSAttributedString1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSFileHandle1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSAttributedString1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSFileHandle1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSAttributedStringEnumerationOptions { - static const int NSAttributedStringEnumerationReverse = 2; - static const int - NSAttributedStringEnumerationLongestEffectiveRangeNotRequired = 1048576; -} - -void _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_registerClosure(Function fn) { - final id = - ++_ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, _NSRange, - ffi.Pointer))(arg0, arg1, arg2); -} - -class ObjCBlock_ffiVoid_NSDictionary_NSRange_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSDictionary_NSRange_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSDictionary_NSRange_bool.fromFunctionPointer( - SentryCocoa lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSDictionary_NSRange_bool.fromFunction( - SentryCocoa lib, - void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_registerClosure( - fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} - -void _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2) { +void _ObjCBlock_ffiVoid_NSFileHandle_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); } -final _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry[id] = fn; +final _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSFileHandle_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSFileHandle_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSFileHandle_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, _NSRange, - ffi.Pointer))(arg0, arg1, arg2); +void _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSFileHandle_closureRegistry[block + .ref.target.address] as void Function(ffi.Pointer))(arg0); } -class ObjCBlock_ffiVoid_ObjCObject_NSRange_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ObjCObject_NSRange_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock_ffiVoid_NSFileHandle extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSFileHandle._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ObjCObject_NSRange_bool.fromFunctionPointer( + ObjCBlock_ffiVoid_NSFileHandle.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2)>> + ffi + .NativeFunction arg0)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSFileHandle_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ObjCObject_NSRange_bool.fromFunction( - SentryCocoa lib, - void Function(ffi.Pointer arg0, _NSRange arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureTrampoline) + ObjCBlock_ffiVoid_NSFileHandle.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSFileHandle_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { + void call(ffi.Pointer arg0) { return _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>>() + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); } } -class NSAttributedStringMarkdownParsingOptions extends NSObject { - NSAttributedStringMarkdownParsingOptions._( - ffi.Pointer id, SentryCocoa lib, +class NSHTTPCookieStorage extends NSObject { + NSHTTPCookieStorage._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSAttributedStringMarkdownParsingOptions] that points to the same underlying object as [other]. - static NSAttributedStringMarkdownParsingOptions - castFrom(T other) { - return NSAttributedStringMarkdownParsingOptions._(other._id, other._lib, + /// Returns a [NSHTTPCookieStorage] that points to the same underlying object as [other]. + static NSHTTPCookieStorage castFrom(T other) { + return NSHTTPCookieStorage._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSAttributedStringMarkdownParsingOptions] that wraps the given raw object pointer. - static NSAttributedStringMarkdownParsingOptions castFromPointer( + /// Returns a [NSHTTPCookieStorage] that wraps the given raw object pointer. + static NSHTTPCookieStorage castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSAttributedStringMarkdownParsingOptions._(other, lib, - retain: retain, release: release); + return NSHTTPCookieStorage._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSAttributedStringMarkdownParsingOptions]. + /// Returns whether [obj] is an instance of [NSHTTPCookieStorage]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSAttributedStringMarkdownParsingOptions1); + obj._lib._class_NSHTTPCookieStorage1); } - @override - NSAttributedStringMarkdownParsingOptions init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, - retain: true, release: true); + static NSHTTPCookieStorage? getSharedHTTPCookieStorage(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_793( + _lib._class_NSHTTPCookieStorage1, _lib._sel_sharedHTTPCookieStorage1); + return _ret.address == 0 + ? null + : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } - bool get allowsExtendedAttributes { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsExtendedAttributes1); + static NSHTTPCookieStorage sharedCookieStorageForGroupContainerIdentifier_( + SentryCocoa _lib, NSString? identifier) { + final _ret = _lib._objc_msgSend_794( + _lib._class_NSHTTPCookieStorage1, + _lib._sel_sharedCookieStorageForGroupContainerIdentifier_1, + identifier?._id ?? ffi.nullptr); + return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } - set allowsExtendedAttributes(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setAllowsExtendedAttributes_1, value); + NSArray? get cookies { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_cookies1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - int get interpretedSyntax { - return _lib._objc_msgSend_668(_id, _lib._sel_interpretedSyntax1); + void setCookie_(NSHTTPCookie? cookie) { + _lib._objc_msgSend_797( + _id, _lib._sel_setCookie_1, cookie?._id ?? ffi.nullptr); } - set interpretedSyntax(int value) { - return _lib._objc_msgSend_669(_id, _lib._sel_setInterpretedSyntax_1, value); + void deleteCookie_(NSHTTPCookie? cookie) { + _lib._objc_msgSend_797( + _id, _lib._sel_deleteCookie_1, cookie?._id ?? ffi.nullptr); } - int get failurePolicy { - return _lib._objc_msgSend_670(_id, _lib._sel_failurePolicy1); + void removeCookiesSinceDate_(NSDate? date) { + _lib._objc_msgSend_520( + _id, _lib._sel_removeCookiesSinceDate_1, date?._id ?? ffi.nullptr); } - set failurePolicy(int value) { - return _lib._objc_msgSend_671(_id, _lib._sel_setFailurePolicy_1, value); + NSArray cookiesForURL_(NSURL? URL) { + final _ret = _lib._objc_msgSend_124( + _id, _lib._sel_cookiesForURL_1, URL?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get languageCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_languageCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void setCookies_forURL_mainDocumentURL_( + NSArray? cookies, NSURL? URL, NSURL? mainDocumentURL) { + _lib._objc_msgSend_798( + _id, + _lib._sel_setCookies_forURL_mainDocumentURL_1, + cookies?._id ?? ffi.nullptr, + URL?._id ?? ffi.nullptr, + mainDocumentURL?._id ?? ffi.nullptr); } - set languageCode(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setLanguageCode_1, value?._id ?? ffi.nullptr); + int get cookieAcceptPolicy { + return _lib._objc_msgSend_799(_id, _lib._sel_cookieAcceptPolicy1); } - bool get appliesSourcePositionAttributes { - return _lib._objc_msgSend_12( - _id, _lib._sel_appliesSourcePositionAttributes1); + set cookieAcceptPolicy(int value) { + return _lib._objc_msgSend_800( + _id, _lib._sel_setCookieAcceptPolicy_1, value); } - set appliesSourcePositionAttributes(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setAppliesSourcePositionAttributes_1, value); + NSArray sortedCookiesUsingDescriptors_(NSArray? sortOrder) { + final _ret = _lib._objc_msgSend_63( + _id, + _lib._sel_sortedCookiesUsingDescriptors_1, + sortOrder?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSAttributedStringMarkdownParsingOptions new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_new1); - return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, - retain: false, release: true); + void storeCookies_forTask_(NSArray? cookies, NSURLSessionTask? task) { + _lib._objc_msgSend_820(_id, _lib._sel_storeCookies_forTask_1, + cookies?._id ?? ffi.nullptr, task?._id ?? ffi.nullptr); } - static NSAttributedStringMarkdownParsingOptions allocWithZone_( + void getCookiesForTask_completionHandler_( + NSURLSessionTask? task, ObjCBlock_ffiVoid_NSArray completionHandler) { + _lib._objc_msgSend_821(_id, _lib._sel_getCookiesForTask_completionHandler_1, + task?._id ?? ffi.nullptr, completionHandler._id); + } + + @override + NSHTTPCookieStorage init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + } + + static NSHTTPCookieStorage new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSHTTPCookieStorage1, _lib._sel_new1); + return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); + } + + static NSHTTPCookieStorage allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_allocWithZone_1, - zone); - return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, - retain: false, release: true); + _lib._class_NSHTTPCookieStorage1, _lib._sel_allocWithZone_1, zone); + return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); } - static NSAttributedStringMarkdownParsingOptions alloc(SentryCocoa _lib) { + static NSHTTPCookieStorage alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_alloc1); - return NSAttributedStringMarkdownParsingOptions._(_ret, _lib, - retain: false, release: true); + _lib._class_NSHTTPCookieStorage1, _lib._sel_alloc1); + return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -53958,7 +61709,7 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._class_NSHTTPCookieStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -53967,26 +61718,24 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._objc_msgSend_15(_lib._class_NSHTTPCookieStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSAttributedStringMarkdownParsingOptions1, + return _lib._objc_msgSend_12(_lib._class_NSHTTPCookieStorage1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_useStoredAccessor1); + _lib._class_NSHTTPCookieStorage1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._class_NSHTTPCookieStorage1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -53995,7 +61744,7 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._class_NSHTTPCookieStorage1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -54003,353 +61752,187 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._class_NSHTTPCookieStorage1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSAttributedStringMarkdownParsingOptions1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSHTTPCookieStorage1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSHTTPCookieStorage1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSAttributedStringMarkdownInterpretedSyntax { - static const int NSAttributedStringMarkdownInterpretedSyntaxFull = 0; - static const int NSAttributedStringMarkdownInterpretedSyntaxInlineOnly = 1; - static const int - NSAttributedStringMarkdownInterpretedSyntaxInlineOnlyPreservingWhitespace = - 2; -} - -abstract class NSAttributedStringMarkdownParsingFailurePolicy { - static const int NSAttributedStringMarkdownParsingFailureReturnError = 0; - static const int - NSAttributedStringMarkdownParsingFailureReturnPartiallyParsedIfPossible = - 1; -} - -abstract class NSAttributedStringFormattingOptions { - static const int - NSAttributedStringFormattingInsertArgumentAttributesWithoutMerging = 1; - static const int NSAttributedStringFormattingApplyReplacementIndexAttribute = - 2; -} - -class NSMutableAttributedString extends NSAttributedString { - NSMutableAttributedString._(ffi.Pointer id, SentryCocoa lib, +class NSHTTPCookie extends NSObject { + NSHTTPCookie._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMutableAttributedString] that points to the same underlying object as [other]. - static NSMutableAttributedString castFrom(T other) { - return NSMutableAttributedString._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSHTTPCookie] that points to the same underlying object as [other]. + static NSHTTPCookie castFrom(T other) { + return NSHTTPCookie._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSMutableAttributedString] that wraps the given raw object pointer. - static NSMutableAttributedString castFromPointer( + /// Returns a [NSHTTPCookie] that wraps the given raw object pointer. + static NSHTTPCookie castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableAttributedString._(other, lib, - retain: retain, release: release); + return NSHTTPCookie._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableAttributedString]. + /// Returns whether [obj] is an instance of [NSHTTPCookie]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableAttributedString1); - } - - void replaceCharactersInRange_withString_(_NSRange range, NSString? str) { - _lib._objc_msgSend_641(_id, _lib._sel_replaceCharactersInRange_withString_1, - range, str?._id ?? ffi.nullptr); - } - - void setAttributes_range_(NSDictionary? attrs, _NSRange range) { - _lib._objc_msgSend_687( - _id, _lib._sel_setAttributes_range_1, attrs?._id ?? ffi.nullptr, range); - } - - NSMutableString? get mutableString { - final _ret = _lib._objc_msgSend_688(_id, _lib._sel_mutableString1); - return _ret.address == 0 - ? null - : NSMutableString._(_ret, _lib, retain: true, release: true); - } - - void addAttribute_value_range_( - NSString name, NSObject value, _NSRange range) { - _lib._objc_msgSend_689( - _id, _lib._sel_addAttribute_value_range_1, name._id, value._id, range); - } - - void addAttributes_range_(NSDictionary? attrs, _NSRange range) { - _lib._objc_msgSend_687( - _id, _lib._sel_addAttributes_range_1, attrs?._id ?? ffi.nullptr, range); - } - - void removeAttribute_range_(NSString name, _NSRange range) { - _lib._objc_msgSend_690( - _id, _lib._sel_removeAttribute_range_1, name._id, range); - } - - void replaceCharactersInRange_withAttributedString_( - _NSRange range, NSAttributedString? attrString) { - _lib._objc_msgSend_691( - _id, - _lib._sel_replaceCharactersInRange_withAttributedString_1, - range, - attrString?._id ?? ffi.nullptr); - } - - void insertAttributedString_atIndex_( - NSAttributedString? attrString, int loc) { - _lib._objc_msgSend_692(_id, _lib._sel_insertAttributedString_atIndex_1, - attrString?._id ?? ffi.nullptr, loc); - } - - void appendAttributedString_(NSAttributedString? attrString) { - _lib._objc_msgSend_693(_id, _lib._sel_appendAttributedString_1, - attrString?._id ?? ffi.nullptr); - } - - void deleteCharactersInRange_(_NSRange range) { - _lib._objc_msgSend_447(_id, _lib._sel_deleteCharactersInRange_1, range); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSHTTPCookie1); } - void setAttributedString_(NSAttributedString? attrString) { - _lib._objc_msgSend_693( - _id, _lib._sel_setAttributedString_1, attrString?._id ?? ffi.nullptr); + NSHTTPCookie initWithProperties_(NSDictionary? properties) { + final _ret = _lib._objc_msgSend_149( + _id, _lib._sel_initWithProperties_1, properties?._id ?? ffi.nullptr); + return NSHTTPCookie._(_ret, _lib, retain: true, release: true); } - void beginEditing() { - _lib._objc_msgSend_1(_id, _lib._sel_beginEditing1); + static NSHTTPCookie cookieWithProperties_( + SentryCocoa _lib, NSDictionary? properties) { + final _ret = _lib._objc_msgSend_795(_lib._class_NSHTTPCookie1, + _lib._sel_cookieWithProperties_1, properties?._id ?? ffi.nullptr); + return NSHTTPCookie._(_ret, _lib, retain: true, release: true); } - void endEditing() { - _lib._objc_msgSend_1(_id, _lib._sel_endEditing1); + static NSDictionary requestHeaderFieldsWithCookies_( + SentryCocoa _lib, NSArray? cookies) { + final _ret = _lib._objc_msgSend_491( + _lib._class_NSHTTPCookie1, + _lib._sel_requestHeaderFieldsWithCookies_1, + cookies?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - void appendLocalizedFormat_(NSAttributedString? format) { - _lib._objc_msgSend_693( - _id, _lib._sel_appendLocalizedFormat_1, format?._id ?? ffi.nullptr); + static NSArray cookiesWithResponseHeaderFields_forURL_( + SentryCocoa _lib, NSDictionary? headerFields, NSURL? URL) { + final _ret = _lib._objc_msgSend_796( + _lib._class_NSHTTPCookie1, + _lib._sel_cookiesWithResponseHeaderFields_forURL_1, + headerFields?._id ?? ffi.nullptr, + URL?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - @override - NSMutableAttributedString initWithString_(NSString? str) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, str?._id ?? ffi.nullptr); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + NSDictionary? get properties { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_properties1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - @override - NSMutableAttributedString initWithString_attributes_( - NSString? str, NSDictionary? attrs) { - final _ret = _lib._objc_msgSend_373( - _id, - _lib._sel_initWithString_attributes_1, - str?._id ?? ffi.nullptr, - attrs?._id ?? ffi.nullptr); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + int get version { + return _lib._objc_msgSend_10(_id, _lib._sel_version1); } - @override - NSMutableAttributedString initWithAttributedString_( - NSAttributedString? attrStr) { - final _ret = _lib._objc_msgSend_665( - _id, _lib._sel_initWithAttributedString_1, attrStr?._id ?? ffi.nullptr); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - NSMutableAttributedString - initWithContentsOfMarkdownFileAtURL_options_baseURL_error_( - NSURL? markdownFile, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_672( - _id, - _lib._sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1, - markdownFile?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr, - error); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + NSString? get value { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_value1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - NSMutableAttributedString initWithMarkdown_options_baseURL_error_( - NSData? markdown, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_673( - _id, - _lib._sel_initWithMarkdown_options_baseURL_error_1, - markdown?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr, - error); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + NSDate? get expiresDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_expiresDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - @override - NSMutableAttributedString initWithMarkdownString_options_baseURL_error_( - NSString? markdownString, - NSAttributedStringMarkdownParsingOptions? options, - NSURL? baseURL, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_674( - _id, - _lib._sel_initWithMarkdownString_options_baseURL_error_1, - markdownString?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - baseURL?._id ?? ffi.nullptr, - error); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + bool get sessionOnly { + return _lib._objc_msgSend_12(_id, _lib._sel_isSessionOnly1); } - @override - NSMutableAttributedString initWithFormat_options_locale_( - NSAttributedString? format, int options, NSLocale? locale) { - final _ret = _lib._objc_msgSend_675( - _id, - _lib._sel_initWithFormat_options_locale_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + NSString? get domain { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_domain1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - NSMutableAttributedString initWithFormat_options_locale_arguments_( - NSAttributedString? format, - int options, - NSLocale? locale, - ffi.Pointer<__va_list_tag> arguments) { - final _ret = _lib._objc_msgSend_676( - _id, - _lib._sel_initWithFormat_options_locale_arguments_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr, - arguments); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + NSString? get path { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_path1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSMutableAttributedString localizedAttributedStringWithFormat_( - SentryCocoa _lib, NSAttributedString? format) { - final _ret = _lib._objc_msgSend_665( - _lib._class_NSMutableAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_1, - format?._id ?? ffi.nullptr); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + bool get secure { + return _lib._objc_msgSend_12(_id, _lib._sel_isSecure1); } - static NSMutableAttributedString localizedAttributedStringWithFormat_options_( - SentryCocoa _lib, NSAttributedString? format, int options) { - final _ret = _lib._objc_msgSend_677( - _lib._class_NSMutableAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_options_1, - format?._id ?? ffi.nullptr, - options); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + bool get HTTPOnly { + return _lib._objc_msgSend_12(_id, _lib._sel_isHTTPOnly1); } - @override - NSMutableAttributedString initWithFormat_options_locale_context_( - NSAttributedString? format, - int options, - NSLocale? locale, - NSDictionary? context) { - final _ret = _lib._objc_msgSend_678( - _id, - _lib._sel_initWithFormat_options_locale_context_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr, - context?._id ?? ffi.nullptr); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + NSString? get comment { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_comment1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - NSMutableAttributedString initWithFormat_options_locale_context_arguments_( - NSAttributedString? format, - int options, - NSLocale? locale, - NSDictionary? context, - ffi.Pointer<__va_list_tag> arguments) { - final _ret = _lib._objc_msgSend_679( - _id, - _lib._sel_initWithFormat_options_locale_context_arguments_1, - format?._id ?? ffi.nullptr, - options, - locale?._id ?? ffi.nullptr, - context?._id ?? ffi.nullptr, - arguments); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + NSURL? get commentURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_commentURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSMutableAttributedString localizedAttributedStringWithFormat_context_( - SentryCocoa _lib, NSAttributedString? format, NSDictionary? context) { - final _ret = _lib._objc_msgSend_680( - _lib._class_NSMutableAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_context_1, - format?._id ?? ffi.nullptr, - context?._id ?? ffi.nullptr); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + NSArray? get portList { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_portList1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSMutableAttributedString - localizedAttributedStringWithFormat_options_context_(SentryCocoa _lib, - NSAttributedString? format, int options, NSDictionary? context) { - final _ret = _lib._objc_msgSend_681( - _lib._class_NSMutableAttributedString1, - _lib._sel_localizedAttributedStringWithFormat_options_context_1, - format?._id ?? ffi.nullptr, - options, - context?._id ?? ffi.nullptr); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + NSString get sameSitePolicy { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sameSitePolicy1); + return NSString._(_ret, _lib, retain: true, release: true); } @override - NSMutableAttributedString init() { + NSHTTPCookie init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + return NSHTTPCookie._(_ret, _lib, retain: true, release: true); } - static NSMutableAttributedString new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableAttributedString1, _lib._sel_new1); - return NSMutableAttributedString._(_ret, _lib, - retain: false, release: true); + static NSHTTPCookie new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSHTTPCookie1, _lib._sel_new1); + return NSHTTPCookie._(_ret, _lib, retain: false, release: true); } - static NSMutableAttributedString allocWithZone_( + static NSHTTPCookie allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3(_lib._class_NSMutableAttributedString1, - _lib._sel_allocWithZone_1, zone); - return NSMutableAttributedString._(_ret, _lib, - retain: false, release: true); + final _ret = _lib._objc_msgSend_3( + _lib._class_NSHTTPCookie1, _lib._sel_allocWithZone_1, zone); + return NSHTTPCookie._(_ret, _lib, retain: false, release: true); } - static NSMutableAttributedString alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableAttributedString1, _lib._sel_alloc1); - return NSMutableAttributedString._(_ret, _lib, - retain: false, release: true); + static NSHTTPCookie alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSHTTPCookie1, _lib._sel_alloc1); + return NSHTTPCookie._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -54358,7 +61941,7 @@ class NSMutableAttributedString extends NSAttributedString { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSMutableAttributedString1, + _lib._class_NSHTTPCookie1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -54367,24 +61950,24 @@ class NSMutableAttributedString extends NSAttributedString { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableAttributedString1, + _lib._objc_msgSend_15(_lib._class_NSHTTPCookie1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableAttributedString1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSHTTPCookie1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMutableAttributedString1, _lib._sel_useStoredAccessor1); + _lib._class_NSHTTPCookie1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableAttributedString1, + _lib._class_NSHTTPCookie1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -54393,7 +61976,7 @@ class NSMutableAttributedString extends NSAttributedString { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSMutableAttributedString1, + _lib._class_NSHTTPCookie1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -54401,546 +61984,488 @@ class NSMutableAttributedString extends NSAttributedString { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSMutableAttributedString1, + _lib._class_NSHTTPCookie1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableAttributedString1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSHTTPCookie1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableAttributedString1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSHTTPCookie1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSDateFormatter extends NSFormatter { - NSDateFormatter._(ffi.Pointer id, SentryCocoa lib, +abstract class NSHTTPCookieAcceptPolicy { + static const int NSHTTPCookieAcceptPolicyAlways = 0; + static const int NSHTTPCookieAcceptPolicyNever = 1; + static const int NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain = 2; +} + +class NSURLSessionTask extends NSObject { + NSURLSessionTask._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSDateFormatter] that points to the same underlying object as [other]. - static NSDateFormatter castFrom(T other) { - return NSDateFormatter._(other._id, other._lib, + /// Returns a [NSURLSessionTask] that points to the same underlying object as [other]. + static NSURLSessionTask castFrom(T other) { + return NSURLSessionTask._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSDateFormatter] that wraps the given raw object pointer. - static NSDateFormatter castFromPointer( + /// Returns a [NSURLSessionTask] that wraps the given raw object pointer. + static NSURLSessionTask castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSDateFormatter._(other, lib, retain: retain, release: release); + return NSURLSessionTask._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSDateFormatter]. + /// Returns whether [obj] is an instance of [NSURLSessionTask]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSDateFormatter1); - } - - int get formattingContext { - return _lib._objc_msgSend_698(_id, _lib._sel_formattingContext1); - } - - set formattingContext(int value) { - return _lib._objc_msgSend_699(_id, _lib._sel_setFormattingContext_1, value); - } - - bool getObjectValue_forString_range_error_( - ffi.Pointer> obj, - NSString? string, - ffi.Pointer<_NSRange> rangep, - ffi.Pointer> error) { - return _lib._objc_msgSend_700( - _id, - _lib._sel_getObjectValue_forString_range_error_1, - obj, - string?._id ?? ffi.nullptr, - rangep, - error); - } - - NSString stringFromDate_(NSDate? date) { - final _ret = _lib._objc_msgSend_167( - _id, _lib._sel_stringFromDate_1, date?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSDate dateFromString_(NSString? string) { - final _ret = _lib._objc_msgSend_531( - _id, _lib._sel_dateFromString_1, string?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); - } - - static NSString localizedStringFromDate_dateStyle_timeStyle_( - SentryCocoa _lib, NSDate? date, int dstyle, int tstyle) { - final _ret = _lib._objc_msgSend_701( - _lib._class_NSDateFormatter1, - _lib._sel_localizedStringFromDate_dateStyle_timeStyle_1, - date?._id ?? ffi.nullptr, - dstyle, - tstyle); - return NSString._(_ret, _lib, retain: true, release: true); - } - - static NSString dateFormatFromTemplate_options_locale_( - SentryCocoa _lib, NSString? tmplate, int opts, NSLocale? locale) { - final _ret = _lib._objc_msgSend_702( - _lib._class_NSDateFormatter1, - _lib._sel_dateFormatFromTemplate_options_locale_1, - tmplate?._id ?? ffi.nullptr, - opts, - locale?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + obj._lib._class_NSURLSessionTask1); } - static int getDefaultFormatterBehavior(SentryCocoa _lib) { - return _lib._objc_msgSend_703( - _lib._class_NSDateFormatter1, _lib._sel_defaultFormatterBehavior1); + int get taskIdentifier { + return _lib._objc_msgSend_10(_id, _lib._sel_taskIdentifier1); } - static void setDefaultFormatterBehavior(SentryCocoa _lib, int value) { - return _lib._objc_msgSend_704(_lib._class_NSDateFormatter1, - _lib._sel_setDefaultFormatterBehavior_1, value); + NSURLRequest? get originalRequest { + final _ret = _lib._objc_msgSend_815(_id, _lib._sel_originalRequest1); + return _ret.address == 0 + ? null + : NSURLRequest._(_ret, _lib, retain: true, release: true); } - void setLocalizedDateFormatFromTemplate_(NSString? dateFormatTemplate) { - _lib._objc_msgSend_192(_id, _lib._sel_setLocalizedDateFormatFromTemplate_1, - dateFormatTemplate?._id ?? ffi.nullptr); + NSURLRequest? get currentRequest { + final _ret = _lib._objc_msgSend_815(_id, _lib._sel_currentRequest1); + return _ret.address == 0 + ? null + : NSURLRequest._(_ret, _lib, retain: true, release: true); } - NSString? get dateFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dateFormat1); + NSURLResponse? get response { + final _ret = _lib._objc_msgSend_817(_id, _lib._sel_response1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSURLResponse._(_ret, _lib, retain: true, release: true); } - set dateFormat(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setDateFormat_1, value?._id ?? ffi.nullptr); + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - int get dateStyle { - return _lib._objc_msgSend_705(_id, _lib._sel_dateStyle1); + set delegate(NSObject? value) { + return _lib._objc_msgSend_389( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - set dateStyle(int value) { - return _lib._objc_msgSend_706(_id, _lib._sel_setDateStyle_1, value); + NSProgress? get progress { + final _ret = _lib._objc_msgSend_624(_id, _lib._sel_progress1); + return _ret.address == 0 + ? null + : NSProgress._(_ret, _lib, retain: true, release: true); } - int get timeStyle { - return _lib._objc_msgSend_705(_id, _lib._sel_timeStyle1); + NSDate? get earliestBeginDate { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_earliestBeginDate1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - set timeStyle(int value) { - return _lib._objc_msgSend_706(_id, _lib._sel_setTimeStyle_1, value); + set earliestBeginDate(NSDate? value) { + return _lib._objc_msgSend_540( + _id, _lib._sel_setEarliestBeginDate_1, value?._id ?? ffi.nullptr); } - NSLocale? get locale { - final _ret = _lib._objc_msgSend_182(_id, _lib._sel_locale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + int get countOfBytesClientExpectsToSend { + return _lib._objc_msgSend_631( + _id, _lib._sel_countOfBytesClientExpectsToSend1); } - set locale(NSLocale? value) { - return _lib._objc_msgSend_707( - _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); + set countOfBytesClientExpectsToSend(int value) { + return _lib._objc_msgSend_632( + _id, _lib._sel_setCountOfBytesClientExpectsToSend_1, value); } - bool get generatesCalendarDates { - return _lib._objc_msgSend_12(_id, _lib._sel_generatesCalendarDates1); + int get countOfBytesClientExpectsToReceive { + return _lib._objc_msgSend_631( + _id, _lib._sel_countOfBytesClientExpectsToReceive1); } - set generatesCalendarDates(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setGeneratesCalendarDates_1, value); + set countOfBytesClientExpectsToReceive(int value) { + return _lib._objc_msgSend_632( + _id, _lib._sel_setCountOfBytesClientExpectsToReceive_1, value); } - int get formatterBehavior { - return _lib._objc_msgSend_703(_id, _lib._sel_formatterBehavior1); + int get countOfBytesSent { + return _lib._objc_msgSend_631(_id, _lib._sel_countOfBytesSent1); } - set formatterBehavior(int value) { - return _lib._objc_msgSend_704(_id, _lib._sel_setFormatterBehavior_1, value); + int get countOfBytesReceived { + return _lib._objc_msgSend_631(_id, _lib._sel_countOfBytesReceived1); } - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); + int get countOfBytesExpectedToSend { + return _lib._objc_msgSend_631(_id, _lib._sel_countOfBytesExpectedToSend1); } - set timeZone(NSTimeZone? value) { - return _lib._objc_msgSend_169( - _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); + int get countOfBytesExpectedToReceive { + return _lib._objc_msgSend_631( + _id, _lib._sel_countOfBytesExpectedToReceive1); } - NSCalendar? get calendar { - final _ret = _lib._objc_msgSend_708(_id, _lib._sel_calendar1); + NSString? get taskDescription { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_taskDescription1); return _ret.address == 0 ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - set calendar(NSCalendar? value) { - return _lib._objc_msgSend_714( - _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); + set taskDescription(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setTaskDescription_1, value?._id ?? ffi.nullptr); } - bool get lenient { - return _lib._objc_msgSend_12(_id, _lib._sel_isLenient1); + void cancel() { + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } - set lenient(bool value) { - return _lib._objc_msgSend_495(_id, _lib._sel_setLenient_1, value); + int get state { + return _lib._objc_msgSend_818(_id, _lib._sel_state1); } - NSDate? get twoDigitStartDate { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_twoDigitStartDate1); + NSError? get error { + final _ret = _lib._objc_msgSend_300(_id, _lib._sel_error1); return _ret.address == 0 ? null - : NSDate._(_ret, _lib, retain: true, release: true); + : NSError._(_ret, _lib, retain: true, release: true); } - set twoDigitStartDate(NSDate? value) { - return _lib._objc_msgSend_528( - _id, _lib._sel_setTwoDigitStartDate_1, value?._id ?? ffi.nullptr); + void suspend() { + _lib._objc_msgSend_1(_id, _lib._sel_suspend1); } - NSDate? get defaultDate { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_defaultDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + void resume() { + _lib._objc_msgSend_1(_id, _lib._sel_resume1); } - set defaultDate(NSDate? value) { - return _lib._objc_msgSend_528( - _id, _lib._sel_setDefaultDate_1, value?._id ?? ffi.nullptr); + double get priority { + return _lib._objc_msgSend_221(_id, _lib._sel_priority1); } - NSArray? get eraSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_eraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + set priority(double value) { + return _lib._objc_msgSend_819(_id, _lib._sel_setPriority_1, value); } - set eraSymbols(NSArray? value) { - return _lib._objc_msgSend_739( - _id, _lib._sel_setEraSymbols_1, value?._id ?? ffi.nullptr); + bool get prefersIncrementalDelivery { + return _lib._objc_msgSend_12(_id, _lib._sel_prefersIncrementalDelivery1); } - NSArray? get monthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_monthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + set prefersIncrementalDelivery(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setPrefersIncrementalDelivery_1, value); } - set monthSymbols(NSArray? value) { - return _lib._objc_msgSend_739( - _id, _lib._sel_setMonthSymbols_1, value?._id ?? ffi.nullptr); + @override + NSURLSessionTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionTask._(_ret, _lib, retain: true, release: true); } - NSArray? get shortMonthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSURLSessionTask new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_new1); + return NSURLSessionTask._(_ret, _lib, retain: false, release: true); } - set shortMonthSymbols(NSArray? value) { - return _lib._objc_msgSend_739( - _id, _lib._sel_setShortMonthSymbols_1, value?._id ?? ffi.nullptr); + static NSURLSessionTask allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionTask._(_ret, _lib, retain: false, release: true); } - NSArray? get weekdaySymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_weekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSURLSessionTask alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_alloc1); + return NSURLSessionTask._(_ret, _lib, retain: false, release: true); } - set weekdaySymbols(NSArray? value) { - return _lib._objc_msgSend_739( - _id, _lib._sel_setWeekdaySymbols_1, value?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLSessionTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - NSArray? get shortWeekdaySymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSURLSessionTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - set shortWeekdaySymbols(NSArray? value) { - return _lib._objc_msgSend_739( - _id, _lib._sel_setShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLSessionTask1, + _lib._sel_accessInstanceVariablesDirectly1); } - NSString? get AMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_AMSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLSessionTask1, _lib._sel_useStoredAccessor1); } - set AMSymbol(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setAMSymbol_1, value?._id ?? ffi.nullptr); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLSessionTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - NSString? get PMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_PMSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLSessionTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - set PMSymbol(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setPMSymbol_1, value?._id ?? ffi.nullptr); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSURLSessionTask1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - NSArray? get longEraSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_longEraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionTask1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set longEraSymbols(NSArray? value) { - return _lib._objc_msgSend_739( - _id, _lib._sel_setLongEraSymbols_1, value?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionTask1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - NSArray? get veryShortMonthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); +class NSURLRequest extends NSObject { + NSURLRequest._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLRequest] that points to the same underlying object as [other]. + static NSURLRequest castFrom(T other) { + return NSURLRequest._(other._id, other._lib, retain: true, release: true); } - set veryShortMonthSymbols(NSArray? value) { - return _lib._objc_msgSend_739( - _id, _lib._sel_setVeryShortMonthSymbols_1, value?._id ?? ffi.nullptr); + /// Returns a [NSURLRequest] that wraps the given raw object pointer. + static NSURLRequest castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLRequest._(other, lib, retain: retain, release: release); } - NSArray? get standaloneMonthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_standaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSURLRequest]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLRequest1); } - set standaloneMonthSymbols(NSArray? value) { - return _lib._objc_msgSend_739( - _id, _lib._sel_setStandaloneMonthSymbols_1, value?._id ?? ffi.nullptr); + static NSURLRequest requestWithURL_(SentryCocoa _lib, NSURL? URL) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSURLRequest1, + _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - NSArray? get shortStandaloneMonthSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static bool getSupportsSecureCoding(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLRequest1, _lib._sel_supportsSecureCoding1); } - set shortStandaloneMonthSymbols(NSArray? value) { - return _lib._objc_msgSend_739(_id, - _lib._sel_setShortStandaloneMonthSymbols_1, value?._id ?? ffi.nullptr); + static NSURLRequest requestWithURL_cachePolicy_timeoutInterval_( + SentryCocoa _lib, NSURL? URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_801( + _lib._class_NSURLRequest1, + _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, + URL?._id ?? ffi.nullptr, + cachePolicy, + timeoutInterval); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortStandaloneMonthSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_veryShortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSURLRequest initWithURL_(NSURL? URL) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithURL_1, URL?._id ?? ffi.nullptr); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - set veryShortStandaloneMonthSymbols(NSArray? value) { - return _lib._objc_msgSend_739( + NSURLRequest initWithURL_cachePolicy_timeoutInterval_( + NSURL? URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_801( _id, - _lib._sel_setVeryShortStandaloneMonthSymbols_1, - value?._id ?? ffi.nullptr); + _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, + URL?._id ?? ffi.nullptr, + cachePolicy, + timeoutInterval); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortWeekdaySymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortWeekdaySymbols1); + NSURL? get URL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set veryShortWeekdaySymbols(NSArray? value) { - return _lib._objc_msgSend_739( - _id, _lib._sel_setVeryShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); + : NSURL._(_ret, _lib, retain: true, release: true); } - NSArray? get standaloneWeekdaySymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_standaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + int get cachePolicy { + return _lib._objc_msgSend_802(_id, _lib._sel_cachePolicy1); } - set standaloneWeekdaySymbols(NSArray? value) { - return _lib._objc_msgSend_739(_id, _lib._sel_setStandaloneWeekdaySymbols_1, - value?._id ?? ffi.nullptr); + double get timeoutInterval { + return _lib._objc_msgSend_155(_id, _lib._sel_timeoutInterval1); } - NSArray? get shortStandaloneWeekdaySymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneWeekdaySymbols1); + NSURL? get mainDocumentURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_mainDocumentURL1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSURL._(_ret, _lib, retain: true, release: true); } - set shortStandaloneWeekdaySymbols(NSArray? value) { - return _lib._objc_msgSend_739( - _id, - _lib._sel_setShortStandaloneWeekdaySymbols_1, - value?._id ?? ffi.nullptr); + int get networkServiceType { + return _lib._objc_msgSend_803(_id, _lib._sel_networkServiceType1); } - NSArray? get veryShortStandaloneWeekdaySymbols { - final _ret = _lib._objc_msgSend_79( - _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool get allowsCellularAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); } - set veryShortStandaloneWeekdaySymbols(NSArray? value) { - return _lib._objc_msgSend_739( - _id, - _lib._sel_setVeryShortStandaloneWeekdaySymbols_1, - value?._id ?? ffi.nullptr); + bool get allowsExpensiveNetworkAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); } - NSArray? get quarterSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_quarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool get allowsConstrainedNetworkAccess { + return _lib._objc_msgSend_12( + _id, _lib._sel_allowsConstrainedNetworkAccess1); } - set quarterSymbols(NSArray? value) { - return _lib._objc_msgSend_739( - _id, _lib._sel_setQuarterSymbols_1, value?._id ?? ffi.nullptr); + bool get allowsUltraConstrainedNetworkAccess { + return _lib._objc_msgSend_12( + _id, _lib._sel_allowsUltraConstrainedNetworkAccess1); } - NSArray? get shortQuarterSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool get assumesHTTP3Capable { + return _lib._objc_msgSend_12(_id, _lib._sel_assumesHTTP3Capable1); } - set shortQuarterSymbols(NSArray? value) { - return _lib._objc_msgSend_739( - _id, _lib._sel_setShortQuarterSymbols_1, value?._id ?? ffi.nullptr); + int get attribution { + return _lib._objc_msgSend_804(_id, _lib._sel_attribution1); } - NSArray? get standaloneQuarterSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_standaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); } - set standaloneQuarterSymbols(NSArray? value) { - return _lib._objc_msgSend_739(_id, _lib._sel_setStandaloneQuarterSymbols_1, - value?._id ?? ffi.nullptr); + bool get allowsPersistentDNS { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsPersistentDNS1); } - NSArray? get shortStandaloneQuarterSymbols { + NSString? get cookiePartitionIdentifier { final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneQuarterSymbols1); + _lib._objc_msgSend_20(_id, _lib._sel_cookiePartitionIdentifier1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - set shortStandaloneQuarterSymbols(NSArray? value) { - return _lib._objc_msgSend_739( - _id, - _lib._sel_setShortStandaloneQuarterSymbols_1, - value?._id ?? ffi.nullptr); + NSString? get HTTPMethod { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_HTTPMethod1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSDate? get gregorianStartDate { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_gregorianStartDate1); + NSDictionary? get allHTTPHeaderFields { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allHTTPHeaderFields1); return _ret.address == 0 ? null - : NSDate._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - set gregorianStartDate(NSDate? value) { - return _lib._objc_msgSend_528( - _id, _lib._sel_setGregorianStartDate_1, value?._id ?? ffi.nullptr); + NSString valueForHTTPHeaderField_(NSString? field) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_valueForHTTPHeaderField_1, field?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - bool get doesRelativeDateFormatting { - return _lib._objc_msgSend_12(_id, _lib._sel_doesRelativeDateFormatting1); + NSData? get HTTPBody { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_HTTPBody1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - set doesRelativeDateFormatting(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setDoesRelativeDateFormatting_1, value); + NSInputStream? get HTTPBodyStream { + final _ret = _lib._objc_msgSend_814(_id, _lib._sel_HTTPBodyStream1); + return _ret.address == 0 + ? null + : NSInputStream._(_ret, _lib, retain: true, release: true); } - NSObject initWithDateFormat_allowNaturalLanguage_( - NSString? format, bool flag) { - final _ret = _lib._objc_msgSend_29( - _id, - _lib._sel_initWithDateFormat_allowNaturalLanguage_1, - format?._id ?? ffi.nullptr, - flag); - return NSObject._(_ret, _lib, retain: true, release: true); + bool get HTTPShouldHandleCookies { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldHandleCookies1); } - bool allowsNaturalLanguage() { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsNaturalLanguage1); + bool get HTTPShouldUsePipelining { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); } @override - NSDateFormatter init() { + NSURLRequest init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSDateFormatter._(_ret, _lib, retain: true, release: true); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - static NSDateFormatter new1(SentryCocoa _lib) { + static NSURLRequest new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_new1); - return NSDateFormatter._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_new1); + return NSURLRequest._(_ret, _lib, retain: false, release: true); } - static NSDateFormatter allocWithZone_( + static NSURLRequest allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSDateFormatter1, _lib._sel_allocWithZone_1, zone); - return NSDateFormatter._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLRequest1, _lib._sel_allocWithZone_1, zone); + return NSURLRequest._(_ret, _lib, retain: false, release: true); } - static NSDateFormatter alloc(SentryCocoa _lib) { + static NSURLRequest alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSDateFormatter1, _lib._sel_alloc1); - return NSDateFormatter._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_alloc1); + return NSURLRequest._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -54949,7 +62474,7 @@ class NSDateFormatter extends NSFormatter { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSDateFormatter1, + _lib._class_NSURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -54958,24 +62483,24 @@ class NSDateFormatter extends NSFormatter { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSDateFormatter1, + _lib._objc_msgSend_15(_lib._class_NSURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSDateFormatter1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSURLRequest1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSDateFormatter1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLRequest1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSDateFormatter1, + _lib._class_NSURLRequest1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -54984,7 +62509,7 @@ class NSDateFormatter extends NSFormatter { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSDateFormatter1, + _lib._class_NSURLRequest1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -54992,133 +62517,192 @@ class NSDateFormatter extends NSFormatter { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSDateFormatter1, + _lib._class_NSURLRequest1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSDateFormatter1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURLRequest1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSDateFormatter1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLRequest1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSFormatter extends NSObject { - NSFormatter._(ffi.Pointer id, SentryCocoa lib, +abstract class NSURLRequestCachePolicy { + static const int NSURLRequestUseProtocolCachePolicy = 0; + static const int NSURLRequestReloadIgnoringLocalCacheData = 1; + static const int NSURLRequestReloadIgnoringLocalAndRemoteCacheData = 4; + static const int NSURLRequestReloadIgnoringCacheData = 1; + static const int NSURLRequestReturnCacheDataElseLoad = 2; + static const int NSURLRequestReturnCacheDataDontLoad = 3; + static const int NSURLRequestReloadRevalidatingCacheData = 5; +} + +abstract class NSURLRequestNetworkServiceType { + static const int NSURLNetworkServiceTypeDefault = 0; + static const int NSURLNetworkServiceTypeVoIP = 1; + static const int NSURLNetworkServiceTypeVideo = 2; + static const int NSURLNetworkServiceTypeBackground = 3; + static const int NSURLNetworkServiceTypeVoice = 4; + static const int NSURLNetworkServiceTypeResponsiveData = 6; + static const int NSURLNetworkServiceTypeAVStreaming = 8; + static const int NSURLNetworkServiceTypeResponsiveAV = 9; + static const int NSURLNetworkServiceTypeCallSignaling = 11; +} + +abstract class NSURLRequestAttribution { + static const int NSURLRequestAttributionDeveloper = 0; + static const int NSURLRequestAttributionUser = 1; +} + +class NSInputStream extends NSStream { + NSInputStream._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSFormatter] that points to the same underlying object as [other]. - static NSFormatter castFrom(T other) { - return NSFormatter._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSInputStream] that points to the same underlying object as [other]. + static NSInputStream castFrom(T other) { + return NSInputStream._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSFormatter] that wraps the given raw object pointer. - static NSFormatter castFromPointer( + /// Returns a [NSInputStream] that wraps the given raw object pointer. + static NSInputStream castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSFormatter._(other, lib, retain: retain, release: release); + return NSInputStream._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSFormatter]. + /// Returns whether [obj] is an instance of [NSInputStream]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFormatter1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSInputStream1); } - NSString stringForObjectValue_(NSObject obj) { - final _ret = - _lib._objc_msgSend_65(_id, _lib._sel_stringForObjectValue_1, obj._id); - return NSString._(_ret, _lib, retain: true, release: true); + int read_maxLength_(ffi.Pointer buffer, int len) { + return _lib._objc_msgSend_806(_id, _lib._sel_read_maxLength_1, buffer, len); } - NSAttributedString attributedStringForObjectValue_withDefaultAttributes_( - NSObject obj, NSDictionary? attrs) { - final _ret = _lib._objc_msgSend_694( - _id, - _lib._sel_attributedStringForObjectValue_withDefaultAttributes_1, - obj._id, - attrs?._id ?? ffi.nullptr); - return NSAttributedString._(_ret, _lib, retain: true, release: true); + bool getBuffer_length_(ffi.Pointer> buffer, + ffi.Pointer len) { + return _lib._objc_msgSend_813( + _id, _lib._sel_getBuffer_length_1, buffer, len); } - NSString editingStringForObjectValue_(NSObject obj) { - final _ret = _lib._objc_msgSend_65( - _id, _lib._sel_editingStringForObjectValue_1, obj._id); - return NSString._(_ret, _lib, retain: true, release: true); + bool get hasBytesAvailable { + return _lib._objc_msgSend_12(_id, _lib._sel_hasBytesAvailable1); } - bool getObjectValue_forString_errorDescription_( - ffi.Pointer> obj, - NSString? string, - ffi.Pointer> error) { - return _lib._objc_msgSend_695( - _id, - _lib._sel_getObjectValue_forString_errorDescription_1, - obj, - string?._id ?? ffi.nullptr, - error); + NSInputStream initWithData_(NSData? data) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + return NSInputStream._(_ret, _lib, retain: true, release: true); } - bool isPartialStringValid_newEditingString_errorDescription_( - NSString? partialString, - ffi.Pointer> newString, - ffi.Pointer> error) { - return _lib._objc_msgSend_696( - _id, - _lib._sel_isPartialStringValid_newEditingString_errorDescription_1, - partialString?._id ?? ffi.nullptr, - newString, - error); + NSInputStream initWithURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); + return NSInputStream._(_ret, _lib, retain: true, release: true); } - bool - isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_( - ffi.Pointer> partialStringPtr, - ffi.Pointer<_NSRange> proposedSelRangePtr, - NSString? origString, - _NSRange origSelRange, - ffi.Pointer> error) { - return _lib._objc_msgSend_697( - _id, - _lib._sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1, - partialStringPtr, - proposedSelRangePtr, - origString?._id ?? ffi.nullptr, - origSelRange, - error); + NSInputStream initWithFileAtPath_(NSString? path) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithFileAtPath_1, path?._id ?? ffi.nullptr); + return NSInputStream._(_ret, _lib, retain: true, release: true); + } + + static NSInputStream inputStreamWithData_(SentryCocoa _lib, NSData? data) { + final _ret = _lib._objc_msgSend_257(_lib._class_NSInputStream1, + _lib._sel_inputStreamWithData_1, data?._id ?? ffi.nullptr); + return NSInputStream._(_ret, _lib, retain: true, release: true); + } + + static NSInputStream inputStreamWithFileAtPath_( + SentryCocoa _lib, NSString? path) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSInputStream1, + _lib._sel_inputStreamWithFileAtPath_1, path?._id ?? ffi.nullptr); + return NSInputStream._(_ret, _lib, retain: true, release: true); + } + + static NSInputStream inputStreamWithURL_(SentryCocoa _lib, NSURL? url) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSInputStream1, + _lib._sel_inputStreamWithURL_1, url?._id ?? ffi.nullptr); + return NSInputStream._(_ret, _lib, retain: true, release: true); + } + + static void getStreamsToHostWithName_port_inputStream_outputStream_( + SentryCocoa _lib, + NSString? hostname, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_808( + _lib._class_NSInputStream1, + _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, + hostname?._id ?? ffi.nullptr, + port, + inputStream, + outputStream); + } + + static void getStreamsToHost_port_inputStream_outputStream_( + SentryCocoa _lib, + NSHost? host, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_811( + _lib._class_NSInputStream1, + _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, + host?._id ?? ffi.nullptr, + port, + inputStream, + outputStream); + } + + static void getBoundStreamsWithBufferSize_inputStream_outputStream_( + SentryCocoa _lib, + int bufferSize, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_812( + _lib._class_NSInputStream1, + _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, + bufferSize, + inputStream, + outputStream); } @override - NSFormatter init() { + NSInputStream init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSFormatter._(_ret, _lib, retain: true, release: true); + return NSInputStream._(_ret, _lib, retain: true, release: true); } - static NSFormatter new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_new1); - return NSFormatter._(_ret, _lib, retain: false, release: true); + static NSInputStream new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_new1); + return NSInputStream._(_ret, _lib, retain: false, release: true); } - static NSFormatter allocWithZone_( + static NSInputStream allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSFormatter1, _lib._sel_allocWithZone_1, zone); - return NSFormatter._(_ret, _lib, retain: false, release: true); + _lib._class_NSInputStream1, _lib._sel_allocWithZone_1, zone); + return NSInputStream._(_ret, _lib, retain: false, release: true); } - static NSFormatter alloc(SentryCocoa _lib) { + static NSInputStream alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_alloc1); - return NSFormatter._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_alloc1); + return NSInputStream._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -55127,7 +62711,7 @@ class NSFormatter extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSFormatter1, + _lib._class_NSInputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -55136,24 +62720,24 @@ class NSFormatter extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSFormatter1, + _lib._objc_msgSend_15(_lib._class_NSInputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSFormatter1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSInputStream1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSFormatter1, _lib._sel_useStoredAccessor1); + _lib._class_NSInputStream1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSFormatter1, + _lib._class_NSInputStream1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -55162,7 +62746,7 @@ class NSFormatter extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSFormatter1, + _lib._class_NSInputStream1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -55170,7 +62754,7 @@ class NSFormatter extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSFormatter1, + _lib._class_NSInputStream1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -55178,673 +62762,391 @@ class NSFormatter extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSFormatter1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSInputStream1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSFormatter1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSInputStream1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSFormattingContext { - static const int NSFormattingContextUnknown = 0; - static const int NSFormattingContextDynamic = 1; - static const int NSFormattingContextStandalone = 2; - static const int NSFormattingContextListItem = 3; - static const int NSFormattingContextBeginningOfSentence = 4; - static const int NSFormattingContextMiddleOfSentence = 5; -} - -abstract class NSDateFormatterStyle { - static const int NSDateFormatterNoStyle = 0; - static const int NSDateFormatterShortStyle = 1; - static const int NSDateFormatterMediumStyle = 2; - static const int NSDateFormatterLongStyle = 3; - static const int NSDateFormatterFullStyle = 4; -} - -abstract class NSDateFormatterBehavior { - static const int NSDateFormatterBehaviorDefault = 0; - static const int NSDateFormatterBehavior10_0 = 1000; - static const int NSDateFormatterBehavior10_4 = 1040; -} - -class NSCalendar extends NSObject { - NSCalendar._(ffi.Pointer id, SentryCocoa lib, +class NSStream extends NSObject { + NSStream._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSCalendar] that points to the same underlying object as [other]. - static NSCalendar castFrom(T other) { - return NSCalendar._(other._id, other._lib, retain: true, release: true); - } - - /// Returns a [NSCalendar] that wraps the given raw object pointer. - static NSCalendar castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSCalendar._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [NSCalendar]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSCalendar1); - } - - static NSCalendar? getCurrentCalendar(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_708( - _lib._class_NSCalendar1, _lib._sel_currentCalendar1); - return _ret.address == 0 - ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); - } - - static NSCalendar? getAutoupdatingCurrentCalendar(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_708( - _lib._class_NSCalendar1, _lib._sel_autoupdatingCurrentCalendar1); - return _ret.address == 0 - ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); - } - - static NSCalendar calendarWithIdentifier_( - SentryCocoa _lib, NSString calendarIdentifierConstant) { - final _ret = _lib._objc_msgSend_709(_lib._class_NSCalendar1, - _lib._sel_calendarWithIdentifier_1, calendarIdentifierConstant._id); - return NSCalendar._(_ret, _lib, retain: true, release: true); - } - - @override - NSCalendar init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSCalendar._(_ret, _lib, retain: true, release: true); - } - - NSObject initWithCalendarIdentifier_(NSString ident) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithCalendarIdentifier_1, ident._id); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - NSString get calendarIdentifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_calendarIdentifier1); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSLocale? get locale { - final _ret = _lib._objc_msgSend_182(_id, _lib._sel_locale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); - } - - set locale(NSLocale? value) { - return _lib._objc_msgSend_707( - _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); - } - - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - set timeZone(NSTimeZone? value) { - return _lib._objc_msgSend_169( - _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); - } - - int get firstWeekday { - return _lib._objc_msgSend_10(_id, _lib._sel_firstWeekday1); - } - - set firstWeekday(int value) { - return _lib._objc_msgSend_486(_id, _lib._sel_setFirstWeekday_1, value); - } - - int get minimumDaysInFirstWeek { - return _lib._objc_msgSend_10(_id, _lib._sel_minimumDaysInFirstWeek1); - } - - set minimumDaysInFirstWeek(int value) { - return _lib._objc_msgSend_486( - _id, _lib._sel_setMinimumDaysInFirstWeek_1, value); - } - - NSArray? get eraSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_eraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get longEraSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_longEraSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get monthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_monthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get shortMonthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get veryShortMonthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get standaloneMonthSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_standaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get shortStandaloneMonthSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSArray? get veryShortStandaloneMonthSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_veryShortStandaloneMonthSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + /// Returns a [NSStream] that points to the same underlying object as [other]. + static NSStream castFrom(T other) { + return NSStream._(other._id, other._lib, retain: true, release: true); } - NSArray? get weekdaySymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_weekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + /// Returns a [NSStream] that wraps the given raw object pointer. + static NSStream castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSStream._(other, lib, retain: retain, release: release); } - NSArray? get shortWeekdaySymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSStream]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSStream1); } - NSArray? get veryShortWeekdaySymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_veryShortWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + void open() { + _lib._objc_msgSend_1(_id, _lib._sel_open1); } - NSArray? get standaloneWeekdaySymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_standaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + void close() { + _lib._objc_msgSend_1(_id, _lib._sel_close1); } - NSArray? get shortStandaloneWeekdaySymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneWeekdaySymbols1); + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - NSArray? get veryShortStandaloneWeekdaySymbols { - final _ret = _lib._objc_msgSend_79( - _id, _lib._sel_veryShortStandaloneWeekdaySymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + set delegate(NSObject? value) { + return _lib._objc_msgSend_389( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - NSArray? get quarterSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_quarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSObject propertyForKey_(NSString key) { + final _ret = + _lib._objc_msgSend_30(_id, _lib._sel_propertyForKey_1, key._id); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSArray? get shortQuarterSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_shortQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool setProperty_forKey_(NSObject property, NSString key) { + return _lib._objc_msgSend_240( + _id, _lib._sel_setProperty_forKey_1, property._id, key._id); } - NSArray? get standaloneQuarterSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_standaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + _lib._objc_msgSend_548(_id, _lib._sel_scheduleInRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, mode._id); } - NSArray? get shortStandaloneQuarterSymbols { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_shortStandaloneQuarterSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + _lib._objc_msgSend_548(_id, _lib._sel_removeFromRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, mode._id); } - NSString? get AMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_AMSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int get streamStatus { + return _lib._objc_msgSend_805(_id, _lib._sel_streamStatus1); } - NSString? get PMSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_PMSymbol1); + NSError? get streamError { + final _ret = _lib._objc_msgSend_300(_id, _lib._sel_streamError1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - void minimumRangeOfUnit_(ffi.Pointer<_NSRange> stret, int unit) { - _lib._objc_msgSend_710(stret, _id, _lib._sel_minimumRangeOfUnit_1, unit); + : NSError._(_ret, _lib, retain: true, release: true); } - void maximumRangeOfUnit_(ffi.Pointer<_NSRange> stret, int unit) { - _lib._objc_msgSend_710(stret, _id, _lib._sel_maximumRangeOfUnit_1, unit); + static void getStreamsToHostWithName_port_inputStream_outputStream_( + SentryCocoa _lib, + NSString? hostname, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_808( + _lib._class_NSStream1, + _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, + hostname?._id ?? ffi.nullptr, + port, + inputStream, + outputStream); } - void rangeOfUnit_inUnit_forDate_( - ffi.Pointer<_NSRange> stret, int smaller, int larger, NSDate? date) { - _lib._objc_msgSend_711(stret, _id, _lib._sel_rangeOfUnit_inUnit_forDate_1, - smaller, larger, date?._id ?? ffi.nullptr); + static void getStreamsToHost_port_inputStream_outputStream_( + SentryCocoa _lib, + NSHost? host, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_811( + _lib._class_NSStream1, + _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, + host?._id ?? ffi.nullptr, + port, + inputStream, + outputStream); } - int ordinalityOfUnit_inUnit_forDate_(int smaller, int larger, NSDate? date) { - return _lib._objc_msgSend_712( - _id, - _lib._sel_ordinalityOfUnit_inUnit_forDate_1, - smaller, - larger, - date?._id ?? ffi.nullptr); + static void getBoundStreamsWithBufferSize_inputStream_outputStream_( + SentryCocoa _lib, + int bufferSize, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_812( + _lib._class_NSStream1, + _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, + bufferSize, + inputStream, + outputStream); } - bool rangeOfUnit_startDate_interval_forDate_( - int unit, - ffi.Pointer> datep, - ffi.Pointer tip, - NSDate? date) { - return _lib._objc_msgSend_713( - _id, - _lib._sel_rangeOfUnit_startDate_interval_forDate_1, - unit, - datep, - tip, - date?._id ?? ffi.nullptr); + @override + NSStream init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSStream._(_ret, _lib, retain: true, release: true); } - NSDate dateFromComponents_(NSDateComponents? comps) { - final _ret = _lib._objc_msgSend_718( - _id, _lib._sel_dateFromComponents_1, comps?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + static NSStream new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_new1); + return NSStream._(_ret, _lib, retain: false, release: true); } - NSDateComponents components_fromDate_(int unitFlags, NSDate? date) { - final _ret = _lib._objc_msgSend_719(_id, _lib._sel_components_fromDate_1, - unitFlags, date?._id ?? ffi.nullptr); - return NSDateComponents._(_ret, _lib, retain: true, release: true); + static NSStream allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSStream1, _lib._sel_allocWithZone_1, zone); + return NSStream._(_ret, _lib, retain: false, release: true); } - NSDate dateByAddingComponents_toDate_options_( - NSDateComponents? comps, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_720( - _id, - _lib._sel_dateByAddingComponents_toDate_options_1, - comps?._id ?? ffi.nullptr, - date?._id ?? ffi.nullptr, - opts); - return NSDate._(_ret, _lib, retain: true, release: true); + static NSStream alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_alloc1); + return NSStream._(_ret, _lib, retain: false, release: true); } - NSDateComponents components_fromDate_toDate_options_( - int unitFlags, NSDate? startingDate, NSDate? resultDate, int opts) { - final _ret = _lib._objc_msgSend_721( - _id, - _lib._sel_components_fromDate_toDate_options_1, - unitFlags, - startingDate?._id ?? ffi.nullptr, - resultDate?._id ?? ffi.nullptr, - opts); - return NSDateComponents._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSStream1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - void getEra_year_month_day_fromDate_( - ffi.Pointer eraValuePointer, - ffi.Pointer yearValuePointer, - ffi.Pointer monthValuePointer, - ffi.Pointer dayValuePointer, - NSDate? date) { - _lib._objc_msgSend_722( - _id, - _lib._sel_getEra_year_month_day_fromDate_1, - eraValuePointer, - yearValuePointer, - monthValuePointer, - dayValuePointer, - date?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSStream1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_( - ffi.Pointer eraValuePointer, - ffi.Pointer yearValuePointer, - ffi.Pointer weekValuePointer, - ffi.Pointer weekdayValuePointer, - NSDate? date) { - _lib._objc_msgSend_722( - _id, - _lib._sel_getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_1, - eraValuePointer, - yearValuePointer, - weekValuePointer, - weekdayValuePointer, - date?._id ?? ffi.nullptr); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSStream1, _lib._sel_accessInstanceVariablesDirectly1); } - void getHour_minute_second_nanosecond_fromDate_( - ffi.Pointer hourValuePointer, - ffi.Pointer minuteValuePointer, - ffi.Pointer secondValuePointer, - ffi.Pointer nanosecondValuePointer, - NSDate? date) { - _lib._objc_msgSend_722( - _id, - _lib._sel_getHour_minute_second_nanosecond_fromDate_1, - hourValuePointer, - minuteValuePointer, - secondValuePointer, - nanosecondValuePointer, - date?._id ?? ffi.nullptr); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSStream1, _lib._sel_useStoredAccessor1); } - int component_fromDate_(int unit, NSDate? date) { - return _lib._objc_msgSend_723( - _id, _lib._sel_component_fromDate_1, unit, date?._id ?? ffi.nullptr); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSStream1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - NSDate dateWithEra_year_month_day_hour_minute_second_nanosecond_( - int eraValue, - int yearValue, - int monthValue, - int dayValue, - int hourValue, - int minuteValue, - int secondValue, - int nanosecondValue) { - final _ret = _lib._objc_msgSend_724( - _id, - _lib._sel_dateWithEra_year_month_day_hour_minute_second_nanosecond_1, - eraValue, - yearValue, - monthValue, - dayValue, - hourValue, - minuteValue, - secondValue, - nanosecondValue); - return NSDate._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSStream1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - NSDate - dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_( - int eraValue, - int yearValue, - int weekValue, - int weekdayValue, - int hourValue, - int minuteValue, - int secondValue, - int nanosecondValue) { - final _ret = _lib._objc_msgSend_724( - _id, - _lib._sel_dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_1, - eraValue, - yearValue, - weekValue, - weekdayValue, - hourValue, - minuteValue, - secondValue, - nanosecondValue); - return NSDate._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSStream1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - NSDate startOfDayForDate_(NSDate? date) { - final _ret = _lib._objc_msgSend_158( - _id, _lib._sel_startOfDayForDate_1, date?._id ?? ffi.nullptr); - return NSDate._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSStream1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSDateComponents componentsInTimeZone_fromDate_( - NSTimeZone? timezone, NSDate? date) { - final _ret = _lib._objc_msgSend_725( - _id, - _lib._sel_componentsInTimeZone_fromDate_1, - timezone?._id ?? ffi.nullptr, - date?._id ?? ffi.nullptr); - return NSDateComponents._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSStream1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - int compareDate_toDate_toUnitGranularity_( - NSDate? date1, NSDate? date2, int unit) { - return _lib._objc_msgSend_726( - _id, - _lib._sel_compareDate_toDate_toUnitGranularity_1, - date1?._id ?? ffi.nullptr, - date2?._id ?? ffi.nullptr, - unit); - } +abstract class NSStreamStatus { + static const int NSStreamStatusNotOpen = 0; + static const int NSStreamStatusOpening = 1; + static const int NSStreamStatusOpen = 2; + static const int NSStreamStatusReading = 3; + static const int NSStreamStatusWriting = 4; + static const int NSStreamStatusAtEnd = 5; + static const int NSStreamStatusClosed = 6; + static const int NSStreamStatusError = 7; +} - bool isDate_equalToDate_toUnitGranularity_( - NSDate? date1, NSDate? date2, int unit) { - return _lib._objc_msgSend_727( - _id, - _lib._sel_isDate_equalToDate_toUnitGranularity_1, - date1?._id ?? ffi.nullptr, - date2?._id ?? ffi.nullptr, - unit); - } +class NSOutputStream extends NSStream { + NSOutputStream._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - bool isDate_inSameDayAsDate_(NSDate? date1, NSDate? date2) { - return _lib._objc_msgSend_728(_id, _lib._sel_isDate_inSameDayAsDate_1, - date1?._id ?? ffi.nullptr, date2?._id ?? ffi.nullptr); + /// Returns a [NSOutputStream] that points to the same underlying object as [other]. + static NSOutputStream castFrom(T other) { + return NSOutputStream._(other._id, other._lib, retain: true, release: true); } - bool isDateInToday_(NSDate? date) { - return _lib._objc_msgSend_160( - _id, _lib._sel_isDateInToday_1, date?._id ?? ffi.nullptr); + /// Returns a [NSOutputStream] that wraps the given raw object pointer. + static NSOutputStream castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSOutputStream._(other, lib, retain: retain, release: release); } - bool isDateInYesterday_(NSDate? date) { - return _lib._objc_msgSend_160( - _id, _lib._sel_isDateInYesterday_1, date?._id ?? ffi.nullptr); + /// Returns whether [obj] is an instance of [NSOutputStream]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSOutputStream1); } - bool isDateInTomorrow_(NSDate? date) { - return _lib._objc_msgSend_160( - _id, _lib._sel_isDateInTomorrow_1, date?._id ?? ffi.nullptr); + int write_maxLength_(ffi.Pointer buffer, int len) { + return _lib._objc_msgSend_806( + _id, _lib._sel_write_maxLength_1, buffer, len); } - bool isDateInWeekend_(NSDate? date) { - return _lib._objc_msgSend_160( - _id, _lib._sel_isDateInWeekend_1, date?._id ?? ffi.nullptr); + bool get hasSpaceAvailable { + return _lib._objc_msgSend_12(_id, _lib._sel_hasSpaceAvailable1); } - bool rangeOfWeekendStartDate_interval_containingDate_( - ffi.Pointer> datep, - ffi.Pointer tip, - NSDate? date) { - return _lib._objc_msgSend_729( - _id, - _lib._sel_rangeOfWeekendStartDate_interval_containingDate_1, - datep, - tip, - date?._id ?? ffi.nullptr); + NSOutputStream initToMemory() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initToMemory1); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - bool nextWeekendStartDate_interval_options_afterDate_( - ffi.Pointer> datep, - ffi.Pointer tip, - int options, - NSDate? date) { - return _lib._objc_msgSend_730( - _id, - _lib._sel_nextWeekendStartDate_interval_options_afterDate_1, - datep, - tip, - options, - date?._id ?? ffi.nullptr); + NSOutputStream initToBuffer_capacity_( + ffi.Pointer buffer, int capacity) { + final _ret = _lib._objc_msgSend_807( + _id, _lib._sel_initToBuffer_capacity_1, buffer, capacity); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - NSDateComponents components_fromDateComponents_toDateComponents_options_( - int unitFlags, - NSDateComponents? startingDateComp, - NSDateComponents? resultDateComp, - int options) { - final _ret = _lib._objc_msgSend_731( - _id, - _lib._sel_components_fromDateComponents_toDateComponents_options_1, - unitFlags, - startingDateComp?._id ?? ffi.nullptr, - resultDateComp?._id ?? ffi.nullptr, - options); - return NSDateComponents._(_ret, _lib, retain: true, release: true); + NSOutputStream initWithURL_append_(NSURL? url, bool shouldAppend) { + final _ret = _lib._objc_msgSend_246(_id, _lib._sel_initWithURL_append_1, + url?._id ?? ffi.nullptr, shouldAppend); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - NSDate dateByAddingUnit_value_toDate_options_( - int unit, int value, NSDate? date, int options) { - final _ret = _lib._objc_msgSend_732( - _id, - _lib._sel_dateByAddingUnit_value_toDate_options_1, - unit, - value, - date?._id ?? ffi.nullptr, - options); - return NSDate._(_ret, _lib, retain: true, release: true); + NSOutputStream initToFileAtPath_append_(NSString? path, bool shouldAppend) { + final _ret = _lib._objc_msgSend_29(_id, _lib._sel_initToFileAtPath_append_1, + path?._id ?? ffi.nullptr, shouldAppend); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - void enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_( - NSDate? start, - NSDateComponents? comps, - int opts, - ObjCBlock_ffiVoid_NSDate_bool_bool block) { - _lib._objc_msgSend_733( - _id, - _lib._sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1, - start?._id ?? ffi.nullptr, - comps?._id ?? ffi.nullptr, - opts, - block._id); + static NSOutputStream outputStreamToMemory(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSOutputStream1, _lib._sel_outputStreamToMemory1); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - NSDate nextDateAfterDate_matchingComponents_options_( - NSDate? date, NSDateComponents? comps, int options) { - final _ret = _lib._objc_msgSend_734( - _id, - _lib._sel_nextDateAfterDate_matchingComponents_options_1, - date?._id ?? ffi.nullptr, - comps?._id ?? ffi.nullptr, - options); - return NSDate._(_ret, _lib, retain: true, release: true); + static NSOutputStream outputStreamToBuffer_capacity_( + SentryCocoa _lib, ffi.Pointer buffer, int capacity) { + final _ret = _lib._objc_msgSend_807(_lib._class_NSOutputStream1, + _lib._sel_outputStreamToBuffer_capacity_1, buffer, capacity); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - NSDate nextDateAfterDate_matchingUnit_value_options_( - NSDate? date, int unit, int value, int options) { - final _ret = _lib._objc_msgSend_735( - _id, - _lib._sel_nextDateAfterDate_matchingUnit_value_options_1, - date?._id ?? ffi.nullptr, - unit, - value, - options); - return NSDate._(_ret, _lib, retain: true, release: true); + static NSOutputStream outputStreamToFileAtPath_append_( + SentryCocoa _lib, NSString? path, bool shouldAppend) { + final _ret = _lib._objc_msgSend_29( + _lib._class_NSOutputStream1, + _lib._sel_outputStreamToFileAtPath_append_1, + path?._id ?? ffi.nullptr, + shouldAppend); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - NSDate nextDateAfterDate_matchingHour_minute_second_options_(NSDate? date, - int hourValue, int minuteValue, int secondValue, int options) { - final _ret = _lib._objc_msgSend_736( - _id, - _lib._sel_nextDateAfterDate_matchingHour_minute_second_options_1, - date?._id ?? ffi.nullptr, - hourValue, - minuteValue, - secondValue, - options); - return NSDate._(_ret, _lib, retain: true, release: true); + static NSOutputStream outputStreamWithURL_append_( + SentryCocoa _lib, NSURL? url, bool shouldAppend) { + final _ret = _lib._objc_msgSend_246( + _lib._class_NSOutputStream1, + _lib._sel_outputStreamWithURL_append_1, + url?._id ?? ffi.nullptr, + shouldAppend); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - NSDate dateBySettingUnit_value_ofDate_options_( - int unit, int v, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_732( - _id, - _lib._sel_dateBySettingUnit_value_ofDate_options_1, - unit, - v, - date?._id ?? ffi.nullptr, - opts); - return NSDate._(_ret, _lib, retain: true, release: true); + static void getStreamsToHostWithName_port_inputStream_outputStream_( + SentryCocoa _lib, + NSString? hostname, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_808( + _lib._class_NSOutputStream1, + _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, + hostname?._id ?? ffi.nullptr, + port, + inputStream, + outputStream); } - NSDate dateBySettingHour_minute_second_ofDate_options_( - int h, int m, int s, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_737( - _id, - _lib._sel_dateBySettingHour_minute_second_ofDate_options_1, - h, - m, - s, - date?._id ?? ffi.nullptr, - opts); - return NSDate._(_ret, _lib, retain: true, release: true); + static void getStreamsToHost_port_inputStream_outputStream_( + SentryCocoa _lib, + NSHost? host, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_811( + _lib._class_NSOutputStream1, + _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, + host?._id ?? ffi.nullptr, + port, + inputStream, + outputStream); } - bool date_matchesComponents_(NSDate? date, NSDateComponents? components) { - return _lib._objc_msgSend_738(_id, _lib._sel_date_matchesComponents_1, - date?._id ?? ffi.nullptr, components?._id ?? ffi.nullptr); + static void getBoundStreamsWithBufferSize_inputStream_outputStream_( + SentryCocoa _lib, + int bufferSize, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + _lib._objc_msgSend_812( + _lib._class_NSOutputStream1, + _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, + bufferSize, + inputStream, + outputStream); } - static NSCalendar new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSCalendar1, _lib._sel_new1); - return NSCalendar._(_ret, _lib, retain: false, release: true); + @override + NSOutputStream init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSOutputStream._(_ret, _lib, retain: true, release: true); } - static NSCalendar allocWithZone_( + static NSOutputStream new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_new1); + return NSOutputStream._(_ret, _lib, retain: false, release: true); + } + + static NSOutputStream allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSCalendar1, _lib._sel_allocWithZone_1, zone); - return NSCalendar._(_ret, _lib, retain: false, release: true); + _lib._class_NSOutputStream1, _lib._sel_allocWithZone_1, zone); + return NSOutputStream._(_ret, _lib, retain: false, release: true); } - static NSCalendar alloc(SentryCocoa _lib) { + static NSOutputStream alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSCalendar1, _lib._sel_alloc1); - return NSCalendar._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_alloc1); + return NSOutputStream._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -55853,7 +63155,7 @@ class NSCalendar extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSCalendar1, + _lib._class_NSOutputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -55862,24 +63164,24 @@ class NSCalendar extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSCalendar1, + _lib._objc_msgSend_15(_lib._class_NSOutputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSCalendar1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSOutputStream1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSCalendar1, _lib._sel_useStoredAccessor1); + _lib._class_NSOutputStream1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSCalendar1, + _lib._class_NSOutputStream1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -55888,7 +63190,7 @@ class NSCalendar extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSCalendar1, + _lib._class_NSOutputStream1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -55896,7 +63198,7 @@ class NSCalendar extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSCalendar1, + _lib._class_NSOutputStream1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -55904,284 +63206,291 @@ class NSCalendar extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSCalendar1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSOutputStream1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSCalendar1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSOutputStream1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSCalendarUnit { - static const int NSCalendarUnitEra = 2; - static const int NSCalendarUnitYear = 4; - static const int NSCalendarUnitMonth = 8; - static const int NSCalendarUnitDay = 16; - static const int NSCalendarUnitHour = 32; - static const int NSCalendarUnitMinute = 64; - static const int NSCalendarUnitSecond = 128; - static const int NSCalendarUnitWeekday = 512; - static const int NSCalendarUnitWeekdayOrdinal = 1024; - static const int NSCalendarUnitQuarter = 2048; - static const int NSCalendarUnitWeekOfMonth = 4096; - static const int NSCalendarUnitWeekOfYear = 8192; - static const int NSCalendarUnitYearForWeekOfYear = 16384; - static const int NSCalendarUnitNanosecond = 32768; - static const int NSCalendarUnitDayOfYear = 65536; - static const int NSCalendarUnitCalendar = 1048576; - static const int NSCalendarUnitTimeZone = 2097152; - static const int NSEraCalendarUnit = 2; - static const int NSYearCalendarUnit = 4; - static const int NSMonthCalendarUnit = 8; - static const int NSDayCalendarUnit = 16; - static const int NSHourCalendarUnit = 32; - static const int NSMinuteCalendarUnit = 64; - static const int NSSecondCalendarUnit = 128; - static const int NSWeekCalendarUnit = 256; - static const int NSWeekdayCalendarUnit = 512; - static const int NSWeekdayOrdinalCalendarUnit = 1024; - static const int NSQuarterCalendarUnit = 2048; - static const int NSWeekOfMonthCalendarUnit = 4096; - static const int NSWeekOfYearCalendarUnit = 8192; - static const int NSYearForWeekOfYearCalendarUnit = 16384; - static const int NSCalendarCalendarUnit = 1048576; - static const int NSTimeZoneCalendarUnit = 2097152; -} - -class NSDateComponents extends NSObject { - NSDateComponents._(ffi.Pointer id, SentryCocoa lib, +class NSHost extends NSObject { + NSHost._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSDateComponents] that points to the same underlying object as [other]. - static NSDateComponents castFrom(T other) { - return NSDateComponents._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSHost] that points to the same underlying object as [other]. + static NSHost castFrom(T other) { + return NSHost._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSDateComponents] that wraps the given raw object pointer. - static NSDateComponents castFromPointer( - SentryCocoa lib, ffi.Pointer other, + /// Returns a [NSHost] that wraps the given raw object pointer. + static NSHost castFromPointer(SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSDateComponents._(other, lib, retain: retain, release: release); + return NSHost._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSDateComponents]. + /// Returns whether [obj] is an instance of [NSHost]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSDateComponents1); - } - - NSCalendar? get calendar { - final _ret = _lib._objc_msgSend_708(_id, _lib._sel_calendar1); - return _ret.address == 0 - ? null - : NSCalendar._(_ret, _lib, retain: true, release: true); - } - - set calendar(NSCalendar? value) { - return _lib._objc_msgSend_714( - _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); - } - - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - set timeZone(NSTimeZone? value) { - return _lib._objc_msgSend_169( - _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); - } - - int get era { - return _lib._objc_msgSend_78(_id, _lib._sel_era1); - } - - set era(int value) { - return _lib._objc_msgSend_593(_id, _lib._sel_setEra_1, value); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSHost1); } - int get year { - return _lib._objc_msgSend_78(_id, _lib._sel_year1); + static NSHost currentHost(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_currentHost1); + return NSHost._(_ret, _lib, retain: true, release: true); } - set year(int value) { - return _lib._objc_msgSend_593(_id, _lib._sel_setYear_1, value); + static NSHost hostWithName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSHost1, + _lib._sel_hostWithName_1, name?._id ?? ffi.nullptr); + return NSHost._(_ret, _lib, retain: true, release: true); } - int get month { - return _lib._objc_msgSend_78(_id, _lib._sel_month1); + static NSHost hostWithAddress_(SentryCocoa _lib, NSString? address) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSHost1, + _lib._sel_hostWithAddress_1, address?._id ?? ffi.nullptr); + return NSHost._(_ret, _lib, retain: true, release: true); } - set month(int value) { - return _lib._objc_msgSend_593(_id, _lib._sel_setMonth_1, value); + bool isEqualToHost_(NSHost? aHost) { + return _lib._objc_msgSend_809( + _id, _lib._sel_isEqualToHost_1, aHost?._id ?? ffi.nullptr); } - int get day { - return _lib._objc_msgSend_78(_id, _lib._sel_day1); + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - set day(int value) { - return _lib._objc_msgSend_593(_id, _lib._sel_setDay_1, value); + NSArray? get names { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_names1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - int get hour { - return _lib._objc_msgSend_78(_id, _lib._sel_hour1); + NSString? get address { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_address1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - set hour(int value) { - return _lib._objc_msgSend_593(_id, _lib._sel_setHour_1, value); + NSArray? get addresses { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_addresses1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - int get minute { - return _lib._objc_msgSend_78(_id, _lib._sel_minute1); + NSString? get localizedName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - set minute(int value) { - return _lib._objc_msgSend_593(_id, _lib._sel_setMinute_1, value); + static void setHostCacheEnabled_(SentryCocoa _lib, bool flag) { + _lib._objc_msgSend_810( + _lib._class_NSHost1, _lib._sel_setHostCacheEnabled_1, flag); } - int get second { - return _lib._objc_msgSend_78(_id, _lib._sel_second1); + static bool isHostCacheEnabled(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSHost1, _lib._sel_isHostCacheEnabled1); } - set second(int value) { - return _lib._objc_msgSend_593(_id, _lib._sel_setSecond_1, value); + static void flushHostCache(SentryCocoa _lib) { + _lib._objc_msgSend_1(_lib._class_NSHost1, _lib._sel_flushHostCache1); } - int get nanosecond { - return _lib._objc_msgSend_78(_id, _lib._sel_nanosecond1); + @override + NSHost init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSHost._(_ret, _lib, retain: true, release: true); } - set nanosecond(int value) { - return _lib._objc_msgSend_593(_id, _lib._sel_setNanosecond_1, value); + static NSHost new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_new1); + return NSHost._(_ret, _lib, retain: false, release: true); } - int get weekday { - return _lib._objc_msgSend_78(_id, _lib._sel_weekday1); + static NSHost allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSHost1, _lib._sel_allocWithZone_1, zone); + return NSHost._(_ret, _lib, retain: false, release: true); } - set weekday(int value) { - return _lib._objc_msgSend_593(_id, _lib._sel_setWeekday_1, value); + static NSHost alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_alloc1); + return NSHost._(_ret, _lib, retain: false, release: true); } - int get weekdayOrdinal { - return _lib._objc_msgSend_78(_id, _lib._sel_weekdayOrdinal1); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSHost1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - set weekdayOrdinal(int value) { - return _lib._objc_msgSend_593(_id, _lib._sel_setWeekdayOrdinal_1, value); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSHost1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - int get quarter { - return _lib._objc_msgSend_78(_id, _lib._sel_quarter1); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSHost1, _lib._sel_accessInstanceVariablesDirectly1); } - set quarter(int value) { - return _lib._objc_msgSend_593(_id, _lib._sel_setQuarter_1, value); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSHost1, _lib._sel_useStoredAccessor1); } - int get weekOfMonth { - return _lib._objc_msgSend_78(_id, _lib._sel_weekOfMonth1); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSHost1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - set weekOfMonth(int value) { - return _lib._objc_msgSend_593(_id, _lib._sel_setWeekOfMonth_1, value); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSHost1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - int get weekOfYear { - return _lib._objc_msgSend_78(_id, _lib._sel_weekOfYear1); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSHost1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - set weekOfYear(int value) { - return _lib._objc_msgSend_593(_id, _lib._sel_setWeekOfYear_1, value); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSHost1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - int get yearForWeekOfYear { - return _lib._objc_msgSend_78(_id, _lib._sel_yearForWeekOfYear1); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSHost1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - set yearForWeekOfYear(int value) { - return _lib._objc_msgSend_593(_id, _lib._sel_setYearForWeekOfYear_1, value); - } +class NSURLResponse extends NSObject { + NSURLResponse._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - int get dayOfYear { - return _lib._objc_msgSend_78(_id, _lib._sel_dayOfYear1); + /// Returns a [NSURLResponse] that points to the same underlying object as [other]. + static NSURLResponse castFrom(T other) { + return NSURLResponse._(other._id, other._lib, retain: true, release: true); } - set dayOfYear(int value) { - return _lib._objc_msgSend_593(_id, _lib._sel_setDayOfYear_1, value); + /// Returns a [NSURLResponse] that wraps the given raw object pointer. + static NSURLResponse castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLResponse._(other, lib, retain: retain, release: release); } - bool get leapMonth { - return _lib._objc_msgSend_12(_id, _lib._sel_isLeapMonth1); + /// Returns whether [obj] is an instance of [NSURLResponse]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLResponse1); } - set leapMonth(bool value) { - return _lib._objc_msgSend_495(_id, _lib._sel_setLeapMonth_1, value); + NSURLResponse initWithURL_MIMEType_expectedContentLength_textEncodingName_( + NSURL? URL, NSString? MIMEType, int length, NSString? name) { + final _ret = _lib._objc_msgSend_816( + _id, + _lib._sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1, + URL?._id ?? ffi.nullptr, + MIMEType?._id ?? ffi.nullptr, + length, + name?._id ?? ffi.nullptr); + return NSURLResponse._(_ret, _lib, retain: true, release: true); } - NSDate? get date { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_date1); + NSURL? get URL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); return _ret.address == 0 ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - int week() { - return _lib._objc_msgSend_78(_id, _lib._sel_week1); - } - - void setWeek_(int v) { - _lib._objc_msgSend_396(_id, _lib._sel_setWeek_1, v); + : NSURL._(_ret, _lib, retain: true, release: true); } - void setValue_forComponent_(int value, int unit) { - _lib._objc_msgSend_715(_id, _lib._sel_setValue_forComponent_1, value, unit); + NSString? get MIMEType { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_MIMEType1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - int valueForComponent_(int unit) { - return _lib._objc_msgSend_716(_id, _lib._sel_valueForComponent_1, unit); + int get expectedContentLength { + return _lib._objc_msgSend_220(_id, _lib._sel_expectedContentLength1); } - bool get validDate { - return _lib._objc_msgSend_12(_id, _lib._sel_isValidDate1); + NSString? get textEncodingName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_textEncodingName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool isValidDateInCalendar_(NSCalendar? calendar) { - return _lib._objc_msgSend_717( - _id, _lib._sel_isValidDateInCalendar_1, calendar?._id ?? ffi.nullptr); + NSString? get suggestedFilename { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suggestedFilename1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } @override - NSDateComponents init() { + NSURLResponse init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSDateComponents._(_ret, _lib, retain: true, release: true); + return NSURLResponse._(_ret, _lib, retain: true, release: true); } - static NSDateComponents new1(SentryCocoa _lib) { + static NSURLResponse new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSDateComponents1, _lib._sel_new1); - return NSDateComponents._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_new1); + return NSURLResponse._(_ret, _lib, retain: false, release: true); } - static NSDateComponents allocWithZone_( + static NSURLResponse allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSDateComponents1, _lib._sel_allocWithZone_1, zone); - return NSDateComponents._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLResponse1, _lib._sel_allocWithZone_1, zone); + return NSURLResponse._(_ret, _lib, retain: false, release: true); } - static NSDateComponents alloc(SentryCocoa _lib) { + static NSURLResponse alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSDateComponents1, _lib._sel_alloc1); - return NSDateComponents._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_alloc1); + return NSURLResponse._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -56190,7 +63499,7 @@ class NSDateComponents extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSDateComponents1, + _lib._class_NSURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -56199,24 +63508,24 @@ class NSDateComponents extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSDateComponents1, + _lib._objc_msgSend_15(_lib._class_NSURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSDateComponents1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSURLResponse1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSDateComponents1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLResponse1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSDateComponents1, + _lib._class_NSURLResponse1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -56225,7 +63534,7 @@ class NSDateComponents extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSDateComponents1, + _lib._class_NSURLResponse1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -56233,960 +63542,1045 @@ class NSDateComponents extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSDateComponents1, + _lib._class_NSURLResponse1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSDateComponents1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURLResponse1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSDateComponents1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLResponse1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSCalendarOptions { - static const int NSCalendarWrapComponents = 1; - static const int NSCalendarMatchStrictly = 2; - static const int NSCalendarSearchBackwards = 4; - static const int NSCalendarMatchPreviousTimePreservingSmallerUnits = 256; - static const int NSCalendarMatchNextTimePreservingSmallerUnits = 512; - static const int NSCalendarMatchNextTime = 1024; - static const int NSCalendarMatchFirst = 4096; - static const int NSCalendarMatchLast = 8192; +abstract class NSURLSessionTaskState { + static const int NSURLSessionTaskStateRunning = 0; + static const int NSURLSessionTaskStateSuspended = 1; + static const int NSURLSessionTaskStateCanceling = 2; + static const int NSURLSessionTaskStateCompleted = 3; } -void _ObjCBlock_ffiVoid_NSDate_bool_bool_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2) { +void _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSDate_bool_bool_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); } -void _ObjCBlock_ffiVoid_NSDate_bool_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_NSDate_bool_bool_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, bool, - ffi.Pointer))(arg0, arg1, arg2); +final _ObjCBlock_ffiVoid_NSArray_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSArray_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSArray_registerClosure(Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSArray_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); } -class ObjCBlock_ffiVoid_NSDate_bool_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSDate_bool_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +void _ObjCBlock_ffiVoid_NSArray_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSArray_closureRegistry[block.ref.target.address] + as void Function(ffi.Pointer))(arg0); +} + +class ObjCBlock_ffiVoid_NSArray extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSDate_bool_bool.fromFunctionPointer( + ObjCBlock_ffiVoid_NSArray.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>> + ffi + .NativeFunction arg0)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSDate_bool_bool_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSDate_bool_bool.fromFunction( - SentryCocoa lib, - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2) - fn) + ObjCBlock_ffiVoid_NSArray.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSDate_bool_bool_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSArray_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSDate_bool_bool_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSArray_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { + void call(ffi.Pointer arg0) { return _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>>() + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); } } -class NSNumberFormatter extends NSFormatter { - NSNumberFormatter._(ffi.Pointer id, SentryCocoa lib, +class NSIndexPath extends NSObject { + NSIndexPath._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSNumberFormatter] that points to the same underlying object as [other]. - static NSNumberFormatter castFrom(T other) { - return NSNumberFormatter._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSIndexPath] that points to the same underlying object as [other]. + static NSIndexPath castFrom(T other) { + return NSIndexPath._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSNumberFormatter] that wraps the given raw object pointer. - static NSNumberFormatter castFromPointer( + /// Returns a [NSIndexPath] that wraps the given raw object pointer. + static NSIndexPath castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSNumberFormatter._(other, lib, retain: retain, release: release); + return NSIndexPath._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSNumberFormatter]. + /// Returns whether [obj] is an instance of [NSIndexPath]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSNumberFormatter1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSIndexPath1); } - int get formattingContext { - return _lib._objc_msgSend_698(_id, _lib._sel_formattingContext1); + static NSIndexPath indexPathWithIndex_(SentryCocoa _lib, int index) { + final _ret = _lib._objc_msgSend_60( + _lib._class_NSIndexPath1, _lib._sel_indexPathWithIndex_1, index); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } - set formattingContext(int value) { - return _lib._objc_msgSend_699(_id, _lib._sel_setFormattingContext_1, value); + static NSIndexPath indexPathWithIndexes_length_( + SentryCocoa _lib, ffi.Pointer indexes, int length) { + final _ret = _lib._objc_msgSend_822(_lib._class_NSIndexPath1, + _lib._sel_indexPathWithIndexes_length_1, indexes, length); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } - bool getObjectValue_forString_range_error_( - ffi.Pointer> obj, - NSString? string, - ffi.Pointer<_NSRange> rangep, - ffi.Pointer> error) { - return _lib._objc_msgSend_700( - _id, - _lib._sel_getObjectValue_forString_range_error_1, - obj, - string?._id ?? ffi.nullptr, - rangep, - error); + NSIndexPath initWithIndexes_length_( + ffi.Pointer indexes, int length) { + final _ret = _lib._objc_msgSend_822( + _id, _lib._sel_initWithIndexes_length_1, indexes, length); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } - NSString stringFromNumber_(NSNumber? number) { - final _ret = _lib._objc_msgSend_740( - _id, _lib._sel_stringFromNumber_1, number?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSIndexPath initWithIndex_(int index) { + final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithIndex_1, index); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } - NSNumber numberFromString_(NSString? string) { - final _ret = _lib._objc_msgSend_741( - _id, _lib._sel_numberFromString_1, string?._id ?? ffi.nullptr); - return NSNumber._(_ret, _lib, retain: true, release: true); + NSIndexPath indexPathByAddingIndex_(int index) { + final _ret = + _lib._objc_msgSend_823(_id, _lib._sel_indexPathByAddingIndex_1, index); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } - static NSString localizedStringFromNumber_numberStyle_( - SentryCocoa _lib, NSNumber? num, int nstyle) { - final _ret = _lib._objc_msgSend_742( - _lib._class_NSNumberFormatter1, - _lib._sel_localizedStringFromNumber_numberStyle_1, - num?._id ?? ffi.nullptr, - nstyle); - return NSString._(_ret, _lib, retain: true, release: true); + NSIndexPath indexPathByRemovingLastIndex() { + final _ret = + _lib._objc_msgSend_824(_id, _lib._sel_indexPathByRemovingLastIndex1); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } - static int defaultFormatterBehavior(SentryCocoa _lib) { - return _lib._objc_msgSend_743( - _lib._class_NSNumberFormatter1, _lib._sel_defaultFormatterBehavior1); + int indexAtPosition_(int position) { + return _lib._objc_msgSend_88(_id, _lib._sel_indexAtPosition_1, position); } - static void setDefaultFormatterBehavior_(SentryCocoa _lib, int behavior) { - _lib._objc_msgSend_744(_lib._class_NSNumberFormatter1, - _lib._sel_setDefaultFormatterBehavior_1, behavior); + int get length { + return _lib._objc_msgSend_10(_id, _lib._sel_length1); } - int get minimumGroupingDigits { - return _lib._objc_msgSend_78(_id, _lib._sel_minimumGroupingDigits1); + void getIndexes_range_( + ffi.Pointer indexes, _NSRange positionRange) { + _lib._objc_msgSend_825( + _id, _lib._sel_getIndexes_range_1, indexes, positionRange); } - set minimumGroupingDigits(int value) { - return _lib._objc_msgSend_593( - _id, _lib._sel_setMinimumGroupingDigits_1, value); + int compare_(NSIndexPath? otherObject) { + return _lib._objc_msgSend_826( + _id, _lib._sel_compare_1, otherObject?._id ?? ffi.nullptr); } - int get numberStyle { - return _lib._objc_msgSend_745(_id, _lib._sel_numberStyle1); + void getIndexes_(ffi.Pointer indexes) { + _lib._objc_msgSend_827(_id, _lib._sel_getIndexes_1, indexes); } - set numberStyle(int value) { - return _lib._objc_msgSend_746(_id, _lib._sel_setNumberStyle_1, value); + @override + NSIndexPath init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSIndexPath._(_ret, _lib, retain: true, release: true); } - NSLocale? get locale { - final _ret = _lib._objc_msgSend_182(_id, _lib._sel_locale1); - return _ret.address == 0 - ? null - : NSLocale._(_ret, _lib, retain: true, release: true); + static NSIndexPath new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_new1); + return NSIndexPath._(_ret, _lib, retain: false, release: true); } - set locale(NSLocale? value) { - return _lib._objc_msgSend_707( - _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); + static NSIndexPath allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSIndexPath1, _lib._sel_allocWithZone_1, zone); + return NSIndexPath._(_ret, _lib, retain: false, release: true); } - bool get generatesDecimalNumbers { - return _lib._objc_msgSend_12(_id, _lib._sel_generatesDecimalNumbers1); + static NSIndexPath alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_alloc1); + return NSIndexPath._(_ret, _lib, retain: false, release: true); } - set generatesDecimalNumbers(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setGeneratesDecimalNumbers_1, value); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSIndexPath1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - int get formatterBehavior { - return _lib._objc_msgSend_743(_id, _lib._sel_formatterBehavior1); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSIndexPath1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - set formatterBehavior(int value) { - return _lib._objc_msgSend_747(_id, _lib._sel_setFormatterBehavior_1, value); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSIndexPath1, _lib._sel_accessInstanceVariablesDirectly1); } - NSString? get negativeFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSIndexPath1, _lib._sel_useStoredAccessor1); } - set negativeFormat(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setNegativeFormat_1, value?._id ?? ffi.nullptr); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSIndexPath1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - NSDictionary? get textAttributesForNegativeValues { - final _ret = - _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForNegativeValues1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSIndexPath1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - set textAttributesForNegativeValues(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, - _lib._sel_setTextAttributesForNegativeValues_1, - value?._id ?? ffi.nullptr); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSIndexPath1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - NSString? get positiveFormat { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveFormat1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSIndexPath1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set positiveFormat(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setPositiveFormat_1, value?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSIndexPath1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - NSDictionary? get textAttributesForPositiveValues { - final _ret = - _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForPositiveValues1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); +class NSInflectionRule extends NSObject { + NSInflectionRule._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSInflectionRule] that points to the same underlying object as [other]. + static NSInflectionRule castFrom(T other) { + return NSInflectionRule._(other._id, other._lib, + retain: true, release: true); } - set textAttributesForPositiveValues(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, - _lib._sel_setTextAttributesForPositiveValues_1, - value?._id ?? ffi.nullptr); + /// Returns a [NSInflectionRule] that wraps the given raw object pointer. + static NSInflectionRule castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSInflectionRule._(other, lib, retain: retain, release: release); } - bool get allowsFloats { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsFloats1); + /// Returns whether [obj] is an instance of [NSInflectionRule]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSInflectionRule1); } - set allowsFloats(bool value) { - return _lib._objc_msgSend_495(_id, _lib._sel_setAllowsFloats_1, value); + @override + NSObject init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString? get decimalSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_decimalSeparator1); + static NSInflectionRule? getAutomaticRule(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_828( + _lib._class_NSInflectionRule1, _lib._sel_automaticRule1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set decimalSeparator(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setDecimalSeparator_1, value?._id ?? ffi.nullptr); + : NSInflectionRule._(_ret, _lib, retain: true, release: true); } - bool get alwaysShowsDecimalSeparator { - return _lib._objc_msgSend_12(_id, _lib._sel_alwaysShowsDecimalSeparator1); + static bool canInflectLanguage_(SentryCocoa _lib, NSString? language) { + return _lib._objc_msgSend_59(_lib._class_NSInflectionRule1, + _lib._sel_canInflectLanguage_1, language?._id ?? ffi.nullptr); } - set alwaysShowsDecimalSeparator(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setAlwaysShowsDecimalSeparator_1, value); + static bool getCanInflectPreferredLocalization(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSInflectionRule1, + _lib._sel_canInflectPreferredLocalization1); } - NSString? get currencyDecimalSeparator { + static NSInflectionRule new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_currencyDecimalSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set currencyDecimalSeparator(NSString? value) { - return _lib._objc_msgSend_512(_id, _lib._sel_setCurrencyDecimalSeparator_1, - value?._id ?? ffi.nullptr); + _lib._objc_msgSend_2(_lib._class_NSInflectionRule1, _lib._sel_new1); + return NSInflectionRule._(_ret, _lib, retain: false, release: true); } - bool get usesGroupingSeparator { - return _lib._objc_msgSend_12(_id, _lib._sel_usesGroupingSeparator1); + static NSInflectionRule allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSInflectionRule1, _lib._sel_allocWithZone_1, zone); + return NSInflectionRule._(_ret, _lib, retain: false, release: true); } - set usesGroupingSeparator(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setUsesGroupingSeparator_1, value); + static NSInflectionRule alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSInflectionRule1, _lib._sel_alloc1); + return NSInflectionRule._(_ret, _lib, retain: false, release: true); } - NSString? get groupingSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_groupingSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSInflectionRule1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - set groupingSeparator(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setGroupingSeparator_1, value?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSInflectionRule1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - NSString? get zeroSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_zeroSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSInflectionRule1, + _lib._sel_accessInstanceVariablesDirectly1); } - set zeroSymbol(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setZeroSymbol_1, value?._id ?? ffi.nullptr); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSInflectionRule1, _lib._sel_useStoredAccessor1); } - NSDictionary? get textAttributesForZero { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForZero1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSInflectionRule1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - set textAttributesForZero(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setTextAttributesForZero_1, value?._id ?? ffi.nullptr); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSInflectionRule1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - NSString? get nilSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_nilSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSInflectionRule1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - set nilSymbol(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setNilSymbol_1, value?._id ?? ffi.nullptr); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSInflectionRule1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSDictionary? get textAttributesForNil { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForNil1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSInflectionRule1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - set textAttributesForNil(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setTextAttributesForNil_1, value?._id ?? ffi.nullptr); - } +class NSMorphology extends NSObject { + NSMorphology._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - NSString? get notANumberSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_notANumberSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// Returns a [NSMorphology] that points to the same underlying object as [other]. + static NSMorphology castFrom(T other) { + return NSMorphology._(other._id, other._lib, retain: true, release: true); } - set notANumberSymbol(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setNotANumberSymbol_1, value?._id ?? ffi.nullptr); + /// Returns a [NSMorphology] that wraps the given raw object pointer. + static NSMorphology castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMorphology._(other, lib, retain: retain, release: release); } - NSDictionary? get textAttributesForNotANumber { - final _ret = - _lib._objc_msgSend_170(_id, _lib._sel_textAttributesForNotANumber1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSMorphology]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMorphology1); } - set textAttributesForNotANumber(NSDictionary? value) { - return _lib._objc_msgSend_171(_id, - _lib._sel_setTextAttributesForNotANumber_1, value?._id ?? ffi.nullptr); + int get grammaticalGender { + return _lib._objc_msgSend_829(_id, _lib._sel_grammaticalGender1); } - NSString? get positiveInfinitySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveInfinitySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set grammaticalGender(int value) { + return _lib._objc_msgSend_830(_id, _lib._sel_setGrammaticalGender_1, value); } - set positiveInfinitySymbol(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setPositiveInfinitySymbol_1, value?._id ?? ffi.nullptr); + int get partOfSpeech { + return _lib._objc_msgSend_831(_id, _lib._sel_partOfSpeech1); } - NSDictionary? get textAttributesForPositiveInfinity { - final _ret = _lib._objc_msgSend_170( - _id, _lib._sel_textAttributesForPositiveInfinity1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + set partOfSpeech(int value) { + return _lib._objc_msgSend_832(_id, _lib._sel_setPartOfSpeech_1, value); } - set textAttributesForPositiveInfinity(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, - _lib._sel_setTextAttributesForPositiveInfinity_1, - value?._id ?? ffi.nullptr); + int get number { + return _lib._objc_msgSend_833(_id, _lib._sel_number1); } - NSString? get negativeInfinitySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeInfinitySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set number(int value) { + return _lib._objc_msgSend_834(_id, _lib._sel_setNumber_1, value); } - set negativeInfinitySymbol(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setNegativeInfinitySymbol_1, value?._id ?? ffi.nullptr); + int get grammaticalCase { + return _lib._objc_msgSend_835(_id, _lib._sel_grammaticalCase1); } - NSDictionary? get textAttributesForNegativeInfinity { - final _ret = _lib._objc_msgSend_170( - _id, _lib._sel_textAttributesForNegativeInfinity1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + set grammaticalCase(int value) { + return _lib._objc_msgSend_836(_id, _lib._sel_setGrammaticalCase_1, value); } - set textAttributesForNegativeInfinity(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, - _lib._sel_setTextAttributesForNegativeInfinity_1, - value?._id ?? ffi.nullptr); + int get determination { + return _lib._objc_msgSend_837(_id, _lib._sel_determination1); } - NSString? get positivePrefix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positivePrefix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set determination(int value) { + return _lib._objc_msgSend_838(_id, _lib._sel_setDetermination_1, value); } - set positivePrefix(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setPositivePrefix_1, value?._id ?? ffi.nullptr); + int get grammaticalPerson { + return _lib._objc_msgSend_839(_id, _lib._sel_grammaticalPerson1); } - NSString? get positiveSuffix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_positiveSuffix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set grammaticalPerson(int value) { + return _lib._objc_msgSend_840(_id, _lib._sel_setGrammaticalPerson_1, value); } - set positiveSuffix(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setPositiveSuffix_1, value?._id ?? ffi.nullptr); + int get pronounType { + return _lib._objc_msgSend_841(_id, _lib._sel_pronounType1); } - NSString? get negativePrefix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativePrefix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set pronounType(int value) { + return _lib._objc_msgSend_842(_id, _lib._sel_setPronounType_1, value); } - set negativePrefix(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setNegativePrefix_1, value?._id ?? ffi.nullptr); + int get definiteness { + return _lib._objc_msgSend_843(_id, _lib._sel_definiteness1); } - NSString? get negativeSuffix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_negativeSuffix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set definiteness(int value) { + return _lib._objc_msgSend_844(_id, _lib._sel_setDefiniteness_1, value); } - set negativeSuffix(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setNegativeSuffix_1, value?._id ?? ffi.nullptr); + NSMorphologyCustomPronoun customPronounForLanguage_(NSString? language) { + final _ret = _lib._objc_msgSend_845(_id, + _lib._sel_customPronounForLanguage_1, language?._id ?? ffi.nullptr); + return NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); } - NSString? get currencyCode { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencyCode1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool setCustomPronoun_forLanguage_error_(NSMorphologyCustomPronoun? features, + NSString? language, ffi.Pointer> error) { + return _lib._objc_msgSend_846( + _id, + _lib._sel_setCustomPronoun_forLanguage_error_1, + features?._id ?? ffi.nullptr, + language?._id ?? ffi.nullptr, + error); } - set currencyCode(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setCurrencyCode_1, value?._id ?? ffi.nullptr); + bool get unspecified { + return _lib._objc_msgSend_12(_id, _lib._sel_isUnspecified1); } - NSString? get currencySymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currencySymbol1); + static NSMorphology? getUserMorphology(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_847( + _lib._class_NSMorphology1, _lib._sel_userMorphology1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSMorphology._(_ret, _lib, retain: true, release: true); } - set currencySymbol(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setCurrencySymbol_1, value?._id ?? ffi.nullptr); + @override + NSMorphology init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMorphology._(_ret, _lib, retain: true, release: true); } - NSString? get internationalCurrencySymbol { + static NSMorphology new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_internationalCurrencySymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_new1); + return NSMorphology._(_ret, _lib, retain: false, release: true); } - set internationalCurrencySymbol(NSString? value) { - return _lib._objc_msgSend_512(_id, - _lib._sel_setInternationalCurrencySymbol_1, value?._id ?? ffi.nullptr); + static NSMorphology allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMorphology1, _lib._sel_allocWithZone_1, zone); + return NSMorphology._(_ret, _lib, retain: false, release: true); } - NSString? get percentSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_percentSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSMorphology alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_alloc1); + return NSMorphology._(_ret, _lib, retain: false, release: true); } - set percentSymbol(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setPercentSymbol_1, value?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSMorphology1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - NSString? get perMillSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_perMillSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSMorphology1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - set perMillSymbol(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setPerMillSymbol_1, value?._id ?? ffi.nullptr); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMorphology1, _lib._sel_accessInstanceVariablesDirectly1); } - NSString? get minusSign { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_minusSign1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMorphology1, _lib._sel_useStoredAccessor1); } - set minusSign(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setMinusSign_1, value?._id ?? ffi.nullptr); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMorphology1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - NSString? get plusSign { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_plusSign1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSMorphology1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - set plusSign(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setPlusSign_1, value?._id ?? ffi.nullptr); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSMorphology1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - NSString? get exponentSymbol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_exponentSymbol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSMorphology1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set exponentSymbol(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setExponentSymbol_1, value?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMorphology1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - int get groupingSize { - return _lib._objc_msgSend_10(_id, _lib._sel_groupingSize1); - } +abstract class NSGrammaticalGender { + static const int NSGrammaticalGenderNotSet = 0; + static const int NSGrammaticalGenderFeminine = 1; + static const int NSGrammaticalGenderMasculine = 2; + static const int NSGrammaticalGenderNeuter = 3; +} - set groupingSize(int value) { - return _lib._objc_msgSend_486(_id, _lib._sel_setGroupingSize_1, value); +abstract class NSGrammaticalPartOfSpeech { + static const int NSGrammaticalPartOfSpeechNotSet = 0; + static const int NSGrammaticalPartOfSpeechDeterminer = 1; + static const int NSGrammaticalPartOfSpeechPronoun = 2; + static const int NSGrammaticalPartOfSpeechLetter = 3; + static const int NSGrammaticalPartOfSpeechAdverb = 4; + static const int NSGrammaticalPartOfSpeechParticle = 5; + static const int NSGrammaticalPartOfSpeechAdjective = 6; + static const int NSGrammaticalPartOfSpeechAdposition = 7; + static const int NSGrammaticalPartOfSpeechVerb = 8; + static const int NSGrammaticalPartOfSpeechNoun = 9; + static const int NSGrammaticalPartOfSpeechConjunction = 10; + static const int NSGrammaticalPartOfSpeechNumeral = 11; + static const int NSGrammaticalPartOfSpeechInterjection = 12; + static const int NSGrammaticalPartOfSpeechPreposition = 13; + static const int NSGrammaticalPartOfSpeechAbbreviation = 14; +} + +abstract class NSGrammaticalNumber { + static const int NSGrammaticalNumberNotSet = 0; + static const int NSGrammaticalNumberSingular = 1; + static const int NSGrammaticalNumberZero = 2; + static const int NSGrammaticalNumberPlural = 3; + static const int NSGrammaticalNumberPluralTwo = 4; + static const int NSGrammaticalNumberPluralFew = 5; + static const int NSGrammaticalNumberPluralMany = 6; +} + +abstract class NSGrammaticalCase { + static const int NSGrammaticalCaseNotSet = 0; + static const int NSGrammaticalCaseNominative = 1; + static const int NSGrammaticalCaseAccusative = 2; + static const int NSGrammaticalCaseDative = 3; + static const int NSGrammaticalCaseGenitive = 4; + static const int NSGrammaticalCasePrepositional = 5; + static const int NSGrammaticalCaseAblative = 6; + static const int NSGrammaticalCaseAdessive = 7; + static const int NSGrammaticalCaseAllative = 8; + static const int NSGrammaticalCaseElative = 9; + static const int NSGrammaticalCaseIllative = 10; + static const int NSGrammaticalCaseEssive = 11; + static const int NSGrammaticalCaseInessive = 12; + static const int NSGrammaticalCaseLocative = 13; + static const int NSGrammaticalCaseTranslative = 14; +} + +abstract class NSGrammaticalDetermination { + static const int NSGrammaticalDeterminationNotSet = 0; + static const int NSGrammaticalDeterminationIndependent = 1; + static const int NSGrammaticalDeterminationDependent = 2; +} + +abstract class NSGrammaticalPerson { + static const int NSGrammaticalPersonNotSet = 0; + static const int NSGrammaticalPersonFirst = 1; + static const int NSGrammaticalPersonSecond = 2; + static const int NSGrammaticalPersonThird = 3; +} + +abstract class NSGrammaticalPronounType { + static const int NSGrammaticalPronounTypeNotSet = 0; + static const int NSGrammaticalPronounTypePersonal = 1; + static const int NSGrammaticalPronounTypeReflexive = 2; + static const int NSGrammaticalPronounTypePossessive = 3; +} + +abstract class NSGrammaticalDefiniteness { + static const int NSGrammaticalDefinitenessNotSet = 0; + static const int NSGrammaticalDefinitenessIndefinite = 1; + static const int NSGrammaticalDefinitenessDefinite = 2; +} + +class NSMorphologyCustomPronoun extends NSObject { + NSMorphologyCustomPronoun._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSMorphologyCustomPronoun] that points to the same underlying object as [other]. + static NSMorphologyCustomPronoun castFrom(T other) { + return NSMorphologyCustomPronoun._(other._id, other._lib, + retain: true, release: true); } - int get secondaryGroupingSize { - return _lib._objc_msgSend_10(_id, _lib._sel_secondaryGroupingSize1); + /// Returns a [NSMorphologyCustomPronoun] that wraps the given raw object pointer. + static NSMorphologyCustomPronoun castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSMorphologyCustomPronoun._(other, lib, + retain: retain, release: release); } - set secondaryGroupingSize(int value) { - return _lib._objc_msgSend_486( - _id, _lib._sel_setSecondaryGroupingSize_1, value); + /// Returns whether [obj] is an instance of [NSMorphologyCustomPronoun]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMorphologyCustomPronoun1); } - NSNumber? get multiplier { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_multiplier1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + static bool isSupportedForLanguage_(SentryCocoa _lib, NSString? language) { + return _lib._objc_msgSend_59(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_isSupportedForLanguage_1, language?._id ?? ffi.nullptr); } - set multiplier(NSNumber? value) { - return _lib._objc_msgSend_623( - _id, _lib._sel_setMultiplier_1, value?._id ?? ffi.nullptr); + static NSArray requiredKeysForLanguage_( + SentryCocoa _lib, NSString? language) { + final _ret = _lib._objc_msgSend_123(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_requiredKeysForLanguage_1, language?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - int get formatWidth { - return _lib._objc_msgSend_10(_id, _lib._sel_formatWidth1); + NSString? get subjectForm { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_subjectForm1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - set formatWidth(int value) { - return _lib._objc_msgSend_486(_id, _lib._sel_setFormatWidth_1, value); + set subjectForm(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setSubjectForm_1, value?._id ?? ffi.nullptr); } - NSString? get paddingCharacter { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_paddingCharacter1); + NSString? get objectForm { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_objectForm1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - set paddingCharacter(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setPaddingCharacter_1, value?._id ?? ffi.nullptr); + set objectForm(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setObjectForm_1, value?._id ?? ffi.nullptr); } - int get paddingPosition { - return _lib._objc_msgSend_748(_id, _lib._sel_paddingPosition1); + NSString? get possessiveForm { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_possessiveForm1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - set paddingPosition(int value) { - return _lib._objc_msgSend_749(_id, _lib._sel_setPaddingPosition_1, value); + set possessiveForm(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setPossessiveForm_1, value?._id ?? ffi.nullptr); } - int get roundingMode { - return _lib._objc_msgSend_750(_id, _lib._sel_roundingMode1); + NSString? get possessiveAdjectiveForm { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_possessiveAdjectiveForm1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - set roundingMode(int value) { - return _lib._objc_msgSend_751(_id, _lib._sel_setRoundingMode_1, value); + set possessiveAdjectiveForm(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setPossessiveAdjectiveForm_1, value?._id ?? ffi.nullptr); } - NSNumber? get roundingIncrement { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_roundingIncrement1); + NSString? get reflexiveForm { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_reflexiveForm1); return _ret.address == 0 ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - set roundingIncrement(NSNumber? value) { - return _lib._objc_msgSend_623( - _id, _lib._sel_setRoundingIncrement_1, value?._id ?? ffi.nullptr); + set reflexiveForm(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setReflexiveForm_1, value?._id ?? ffi.nullptr); } - int get minimumIntegerDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_minimumIntegerDigits1); + @override + NSMorphologyCustomPronoun init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); } - set minimumIntegerDigits(int value) { - return _lib._objc_msgSend_486( - _id, _lib._sel_setMinimumIntegerDigits_1, value); + static NSMorphologyCustomPronoun new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMorphologyCustomPronoun1, _lib._sel_new1); + return NSMorphologyCustomPronoun._(_ret, _lib, + retain: false, release: true); } - int get maximumIntegerDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_maximumIntegerDigits1); + static NSMorphologyCustomPronoun allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_allocWithZone_1, zone); + return NSMorphologyCustomPronoun._(_ret, _lib, + retain: false, release: true); } - set maximumIntegerDigits(int value) { - return _lib._objc_msgSend_486( - _id, _lib._sel_setMaximumIntegerDigits_1, value); + static NSMorphologyCustomPronoun alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMorphologyCustomPronoun1, _lib._sel_alloc1); + return NSMorphologyCustomPronoun._(_ret, _lib, + retain: false, release: true); } - int get minimumFractionDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_minimumFractionDigits1); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSMorphologyCustomPronoun1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - set minimumFractionDigits(int value) { - return _lib._objc_msgSend_486( - _id, _lib._sel_setMinimumFractionDigits_1, value); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - int get maximumFractionDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_maximumFractionDigits1); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_accessInstanceVariablesDirectly1); } - set maximumFractionDigits(int value) { - return _lib._objc_msgSend_486( - _id, _lib._sel_setMaximumFractionDigits_1, value); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMorphologyCustomPronoun1, _lib._sel_useStoredAccessor1); } - NSNumber? get minimum { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_minimum1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSMorphologyCustomPronoun1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - set minimum(NSNumber? value) { - return _lib._objc_msgSend_623( - _id, _lib._sel_setMinimum_1, value?._id ?? ffi.nullptr); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSMorphologyCustomPronoun1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - NSNumber? get maximum { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_maximum1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSMorphologyCustomPronoun1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - set maximum(NSNumber? value) { - return _lib._objc_msgSend_623( - _id, _lib._sel_setMaximum_1, value?._id ?? ffi.nullptr); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get currencyGroupingSeparator { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_currencyGroupingSeparator1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSMorphologyCustomPronoun1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - set currencyGroupingSeparator(NSString? value) { - return _lib._objc_msgSend_512(_id, _lib._sel_setCurrencyGroupingSeparator_1, - value?._id ?? ffi.nullptr); - } +class NSOperationQueue extends NSObject { + NSOperationQueue._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - bool get lenient { - return _lib._objc_msgSend_12(_id, _lib._sel_isLenient1); + /// Returns a [NSOperationQueue] that points to the same underlying object as [other]. + static NSOperationQueue castFrom(T other) { + return NSOperationQueue._(other._id, other._lib, + retain: true, release: true); } - set lenient(bool value) { - return _lib._objc_msgSend_495(_id, _lib._sel_setLenient_1, value); + /// Returns a [NSOperationQueue] that wraps the given raw object pointer. + static NSOperationQueue castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSOperationQueue._(other, lib, retain: retain, release: release); } - bool get usesSignificantDigits { - return _lib._objc_msgSend_12(_id, _lib._sel_usesSignificantDigits1); + /// Returns whether [obj] is an instance of [NSOperationQueue]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSOperationQueue1); } - set usesSignificantDigits(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setUsesSignificantDigits_1, value); + NSProgress? get progress { + final _ret = _lib._objc_msgSend_624(_id, _lib._sel_progress1); + return _ret.address == 0 + ? null + : NSProgress._(_ret, _lib, retain: true, release: true); } - int get minimumSignificantDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_minimumSignificantDigits1); + void addOperation_(NSOperation? op) { + _lib._objc_msgSend_848( + _id, _lib._sel_addOperation_1, op?._id ?? ffi.nullptr); } - set minimumSignificantDigits(int value) { - return _lib._objc_msgSend_486( - _id, _lib._sel_setMinimumSignificantDigits_1, value); + void addOperations_waitUntilFinished_(NSArray? ops, bool wait) { + _lib._objc_msgSend_851(_id, _lib._sel_addOperations_waitUntilFinished_1, + ops?._id ?? ffi.nullptr, wait); } - int get maximumSignificantDigits { - return _lib._objc_msgSend_10(_id, _lib._sel_maximumSignificantDigits1); + void addOperationWithBlock_(ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_513(_id, _lib._sel_addOperationWithBlock_1, block._id); } - set maximumSignificantDigits(int value) { - return _lib._objc_msgSend_486( - _id, _lib._sel_setMaximumSignificantDigits_1, value); + void addBarrierBlock_(ObjCBlock_ffiVoid barrier) { + _lib._objc_msgSend_513(_id, _lib._sel_addBarrierBlock_1, barrier._id); } - bool get partialStringValidationEnabled { - return _lib._objc_msgSend_12( - _id, _lib._sel_isPartialStringValidationEnabled1); + int get maxConcurrentOperationCount { + return _lib._objc_msgSend_78(_id, _lib._sel_maxConcurrentOperationCount1); } - set partialStringValidationEnabled(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setPartialStringValidationEnabled_1, value); + set maxConcurrentOperationCount(int value) { + return _lib._objc_msgSend_605( + _id, _lib._sel_setMaxConcurrentOperationCount_1, value); } - bool get hasThousandSeparators { - return _lib._objc_msgSend_12(_id, _lib._sel_hasThousandSeparators1); + bool get suspended { + return _lib._objc_msgSend_12(_id, _lib._sel_isSuspended1); } - set hasThousandSeparators(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setHasThousandSeparators_1, value); + set suspended(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setSuspended_1, value); } - NSString? get thousandSeparator { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_thousandSeparator1); + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - set thousandSeparator(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setThousandSeparator_1, value?._id ?? ffi.nullptr); - } - - bool get localizesFormat { - return _lib._objc_msgSend_12(_id, _lib._sel_localizesFormat1); - } - - set localizesFormat(bool value) { - return _lib._objc_msgSend_495(_id, _lib._sel_setLocalizesFormat_1, value); + set name(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } - NSString? get format { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_format1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int get qualityOfService { + return _lib._objc_msgSend_523(_id, _lib._sel_qualityOfService1); } - set format(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setFormat_1, value?._id ?? ffi.nullptr); + set qualityOfService(int value) { + return _lib._objc_msgSend_524(_id, _lib._sel_setQualityOfService_1, value); } - NSAttributedString? get attributedStringForZero { - final _ret = - _lib._objc_msgSend_682(_id, _lib._sel_attributedStringForZero1); - return _ret.address == 0 - ? null - : NSAttributedString._(_ret, _lib, retain: true, release: true); + NSObject get underlyingQueue { + final _ret = _lib._objc_msgSend_852(_id, _lib._sel_underlyingQueue1); + return NSObject._(_ret, _lib, retain: true, release: true); } - set attributedStringForZero(NSAttributedString? value) { - return _lib._objc_msgSend_752( - _id, _lib._sel_setAttributedStringForZero_1, value?._id ?? ffi.nullptr); + set underlyingQueue(NSObject value) { + return _lib._objc_msgSend_853( + _id, _lib._sel_setUnderlyingQueue_1, value._id); } - NSAttributedString? get attributedStringForNil { - final _ret = _lib._objc_msgSend_682(_id, _lib._sel_attributedStringForNil1); - return _ret.address == 0 - ? null - : NSAttributedString._(_ret, _lib, retain: true, release: true); + void cancelAllOperations() { + _lib._objc_msgSend_1(_id, _lib._sel_cancelAllOperations1); } - set attributedStringForNil(NSAttributedString? value) { - return _lib._objc_msgSend_752( - _id, _lib._sel_setAttributedStringForNil_1, value?._id ?? ffi.nullptr); + void waitUntilAllOperationsAreFinished() { + _lib._objc_msgSend_1(_id, _lib._sel_waitUntilAllOperationsAreFinished1); } - NSAttributedString? get attributedStringForNotANumber { - final _ret = - _lib._objc_msgSend_682(_id, _lib._sel_attributedStringForNotANumber1); + static NSOperationQueue? getCurrentQueue(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_854( + _lib._class_NSOperationQueue1, _lib._sel_currentQueue1); return _ret.address == 0 ? null - : NSAttributedString._(_ret, _lib, retain: true, release: true); + : NSOperationQueue._(_ret, _lib, retain: true, release: true); } - set attributedStringForNotANumber(NSAttributedString? value) { - return _lib._objc_msgSend_752( - _id, - _lib._sel_setAttributedStringForNotANumber_1, - value?._id ?? ffi.nullptr); + static NSOperationQueue? getMainQueue(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_854( + _lib._class_NSOperationQueue1, _lib._sel_mainQueue1); + return _ret.address == 0 + ? null + : NSOperationQueue._(_ret, _lib, retain: true, release: true); } - NSDecimalNumberHandler? get roundingBehavior { - final _ret = _lib._objc_msgSend_753(_id, _lib._sel_roundingBehavior1); + NSArray? get operations { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_operations1); return _ret.address == 0 ? null - : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - set roundingBehavior(NSDecimalNumberHandler? value) { - return _lib._objc_msgSend_755( - _id, _lib._sel_setRoundingBehavior_1, value?._id ?? ffi.nullptr); + int get operationCount { + return _lib._objc_msgSend_10(_id, _lib._sel_operationCount1); } @override - NSNumberFormatter init() { + NSOperationQueue init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSNumberFormatter._(_ret, _lib, retain: true, release: true); + return NSOperationQueue._(_ret, _lib, retain: true, release: true); } - static NSNumberFormatter new1(SentryCocoa _lib) { + static NSOperationQueue new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSNumberFormatter1, _lib._sel_new1); - return NSNumberFormatter._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_new1); + return NSOperationQueue._(_ret, _lib, retain: false, release: true); } - static NSNumberFormatter allocWithZone_( + static NSOperationQueue allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSNumberFormatter1, _lib._sel_allocWithZone_1, zone); - return NSNumberFormatter._(_ret, _lib, retain: false, release: true); + _lib._class_NSOperationQueue1, _lib._sel_allocWithZone_1, zone); + return NSOperationQueue._(_ret, _lib, retain: false, release: true); } - static NSNumberFormatter alloc(SentryCocoa _lib) { + static NSOperationQueue alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSNumberFormatter1, _lib._sel_alloc1); - return NSNumberFormatter._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_alloc1); + return NSOperationQueue._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -57195,7 +64589,7 @@ class NSNumberFormatter extends NSFormatter { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSNumberFormatter1, + _lib._class_NSOperationQueue1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -57204,24 +64598,24 @@ class NSNumberFormatter extends NSFormatter { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSNumberFormatter1, + _lib._objc_msgSend_15(_lib._class_NSOperationQueue1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSNumberFormatter1, + return _lib._objc_msgSend_12(_lib._class_NSOperationQueue1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSNumberFormatter1, _lib._sel_useStoredAccessor1); + _lib._class_NSOperationQueue1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSNumberFormatter1, + _lib._class_NSOperationQueue1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -57230,7 +64624,7 @@ class NSNumberFormatter extends NSFormatter { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSNumberFormatter1, + _lib._class_NSOperationQueue1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -57238,159 +64632,173 @@ class NSNumberFormatter extends NSFormatter { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSNumberFormatter1, + _lib._class_NSOperationQueue1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSNumberFormatter1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSOperationQueue1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSNumberFormatter1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSOperationQueue1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSNumberFormatterStyle { - static const int NSNumberFormatterNoStyle = 0; - static const int NSNumberFormatterDecimalStyle = 1; - static const int NSNumberFormatterCurrencyStyle = 2; - static const int NSNumberFormatterPercentStyle = 3; - static const int NSNumberFormatterScientificStyle = 4; - static const int NSNumberFormatterSpellOutStyle = 5; - static const int NSNumberFormatterOrdinalStyle = 6; - static const int NSNumberFormatterCurrencyISOCodeStyle = 8; - static const int NSNumberFormatterCurrencyPluralStyle = 9; - static const int NSNumberFormatterCurrencyAccountingStyle = 10; -} - -abstract class NSNumberFormatterBehavior { - static const int NSNumberFormatterBehaviorDefault = 0; - static const int NSNumberFormatterBehavior10_0 = 1000; - static const int NSNumberFormatterBehavior10_4 = 1040; -} - -abstract class NSNumberFormatterPadPosition { - static const int NSNumberFormatterPadBeforePrefix = 0; - static const int NSNumberFormatterPadAfterPrefix = 1; - static const int NSNumberFormatterPadBeforeSuffix = 2; - static const int NSNumberFormatterPadAfterSuffix = 3; -} - -abstract class NSNumberFormatterRoundingMode { - static const int NSNumberFormatterRoundCeiling = 0; - static const int NSNumberFormatterRoundFloor = 1; - static const int NSNumberFormatterRoundDown = 2; - static const int NSNumberFormatterRoundUp = 3; - static const int NSNumberFormatterRoundHalfEven = 4; - static const int NSNumberFormatterRoundHalfDown = 5; - static const int NSNumberFormatterRoundHalfUp = 6; -} - -class NSDecimalNumberHandler extends NSObject { - NSDecimalNumberHandler._(ffi.Pointer id, SentryCocoa lib, +class NSOperation extends NSObject { + NSOperation._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSDecimalNumberHandler] that points to the same underlying object as [other]. - static NSDecimalNumberHandler castFrom(T other) { - return NSDecimalNumberHandler._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSOperation] that points to the same underlying object as [other]. + static NSOperation castFrom(T other) { + return NSOperation._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSDecimalNumberHandler] that wraps the given raw object pointer. - static NSDecimalNumberHandler castFromPointer( + /// Returns a [NSOperation] that wraps the given raw object pointer. + static NSOperation castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSDecimalNumberHandler._(other, lib, - retain: retain, release: release); + return NSOperation._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSDecimalNumberHandler]. + /// Returns whether [obj] is an instance of [NSOperation]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSDecimalNumberHandler1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOperation1); } - static NSDecimalNumberHandler? getDefaultDecimalNumberHandler( - SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_753(_lib._class_NSDecimalNumberHandler1, - _lib._sel_defaultDecimalNumberHandler1); + void start() { + _lib._objc_msgSend_1(_id, _lib._sel_start1); + } + + void main() { + _lib._objc_msgSend_1(_id, _lib._sel_main1); + } + + bool get cancelled { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); + } + + void cancel() { + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + } + + bool get executing { + return _lib._objc_msgSend_12(_id, _lib._sel_isExecuting1); + } + + bool get finished { + return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); + } + + bool get concurrent { + return _lib._objc_msgSend_12(_id, _lib._sel_isConcurrent1); + } + + bool get asynchronous { + return _lib._objc_msgSend_12(_id, _lib._sel_isAsynchronous1); + } + + bool get ready { + return _lib._objc_msgSend_12(_id, _lib._sel_isReady1); + } + + void addDependency_(NSOperation? op) { + _lib._objc_msgSend_848( + _id, _lib._sel_addDependency_1, op?._id ?? ffi.nullptr); + } + + void removeDependency_(NSOperation? op) { + _lib._objc_msgSend_848( + _id, _lib._sel_removeDependency_1, op?._id ?? ffi.nullptr); + } + + NSArray? get dependencies { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_dependencies1); return _ret.address == 0 ? null - : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - NSDecimalNumberHandler - initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_( - int roundingMode, - int scale, - bool exact, - bool overflow, - bool underflow, - bool divideByZero) { - final _ret = _lib._objc_msgSend_754( - _id, - _lib._sel_initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1, - roundingMode, - scale, - exact, - overflow, - underflow, - divideByZero); - return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + int get queuePriority { + return _lib._objc_msgSend_849(_id, _lib._sel_queuePriority1); } - static NSDecimalNumberHandler - decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_( - SentryCocoa _lib, - int roundingMode, - int scale, - bool exact, - bool overflow, - bool underflow, - bool divideByZero) { - final _ret = _lib._objc_msgSend_754( - _lib._class_NSDecimalNumberHandler1, - _lib._sel_decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1, - roundingMode, - scale, - exact, - overflow, - underflow, - divideByZero); - return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + set queuePriority(int value) { + return _lib._objc_msgSend_850(_id, _lib._sel_setQueuePriority_1, value); + } + + ObjCBlock_ffiVoid get completionBlock { + final _ret = _lib._objc_msgSend_633(_id, _lib._sel_completionBlock1); + return ObjCBlock_ffiVoid._(_ret, _lib); + } + + set completionBlock(ObjCBlock_ffiVoid value) { + return _lib._objc_msgSend_634( + _id, _lib._sel_setCompletionBlock_1, value._id); + } + + void waitUntilFinished() { + _lib._objc_msgSend_1(_id, _lib._sel_waitUntilFinished1); + } + + double get threadPriority { + return _lib._objc_msgSend_155(_id, _lib._sel_threadPriority1); + } + + set threadPriority(double value) { + return _lib._objc_msgSend_522(_id, _lib._sel_setThreadPriority_1, value); + } + + int get qualityOfService { + return _lib._objc_msgSend_523(_id, _lib._sel_qualityOfService1); + } + + set qualityOfService(int value) { + return _lib._objc_msgSend_524(_id, _lib._sel_setQualityOfService_1, value); + } + + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set name(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } @override - NSDecimalNumberHandler init() { + NSOperation init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); + return NSOperation._(_ret, _lib, retain: true, release: true); } - static NSDecimalNumberHandler new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSDecimalNumberHandler1, _lib._sel_new1); - return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); + static NSOperation new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_new1); + return NSOperation._(_ret, _lib, retain: false, release: true); } - static NSDecimalNumberHandler allocWithZone_( + static NSOperation allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSDecimalNumberHandler1, _lib._sel_allocWithZone_1, zone); - return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); + _lib._class_NSOperation1, _lib._sel_allocWithZone_1, zone); + return NSOperation._(_ret, _lib, retain: false, release: true); } - static NSDecimalNumberHandler alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSDecimalNumberHandler1, _lib._sel_alloc1); - return NSDecimalNumberHandler._(_ret, _lib, retain: false, release: true); + static NSOperation alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_alloc1); + return NSOperation._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -57399,7 +64807,7 @@ class NSDecimalNumberHandler extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSDecimalNumberHandler1, + _lib._class_NSOperation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -57408,24 +64816,24 @@ class NSDecimalNumberHandler extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSDecimalNumberHandler1, + _lib._objc_msgSend_15(_lib._class_NSOperation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSDecimalNumberHandler1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSOperation1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSDecimalNumberHandler1, _lib._sel_useStoredAccessor1); + _lib._class_NSOperation1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSDecimalNumberHandler1, + _lib._class_NSOperation1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -57434,7 +64842,7 @@ class NSDecimalNumberHandler extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSDecimalNumberHandler1, + _lib._class_NSOperation1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -57442,217 +64850,179 @@ class NSDecimalNumberHandler extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSDecimalNumberHandler1, + _lib._class_NSOperation1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSDecimalNumberHandler1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSOperation1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSDecimalNumberHandler1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSOperation1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSRoundingMode { - static const int NSRoundPlain = 0; - static const int NSRoundDown = 1; - static const int NSRoundUp = 2; - static const int NSRoundBankers = 3; +abstract class NSOperationQueuePriority { + static const int NSOperationQueuePriorityVeryLow = -8; + static const int NSOperationQueuePriorityLow = -4; + static const int NSOperationQueuePriorityNormal = 0; + static const int NSOperationQueuePriorityHigh = 4; + static const int NSOperationQueuePriorityVeryHigh = 8; } -class NSScanner extends NSObject { - NSScanner._(ffi.Pointer id, SentryCocoa lib, +class NSPointerArray extends NSObject { + NSPointerArray._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSScanner] that points to the same underlying object as [other]. - static NSScanner castFrom(T other) { - return NSScanner._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSPointerArray] that points to the same underlying object as [other]. + static NSPointerArray castFrom(T other) { + return NSPointerArray._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSScanner] that wraps the given raw object pointer. - static NSScanner castFromPointer( + /// Returns a [NSPointerArray] that wraps the given raw object pointer. + static NSPointerArray castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSScanner._(other, lib, retain: retain, release: release); + return NSPointerArray._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSScanner]. + /// Returns whether [obj] is an instance of [NSPointerArray]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSScanner1); - } - - NSString? get string { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int get scanLocation { - return _lib._objc_msgSend_10(_id, _lib._sel_scanLocation1); - } - - set scanLocation(int value) { - return _lib._objc_msgSend_486(_id, _lib._sel_setScanLocation_1, value); - } - - NSCharacterSet? get charactersToBeSkipped { - final _ret = _lib._objc_msgSend_174(_id, _lib._sel_charactersToBeSkipped1); - return _ret.address == 0 - ? null - : NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - - set charactersToBeSkipped(NSCharacterSet? value) { - return _lib._objc_msgSend_756( - _id, _lib._sel_setCharactersToBeSkipped_1, value?._id ?? ffi.nullptr); - } - - bool get caseSensitive { - return _lib._objc_msgSend_12(_id, _lib._sel_caseSensitive1); - } - - set caseSensitive(bool value) { - return _lib._objc_msgSend_495(_id, _lib._sel_setCaseSensitive_1, value); - } - - NSObject get locale { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_locale1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - set locale(NSObject value) { - return _lib._objc_msgSend_389(_id, _lib._sel_setLocale_1, value._id); - } - - NSScanner initWithString_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, string?._id ?? ffi.nullptr); - return NSScanner._(_ret, _lib, retain: true, release: true); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSPointerArray1); } - bool scanInt_(ffi.Pointer result) { - return _lib._objc_msgSend_757(_id, _lib._sel_scanInt_1, result); + NSPointerArray initWithOptions_(int options) { + final _ret = + _lib._objc_msgSend_855(_id, _lib._sel_initWithOptions_1, options); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - bool scanInteger_(ffi.Pointer result) { - return _lib._objc_msgSend_758(_id, _lib._sel_scanInteger_1, result); + NSPointerArray initWithPointerFunctions_(NSPointerFunctions? functions) { + final _ret = _lib._objc_msgSend_869(_id, + _lib._sel_initWithPointerFunctions_1, functions?._id ?? ffi.nullptr); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - bool scanLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_759(_id, _lib._sel_scanLongLong_1, result); + static NSPointerArray pointerArrayWithOptions_( + SentryCocoa _lib, int options) { + final _ret = _lib._objc_msgSend_870(_lib._class_NSPointerArray1, + _lib._sel_pointerArrayWithOptions_1, options); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - bool scanUnsignedLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_760( - _id, _lib._sel_scanUnsignedLongLong_1, result); + static NSPointerArray pointerArrayWithPointerFunctions_( + SentryCocoa _lib, NSPointerFunctions? functions) { + final _ret = _lib._objc_msgSend_871( + _lib._class_NSPointerArray1, + _lib._sel_pointerArrayWithPointerFunctions_1, + functions?._id ?? ffi.nullptr); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - bool scanFloat_(ffi.Pointer result) { - return _lib._objc_msgSend_761(_id, _lib._sel_scanFloat_1, result); + NSPointerFunctions? get pointerFunctions { + final _ret = _lib._objc_msgSend_872(_id, _lib._sel_pointerFunctions1); + return _ret.address == 0 + ? null + : NSPointerFunctions._(_ret, _lib, retain: true, release: true); } - bool scanDouble_(ffi.Pointer result) { - return _lib._objc_msgSend_762(_id, _lib._sel_scanDouble_1, result); + ffi.Pointer pointerAtIndex_(int index) { + return _lib._objc_msgSend_286(_id, _lib._sel_pointerAtIndex_1, index); } - bool scanHexInt_(ffi.Pointer result) { - return _lib._objc_msgSend_763(_id, _lib._sel_scanHexInt_1, result); + void addPointer_(ffi.Pointer pointer) { + _lib._objc_msgSend_47(_id, _lib._sel_addPointer_1, pointer); } - bool scanHexLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_760(_id, _lib._sel_scanHexLongLong_1, result); + void removePointerAtIndex_(int index) { + _lib._objc_msgSend_455(_id, _lib._sel_removePointerAtIndex_1, index); } - bool scanHexFloat_(ffi.Pointer result) { - return _lib._objc_msgSend_761(_id, _lib._sel_scanHexFloat_1, result); + void insertPointer_atIndex_(ffi.Pointer item, int index) { + _lib._objc_msgSend_21(_id, _lib._sel_insertPointer_atIndex_1, item, index); } - bool scanHexDouble_(ffi.Pointer result) { - return _lib._objc_msgSend_762(_id, _lib._sel_scanHexDouble_1, result); + void replacePointerAtIndex_withPointer_( + int index, ffi.Pointer item) { + _lib._objc_msgSend_873( + _id, _lib._sel_replacePointerAtIndex_withPointer_1, index, item); } - bool scanString_intoString_( - NSString? string, ffi.Pointer> result) { - return _lib._objc_msgSend_764(_id, _lib._sel_scanString_intoString_1, - string?._id ?? ffi.nullptr, result); + void compact() { + _lib._objc_msgSend_1(_id, _lib._sel_compact1); } - bool scanCharactersFromSet_intoString_( - NSCharacterSet? set, ffi.Pointer> result) { - return _lib._objc_msgSend_765( - _id, - _lib._sel_scanCharactersFromSet_intoString_1, - set?._id ?? ffi.nullptr, - result); + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); } - bool scanUpToString_intoString_( - NSString? string, ffi.Pointer> result) { - return _lib._objc_msgSend_764(_id, _lib._sel_scanUpToString_intoString_1, - string?._id ?? ffi.nullptr, result); + set count(int value) { + return _lib._objc_msgSend_500(_id, _lib._sel_setCount_1, value); } - bool scanUpToCharactersFromSet_intoString_( - NSCharacterSet? set, ffi.Pointer> result) { - return _lib._objc_msgSend_765( - _id, - _lib._sel_scanUpToCharactersFromSet_intoString_1, - set?._id ?? ffi.nullptr, - result); + static NSObject pointerArrayWithStrongObjects(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPointerArray1, _lib._sel_pointerArrayWithStrongObjects1); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool get atEnd { - return _lib._objc_msgSend_12(_id, _lib._sel_isAtEnd1); + static NSObject pointerArrayWithWeakObjects(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPointerArray1, _lib._sel_pointerArrayWithWeakObjects1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSScanner scannerWithString_(SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSScanner1, - _lib._sel_scannerWithString_1, string?._id ?? ffi.nullptr); - return NSScanner._(_ret, _lib, retain: true, release: true); + static NSPointerArray strongObjectsPointerArray(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_874( + _lib._class_NSPointerArray1, _lib._sel_strongObjectsPointerArray1); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - static NSObject localizedScannerWithString_( - SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSScanner1, - _lib._sel_localizedScannerWithString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSPointerArray weakObjectsPointerArray(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_874( + _lib._class_NSPointerArray1, _lib._sel_weakObjectsPointerArray1); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - bool scanDecimal_(ffi.Pointer dcm) { - return _lib._objc_msgSend_766(_id, _lib._sel_scanDecimal_1, dcm); + NSArray? get allObjects { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allObjects1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } @override - NSScanner init() { + NSPointerArray init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSScanner._(_ret, _lib, retain: true, release: true); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - static NSScanner new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSScanner1, _lib._sel_new1); - return NSScanner._(_ret, _lib, retain: false, release: true); + static NSPointerArray new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPointerArray1, _lib._sel_new1); + return NSPointerArray._(_ret, _lib, retain: false, release: true); } - static NSScanner allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSPointerArray allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSScanner1, _lib._sel_allocWithZone_1, zone); - return NSScanner._(_ret, _lib, retain: false, release: true); + _lib._class_NSPointerArray1, _lib._sel_allocWithZone_1, zone); + return NSPointerArray._(_ret, _lib, retain: false, release: true); } - static NSScanner alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSScanner1, _lib._sel_alloc1); - return NSScanner._(_ret, _lib, retain: false, release: true); + static NSPointerArray alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPointerArray1, _lib._sel_alloc1); + return NSPointerArray._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -57661,7 +65031,7 @@ class NSScanner extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSScanner1, + _lib._class_NSPointerArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -57670,24 +65040,24 @@ class NSScanner extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSScanner1, + _lib._objc_msgSend_15(_lib._class_NSPointerArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSScanner1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSPointerArray1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSScanner1, _lib._sel_useStoredAccessor1); + _lib._class_NSPointerArray1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSScanner1, + _lib._class_NSPointerArray1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -57696,7 +65066,7 @@ class NSScanner extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSScanner1, + _lib._class_NSPointerArray1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -57704,7 +65074,7 @@ class NSScanner extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSScanner1, + _lib._class_NSPointerArray1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -57712,139 +65082,241 @@ class NSScanner extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSScanner1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSPointerArray1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSScanner1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSPointerArray1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -final class NSDecimal extends ffi.Opaque {} +abstract class NSPointerFunctionsOptions { + static const int NSPointerFunctionsStrongMemory = 0; + static const int NSPointerFunctionsZeroingWeakMemory = 1; + static const int NSPointerFunctionsOpaqueMemory = 2; + static const int NSPointerFunctionsMallocMemory = 3; + static const int NSPointerFunctionsMachVirtualMemory = 4; + static const int NSPointerFunctionsWeakMemory = 5; + static const int NSPointerFunctionsObjectPersonality = 0; + static const int NSPointerFunctionsOpaquePersonality = 256; + static const int NSPointerFunctionsObjectPointerPersonality = 512; + static const int NSPointerFunctionsCStringPersonality = 768; + static const int NSPointerFunctionsStructPersonality = 1024; + static const int NSPointerFunctionsIntegerPersonality = 1280; + static const int NSPointerFunctionsCopyIn = 65536; +} -class NSException extends NSObject { - NSException._(ffi.Pointer id, SentryCocoa lib, +class NSPointerFunctions extends NSObject { + NSPointerFunctions._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSException] that points to the same underlying object as [other]. - static NSException castFrom(T other) { - return NSException._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSPointerFunctions] that points to the same underlying object as [other]. + static NSPointerFunctions castFrom(T other) { + return NSPointerFunctions._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSException] that wraps the given raw object pointer. - static NSException castFromPointer( + /// Returns a [NSPointerFunctions] that wraps the given raw object pointer. + static NSPointerFunctions castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSException._(other, lib, retain: retain, release: release); + return NSPointerFunctions._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSException]. + /// Returns whether [obj] is an instance of [NSPointerFunctions]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSException1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSPointerFunctions1); } - static NSException exceptionWithName_reason_userInfo_(SentryCocoa _lib, - NSString name, NSString? reason, NSDictionary? userInfo) { - final _ret = _lib._objc_msgSend_767( - _lib._class_NSException1, - _lib._sel_exceptionWithName_reason_userInfo_1, - name._id, - reason?._id ?? ffi.nullptr, - userInfo?._id ?? ffi.nullptr); - return NSException._(_ret, _lib, retain: true, release: true); + NSPointerFunctions initWithOptions_(int options) { + final _ret = + _lib._objc_msgSend_855(_id, _lib._sel_initWithOptions_1, options); + return NSPointerFunctions._(_ret, _lib, retain: true, release: true); } - NSException initWithName_reason_userInfo_( - NSString aName, NSString? aReason, NSDictionary? aUserInfo) { - final _ret = _lib._objc_msgSend_586( - _id, - _lib._sel_initWithName_reason_userInfo_1, - aName._id, - aReason?._id ?? ffi.nullptr, - aUserInfo?._id ?? ffi.nullptr); - return NSException._(_ret, _lib, retain: true, release: true); + static NSPointerFunctions pointerFunctionsWithOptions_( + SentryCocoa _lib, int options) { + final _ret = _lib._objc_msgSend_856(_lib._class_NSPointerFunctions1, + _lib._sel_pointerFunctionsWithOptions_1, options); + return NSPointerFunctions._(_ret, _lib, retain: true, release: true); } - NSString get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return NSString._(_ret, _lib, retain: true, release: true); + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + get hashFunction { + return _lib._objc_msgSend_857(_id, _lib._sel_hashFunction1); } - NSString? get reason { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_reason1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set hashFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + value) { + return _lib._objc_msgSend_858(_id, _lib._sel_setHashFunction_1, value); } - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + get isEqualFunction { + return _lib._objc_msgSend_859(_id, _lib._sel_isEqualFunction1); } - NSArray? get callStackReturnAddresses { - final _ret = - _lib._objc_msgSend_79(_id, _lib._sel_callStackReturnAddresses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + set isEqualFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + value) { + return _lib._objc_msgSend_860(_id, _lib._sel_setIsEqualFunction_1, value); } - NSArray? get callStackSymbols { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_callStackSymbols1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + ffi.Pointer< + ffi.NativeFunction)>> + get sizeFunction { + return _lib._objc_msgSend_861(_id, _lib._sel_sizeFunction1); } - void raise() { - _lib._objc_msgSend_1(_id, _lib._sel_raise1); + set sizeFunction( + ffi.Pointer< + ffi + .NativeFunction)>> + value) { + return _lib._objc_msgSend_862(_id, _lib._sel_setSizeFunction_1, value); } - static void raise_format_(SentryCocoa _lib, NSString name, NSString? format) { - _lib._objc_msgSend_518(_lib._class_NSException1, _lib._sel_raise_format_1, - name._id, format?._id ?? ffi.nullptr); + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>> + get descriptionFunction { + return _lib._objc_msgSend_863(_id, _lib._sel_descriptionFunction1); } - static void raise_format_arguments_(SentryCocoa _lib, NSString name, - NSString? format, ffi.Pointer<__va_list_tag> argList) { - _lib._objc_msgSend_768( - _lib._class_NSException1, - _lib._sel_raise_format_arguments_1, - name._id, - format?._id ?? ffi.nullptr, - argList); + set descriptionFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>> + value) { + return _lib._objc_msgSend_864( + _id, _lib._sel_setDescriptionFunction_1, value); + } + + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + get relinquishFunction { + return _lib._objc_msgSend_865(_id, _lib._sel_relinquishFunction1); + } + + set relinquishFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + value) { + return _lib._objc_msgSend_866( + _id, _lib._sel_setRelinquishFunction_1, value); + } + + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>, + ffi.Bool)>> get acquireFunction { + return _lib._objc_msgSend_867(_id, _lib._sel_acquireFunction1); + } + + set acquireFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>, + ffi.Bool)>> + value) { + return _lib._objc_msgSend_868(_id, _lib._sel_setAcquireFunction_1, value); + } + + bool get usesStrongWriteBarrier { + return _lib._objc_msgSend_12(_id, _lib._sel_usesStrongWriteBarrier1); + } + + set usesStrongWriteBarrier(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setUsesStrongWriteBarrier_1, value); + } + + bool get usesWeakReadAndWriteBarriers { + return _lib._objc_msgSend_12(_id, _lib._sel_usesWeakReadAndWriteBarriers1); + } + + set usesWeakReadAndWriteBarriers(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setUsesWeakReadAndWriteBarriers_1, value); } @override - NSException init() { + NSPointerFunctions init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSException._(_ret, _lib, retain: true, release: true); + return NSPointerFunctions._(_ret, _lib, retain: true, release: true); } - static NSException new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_new1); - return NSException._(_ret, _lib, retain: false, release: true); + static NSPointerFunctions new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_new1); + return NSPointerFunctions._(_ret, _lib, retain: false, release: true); } - static NSException allocWithZone_( + static NSPointerFunctions allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSException1, _lib._sel_allocWithZone_1, zone); - return NSException._(_ret, _lib, retain: false, release: true); + _lib._class_NSPointerFunctions1, _lib._sel_allocWithZone_1, zone); + return NSPointerFunctions._(_ret, _lib, retain: false, release: true); } - static NSException alloc(SentryCocoa _lib) { + static NSPointerFunctions alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_alloc1); - return NSException._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_alloc1); + return NSPointerFunctions._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -57853,7 +65325,7 @@ class NSException extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSException1, + _lib._class_NSPointerFunctions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -57862,24 +65334,24 @@ class NSException extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSException1, + _lib._objc_msgSend_15(_lib._class_NSPointerFunctions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSException1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSPointerFunctions1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSException1, _lib._sel_useStoredAccessor1); + _lib._class_NSPointerFunctions1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSException1, + _lib._class_NSPointerFunctions1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -57888,7 +65360,7 @@ class NSException extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSException1, + _lib._class_NSPointerFunctions1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -57896,339 +65368,278 @@ class NSException extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSException1, + _lib._class_NSPointerFunctions1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSException1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSPointerFunctions1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSException1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSPointerFunctions1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSFileHandle extends NSObject { - NSFileHandle._(ffi.Pointer id, SentryCocoa lib, +class NSProcessInfo extends NSObject { + NSProcessInfo._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSFileHandle] that points to the same underlying object as [other]. - static NSFileHandle castFrom(T other) { - return NSFileHandle._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSProcessInfo] that points to the same underlying object as [other]. + static NSProcessInfo castFrom(T other) { + return NSProcessInfo._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSFileHandle] that wraps the given raw object pointer. - static NSFileHandle castFromPointer( + /// Returns a [NSProcessInfo] that wraps the given raw object pointer. + static NSProcessInfo castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSFileHandle._(other, lib, retain: retain, release: release); + return NSProcessInfo._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSFileHandle]. + /// Returns whether [obj] is an instance of [NSProcessInfo]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileHandle1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProcessInfo1); } - NSData? get availableData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_availableData1); + static NSProcessInfo? getProcessInfo(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_875( + _lib._class_NSProcessInfo1, _lib._sel_processInfo1); return _ret.address == 0 ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - NSFileHandle initWithFileDescriptor_closeOnDealloc_(int fd, bool closeopt) { - final _ret = _lib._objc_msgSend_769( - _id, _lib._sel_initWithFileDescriptor_closeOnDealloc_1, fd, closeopt); - return NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - NSFileHandle initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); - } - - NSData readDataToEndOfFileAndReturnError_( - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_770( - _id, _lib._sel_readDataToEndOfFileAndReturnError_1, error); - return NSData._(_ret, _lib, retain: true, release: true); - } - - NSData readDataUpToLength_error_( - int length, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_771( - _id, _lib._sel_readDataUpToLength_error_1, length, error); - return NSData._(_ret, _lib, retain: true, release: true); - } - - bool writeData_error_( - NSData? data, ffi.Pointer> error) { - return _lib._objc_msgSend_772( - _id, _lib._sel_writeData_error_1, data?._id ?? ffi.nullptr, error); - } - - bool getOffset_error_(ffi.Pointer offsetInFile, - ffi.Pointer> error) { - return _lib._objc_msgSend_773( - _id, _lib._sel_getOffset_error_1, offsetInFile, error); - } - - bool seekToEndReturningOffset_error_( - ffi.Pointer offsetInFile, - ffi.Pointer> error) { - return _lib._objc_msgSend_773( - _id, _lib._sel_seekToEndReturningOffset_error_1, offsetInFile, error); - } - - bool seekToOffset_error_( - int offset, ffi.Pointer> error) { - return _lib._objc_msgSend_774( - _id, _lib._sel_seekToOffset_error_1, offset, error); - } - - bool truncateAtOffset_error_( - int offset, ffi.Pointer> error) { - return _lib._objc_msgSend_774( - _id, _lib._sel_truncateAtOffset_error_1, offset, error); - } - - bool synchronizeAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_236( - _id, _lib._sel_synchronizeAndReturnError_1, error); + : NSProcessInfo._(_ret, _lib, retain: true, release: true); } - bool closeAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_236(_id, _lib._sel_closeAndReturnError_1, error); + NSDictionary? get environment { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_environment1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSFileHandle? getFileHandleWithStandardInput(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_775( - _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardInput1); + NSArray? get arguments { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_arguments1); return _ret.address == 0 ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSFileHandle? getFileHandleWithStandardOutput(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_775( - _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardOutput1); + NSString? get hostName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_hostName1); return _ret.address == 0 ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - static NSFileHandle? getFileHandleWithStandardError(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_775( - _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardError1); + NSString? get processName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_processName1); return _ret.address == 0 ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - static NSFileHandle? getFileHandleWithNullDevice(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_775( - _lib._class_NSFileHandle1, _lib._sel_fileHandleWithNullDevice1); + set processName(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setProcessName_1, value?._id ?? ffi.nullptr); + } + + int get processIdentifier { + return _lib._objc_msgSend_219(_id, _lib._sel_processIdentifier1); + } + + NSString? get globallyUniqueString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_globallyUniqueString1); return _ret.address == 0 ? null - : NSFileHandle._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - static NSFileHandle fileHandleForReadingAtPath_( - SentryCocoa _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, - _lib._sel_fileHandleForReadingAtPath_1, path?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + int operatingSystem() { + return _lib._objc_msgSend_10(_id, _lib._sel_operatingSystem1); } - static NSFileHandle fileHandleForWritingAtPath_( - SentryCocoa _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, - _lib._sel_fileHandleForWritingAtPath_1, path?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + NSString operatingSystemName() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemName1); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSFileHandle fileHandleForUpdatingAtPath_( - SentryCocoa _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSFileHandle1, - _lib._sel_fileHandleForUpdatingAtPath_1, path?._id ?? ffi.nullptr); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + NSString? get operatingSystemVersionString { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemVersionString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSFileHandle fileHandleForReadingFromURL_error_(SentryCocoa _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_776( - _lib._class_NSFileHandle1, - _lib._sel_fileHandleForReadingFromURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + void getOperatingSystemVersion(ffi.Pointer stret) { + _lib._objc_msgSend_876(stret, _id, _lib._sel_operatingSystemVersion1); } - static NSFileHandle fileHandleForWritingToURL_error_(SentryCocoa _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_776( - _lib._class_NSFileHandle1, - _lib._sel_fileHandleForWritingToURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + int get processorCount { + return _lib._objc_msgSend_10(_id, _lib._sel_processorCount1); } - static NSFileHandle fileHandleForUpdatingURL_error_(SentryCocoa _lib, - NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_776( - _lib._class_NSFileHandle1, - _lib._sel_fileHandleForUpdatingURL_error_1, - url?._id ?? ffi.nullptr, - error); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + int get activeProcessorCount { + return _lib._objc_msgSend_10(_id, _lib._sel_activeProcessorCount1); } - void readInBackgroundAndNotifyForModes_(NSArray? modes) { - _lib._objc_msgSend_443(_id, _lib._sel_readInBackgroundAndNotifyForModes_1, - modes?._id ?? ffi.nullptr); + int get physicalMemory { + return _lib._objc_msgSend_154(_id, _lib._sel_physicalMemory1); } - void readInBackgroundAndNotify() { - _lib._objc_msgSend_1(_id, _lib._sel_readInBackgroundAndNotify1); + bool isOperatingSystemAtLeastVersion_(NSOperatingSystemVersion version) { + return _lib._objc_msgSend_877( + _id, _lib._sel_isOperatingSystemAtLeastVersion_1, version); } - void readToEndOfFileInBackgroundAndNotifyForModes_(NSArray? modes) { - _lib._objc_msgSend_443( - _id, - _lib._sel_readToEndOfFileInBackgroundAndNotifyForModes_1, - modes?._id ?? ffi.nullptr); + double get systemUptime { + return _lib._objc_msgSend_155(_id, _lib._sel_systemUptime1); } - void readToEndOfFileInBackgroundAndNotify() { - _lib._objc_msgSend_1(_id, _lib._sel_readToEndOfFileInBackgroundAndNotify1); + void disableSuddenTermination() { + _lib._objc_msgSend_1(_id, _lib._sel_disableSuddenTermination1); } - void acceptConnectionInBackgroundAndNotifyForModes_(NSArray? modes) { - _lib._objc_msgSend_443( - _id, - _lib._sel_acceptConnectionInBackgroundAndNotifyForModes_1, - modes?._id ?? ffi.nullptr); + void enableSuddenTermination() { + _lib._objc_msgSend_1(_id, _lib._sel_enableSuddenTermination1); } - void acceptConnectionInBackgroundAndNotify() { - _lib._objc_msgSend_1(_id, _lib._sel_acceptConnectionInBackgroundAndNotify1); + void disableAutomaticTermination_(NSString? reason) { + _lib._objc_msgSend_192(_id, _lib._sel_disableAutomaticTermination_1, + reason?._id ?? ffi.nullptr); } - void waitForDataInBackgroundAndNotifyForModes_(NSArray? modes) { - _lib._objc_msgSend_443( - _id, - _lib._sel_waitForDataInBackgroundAndNotifyForModes_1, - modes?._id ?? ffi.nullptr); + void enableAutomaticTermination_(NSString? reason) { + _lib._objc_msgSend_192(_id, _lib._sel_enableAutomaticTermination_1, + reason?._id ?? ffi.nullptr); } - void waitForDataInBackgroundAndNotify() { - _lib._objc_msgSend_1(_id, _lib._sel_waitForDataInBackgroundAndNotify1); + bool get automaticTerminationSupportEnabled { + return _lib._objc_msgSend_12( + _id, _lib._sel_automaticTerminationSupportEnabled1); } - ObjCBlock_ffiVoid_NSFileHandle get readabilityHandler { - final _ret = _lib._objc_msgSend_777(_id, _lib._sel_readabilityHandler1); - return ObjCBlock_ffiVoid_NSFileHandle._(_ret, _lib); + set automaticTerminationSupportEnabled(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setAutomaticTerminationSupportEnabled_1, value); } - set readabilityHandler(ObjCBlock_ffiVoid_NSFileHandle value) { - return _lib._objc_msgSend_778( - _id, _lib._sel_setReadabilityHandler_1, value._id); + NSObject beginActivityWithOptions_reason_(int options, NSString? reason) { + final _ret = _lib._objc_msgSend_878( + _id, + _lib._sel_beginActivityWithOptions_reason_1, + options, + reason?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - ObjCBlock_ffiVoid_NSFileHandle get writeabilityHandler { - final _ret = _lib._objc_msgSend_777(_id, _lib._sel_writeabilityHandler1); - return ObjCBlock_ffiVoid_NSFileHandle._(_ret, _lib); + void endActivity_(NSObject? activity) { + _lib._objc_msgSend_15( + _id, _lib._sel_endActivity_1, activity?._id ?? ffi.nullptr); } - set writeabilityHandler(ObjCBlock_ffiVoid_NSFileHandle value) { - return _lib._objc_msgSend_778( - _id, _lib._sel_setWriteabilityHandler_1, value._id); + void performActivityWithOptions_reason_usingBlock_( + int options, NSString? reason, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_879( + _id, + _lib._sel_performActivityWithOptions_reason_usingBlock_1, + options, + reason?._id ?? ffi.nullptr, + block._id); } - NSFileHandle initWithFileDescriptor_(int fd) { - final _ret = - _lib._objc_msgSend_779(_id, _lib._sel_initWithFileDescriptor_1, fd); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + void performExpiringActivityWithReason_usingBlock_( + NSString? reason, ObjCBlock_ffiVoid_bool block) { + _lib._objc_msgSend_880( + _id, + _lib._sel_performExpiringActivityWithReason_usingBlock_1, + reason?._id ?? ffi.nullptr, + block._id); } - int get fileDescriptor { - return _lib._objc_msgSend_219(_id, _lib._sel_fileDescriptor1); + NSString? get userName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_userName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSData readDataToEndOfFile() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_readDataToEndOfFile1); - return NSData._(_ret, _lib, retain: true, release: true); + NSString? get fullUserName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fullUserName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSData readDataOfLength_(int length) { - final _ret = - _lib._objc_msgSend_332(_id, _lib._sel_readDataOfLength_1, length); - return NSData._(_ret, _lib, retain: true, release: true); + int get thermalState { + return _lib._objc_msgSend_881(_id, _lib._sel_thermalState1); } - void writeData_(NSData? data) { - _lib._objc_msgSend_263( - _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); + bool get lowPowerModeEnabled { + return _lib._objc_msgSend_12(_id, _lib._sel_isLowPowerModeEnabled1); } - int get offsetInFile { - return _lib._objc_msgSend_154(_id, _lib._sel_offsetInFile1); + bool get macCatalystApp { + return _lib._objc_msgSend_12(_id, _lib._sel_isMacCatalystApp1); } - int seekToEndOfFile() { - return _lib._objc_msgSend_154(_id, _lib._sel_seekToEndOfFile1); + bool get iOSAppOnMac { + return _lib._objc_msgSend_12(_id, _lib._sel_isiOSAppOnMac1); } - void seekToFileOffset_(int offset) { - _lib._objc_msgSend_780(_id, _lib._sel_seekToFileOffset_1, offset); + bool get iOSAppOnVision { + return _lib._objc_msgSend_12(_id, _lib._sel_isiOSAppOnVision1); } - void truncateFileAtOffset_(int offset) { - _lib._objc_msgSend_780(_id, _lib._sel_truncateFileAtOffset_1, offset); + NSString? get processDirectoryPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_processDirectoryPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void synchronizeFile() { - _lib._objc_msgSend_1(_id, _lib._sel_synchronizeFile1); + NSString? get processPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_processPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void closeFile() { - _lib._objc_msgSend_1(_id, _lib._sel_closeFile1); + bool get isiOSAppOnVisionOS { + return _lib._objc_msgSend_12(_id, _lib._sel_isiOSAppOnVisionOS1); } @override - NSFileHandle init() { + NSProcessInfo init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + return NSProcessInfo._(_ret, _lib, retain: true, release: true); } - static NSFileHandle new1(SentryCocoa _lib) { + static NSProcessInfo new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileHandle1, _lib._sel_new1); - return NSFileHandle._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_new1); + return NSProcessInfo._(_ret, _lib, retain: false, release: true); } - static NSFileHandle allocWithZone_( + static NSProcessInfo allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSFileHandle1, _lib._sel_allocWithZone_1, zone); - return NSFileHandle._(_ret, _lib, retain: false, release: true); + _lib._class_NSProcessInfo1, _lib._sel_allocWithZone_1, zone); + return NSProcessInfo._(_ret, _lib, retain: false, release: true); } - static NSFileHandle alloc(SentryCocoa _lib) { + static NSProcessInfo alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileHandle1, _lib._sel_alloc1); - return NSFileHandle._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_alloc1); + return NSProcessInfo._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -58237,7 +65648,7 @@ class NSFileHandle extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSFileHandle1, + _lib._class_NSProcessInfo1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -58246,24 +65657,24 @@ class NSFileHandle extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSFileHandle1, + _lib._objc_msgSend_15(_lib._class_NSProcessInfo1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSFileHandle1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSProcessInfo1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSFileHandle1, _lib._sel_useStoredAccessor1); + _lib._class_NSProcessInfo1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSFileHandle1, + _lib._class_NSProcessInfo1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -58272,7 +65683,7 @@ class NSFileHandle extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSFileHandle1, + _lib._class_NSProcessInfo1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -58280,7 +65691,7 @@ class NSFileHandle extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSFileHandle1, + _lib._class_NSProcessInfo1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -58288,217 +65699,431 @@ class NSFileHandle extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSFileHandle1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSProcessInfo1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSFileHandle1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSProcessInfo1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock_ffiVoid_NSFileHandle_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { +final class NSOperatingSystemVersion extends ffi.Struct { + @ffi.Long() + external int majorVersion; + + @ffi.Long() + external int minorVersion; + + @ffi.Long() + external int patchVersion; +} + +abstract class NSActivityOptions { + static const int NSActivityIdleDisplaySleepDisabled = 1099511627776; + static const int NSActivityIdleSystemSleepDisabled = 1048576; + static const int NSActivitySuddenTerminationDisabled = 16384; + static const int NSActivityAutomaticTerminationDisabled = 32768; + static const int NSActivityAnimationTrackingEnabled = 35184372088832; + static const int NSActivityTrackingEnabled = 70368744177664; + static const int NSActivityUserInitiated = 16777215; + static const int NSActivityUserInitiatedAllowingIdleSystemSleep = 15728639; + static const int NSActivityBackground = 255; + static const int NSActivityLatencyCritical = 1095216660480; + static const int NSActivityUserInteractive = 1095233437695; +} + +void _ObjCBlock_ffiVoid_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, bool arg0) { return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); + .cast>() + .asFunction()(arg0); } -final _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSFileHandle_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSFileHandle_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSFileHandle_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry[id] = fn; +final _ObjCBlock_ffiVoid_bool_closureRegistry = {}; +int _ObjCBlock_ffiVoid_bool_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_bool_registerClosure(Function fn) { + final id = ++_ObjCBlock_ffiVoid_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_bool_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSFileHandle_closureRegistry[block - .ref.target.address] as void Function(ffi.Pointer))(arg0); +void _ObjCBlock_ffiVoid_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, bool arg0) { + return (_ObjCBlock_ffiVoid_bool_closureRegistry[block.ref.target.address] + as void Function(bool))(arg0); } -class ObjCBlock_ffiVoid_NSFileHandle extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSFileHandle._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock_ffiVoid_bool extends _ObjCBlockBase { + ObjCBlock_ffiVoid_bool._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSFileHandle.fromFunctionPointer( - SentryCocoa lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) + ObjCBlock_ffiVoid_bool.fromFunctionPointer(SentryCocoa lib, + ffi.Pointer> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSFileHandle_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>( + _ObjCBlock_ffiVoid_bool_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSFileHandle.fromFunction( - SentryCocoa lib, void Function(ffi.Pointer arg0) fn) + ObjCBlock_ffiVoid_bool.fromFunction( + SentryCocoa lib, void Function(bool arg0) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>( + _ObjCBlock_ffiVoid_bool_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSFileHandle_registerClosure(fn)), + _ObjCBlock_ffiVoid_bool_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { + void call(bool arg0) { return _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>>() .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); + void Function( + ffi.Pointer<_ObjCBlock> block, bool arg0)>()(_id, arg0); } } -class NSHTTPCookieStorage extends NSObject { - NSHTTPCookieStorage._(ffi.Pointer id, SentryCocoa lib, +abstract class NSProcessInfoThermalState { + static const int NSProcessInfoThermalStateNominal = 0; + static const int NSProcessInfoThermalStateFair = 1; + static const int NSProcessInfoThermalStateSerious = 2; + static const int NSProcessInfoThermalStateCritical = 3; +} + +class NSTextCheckingResult extends NSObject { + NSTextCheckingResult._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSHTTPCookieStorage] that points to the same underlying object as [other]. - static NSHTTPCookieStorage castFrom(T other) { - return NSHTTPCookieStorage._(other._id, other._lib, + /// Returns a [NSTextCheckingResult] that points to the same underlying object as [other]. + static NSTextCheckingResult castFrom(T other) { + return NSTextCheckingResult._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSHTTPCookieStorage] that wraps the given raw object pointer. - static NSHTTPCookieStorage castFromPointer( + /// Returns a [NSTextCheckingResult] that wraps the given raw object pointer. + static NSTextCheckingResult castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSHTTPCookieStorage._(other, lib, retain: retain, release: release); + return NSTextCheckingResult._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSHTTPCookieStorage]. + /// Returns whether [obj] is an instance of [NSTextCheckingResult]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSHTTPCookieStorage1); + obj._lib._class_NSTextCheckingResult1); } - static NSHTTPCookieStorage? getSharedHTTPCookieStorage(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_781( - _lib._class_NSHTTPCookieStorage1, _lib._sel_sharedHTTPCookieStorage1); + int get resultType { + return _lib._objc_msgSend_882(_id, _lib._sel_resultType1); + } + + void getRange(ffi.Pointer<_NSRange> stret) { + _lib._objc_msgSend_49(stret, _id, _lib._sel_range1); + } + + NSOrthography? get orthography { + final _ret = _lib._objc_msgSend_883(_id, _lib._sel_orthography1); return _ret.address == 0 ? null - : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + : NSOrthography._(_ret, _lib, retain: true, release: true); } - static NSHTTPCookieStorage sharedCookieStorageForGroupContainerIdentifier_( - SentryCocoa _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_782( - _lib._class_NSHTTPCookieStorage1, - _lib._sel_sharedCookieStorageForGroupContainerIdentifier_1, - identifier?._id ?? ffi.nullptr); - return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + NSArray? get grammarDetails { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_grammarDetails1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSArray? get cookies { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_cookies1); + NSDate? get date { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_date1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); + } + + NSTimeZone? get timeZone { + final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); + return _ret.address == 0 + ? null + : NSTimeZone._(_ret, _lib, retain: true, release: true); + } + + double get duration { + return _lib._objc_msgSend_155(_id, _lib._sel_duration1); + } + + NSDictionary? get components { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_components1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSURL? get URL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSString? get replacementString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_replacementString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray? get alternativeStrings { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_alternativeStrings1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - void setCookie_(NSHTTPCookie? cookie) { - _lib._objc_msgSend_785( - _id, _lib._sel_setCookie_1, cookie?._id ?? ffi.nullptr); + NSRegularExpression? get regularExpression { + final _ret = _lib._objc_msgSend_895(_id, _lib._sel_regularExpression1); + return _ret.address == 0 + ? null + : NSRegularExpression._(_ret, _lib, retain: true, release: true); } - void deleteCookie_(NSHTTPCookie? cookie) { - _lib._objc_msgSend_785( - _id, _lib._sel_deleteCookie_1, cookie?._id ?? ffi.nullptr); + NSString? get phoneNumber { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_phoneNumber1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void removeCookiesSinceDate_(NSDate? date) { - _lib._objc_msgSend_507( - _id, _lib._sel_removeCookiesSinceDate_1, date?._id ?? ffi.nullptr); + int get numberOfRanges { + return _lib._objc_msgSend_10(_id, _lib._sel_numberOfRanges1); } - NSArray cookiesForURL_(NSURL? URL) { - final _ret = _lib._objc_msgSend_124( - _id, _lib._sel_cookiesForURL_1, URL?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + void rangeAtIndex_(ffi.Pointer<_NSRange> stret, int idx) { + _lib._objc_msgSend_325(stret, _id, _lib._sel_rangeAtIndex_1, idx); } - void setCookies_forURL_mainDocumentURL_( - NSArray? cookies, NSURL? URL, NSURL? mainDocumentURL) { - _lib._objc_msgSend_786( - _id, - _lib._sel_setCookies_forURL_mainDocumentURL_1, - cookies?._id ?? ffi.nullptr, - URL?._id ?? ffi.nullptr, - mainDocumentURL?._id ?? ffi.nullptr); + void rangeWithName_(ffi.Pointer<_NSRange> stret, NSString? name) { + _lib._objc_msgSend_318( + stret, _id, _lib._sel_rangeWithName_1, name?._id ?? ffi.nullptr); } - int get cookieAcceptPolicy { - return _lib._objc_msgSend_787(_id, _lib._sel_cookieAcceptPolicy1); + NSTextCheckingResult resultByAdjustingRangesWithOffset_(int offset) { + final _ret = _lib._objc_msgSend_896( + _id, _lib._sel_resultByAdjustingRangesWithOffset_1, offset); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - set cookieAcceptPolicy(int value) { - return _lib._objc_msgSend_788( - _id, _lib._sel_setCookieAcceptPolicy_1, value); + NSDictionary? get addressComponents { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_addressComponents1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSArray sortedCookiesUsingDescriptors_(NSArray? sortOrder) { - final _ret = _lib._objc_msgSend_63( - _id, - _lib._sel_sortedCookiesUsingDescriptors_1, - sortOrder?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + static NSTextCheckingResult orthographyCheckingResultWithRange_orthography_( + SentryCocoa _lib, _NSRange range, NSOrthography? orthography) { + final _ret = _lib._objc_msgSend_897( + _lib._class_NSTextCheckingResult1, + _lib._sel_orthographyCheckingResultWithRange_orthography_1, + range, + orthography?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - void storeCookies_forTask_(NSArray? cookies, NSURLSessionTask? task) { - _lib._objc_msgSend_808(_id, _lib._sel_storeCookies_forTask_1, - cookies?._id ?? ffi.nullptr, task?._id ?? ffi.nullptr); + static NSTextCheckingResult spellCheckingResultWithRange_( + SentryCocoa _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_898(_lib._class_NSTextCheckingResult1, + _lib._sel_spellCheckingResultWithRange_1, range); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - void getCookiesForTask_completionHandler_( - NSURLSessionTask? task, ObjCBlock_ffiVoid_NSArray completionHandler) { - _lib._objc_msgSend_809(_id, _lib._sel_getCookiesForTask_completionHandler_1, - task?._id ?? ffi.nullptr, completionHandler._id); + static NSTextCheckingResult grammarCheckingResultWithRange_details_( + SentryCocoa _lib, _NSRange range, NSArray? details) { + final _ret = _lib._objc_msgSend_899( + _lib._class_NSTextCheckingResult1, + _lib._sel_grammarCheckingResultWithRange_details_1, + range, + details?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult dateCheckingResultWithRange_date_( + SentryCocoa _lib, _NSRange range, NSDate? date) { + final _ret = _lib._objc_msgSend_900( + _lib._class_NSTextCheckingResult1, + _lib._sel_dateCheckingResultWithRange_date_1, + range, + date?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult + dateCheckingResultWithRange_date_timeZone_duration_(SentryCocoa _lib, + _NSRange range, NSDate? date, NSTimeZone? timeZone, double duration) { + final _ret = _lib._objc_msgSend_901( + _lib._class_NSTextCheckingResult1, + _lib._sel_dateCheckingResultWithRange_date_timeZone_duration_1, + range, + date?._id ?? ffi.nullptr, + timeZone?._id ?? ffi.nullptr, + duration); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult addressCheckingResultWithRange_components_( + SentryCocoa _lib, _NSRange range, NSDictionary? components) { + final _ret = _lib._objc_msgSend_902( + _lib._class_NSTextCheckingResult1, + _lib._sel_addressCheckingResultWithRange_components_1, + range, + components?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult linkCheckingResultWithRange_URL_( + SentryCocoa _lib, _NSRange range, NSURL? url) { + final _ret = _lib._objc_msgSend_903( + _lib._class_NSTextCheckingResult1, + _lib._sel_linkCheckingResultWithRange_URL_1, + range, + url?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult quoteCheckingResultWithRange_replacementString_( + SentryCocoa _lib, _NSRange range, NSString? replacementString) { + final _ret = _lib._objc_msgSend_904( + _lib._class_NSTextCheckingResult1, + _lib._sel_quoteCheckingResultWithRange_replacementString_1, + range, + replacementString?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult dashCheckingResultWithRange_replacementString_( + SentryCocoa _lib, _NSRange range, NSString? replacementString) { + final _ret = _lib._objc_msgSend_904( + _lib._class_NSTextCheckingResult1, + _lib._sel_dashCheckingResultWithRange_replacementString_1, + range, + replacementString?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult + replacementCheckingResultWithRange_replacementString_( + SentryCocoa _lib, _NSRange range, NSString? replacementString) { + final _ret = _lib._objc_msgSend_904( + _lib._class_NSTextCheckingResult1, + _lib._sel_replacementCheckingResultWithRange_replacementString_1, + range, + replacementString?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult + correctionCheckingResultWithRange_replacementString_( + SentryCocoa _lib, _NSRange range, NSString? replacementString) { + final _ret = _lib._objc_msgSend_904( + _lib._class_NSTextCheckingResult1, + _lib._sel_correctionCheckingResultWithRange_replacementString_1, + range, + replacementString?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult + correctionCheckingResultWithRange_replacementString_alternativeStrings_( + SentryCocoa _lib, + _NSRange range, + NSString? replacementString, + NSArray? alternativeStrings) { + final _ret = _lib._objc_msgSend_905( + _lib._class_NSTextCheckingResult1, + _lib._sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_1, + range, + replacementString?._id ?? ffi.nullptr, + alternativeStrings?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult + regularExpressionCheckingResultWithRanges_count_regularExpression_( + SentryCocoa _lib, + ffi.Pointer<_NSRange> ranges, + int count, + NSRegularExpression? regularExpression) { + final _ret = _lib._objc_msgSend_906( + _lib._class_NSTextCheckingResult1, + _lib._sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1, + ranges, + count, + regularExpression?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult phoneNumberCheckingResultWithRange_phoneNumber_( + SentryCocoa _lib, _NSRange range, NSString? phoneNumber) { + final _ret = _lib._objc_msgSend_904( + _lib._class_NSTextCheckingResult1, + _lib._sel_phoneNumberCheckingResultWithRange_phoneNumber_1, + range, + phoneNumber?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult + transitInformationCheckingResultWithRange_components_( + SentryCocoa _lib, _NSRange range, NSDictionary? components) { + final _ret = _lib._objc_msgSend_902( + _lib._class_NSTextCheckingResult1, + _lib._sel_transitInformationCheckingResultWithRange_components_1, + range, + components?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } @override - NSHTTPCookieStorage init() { + NSTextCheckingResult init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - static NSHTTPCookieStorage new1(SentryCocoa _lib) { + static NSTextCheckingResult new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSHTTPCookieStorage1, _lib._sel_new1); - return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSTextCheckingResult1, _lib._sel_new1); + return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); } - static NSHTTPCookieStorage allocWithZone_( + static NSTextCheckingResult allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSHTTPCookieStorage1, _lib._sel_allocWithZone_1, zone); - return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); + _lib._class_NSTextCheckingResult1, _lib._sel_allocWithZone_1, zone); + return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); } - static NSHTTPCookieStorage alloc(SentryCocoa _lib) { + static NSTextCheckingResult alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSHTTPCookieStorage1, _lib._sel_alloc1); - return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); + _lib._class_NSTextCheckingResult1, _lib._sel_alloc1); + return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -58507,7 +66132,7 @@ class NSHTTPCookieStorage extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSHTTPCookieStorage1, + _lib._class_NSTextCheckingResult1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -58516,24 +66141,24 @@ class NSHTTPCookieStorage extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSHTTPCookieStorage1, + _lib._objc_msgSend_15(_lib._class_NSTextCheckingResult1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSHTTPCookieStorage1, + return _lib._objc_msgSend_12(_lib._class_NSTextCheckingResult1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSHTTPCookieStorage1, _lib._sel_useStoredAccessor1); + _lib._class_NSTextCheckingResult1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSHTTPCookieStorage1, + _lib._class_NSTextCheckingResult1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -58542,7 +66167,7 @@ class NSHTTPCookieStorage extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSHTTPCookieStorage1, + _lib._class_NSTextCheckingResult1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -58550,187 +66175,236 @@ class NSHTTPCookieStorage extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSHTTPCookieStorage1, + _lib._class_NSTextCheckingResult1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSHTTPCookieStorage1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSTextCheckingResult1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSHTTPCookieStorage1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSTextCheckingResult1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSHTTPCookie extends NSObject { - NSHTTPCookie._(ffi.Pointer id, SentryCocoa lib, +abstract class NSTextCheckingType { + static const int NSTextCheckingTypeOrthography = 1; + static const int NSTextCheckingTypeSpelling = 2; + static const int NSTextCheckingTypeGrammar = 4; + static const int NSTextCheckingTypeDate = 8; + static const int NSTextCheckingTypeAddress = 16; + static const int NSTextCheckingTypeLink = 32; + static const int NSTextCheckingTypeQuote = 64; + static const int NSTextCheckingTypeDash = 128; + static const int NSTextCheckingTypeReplacement = 256; + static const int NSTextCheckingTypeCorrection = 512; + static const int NSTextCheckingTypeRegularExpression = 1024; + static const int NSTextCheckingTypePhoneNumber = 2048; + static const int NSTextCheckingTypeTransitInformation = 4096; +} + +class NSRegularExpression extends NSObject { + NSRegularExpression._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSHTTPCookie] that points to the same underlying object as [other]. - static NSHTTPCookie castFrom(T other) { - return NSHTTPCookie._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSRegularExpression] that points to the same underlying object as [other]. + static NSRegularExpression castFrom(T other) { + return NSRegularExpression._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSHTTPCookie] that wraps the given raw object pointer. - static NSHTTPCookie castFromPointer( + /// Returns a [NSRegularExpression] that wraps the given raw object pointer. + static NSRegularExpression castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSHTTPCookie._(other, lib, retain: retain, release: release); + return NSRegularExpression._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSHTTPCookie]. + /// Returns whether [obj] is an instance of [NSRegularExpression]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSHTTPCookie1); - } - - NSHTTPCookie initWithProperties_(NSDictionary? properties) { - final _ret = _lib._objc_msgSend_149( - _id, _lib._sel_initWithProperties_1, properties?._id ?? ffi.nullptr); - return NSHTTPCookie._(_ret, _lib, retain: true, release: true); - } - - static NSHTTPCookie cookieWithProperties_( - SentryCocoa _lib, NSDictionary? properties) { - final _ret = _lib._objc_msgSend_783(_lib._class_NSHTTPCookie1, - _lib._sel_cookieWithProperties_1, properties?._id ?? ffi.nullptr); - return NSHTTPCookie._(_ret, _lib, retain: true, release: true); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSRegularExpression1); } - static NSDictionary requestHeaderFieldsWithCookies_( - SentryCocoa _lib, NSArray? cookies) { - final _ret = _lib._objc_msgSend_477( - _lib._class_NSHTTPCookie1, - _lib._sel_requestHeaderFieldsWithCookies_1, - cookies?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + static NSRegularExpression regularExpressionWithPattern_options_error_( + SentryCocoa _lib, + NSString? pattern, + int options, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_884( + _lib._class_NSRegularExpression1, + _lib._sel_regularExpressionWithPattern_options_error_1, + pattern?._id ?? ffi.nullptr, + options, + error); + return NSRegularExpression._(_ret, _lib, retain: true, release: true); } - static NSArray cookiesWithResponseHeaderFields_forURL_( - SentryCocoa _lib, NSDictionary? headerFields, NSURL? URL) { - final _ret = _lib._objc_msgSend_784( - _lib._class_NSHTTPCookie1, - _lib._sel_cookiesWithResponseHeaderFields_forURL_1, - headerFields?._id ?? ffi.nullptr, - URL?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + NSRegularExpression initWithPattern_options_error_(NSString? pattern, + int options, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_885( + _id, + _lib._sel_initWithPattern_options_error_1, + pattern?._id ?? ffi.nullptr, + options, + error); + return NSRegularExpression._(_ret, _lib, retain: true, release: true); } - NSDictionary? get properties { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_properties1); + NSString? get pattern { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pattern1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - int get version { - return _lib._objc_msgSend_10(_id, _lib._sel_version1); + : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int get options { + return _lib._objc_msgSend_886(_id, _lib._sel_options1); } - NSString? get value { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_value1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int get numberOfCaptureGroups { + return _lib._objc_msgSend_10(_id, _lib._sel_numberOfCaptureGroups1); } - NSDate? get expiresDate { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_expiresDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + static NSString escapedPatternForString_(SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSRegularExpression1, + _lib._sel_escapedPatternForString_1, string?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - bool get sessionOnly { - return _lib._objc_msgSend_12(_id, _lib._sel_isSessionOnly1); + void enumerateMatchesInString_options_range_usingBlock_( + NSString? string, + int options, + _NSRange range, + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool block) { + _lib._objc_msgSend_887( + _id, + _lib._sel_enumerateMatchesInString_options_range_usingBlock_1, + string?._id ?? ffi.nullptr, + options, + range, + block._id); } - NSString? get domain { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_domain1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSArray matchesInString_options_range_( + NSString? string, int options, _NSRange range) { + final _ret = _lib._objc_msgSend_888( + _id, + _lib._sel_matchesInString_options_range_1, + string?._id ?? ffi.nullptr, + options, + range); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get path { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_path1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int numberOfMatchesInString_options_range_( + NSString? string, int options, _NSRange range) { + return _lib._objc_msgSend_889( + _id, + _lib._sel_numberOfMatchesInString_options_range_1, + string?._id ?? ffi.nullptr, + options, + range); } - bool get secure { - return _lib._objc_msgSend_12(_id, _lib._sel_isSecure1); + NSTextCheckingResult firstMatchInString_options_range_( + NSString? string, int options, _NSRange range) { + final _ret = _lib._objc_msgSend_890( + _id, + _lib._sel_firstMatchInString_options_range_1, + string?._id ?? ffi.nullptr, + options, + range); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - bool get HTTPOnly { - return _lib._objc_msgSend_12(_id, _lib._sel_isHTTPOnly1); + void rangeOfFirstMatchInString_options_range_(ffi.Pointer<_NSRange> stret, + NSString? string, int options, _NSRange range) { + _lib._objc_msgSend_891( + stret, + _id, + _lib._sel_rangeOfFirstMatchInString_options_range_1, + string?._id ?? ffi.nullptr, + options, + range); } - NSString? get comment { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_comment1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSString stringByReplacingMatchesInString_options_range_withTemplate_( + NSString? string, int options, _NSRange range, NSString? templ) { + final _ret = _lib._objc_msgSend_892( + _id, + _lib._sel_stringByReplacingMatchesInString_options_range_withTemplate_1, + string?._id ?? ffi.nullptr, + options, + range, + templ?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - NSURL? get commentURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_commentURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + int replaceMatchesInString_options_range_withTemplate_( + NSMutableString? string, int options, _NSRange range, NSString? templ) { + return _lib._objc_msgSend_893( + _id, + _lib._sel_replaceMatchesInString_options_range_withTemplate_1, + string?._id ?? ffi.nullptr, + options, + range, + templ?._id ?? ffi.nullptr); } - NSArray? get portList { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_portList1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSString replacementStringForResult_inString_offset_template_( + NSTextCheckingResult? result, + NSString? string, + int offset, + NSString? templ) { + final _ret = _lib._objc_msgSend_894( + _id, + _lib._sel_replacementStringForResult_inString_offset_template_1, + result?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr, + offset, + templ?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString get sameSitePolicy { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sameSitePolicy1); + static NSString escapedTemplateForString_( + SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSRegularExpression1, + _lib._sel_escapedTemplateForString_1, string?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } @override - NSHTTPCookie init() { + NSRegularExpression init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSHTTPCookie._(_ret, _lib, retain: true, release: true); + return NSRegularExpression._(_ret, _lib, retain: true, release: true); } - static NSHTTPCookie new1(SentryCocoa _lib) { + static NSRegularExpression new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSHTTPCookie1, _lib._sel_new1); - return NSHTTPCookie._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSRegularExpression1, _lib._sel_new1); + return NSRegularExpression._(_ret, _lib, retain: false, release: true); } - static NSHTTPCookie allocWithZone_( + static NSRegularExpression allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSHTTPCookie1, _lib._sel_allocWithZone_1, zone); - return NSHTTPCookie._(_ret, _lib, retain: false, release: true); + _lib._class_NSRegularExpression1, _lib._sel_allocWithZone_1, zone); + return NSRegularExpression._(_ret, _lib, retain: false, release: true); } - static NSHTTPCookie alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSHTTPCookie1, _lib._sel_alloc1); - return NSHTTPCookie._(_ret, _lib, retain: false, release: true); + static NSRegularExpression alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSRegularExpression1, _lib._sel_alloc1); + return NSRegularExpression._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -58739,7 +66413,7 @@ class NSHTTPCookie extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSHTTPCookie1, + _lib._class_NSRegularExpression1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -58748,24 +66422,24 @@ class NSHTTPCookie extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSHTTPCookie1, + _lib._objc_msgSend_15(_lib._class_NSRegularExpression1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSHTTPCookie1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSRegularExpression1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSHTTPCookie1, _lib._sel_useStoredAccessor1); + _lib._class_NSRegularExpression1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSHTTPCookie1, + _lib._class_NSRegularExpression1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -58774,7 +66448,7 @@ class NSHTTPCookie extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSHTTPCookie1, + _lib._class_NSRegularExpression1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -58782,223 +66456,311 @@ class NSHTTPCookie extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSHTTPCookie1, + _lib._class_NSRegularExpression1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSHTTPCookie1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSRegularExpression1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSHTTPCookie1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSRegularExpression1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSHTTPCookieAcceptPolicy { - static const int NSHTTPCookieAcceptPolicyAlways = 0; - static const int NSHTTPCookieAcceptPolicyNever = 1; - static const int NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain = 2; +abstract class NSRegularExpressionOptions { + static const int NSRegularExpressionCaseInsensitive = 1; + static const int NSRegularExpressionAllowCommentsAndWhitespace = 2; + static const int NSRegularExpressionIgnoreMetacharacters = 4; + static const int NSRegularExpressionDotMatchesLineSeparators = 8; + static const int NSRegularExpressionAnchorsMatchLines = 16; + static const int NSRegularExpressionUseUnixLineSeparators = 32; + static const int NSRegularExpressionUseUnicodeWordBoundaries = 64; } -class NSURLSessionTask extends NSObject { - NSURLSessionTask._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [NSURLSessionTask] that points to the same underlying object as [other]. - static NSURLSessionTask castFrom(T other) { - return NSURLSessionTask._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [NSURLSessionTask] that wraps the given raw object pointer. - static NSURLSessionTask castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLSessionTask._(other, lib, retain: retain, release: release); - } +abstract class NSMatchingOptions { + static const int NSMatchingReportProgress = 1; + static const int NSMatchingReportCompletion = 2; + static const int NSMatchingAnchored = 4; + static const int NSMatchingWithTransparentBounds = 8; + static const int NSMatchingWithoutAnchoringBounds = 16; +} - /// Returns whether [obj] is an instance of [NSURLSessionTask]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionTask1); - } +void + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, ffi.Int32 arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function(ffi.Pointer arg0, int arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} - int get taskIdentifier { - return _lib._objc_msgSend_10(_id, _lib._sel_taskIdentifier1); - } +final _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_registerClosure( + Function fn) { + final id = + ++_ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry[ + id] = fn; + return ffi.Pointer.fromAddress(id); +} - NSURLRequest? get originalRequest { - final _ret = _lib._objc_msgSend_803(_id, _lib._sel_originalRequest1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); - } +void + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, int, + ffi.Pointer))(arg0, arg1, arg2); +} - NSURLRequest? get currentRequest { - final _ret = _lib._objc_msgSend_803(_id, _lib._sel_currentRequest1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); - NSURLResponse? get response { - final _ret = _lib._objc_msgSend_805(_id, _lib._sel_response1); - return _ret.address == 0 - ? null - : NSURLResponse._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Int32 arg1, ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Int32 arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool.fromFunction( + SentryCocoa lib, + void Function(ffi.Pointer arg0, int arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Int32 arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_registerClosure( + fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call( + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Int32 arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + int arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); } +} - set delegate(NSObject? value) { - return _lib._objc_msgSend_389( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); - } +abstract class NSMatchingFlags { + static const int NSMatchingProgress = 1; + static const int NSMatchingCompleted = 2; + static const int NSMatchingHitEnd = 4; + static const int NSMatchingRequiredEnd = 8; + static const int NSMatchingInternalError = 16; +} - NSProgress? get progress { - final _ret = _lib._objc_msgSend_612(_id, _lib._sel_progress1); - return _ret.address == 0 - ? null - : NSProgress._(_ret, _lib, retain: true, release: true); - } +class NSURLCache extends NSObject { + NSURLCache._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - NSDate? get earliestBeginDate { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_earliestBeginDate1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); + /// Returns a [NSURLCache] that points to the same underlying object as [other]. + static NSURLCache castFrom(T other) { + return NSURLCache._(other._id, other._lib, retain: true, release: true); } - set earliestBeginDate(NSDate? value) { - return _lib._objc_msgSend_528( - _id, _lib._sel_setEarliestBeginDate_1, value?._id ?? ffi.nullptr); + /// Returns a [NSURLCache] that wraps the given raw object pointer. + static NSURLCache castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLCache._(other, lib, retain: retain, release: release); } - int get countOfBytesClientExpectsToSend { - return _lib._objc_msgSend_619( - _id, _lib._sel_countOfBytesClientExpectsToSend1); + /// Returns whether [obj] is an instance of [NSURLCache]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLCache1); } - set countOfBytesClientExpectsToSend(int value) { - return _lib._objc_msgSend_620( - _id, _lib._sel_setCountOfBytesClientExpectsToSend_1, value); + static NSURLCache? getSharedURLCache(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_907( + _lib._class_NSURLCache1, _lib._sel_sharedURLCache1); + return _ret.address == 0 + ? null + : NSURLCache._(_ret, _lib, retain: true, release: true); } - int get countOfBytesClientExpectsToReceive { - return _lib._objc_msgSend_619( - _id, _lib._sel_countOfBytesClientExpectsToReceive1); + static void setSharedURLCache(SentryCocoa _lib, NSURLCache? value) { + return _lib._objc_msgSend_908(_lib._class_NSURLCache1, + _lib._sel_setSharedURLCache_1, value?._id ?? ffi.nullptr); } - set countOfBytesClientExpectsToReceive(int value) { - return _lib._objc_msgSend_620( - _id, _lib._sel_setCountOfBytesClientExpectsToReceive_1, value); + NSURLCache initWithMemoryCapacity_diskCapacity_diskPath_( + int memoryCapacity, int diskCapacity, NSString? path) { + final _ret = _lib._objc_msgSend_909( + _id, + _lib._sel_initWithMemoryCapacity_diskCapacity_diskPath_1, + memoryCapacity, + diskCapacity, + path?._id ?? ffi.nullptr); + return NSURLCache._(_ret, _lib, retain: true, release: true); } - int get countOfBytesSent { - return _lib._objc_msgSend_619(_id, _lib._sel_countOfBytesSent1); + NSURLCache initWithMemoryCapacity_diskCapacity_directoryURL_( + int memoryCapacity, int diskCapacity, NSURL? directoryURL) { + final _ret = _lib._objc_msgSend_910( + _id, + _lib._sel_initWithMemoryCapacity_diskCapacity_directoryURL_1, + memoryCapacity, + diskCapacity, + directoryURL?._id ?? ffi.nullptr); + return NSURLCache._(_ret, _lib, retain: true, release: true); } - int get countOfBytesReceived { - return _lib._objc_msgSend_619(_id, _lib._sel_countOfBytesReceived1); + NSCachedURLResponse cachedResponseForRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_914( + _id, _lib._sel_cachedResponseForRequest_1, request?._id ?? ffi.nullptr); + return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - int get countOfBytesExpectedToSend { - return _lib._objc_msgSend_619(_id, _lib._sel_countOfBytesExpectedToSend1); + void storeCachedResponse_forRequest_( + NSCachedURLResponse? cachedResponse, NSURLRequest? request) { + _lib._objc_msgSend_915(_id, _lib._sel_storeCachedResponse_forRequest_1, + cachedResponse?._id ?? ffi.nullptr, request?._id ?? ffi.nullptr); } - int get countOfBytesExpectedToReceive { - return _lib._objc_msgSend_619( - _id, _lib._sel_countOfBytesExpectedToReceive1); + void removeCachedResponseForRequest_(NSURLRequest? request) { + _lib._objc_msgSend_916(_id, _lib._sel_removeCachedResponseForRequest_1, + request?._id ?? ffi.nullptr); } - NSString? get taskDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_taskDescription1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void removeAllCachedResponses() { + _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResponses1); } - set taskDescription(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setTaskDescription_1, value?._id ?? ffi.nullptr); + void removeCachedResponsesSinceDate_(NSDate? date) { + _lib._objc_msgSend_520(_id, _lib._sel_removeCachedResponsesSinceDate_1, + date?._id ?? ffi.nullptr); } - void cancel() { - _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + int get memoryCapacity { + return _lib._objc_msgSend_10(_id, _lib._sel_memoryCapacity1); } - int get state { - return _lib._objc_msgSend_806(_id, _lib._sel_state1); + set memoryCapacity(int value) { + return _lib._objc_msgSend_500(_id, _lib._sel_setMemoryCapacity_1, value); } - NSError? get error { - final _ret = _lib._objc_msgSend_300(_id, _lib._sel_error1); - return _ret.address == 0 - ? null - : NSError._(_ret, _lib, retain: true, release: true); + int get diskCapacity { + return _lib._objc_msgSend_10(_id, _lib._sel_diskCapacity1); } - void suspend() { - _lib._objc_msgSend_1(_id, _lib._sel_suspend1); + set diskCapacity(int value) { + return _lib._objc_msgSend_500(_id, _lib._sel_setDiskCapacity_1, value); } - void resume() { - _lib._objc_msgSend_1(_id, _lib._sel_resume1); + int get currentMemoryUsage { + return _lib._objc_msgSend_10(_id, _lib._sel_currentMemoryUsage1); } - double get priority { - return _lib._objc_msgSend_221(_id, _lib._sel_priority1); + int get currentDiskUsage { + return _lib._objc_msgSend_10(_id, _lib._sel_currentDiskUsage1); } - set priority(double value) { - return _lib._objc_msgSend_807(_id, _lib._sel_setPriority_1, value); + void storeCachedResponse_forDataTask_( + NSCachedURLResponse? cachedResponse, NSURLSessionDataTask? dataTask) { + _lib._objc_msgSend_917(_id, _lib._sel_storeCachedResponse_forDataTask_1, + cachedResponse?._id ?? ffi.nullptr, dataTask?._id ?? ffi.nullptr); } - bool get prefersIncrementalDelivery { - return _lib._objc_msgSend_12(_id, _lib._sel_prefersIncrementalDelivery1); + void getCachedResponseForDataTask_completionHandler_( + NSURLSessionDataTask? dataTask, + ObjCBlock_ffiVoid_NSCachedURLResponse completionHandler) { + _lib._objc_msgSend_918( + _id, + _lib._sel_getCachedResponseForDataTask_completionHandler_1, + dataTask?._id ?? ffi.nullptr, + completionHandler._id); } - set prefersIncrementalDelivery(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setPrefersIncrementalDelivery_1, value); + void removeCachedResponseForDataTask_(NSURLSessionDataTask? dataTask) { + _lib._objc_msgSend_919(_id, _lib._sel_removeCachedResponseForDataTask_1, + dataTask?._id ?? ffi.nullptr); } @override - NSURLSessionTask init() { + NSURLCache init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionTask._(_ret, _lib, retain: true, release: true); + return NSURLCache._(_ret, _lib, retain: true, release: true); } - static NSURLSessionTask new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_new1); - return NSURLSessionTask._(_ret, _lib, retain: false, release: true); + static NSURLCache new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_new1); + return NSURLCache._(_ret, _lib, retain: false, release: true); } - static NSURLSessionTask allocWithZone_( + static NSURLCache allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSURLSessionTask1, _lib._sel_allocWithZone_1, zone); - return NSURLSessionTask._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLCache1, _lib._sel_allocWithZone_1, zone); + return NSURLCache._(_ret, _lib, retain: false, release: true); } - static NSURLSessionTask alloc(SentryCocoa _lib) { + static NSURLCache alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_alloc1); - return NSURLSessionTask._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_alloc1); + return NSURLCache._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -59007,7 +66769,7 @@ class NSURLSessionTask extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLSessionTask1, + _lib._class_NSURLCache1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -59016,24 +66778,24 @@ class NSURLSessionTask extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionTask1, + _lib._objc_msgSend_15(_lib._class_NSURLCache1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionTask1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSURLCache1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSessionTask1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLCache1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionTask1, + _lib._class_NSURLCache1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -59042,7 +66804,7 @@ class NSURLSessionTask extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSessionTask1, + _lib._class_NSURLCache1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -59050,215 +66812,119 @@ class NSURLSessionTask extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLSessionTask1, + _lib._class_NSURLCache1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionTask1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURLCache1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionTask1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLCache1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSURLRequest extends NSObject { - NSURLRequest._(ffi.Pointer id, SentryCocoa lib, +class NSCachedURLResponse extends NSObject { + NSCachedURLResponse._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLRequest] that points to the same underlying object as [other]. - static NSURLRequest castFrom(T other) { - return NSURLRequest._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSCachedURLResponse] that points to the same underlying object as [other]. + static NSCachedURLResponse castFrom(T other) { + return NSCachedURLResponse._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSURLRequest] that wraps the given raw object pointer. - static NSURLRequest castFromPointer( + /// Returns a [NSCachedURLResponse] that wraps the given raw object pointer. + static NSCachedURLResponse castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLRequest._(other, lib, retain: retain, release: release); + return NSCachedURLResponse._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLRequest]. + /// Returns whether [obj] is an instance of [NSCachedURLResponse]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLRequest1); - } - - static NSURLRequest requestWithURL_(SentryCocoa _lib, NSURL? URL) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSURLRequest1, - _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); - return NSURLRequest._(_ret, _lib, retain: true, release: true); - } - - static bool getSupportsSecureCoding(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLRequest1, _lib._sel_supportsSecureCoding1); - } - - static NSURLRequest requestWithURL_cachePolicy_timeoutInterval_( - SentryCocoa _lib, NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_789( - _lib._class_NSURLRequest1, - _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSURLRequest._(_ret, _lib, retain: true, release: true); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSCachedURLResponse1); } - NSURLRequest initWithURL_(NSURL? URL) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithURL_1, URL?._id ?? ffi.nullptr); - return NSURLRequest._(_ret, _lib, retain: true, release: true); + NSCachedURLResponse initWithResponse_data_( + NSURLResponse? response, NSData? data) { + final _ret = _lib._objc_msgSend_911(_id, _lib._sel_initWithResponse_data_1, + response?._id ?? ffi.nullptr, data?._id ?? ffi.nullptr); + return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - NSURLRequest initWithURL_cachePolicy_timeoutInterval_( - NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_789( + NSCachedURLResponse initWithResponse_data_userInfo_storagePolicy_( + NSURLResponse? response, + NSData? data, + NSDictionary? userInfo, + int storagePolicy) { + final _ret = _lib._objc_msgSend_912( _id, - _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSURLRequest._(_ret, _lib, retain: true, release: true); - } - - NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - int get cachePolicy { - return _lib._objc_msgSend_790(_id, _lib._sel_cachePolicy1); - } - - double get timeoutInterval { - return _lib._objc_msgSend_155(_id, _lib._sel_timeoutInterval1); - } - - NSURL? get mainDocumentURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_mainDocumentURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - int get networkServiceType { - return _lib._objc_msgSend_791(_id, _lib._sel_networkServiceType1); - } - - bool get allowsCellularAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); - } - - bool get allowsExpensiveNetworkAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); - } - - bool get allowsConstrainedNetworkAccess { - return _lib._objc_msgSend_12( - _id, _lib._sel_allowsConstrainedNetworkAccess1); - } - - bool get assumesHTTP3Capable { - return _lib._objc_msgSend_12(_id, _lib._sel_assumesHTTP3Capable1); - } - - int get attribution { - return _lib._objc_msgSend_792(_id, _lib._sel_attribution1); - } - - bool get requiresDNSSECValidation { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); - } - - bool get allowsPersistentDNS { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsPersistentDNS1); - } - - NSString? get cookiePartitionIdentifier { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_cookiePartitionIdentifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString? get HTTPMethod { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_HTTPMethod1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithResponse_data_userInfo_storagePolicy_1, + response?._id ?? ffi.nullptr, + data?._id ?? ffi.nullptr, + userInfo?._id ?? ffi.nullptr, + storagePolicy); + return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - NSDictionary? get allHTTPHeaderFields { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allHTTPHeaderFields1); + NSURLResponse? get response { + final _ret = _lib._objc_msgSend_817(_id, _lib._sel_response1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSString valueForHTTPHeaderField_(NSString? field) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_valueForHTTPHeaderField_1, field?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + : NSURLResponse._(_ret, _lib, retain: true, release: true); } - NSData? get HTTPBody { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_HTTPBody1); + NSData? get data { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); return _ret.address == 0 ? null : NSData._(_ret, _lib, retain: true, release: true); } - NSInputStream? get HTTPBodyStream { - final _ret = _lib._objc_msgSend_802(_id, _lib._sel_HTTPBodyStream1); + NSDictionary? get userInfo { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); return _ret.address == 0 ? null - : NSInputStream._(_ret, _lib, retain: true, release: true); - } - - bool get HTTPShouldHandleCookies { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldHandleCookies1); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - bool get HTTPShouldUsePipelining { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + int get storagePolicy { + return _lib._objc_msgSend_913(_id, _lib._sel_storagePolicy1); } @override - NSURLRequest init() { + NSCachedURLResponse init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLRequest._(_ret, _lib, retain: true, release: true); + return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - static NSURLRequest new1(SentryCocoa _lib) { + static NSCachedURLResponse new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_new1); - return NSURLRequest._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSCachedURLResponse1, _lib._sel_new1); + return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); } - static NSURLRequest allocWithZone_( + static NSCachedURLResponse allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSURLRequest1, _lib._sel_allocWithZone_1, zone); - return NSURLRequest._(_ret, _lib, retain: false, release: true); + _lib._class_NSCachedURLResponse1, _lib._sel_allocWithZone_1, zone); + return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); } - static NSURLRequest alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_alloc1); - return NSURLRequest._(_ret, _lib, retain: false, release: true); + static NSCachedURLResponse alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSCachedURLResponse1, _lib._sel_alloc1); + return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -59267,7 +66933,7 @@ class NSURLRequest extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLRequest1, + _lib._class_NSCachedURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -59276,24 +66942,24 @@ class NSURLRequest extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLRequest1, + _lib._objc_msgSend_15(_lib._class_NSCachedURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLRequest1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSCachedURLResponse1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLRequest1, _lib._sel_useStoredAccessor1); + _lib._class_NSCachedURLResponse1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLRequest1, + _lib._class_NSCachedURLResponse1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -59302,7 +66968,7 @@ class NSURLRequest extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLRequest1, + _lib._class_NSCachedURLResponse1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -59310,192 +66976,78 @@ class NSURLRequest extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLRequest1, + _lib._class_NSCachedURLResponse1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLRequest1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSCachedURLResponse1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLRequest1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSCachedURLResponse1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSURLRequestCachePolicy { - static const int NSURLRequestUseProtocolCachePolicy = 0; - static const int NSURLRequestReloadIgnoringLocalCacheData = 1; - static const int NSURLRequestReloadIgnoringLocalAndRemoteCacheData = 4; - static const int NSURLRequestReloadIgnoringCacheData = 1; - static const int NSURLRequestReturnCacheDataElseLoad = 2; - static const int NSURLRequestReturnCacheDataDontLoad = 3; - static const int NSURLRequestReloadRevalidatingCacheData = 5; -} - -abstract class NSURLRequestNetworkServiceType { - static const int NSURLNetworkServiceTypeDefault = 0; - static const int NSURLNetworkServiceTypeVoIP = 1; - static const int NSURLNetworkServiceTypeVideo = 2; - static const int NSURLNetworkServiceTypeBackground = 3; - static const int NSURLNetworkServiceTypeVoice = 4; - static const int NSURLNetworkServiceTypeResponsiveData = 6; - static const int NSURLNetworkServiceTypeAVStreaming = 8; - static const int NSURLNetworkServiceTypeResponsiveAV = 9; - static const int NSURLNetworkServiceTypeCallSignaling = 11; -} - -abstract class NSURLRequestAttribution { - static const int NSURLRequestAttributionDeveloper = 0; - static const int NSURLRequestAttributionUser = 1; +abstract class NSURLCacheStoragePolicy { + static const int NSURLCacheStorageAllowed = 0; + static const int NSURLCacheStorageAllowedInMemoryOnly = 1; + static const int NSURLCacheStorageNotAllowed = 2; } -class NSInputStream extends NSStream { - NSInputStream._(ffi.Pointer id, SentryCocoa lib, +class NSURLSessionDataTask extends NSURLSessionTask { + NSURLSessionDataTask._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSInputStream] that points to the same underlying object as [other]. - static NSInputStream castFrom(T other) { - return NSInputStream._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSURLSessionDataTask] that points to the same underlying object as [other]. + static NSURLSessionDataTask castFrom(T other) { + return NSURLSessionDataTask._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSInputStream] that wraps the given raw object pointer. - static NSInputStream castFromPointer( + /// Returns a [NSURLSessionDataTask] that wraps the given raw object pointer. + static NSURLSessionDataTask castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSInputStream._(other, lib, retain: retain, release: release); + return NSURLSessionDataTask._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSInputStream]. + /// Returns whether [obj] is an instance of [NSURLSessionDataTask]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSInputStream1); - } - - int read_maxLength_(ffi.Pointer buffer, int len) { - return _lib._objc_msgSend_794(_id, _lib._sel_read_maxLength_1, buffer, len); - } - - bool getBuffer_length_(ffi.Pointer> buffer, - ffi.Pointer len) { - return _lib._objc_msgSend_801( - _id, _lib._sel_getBuffer_length_1, buffer, len); - } - - bool get hasBytesAvailable { - return _lib._objc_msgSend_12(_id, _lib._sel_hasBytesAvailable1); - } - - NSInputStream initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_257( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); - } - - NSInputStream initWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithURL_1, url?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); - } - - NSInputStream initWithFileAtPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithFileAtPath_1, path?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); - } - - static NSInputStream inputStreamWithData_(SentryCocoa _lib, NSData? data) { - final _ret = _lib._objc_msgSend_257(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithData_1, data?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); - } - - static NSInputStream inputStreamWithFileAtPath_( - SentryCocoa _lib, NSString? path) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithFileAtPath_1, path?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); - } - - static NSInputStream inputStreamWithURL_(SentryCocoa _lib, NSURL? url) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSInputStream1, - _lib._sel_inputStreamWithURL_1, url?._id ?? ffi.nullptr); - return NSInputStream._(_ret, _lib, retain: true, release: true); - } - - static void getStreamsToHostWithName_port_inputStream_outputStream_( - SentryCocoa _lib, - NSString? hostname, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - _lib._objc_msgSend_796( - _lib._class_NSInputStream1, - _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); - } - - static void getStreamsToHost_port_inputStream_outputStream_( - SentryCocoa _lib, - NSHost? host, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - _lib._objc_msgSend_799( - _lib._class_NSInputStream1, - _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); - } - - static void getBoundStreamsWithBufferSize_inputStream_outputStream_( - SentryCocoa _lib, - int bufferSize, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - _lib._objc_msgSend_800( - _lib._class_NSInputStream1, - _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, - bufferSize, - inputStream, - outputStream); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLSessionDataTask1); } @override - NSInputStream init() { + NSURLSessionDataTask init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSInputStream._(_ret, _lib, retain: true, release: true); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - static NSInputStream new1(SentryCocoa _lib) { + static NSURLSessionDataTask new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_new1); - return NSInputStream._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLSessionDataTask1, _lib._sel_new1); + return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); } - static NSInputStream allocWithZone_( + static NSURLSessionDataTask allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSInputStream1, _lib._sel_allocWithZone_1, zone); - return NSInputStream._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLSessionDataTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); } - static NSInputStream alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_alloc1); - return NSInputStream._(_ret, _lib, retain: false, release: true); + static NSURLSessionDataTask alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionDataTask1, _lib._sel_alloc1); + return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -59504,7 +67056,7 @@ class NSInputStream extends NSStream { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSInputStream1, + _lib._class_NSURLSessionDataTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -59513,24 +67065,24 @@ class NSInputStream extends NSStream { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSInputStream1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionDataTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSInputStream1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSURLSessionDataTask1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSInputStream1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionDataTask1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSInputStream1, + _lib._class_NSURLSessionDataTask1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -59539,7 +67091,7 @@ class NSInputStream extends NSStream { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSInputStream1, + _lib._class_NSURLSessionDataTask1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -59547,163 +67099,244 @@ class NSInputStream extends NSStream { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSInputStream1, + _lib._class_NSURLSessionDataTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSInputStream1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionDataTask1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSInputStream1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLSessionDataTask1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSStream extends NSObject { - NSStream._(ffi.Pointer id, SentryCocoa lib, +void _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSCachedURLResponse_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry[block + .ref.target.address] as void Function(ffi.Pointer))(arg0); +} + +class ObjCBlock_ffiVoid_NSCachedURLResponse extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSCachedURLResponse._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSCachedURLResponse.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSCachedURLResponse.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSCachedURLResponse_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); + } +} + +class NSURLConnection extends NSObject { + NSURLConnection._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSStream] that points to the same underlying object as [other]. - static NSStream castFrom(T other) { - return NSStream._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSURLConnection] that points to the same underlying object as [other]. + static NSURLConnection castFrom(T other) { + return NSURLConnection._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSStream] that wraps the given raw object pointer. - static NSStream castFromPointer( + /// Returns a [NSURLConnection] that wraps the given raw object pointer. + static NSURLConnection castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSStream._(other, lib, retain: retain, release: release); + return NSURLConnection._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSStream]. + /// Returns whether [obj] is an instance of [NSURLConnection]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSStream1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLConnection1); } - void open() { - _lib._objc_msgSend_1(_id, _lib._sel_open1); + NSURLConnection initWithRequest_delegate_startImmediately_( + NSURLRequest? request, NSObject delegate, bool startImmediately) { + final _ret = _lib._objc_msgSend_920( + _id, + _lib._sel_initWithRequest_delegate_startImmediately_1, + request?._id ?? ffi.nullptr, + delegate._id, + startImmediately); + return NSURLConnection._(_ret, _lib, retain: true, release: true); } - void close() { - _lib._objc_msgSend_1(_id, _lib._sel_close1); + NSURLConnection initWithRequest_delegate_( + NSURLRequest? request, NSObject delegate) { + final _ret = _lib._objc_msgSend_921( + _id, + _lib._sel_initWithRequest_delegate_1, + request?._id ?? ffi.nullptr, + delegate._id); + return NSURLConnection._(_ret, _lib, retain: true, release: true); } - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + static NSURLConnection connectionWithRequest_delegate_( + SentryCocoa _lib, NSURLRequest? request, NSObject delegate) { + final _ret = _lib._objc_msgSend_922( + _lib._class_NSURLConnection1, + _lib._sel_connectionWithRequest_delegate_1, + request?._id ?? ffi.nullptr, + delegate._id); + return NSURLConnection._(_ret, _lib, retain: true, release: true); + } + + NSURLRequest? get originalRequest { + final _ret = _lib._objc_msgSend_815(_id, _lib._sel_originalRequest1); return _ret.address == 0 ? null - : NSObject._(_ret, _lib, retain: true, release: true); + : NSURLRequest._(_ret, _lib, retain: true, release: true); } - set delegate(NSObject? value) { - return _lib._objc_msgSend_389( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + NSURLRequest? get currentRequest { + final _ret = _lib._objc_msgSend_815(_id, _lib._sel_currentRequest1); + return _ret.address == 0 + ? null + : NSURLRequest._(_ret, _lib, retain: true, release: true); } - NSObject propertyForKey_(NSString key) { - final _ret = - _lib._objc_msgSend_30(_id, _lib._sel_propertyForKey_1, key._id); - return NSObject._(_ret, _lib, retain: true, release: true); + void start() { + _lib._objc_msgSend_1(_id, _lib._sel_start1); } - bool setProperty_forKey_(NSObject property, NSString key) { - return _lib._objc_msgSend_240( - _id, _lib._sel_setProperty_forKey_1, property._id, key._id); + void cancel() { + _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - _lib._objc_msgSend_536(_id, _lib._sel_scheduleInRunLoop_forMode_1, + _lib._objc_msgSend_548(_id, _lib._sel_scheduleInRunLoop_forMode_1, aRunLoop?._id ?? ffi.nullptr, mode._id); } - void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - _lib._objc_msgSend_536(_id, _lib._sel_removeFromRunLoop_forMode_1, + void unscheduleFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + _lib._objc_msgSend_548(_id, _lib._sel_unscheduleFromRunLoop_forMode_1, aRunLoop?._id ?? ffi.nullptr, mode._id); } - int get streamStatus { - return _lib._objc_msgSend_793(_id, _lib._sel_streamStatus1); - } - - NSError? get streamError { - final _ret = _lib._objc_msgSend_300(_id, _lib._sel_streamError1); - return _ret.address == 0 - ? null - : NSError._(_ret, _lib, retain: true, release: true); + void setDelegateQueue_(NSOperationQueue? queue) { + _lib._objc_msgSend_923( + _id, _lib._sel_setDelegateQueue_1, queue?._id ?? ffi.nullptr); } - static void getStreamsToHostWithName_port_inputStream_outputStream_( - SentryCocoa _lib, - NSString? hostname, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - _lib._objc_msgSend_796( - _lib._class_NSStream1, - _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); + static bool canHandleRequest_(SentryCocoa _lib, NSURLRequest? request) { + return _lib._objc_msgSend_924(_lib._class_NSURLConnection1, + _lib._sel_canHandleRequest_1, request?._id ?? ffi.nullptr); } - static void getStreamsToHost_port_inputStream_outputStream_( + static NSData sendSynchronousRequest_returningResponse_error_( SentryCocoa _lib, - NSHost? host, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - _lib._objc_msgSend_799( - _lib._class_NSStream1, - _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); + NSURLRequest? request, + ffi.Pointer> response, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_925( + _lib._class_NSURLConnection1, + _lib._sel_sendSynchronousRequest_returningResponse_error_1, + request?._id ?? ffi.nullptr, + response, + error); + return NSData._(_ret, _lib, retain: true, release: true); } - static void getBoundStreamsWithBufferSize_inputStream_outputStream_( + static void sendAsynchronousRequest_queue_completionHandler_( SentryCocoa _lib, - int bufferSize, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - _lib._objc_msgSend_800( - _lib._class_NSStream1, - _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, - bufferSize, - inputStream, - outputStream); + NSURLRequest? request, + NSOperationQueue? queue, + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError handler) { + _lib._objc_msgSend_926( + _lib._class_NSURLConnection1, + _lib._sel_sendAsynchronousRequest_queue_completionHandler_1, + request?._id ?? ffi.nullptr, + queue?._id ?? ffi.nullptr, + handler._id); } @override - NSStream init() { + NSURLConnection init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSStream._(_ret, _lib, retain: true, release: true); + return NSURLConnection._(_ret, _lib, retain: true, release: true); } - static NSStream new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_new1); - return NSStream._(_ret, _lib, retain: false, release: true); + static NSURLConnection new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_new1); + return NSURLConnection._(_ret, _lib, retain: false, release: true); } - static NSStream allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSURLConnection allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSStream1, _lib._sel_allocWithZone_1, zone); - return NSStream._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLConnection1, _lib._sel_allocWithZone_1, zone); + return NSURLConnection._(_ret, _lib, retain: false, release: true); } - static NSStream alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSStream1, _lib._sel_alloc1); - return NSStream._(_ret, _lib, retain: false, release: true); + static NSURLConnection alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_alloc1); + return NSURLConnection._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -59712,7 +67345,7 @@ class NSStream extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSStream1, + _lib._class_NSURLConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -59721,24 +67354,24 @@ class NSStream extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSStream1, + _lib._objc_msgSend_15(_lib._class_NSURLConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSStream1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSURLConnection1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSStream1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLConnection1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSStream1, + _lib._class_NSURLConnection1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -59747,7 +67380,7 @@ class NSStream extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSStream1, + _lib._class_NSURLConnection1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -59755,191 +67388,276 @@ class NSStream extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSStream1, + _lib._class_NSURLConnection1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSStream1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLConnection1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSStream1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLConnection1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSStreamStatus { - static const int NSStreamStatusNotOpen = 0; - static const int NSStreamStatusOpening = 1; - static const int NSStreamStatusOpen = 2; - static const int NSStreamStatusReading = 3; - static const int NSStreamStatusWriting = 4; - static const int NSStreamStatusAtEnd = 5; - static const int NSStreamStatusClosed = 6; - static const int NSStreamStatusError = 7; +void _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); } -class NSOutputStream extends NSStream { - NSOutputStream._(ffi.Pointer id, SentryCocoa lib, +final _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_registerClosure( + Function fn) { + final id = + ++_ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError.fromFunction( + SentryCocoa lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_registerClosure( + fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +class NSURLCredential extends NSObject { + NSURLCredential._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSOutputStream] that points to the same underlying object as [other]. - static NSOutputStream castFrom(T other) { - return NSOutputStream._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSURLCredential] that points to the same underlying object as [other]. + static NSURLCredential castFrom(T other) { + return NSURLCredential._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSOutputStream] that wraps the given raw object pointer. - static NSOutputStream castFromPointer( + /// Returns a [NSURLCredential] that wraps the given raw object pointer. + static NSURLCredential castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSOutputStream._(other, lib, retain: retain, release: release); + return NSURLCredential._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSOutputStream]. + /// Returns whether [obj] is an instance of [NSURLCredential]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSOutputStream1); - } - - int write_maxLength_(ffi.Pointer buffer, int len) { - return _lib._objc_msgSend_794( - _id, _lib._sel_write_maxLength_1, buffer, len); - } - - bool get hasSpaceAvailable { - return _lib._objc_msgSend_12(_id, _lib._sel_hasSpaceAvailable1); + obj._lib._class_NSURLCredential1); } - NSOutputStream initToMemory() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_initToMemory1); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + int get persistence { + return _lib._objc_msgSend_927(_id, _lib._sel_persistence1); } - NSOutputStream initToBuffer_capacity_( - ffi.Pointer buffer, int capacity) { - final _ret = _lib._objc_msgSend_795( - _id, _lib._sel_initToBuffer_capacity_1, buffer, capacity); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + NSURLCredential initWithUser_password_persistence_( + NSString? user, NSString? password, int persistence) { + final _ret = _lib._objc_msgSend_928( + _id, + _lib._sel_initWithUser_password_persistence_1, + user?._id ?? ffi.nullptr, + password?._id ?? ffi.nullptr, + persistence); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - NSOutputStream initWithURL_append_(NSURL? url, bool shouldAppend) { - final _ret = _lib._objc_msgSend_246(_id, _lib._sel_initWithURL_append_1, - url?._id ?? ffi.nullptr, shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + static NSURLCredential credentialWithUser_password_persistence_( + SentryCocoa _lib, NSString? user, NSString? password, int persistence) { + final _ret = _lib._objc_msgSend_929( + _lib._class_NSURLCredential1, + _lib._sel_credentialWithUser_password_persistence_1, + user?._id ?? ffi.nullptr, + password?._id ?? ffi.nullptr, + persistence); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - NSOutputStream initToFileAtPath_append_(NSString? path, bool shouldAppend) { - final _ret = _lib._objc_msgSend_29(_id, _lib._sel_initToFileAtPath_append_1, - path?._id ?? ffi.nullptr, shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + NSString? get user { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_user1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSOutputStream outputStreamToMemory(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSOutputStream1, _lib._sel_outputStreamToMemory1); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + NSString? get password { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_password1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSOutputStream outputStreamToBuffer_capacity_( - SentryCocoa _lib, ffi.Pointer buffer, int capacity) { - final _ret = _lib._objc_msgSend_795(_lib._class_NSOutputStream1, - _lib._sel_outputStreamToBuffer_capacity_1, buffer, capacity); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + bool get hasPassword { + return _lib._objc_msgSend_12(_id, _lib._sel_hasPassword1); } - static NSOutputStream outputStreamToFileAtPath_append_( - SentryCocoa _lib, NSString? path, bool shouldAppend) { - final _ret = _lib._objc_msgSend_29( - _lib._class_NSOutputStream1, - _lib._sel_outputStreamToFileAtPath_append_1, - path?._id ?? ffi.nullptr, - shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + NSURLCredential initWithIdentity_certificates_persistence_( + ffi.Pointer<__SecIdentity> identity, + NSArray? certArray, + int persistence) { + final _ret = _lib._objc_msgSend_930( + _id, + _lib._sel_initWithIdentity_certificates_persistence_1, + identity, + certArray?._id ?? ffi.nullptr, + persistence); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - static NSOutputStream outputStreamWithURL_append_( - SentryCocoa _lib, NSURL? url, bool shouldAppend) { - final _ret = _lib._objc_msgSend_246( - _lib._class_NSOutputStream1, - _lib._sel_outputStreamWithURL_append_1, - url?._id ?? ffi.nullptr, - shouldAppend); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + static NSURLCredential credentialWithIdentity_certificates_persistence_( + SentryCocoa _lib, + ffi.Pointer<__SecIdentity> identity, + NSArray? certArray, + int persistence) { + final _ret = _lib._objc_msgSend_931( + _lib._class_NSURLCredential1, + _lib._sel_credentialWithIdentity_certificates_persistence_1, + identity, + certArray?._id ?? ffi.nullptr, + persistence); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - static void getStreamsToHostWithName_port_inputStream_outputStream_( - SentryCocoa _lib, - NSString? hostname, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - _lib._objc_msgSend_796( - _lib._class_NSOutputStream1, - _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, - hostname?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); + ffi.Pointer<__SecIdentity> get identity { + return _lib._objc_msgSend_932(_id, _lib._sel_identity1); } - static void getStreamsToHost_port_inputStream_outputStream_( - SentryCocoa _lib, - NSHost? host, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - _lib._objc_msgSend_799( - _lib._class_NSOutputStream1, - _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, - host?._id ?? ffi.nullptr, - port, - inputStream, - outputStream); + NSArray? get certificates { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_certificates1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static void getBoundStreamsWithBufferSize_inputStream_outputStream_( - SentryCocoa _lib, - int bufferSize, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - _lib._objc_msgSend_800( - _lib._class_NSOutputStream1, - _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, - bufferSize, - inputStream, - outputStream); + NSURLCredential initWithTrust_(ffi.Pointer<__SecTrust> trust) { + final _ret = _lib._objc_msgSend_933(_id, _lib._sel_initWithTrust_1, trust); + return NSURLCredential._(_ret, _lib, retain: true, release: true); + } + + static NSURLCredential credentialForTrust_( + SentryCocoa _lib, ffi.Pointer<__SecTrust> trust) { + final _ret = _lib._objc_msgSend_934( + _lib._class_NSURLCredential1, _lib._sel_credentialForTrust_1, trust); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } @override - NSOutputStream init() { + NSURLCredential init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSOutputStream._(_ret, _lib, retain: true, release: true); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - static NSOutputStream new1(SentryCocoa _lib) { + static NSURLCredential new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_new1); - return NSOutputStream._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_new1); + return NSURLCredential._(_ret, _lib, retain: false, release: true); } - static NSOutputStream allocWithZone_( + static NSURLCredential allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSOutputStream1, _lib._sel_allocWithZone_1, zone); - return NSOutputStream._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLCredential1, _lib._sel_allocWithZone_1, zone); + return NSURLCredential._(_ret, _lib, retain: false, release: true); } - static NSOutputStream alloc(SentryCocoa _lib) { + static NSURLCredential alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_alloc1); - return NSOutputStream._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_alloc1); + return NSURLCredential._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -59948,7 +67666,7 @@ class NSOutputStream extends NSStream { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSOutputStream1, + _lib._class_NSURLCredential1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -59957,24 +67675,24 @@ class NSOutputStream extends NSStream { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSOutputStream1, + _lib._objc_msgSend_15(_lib._class_NSURLCredential1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSOutputStream1, + return _lib._objc_msgSend_12(_lib._class_NSURLCredential1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSOutputStream1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLCredential1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSOutputStream1, + _lib._class_NSURLCredential1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -59983,7 +67701,7 @@ class NSOutputStream extends NSStream { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSOutputStream1, + _lib._class_NSURLCredential1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -59991,139 +67709,175 @@ class NSOutputStream extends NSStream { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSOutputStream1, + _lib._class_NSURLCredential1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSOutputStream1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLCredential1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSOutputStream1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLCredential1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSHost extends NSObject { - NSHost._(ffi.Pointer id, SentryCocoa lib, +abstract class NSURLCredentialPersistence { + static const int NSURLCredentialPersistenceNone = 0; + static const int NSURLCredentialPersistenceForSession = 1; + static const int NSURLCredentialPersistencePermanent = 2; + static const int NSURLCredentialPersistenceSynchronizable = 3; +} + +final class __SecIdentity extends ffi.Opaque {} + +final class __SecTrust extends ffi.Opaque {} + +class NSURLProtectionSpace extends NSObject { + NSURLProtectionSpace._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSHost] that points to the same underlying object as [other]. - static NSHost castFrom(T other) { - return NSHost._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSURLProtectionSpace] that points to the same underlying object as [other]. + static NSURLProtectionSpace castFrom(T other) { + return NSURLProtectionSpace._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSHost] that wraps the given raw object pointer. - static NSHost castFromPointer(SentryCocoa lib, ffi.Pointer other, + /// Returns a [NSURLProtectionSpace] that wraps the given raw object pointer. + static NSURLProtectionSpace castFromPointer( + SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSHost._(other, lib, retain: retain, release: release); + return NSURLProtectionSpace._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSHost]. + /// Returns whether [obj] is an instance of [NSURLProtectionSpace]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSHost1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLProtectionSpace1); } - static NSHost currentHost(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_currentHost1); - return NSHost._(_ret, _lib, retain: true, release: true); + NSURLProtectionSpace initWithHost_port_protocol_realm_authenticationMethod_( + NSString? host, + int port, + NSString? protocol, + NSString? realm, + NSString? authenticationMethod) { + final _ret = _lib._objc_msgSend_935( + _id, + _lib._sel_initWithHost_port_protocol_realm_authenticationMethod_1, + host?._id ?? ffi.nullptr, + port, + protocol?._id ?? ffi.nullptr, + realm?._id ?? ffi.nullptr, + authenticationMethod?._id ?? ffi.nullptr); + return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); } - static NSHost hostWithName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSHost1, - _lib._sel_hostWithName_1, name?._id ?? ffi.nullptr); - return NSHost._(_ret, _lib, retain: true, release: true); + NSURLProtectionSpace initWithProxyHost_port_type_realm_authenticationMethod_( + NSString? host, + int port, + NSString? type, + NSString? realm, + NSString? authenticationMethod) { + final _ret = _lib._objc_msgSend_935( + _id, + _lib._sel_initWithProxyHost_port_type_realm_authenticationMethod_1, + host?._id ?? ffi.nullptr, + port, + type?._id ?? ffi.nullptr, + realm?._id ?? ffi.nullptr, + authenticationMethod?._id ?? ffi.nullptr); + return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); } - static NSHost hostWithAddress_(SentryCocoa _lib, NSString? address) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSHost1, - _lib._sel_hostWithAddress_1, address?._id ?? ffi.nullptr); - return NSHost._(_ret, _lib, retain: true, release: true); + NSString? get realm { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_realm1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - bool isEqualToHost_(NSHost? aHost) { - return _lib._objc_msgSend_797( - _id, _lib._sel_isEqualToHost_1, aHost?._id ?? ffi.nullptr); + bool get receivesCredentialSecurely { + return _lib._objc_msgSend_12(_id, _lib._sel_receivesCredentialSecurely1); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + bool get isProxy { + return _lib._objc_msgSend_12(_id, _lib._sel_isProxy1); + } + + NSString? get host { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_host1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get names { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_names1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + int get port { + return _lib._objc_msgSend_78(_id, _lib._sel_port1); } - NSString? get address { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_address1); + NSString? get proxyType { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_proxyType1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get addresses { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_addresses1); + NSString? get protocol { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_protocol1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get localizedName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localizedName1); + NSString? get authenticationMethod { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_authenticationMethod1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - static void setHostCacheEnabled_(SentryCocoa _lib, bool flag) { - _lib._objc_msgSend_798( - _lib._class_NSHost1, _lib._sel_setHostCacheEnabled_1, flag); - } - - static bool isHostCacheEnabled(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSHost1, _lib._sel_isHostCacheEnabled1); + NSArray? get distinguishedNames { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_distinguishedNames1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static void flushHostCache(SentryCocoa _lib) { - _lib._objc_msgSend_1(_lib._class_NSHost1, _lib._sel_flushHostCache1); + ffi.Pointer<__SecTrust> get serverTrust { + return _lib._objc_msgSend_936(_id, _lib._sel_serverTrust1); } @override - NSHost init() { + NSURLProtectionSpace init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSHost._(_ret, _lib, retain: true, release: true); + return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); } - static NSHost new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_new1); - return NSHost._(_ret, _lib, retain: false, release: true); + static NSURLProtectionSpace new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLProtectionSpace1, _lib._sel_new1); + return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); } - static NSHost allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSURLProtectionSpace allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSHost1, _lib._sel_allocWithZone_1, zone); - return NSHost._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLProtectionSpace1, _lib._sel_allocWithZone_1, zone); + return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); } - static NSHost alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSHost1, _lib._sel_alloc1); - return NSHost._(_ret, _lib, retain: false, release: true); + static NSURLProtectionSpace alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLProtectionSpace1, _lib._sel_alloc1); + return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -60132,7 +67886,7 @@ class NSHost extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSHost1, + _lib._class_NSURLProtectionSpace1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -60141,24 +67895,24 @@ class NSHost extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSHost1, + _lib._objc_msgSend_15(_lib._class_NSURLProtectionSpace1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSHost1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSURLProtectionSpace1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSHost1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLProtectionSpace1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSHost1, + _lib._class_NSURLProtectionSpace1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -60167,7 +67921,7 @@ class NSHost extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSHost1, + _lib._class_NSURLProtectionSpace1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -60175,115 +67929,194 @@ class NSHost extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSHost1, + _lib._class_NSURLProtectionSpace1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSHost1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLProtectionSpace1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSHost1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLProtectionSpace1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSURLResponse extends NSObject { - NSURLResponse._(ffi.Pointer id, SentryCocoa lib, +class NSURLCredentialStorage extends NSObject { + NSURLCredentialStorage._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLResponse] that points to the same underlying object as [other]. - static NSURLResponse castFrom(T other) { - return NSURLResponse._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSURLCredentialStorage] that points to the same underlying object as [other]. + static NSURLCredentialStorage castFrom(T other) { + return NSURLCredentialStorage._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSURLResponse] that wraps the given raw object pointer. - static NSURLResponse castFromPointer( + /// Returns a [NSURLCredentialStorage] that wraps the given raw object pointer. + static NSURLCredentialStorage castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLResponse._(other, lib, retain: retain, release: release); + return NSURLCredentialStorage._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLResponse]. + /// Returns whether [obj] is an instance of [NSURLCredentialStorage]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLResponse1); - } - - NSURLResponse initWithURL_MIMEType_expectedContentLength_textEncodingName_( - NSURL? URL, NSString? MIMEType, int length, NSString? name) { - final _ret = _lib._objc_msgSend_804( - _id, - _lib._sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1, - URL?._id ?? ffi.nullptr, - MIMEType?._id ?? ffi.nullptr, - length, - name?._id ?? ffi.nullptr); - return NSURLResponse._(_ret, _lib, retain: true, release: true); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLCredentialStorage1); } - NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); + static NSURLCredentialStorage? getSharedCredentialStorage(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_937(_lib._class_NSURLCredentialStorage1, + _lib._sel_sharedCredentialStorage1); return _ret.address == 0 ? null - : NSURL._(_ret, _lib, retain: true, release: true); + : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); } - NSString? get MIMEType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_MIMEType1); + NSDictionary credentialsForProtectionSpace_(NSURLProtectionSpace? space) { + final _ret = _lib._objc_msgSend_938(_id, + _lib._sel_credentialsForProtectionSpace_1, space?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get allCredentials { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allCredentials1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - int get expectedContentLength { - return _lib._objc_msgSend_220(_id, _lib._sel_expectedContentLength1); + void setCredential_forProtectionSpace_( + NSURLCredential? credential, NSURLProtectionSpace? space) { + _lib._objc_msgSend_939(_id, _lib._sel_setCredential_forProtectionSpace_1, + credential?._id ?? ffi.nullptr, space?._id ?? ffi.nullptr); } - NSString? get textEncodingName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_textEncodingName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void removeCredential_forProtectionSpace_( + NSURLCredential? credential, NSURLProtectionSpace? space) { + _lib._objc_msgSend_939(_id, _lib._sel_removeCredential_forProtectionSpace_1, + credential?._id ?? ffi.nullptr, space?._id ?? ffi.nullptr); } - NSString? get suggestedFilename { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_suggestedFilename1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + void removeCredential_forProtectionSpace_options_(NSURLCredential? credential, + NSURLProtectionSpace? space, NSDictionary? options) { + _lib._objc_msgSend_940( + _id, + _lib._sel_removeCredential_forProtectionSpace_options_1, + credential?._id ?? ffi.nullptr, + space?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr); + } + + NSURLCredential defaultCredentialForProtectionSpace_( + NSURLProtectionSpace? space) { + final _ret = _lib._objc_msgSend_941( + _id, + _lib._sel_defaultCredentialForProtectionSpace_1, + space?._id ?? ffi.nullptr); + return NSURLCredential._(_ret, _lib, retain: true, release: true); + } + + void setDefaultCredential_forProtectionSpace_( + NSURLCredential? credential, NSURLProtectionSpace? space) { + _lib._objc_msgSend_939( + _id, + _lib._sel_setDefaultCredential_forProtectionSpace_1, + credential?._id ?? ffi.nullptr, + space?._id ?? ffi.nullptr); + } + + void getCredentialsForProtectionSpace_task_completionHandler_( + NSURLProtectionSpace? protectionSpace, + NSURLSessionTask? task, + ObjCBlock_ffiVoid_NSDictionary completionHandler) { + _lib._objc_msgSend_942( + _id, + _lib._sel_getCredentialsForProtectionSpace_task_completionHandler_1, + protectionSpace?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr, + completionHandler._id); + } + + void setCredential_forProtectionSpace_task_(NSURLCredential? credential, + NSURLProtectionSpace? protectionSpace, NSURLSessionTask? task) { + _lib._objc_msgSend_943( + _id, + _lib._sel_setCredential_forProtectionSpace_task_1, + credential?._id ?? ffi.nullptr, + protectionSpace?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr); + } + + void removeCredential_forProtectionSpace_options_task_( + NSURLCredential? credential, + NSURLProtectionSpace? protectionSpace, + NSDictionary? options, + NSURLSessionTask? task) { + _lib._objc_msgSend_944( + _id, + _lib._sel_removeCredential_forProtectionSpace_options_task_1, + credential?._id ?? ffi.nullptr, + protectionSpace?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr); + } + + void getDefaultCredentialForProtectionSpace_task_completionHandler_( + NSURLProtectionSpace? space, + NSURLSessionTask? task, + ObjCBlock_ffiVoid_NSURLCredential completionHandler) { + _lib._objc_msgSend_945( + _id, + _lib._sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1, + space?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr, + completionHandler._id); + } + + void setDefaultCredential_forProtectionSpace_task_( + NSURLCredential? credential, + NSURLProtectionSpace? protectionSpace, + NSURLSessionTask? task) { + _lib._objc_msgSend_943( + _id, + _lib._sel_setDefaultCredential_forProtectionSpace_task_1, + credential?._id ?? ffi.nullptr, + protectionSpace?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr); } @override - NSURLResponse init() { + NSURLCredentialStorage init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLResponse._(_ret, _lib, retain: true, release: true); + return NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); } - static NSURLResponse new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_new1); - return NSURLResponse._(_ret, _lib, retain: false, release: true); + static NSURLCredentialStorage new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLCredentialStorage1, _lib._sel_new1); + return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); } - static NSURLResponse allocWithZone_( + static NSURLCredentialStorage allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSURLResponse1, _lib._sel_allocWithZone_1, zone); - return NSURLResponse._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLCredentialStorage1, _lib._sel_allocWithZone_1, zone); + return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); } - static NSURLResponse alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_alloc1); - return NSURLResponse._(_ret, _lib, retain: false, release: true); + static NSURLCredentialStorage alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLCredentialStorage1, _lib._sel_alloc1); + return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -60292,7 +68125,7 @@ class NSURLResponse extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLResponse1, + _lib._class_NSURLCredentialStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -60301,24 +68134,24 @@ class NSURLResponse extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLResponse1, + _lib._objc_msgSend_15(_lib._class_NSURLCredentialStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLResponse1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSURLCredentialStorage1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLResponse1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLCredentialStorage1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLResponse1, + _lib._class_NSURLCredentialStorage1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -60327,7 +68160,7 @@ class NSURLResponse extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLResponse1, + _lib._class_NSURLCredentialStorage1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -60335,33 +68168,96 @@ class NSURLResponse extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLResponse1, + _lib._class_NSURLCredentialStorage1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLResponse1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLCredentialStorage1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLResponse1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCredentialStorage1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSURLSessionTaskState { - static const int NSURLSessionTaskStateRunning = 0; - static const int NSURLSessionTaskStateSuspended = 1; - static const int NSURLSessionTaskStateCanceling = 2; - static const int NSURLSessionTaskStateCompleted = 3; +void _ObjCBlock_ffiVoid_NSDictionary_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock_ffiVoid_NSDictionary_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSDictionary_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSDictionary_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSDictionary_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSDictionary_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSDictionary_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSDictionary_closureRegistry[block + .ref.target.address] as void Function(ffi.Pointer))(arg0); +} + +class ObjCBlock_ffiVoid_NSDictionary extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSDictionary._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSDictionary.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSDictionary_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSDictionary.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSDictionary_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSDictionary_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); + } } -void _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline( +void _ObjCBlock_ffiVoid_NSURLCredential_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { return block.ref.target .cast< @@ -60369,26 +68265,28 @@ void _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline( .asFunction arg0)>()(arg0); } -final _ObjCBlock_ffiVoid_NSArray_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSArray_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSArray_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSArray_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSArray_closureRegistry[id] = fn; +final _ObjCBlock_ffiVoid_NSURLCredential_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSURLCredential_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSURLCredential_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSURLCredential_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURLCredential_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSArray_closureTrampoline( +void _ObjCBlock_ffiVoid_NSURLCredential_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSArray_closureRegistry[block.ref.target.address] - as void Function(ffi.Pointer))(arg0); + return (_ObjCBlock_ffiVoid_NSURLCredential_closureRegistry[block + .ref.target.address] as void Function(ffi.Pointer))(arg0); } -class ObjCBlock_ffiVoid_NSArray extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSArray._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock_ffiVoid_NSURLCredential extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURLCredential._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSArray.fromFunctionPointer( + ObjCBlock_ffiVoid_NSURLCredential.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi @@ -60399,23 +68297,23 @@ class ObjCBlock_ffiVoid_NSArray extends _ObjCBlockBase { _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline) + _ObjCBlock_ffiVoid_NSURLCredential_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSArray.fromFunction( + ObjCBlock_ffiVoid_NSURLCredential.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSArray_closureTrampoline) + _ObjCBlock_ffiVoid_NSURLCredential_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSArray_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSURLCredential_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0) { @@ -60430,246 +68328,175 @@ class ObjCBlock_ffiVoid_NSArray extends _ObjCBlockBase { } } -class NSIndexPath extends NSObject { - NSIndexPath._(ffi.Pointer id, SentryCocoa lib, +class NSURLProtocol extends NSObject { + NSURLProtocol._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSIndexPath] that points to the same underlying object as [other]. - static NSIndexPath castFrom(T other) { - return NSIndexPath._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSURLProtocol] that points to the same underlying object as [other]. + static NSURLProtocol castFrom(T other) { + return NSURLProtocol._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSIndexPath] that wraps the given raw object pointer. - static NSIndexPath castFromPointer( + /// Returns a [NSURLProtocol] that wraps the given raw object pointer. + static NSURLProtocol castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSIndexPath._(other, lib, retain: retain, release: release); + return NSURLProtocol._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSIndexPath]. + /// Returns whether [obj] is an instance of [NSURLProtocol]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSIndexPath1); - } - - static NSIndexPath indexPathWithIndex_(SentryCocoa _lib, int index) { - final _ret = _lib._objc_msgSend_60( - _lib._class_NSIndexPath1, _lib._sel_indexPathWithIndex_1, index); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } - - static NSIndexPath indexPathWithIndexes_length_( - SentryCocoa _lib, ffi.Pointer indexes, int length) { - final _ret = _lib._objc_msgSend_810(_lib._class_NSIndexPath1, - _lib._sel_indexPathWithIndexes_length_1, indexes, length); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } - - NSIndexPath initWithIndexes_length_( - ffi.Pointer indexes, int length) { - final _ret = _lib._objc_msgSend_810( - _id, _lib._sel_initWithIndexes_length_1, indexes, length); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } - - NSIndexPath initWithIndex_(int index) { - final _ret = _lib._objc_msgSend_60(_id, _lib._sel_initWithIndex_1, index); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } - - NSIndexPath indexPathByAddingIndex_(int index) { - final _ret = - _lib._objc_msgSend_811(_id, _lib._sel_indexPathByAddingIndex_1, index); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } - - NSIndexPath indexPathByRemovingLastIndex() { - final _ret = - _lib._objc_msgSend_812(_id, _lib._sel_indexPathByRemovingLastIndex1); - return NSIndexPath._(_ret, _lib, retain: true, release: true); - } - - int indexAtPosition_(int position) { - return _lib._objc_msgSend_88(_id, _lib._sel_indexAtPosition_1, position); - } - - int get length { - return _lib._objc_msgSend_10(_id, _lib._sel_length1); - } - - void getIndexes_range_( - ffi.Pointer indexes, _NSRange positionRange) { - _lib._objc_msgSend_813( - _id, _lib._sel_getIndexes_range_1, indexes, positionRange); - } - - int compare_(NSIndexPath? otherObject) { - return _lib._objc_msgSend_814( - _id, _lib._sel_compare_1, otherObject?._id ?? ffi.nullptr); - } - - void getIndexes_(ffi.Pointer indexes) { - _lib._objc_msgSend_815(_id, _lib._sel_getIndexes_1, indexes); - } - - @override - NSIndexPath init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSIndexPath._(_ret, _lib, retain: true, release: true); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLProtocol1); } - static NSIndexPath new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_new1); - return NSIndexPath._(_ret, _lib, retain: false, release: true); + NSURLProtocol initWithRequest_cachedResponse_client_(NSURLRequest? request, + NSCachedURLResponse? cachedResponse, NSObject? client) { + final _ret = _lib._objc_msgSend_946( + _id, + _lib._sel_initWithRequest_cachedResponse_client_1, + request?._id ?? ffi.nullptr, + cachedResponse?._id ?? ffi.nullptr, + client?._id ?? ffi.nullptr); + return NSURLProtocol._(_ret, _lib, retain: true, release: true); } - static NSIndexPath allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSIndexPath1, _lib._sel_allocWithZone_1, zone); - return NSIndexPath._(_ret, _lib, retain: false, release: true); + NSObject? get client { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_client1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSIndexPath alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_alloc1); - return NSIndexPath._(_ret, _lib, retain: false, release: true); + NSURLRequest? get request { + final _ret = _lib._objc_msgSend_815(_id, _lib._sel_request1); + return _ret.address == 0 + ? null + : NSURLRequest._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSIndexPath1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + NSCachedURLResponse? get cachedResponse { + final _ret = _lib._objc_msgSend_947(_id, _lib._sel_cachedResponse1); + return _ret.address == 0 + ? null + : NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSIndexPath1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + static bool canInitWithRequest_(SentryCocoa _lib, NSURLRequest? request) { + return _lib._objc_msgSend_924(_lib._class_NSURLProtocol1, + _lib._sel_canInitWithRequest_1, request?._id ?? ffi.nullptr); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSIndexPath1, _lib._sel_accessInstanceVariablesDirectly1); + static NSURLRequest canonicalRequestForRequest_( + SentryCocoa _lib, NSURLRequest? request) { + final _ret = _lib._objc_msgSend_948(_lib._class_NSURLProtocol1, + _lib._sel_canonicalRequestForRequest_1, request?._id ?? ffi.nullptr); + return NSURLRequest._(_ret, _lib, retain: true, release: true); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSIndexPath1, _lib._sel_useStoredAccessor1); + static bool requestIsCacheEquivalent_toRequest_( + SentryCocoa _lib, NSURLRequest? a, NSURLRequest? b) { + return _lib._objc_msgSend_949( + _lib._class_NSURLProtocol1, + _lib._sel_requestIsCacheEquivalent_toRequest_1, + a?._id ?? ffi.nullptr, + b?._id ?? ffi.nullptr); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSIndexPath1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + void startLoading() { + _lib._objc_msgSend_1(_id, _lib._sel_startLoading1); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSIndexPath1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + void stopLoading() { + _lib._objc_msgSend_1(_id, _lib._sel_stopLoading1); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSIndexPath1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + static NSObject propertyForKey_inRequest_( + SentryCocoa _lib, NSString? key, NSURLRequest? request) { + final _ret = _lib._objc_msgSend_950( + _lib._class_NSURLProtocol1, + _lib._sel_propertyForKey_inRequest_1, + key?._id ?? ffi.nullptr, + request?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSIndexPath1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + static void setProperty_forKey_inRequest_(SentryCocoa _lib, NSObject value, + NSString? key, NSMutableURLRequest? request) { + _lib._objc_msgSend_956( + _lib._class_NSURLProtocol1, + _lib._sel_setProperty_forKey_inRequest_1, + value._id, + key?._id ?? ffi.nullptr, + request?._id ?? ffi.nullptr); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSIndexPath1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + static void removePropertyForKey_inRequest_( + SentryCocoa _lib, NSString? key, NSMutableURLRequest? request) { + _lib._objc_msgSend_957( + _lib._class_NSURLProtocol1, + _lib._sel_removePropertyForKey_inRequest_1, + key?._id ?? ffi.nullptr, + request?._id ?? ffi.nullptr); } -} - -class NSInflectionRule extends NSObject { - NSInflectionRule._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSInflectionRule] that points to the same underlying object as [other]. - static NSInflectionRule castFrom(T other) { - return NSInflectionRule._(other._id, other._lib, - retain: true, release: true); + static bool registerClass_(SentryCocoa _lib, NSObject protocolClass) { + return _lib._objc_msgSend_0(_lib._class_NSURLProtocol1, + _lib._sel_registerClass_1, protocolClass._id); } - /// Returns a [NSInflectionRule] that wraps the given raw object pointer. - static NSInflectionRule castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSInflectionRule._(other, lib, retain: retain, release: release); + static void unregisterClass_(SentryCocoa _lib, NSObject protocolClass) { + _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, + _lib._sel_unregisterClass_1, protocolClass._id); } - /// Returns whether [obj] is an instance of [NSInflectionRule]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSInflectionRule1); + static bool canInitWithTask_(SentryCocoa _lib, NSURLSessionTask? task) { + return _lib._objc_msgSend_958(_lib._class_NSURLProtocol1, + _lib._sel_canInitWithTask_1, task?._id ?? ffi.nullptr); } - @override - NSObject init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSURLProtocol initWithTask_cachedResponse_client_(NSURLSessionTask? task, + NSCachedURLResponse? cachedResponse, NSObject? client) { + final _ret = _lib._objc_msgSend_959( + _id, + _lib._sel_initWithTask_cachedResponse_client_1, + task?._id ?? ffi.nullptr, + cachedResponse?._id ?? ffi.nullptr, + client?._id ?? ffi.nullptr); + return NSURLProtocol._(_ret, _lib, retain: true, release: true); } - static NSInflectionRule? getAutomaticRule(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_816( - _lib._class_NSInflectionRule1, _lib._sel_automaticRule1); + NSURLSessionTask? get task { + final _ret = _lib._objc_msgSend_960(_id, _lib._sel_task1); return _ret.address == 0 ? null - : NSInflectionRule._(_ret, _lib, retain: true, release: true); - } - - static bool canInflectLanguage_(SentryCocoa _lib, NSString? language) { - return _lib._objc_msgSend_59(_lib._class_NSInflectionRule1, - _lib._sel_canInflectLanguage_1, language?._id ?? ffi.nullptr); + : NSURLSessionTask._(_ret, _lib, retain: true, release: true); } - static bool getCanInflectPreferredLocalization(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSInflectionRule1, - _lib._sel_canInflectPreferredLocalization1); + @override + NSURLProtocol init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLProtocol._(_ret, _lib, retain: true, release: true); } - static NSInflectionRule new1(SentryCocoa _lib) { + static NSURLProtocol new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSInflectionRule1, _lib._sel_new1); - return NSInflectionRule._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_new1); + return NSURLProtocol._(_ret, _lib, retain: false, release: true); } - static NSInflectionRule allocWithZone_( + static NSURLProtocol allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSInflectionRule1, _lib._sel_allocWithZone_1, zone); - return NSInflectionRule._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLProtocol1, _lib._sel_allocWithZone_1, zone); + return NSURLProtocol._(_ret, _lib, retain: false, release: true); } - static NSInflectionRule alloc(SentryCocoa _lib) { + static NSURLProtocol alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSInflectionRule1, _lib._sel_alloc1); - return NSInflectionRule._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_alloc1); + return NSURLProtocol._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -60678,7 +68505,7 @@ class NSInflectionRule extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSInflectionRule1, + _lib._class_NSURLProtocol1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -60687,24 +68514,24 @@ class NSInflectionRule extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSInflectionRule1, + _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSInflectionRule1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSURLProtocol1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSInflectionRule1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLProtocol1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSInflectionRule1, + _lib._class_NSURLProtocol1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -60713,7 +68540,7 @@ class NSInflectionRule extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSInflectionRule1, + _lib._class_NSURLProtocol1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -60721,435 +68548,344 @@ class NSInflectionRule extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSInflectionRule1, + _lib._class_NSURLProtocol1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSInflectionRule1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURLProtocol1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSInflectionRule1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLProtocol1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSMorphology extends NSObject { - NSMorphology._(ffi.Pointer id, SentryCocoa lib, +class NSMutableURLRequest extends NSURLRequest { + NSMutableURLRequest._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMorphology] that points to the same underlying object as [other]. - static NSMorphology castFrom(T other) { - return NSMorphology._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSMutableURLRequest] that points to the same underlying object as [other]. + static NSMutableURLRequest castFrom(T other) { + return NSMutableURLRequest._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSMorphology] that wraps the given raw object pointer. - static NSMorphology castFromPointer( + /// Returns a [NSMutableURLRequest] that wraps the given raw object pointer. + static NSMutableURLRequest castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMorphology._(other, lib, retain: retain, release: release); + return NSMutableURLRequest._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMorphology]. + /// Returns whether [obj] is an instance of [NSMutableURLRequest]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSMorphology1); - } - - int get grammaticalGender { - return _lib._objc_msgSend_817(_id, _lib._sel_grammaticalGender1); - } - - set grammaticalGender(int value) { - return _lib._objc_msgSend_818(_id, _lib._sel_setGrammaticalGender_1, value); - } - - int get partOfSpeech { - return _lib._objc_msgSend_819(_id, _lib._sel_partOfSpeech1); - } - - set partOfSpeech(int value) { - return _lib._objc_msgSend_820(_id, _lib._sel_setPartOfSpeech_1, value); - } - - int get number { - return _lib._objc_msgSend_821(_id, _lib._sel_number1); - } - - set number(int value) { - return _lib._objc_msgSend_822(_id, _lib._sel_setNumber_1, value); - } - - int get grammaticalCase { - return _lib._objc_msgSend_823(_id, _lib._sel_grammaticalCase1); - } - - set grammaticalCase(int value) { - return _lib._objc_msgSend_824(_id, _lib._sel_setGrammaticalCase_1, value); - } - - int get determination { - return _lib._objc_msgSend_825(_id, _lib._sel_determination1); - } - - set determination(int value) { - return _lib._objc_msgSend_826(_id, _lib._sel_setDetermination_1, value); - } - - int get grammaticalPerson { - return _lib._objc_msgSend_827(_id, _lib._sel_grammaticalPerson1); - } - - set grammaticalPerson(int value) { - return _lib._objc_msgSend_828(_id, _lib._sel_setGrammaticalPerson_1, value); - } - - int get pronounType { - return _lib._objc_msgSend_829(_id, _lib._sel_pronounType1); - } - - set pronounType(int value) { - return _lib._objc_msgSend_830(_id, _lib._sel_setPronounType_1, value); - } - - int get definiteness { - return _lib._objc_msgSend_831(_id, _lib._sel_definiteness1); - } - - set definiteness(int value) { - return _lib._objc_msgSend_832(_id, _lib._sel_setDefiniteness_1, value); - } - - NSMorphologyCustomPronoun customPronounForLanguage_(NSString? language) { - final _ret = _lib._objc_msgSend_833(_id, - _lib._sel_customPronounForLanguage_1, language?._id ?? ffi.nullptr); - return NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); - } - - bool setCustomPronoun_forLanguage_error_(NSMorphologyCustomPronoun? features, - NSString? language, ffi.Pointer> error) { - return _lib._objc_msgSend_834( - _id, - _lib._sel_setCustomPronoun_forLanguage_error_1, - features?._id ?? ffi.nullptr, - language?._id ?? ffi.nullptr, - error); - } - - bool get unspecified { - return _lib._objc_msgSend_12(_id, _lib._sel_isUnspecified1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSMutableURLRequest1); } - static NSMorphology? getUserMorphology(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_835( - _lib._class_NSMorphology1, _lib._sel_userMorphology1); + @override + NSURL? get URL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); return _ret.address == 0 ? null - : NSMorphology._(_ret, _lib, retain: true, release: true); - } - - @override - NSMorphology init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMorphology._(_ret, _lib, retain: true, release: true); + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSMorphology new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_new1); - return NSMorphology._(_ret, _lib, retain: false, release: true); + set URL(NSURL? value) { + return _lib._objc_msgSend_636( + _id, _lib._sel_setURL_1, value?._id ?? ffi.nullptr); } - static NSMorphology allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSMorphology1, _lib._sel_allocWithZone_1, zone); - return NSMorphology._(_ret, _lib, retain: false, release: true); + @override + int get cachePolicy { + return _lib._objc_msgSend_802(_id, _lib._sel_cachePolicy1); } - static NSMorphology alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_alloc1); - return NSMorphology._(_ret, _lib, retain: false, release: true); + set cachePolicy(int value) { + return _lib._objc_msgSend_951(_id, _lib._sel_setCachePolicy_1, value); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSMorphology1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + @override + double get timeoutInterval { + return _lib._objc_msgSend_155(_id, _lib._sel_timeoutInterval1); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMorphology1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + set timeoutInterval(double value) { + return _lib._objc_msgSend_522(_id, _lib._sel_setTimeoutInterval_1, value); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMorphology1, _lib._sel_accessInstanceVariablesDirectly1); + @override + NSURL? get mainDocumentURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_mainDocumentURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMorphology1, _lib._sel_useStoredAccessor1); + set mainDocumentURL(NSURL? value) { + return _lib._objc_msgSend_636( + _id, _lib._sel_setMainDocumentURL_1, value?._id ?? ffi.nullptr); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMorphology1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + @override + int get networkServiceType { + return _lib._objc_msgSend_803(_id, _lib._sel_networkServiceType1); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMorphology1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + set networkServiceType(int value) { + return _lib._objc_msgSend_952( + _id, _lib._sel_setNetworkServiceType_1, value); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSMorphology1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + @override + bool get allowsCellularAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSMorphology1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + set allowsCellularAccess(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setAllowsCellularAccess_1, value); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMorphology1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + @override + bool get allowsExpensiveNetworkAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); } -} - -abstract class NSGrammaticalGender { - static const int NSGrammaticalGenderNotSet = 0; - static const int NSGrammaticalGenderFeminine = 1; - static const int NSGrammaticalGenderMasculine = 2; - static const int NSGrammaticalGenderNeuter = 3; -} -abstract class NSGrammaticalPartOfSpeech { - static const int NSGrammaticalPartOfSpeechNotSet = 0; - static const int NSGrammaticalPartOfSpeechDeterminer = 1; - static const int NSGrammaticalPartOfSpeechPronoun = 2; - static const int NSGrammaticalPartOfSpeechLetter = 3; - static const int NSGrammaticalPartOfSpeechAdverb = 4; - static const int NSGrammaticalPartOfSpeechParticle = 5; - static const int NSGrammaticalPartOfSpeechAdjective = 6; - static const int NSGrammaticalPartOfSpeechAdposition = 7; - static const int NSGrammaticalPartOfSpeechVerb = 8; - static const int NSGrammaticalPartOfSpeechNoun = 9; - static const int NSGrammaticalPartOfSpeechConjunction = 10; - static const int NSGrammaticalPartOfSpeechNumeral = 11; - static const int NSGrammaticalPartOfSpeechInterjection = 12; - static const int NSGrammaticalPartOfSpeechPreposition = 13; - static const int NSGrammaticalPartOfSpeechAbbreviation = 14; -} + set allowsExpensiveNetworkAccess(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); + } -abstract class NSGrammaticalNumber { - static const int NSGrammaticalNumberNotSet = 0; - static const int NSGrammaticalNumberSingular = 1; - static const int NSGrammaticalNumberZero = 2; - static const int NSGrammaticalNumberPlural = 3; - static const int NSGrammaticalNumberPluralTwo = 4; - static const int NSGrammaticalNumberPluralFew = 5; - static const int NSGrammaticalNumberPluralMany = 6; -} + @override + bool get allowsConstrainedNetworkAccess { + return _lib._objc_msgSend_12( + _id, _lib._sel_allowsConstrainedNetworkAccess1); + } -abstract class NSGrammaticalCase { - static const int NSGrammaticalCaseNotSet = 0; - static const int NSGrammaticalCaseNominative = 1; - static const int NSGrammaticalCaseAccusative = 2; - static const int NSGrammaticalCaseDative = 3; - static const int NSGrammaticalCaseGenitive = 4; - static const int NSGrammaticalCasePrepositional = 5; - static const int NSGrammaticalCaseAblative = 6; - static const int NSGrammaticalCaseAdessive = 7; - static const int NSGrammaticalCaseAllative = 8; - static const int NSGrammaticalCaseElative = 9; - static const int NSGrammaticalCaseIllative = 10; - static const int NSGrammaticalCaseEssive = 11; - static const int NSGrammaticalCaseInessive = 12; - static const int NSGrammaticalCaseLocative = 13; - static const int NSGrammaticalCaseTranslative = 14; -} + set allowsConstrainedNetworkAccess(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); + } -abstract class NSGrammaticalDetermination { - static const int NSGrammaticalDeterminationNotSet = 0; - static const int NSGrammaticalDeterminationIndependent = 1; - static const int NSGrammaticalDeterminationDependent = 2; -} + @override + bool get allowsUltraConstrainedNetworkAccess { + return _lib._objc_msgSend_12( + _id, _lib._sel_allowsUltraConstrainedNetworkAccess1); + } -abstract class NSGrammaticalPerson { - static const int NSGrammaticalPersonNotSet = 0; - static const int NSGrammaticalPersonFirst = 1; - static const int NSGrammaticalPersonSecond = 2; - static const int NSGrammaticalPersonThird = 3; -} + set allowsUltraConstrainedNetworkAccess(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setAllowsUltraConstrainedNetworkAccess_1, value); + } -abstract class NSGrammaticalPronounType { - static const int NSGrammaticalPronounTypeNotSet = 0; - static const int NSGrammaticalPronounTypePersonal = 1; - static const int NSGrammaticalPronounTypeReflexive = 2; - static const int NSGrammaticalPronounTypePossessive = 3; -} + @override + bool get assumesHTTP3Capable { + return _lib._objc_msgSend_12(_id, _lib._sel_assumesHTTP3Capable1); + } -abstract class NSGrammaticalDefiniteness { - static const int NSGrammaticalDefinitenessNotSet = 0; - static const int NSGrammaticalDefinitenessIndefinite = 1; - static const int NSGrammaticalDefinitenessDefinite = 2; -} + set assumesHTTP3Capable(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setAssumesHTTP3Capable_1, value); + } -class NSMorphologyCustomPronoun extends NSObject { - NSMorphologyCustomPronoun._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + @override + int get attribution { + return _lib._objc_msgSend_804(_id, _lib._sel_attribution1); + } - /// Returns a [NSMorphologyCustomPronoun] that points to the same underlying object as [other]. - static NSMorphologyCustomPronoun castFrom(T other) { - return NSMorphologyCustomPronoun._(other._id, other._lib, - retain: true, release: true); + set attribution(int value) { + return _lib._objc_msgSend_953(_id, _lib._sel_setAttribution_1, value); } - /// Returns a [NSMorphologyCustomPronoun] that wraps the given raw object pointer. - static NSMorphologyCustomPronoun castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSMorphologyCustomPronoun._(other, lib, - retain: retain, release: release); + @override + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); } - /// Returns whether [obj] is an instance of [NSMorphologyCustomPronoun]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMorphologyCustomPronoun1); + set requiresDNSSECValidation(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setRequiresDNSSECValidation_1, value); } - static bool isSupportedForLanguage_(SentryCocoa _lib, NSString? language) { - return _lib._objc_msgSend_59(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_isSupportedForLanguage_1, language?._id ?? ffi.nullptr); + @override + bool get allowsPersistentDNS { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsPersistentDNS1); } - static NSArray requiredKeysForLanguage_( - SentryCocoa _lib, NSString? language) { - final _ret = _lib._objc_msgSend_123(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_requiredKeysForLanguage_1, language?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + set allowsPersistentDNS(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setAllowsPersistentDNS_1, value); } - NSString? get subjectForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_subjectForm1); + @override + NSString? get cookiePartitionIdentifier { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_cookiePartitionIdentifier1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - set subjectForm(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setSubjectForm_1, value?._id ?? ffi.nullptr); + set cookiePartitionIdentifier(NSString? value) { + return _lib._objc_msgSend_444(_id, _lib._sel_setCookiePartitionIdentifier_1, + value?._id ?? ffi.nullptr); } - NSString? get objectForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_objectForm1); + @override + NSString? get HTTPMethod { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_HTTPMethod1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - set objectForm(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setObjectForm_1, value?._id ?? ffi.nullptr); + set HTTPMethod(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setHTTPMethod_1, value?._id ?? ffi.nullptr); } - NSString? get possessiveForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_possessiveForm1); + @override + NSDictionary? get allHTTPHeaderFields { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allHTTPHeaderFields1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - set possessiveForm(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setPossessiveForm_1, value?._id ?? ffi.nullptr); + set allHTTPHeaderFields(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setAllHTTPHeaderFields_1, value?._id ?? ffi.nullptr); } - NSString? get possessiveAdjectiveForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_possessiveAdjectiveForm1); + void setValue_forHTTPHeaderField_(NSString? value, NSString? field) { + _lib._objc_msgSend_530(_id, _lib._sel_setValue_forHTTPHeaderField_1, + value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); + } + + void addValue_forHTTPHeaderField_(NSString? value, NSString? field) { + _lib._objc_msgSend_530(_id, _lib._sel_addValue_forHTTPHeaderField_1, + value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); + } + + @override + NSData? get HTTPBody { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_HTTPBody1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSData._(_ret, _lib, retain: true, release: true); } - set possessiveAdjectiveForm(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setPossessiveAdjectiveForm_1, value?._id ?? ffi.nullptr); + set HTTPBody(NSData? value) { + return _lib._objc_msgSend_954( + _id, _lib._sel_setHTTPBody_1, value?._id ?? ffi.nullptr); } - NSString? get reflexiveForm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_reflexiveForm1); + @override + NSInputStream? get HTTPBodyStream { + final _ret = _lib._objc_msgSend_814(_id, _lib._sel_HTTPBodyStream1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSInputStream._(_ret, _lib, retain: true, release: true); } - set reflexiveForm(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setReflexiveForm_1, value?._id ?? ffi.nullptr); + set HTTPBodyStream(NSInputStream? value) { + return _lib._objc_msgSend_955( + _id, _lib._sel_setHTTPBodyStream_1, value?._id ?? ffi.nullptr); } @override - NSMorphologyCustomPronoun init() { + bool get HTTPShouldHandleCookies { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldHandleCookies1); + } + + set HTTPShouldHandleCookies(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setHTTPShouldHandleCookies_1, value); + } + + @override + bool get HTTPShouldUsePipelining { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + } + + set HTTPShouldUsePipelining(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setHTTPShouldUsePipelining_1, value); + } + + static NSMutableURLRequest requestWithURL_(SentryCocoa _lib, NSURL? URL) { + final _ret = _lib._objc_msgSend_241(_lib._class_NSMutableURLRequest1, + _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + } + + static bool getSupportsSecureCoding(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableURLRequest1, _lib._sel_supportsSecureCoding1); + } + + static NSMutableURLRequest requestWithURL_cachePolicy_timeoutInterval_( + SentryCocoa _lib, NSURL? URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_801( + _lib._class_NSMutableURLRequest1, + _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, + URL?._id ?? ffi.nullptr, + cachePolicy, + timeoutInterval); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableURLRequest initWithURL_(NSURL? URL) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithURL_1, URL?._id ?? ffi.nullptr); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableURLRequest initWithURL_cachePolicy_timeoutInterval_( + NSURL? URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_801( + _id, + _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, + URL?._id ?? ffi.nullptr, + cachePolicy, + timeoutInterval); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + } + + @override + NSMutableURLRequest init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } - static NSMorphologyCustomPronoun new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMorphologyCustomPronoun1, _lib._sel_new1); - return NSMorphologyCustomPronoun._(_ret, _lib, - retain: false, release: true); + static NSMutableURLRequest new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSMutableURLRequest1, _lib._sel_new1); + return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); } - static NSMorphologyCustomPronoun allocWithZone_( + static NSMutableURLRequest allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_allocWithZone_1, zone); - return NSMorphologyCustomPronoun._(_ret, _lib, - retain: false, release: true); + final _ret = _lib._objc_msgSend_3( + _lib._class_NSMutableURLRequest1, _lib._sel_allocWithZone_1, zone); + return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); } - static NSMorphologyCustomPronoun alloc(SentryCocoa _lib) { + static NSMutableURLRequest alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSMorphologyCustomPronoun1, _lib._sel_alloc1); - return NSMorphologyCustomPronoun._(_ret, _lib, - retain: false, release: true); + _lib._class_NSMutableURLRequest1, _lib._sel_alloc1); + return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -61158,7 +68894,7 @@ class NSMorphologyCustomPronoun extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSMorphologyCustomPronoun1, + _lib._class_NSMutableURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -61167,24 +68903,24 @@ class NSMorphologyCustomPronoun extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMorphologyCustomPronoun1, + _lib._objc_msgSend_15(_lib._class_NSMutableURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMorphologyCustomPronoun1, + return _lib._objc_msgSend_12(_lib._class_NSMutableURLRequest1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSMorphologyCustomPronoun1, _lib._sel_useStoredAccessor1); + _lib._class_NSMutableURLRequest1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMorphologyCustomPronoun1, + _lib._class_NSMutableURLRequest1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -61193,7 +68929,7 @@ class NSMorphologyCustomPronoun extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSMorphologyCustomPronoun1, + _lib._class_NSMutableURLRequest1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -61201,179 +68937,187 @@ class NSMorphologyCustomPronoun extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSMorphologyCustomPronoun1, + _lib._class_NSMutableURLRequest1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMorphologyCustomPronoun1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableURLRequest1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSMorphologyCustomPronoun1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSMutableURLRequest1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSOperationQueue extends NSObject { - NSOperationQueue._(ffi.Pointer id, SentryCocoa lib, +class NSXMLParser extends NSObject { + NSXMLParser._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSOperationQueue] that points to the same underlying object as [other]. - static NSOperationQueue castFrom(T other) { - return NSOperationQueue._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSXMLParser] that points to the same underlying object as [other]. + static NSXMLParser castFrom(T other) { + return NSXMLParser._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSOperationQueue] that wraps the given raw object pointer. - static NSOperationQueue castFromPointer( + /// Returns a [NSXMLParser] that wraps the given raw object pointer. + static NSXMLParser castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSOperationQueue._(other, lib, retain: retain, release: release); + return NSXMLParser._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSOperationQueue]. + /// Returns whether [obj] is an instance of [NSXMLParser]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSOperationQueue1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLParser1); } - NSProgress? get progress { - final _ret = _lib._objc_msgSend_612(_id, _lib._sel_progress1); - return _ret.address == 0 - ? null - : NSProgress._(_ret, _lib, retain: true, release: true); + NSXMLParser initWithContentsOfURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_241( + _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); + return NSXMLParser._(_ret, _lib, retain: true, release: true); } - void addOperation_(NSOperation? op) { - _lib._objc_msgSend_836( - _id, _lib._sel_addOperation_1, op?._id ?? ffi.nullptr); + NSXMLParser initWithData_(NSData? data) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + return NSXMLParser._(_ret, _lib, retain: true, release: true); } - void addOperations_waitUntilFinished_(NSArray? ops, bool wait) { - _lib._objc_msgSend_839(_id, _lib._sel_addOperations_waitUntilFinished_1, - ops?._id ?? ffi.nullptr, wait); + NSXMLParser initWithStream_(NSInputStream? stream) { + final _ret = _lib._objc_msgSend_961( + _id, _lib._sel_initWithStream_1, stream?._id ?? ffi.nullptr); + return NSXMLParser._(_ret, _lib, retain: true, release: true); } - void addOperationWithBlock_(ObjCBlock_ffiVoid block) { - _lib._objc_msgSend_500(_id, _lib._sel_addOperationWithBlock_1, block._id); + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void addBarrierBlock_(ObjCBlock_ffiVoid barrier) { - _lib._objc_msgSend_500(_id, _lib._sel_addBarrierBlock_1, barrier._id); + set delegate(NSObject? value) { + return _lib._objc_msgSend_389( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - int get maxConcurrentOperationCount { - return _lib._objc_msgSend_78(_id, _lib._sel_maxConcurrentOperationCount1); + bool get shouldProcessNamespaces { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldProcessNamespaces1); } - set maxConcurrentOperationCount(int value) { - return _lib._objc_msgSend_593( - _id, _lib._sel_setMaxConcurrentOperationCount_1, value); + set shouldProcessNamespaces(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setShouldProcessNamespaces_1, value); } - bool get suspended { - return _lib._objc_msgSend_12(_id, _lib._sel_isSuspended1); + bool get shouldReportNamespacePrefixes { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldReportNamespacePrefixes1); } - set suspended(bool value) { - return _lib._objc_msgSend_495(_id, _lib._sel_setSuspended_1, value); + set shouldReportNamespacePrefixes(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setShouldReportNamespacePrefixes_1, value); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int get externalEntityResolvingPolicy { + return _lib._objc_msgSend_962( + _id, _lib._sel_externalEntityResolvingPolicy1); } - set name(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + set externalEntityResolvingPolicy(int value) { + return _lib._objc_msgSend_963( + _id, _lib._sel_setExternalEntityResolvingPolicy_1, value); } - int get qualityOfService { - return _lib._objc_msgSend_510(_id, _lib._sel_qualityOfService1); + NSSet? get allowedExternalEntityURLs { + final _ret = + _lib._objc_msgSend_297(_id, _lib._sel_allowedExternalEntityURLs1); + return _ret.address == 0 + ? null + : NSSet._(_ret, _lib, retain: true, release: true); } - set qualityOfService(int value) { - return _lib._objc_msgSend_511(_id, _lib._sel_setQualityOfService_1, value); + set allowedExternalEntityURLs(NSSet? value) { + return _lib._objc_msgSend_964(_id, _lib._sel_setAllowedExternalEntityURLs_1, + value?._id ?? ffi.nullptr); } - NSObject get underlyingQueue { - final _ret = _lib._objc_msgSend_840(_id, _lib._sel_underlyingQueue1); - return NSObject._(_ret, _lib, retain: true, release: true); + bool parse() { + return _lib._objc_msgSend_12(_id, _lib._sel_parse1); } - set underlyingQueue(NSObject value) { - return _lib._objc_msgSend_841( - _id, _lib._sel_setUnderlyingQueue_1, value._id); + void abortParsing() { + _lib._objc_msgSend_1(_id, _lib._sel_abortParsing1); } - void cancelAllOperations() { - _lib._objc_msgSend_1(_id, _lib._sel_cancelAllOperations1); + NSError? get parserError { + final _ret = _lib._objc_msgSend_300(_id, _lib._sel_parserError1); + return _ret.address == 0 + ? null + : NSError._(_ret, _lib, retain: true, release: true); } - void waitUntilAllOperationsAreFinished() { - _lib._objc_msgSend_1(_id, _lib._sel_waitUntilAllOperationsAreFinished1); + bool get shouldResolveExternalEntities { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldResolveExternalEntities1); } - static NSOperationQueue? getCurrentQueue(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_842( - _lib._class_NSOperationQueue1, _lib._sel_currentQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); + set shouldResolveExternalEntities(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setShouldResolveExternalEntities_1, value); } - static NSOperationQueue? getMainQueue(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_842( - _lib._class_NSOperationQueue1, _lib._sel_mainQueue1); + NSString? get publicID { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); return _ret.address == 0 ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get operations { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_operations1); + NSString? get systemID { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - int get operationCount { - return _lib._objc_msgSend_10(_id, _lib._sel_operationCount1); + int get lineNumber { + return _lib._objc_msgSend_78(_id, _lib._sel_lineNumber1); + } + + int get columnNumber { + return _lib._objc_msgSend_78(_id, _lib._sel_columnNumber1); } @override - NSOperationQueue init() { + NSXMLParser init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSOperationQueue._(_ret, _lib, retain: true, release: true); + return NSXMLParser._(_ret, _lib, retain: true, release: true); } - static NSOperationQueue new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_new1); - return NSOperationQueue._(_ret, _lib, retain: false, release: true); + static NSXMLParser new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_new1); + return NSXMLParser._(_ret, _lib, retain: false, release: true); } - static NSOperationQueue allocWithZone_( + static NSXMLParser allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSOperationQueue1, _lib._sel_allocWithZone_1, zone); - return NSOperationQueue._(_ret, _lib, retain: false, release: true); + _lib._class_NSXMLParser1, _lib._sel_allocWithZone_1, zone); + return NSXMLParser._(_ret, _lib, retain: false, release: true); } - static NSOperationQueue alloc(SentryCocoa _lib) { + static NSXMLParser alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_alloc1); - return NSOperationQueue._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_alloc1); + return NSXMLParser._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -61382,7 +69126,7 @@ class NSOperationQueue extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSOperationQueue1, + _lib._class_NSXMLParser1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -61391,24 +69135,24 @@ class NSOperationQueue extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSOperationQueue1, + _lib._objc_msgSend_15(_lib._class_NSXMLParser1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSOperationQueue1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSXMLParser1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSOperationQueue1, _lib._sel_useStoredAccessor1); + _lib._class_NSXMLParser1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSOperationQueue1, + _lib._class_NSXMLParser1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -61417,7 +69161,7 @@ class NSOperationQueue extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSOperationQueue1, + _lib._class_NSXMLParser1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -61425,173 +69169,310 @@ class NSOperationQueue extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSOperationQueue1, + _lib._class_NSXMLParser1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSOperationQueue1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSXMLParser1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSOperationQueue1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSXMLParser1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSOperation extends NSObject { - NSOperation._(ffi.Pointer id, SentryCocoa lib, +abstract class NSXMLParserExternalEntityResolvingPolicy { + static const int NSXMLParserResolveExternalEntitiesNever = 0; + static const int NSXMLParserResolveExternalEntitiesNoNetwork = 1; + static const int NSXMLParserResolveExternalEntitiesSameOriginOnly = 2; + static const int NSXMLParserResolveExternalEntitiesAlways = 3; +} + +class NSFileWrapper extends NSObject { + NSFileWrapper._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSOperation] that points to the same underlying object as [other]. - static NSOperation castFrom(T other) { - return NSOperation._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSFileWrapper] that points to the same underlying object as [other]. + static NSFileWrapper castFrom(T other) { + return NSFileWrapper._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSOperation] that wraps the given raw object pointer. - static NSOperation castFromPointer( + /// Returns a [NSFileWrapper] that wraps the given raw object pointer. + static NSFileWrapper castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSOperation._(other, lib, retain: retain, release: release); + return NSFileWrapper._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSOperation]. + /// Returns whether [obj] is an instance of [NSFileWrapper]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSOperation1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileWrapper1); } - void start() { - _lib._objc_msgSend_1(_id, _lib._sel_start1); + NSFileWrapper initWithURL_options_error_( + NSURL? url, int options, ffi.Pointer> outError) { + final _ret = _lib._objc_msgSend_965( + _id, + _lib._sel_initWithURL_options_error_1, + url?._id ?? ffi.nullptr, + options, + outError); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); } - void main() { - _lib._objc_msgSend_1(_id, _lib._sel_main1); + NSFileWrapper initDirectoryWithFileWrappers_( + NSDictionary? childrenByPreferredName) { + final _ret = _lib._objc_msgSend_149( + _id, + _lib._sel_initDirectoryWithFileWrappers_1, + childrenByPreferredName?._id ?? ffi.nullptr); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); } - bool get cancelled { - return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); + NSFileWrapper initRegularFileWithContents_(NSData? contents) { + final _ret = _lib._objc_msgSend_257(_id, + _lib._sel_initRegularFileWithContents_1, contents?._id ?? ffi.nullptr); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); } - void cancel() { - _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + NSFileWrapper initSymbolicLinkWithDestinationURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_241( + _id, + _lib._sel_initSymbolicLinkWithDestinationURL_1, + url?._id ?? ffi.nullptr); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); } - bool get executing { - return _lib._objc_msgSend_12(_id, _lib._sel_isExecuting1); + NSFileWrapper initWithSerializedRepresentation_( + NSData? serializeRepresentation) { + final _ret = _lib._objc_msgSend_257( + _id, + _lib._sel_initWithSerializedRepresentation_1, + serializeRepresentation?._id ?? ffi.nullptr); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); } - bool get finished { - return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); + NSFileWrapper initWithCoder_(NSCoder? inCoder) { + final _ret = _lib._objc_msgSend_42( + _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); } - bool get concurrent { - return _lib._objc_msgSend_12(_id, _lib._sel_isConcurrent1); + bool get directory { + return _lib._objc_msgSend_12(_id, _lib._sel_isDirectory1); } - bool get asynchronous { - return _lib._objc_msgSend_12(_id, _lib._sel_isAsynchronous1); + bool get regularFile { + return _lib._objc_msgSend_12(_id, _lib._sel_isRegularFile1); } - bool get ready { - return _lib._objc_msgSend_12(_id, _lib._sel_isReady1); + bool get symbolicLink { + return _lib._objc_msgSend_12(_id, _lib._sel_isSymbolicLink1); } - void addDependency_(NSOperation? op) { - _lib._objc_msgSend_836( - _id, _lib._sel_addDependency_1, op?._id ?? ffi.nullptr); + NSString? get preferredFilename { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_preferredFilename1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void removeDependency_(NSOperation? op) { - _lib._objc_msgSend_836( - _id, _lib._sel_removeDependency_1, op?._id ?? ffi.nullptr); + set preferredFilename(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setPreferredFilename_1, value?._id ?? ffi.nullptr); } - NSArray? get dependencies { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_dependencies1); + NSString? get filename { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_filename1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - int get queuePriority { - return _lib._objc_msgSend_837(_id, _lib._sel_queuePriority1); + set filename(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setFilename_1, value?._id ?? ffi.nullptr); } - set queuePriority(int value) { - return _lib._objc_msgSend_838(_id, _lib._sel_setQueuePriority_1, value); + NSDictionary? get fileAttributes { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_fileAttributes1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - ObjCBlock_ffiVoid get completionBlock { - final _ret = _lib._objc_msgSend_621(_id, _lib._sel_completionBlock1); - return ObjCBlock_ffiVoid._(_ret, _lib); + set fileAttributes(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setFileAttributes_1, value?._id ?? ffi.nullptr); } - set completionBlock(ObjCBlock_ffiVoid value) { - return _lib._objc_msgSend_622( - _id, _lib._sel_setCompletionBlock_1, value._id); + bool matchesContentsOfURL_(NSURL? url) { + return _lib._objc_msgSend_244( + _id, _lib._sel_matchesContentsOfURL_1, url?._id ?? ffi.nullptr); } - void waitUntilFinished() { - _lib._objc_msgSend_1(_id, _lib._sel_waitUntilFinished1); + bool readFromURL_options_error_( + NSURL? url, int options, ffi.Pointer> outError) { + return _lib._objc_msgSend_966(_id, _lib._sel_readFromURL_options_error_1, + url?._id ?? ffi.nullptr, options, outError); } - double get threadPriority { - return _lib._objc_msgSend_155(_id, _lib._sel_threadPriority1); + bool writeToURL_options_originalContentsURL_error_( + NSURL? url, + int options, + NSURL? originalContentsURL, + ffi.Pointer> outError) { + return _lib._objc_msgSend_967( + _id, + _lib._sel_writeToURL_options_originalContentsURL_error_1, + url?._id ?? ffi.nullptr, + options, + originalContentsURL?._id ?? ffi.nullptr, + outError); } - set threadPriority(double value) { - return _lib._objc_msgSend_509(_id, _lib._sel_setThreadPriority_1, value); + NSData? get serializedRepresentation { + final _ret = + _lib._objc_msgSend_39(_id, _lib._sel_serializedRepresentation1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - int get qualityOfService { - return _lib._objc_msgSend_510(_id, _lib._sel_qualityOfService1); + NSString addFileWrapper_(NSFileWrapper? child) { + final _ret = _lib._objc_msgSend_968( + _id, _lib._sel_addFileWrapper_1, child?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - set qualityOfService(int value) { - return _lib._objc_msgSend_511(_id, _lib._sel_setQualityOfService_1, value); + NSString addRegularFileWithContents_preferredFilename_( + NSData? data, NSString? fileName) { + final _ret = _lib._objc_msgSend_969( + _id, + _lib._sel_addRegularFileWithContents_preferredFilename_1, + data?._id ?? ffi.nullptr, + fileName?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + void removeFileWrapper_(NSFileWrapper? child) { + _lib._objc_msgSend_970( + _id, _lib._sel_removeFileWrapper_1, child?._id ?? ffi.nullptr); + } + + NSDictionary? get fileWrappers { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_fileWrappers1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - set name(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + NSString keyForFileWrapper_(NSFileWrapper? child) { + final _ret = _lib._objc_msgSend_968( + _id, _lib._sel_keyForFileWrapper_1, child?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSData? get regularFileContents { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_regularFileContents1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + NSURL? get symbolicLinkDestinationURL { + final _ret = + _lib._objc_msgSend_40(_id, _lib._sel_symbolicLinkDestinationURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); + } + + NSObject initWithPath_(NSString? path) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithPath_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + NSObject initSymbolicLinkWithDestination_(NSString? path) { + final _ret = _lib._objc_msgSend_30(_id, + _lib._sel_initSymbolicLinkWithDestination_1, path?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + bool needsToBeUpdatedFromPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_needsToBeUpdatedFromPath_1, path?._id ?? ffi.nullptr); + } + + bool updateFromPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_updateFromPath_1, path?._id ?? ffi.nullptr); + } + + bool writeToFile_atomically_updateFilenames_( + NSString? path, bool atomicFlag, bool updateFilenamesFlag) { + return _lib._objc_msgSend_971( + _id, + _lib._sel_writeToFile_atomically_updateFilenames_1, + path?._id ?? ffi.nullptr, + atomicFlag, + updateFilenamesFlag); + } + + NSString addFileWithPath_(NSString? path) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_addFileWithPath_1, path?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString addSymbolicLinkWithDestination_preferredFilename_( + NSString? path, NSString? filename) { + final _ret = _lib._objc_msgSend_341( + _id, + _lib._sel_addSymbolicLinkWithDestination_preferredFilename_1, + path?._id ?? ffi.nullptr, + filename?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSString symbolicLinkDestination() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_symbolicLinkDestination1); + return NSString._(_ret, _lib, retain: true, release: true); } @override - NSOperation init() { + NSFileWrapper init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSOperation._(_ret, _lib, retain: true, release: true); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); } - static NSOperation new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_new1); - return NSOperation._(_ret, _lib, retain: false, release: true); + static NSFileWrapper new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_new1); + return NSFileWrapper._(_ret, _lib, retain: false, release: true); } - static NSOperation allocWithZone_( + static NSFileWrapper allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSOperation1, _lib._sel_allocWithZone_1, zone); - return NSOperation._(_ret, _lib, retain: false, release: true); + _lib._class_NSFileWrapper1, _lib._sel_allocWithZone_1, zone); + return NSFileWrapper._(_ret, _lib, retain: false, release: true); } - static NSOperation alloc(SentryCocoa _lib) { + static NSFileWrapper alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_alloc1); - return NSOperation._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_alloc1); + return NSFileWrapper._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -61600,7 +69481,7 @@ class NSOperation extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSOperation1, + _lib._class_NSFileWrapper1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -61609,24 +69490,24 @@ class NSOperation extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSOperation1, + _lib._objc_msgSend_15(_lib._class_NSFileWrapper1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSOperation1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSFileWrapper1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSOperation1, _lib._sel_useStoredAccessor1); + _lib._class_NSFileWrapper1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSOperation1, + _lib._class_NSFileWrapper1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -61635,7 +69516,7 @@ class NSOperation extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSOperation1, + _lib._class_NSFileWrapper1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -61643,7 +69524,7 @@ class NSOperation extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSOperation1, + _lib._class_NSFileWrapper1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -61651,171 +69532,357 @@ class NSOperation extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSOperation1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSFileWrapper1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSOperation1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSFileWrapper1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSOperationQueuePriority { - static const int NSOperationQueuePriorityVeryLow = -8; - static const int NSOperationQueuePriorityLow = -4; - static const int NSOperationQueuePriorityNormal = 0; - static const int NSOperationQueuePriorityHigh = 4; - static const int NSOperationQueuePriorityVeryHigh = 8; +abstract class NSFileWrapperReadingOptions { + static const int NSFileWrapperReadingImmediate = 1; + static const int NSFileWrapperReadingWithoutMapping = 2; } -class NSPointerArray extends NSObject { - NSPointerArray._(ffi.Pointer id, SentryCocoa lib, +abstract class NSFileWrapperWritingOptions { + static const int NSFileWrapperWritingAtomic = 1; + static const int NSFileWrapperWritingWithNameUpdating = 2; +} + +class NSURLSession extends NSObject { + NSURLSession._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSPointerArray] that points to the same underlying object as [other]. - static NSPointerArray castFrom(T other) { - return NSPointerArray._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSURLSession] that points to the same underlying object as [other]. + static NSURLSession castFrom(T other) { + return NSURLSession._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSPointerArray] that wraps the given raw object pointer. - static NSPointerArray castFromPointer( + /// Returns a [NSURLSession] that wraps the given raw object pointer. + static NSURLSession castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSPointerArray._(other, lib, retain: retain, release: release); + return NSURLSession._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSPointerArray]. + /// Returns whether [obj] is an instance of [NSURLSession]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSPointerArray1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLSession1); } - NSPointerArray initWithOptions_(int options) { - final _ret = - _lib._objc_msgSend_843(_id, _lib._sel_initWithOptions_1, options); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + static NSURLSession? getSharedSession(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_972( + _lib._class_NSURLSession1, _lib._sel_sharedSession1); + return _ret.address == 0 + ? null + : NSURLSession._(_ret, _lib, retain: true, release: true); } - NSPointerArray initWithPointerFunctions_(NSPointerFunctions? functions) { - final _ret = _lib._objc_msgSend_857(_id, - _lib._sel_initWithPointerFunctions_1, functions?._id ?? ffi.nullptr); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + static NSURLSession sessionWithConfiguration_( + SentryCocoa _lib, NSURLSessionConfiguration? configuration) { + final _ret = _lib._objc_msgSend_983( + _lib._class_NSURLSession1, + _lib._sel_sessionWithConfiguration_1, + configuration?._id ?? ffi.nullptr); + return NSURLSession._(_ret, _lib, retain: true, release: true); } - static NSPointerArray pointerArrayWithOptions_( - SentryCocoa _lib, int options) { - final _ret = _lib._objc_msgSend_858(_lib._class_NSPointerArray1, - _lib._sel_pointerArrayWithOptions_1, options); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + static NSURLSession sessionWithConfiguration_delegate_delegateQueue_( + SentryCocoa _lib, + NSURLSessionConfiguration? configuration, + NSObject? delegate, + NSOperationQueue? queue) { + final _ret = _lib._objc_msgSend_984( + _lib._class_NSURLSession1, + _lib._sel_sessionWithConfiguration_delegate_delegateQueue_1, + configuration?._id ?? ffi.nullptr, + delegate?._id ?? ffi.nullptr, + queue?._id ?? ffi.nullptr); + return NSURLSession._(_ret, _lib, retain: true, release: true); } - static NSPointerArray pointerArrayWithPointerFunctions_( - SentryCocoa _lib, NSPointerFunctions? functions) { - final _ret = _lib._objc_msgSend_859( - _lib._class_NSPointerArray1, - _lib._sel_pointerArrayWithPointerFunctions_1, - functions?._id ?? ffi.nullptr); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + NSOperationQueue? get delegateQueue { + final _ret = _lib._objc_msgSend_854(_id, _lib._sel_delegateQueue1); + return _ret.address == 0 + ? null + : NSOperationQueue._(_ret, _lib, retain: true, release: true); } - NSPointerFunctions? get pointerFunctions { - final _ret = _lib._objc_msgSend_860(_id, _lib._sel_pointerFunctions1); + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); return _ret.address == 0 ? null - : NSPointerFunctions._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - ffi.Pointer pointerAtIndex_(int index) { - return _lib._objc_msgSend_286(_id, _lib._sel_pointerAtIndex_1, index); + NSURLSessionConfiguration? get configuration { + final _ret = _lib._objc_msgSend_973(_id, _lib._sel_configuration1); + return _ret.address == 0 + ? null + : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - void addPointer_(ffi.Pointer pointer) { - _lib._objc_msgSend_47(_id, _lib._sel_addPointer_1, pointer); + NSString? get sessionDescription { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sessionDescription1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set sessionDescription(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setSessionDescription_1, value?._id ?? ffi.nullptr); + } + + void finishTasksAndInvalidate() { + _lib._objc_msgSend_1(_id, _lib._sel_finishTasksAndInvalidate1); + } + + void invalidateAndCancel() { + _lib._objc_msgSend_1(_id, _lib._sel_invalidateAndCancel1); + } + + void resetWithCompletionHandler_(ObjCBlock_ffiVoid completionHandler) { + _lib._objc_msgSend_513( + _id, _lib._sel_resetWithCompletionHandler_1, completionHandler._id); + } + + void flushWithCompletionHandler_(ObjCBlock_ffiVoid completionHandler) { + _lib._objc_msgSend_513( + _id, _lib._sel_flushWithCompletionHandler_1, completionHandler._id); + } + + void getTasksWithCompletionHandler_( + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray completionHandler) { + _lib._objc_msgSend_985( + _id, _lib._sel_getTasksWithCompletionHandler_1, completionHandler._id); + } + + void getAllTasksWithCompletionHandler_( + ObjCBlock_ffiVoid_NSArray completionHandler) { + _lib._objc_msgSend_986(_id, _lib._sel_getAllTasksWithCompletionHandler_1, + completionHandler._id); + } + + NSURLSessionDataTask dataTaskWithRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_987( + _id, _lib._sel_dataTaskWithRequest_1, request?._id ?? ffi.nullptr); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionDataTask dataTaskWithURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_988( + _id, _lib._sel_dataTaskWithURL_1, url?._id ?? ffi.nullptr); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionUploadTask uploadTaskWithRequest_fromFile_( + NSURLRequest? request, NSURL? fileURL) { + final _ret = _lib._objc_msgSend_990( + _id, + _lib._sel_uploadTaskWithRequest_fromFile_1, + request?._id ?? ffi.nullptr, + fileURL?._id ?? ffi.nullptr); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionUploadTask uploadTaskWithRequest_fromData_( + NSURLRequest? request, NSData? bodyData) { + final _ret = _lib._objc_msgSend_991( + _id, + _lib._sel_uploadTaskWithRequest_fromData_1, + request?._id ?? ffi.nullptr, + bodyData?._id ?? ffi.nullptr); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionUploadTask uploadTaskWithResumeData_(NSData? resumeData) { + final _ret = _lib._objc_msgSend_992(_id, + _lib._sel_uploadTaskWithResumeData_1, resumeData?._id ?? ffi.nullptr); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionUploadTask uploadTaskWithStreamedRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_993(_id, + _lib._sel_uploadTaskWithStreamedRequest_1, request?._id ?? ffi.nullptr); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionDownloadTask downloadTaskWithRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_994( + _id, _lib._sel_downloadTaskWithRequest_1, request?._id ?? ffi.nullptr); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionDownloadTask downloadTaskWithURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_995( + _id, _lib._sel_downloadTaskWithURL_1, url?._id ?? ffi.nullptr); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionDownloadTask downloadTaskWithResumeData_(NSData? resumeData) { + final _ret = _lib._objc_msgSend_996(_id, + _lib._sel_downloadTaskWithResumeData_1, resumeData?._id ?? ffi.nullptr); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionStreamTask streamTaskWithHostName_port_( + NSString? hostname, int port) { + final _ret = _lib._objc_msgSend_999( + _id, + _lib._sel_streamTaskWithHostName_port_1, + hostname?._id ?? ffi.nullptr, + port); + return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); + } + + NSURLSessionStreamTask streamTaskWithNetService_(NSNetService? service) { + final _ret = _lib._objc_msgSend_1005( + _id, _lib._sel_streamTaskWithNetService_1, service?._id ?? ffi.nullptr); + return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); } - void removePointerAtIndex_(int index) { - _lib._objc_msgSend_441(_id, _lib._sel_removePointerAtIndex_1, index); + NSURLSessionWebSocketTask webSocketTaskWithURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_1012( + _id, _lib._sel_webSocketTaskWithURL_1, url?._id ?? ffi.nullptr); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } - void insertPointer_atIndex_(ffi.Pointer item, int index) { - _lib._objc_msgSend_21(_id, _lib._sel_insertPointer_atIndex_1, item, index); + NSURLSessionWebSocketTask webSocketTaskWithURL_protocols_( + NSURL? url, NSArray? protocols) { + final _ret = _lib._objc_msgSend_1013( + _id, + _lib._sel_webSocketTaskWithURL_protocols_1, + url?._id ?? ffi.nullptr, + protocols?._id ?? ffi.nullptr); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } - void replacePointerAtIndex_withPointer_( - int index, ffi.Pointer item) { - _lib._objc_msgSend_861( - _id, _lib._sel_replacePointerAtIndex_withPointer_1, index, item); + NSURLSessionWebSocketTask webSocketTaskWithRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_1014( + _id, _lib._sel_webSocketTaskWithRequest_1, request?._id ?? ffi.nullptr); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } - void compact() { - _lib._objc_msgSend_1(_id, _lib._sel_compact1); + @override + NSURLSession init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSession._(_ret, _lib, retain: true, release: true); } - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); + static NSURLSession new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_new1); + return NSURLSession._(_ret, _lib, retain: false, release: true); } - set count(int value) { - return _lib._objc_msgSend_486(_id, _lib._sel_setCount_1, value); + NSURLSessionDataTask dataTaskWithRequest_completionHandler_( + NSURLRequest? request, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1015( + _id, + _lib._sel_dataTaskWithRequest_completionHandler_1, + request?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - static NSObject pointerArrayWithStrongObjects(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSPointerArray1, _lib._sel_pointerArrayWithStrongObjects1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSURLSessionDataTask dataTaskWithURL_completionHandler_(NSURL? url, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1016( + _id, + _lib._sel_dataTaskWithURL_completionHandler_1, + url?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - static NSObject pointerArrayWithWeakObjects(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSPointerArray1, _lib._sel_pointerArrayWithWeakObjects1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSURLSessionUploadTask uploadTaskWithRequest_fromFile_completionHandler_( + NSURLRequest? request, + NSURL? fileURL, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1017( + _id, + _lib._sel_uploadTaskWithRequest_fromFile_completionHandler_1, + request?._id ?? ffi.nullptr, + fileURL?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - static NSPointerArray strongObjectsPointerArray(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_862( - _lib._class_NSPointerArray1, _lib._sel_strongObjectsPointerArray1); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + NSURLSessionUploadTask uploadTaskWithRequest_fromData_completionHandler_( + NSURLRequest? request, + NSData? bodyData, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1018( + _id, + _lib._sel_uploadTaskWithRequest_fromData_completionHandler_1, + request?._id ?? ffi.nullptr, + bodyData?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - static NSPointerArray weakObjectsPointerArray(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_862( - _lib._class_NSPointerArray1, _lib._sel_weakObjectsPointerArray1); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + NSURLSessionUploadTask uploadTaskWithResumeData_completionHandler_( + NSData? resumeData, + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1019( + _id, + _lib._sel_uploadTaskWithResumeData_completionHandler_1, + resumeData?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - NSArray? get allObjects { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_allObjects1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + NSURLSessionDownloadTask downloadTaskWithRequest_completionHandler_( + NSURLRequest? request, + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1020( + _id, + _lib._sel_downloadTaskWithRequest_completionHandler_1, + request?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - @override - NSPointerArray init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + NSURLSessionDownloadTask downloadTaskWithURL_completionHandler_(NSURL? url, + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1021( + _id, + _lib._sel_downloadTaskWithURL_completionHandler_1, + url?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - static NSPointerArray new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPointerArray1, _lib._sel_new1); - return NSPointerArray._(_ret, _lib, retain: false, release: true); + NSURLSessionDownloadTask downloadTaskWithResumeData_completionHandler_( + NSData? resumeData, + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { + final _ret = _lib._objc_msgSend_1022( + _id, + _lib._sel_downloadTaskWithResumeData_completionHandler_1, + resumeData?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - static NSPointerArray allocWithZone_( + static NSURLSession allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSPointerArray1, _lib._sel_allocWithZone_1, zone); - return NSPointerArray._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLSession1, _lib._sel_allocWithZone_1, zone); + return NSURLSession._(_ret, _lib, retain: false, release: true); } - static NSPointerArray alloc(SentryCocoa _lib) { + static NSURLSession alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSPointerArray1, _lib._sel_alloc1); - return NSPointerArray._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_alloc1); + return NSURLSession._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -61824,7 +69891,7 @@ class NSPointerArray extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSPointerArray1, + _lib._class_NSURLSession1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -61833,24 +69900,24 @@ class NSPointerArray extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSPointerArray1, + _lib._objc_msgSend_15(_lib._class_NSURLSession1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSPointerArray1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSURLSession1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSPointerArray1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSession1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSPointerArray1, + _lib._class_NSURLSession1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -61859,7 +69926,7 @@ class NSPointerArray extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSPointerArray1, + _lib._class_NSURLSession1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -61867,7 +69934,7 @@ class NSPointerArray extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSPointerArray1, + _lib._class_NSURLSession1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -61875,556 +69942,417 @@ class NSPointerArray extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSPointerArray1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSURLSession1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSPointerArray1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLSession1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSPointerFunctionsOptions { - static const int NSPointerFunctionsStrongMemory = 0; - static const int NSPointerFunctionsZeroingWeakMemory = 1; - static const int NSPointerFunctionsOpaqueMemory = 2; - static const int NSPointerFunctionsMallocMemory = 3; - static const int NSPointerFunctionsMachVirtualMemory = 4; - static const int NSPointerFunctionsWeakMemory = 5; - static const int NSPointerFunctionsObjectPersonality = 0; - static const int NSPointerFunctionsOpaquePersonality = 256; - static const int NSPointerFunctionsObjectPointerPersonality = 512; - static const int NSPointerFunctionsCStringPersonality = 768; - static const int NSPointerFunctionsStructPersonality = 1024; - static const int NSPointerFunctionsIntegerPersonality = 1280; - static const int NSPointerFunctionsCopyIn = 65536; -} - -class NSPointerFunctions extends NSObject { - NSPointerFunctions._(ffi.Pointer id, SentryCocoa lib, +class NSURLSessionConfiguration extends NSObject { + NSURLSessionConfiguration._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSPointerFunctions] that points to the same underlying object as [other]. - static NSPointerFunctions castFrom(T other) { - return NSPointerFunctions._(other._id, other._lib, + /// Returns a [NSURLSessionConfiguration] that points to the same underlying object as [other]. + static NSURLSessionConfiguration castFrom(T other) { + return NSURLSessionConfiguration._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSPointerFunctions] that wraps the given raw object pointer. - static NSPointerFunctions castFromPointer( + /// Returns a [NSURLSessionConfiguration] that wraps the given raw object pointer. + static NSURLSessionConfiguration castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSPointerFunctions._(other, lib, retain: retain, release: release); + return NSURLSessionConfiguration._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSPointerFunctions]. + /// Returns whether [obj] is an instance of [NSURLSessionConfiguration]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSPointerFunctions1); - } - - NSPointerFunctions initWithOptions_(int options) { - final _ret = - _lib._objc_msgSend_843(_id, _lib._sel_initWithOptions_1, options); - return NSPointerFunctions._(_ret, _lib, retain: true, release: true); - } - - static NSPointerFunctions pointerFunctionsWithOptions_( - SentryCocoa _lib, int options) { - final _ret = _lib._objc_msgSend_844(_lib._class_NSPointerFunctions1, - _lib._sel_pointerFunctionsWithOptions_1, options); - return NSPointerFunctions._(_ret, _lib, retain: true, release: true); - } - - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>> - get hashFunction { - return _lib._objc_msgSend_845(_id, _lib._sel_hashFunction1); - } - - set hashFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - value) { - return _lib._objc_msgSend_846(_id, _lib._sel_setHashFunction_1, value); - } - - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>> - get isEqualFunction { - return _lib._objc_msgSend_847(_id, _lib._sel_isEqualFunction1); - } - - set isEqualFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - value) { - return _lib._objc_msgSend_848(_id, _lib._sel_setIsEqualFunction_1, value); - } - - ffi.Pointer< - ffi.NativeFunction)>> - get sizeFunction { - return _lib._objc_msgSend_849(_id, _lib._sel_sizeFunction1); + obj._lib._class_NSURLSessionConfiguration1); } - set sizeFunction( - ffi.Pointer< - ffi - .NativeFunction)>> - value) { - return _lib._objc_msgSend_850(_id, _lib._sel_setSizeFunction_1, value); + static NSURLSessionConfiguration? getDefaultSessionConfiguration( + SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_973(_lib._class_NSURLSessionConfiguration1, + _lib._sel_defaultSessionConfiguration1); + return _ret.address == 0 + ? null + : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> - get descriptionFunction { - return _lib._objc_msgSend_851(_id, _lib._sel_descriptionFunction1); + static NSURLSessionConfiguration? getEphemeralSessionConfiguration( + SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_973(_lib._class_NSURLSessionConfiguration1, + _lib._sel_ephemeralSessionConfiguration1); + return _ret.address == 0 + ? null + : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - set descriptionFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> - value) { - return _lib._objc_msgSend_852( - _id, _lib._sel_setDescriptionFunction_1, value); + static NSURLSessionConfiguration + backgroundSessionConfigurationWithIdentifier_( + SentryCocoa _lib, NSString? identifier) { + final _ret = _lib._objc_msgSend_974( + _lib._class_NSURLSessionConfiguration1, + _lib._sel_backgroundSessionConfigurationWithIdentifier_1, + identifier?._id ?? ffi.nullptr); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>> - get relinquishFunction { - return _lib._objc_msgSend_853(_id, _lib._sel_relinquishFunction1); + NSString? get identifier { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_identifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - set relinquishFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - value) { - return _lib._objc_msgSend_854( - _id, _lib._sel_setRelinquishFunction_1, value); + int get requestCachePolicy { + return _lib._objc_msgSend_802(_id, _lib._sel_requestCachePolicy1); } - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>, - ffi.Bool)>> get acquireFunction { - return _lib._objc_msgSend_855(_id, _lib._sel_acquireFunction1); + set requestCachePolicy(int value) { + return _lib._objc_msgSend_951( + _id, _lib._sel_setRequestCachePolicy_1, value); } - set acquireFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>, - ffi.Bool)>> - value) { - return _lib._objc_msgSend_856(_id, _lib._sel_setAcquireFunction_1, value); + double get timeoutIntervalForRequest { + return _lib._objc_msgSend_155(_id, _lib._sel_timeoutIntervalForRequest1); } - bool get usesStrongWriteBarrier { - return _lib._objc_msgSend_12(_id, _lib._sel_usesStrongWriteBarrier1); + set timeoutIntervalForRequest(double value) { + return _lib._objc_msgSend_522( + _id, _lib._sel_setTimeoutIntervalForRequest_1, value); } - set usesStrongWriteBarrier(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setUsesStrongWriteBarrier_1, value); + double get timeoutIntervalForResource { + return _lib._objc_msgSend_155(_id, _lib._sel_timeoutIntervalForResource1); } - bool get usesWeakReadAndWriteBarriers { - return _lib._objc_msgSend_12(_id, _lib._sel_usesWeakReadAndWriteBarriers1); + set timeoutIntervalForResource(double value) { + return _lib._objc_msgSend_522( + _id, _lib._sel_setTimeoutIntervalForResource_1, value); } - set usesWeakReadAndWriteBarriers(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setUsesWeakReadAndWriteBarriers_1, value); + int get networkServiceType { + return _lib._objc_msgSend_803(_id, _lib._sel_networkServiceType1); } - @override - NSPointerFunctions init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSPointerFunctions._(_ret, _lib, retain: true, release: true); + set networkServiceType(int value) { + return _lib._objc_msgSend_952( + _id, _lib._sel_setNetworkServiceType_1, value); } - static NSPointerFunctions new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_new1); - return NSPointerFunctions._(_ret, _lib, retain: false, release: true); + bool get allowsCellularAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); } - static NSPointerFunctions allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSPointerFunctions1, _lib._sel_allocWithZone_1, zone); - return NSPointerFunctions._(_ret, _lib, retain: false, release: true); + set allowsCellularAccess(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setAllowsCellularAccess_1, value); } - static NSPointerFunctions alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_alloc1); - return NSPointerFunctions._(_ret, _lib, retain: false, release: true); + bool get allowsExpensiveNetworkAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSPointerFunctions1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + set allowsExpensiveNetworkAccess(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSPointerFunctions1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + bool get allowsConstrainedNetworkAccess { + return _lib._objc_msgSend_12( + _id, _lib._sel_allowsConstrainedNetworkAccess1); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSPointerFunctions1, - _lib._sel_accessInstanceVariablesDirectly1); + set allowsConstrainedNetworkAccess(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); } - static bool useStoredAccessor(SentryCocoa _lib) { + bool get allowsUltraConstrainedNetworkAccess { return _lib._objc_msgSend_12( - _lib._class_NSPointerFunctions1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSPointerFunctions1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + _id, _lib._sel_allowsUltraConstrainedNetworkAccess1); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSPointerFunctions1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + set allowsUltraConstrainedNetworkAccess(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setAllowsUltraConstrainedNetworkAccess_1, value); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSPointerFunctions1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSPointerFunctions1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + set requiresDNSSECValidation(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setRequiresDNSSECValidation_1, value); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSPointerFunctions1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + bool get waitsForConnectivity { + return _lib._objc_msgSend_12(_id, _lib._sel_waitsForConnectivity1); } -} - -class NSProcessInfo extends NSObject { - NSProcessInfo._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSProcessInfo] that points to the same underlying object as [other]. - static NSProcessInfo castFrom(T other) { - return NSProcessInfo._(other._id, other._lib, retain: true, release: true); + set waitsForConnectivity(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setWaitsForConnectivity_1, value); } - /// Returns a [NSProcessInfo] that wraps the given raw object pointer. - static NSProcessInfo castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSProcessInfo._(other, lib, retain: retain, release: release); + bool get discretionary { + return _lib._objc_msgSend_12(_id, _lib._sel_isDiscretionary1); } - /// Returns whether [obj] is an instance of [NSProcessInfo]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProcessInfo1); + set discretionary(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setDiscretionary_1, value); } - static NSProcessInfo? getProcessInfo(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_863( - _lib._class_NSProcessInfo1, _lib._sel_processInfo1); + NSString? get sharedContainerIdentifier { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_sharedContainerIdentifier1); return _ret.address == 0 ? null - : NSProcessInfo._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSDictionary? get environment { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_environment1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + set sharedContainerIdentifier(NSString? value) { + return _lib._objc_msgSend_444(_id, _lib._sel_setSharedContainerIdentifier_1, + value?._id ?? ffi.nullptr); } - NSArray? get arguments { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_arguments1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + bool get sessionSendsLaunchEvents { + return _lib._objc_msgSend_12(_id, _lib._sel_sessionSendsLaunchEvents1); } - NSString? get hostName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_hostName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set sessionSendsLaunchEvents(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setSessionSendsLaunchEvents_1, value); } - NSString? get processName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_processName1); + NSDictionary? get connectionProxyDictionary { + final _ret = + _lib._objc_msgSend_170(_id, _lib._sel_connectionProxyDictionary1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set connectionProxyDictionary(NSDictionary? value) { + return _lib._objc_msgSend_171(_id, _lib._sel_setConnectionProxyDictionary_1, + value?._id ?? ffi.nullptr); } - set processName(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setProcessName_1, value?._id ?? ffi.nullptr); + int get TLSMinimumSupportedProtocol { + return _lib._objc_msgSend_975(_id, _lib._sel_TLSMinimumSupportedProtocol1); } - int get processIdentifier { - return _lib._objc_msgSend_219(_id, _lib._sel_processIdentifier1); + set TLSMinimumSupportedProtocol(int value) { + return _lib._objc_msgSend_976( + _id, _lib._sel_setTLSMinimumSupportedProtocol_1, value); } - NSString? get globallyUniqueString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_globallyUniqueString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + int get TLSMaximumSupportedProtocol { + return _lib._objc_msgSend_975(_id, _lib._sel_TLSMaximumSupportedProtocol1); } - int operatingSystem() { - return _lib._objc_msgSend_10(_id, _lib._sel_operatingSystem1); + set TLSMaximumSupportedProtocol(int value) { + return _lib._objc_msgSend_976( + _id, _lib._sel_setTLSMaximumSupportedProtocol_1, value); } - NSString operatingSystemName() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemName1); - return NSString._(_ret, _lib, retain: true, release: true); + int get TLSMinimumSupportedProtocolVersion { + return _lib._objc_msgSend_977( + _id, _lib._sel_TLSMinimumSupportedProtocolVersion1); } - NSString? get operatingSystemVersionString { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemVersionString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set TLSMinimumSupportedProtocolVersion(int value) { + return _lib._objc_msgSend_978( + _id, _lib._sel_setTLSMinimumSupportedProtocolVersion_1, value); } - void getOperatingSystemVersion(ffi.Pointer stret) { - _lib._objc_msgSend_864(stret, _id, _lib._sel_operatingSystemVersion1); + int get TLSMaximumSupportedProtocolVersion { + return _lib._objc_msgSend_977( + _id, _lib._sel_TLSMaximumSupportedProtocolVersion1); } - int get processorCount { - return _lib._objc_msgSend_10(_id, _lib._sel_processorCount1); + set TLSMaximumSupportedProtocolVersion(int value) { + return _lib._objc_msgSend_978( + _id, _lib._sel_setTLSMaximumSupportedProtocolVersion_1, value); } - int get activeProcessorCount { - return _lib._objc_msgSend_10(_id, _lib._sel_activeProcessorCount1); + bool get HTTPShouldUsePipelining { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); } - int get physicalMemory { - return _lib._objc_msgSend_154(_id, _lib._sel_physicalMemory1); + set HTTPShouldUsePipelining(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setHTTPShouldUsePipelining_1, value); } - bool isOperatingSystemAtLeastVersion_(NSOperatingSystemVersion version) { - return _lib._objc_msgSend_865( - _id, _lib._sel_isOperatingSystemAtLeastVersion_1, version); + bool get HTTPShouldSetCookies { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldSetCookies1); } - double get systemUptime { - return _lib._objc_msgSend_155(_id, _lib._sel_systemUptime1); + set HTTPShouldSetCookies(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setHTTPShouldSetCookies_1, value); } - void disableSuddenTermination() { - _lib._objc_msgSend_1(_id, _lib._sel_disableSuddenTermination1); + int get HTTPCookieAcceptPolicy { + return _lib._objc_msgSend_799(_id, _lib._sel_HTTPCookieAcceptPolicy1); } - void enableSuddenTermination() { - _lib._objc_msgSend_1(_id, _lib._sel_enableSuddenTermination1); + set HTTPCookieAcceptPolicy(int value) { + return _lib._objc_msgSend_800( + _id, _lib._sel_setHTTPCookieAcceptPolicy_1, value); } - void disableAutomaticTermination_(NSString? reason) { - _lib._objc_msgSend_192(_id, _lib._sel_disableAutomaticTermination_1, - reason?._id ?? ffi.nullptr); + NSDictionary? get HTTPAdditionalHeaders { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_HTTPAdditionalHeaders1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - void enableAutomaticTermination_(NSString? reason) { - _lib._objc_msgSend_192(_id, _lib._sel_enableAutomaticTermination_1, - reason?._id ?? ffi.nullptr); + set HTTPAdditionalHeaders(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setHTTPAdditionalHeaders_1, value?._id ?? ffi.nullptr); } - bool get automaticTerminationSupportEnabled { - return _lib._objc_msgSend_12( - _id, _lib._sel_automaticTerminationSupportEnabled1); + int get HTTPMaximumConnectionsPerHost { + return _lib._objc_msgSend_78(_id, _lib._sel_HTTPMaximumConnectionsPerHost1); } - set automaticTerminationSupportEnabled(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setAutomaticTerminationSupportEnabled_1, value); + set HTTPMaximumConnectionsPerHost(int value) { + return _lib._objc_msgSend_605( + _id, _lib._sel_setHTTPMaximumConnectionsPerHost_1, value); } - NSObject beginActivityWithOptions_reason_(int options, NSString? reason) { - final _ret = _lib._objc_msgSend_866( - _id, - _lib._sel_beginActivityWithOptions_reason_1, - options, - reason?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSHTTPCookieStorage? get HTTPCookieStorage { + final _ret = _lib._objc_msgSend_793(_id, _lib._sel_HTTPCookieStorage1); + return _ret.address == 0 + ? null + : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } - void endActivity_(NSObject? activity) { - _lib._objc_msgSend_15( - _id, _lib._sel_endActivity_1, activity?._id ?? ffi.nullptr); + set HTTPCookieStorage(NSHTTPCookieStorage? value) { + return _lib._objc_msgSend_979( + _id, _lib._sel_setHTTPCookieStorage_1, value?._id ?? ffi.nullptr); } - void performActivityWithOptions_reason_usingBlock_( - int options, NSString? reason, ObjCBlock_ffiVoid block) { - _lib._objc_msgSend_867( - _id, - _lib._sel_performActivityWithOptions_reason_usingBlock_1, - options, - reason?._id ?? ffi.nullptr, - block._id); + NSURLCredentialStorage? get URLCredentialStorage { + final _ret = _lib._objc_msgSend_937(_id, _lib._sel_URLCredentialStorage1); + return _ret.address == 0 + ? null + : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); } - void performExpiringActivityWithReason_usingBlock_( - NSString? reason, ObjCBlock_ffiVoid_bool block) { - _lib._objc_msgSend_868( - _id, - _lib._sel_performExpiringActivityWithReason_usingBlock_1, - reason?._id ?? ffi.nullptr, - block._id); + set URLCredentialStorage(NSURLCredentialStorage? value) { + return _lib._objc_msgSend_980( + _id, _lib._sel_setURLCredentialStorage_1, value?._id ?? ffi.nullptr); } - NSString? get userName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_userName1); + NSURLCache? get URLCache { + final _ret = _lib._objc_msgSend_907(_id, _lib._sel_URLCache1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSURLCache._(_ret, _lib, retain: true, release: true); } - NSString? get fullUserName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fullUserName1); + set URLCache(NSURLCache? value) { + return _lib._objc_msgSend_908( + _id, _lib._sel_setURLCache_1, value?._id ?? ffi.nullptr); + } + + bool get shouldUseExtendedBackgroundIdleMode { + return _lib._objc_msgSend_12( + _id, _lib._sel_shouldUseExtendedBackgroundIdleMode1); + } + + set shouldUseExtendedBackgroundIdleMode(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setShouldUseExtendedBackgroundIdleMode_1, value); + } + + NSArray? get protocolClasses { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_protocolClasses1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - int get thermalState { - return _lib._objc_msgSend_869(_id, _lib._sel_thermalState1); + set protocolClasses(NSArray? value) { + return _lib._objc_msgSend_751( + _id, _lib._sel_setProtocolClasses_1, value?._id ?? ffi.nullptr); } - bool get lowPowerModeEnabled { - return _lib._objc_msgSend_12(_id, _lib._sel_isLowPowerModeEnabled1); + int get multipathServiceType { + return _lib._objc_msgSend_981(_id, _lib._sel_multipathServiceType1); } - bool get macCatalystApp { - return _lib._objc_msgSend_12(_id, _lib._sel_isMacCatalystApp1); + set multipathServiceType(int value) { + return _lib._objc_msgSend_982( + _id, _lib._sel_setMultipathServiceType_1, value); } - bool get iOSAppOnMac { - return _lib._objc_msgSend_12(_id, _lib._sel_isiOSAppOnMac1); + bool get usesClassicLoadingMode { + return _lib._objc_msgSend_12(_id, _lib._sel_usesClassicLoadingMode1); } - NSString? get processDirectoryPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_processDirectoryPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set usesClassicLoadingMode(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setUsesClassicLoadingMode_1, value); } - NSString? get processPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_processPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool get enablesEarlyData { + return _lib._objc_msgSend_12(_id, _lib._sel_enablesEarlyData1); + } + + set enablesEarlyData(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setEnablesEarlyData_1, value); } @override - NSProcessInfo init() { + NSURLSessionConfiguration init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSProcessInfo._(_ret, _lib, retain: true, release: true); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - static NSProcessInfo new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_new1); - return NSProcessInfo._(_ret, _lib, retain: false, release: true); + static NSURLSessionConfiguration new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionConfiguration1, _lib._sel_new1); + return NSURLSessionConfiguration._(_ret, _lib, + retain: false, release: true); } - static NSProcessInfo allocWithZone_( + static NSURLSessionConfiguration backgroundSessionConfiguration_( + SentryCocoa _lib, NSString? identifier) { + final _ret = _lib._objc_msgSend_974( + _lib._class_NSURLSessionConfiguration1, + _lib._sel_backgroundSessionConfiguration_1, + identifier?._id ?? ffi.nullptr); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + } + + static NSURLSessionConfiguration allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSProcessInfo1, _lib._sel_allocWithZone_1, zone); - return NSProcessInfo._(_ret, _lib, retain: false, release: true); + final _ret = _lib._objc_msgSend_3(_lib._class_NSURLSessionConfiguration1, + _lib._sel_allocWithZone_1, zone); + return NSURLSessionConfiguration._(_ret, _lib, + retain: false, release: true); } - static NSProcessInfo alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_alloc1); - return NSProcessInfo._(_ret, _lib, retain: false, release: true); + static NSURLSessionConfiguration alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionConfiguration1, _lib._sel_alloc1); + return NSURLSessionConfiguration._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -62433,7 +70361,7 @@ class NSProcessInfo extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSProcessInfo1, + _lib._class_NSURLSessionConfiguration1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -62442,24 +70370,24 @@ class NSProcessInfo extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSProcessInfo1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionConfiguration1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSProcessInfo1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSURLSessionConfiguration1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSProcessInfo1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionConfiguration1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSProcessInfo1, + _lib._class_NSURLSessionConfiguration1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -62468,7 +70396,7 @@ class NSProcessInfo extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSProcessInfo1, + _lib._class_NSURLSessionConfiguration1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -62476,439 +70404,411 @@ class NSProcessInfo extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSProcessInfo1, + _lib._class_NSURLSessionConfiguration1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSProcessInfo1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionConfiguration1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSProcessInfo1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionConfiguration1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -final class NSOperatingSystemVersion extends ffi.Struct { - @ffi.Long() - external int majorVersion; - - @ffi.Long() - external int minorVersion; +abstract class SSLProtocol { + static const int kSSLProtocolUnknown = 0; + static const int kTLSProtocol1 = 4; + static const int kTLSProtocol11 = 7; + static const int kTLSProtocol12 = 8; + static const int kDTLSProtocol1 = 9; + static const int kTLSProtocol13 = 10; + static const int kDTLSProtocol12 = 11; + static const int kTLSProtocolMaxSupported = 999; + static const int kSSLProtocol2 = 1; + static const int kSSLProtocol3 = 2; + static const int kSSLProtocol3Only = 3; + static const int kTLSProtocol1Only = 5; + static const int kSSLProtocolAll = 6; +} - @ffi.Long() - external int patchVersion; +abstract class tls_protocol_version_t { + static const int tls_protocol_version_TLSv10 = 769; + static const int tls_protocol_version_TLSv11 = 770; + static const int tls_protocol_version_TLSv12 = 771; + static const int tls_protocol_version_TLSv13 = 772; + static const int tls_protocol_version_DTLSv10 = -257; + static const int tls_protocol_version_DTLSv12 = -259; } -abstract class NSActivityOptions { - static const int NSActivityIdleDisplaySleepDisabled = 1099511627776; - static const int NSActivityIdleSystemSleepDisabled = 1048576; - static const int NSActivitySuddenTerminationDisabled = 16384; - static const int NSActivityAutomaticTerminationDisabled = 32768; - static const int NSActivityAnimationTrackingEnabled = 35184372088832; - static const int NSActivityTrackingEnabled = 70368744177664; - static const int NSActivityUserInitiated = 16777215; - static const int NSActivityUserInitiatedAllowingIdleSystemSleep = 15728639; - static const int NSActivityBackground = 255; - static const int NSActivityLatencyCritical = 1095216660480; - static const int NSActivityUserInteractive = 1095233437695; +abstract class NSURLSessionMultipathServiceType { + static const int NSURLSessionMultipathServiceTypeNone = 0; + static const int NSURLSessionMultipathServiceTypeHandover = 1; + static const int NSURLSessionMultipathServiceTypeInteractive = 2; + static const int NSURLSessionMultipathServiceTypeAggregate = 3; } -void _ObjCBlock_ffiVoid_bool_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, bool arg0) { +void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { return block.ref.target - .cast>() - .asFunction()(arg0); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); } -final _ObjCBlock_ffiVoid_bool_closureRegistry = {}; -int _ObjCBlock_ffiVoid_bool_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_bool_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_bool_closureRegistry[id] = fn; +final _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_registerClosure(Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, bool arg0) { - return (_ObjCBlock_ffiVoid_bool_closureRegistry[block.ref.target.address] - as void Function(bool))(arg0); +void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer))(arg0, arg1, arg2); } -class ObjCBlock_ffiVoid_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_bool._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock_ffiVoid_NSArray_NSArray_NSArray extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_bool.fromFunctionPointer(SentryCocoa lib, - ffi.Pointer> ptr) + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>( - _ObjCBlock_ffiVoid_bool_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_bool.fromFunction( - SentryCocoa lib, void Function(bool arg0) fn) + ObjCBlock_ffiVoid_NSArray_NSArray_NSArray.fromFunction( + SentryCocoa lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) + fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>( - _ObjCBlock_ffiVoid_bool_closureTrampoline) + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_bool_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(bool arg0) { + void call(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) { return _id.ref.invoke .cast< ffi.NativeFunction< ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>>() + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() .asFunction< void Function( - ffi.Pointer<_ObjCBlock> block, bool arg0)>()(_id, arg0); + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); } } -abstract class NSProcessInfoThermalState { - static const int NSProcessInfoThermalStateNominal = 0; - static const int NSProcessInfoThermalStateFair = 1; - static const int NSProcessInfoThermalStateSerious = 2; - static const int NSProcessInfoThermalStateCritical = 3; -} - -class NSTextCheckingResult extends NSObject { - NSTextCheckingResult._(ffi.Pointer id, SentryCocoa lib, +class NSURLSessionUploadTask extends NSURLSessionDataTask { + NSURLSessionUploadTask._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSTextCheckingResult] that points to the same underlying object as [other]. - static NSTextCheckingResult castFrom(T other) { - return NSTextCheckingResult._(other._id, other._lib, + /// Returns a [NSURLSessionUploadTask] that points to the same underlying object as [other]. + static NSURLSessionUploadTask castFrom(T other) { + return NSURLSessionUploadTask._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSTextCheckingResult] that wraps the given raw object pointer. - static NSTextCheckingResult castFromPointer( + /// Returns a [NSURLSessionUploadTask] that wraps the given raw object pointer. + static NSURLSessionUploadTask castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSTextCheckingResult._(other, lib, retain: retain, release: release); + return NSURLSessionUploadTask._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSTextCheckingResult]. + /// Returns whether [obj] is an instance of [NSURLSessionUploadTask]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSTextCheckingResult1); - } - - int get resultType { - return _lib._objc_msgSend_870(_id, _lib._sel_resultType1); - } - - void getRange(ffi.Pointer<_NSRange> stret) { - _lib._objc_msgSend_49(stret, _id, _lib._sel_range1); - } - - NSOrthography? get orthography { - final _ret = _lib._objc_msgSend_871(_id, _lib._sel_orthography1); - return _ret.address == 0 - ? null - : NSOrthography._(_ret, _lib, retain: true, release: true); - } - - NSArray? get grammarDetails { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_grammarDetails1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - NSDate? get date { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_date1); - return _ret.address == 0 - ? null - : NSDate._(_ret, _lib, retain: true, release: true); - } - - NSTimeZone? get timeZone { - final _ret = _lib._objc_msgSend_168(_id, _lib._sel_timeZone1); - return _ret.address == 0 - ? null - : NSTimeZone._(_ret, _lib, retain: true, release: true); - } - - double get duration { - return _lib._objc_msgSend_155(_id, _lib._sel_duration1); - } - - NSDictionary? get components { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_components1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + obj._lib._class_NSURLSessionUploadTask1); } - NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + @override + NSURLSessionUploadTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - NSString? get replacementString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_replacementString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSURLSessionUploadTask new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionUploadTask1, _lib._sel_new1); + return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); } - NSArray? get alternativeStrings { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_alternativeStrings1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + void cancelByProducingResumeData_( + ObjCBlock_ffiVoid_NSData completionHandler) { + _lib._objc_msgSend_989( + _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); } - NSRegularExpression? get regularExpression { - final _ret = _lib._objc_msgSend_883(_id, _lib._sel_regularExpression1); - return _ret.address == 0 - ? null - : NSRegularExpression._(_ret, _lib, retain: true, release: true); + static NSURLSessionUploadTask allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_NSURLSessionUploadTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); } - NSString? get phoneNumber { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_phoneNumber1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSURLSessionUploadTask alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionUploadTask1, _lib._sel_alloc1); + return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); } - int get numberOfRanges { - return _lib._objc_msgSend_10(_id, _lib._sel_numberOfRanges1); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSURLSessionUploadTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - void rangeAtIndex_(ffi.Pointer<_NSRange> stret, int idx) { - _lib._objc_msgSend_325(stret, _id, _lib._sel_rangeAtIndex_1, idx); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSURLSessionUploadTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void rangeWithName_(ffi.Pointer<_NSRange> stret, NSString? name) { - _lib._objc_msgSend_318( - stret, _id, _lib._sel_rangeWithName_1, name?._id ?? ffi.nullptr); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLSessionUploadTask1, + _lib._sel_accessInstanceVariablesDirectly1); } - NSTextCheckingResult resultByAdjustingRangesWithOffset_(int offset) { - final _ret = _lib._objc_msgSend_884( - _id, _lib._sel_resultByAdjustingRangesWithOffset_1, offset); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLSessionUploadTask1, _lib._sel_useStoredAccessor1); } - NSDictionary? get addressComponents { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_addressComponents1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLSessionUploadTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult orthographyCheckingResultWithRange_orthography_( - SentryCocoa _lib, _NSRange range, NSOrthography? orthography) { - final _ret = _lib._objc_msgSend_885( - _lib._class_NSTextCheckingResult1, - _lib._sel_orthographyCheckingResultWithRange_orthography_1, - range, - orthography?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLSessionUploadTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - static NSTextCheckingResult spellCheckingResultWithRange_( - SentryCocoa _lib, _NSRange range) { - final _ret = _lib._objc_msgSend_886(_lib._class_NSTextCheckingResult1, - _lib._sel_spellCheckingResultWithRange_1, range); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSURLSessionUploadTask1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - static NSTextCheckingResult grammarCheckingResultWithRange_details_( - SentryCocoa _lib, _NSRange range, NSArray? details) { - final _ret = _lib._objc_msgSend_887( - _lib._class_NSTextCheckingResult1, - _lib._sel_grammarCheckingResultWithRange_details_1, - range, - details?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionUploadTask1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult dateCheckingResultWithRange_date_( - SentryCocoa _lib, _NSRange range, NSDate? date) { - final _ret = _lib._objc_msgSend_888( - _lib._class_NSTextCheckingResult1, - _lib._sel_dateCheckingResultWithRange_date_1, - range, - date?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionUploadTask1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - static NSTextCheckingResult - dateCheckingResultWithRange_date_timeZone_duration_(SentryCocoa _lib, - _NSRange range, NSDate? date, NSTimeZone? timeZone, double duration) { - final _ret = _lib._objc_msgSend_889( - _lib._class_NSTextCheckingResult1, - _lib._sel_dateCheckingResultWithRange_date_timeZone_duration_1, - range, - date?._id ?? ffi.nullptr, - timeZone?._id ?? ffi.nullptr, - duration); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} - static NSTextCheckingResult addressCheckingResultWithRange_components_( - SentryCocoa _lib, _NSRange range, NSDictionary? components) { - final _ret = _lib._objc_msgSend_890( - _lib._class_NSTextCheckingResult1, - _lib._sel_addressCheckingResultWithRange_components_1, - range, - components?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } +final _ObjCBlock_ffiVoid_NSData_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSData_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSData_registerClosure(Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSData_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - static NSTextCheckingResult linkCheckingResultWithRange_URL_( - SentryCocoa _lib, _NSRange range, NSURL? url) { - final _ret = _lib._objc_msgSend_891( - _lib._class_NSTextCheckingResult1, - _lib._sel_linkCheckingResultWithRange_URL_1, - range, - url?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock_ffiVoid_NSData_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSData_closureRegistry[block.ref.target.address] + as void Function(ffi.Pointer))(arg0); +} - static NSTextCheckingResult quoteCheckingResultWithRange_replacementString_( - SentryCocoa _lib, _NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_892( - _lib._class_NSTextCheckingResult1, - _lib._sel_quoteCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } +class ObjCBlock_ffiVoid_NSData extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); - static NSTextCheckingResult dashCheckingResultWithRange_replacementString_( - SentryCocoa _lib, _NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_892( - _lib._class_NSTextCheckingResult1, - _lib._sel_dashCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSData.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - static NSTextCheckingResult - replacementCheckingResultWithRange_replacementString_( - SentryCocoa _lib, _NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_892( - _lib._class_NSTextCheckingResult1, - _lib._sel_replacementCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSData.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSData_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSData_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); } +} - static NSTextCheckingResult - correctionCheckingResultWithRange_replacementString_( - SentryCocoa _lib, _NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_892( - _lib._class_NSTextCheckingResult1, - _lib._sel_correctionCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); - } +class NSURLSessionDownloadTask extends NSURLSessionTask { + NSURLSessionDownloadTask._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - static NSTextCheckingResult - correctionCheckingResultWithRange_replacementString_alternativeStrings_( - SentryCocoa _lib, - _NSRange range, - NSString? replacementString, - NSArray? alternativeStrings) { - final _ret = _lib._objc_msgSend_893( - _lib._class_NSTextCheckingResult1, - _lib._sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_1, - range, - replacementString?._id ?? ffi.nullptr, - alternativeStrings?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// Returns a [NSURLSessionDownloadTask] that points to the same underlying object as [other]. + static NSURLSessionDownloadTask castFrom(T other) { + return NSURLSessionDownloadTask._(other._id, other._lib, + retain: true, release: true); } - static NSTextCheckingResult - regularExpressionCheckingResultWithRanges_count_regularExpression_( - SentryCocoa _lib, - ffi.Pointer<_NSRange> ranges, - int count, - NSRegularExpression? regularExpression) { - final _ret = _lib._objc_msgSend_894( - _lib._class_NSTextCheckingResult1, - _lib._sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1, - ranges, - count, - regularExpression?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// Returns a [NSURLSessionDownloadTask] that wraps the given raw object pointer. + static NSURLSessionDownloadTask castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLSessionDownloadTask._(other, lib, + retain: retain, release: release); } - static NSTextCheckingResult phoneNumberCheckingResultWithRange_phoneNumber_( - SentryCocoa _lib, _NSRange range, NSString? phoneNumber) { - final _ret = _lib._objc_msgSend_892( - _lib._class_NSTextCheckingResult1, - _lib._sel_phoneNumberCheckingResultWithRange_phoneNumber_1, - range, - phoneNumber?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [NSURLSessionDownloadTask]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLSessionDownloadTask1); } - static NSTextCheckingResult - transitInformationCheckingResultWithRange_components_( - SentryCocoa _lib, _NSRange range, NSDictionary? components) { - final _ret = _lib._objc_msgSend_890( - _lib._class_NSTextCheckingResult1, - _lib._sel_transitInformationCheckingResultWithRange_components_1, - range, - components?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + void cancelByProducingResumeData_( + ObjCBlock_ffiVoid_NSData completionHandler) { + _lib._objc_msgSend_989( + _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); } @override - NSTextCheckingResult init() { + NSURLSessionDownloadTask init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSTextCheckingResult1, _lib._sel_new1); - return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); + static NSURLSessionDownloadTask new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionDownloadTask1, _lib._sel_new1); + return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); } - static NSTextCheckingResult allocWithZone_( + static NSURLSessionDownloadTask allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSTextCheckingResult1, _lib._sel_allocWithZone_1, zone); - return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLSessionDownloadTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); } - static NSTextCheckingResult alloc(SentryCocoa _lib) { + static NSURLSessionDownloadTask alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSTextCheckingResult1, _lib._sel_alloc1); - return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLSessionDownloadTask1, _lib._sel_alloc1); + return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -62917,7 +70817,7 @@ class NSTextCheckingResult extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSTextCheckingResult1, + _lib._class_NSURLSessionDownloadTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -62926,24 +70826,24 @@ class NSTextCheckingResult extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSTextCheckingResult1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionDownloadTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSTextCheckingResult1, + return _lib._objc_msgSend_12(_lib._class_NSURLSessionDownloadTask1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSTextCheckingResult1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionDownloadTask1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSTextCheckingResult1, + _lib._class_NSURLSessionDownloadTask1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -62952,7 +70852,7 @@ class NSTextCheckingResult extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSTextCheckingResult1, + _lib._class_NSURLSessionDownloadTask1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -62960,236 +70860,113 @@ class NSTextCheckingResult extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSTextCheckingResult1, + _lib._class_NSURLSessionDownloadTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSTextCheckingResult1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionDownloadTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSTextCheckingResult1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionDownloadTask1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSTextCheckingType { - static const int NSTextCheckingTypeOrthography = 1; - static const int NSTextCheckingTypeSpelling = 2; - static const int NSTextCheckingTypeGrammar = 4; - static const int NSTextCheckingTypeDate = 8; - static const int NSTextCheckingTypeAddress = 16; - static const int NSTextCheckingTypeLink = 32; - static const int NSTextCheckingTypeQuote = 64; - static const int NSTextCheckingTypeDash = 128; - static const int NSTextCheckingTypeReplacement = 256; - static const int NSTextCheckingTypeCorrection = 512; - static const int NSTextCheckingTypeRegularExpression = 1024; - static const int NSTextCheckingTypePhoneNumber = 2048; - static const int NSTextCheckingTypeTransitInformation = 4096; -} - -class NSRegularExpression extends NSObject { - NSRegularExpression._(ffi.Pointer id, SentryCocoa lib, +class NSURLSessionStreamTask extends NSURLSessionTask { + NSURLSessionStreamTask._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSRegularExpression] that points to the same underlying object as [other]. - static NSRegularExpression castFrom(T other) { - return NSRegularExpression._(other._id, other._lib, + /// Returns a [NSURLSessionStreamTask] that points to the same underlying object as [other]. + static NSURLSessionStreamTask castFrom(T other) { + return NSURLSessionStreamTask._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSRegularExpression] that wraps the given raw object pointer. - static NSRegularExpression castFromPointer( + /// Returns a [NSURLSessionStreamTask] that wraps the given raw object pointer. + static NSURLSessionStreamTask castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSRegularExpression._(other, lib, retain: retain, release: release); + return NSURLSessionStreamTask._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSRegularExpression]. + /// Returns whether [obj] is an instance of [NSURLSessionStreamTask]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSRegularExpression1); - } - - static NSRegularExpression regularExpressionWithPattern_options_error_( - SentryCocoa _lib, - NSString? pattern, - int options, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_872( - _lib._class_NSRegularExpression1, - _lib._sel_regularExpressionWithPattern_options_error_1, - pattern?._id ?? ffi.nullptr, - options, - error); - return NSRegularExpression._(_ret, _lib, retain: true, release: true); - } - - NSRegularExpression initWithPattern_options_error_(NSString? pattern, - int options, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_873( - _id, - _lib._sel_initWithPattern_options_error_1, - pattern?._id ?? ffi.nullptr, - options, - error); - return NSRegularExpression._(_ret, _lib, retain: true, release: true); - } - - NSString? get pattern { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pattern1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int get options { - return _lib._objc_msgSend_874(_id, _lib._sel_options1); - } - - int get numberOfCaptureGroups { - return _lib._objc_msgSend_10(_id, _lib._sel_numberOfCaptureGroups1); - } - - static NSString escapedPatternForString_(SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSRegularExpression1, - _lib._sel_escapedPatternForString_1, string?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); - } - - void enumerateMatchesInString_options_range_usingBlock_( - NSString? string, - int options, - _NSRange range, - ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool block) { - _lib._objc_msgSend_875( - _id, - _lib._sel_enumerateMatchesInString_options_range_usingBlock_1, - string?._id ?? ffi.nullptr, - options, - range, - block._id); - } - - NSArray matchesInString_options_range_( - NSString? string, int options, _NSRange range) { - final _ret = _lib._objc_msgSend_876( - _id, - _lib._sel_matchesInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); - return NSArray._(_ret, _lib, retain: true, release: true); + obj._lib._class_NSURLSessionStreamTask1); } - int numberOfMatchesInString_options_range_( - NSString? string, int options, _NSRange range) { - return _lib._objc_msgSend_877( + void readDataOfMinLength_maxLength_timeout_completionHandler_( + int minBytes, + int maxBytes, + double timeout, + ObjCBlock_ffiVoid_NSData_bool_NSError completionHandler) { + _lib._objc_msgSend_997( _id, - _lib._sel_numberOfMatchesInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); + _lib._sel_readDataOfMinLength_maxLength_timeout_completionHandler_1, + minBytes, + maxBytes, + timeout, + completionHandler._id); } - NSTextCheckingResult firstMatchInString_options_range_( - NSString? string, int options, _NSRange range) { - final _ret = _lib._objc_msgSend_878( - _id, - _lib._sel_firstMatchInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + void writeData_timeout_completionHandler_(NSData? data, double timeout, + ObjCBlock_ffiVoid_NSError completionHandler) { + _lib._objc_msgSend_998(_id, _lib._sel_writeData_timeout_completionHandler_1, + data?._id ?? ffi.nullptr, timeout, completionHandler._id); } - void rangeOfFirstMatchInString_options_range_(ffi.Pointer<_NSRange> stret, - NSString? string, int options, _NSRange range) { - _lib._objc_msgSend_879( - stret, - _id, - _lib._sel_rangeOfFirstMatchInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); + void captureStreams() { + _lib._objc_msgSend_1(_id, _lib._sel_captureStreams1); } - NSString stringByReplacingMatchesInString_options_range_withTemplate_( - NSString? string, int options, _NSRange range, NSString? templ) { - final _ret = _lib._objc_msgSend_880( - _id, - _lib._sel_stringByReplacingMatchesInString_options_range_withTemplate_1, - string?._id ?? ffi.nullptr, - options, - range, - templ?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + void closeWrite() { + _lib._objc_msgSend_1(_id, _lib._sel_closeWrite1); } - int replaceMatchesInString_options_range_withTemplate_( - NSMutableString? string, int options, _NSRange range, NSString? templ) { - return _lib._objc_msgSend_881( - _id, - _lib._sel_replaceMatchesInString_options_range_withTemplate_1, - string?._id ?? ffi.nullptr, - options, - range, - templ?._id ?? ffi.nullptr); + void closeRead() { + _lib._objc_msgSend_1(_id, _lib._sel_closeRead1); } - NSString replacementStringForResult_inString_offset_template_( - NSTextCheckingResult? result, - NSString? string, - int offset, - NSString? templ) { - final _ret = _lib._objc_msgSend_882( - _id, - _lib._sel_replacementStringForResult_inString_offset_template_1, - result?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr, - offset, - templ?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + void startSecureConnection() { + _lib._objc_msgSend_1(_id, _lib._sel_startSecureConnection1); } - static NSString escapedTemplateForString_( - SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSRegularExpression1, - _lib._sel_escapedTemplateForString_1, string?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + void stopSecureConnection() { + _lib._objc_msgSend_1(_id, _lib._sel_stopSecureConnection1); } @override - NSRegularExpression init() { + NSURLSessionStreamTask init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSRegularExpression._(_ret, _lib, retain: true, release: true); + return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); } - static NSRegularExpression new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSRegularExpression1, _lib._sel_new1); - return NSRegularExpression._(_ret, _lib, retain: false, release: true); + static NSURLSessionStreamTask new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionStreamTask1, _lib._sel_new1); + return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); } - static NSRegularExpression allocWithZone_( + static NSURLSessionStreamTask allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSRegularExpression1, _lib._sel_allocWithZone_1, zone); - return NSRegularExpression._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLSessionStreamTask1, _lib._sel_allocWithZone_1, zone); + return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); } - static NSRegularExpression alloc(SentryCocoa _lib) { + static NSURLSessionStreamTask alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSRegularExpression1, _lib._sel_alloc1); - return NSRegularExpression._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLSessionStreamTask1, _lib._sel_alloc1); + return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -63198,7 +70975,7 @@ class NSRegularExpression extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSRegularExpression1, + _lib._class_NSURLSessionStreamTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -63207,24 +70984,24 @@ class NSRegularExpression extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSRegularExpression1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionStreamTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSRegularExpression1, + return _lib._objc_msgSend_12(_lib._class_NSURLSessionStreamTask1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSRegularExpression1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionStreamTask1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSRegularExpression1, + _lib._class_NSURLSessionStreamTask1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -63233,7 +71010,7 @@ class NSRegularExpression extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSRegularExpression1, + _lib._class_NSURLSessionStreamTask1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -63241,98 +71018,73 @@ class NSRegularExpression extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSRegularExpression1, + _lib._class_NSURLSessionStreamTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSRegularExpression1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionStreamTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSRegularExpression1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionStreamTask1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSRegularExpressionOptions { - static const int NSRegularExpressionCaseInsensitive = 1; - static const int NSRegularExpressionAllowCommentsAndWhitespace = 2; - static const int NSRegularExpressionIgnoreMetacharacters = 4; - static const int NSRegularExpressionDotMatchesLineSeparators = 8; - static const int NSRegularExpressionAnchorsMatchLines = 16; - static const int NSRegularExpressionUseUnixLineSeparators = 32; - static const int NSRegularExpressionUseUnicodeWordBoundaries = 64; -} - -abstract class NSMatchingOptions { - static const int NSMatchingReportProgress = 1; - static const int NSMatchingReportCompletion = 2; - static const int NSMatchingAnchored = 4; - static const int NSMatchingWithTransparentBounds = 8; - static const int NSMatchingWithoutAnchoringBounds = 16; -} - -void - _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2) { +void _ObjCBlock_ffiVoid_NSData_bool_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) { return block.ref.target .cast< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Int32 arg1, - ffi.Pointer arg2)>>() + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>>() .asFunction< - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + void Function(ffi.Pointer arg0, bool arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); } -final _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry = +final _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistryIndex = - 0; -ffi.Pointer - _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry[ - id] = fn; +int _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSData_bool_NSError_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void - _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry[ +void _ObjCBlock_ffiVoid_NSData_bool_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + bool arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry[ block.ref.target.address] - as void Function(ffi.Pointer, int, - ffi.Pointer))(arg0, arg1, arg2); + as void Function(ffi.Pointer, bool, + ffi.Pointer))(arg0, arg1, arg2); } -class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool - extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool._( +class ObjCBlock_ffiVoid_NSData_bool_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData_bool_NSError._( ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool.fromFunctionPointer( + ObjCBlock_ffiVoid_NSData_bool_NSError.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Int32 arg1, ffi.Pointer arg2)>> + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, + ffi.Pointer arg2)>> ptr) : this._( lib._newBlock1( @@ -63340,19 +71092,19 @@ class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Int32 arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_fnPtrTrampoline) + ffi.Bool arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_NSData_bool_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool.fromFunction( + ObjCBlock_ffiVoid_NSData_bool_NSError.fromFunction( SentryCocoa lib, - void Function(ffi.Pointer arg0, int arg1, - ffi.Pointer arg2) + void Function(ffi.Pointer arg0, bool arg1, + ffi.Pointer arg2) fn) : this._( lib._newBlock1( @@ -63360,192 +71112,402 @@ class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Int32 arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureTrampoline) + ffi.Bool arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_NSData_bool_NSError_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_registerClosure( - fn)), + _ObjCBlock_ffiVoid_NSData_bool_NSError_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call( - ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { return _id.ref.invoke .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Int32 arg1, - ffi.Pointer arg2)>>() + ffi.Bool arg1, + ffi.Pointer arg2)>>() .asFunction< void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + bool arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); } } -abstract class NSMatchingFlags { - static const int NSMatchingProgress = 1; - static const int NSMatchingCompleted = 2; - static const int NSMatchingHitEnd = 4; - static const int NSMatchingRequiredEnd = 8; - static const int NSMatchingInternalError = 16; -} - -class NSURLCache extends NSObject { - NSURLCache._(ffi.Pointer id, SentryCocoa lib, +class NSNetService extends NSObject { + NSNetService._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLCache] that points to the same underlying object as [other]. - static NSURLCache castFrom(T other) { - return NSURLCache._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSNetService] that points to the same underlying object as [other]. + static NSNetService castFrom(T other) { + return NSNetService._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLCache] that wraps the given raw object pointer. - static NSURLCache castFromPointer( + /// Returns a [NSNetService] that wraps the given raw object pointer. + static NSNetService castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLCache._(other, lib, retain: retain, release: release); + return NSNetService._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLCache]. + /// Returns whether [obj] is an instance of [NSNetService]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLCache1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSNetService1); } - static NSURLCache? getSharedURLCache(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_895( - _lib._class_NSURLCache1, _lib._sel_sharedURLCache1); + NSNetService initWithDomain_type_name_port_( + NSString? domain, NSString? type, NSString? name, int port) { + final _ret = _lib._objc_msgSend_1000( + _id, + _lib._sel_initWithDomain_type_name_port_1, + domain?._id ?? ffi.nullptr, + type?._id ?? ffi.nullptr, + name?._id ?? ffi.nullptr, + port); + return NSNetService._(_ret, _lib, retain: true, release: true); + } + + NSNetService initWithDomain_type_name_( + NSString? domain, NSString? type, NSString? name) { + final _ret = _lib._objc_msgSend_26( + _id, + _lib._sel_initWithDomain_type_name_1, + domain?._id ?? ffi.nullptr, + type?._id ?? ffi.nullptr, + name?._id ?? ffi.nullptr); + return NSNetService._(_ret, _lib, retain: true, release: true); + } + + void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + _lib._objc_msgSend_548(_id, _lib._sel_scheduleInRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, mode._id); + } + + void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + _lib._objc_msgSend_548(_id, _lib._sel_removeFromRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, mode._id); + } + + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); return _ret.address == 0 ? null - : NSURLCache._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - static void setSharedURLCache(SentryCocoa _lib, NSURLCache? value) { - return _lib._objc_msgSend_896(_lib._class_NSURLCache1, - _lib._sel_setSharedURLCache_1, value?._id ?? ffi.nullptr); + set delegate(NSObject? value) { + return _lib._objc_msgSend_389( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - NSURLCache initWithMemoryCapacity_diskCapacity_diskPath_( - int memoryCapacity, int diskCapacity, NSString? path) { - final _ret = _lib._objc_msgSend_897( - _id, - _lib._sel_initWithMemoryCapacity_diskCapacity_diskPath_1, - memoryCapacity, - diskCapacity, - path?._id ?? ffi.nullptr); - return NSURLCache._(_ret, _lib, retain: true, release: true); + bool get includesPeerToPeer { + return _lib._objc_msgSend_12(_id, _lib._sel_includesPeerToPeer1); } - NSURLCache initWithMemoryCapacity_diskCapacity_directoryURL_( - int memoryCapacity, int diskCapacity, NSURL? directoryURL) { - final _ret = _lib._objc_msgSend_898( - _id, - _lib._sel_initWithMemoryCapacity_diskCapacity_directoryURL_1, - memoryCapacity, - diskCapacity, - directoryURL?._id ?? ffi.nullptr); - return NSURLCache._(_ret, _lib, retain: true, release: true); + set includesPeerToPeer(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setIncludesPeerToPeer_1, value); } - NSCachedURLResponse cachedResponseForRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_902( - _id, _lib._sel_cachedResponseForRequest_1, request?._id ?? ffi.nullptr); - return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void storeCachedResponse_forRequest_( - NSCachedURLResponse? cachedResponse, NSURLRequest? request) { - _lib._objc_msgSend_903(_id, _lib._sel_storeCachedResponse_forRequest_1, - cachedResponse?._id ?? ffi.nullptr, request?._id ?? ffi.nullptr); + NSString? get type { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_type1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void removeCachedResponseForRequest_(NSURLRequest? request) { - _lib._objc_msgSend_904(_id, _lib._sel_removeCachedResponseForRequest_1, - request?._id ?? ffi.nullptr); + NSString? get domain { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_domain1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void removeAllCachedResponses() { - _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResponses1); + NSString? get hostName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_hostName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void removeCachedResponsesSinceDate_(NSDate? date) { - _lib._objc_msgSend_507(_id, _lib._sel_removeCachedResponsesSinceDate_1, - date?._id ?? ffi.nullptr); + NSArray? get addresses { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_addresses1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - int get memoryCapacity { - return _lib._objc_msgSend_10(_id, _lib._sel_memoryCapacity1); + int get port { + return _lib._objc_msgSend_78(_id, _lib._sel_port1); } - set memoryCapacity(int value) { - return _lib._objc_msgSend_486(_id, _lib._sel_setMemoryCapacity_1, value); + void publish() { + _lib._objc_msgSend_1(_id, _lib._sel_publish1); } - int get diskCapacity { - return _lib._objc_msgSend_10(_id, _lib._sel_diskCapacity1); + void publishWithOptions_(int options) { + _lib._objc_msgSend_1001(_id, _lib._sel_publishWithOptions_1, options); } - set diskCapacity(int value) { - return _lib._objc_msgSend_486(_id, _lib._sel_setDiskCapacity_1, value); + void resolve() { + _lib._objc_msgSend_1(_id, _lib._sel_resolve1); } - int get currentMemoryUsage { - return _lib._objc_msgSend_10(_id, _lib._sel_currentMemoryUsage1); + void stop() { + _lib._objc_msgSend_1(_id, _lib._sel_stop1); } - int get currentDiskUsage { - return _lib._objc_msgSend_10(_id, _lib._sel_currentDiskUsage1); + static NSDictionary dictionaryFromTXTRecordData_( + SentryCocoa _lib, NSData? txtData) { + final _ret = _lib._objc_msgSend_1002(_lib._class_NSNetService1, + _lib._sel_dictionaryFromTXTRecordData_1, txtData?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - void storeCachedResponse_forDataTask_( - NSCachedURLResponse? cachedResponse, NSURLSessionDataTask? dataTask) { - _lib._objc_msgSend_905(_id, _lib._sel_storeCachedResponse_forDataTask_1, - cachedResponse?._id ?? ffi.nullptr, dataTask?._id ?? ffi.nullptr); + static NSData dataFromTXTRecordDictionary_( + SentryCocoa _lib, NSDictionary? txtDictionary) { + final _ret = _lib._objc_msgSend_1003( + _lib._class_NSNetService1, + _lib._sel_dataFromTXTRecordDictionary_1, + txtDictionary?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); } - void getCachedResponseForDataTask_completionHandler_( - NSURLSessionDataTask? dataTask, - ObjCBlock_ffiVoid_NSCachedURLResponse completionHandler) { - _lib._objc_msgSend_906( - _id, - _lib._sel_getCachedResponseForDataTask_completionHandler_1, - dataTask?._id ?? ffi.nullptr, - completionHandler._id); + void resolveWithTimeout_(double timeout) { + _lib._objc_msgSend_521(_id, _lib._sel_resolveWithTimeout_1, timeout); } - void removeCachedResponseForDataTask_(NSURLSessionDataTask? dataTask) { - _lib._objc_msgSend_907(_id, _lib._sel_removeCachedResponseForDataTask_1, - dataTask?._id ?? ffi.nullptr); + bool getInputStream_outputStream_( + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + return _lib._objc_msgSend_1004(_id, _lib._sel_getInputStream_outputStream_1, + inputStream, outputStream); + } + + bool setTXTRecordData_(NSData? recordData) { + return _lib._objc_msgSend_23( + _id, _lib._sel_setTXTRecordData_1, recordData?._id ?? ffi.nullptr); + } + + NSData TXTRecordData() { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_TXTRecordData1); + return NSData._(_ret, _lib, retain: true, release: true); + } + + void startMonitoring() { + _lib._objc_msgSend_1(_id, _lib._sel_startMonitoring1); + } + + void stopMonitoring() { + _lib._objc_msgSend_1(_id, _lib._sel_stopMonitoring1); } @override - NSURLCache init() { + NSNetService init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLCache._(_ret, _lib, retain: true, release: true); + return NSNetService._(_ret, _lib, retain: true, release: true); } - static NSURLCache new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_new1); - return NSURLCache._(_ret, _lib, retain: false, release: true); + static NSNetService new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_new1); + return NSNetService._(_ret, _lib, retain: false, release: true); } - static NSURLCache allocWithZone_( + static NSNetService allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSURLCache1, _lib._sel_allocWithZone_1, zone); - return NSURLCache._(_ret, _lib, retain: false, release: true); + _lib._class_NSNetService1, _lib._sel_allocWithZone_1, zone); + return NSNetService._(_ret, _lib, retain: false, release: true); } - static NSURLCache alloc(SentryCocoa _lib) { + static NSNetService alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_alloc1); - return NSURLCache._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_alloc1); + return NSNetService._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_NSNetService1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSNetService1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSNetService1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSNetService1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSNetService1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSNetService1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSNetService1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSNetService1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSNetService1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSNetServiceOptions { + static const int NSNetServiceNoAutoRename = 1; + static const int NSNetServiceListenForConnections = 2; +} + +class NSURLSessionWebSocketTask extends NSURLSessionTask { + NSURLSessionWebSocketTask._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSURLSessionWebSocketTask] that points to the same underlying object as [other]. + static NSURLSessionWebSocketTask castFrom(T other) { + return NSURLSessionWebSocketTask._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [NSURLSessionWebSocketTask] that wraps the given raw object pointer. + static NSURLSessionWebSocketTask castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSURLSessionWebSocketTask._(other, lib, + retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [NSURLSessionWebSocketTask]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLSessionWebSocketTask1); + } + + void sendMessage_completionHandler_(NSURLSessionWebSocketMessage? message, + ObjCBlock_ffiVoid_NSError completionHandler) { + _lib._objc_msgSend_1007(_id, _lib._sel_sendMessage_completionHandler_1, + message?._id ?? ffi.nullptr, completionHandler._id); + } + + void receiveMessageWithCompletionHandler_( + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError + completionHandler) { + _lib._objc_msgSend_1008(_id, + _lib._sel_receiveMessageWithCompletionHandler_1, completionHandler._id); + } + + void sendPingWithPongReceiveHandler_( + ObjCBlock_ffiVoid_NSError pongReceiveHandler) { + _lib._objc_msgSend_1009(_id, _lib._sel_sendPingWithPongReceiveHandler_1, + pongReceiveHandler._id); + } + + void cancelWithCloseCode_reason_(int closeCode, NSData? reason) { + _lib._objc_msgSend_1010(_id, _lib._sel_cancelWithCloseCode_reason_1, + closeCode, reason?._id ?? ffi.nullptr); + } + + int get maximumMessageSize { + return _lib._objc_msgSend_78(_id, _lib._sel_maximumMessageSize1); + } + + set maximumMessageSize(int value) { + return _lib._objc_msgSend_605( + _id, _lib._sel_setMaximumMessageSize_1, value); + } + + int get closeCode { + return _lib._objc_msgSend_1011(_id, _lib._sel_closeCode1); + } + + NSData? get closeReason { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_closeReason1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); + } + + @override + NSURLSessionWebSocketTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + } + + static NSURLSessionWebSocketTask new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_new1); + return NSURLSessionWebSocketTask._(_ret, _lib, + retain: false, release: true); + } + + static NSURLSessionWebSocketTask allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_allocWithZone_1, zone); + return NSURLSessionWebSocketTask._(_ret, _lib, + retain: false, release: true); + } + + static NSURLSessionWebSocketTask alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_alloc1); + return NSURLSessionWebSocketTask._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -63554,7 +71516,7 @@ class NSURLCache extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLCache1, + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -63563,24 +71525,24 @@ class NSURLCache extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLCache1, + _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLCache1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLCache1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLCache1, + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -63589,7 +71551,7 @@ class NSURLCache extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLCache1, + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -63597,76 +71559,67 @@ class NSURLCache extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLCache1, + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLCache1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLCache1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSCachedURLResponse extends NSObject { - NSCachedURLResponse._(ffi.Pointer id, SentryCocoa lib, +class NSURLSessionWebSocketMessage extends NSObject { + NSURLSessionWebSocketMessage._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSCachedURLResponse] that points to the same underlying object as [other]. - static NSCachedURLResponse castFrom(T other) { - return NSCachedURLResponse._(other._id, other._lib, + /// Returns a [NSURLSessionWebSocketMessage] that points to the same underlying object as [other]. + static NSURLSessionWebSocketMessage castFrom( + T other) { + return NSURLSessionWebSocketMessage._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSCachedURLResponse] that wraps the given raw object pointer. - static NSCachedURLResponse castFromPointer( + /// Returns a [NSURLSessionWebSocketMessage] that wraps the given raw object pointer. + static NSURLSessionWebSocketMessage castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSCachedURLResponse._(other, lib, retain: retain, release: release); + return NSURLSessionWebSocketMessage._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSCachedURLResponse]. + /// Returns whether [obj] is an instance of [NSURLSessionWebSocketMessage]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSCachedURLResponse1); + obj._lib._class_NSURLSessionWebSocketMessage1); } - NSCachedURLResponse initWithResponse_data_( - NSURLResponse? response, NSData? data) { - final _ret = _lib._objc_msgSend_899(_id, _lib._sel_initWithResponse_data_1, - response?._id ?? ffi.nullptr, data?._id ?? ffi.nullptr); - return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + NSURLSessionWebSocketMessage initWithData_(NSData? data) { + final _ret = _lib._objc_msgSend_257( + _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: true, release: true); } - NSCachedURLResponse initWithResponse_data_userInfo_storagePolicy_( - NSURLResponse? response, - NSData? data, - NSDictionary? userInfo, - int storagePolicy) { - final _ret = _lib._objc_msgSend_900( - _id, - _lib._sel_initWithResponse_data_userInfo_storagePolicy_1, - response?._id ?? ffi.nullptr, - data?._id ?? ffi.nullptr, - userInfo?._id ?? ffi.nullptr, - storagePolicy); - return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + NSURLSessionWebSocketMessage initWithString_(NSString? string) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, string?._id ?? ffi.nullptr); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: true, release: true); } - NSURLResponse? get response { - final _ret = _lib._objc_msgSend_805(_id, _lib._sel_response1); - return _ret.address == 0 - ? null - : NSURLResponse._(_ret, _lib, retain: true, release: true); + int get type { + return _lib._objc_msgSend_1006(_id, _lib._sel_type1); } NSData? get data { @@ -63676,40 +71629,40 @@ class NSCachedURLResponse extends NSObject { : NSData._(_ret, _lib, retain: true, release: true); } - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); + NSString? get string { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - int get storagePolicy { - return _lib._objc_msgSend_901(_id, _lib._sel_storagePolicy1); + : NSString._(_ret, _lib, retain: true, release: true); } @override - NSCachedURLResponse init() { + NSURLSessionWebSocketMessage init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: true, release: true); } - static NSCachedURLResponse new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSCachedURLResponse1, _lib._sel_new1); - return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); + static NSURLSessionWebSocketMessage new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_new1); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: false, release: true); } - static NSCachedURLResponse allocWithZone_( + static NSURLSessionWebSocketMessage allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSCachedURLResponse1, _lib._sel_allocWithZone_1, zone); - return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); + final _ret = _lib._objc_msgSend_3(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_allocWithZone_1, zone); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: false, release: true); } - static NSCachedURLResponse alloc(SentryCocoa _lib) { + static NSURLSessionWebSocketMessage alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSCachedURLResponse1, _lib._sel_alloc1); - return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_alloc1); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -63718,410 +71671,724 @@ class NSCachedURLResponse extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSCachedURLResponse1, + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, anArgument._id); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSCachedURLResponse1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketMessage1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSURLSessionWebSocketMessageType { + static const int NSURLSessionWebSocketMessageTypeData = 0; + static const int NSURLSessionWebSocketMessageTypeString = 1; +} + +void _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>()(arg0, arg1); +} + +final _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_registerClosure( + Function fn) { + final id = + ++_ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry[id] = + fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) { + return (_ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry[ + block.ref.target.address] + as void Function( + ffi.Pointer, ffi.Pointer))(arg0, arg1); +} + +class ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.fromFunction( + SentryCocoa lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>( + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_registerClosure( + fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); + } +} + +abstract class NSURLSessionWebSocketCloseCode { + static const int NSURLSessionWebSocketCloseCodeInvalid = 0; + static const int NSURLSessionWebSocketCloseCodeNormalClosure = 1000; + static const int NSURLSessionWebSocketCloseCodeGoingAway = 1001; + static const int NSURLSessionWebSocketCloseCodeProtocolError = 1002; + static const int NSURLSessionWebSocketCloseCodeUnsupportedData = 1003; + static const int NSURLSessionWebSocketCloseCodeNoStatusReceived = 1005; + static const int NSURLSessionWebSocketCloseCodeAbnormalClosure = 1006; + static const int NSURLSessionWebSocketCloseCodeInvalidFramePayloadData = 1007; + static const int NSURLSessionWebSocketCloseCodePolicyViolation = 1008; + static const int NSURLSessionWebSocketCloseCodeMessageTooBig = 1009; + static const int NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing = + 1010; + static const int NSURLSessionWebSocketCloseCodeInternalServerError = 1011; + static const int NSURLSessionWebSocketCloseCodeTLSHandshakeFailure = 1015; +} + +void _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_registerClosure( + Function fn) { + final id = + ++_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.fromFunction( + SentryCocoa lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_registerClosure( + fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +void _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(arg0, arg1, arg2); +} + +final _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_registerClosure( + Function fn) { + final id = + ++_ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return (_ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError.fromFunction( + SentryCocoa lib, + void Function(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) + fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_registerClosure( + fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0, ffi.Pointer arg1, + ffi.Pointer arg2) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + } +} + +class NSProtocolChecker extends NSProxy { + NSProtocolChecker._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [NSProtocolChecker] that points to the same underlying object as [other]. + static NSProtocolChecker castFrom(T other) { + return NSProtocolChecker._(other._id, other._lib, + retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSCachedURLResponse1, - _lib._sel_accessInstanceVariablesDirectly1); + /// Returns a [NSProtocolChecker] that wraps the given raw object pointer. + static NSProtocolChecker castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSProtocolChecker._(other, lib, retain: retain, release: release); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSCachedURLResponse1, _lib._sel_useStoredAccessor1); + /// Returns whether [obj] is an instance of [NSProtocolChecker]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSProtocolChecker1); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSCachedURLResponse1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + Protocol? get protocol { + final _ret = _lib._objc_msgSend_1023(_id, _lib._sel_protocol1); + return _ret.address == 0 + ? null + : Protocol._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSCachedURLResponse1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + NSObject? get target { + final _ret = _lib._objc_msgSend_852(_id, _lib._sel_target1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSCachedURLResponse1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + static NSProtocolChecker protocolCheckerWithTarget_protocol_( + SentryCocoa _lib, NSObject? anObject, Protocol? aProtocol) { + final _ret = _lib._objc_msgSend_1024( + _lib._class_NSProtocolChecker1, + _lib._sel_protocolCheckerWithTarget_protocol_1, + anObject?._id ?? ffi.nullptr, + aProtocol?._id ?? ffi.nullptr); + return NSProtocolChecker._(_ret, _lib, retain: true, release: true); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSCachedURLResponse1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + NSProtocolChecker initWithTarget_protocol_( + NSObject? anObject, Protocol? aProtocol) { + final _ret = _lib._objc_msgSend_1024( + _id, + _lib._sel_initWithTarget_protocol_1, + anObject?._id ?? ffi.nullptr, + aProtocol?._id ?? ffi.nullptr); + return NSProtocolChecker._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSCachedURLResponse1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSProtocolChecker1, _lib._sel_alloc1); + return NSObject._(_ret, _lib, retain: false, release: true); } -} -abstract class NSURLCacheStoragePolicy { - static const int NSURLCacheStorageAllowed = 0; - static const int NSURLCacheStorageAllowedInMemoryOnly = 1; - static const int NSURLCacheStorageNotAllowed = 2; + static bool respondsToSelector_( + SentryCocoa _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_4(_lib._class_NSProtocolChecker1, + _lib._sel_respondsToSelector_1, aSelector); + } } -class NSURLSessionDataTask extends NSURLSessionTask { - NSURLSessionDataTask._(ffi.Pointer id, SentryCocoa lib, +class NSTask extends NSObject { + NSTask._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLSessionDataTask] that points to the same underlying object as [other]. - static NSURLSessionDataTask castFrom(T other) { - return NSURLSessionDataTask._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSTask] that points to the same underlying object as [other]. + static NSTask castFrom(T other) { + return NSTask._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLSessionDataTask] that wraps the given raw object pointer. - static NSURLSessionDataTask castFromPointer( - SentryCocoa lib, ffi.Pointer other, + /// Returns a [NSTask] that wraps the given raw object pointer. + static NSTask castFromPointer(SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSessionDataTask._(other, lib, retain: retain, release: release); + return NSTask._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionDataTask]. + /// Returns whether [obj] is an instance of [NSTask]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionDataTask1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSTask1); } @override - NSURLSessionDataTask init() { + NSTask init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + return NSTask._(_ret, _lib, retain: true, release: true); } - static NSURLSessionDataTask new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSessionDataTask1, _lib._sel_new1); - return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); + NSURL? get executableURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_executableURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSURLSessionDataTask allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSURLSessionDataTask1, _lib._sel_allocWithZone_1, zone); - return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); + set executableURL(NSURL? value) { + return _lib._objc_msgSend_636( + _id, _lib._sel_setExecutableURL_1, value?._id ?? ffi.nullptr); } - static NSURLSessionDataTask alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionDataTask1, _lib._sel_alloc1); - return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); + NSArray? get arguments { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_arguments1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLSessionDataTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + set arguments(NSArray? value) { + return _lib._objc_msgSend_751( + _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionDataTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + NSDictionary? get environment { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_environment1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionDataTask1, - _lib._sel_accessInstanceVariablesDirectly1); + set environment(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setEnvironment_1, value?._id ?? ffi.nullptr); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLSessionDataTask1, _lib._sel_useStoredAccessor1); + NSURL? get currentDirectoryURL { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_currentDirectoryURL1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionDataTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + set currentDirectoryURL(NSURL? value) { + return _lib._objc_msgSend_636( + _id, _lib._sel_setCurrentDirectoryURL_1, value?._id ?? ffi.nullptr); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionDataTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._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); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSURLSessionDataTask1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + set launchRequirementData(NSData? value) { + return _lib._objc_msgSend_954( + _id, _lib._sel_setLaunchRequirementData_1, value?._id ?? ffi.nullptr); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionDataTask1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + NSObject get standardInput { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardInput1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionDataTask1, _lib._sel_classForKeyedUnarchiver1); + set standardInput(NSObject value) { + return _lib._objc_msgSend_389(_id, _lib._sel_setStandardInput_1, value._id); + } + + NSObject get standardOutput { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardOutput1); return NSObject._(_ret, _lib, retain: true, release: true); } -} -void _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} + set standardOutput(NSObject value) { + return _lib._objc_msgSend_389( + _id, _lib._sel_setStandardOutput_1, value._id); + } -final _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSCachedURLResponse_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} + NSObject get standardError { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardError1); + return NSObject._(_ret, _lib, retain: true, release: true); + } -void _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry[block - .ref.target.address] as void Function(ffi.Pointer))(arg0); -} + set standardError(NSObject value) { + return _lib._objc_msgSend_389(_id, _lib._sel_setStandardError_1, value._id); + } -class ObjCBlock_ffiVoid_NSCachedURLResponse extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSCachedURLResponse._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + bool launchAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_236(_id, _lib._sel_launchAndReturnError_1, error); + } - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSCachedURLResponse.fromFunctionPointer( - SentryCocoa lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + void interrupt() { + _lib._objc_msgSend_1(_id, _lib._sel_interrupt1); + } - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSCachedURLResponse.fromFunction( - SentryCocoa lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSCachedURLResponse_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSCachedURLResponse_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); + void terminate() { + _lib._objc_msgSend_1(_id, _lib._sel_terminate1); } -} -class NSURLConnection extends NSObject { - NSURLConnection._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + bool suspend() { + return _lib._objc_msgSend_12(_id, _lib._sel_suspend1); + } - /// Returns a [NSURLConnection] that points to the same underlying object as [other]. - static NSURLConnection castFrom(T other) { - return NSURLConnection._(other._id, other._lib, - retain: true, release: true); + bool resume() { + return _lib._objc_msgSend_12(_id, _lib._sel_resume1); } - /// Returns a [NSURLConnection] that wraps the given raw object pointer. - static NSURLConnection castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLConnection._(other, lib, retain: retain, release: release); + int get processIdentifier { + return _lib._objc_msgSend_219(_id, _lib._sel_processIdentifier1); } - /// Returns whether [obj] is an instance of [NSURLConnection]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLConnection1); + bool get running { + return _lib._objc_msgSend_12(_id, _lib._sel_isRunning1); } - NSURLConnection initWithRequest_delegate_startImmediately_( - NSURLRequest? request, NSObject delegate, bool startImmediately) { - final _ret = _lib._objc_msgSend_908( - _id, - _lib._sel_initWithRequest_delegate_startImmediately_1, - request?._id ?? ffi.nullptr, - delegate._id, - startImmediately); - return NSURLConnection._(_ret, _lib, retain: true, release: true); + int get terminationStatus { + return _lib._objc_msgSend_219(_id, _lib._sel_terminationStatus1); } - NSURLConnection initWithRequest_delegate_( - NSURLRequest? request, NSObject delegate) { - final _ret = _lib._objc_msgSend_909( - _id, - _lib._sel_initWithRequest_delegate_1, - request?._id ?? ffi.nullptr, - delegate._id); - return NSURLConnection._(_ret, _lib, retain: true, release: true); + int get terminationReason { + return _lib._objc_msgSend_1025(_id, _lib._sel_terminationReason1); } - static NSURLConnection connectionWithRequest_delegate_( - SentryCocoa _lib, NSURLRequest? request, NSObject delegate) { - final _ret = _lib._objc_msgSend_910( - _lib._class_NSURLConnection1, - _lib._sel_connectionWithRequest_delegate_1, - request?._id ?? ffi.nullptr, - delegate._id); - return NSURLConnection._(_ret, _lib, retain: true, release: true); + ObjCBlock_ffiVoid_NSTask get terminationHandler { + final _ret = _lib._objc_msgSend_1026(_id, _lib._sel_terminationHandler1); + return ObjCBlock_ffiVoid_NSTask._(_ret, _lib); } - NSURLRequest? get originalRequest { - final _ret = _lib._objc_msgSend_803(_id, _lib._sel_originalRequest1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + set terminationHandler(ObjCBlock_ffiVoid_NSTask value) { + return _lib._objc_msgSend_1027( + _id, _lib._sel_setTerminationHandler_1, value._id); } - NSURLRequest? get currentRequest { - final _ret = _lib._objc_msgSend_803(_id, _lib._sel_currentRequest1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + int get qualityOfService { + return _lib._objc_msgSend_523(_id, _lib._sel_qualityOfService1); } - void start() { - _lib._objc_msgSend_1(_id, _lib._sel_start1); + set qualityOfService(int value) { + return _lib._objc_msgSend_524(_id, _lib._sel_setQualityOfService_1, value); } - void cancel() { - _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + static NSTask + launchedTaskWithExecutableURL_arguments_error_terminationHandler_( + SentryCocoa _lib, + NSURL? url, + NSArray? arguments, + ffi.Pointer> error, + ObjCBlock_ffiVoid_NSTask terminationHandler) { + final _ret = _lib._objc_msgSend_1028( + _lib._class_NSTask1, + _lib._sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_1, + url?._id ?? ffi.nullptr, + arguments?._id ?? ffi.nullptr, + error, + terminationHandler._id); + return NSTask._(_ret, _lib, retain: true, release: true); } - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - _lib._objc_msgSend_536(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); + void waitUntilExit() { + _lib._objc_msgSend_1(_id, _lib._sel_waitUntilExit1); } - void unscheduleFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - _lib._objc_msgSend_536(_id, _lib._sel_unscheduleFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); + NSString? get launchPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_launchPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void setDelegateQueue_(NSOperationQueue? queue) { - _lib._objc_msgSend_911( - _id, _lib._sel_setDelegateQueue_1, queue?._id ?? ffi.nullptr); + set launchPath(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setLaunchPath_1, value?._id ?? ffi.nullptr); } - static bool canHandleRequest_(SentryCocoa _lib, NSURLRequest? request) { - return _lib._objc_msgSend_912(_lib._class_NSURLConnection1, - _lib._sel_canHandleRequest_1, request?._id ?? ffi.nullptr); + NSString? get currentDirectoryPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentDirectoryPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSData sendSynchronousRequest_returningResponse_error_( - SentryCocoa _lib, - NSURLRequest? request, - ffi.Pointer> response, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_913( - _lib._class_NSURLConnection1, - _lib._sel_sendSynchronousRequest_returningResponse_error_1, - request?._id ?? ffi.nullptr, - response, - error); - return NSData._(_ret, _lib, retain: true, release: true); + set currentDirectoryPath(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setCurrentDirectoryPath_1, value?._id ?? ffi.nullptr); } - static void sendAsynchronousRequest_queue_completionHandler_( - SentryCocoa _lib, - NSURLRequest? request, - NSOperationQueue? queue, - ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError handler) { - _lib._objc_msgSend_914( - _lib._class_NSURLConnection1, - _lib._sel_sendAsynchronousRequest_queue_completionHandler_1, - request?._id ?? ffi.nullptr, - queue?._id ?? ffi.nullptr, - handler._id); + void launch() { + _lib._objc_msgSend_1(_id, _lib._sel_launch1); } - @override - NSURLConnection init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLConnection._(_ret, _lib, retain: true, release: true); + static NSTask launchedTaskWithLaunchPath_arguments_( + SentryCocoa _lib, NSString? path, NSArray? arguments) { + final _ret = _lib._objc_msgSend_1029( + _lib._class_NSTask1, + _lib._sel_launchedTaskWithLaunchPath_arguments_1, + path?._id ?? ffi.nullptr, + arguments?._id ?? ffi.nullptr); + return NSTask._(_ret, _lib, retain: true, release: true); } - static NSURLConnection new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_new1); - return NSURLConnection._(_ret, _lib, retain: false, release: true); + static NSTask new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSTask1, _lib._sel_new1); + return NSTask._(_ret, _lib, retain: false, release: true); } - static NSURLConnection allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSTask allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSURLConnection1, _lib._sel_allocWithZone_1, zone); - return NSURLConnection._(_ret, _lib, retain: false, release: true); + _lib._class_NSTask1, _lib._sel_allocWithZone_1, zone); + return NSTask._(_ret, _lib, retain: false, release: true); } - static NSURLConnection alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLConnection1, _lib._sel_alloc1); - return NSURLConnection._(_ret, _lib, retain: false, release: true); + static NSTask alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSTask1, _lib._sel_alloc1); + return NSTask._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -64130,7 +72397,7 @@ class NSURLConnection extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLConnection1, + _lib._class_NSTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -64139,24 +72406,24 @@ class NSURLConnection extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLConnection1, + _lib._objc_msgSend_15(_lib._class_NSTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLConnection1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSTask1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLConnection1, _lib._sel_useStoredAccessor1); + _lib._class_NSTask1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLConnection1, + _lib._class_NSTask1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -64165,7 +72432,7 @@ class NSURLConnection extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLConnection1, + _lib._class_NSTask1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -64173,496 +72440,454 @@ class NSURLConnection extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLConnection1, + _lib._class_NSTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLConnection1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSTask1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLConnection1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSTask1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { +abstract class NSTaskTerminationReason { + static const int NSTaskTerminationReasonExit = 1; + static const int NSTaskTerminationReasonUncaughtSignal = 2; +} + +void _ObjCBlock_ffiVoid_NSTask_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); } -final _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry[id] = fn; +final _ObjCBlock_ffiVoid_NSTask_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSTask_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSTask_registerClosure(Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSTask_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSTask_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); +void _ObjCBlock_ffiVoid_NSTask_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSTask_closureRegistry[block.ref.target.address] + as void Function(ffi.Pointer))(arg0); } -class ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock_ffiVoid_NSTask extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSTask._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError.fromFunctionPointer( + ObjCBlock_ffiVoid_NSTask.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> + ffi + .NativeFunction arg0)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSTask_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError.fromFunction( - SentryCocoa lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) + ObjCBlock_ffiVoid_NSTask.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSTask_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_registerClosure( - fn)), + _ObjCBlock_ffiVoid_NSTask_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { + void call(ffi.Pointer arg0) { return _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); } } -class NSURLCredential extends NSObject { - NSURLCredential._(ffi.Pointer id, SentryCocoa lib, +class NSXMLElement extends NSXMLNode { + NSXMLElement._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLCredential] that points to the same underlying object as [other]. - static NSURLCredential castFrom(T other) { - return NSURLCredential._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSXMLElement] that points to the same underlying object as [other]. + static NSXMLElement castFrom(T other) { + return NSXMLElement._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLCredential] that wraps the given raw object pointer. - static NSURLCredential castFromPointer( + /// Returns a [NSXMLElement] that wraps the given raw object pointer. + static NSXMLElement castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLCredential._(other, lib, retain: retain, release: release); + return NSXMLElement._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLCredential]. + /// Returns whether [obj] is an instance of [NSXMLElement]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLCredential1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLElement1); } - int get persistence { - return _lib._objc_msgSend_915(_id, _lib._sel_persistence1); + NSXMLElement initWithName_(NSString? name) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithName_1, name?._id ?? ffi.nullptr); + return NSXMLElement._(_ret, _lib, retain: true, release: true); } - NSURLCredential initWithUser_password_persistence_( - NSString? user, NSString? password, int persistence) { - final _ret = _lib._objc_msgSend_916( - _id, - _lib._sel_initWithUser_password_persistence_1, - user?._id ?? ffi.nullptr, - password?._id ?? ffi.nullptr, - persistence); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + NSXMLElement initWithName_URI_(NSString? name, NSString? URI) { + final _ret = _lib._objc_msgSend_165(_id, _lib._sel_initWithName_URI_1, + name?._id ?? ffi.nullptr, URI?._id ?? ffi.nullptr); + return NSXMLElement._(_ret, _lib, retain: true, release: true); } - static NSURLCredential credentialWithUser_password_persistence_( - SentryCocoa _lib, NSString? user, NSString? password, int persistence) { - final _ret = _lib._objc_msgSend_917( - _lib._class_NSURLCredential1, - _lib._sel_credentialWithUser_password_persistence_1, - user?._id ?? ffi.nullptr, - password?._id ?? ffi.nullptr, - persistence); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + NSXMLElement initWithName_stringValue_(NSString? name, NSString? string) { + final _ret = _lib._objc_msgSend_165( + _id, + _lib._sel_initWithName_stringValue_1, + name?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr); + return NSXMLElement._(_ret, _lib, retain: true, release: true); } - NSString? get user { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_user1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + NSXMLElement initWithXMLString_error_( + NSString? string, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_279(_id, + _lib._sel_initWithXMLString_error_1, string?._id ?? ffi.nullptr, error); + return NSXMLElement._(_ret, _lib, retain: true, release: true); } - NSString? get password { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_password1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + @override + NSXMLElement initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1031( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLElement._(_ret, _lib, retain: true, release: true); } - bool get hasPassword { - return _lib._objc_msgSend_12(_id, _lib._sel_hasPassword1); + NSArray elementsForName_(NSString? name) { + final _ret = _lib._objc_msgSend_123( + _id, _lib._sel_elementsForName_1, name?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSURLCredential initWithIdentity_certificates_persistence_( - ffi.Pointer<__SecIdentity> identity, - NSArray? certArray, - int persistence) { - final _ret = _lib._objc_msgSend_918( + NSArray elementsForLocalName_URI_(NSString? localName, NSString? URI) { + final _ret = _lib._objc_msgSend_667( _id, - _lib._sel_initWithIdentity_certificates_persistence_1, - identity, - certArray?._id ?? ffi.nullptr, - persistence); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + _lib._sel_elementsForLocalName_URI_1, + localName?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSURLCredential credentialWithIdentity_certificates_persistence_( - SentryCocoa _lib, - ffi.Pointer<__SecIdentity> identity, - NSArray? certArray, - int persistence) { - final _ret = _lib._objc_msgSend_919( - _lib._class_NSURLCredential1, - _lib._sel_credentialWithIdentity_certificates_persistence_1, - identity, - certArray?._id ?? ffi.nullptr, - persistence); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + void addAttribute_(NSXMLNode? attribute) { + _lib._objc_msgSend_1043( + _id, _lib._sel_addAttribute_1, attribute?._id ?? ffi.nullptr); } - ffi.Pointer<__SecIdentity> get identity { - return _lib._objc_msgSend_920(_id, _lib._sel_identity1); + void removeAttributeForName_(NSString? name) { + _lib._objc_msgSend_192( + _id, _lib._sel_removeAttributeForName_1, name?._id ?? ffi.nullptr); } - NSArray? get certificates { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_certificates1); + NSArray? get attributes { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attributes1); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); } - NSURLCredential initWithTrust_(ffi.Pointer<__SecTrust> trust) { - final _ret = _lib._objc_msgSend_921(_id, _lib._sel_initWithTrust_1, trust); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + set attributes(NSArray? value) { + return _lib._objc_msgSend_751( + _id, _lib._sel_setAttributes_1, value?._id ?? ffi.nullptr); } - static NSURLCredential credentialForTrust_( - SentryCocoa _lib, ffi.Pointer<__SecTrust> trust) { - final _ret = _lib._objc_msgSend_922( - _lib._class_NSURLCredential1, _lib._sel_credentialForTrust_1, trust); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + void setAttributesWithDictionary_(NSDictionary? attributes) { + _lib._objc_msgSend_492(_id, _lib._sel_setAttributesWithDictionary_1, + attributes?._id ?? ffi.nullptr); } - @override - NSURLCredential init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + NSXMLNode attributeForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1047( + _id, _lib._sel_attributeForName_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - static NSURLCredential new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_new1); - return NSURLCredential._(_ret, _lib, retain: false, release: true); + NSXMLNode attributeForLocalName_URI_(NSString? localName, NSString? URI) { + final _ret = _lib._objc_msgSend_1064( + _id, + _lib._sel_attributeForLocalName_URI_1, + localName?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - static NSURLCredential allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSURLCredential1, _lib._sel_allocWithZone_1, zone); - return NSURLCredential._(_ret, _lib, retain: false, release: true); + void addNamespace_(NSXMLNode? aNamespace) { + _lib._objc_msgSend_1043( + _id, _lib._sel_addNamespace_1, aNamespace?._id ?? ffi.nullptr); } - static NSURLCredential alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_alloc1); - return NSURLCredential._(_ret, _lib, retain: false, release: true); + void removeNamespaceForPrefix_(NSString? name) { + _lib._objc_msgSend_192( + _id, _lib._sel_removeNamespaceForPrefix_1, name?._id ?? ffi.nullptr); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLCredential1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + NSArray? get namespaces { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_namespaces1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLCredential1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + set namespaces(NSArray? value) { + return _lib._objc_msgSend_751( + _id, _lib._sel_setNamespaces_1, value?._id ?? ffi.nullptr); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLCredential1, - _lib._sel_accessInstanceVariablesDirectly1); + NSXMLNode namespaceForPrefix_(NSString? name) { + final _ret = _lib._objc_msgSend_1047( + _id, _lib._sel_namespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLCredential1, _lib._sel_useStoredAccessor1); + NSXMLNode resolveNamespaceForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1047( + _id, _lib._sel_resolveNamespaceForName_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLCredential1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSString resolvePrefixForNamespaceURI_(NSString? namespaceURI) { + final _ret = _lib._objc_msgSend_64( + _id, + _lib._sel_resolvePrefixForNamespaceURI_1, + namespaceURI?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLCredential1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + void insertChild_atIndex_(NSXMLNode? child, int index) { + _lib._objc_msgSend_1041( + _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSURLCredential1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + void insertChildren_atIndex_(NSArray? children, int index) { + _lib._objc_msgSend_1042(_id, _lib._sel_insertChildren_atIndex_1, + children?._id ?? ffi.nullptr, index); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLCredential1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + void removeChildAtIndex_(int index) { + _lib._objc_msgSend_455(_id, _lib._sel_removeChildAtIndex_1, index); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLCredential1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + void setChildren_(NSArray? children) { + _lib._objc_msgSend_457( + _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); } -} -abstract class NSURLCredentialPersistence { - static const int NSURLCredentialPersistenceNone = 0; - static const int NSURLCredentialPersistenceForSession = 1; - static const int NSURLCredentialPersistencePermanent = 2; - static const int NSURLCredentialPersistenceSynchronizable = 3; -} + void addChild_(NSXMLNode? child) { + _lib._objc_msgSend_1043( + _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + } -final class __SecIdentity extends ffi.Opaque {} + void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { + _lib._objc_msgSend_1044(_id, _lib._sel_replaceChildAtIndex_withNode_1, + index, node?._id ?? ffi.nullptr); + } -final class __SecTrust extends ffi.Opaque {} + void normalizeAdjacentTextNodesPreservingCDATA_(bool preserve) { + _lib._objc_msgSend_810( + _id, _lib._sel_normalizeAdjacentTextNodesPreservingCDATA_1, preserve); + } -class NSURLProtectionSpace extends NSObject { - NSURLProtectionSpace._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + void setAttributesAsDictionary_(NSDictionary? attributes) { + _lib._objc_msgSend_492(_id, _lib._sel_setAttributesAsDictionary_1, + attributes?._id ?? ffi.nullptr); + } - /// Returns a [NSURLProtectionSpace] that points to the same underlying object as [other]. - static NSURLProtectionSpace castFrom(T other) { - return NSURLProtectionSpace._(other._id, other._lib, - retain: true, release: true); + @override + NSXMLElement init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLElement._(_ret, _lib, retain: true, release: true); } - /// Returns a [NSURLProtectionSpace] that wraps the given raw object pointer. - static NSURLProtectionSpace castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLProtectionSpace._(other, lib, retain: retain, release: release); + @override + NSXMLElement initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_1030(_id, _lib._sel_initWithKind_1, kind); + return NSXMLElement._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [NSURLProtectionSpace]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLProtectionSpace1); + static NSObject document(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_document1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLProtectionSpace initWithHost_port_protocol_realm_authenticationMethod_( - NSString? host, - int port, - NSString? protocol, - NSString? realm, - NSString? authenticationMethod) { - final _ret = _lib._objc_msgSend_923( - _id, - _lib._sel_initWithHost_port_protocol_realm_authenticationMethod_1, - host?._id ?? ffi.nullptr, - port, - protocol?._id ?? ffi.nullptr, - realm?._id ?? ffi.nullptr, - authenticationMethod?._id ?? ffi.nullptr); - return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); + static NSObject documentWithRootElement_( + SentryCocoa _lib, NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1032(_lib._class_NSXMLElement1, + _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLProtectionSpace initWithProxyHost_port_type_realm_authenticationMethod_( - NSString? host, - int port, - NSString? type, - NSString? realm, - NSString? authenticationMethod) { - final _ret = _lib._objc_msgSend_923( - _id, - _lib._sel_initWithProxyHost_port_type_realm_authenticationMethod_1, - host?._id ?? ffi.nullptr, - port, - type?._id ?? ffi.nullptr, - realm?._id ?? ffi.nullptr, - authenticationMethod?._id ?? ffi.nullptr); - return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); + static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, + _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString? get realm { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_realm1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSObject elementWithName_URI_( + SentryCocoa _lib, NSString? name, NSString? URI) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLElement1, + _lib._sel_elementWithName_URI_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool get receivesCredentialSecurely { - return _lib._objc_msgSend_12(_id, _lib._sel_receivesCredentialSecurely1); + static NSObject elementWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? string) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLElement1, + _lib._sel_elementWithName_stringValue_1, + name?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool get isProxy { - return _lib._objc_msgSend_12(_id, _lib._sel_isProxy1); + static NSObject elementWithName_children_attributes_(SentryCocoa _lib, + NSString? name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1033( + _lib._class_NSXMLElement1, + _lib._sel_elementWithName_children_attributes_1, + name?._id ?? ffi.nullptr, + children?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString? get host { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_host1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSObject attributeWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLElement1, + _lib._sel_attributeWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - int get port { - return _lib._objc_msgSend_78(_id, _lib._sel_port1); + static NSObject attributeWithName_URI_stringValue_( + SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { + final _ret = _lib._objc_msgSend_26( + _lib._class_NSXMLElement1, + _lib._sel_attributeWithName_URI_stringValue_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString? get proxyType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_proxyType1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSObject namespaceWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLElement1, + _lib._sel_namespaceWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString? get protocol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_protocol1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSObject processingInstructionWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLElement1, + _lib._sel_processingInstructionWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject commentWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, + _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString? get authenticationMethod { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_authenticationMethod1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSObject textWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, + _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSArray? get distinguishedNames { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_distinguishedNames1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, + _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - ffi.Pointer<__SecTrust> get serverTrust { - return _lib._objc_msgSend_924(_id, _lib._sel_serverTrust1); + static NSString localNameForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLElement1, + _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - @override - NSURLProtectionSpace init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLProtectionSpace._(_ret, _lib, retain: true, release: true); + static NSString prefixForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLElement1, + _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSURLProtectionSpace new1(SentryCocoa _lib) { + static NSXMLNode predefinedNamespaceForPrefix_( + SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1047(_lib._class_NSXMLElement1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + static NSXMLElement new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLProtectionSpace1, _lib._sel_new1); - return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_new1); + return NSXMLElement._(_ret, _lib, retain: false, release: true); } - static NSURLProtectionSpace allocWithZone_( + static NSXMLElement allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSURLProtectionSpace1, _lib._sel_allocWithZone_1, zone); - return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); + _lib._class_NSXMLElement1, _lib._sel_allocWithZone_1, zone); + return NSXMLElement._(_ret, _lib, retain: false, release: true); } - static NSURLProtectionSpace alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLProtectionSpace1, _lib._sel_alloc1); - return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); + static NSXMLElement alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_alloc1); + return NSXMLElement._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -64671,7 +72896,7 @@ class NSURLProtectionSpace extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLProtectionSpace1, + _lib._class_NSXMLElement1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -64680,24 +72905,24 @@ class NSURLProtectionSpace extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLProtectionSpace1, + _lib._objc_msgSend_15(_lib._class_NSXMLElement1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLProtectionSpace1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSXMLElement1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLProtectionSpace1, _lib._sel_useStoredAccessor1); + _lib._class_NSXMLElement1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLProtectionSpace1, + _lib._class_NSXMLElement1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -64706,7 +72931,7 @@ class NSURLProtectionSpace extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLProtectionSpace1, + _lib._class_NSXMLElement1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -64714,574 +72939,405 @@ class NSURLProtectionSpace extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLProtectionSpace1, + _lib._class_NSXMLElement1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLProtectionSpace1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSXMLElement1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLProtectionSpace1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSXMLElement1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSURLCredentialStorage extends NSObject { - NSURLCredentialStorage._(ffi.Pointer id, SentryCocoa lib, +class NSXMLNode extends NSObject { + NSXMLNode._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLCredentialStorage] that points to the same underlying object as [other]. - static NSURLCredentialStorage castFrom(T other) { - return NSURLCredentialStorage._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSXMLNode] that points to the same underlying object as [other]. + static NSXMLNode castFrom(T other) { + return NSXMLNode._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLCredentialStorage] that wraps the given raw object pointer. - static NSURLCredentialStorage castFromPointer( + /// Returns a [NSXMLNode] that wraps the given raw object pointer. + static NSXMLNode castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLCredentialStorage._(other, lib, - retain: retain, release: release); + return NSXMLNode._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLCredentialStorage]. + /// Returns whether [obj] is an instance of [NSXMLNode]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLCredentialStorage1); - } - - static NSURLCredentialStorage? getSharedCredentialStorage(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_925(_lib._class_NSURLCredentialStorage1, - _lib._sel_sharedCredentialStorage1); - return _ret.address == 0 - ? null - : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); - } - - NSDictionary credentialsForProtectionSpace_(NSURLProtectionSpace? space) { - final _ret = _lib._objc_msgSend_926(_id, - _lib._sel_credentialsForProtectionSpace_1, space?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } - - NSDictionary? get allCredentials { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allCredentials1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - void setCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - _lib._objc_msgSend_927(_id, _lib._sel_setCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, space?._id ?? ffi.nullptr); - } - - void removeCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - _lib._objc_msgSend_927(_id, _lib._sel_removeCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, space?._id ?? ffi.nullptr); - } - - void removeCredential_forProtectionSpace_options_(NSURLCredential? credential, - NSURLProtectionSpace? space, NSDictionary? options) { - _lib._objc_msgSend_928( - _id, - _lib._sel_removeCredential_forProtectionSpace_options_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLNode1); } - NSURLCredential defaultCredentialForProtectionSpace_( - NSURLProtectionSpace? space) { - final _ret = _lib._objc_msgSend_929( - _id, - _lib._sel_defaultCredentialForProtectionSpace_1, - space?._id ?? ffi.nullptr); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + @override + NSXMLNode init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - void setDefaultCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - _lib._objc_msgSend_927( - _id, - _lib._sel_setDefaultCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr); + NSXMLNode initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_1030(_id, _lib._sel_initWithKind_1, kind); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - void getCredentialsForProtectionSpace_task_completionHandler_( - NSURLProtectionSpace? protectionSpace, - NSURLSessionTask? task, - ObjCBlock_ffiVoid_NSDictionary completionHandler) { - _lib._objc_msgSend_930( - _id, - _lib._sel_getCredentialsForProtectionSpace_task_completionHandler_1, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, - completionHandler._id); + NSXMLNode initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1031( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - void setCredential_forProtectionSpace_task_(NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, NSURLSessionTask? task) { - _lib._objc_msgSend_931( - _id, - _lib._sel_setCredential_forProtectionSpace_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); + static NSObject document(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_document1); + return NSObject._(_ret, _lib, retain: true, release: true); } - void removeCredential_forProtectionSpace_options_task_( - NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, - NSDictionary? options, - NSURLSessionTask? task) { - _lib._objc_msgSend_932( - _id, - _lib._sel_removeCredential_forProtectionSpace_options_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); + static NSObject documentWithRootElement_( + SentryCocoa _lib, NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1032(_lib._class_NSXMLNode1, + _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - void getDefaultCredentialForProtectionSpace_task_completionHandler_( - NSURLProtectionSpace? space, - NSURLSessionTask? task, - ObjCBlock_ffiVoid_NSURLCredential completionHandler) { - _lib._objc_msgSend_933( - _id, - _lib._sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1, - space?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, - completionHandler._id); + static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, + _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - void setDefaultCredential_forProtectionSpace_task_( - NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, - NSURLSessionTask? task) { - _lib._objc_msgSend_931( - _id, - _lib._sel_setDefaultCredential_forProtectionSpace_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); + static NSObject elementWithName_URI_( + SentryCocoa _lib, NSString? name, NSString? URI) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLNode1, + _lib._sel_elementWithName_URI_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - NSURLCredentialStorage init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); + static NSObject elementWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? string) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLNode1, + _lib._sel_elementWithName_stringValue_1, + name?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSURLCredentialStorage new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLCredentialStorage1, _lib._sel_new1); - return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); + static NSObject elementWithName_children_attributes_(SentryCocoa _lib, + NSString? name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1033( + _lib._class_NSXMLNode1, + _lib._sel_elementWithName_children_attributes_1, + name?._id ?? ffi.nullptr, + children?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSURLCredentialStorage allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSURLCredentialStorage1, _lib._sel_allocWithZone_1, zone); - return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); + static NSObject attributeWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLNode1, + _lib._sel_attributeWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSURLCredentialStorage alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLCredentialStorage1, _lib._sel_alloc1); - return NSURLCredentialStorage._(_ret, _lib, retain: false, release: true); + static NSObject attributeWithName_URI_stringValue_( + SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { + final _ret = _lib._objc_msgSend_26( + _lib._class_NSXMLNode1, + _lib._sel_attributeWithName_URI_stringValue_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLCredentialStorage1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + static NSObject namespaceWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLNode1, + _lib._sel_namespaceWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLCredentialStorage1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + static NSObject processingInstructionWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLNode1, + _lib._sel_processingInstructionWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLCredentialStorage1, - _lib._sel_accessInstanceVariablesDirectly1); + static NSObject commentWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, + _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLCredentialStorage1, _lib._sel_useStoredAccessor1); + static NSObject textWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, + _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLCredentialStorage1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, + _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLCredentialStorage1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + int get kind { + return _lib._objc_msgSend_1034(_id, _lib._sel_kind1); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSURLCredentialStorage1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLCredentialStorage1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + set name(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCredentialStorage1, - _lib._sel_classForKeyedUnarchiver1); + NSObject get objectValue { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_objectValue1); return NSObject._(_ret, _lib, retain: true, release: true); } -} - -void _ObjCBlock_ffiVoid_NSDictionary_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock_ffiVoid_NSDictionary_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSDictionary_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSDictionary_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSDictionary_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSDictionary_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_ffiVoid_NSDictionary_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSDictionary_closureRegistry[block - .ref.target.address] as void Function(ffi.Pointer))(arg0); -} - -class ObjCBlock_ffiVoid_NSDictionary extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSDictionary._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSDictionary.fromFunctionPointer( - SentryCocoa lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSDictionary_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSDictionary.fromFunction( - SentryCocoa lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSDictionary_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSDictionary_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); + set objectValue(NSObject value) { + return _lib._objc_msgSend_389(_id, _lib._sel_setObjectValue_1, value._id); } -} - -void _ObjCBlock_ffiVoid_NSURLCredential_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock_ffiVoid_NSURLCredential_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSURLCredential_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSURLCredential_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSURLCredential_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSURLCredential_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_ffiVoid_NSURLCredential_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSURLCredential_closureRegistry[block - .ref.target.address] as void Function(ffi.Pointer))(arg0); -} - -class ObjCBlock_ffiVoid_NSURLCredential extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSURLCredential._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSURLCredential.fromFunctionPointer( - SentryCocoa lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSURLCredential_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSURLCredential.fromFunction( - SentryCocoa lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSURLCredential_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSURLCredential_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); + NSString? get stringValue { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } -} -class NSURLProtocol extends NSObject { - NSURLProtocol._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + set stringValue(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setStringValue_1, value?._id ?? ffi.nullptr); + } - /// Returns a [NSURLProtocol] that points to the same underlying object as [other]. - static NSURLProtocol castFrom(T other) { - return NSURLProtocol._(other._id, other._lib, retain: true, release: true); + void setStringValue_resolvingEntities_(NSString? string, bool resolve) { + _lib._objc_msgSend_1035(_id, _lib._sel_setStringValue_resolvingEntities_1, + string?._id ?? ffi.nullptr, resolve); } - /// Returns a [NSURLProtocol] that wraps the given raw object pointer. - static NSURLProtocol castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLProtocol._(other, lib, retain: retain, release: release); + int get index { + return _lib._objc_msgSend_10(_id, _lib._sel_index1); } - /// Returns whether [obj] is an instance of [NSURLProtocol]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLProtocol1); + int get level { + return _lib._objc_msgSend_10(_id, _lib._sel_level1); } - NSURLProtocol initWithRequest_cachedResponse_client_(NSURLRequest? request, - NSCachedURLResponse? cachedResponse, NSObject? client) { - final _ret = _lib._objc_msgSend_934( - _id, - _lib._sel_initWithRequest_cachedResponse_client_1, - request?._id ?? ffi.nullptr, - cachedResponse?._id ?? ffi.nullptr, - client?._id ?? ffi.nullptr); - return NSURLProtocol._(_ret, _lib, retain: true, release: true); + NSXMLDocument? get rootDocument { + final _ret = _lib._objc_msgSend_1058(_id, _lib._sel_rootDocument1); + return _ret.address == 0 + ? null + : NSXMLDocument._(_ret, _lib, retain: true, release: true); } - NSObject? get client { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_client1); + NSXMLNode? get parent { + final _ret = _lib._objc_msgSend_1059(_id, _lib._sel_parent1); return _ret.address == 0 ? null - : NSObject._(_ret, _lib, retain: true, release: true); + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - NSURLRequest? get request { - final _ret = _lib._objc_msgSend_803(_id, _lib._sel_request1); + int get childCount { + return _lib._objc_msgSend_10(_id, _lib._sel_childCount1); + } + + NSArray? get children { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_children1); return _ret.address == 0 ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - NSCachedURLResponse? get cachedResponse { - final _ret = _lib._objc_msgSend_935(_id, _lib._sel_cachedResponse1); + NSXMLNode childAtIndex_(int index) { + final _ret = _lib._objc_msgSend_1060(_id, _lib._sel_childAtIndex_1, index); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + NSXMLNode? get previousSibling { + final _ret = _lib._objc_msgSend_1059(_id, _lib._sel_previousSibling1); return _ret.address == 0 ? null - : NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - static bool canInitWithRequest_(SentryCocoa _lib, NSURLRequest? request) { - return _lib._objc_msgSend_912(_lib._class_NSURLProtocol1, - _lib._sel_canInitWithRequest_1, request?._id ?? ffi.nullptr); + NSXMLNode? get nextSibling { + final _ret = _lib._objc_msgSend_1059(_id, _lib._sel_nextSibling1); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - static NSURLRequest canonicalRequestForRequest_( - SentryCocoa _lib, NSURLRequest? request) { - final _ret = _lib._objc_msgSend_936(_lib._class_NSURLProtocol1, - _lib._sel_canonicalRequestForRequest_1, request?._id ?? ffi.nullptr); - return NSURLRequest._(_ret, _lib, retain: true, release: true); + NSXMLNode? get previousNode { + final _ret = _lib._objc_msgSend_1059(_id, _lib._sel_previousNode1); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - static bool requestIsCacheEquivalent_toRequest_( - SentryCocoa _lib, NSURLRequest? a, NSURLRequest? b) { - return _lib._objc_msgSend_937( - _lib._class_NSURLProtocol1, - _lib._sel_requestIsCacheEquivalent_toRequest_1, - a?._id ?? ffi.nullptr, - b?._id ?? ffi.nullptr); + NSXMLNode? get nextNode { + final _ret = _lib._objc_msgSend_1059(_id, _lib._sel_nextNode1); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - void startLoading() { - _lib._objc_msgSend_1(_id, _lib._sel_startLoading1); + void detach() { + _lib._objc_msgSend_1(_id, _lib._sel_detach1); } - void stopLoading() { - _lib._objc_msgSend_1(_id, _lib._sel_stopLoading1); + NSString? get XPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_XPath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSObject propertyForKey_inRequest_( - SentryCocoa _lib, NSString? key, NSURLRequest? request) { - final _ret = _lib._objc_msgSend_938( - _lib._class_NSURLProtocol1, - _lib._sel_propertyForKey_inRequest_1, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSString? get localName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static void setProperty_forKey_inRequest_(SentryCocoa _lib, NSObject value, - NSString? key, NSMutableURLRequest? request) { - _lib._objc_msgSend_944( - _lib._class_NSURLProtocol1, - _lib._sel_setProperty_forKey_inRequest_1, - value._id, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + NSString? get prefix { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_prefix1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static void removePropertyForKey_inRequest_( - SentryCocoa _lib, NSString? key, NSMutableURLRequest? request) { - _lib._objc_msgSend_945( - _lib._class_NSURLProtocol1, - _lib._sel_removePropertyForKey_inRequest_1, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + NSString? get URI { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_URI1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static bool registerClass_(SentryCocoa _lib, NSObject protocolClass) { - return _lib._objc_msgSend_0(_lib._class_NSURLProtocol1, - _lib._sel_registerClass_1, protocolClass._id); + set URI(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setURI_1, value?._id ?? ffi.nullptr); } - static void unregisterClass_(SentryCocoa _lib, NSObject protocolClass) { - _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, - _lib._sel_unregisterClass_1, protocolClass._id); + static NSString localNameForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLNode1, + _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - static bool canInitWithTask_(SentryCocoa _lib, NSURLSessionTask? task) { - return _lib._objc_msgSend_946(_lib._class_NSURLProtocol1, - _lib._sel_canInitWithTask_1, task?._id ?? ffi.nullptr); + static NSString prefixForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLNode1, + _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - NSURLProtocol initWithTask_cachedResponse_client_(NSURLSessionTask? task, - NSCachedURLResponse? cachedResponse, NSObject? client) { - final _ret = _lib._objc_msgSend_947( - _id, - _lib._sel_initWithTask_cachedResponse_client_1, - task?._id ?? ffi.nullptr, - cachedResponse?._id ?? ffi.nullptr, - client?._id ?? ffi.nullptr); - return NSURLProtocol._(_ret, _lib, retain: true, release: true); + static NSXMLNode predefinedNamespaceForPrefix_( + SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1047(_lib._class_NSXMLNode1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - NSURLSessionTask? get task { - final _ret = _lib._objc_msgSend_948(_id, _lib._sel_task1); + NSString? get description { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); return _ret.address == 0 ? null - : NSURLSessionTask._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - @override - NSURLProtocol init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLProtocol._(_ret, _lib, retain: true, release: true); + NSString? get XMLString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_XMLString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSURLProtocol new1(SentryCocoa _lib) { + NSString XMLStringWithOptions_(int options) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_new1); - return NSURLProtocol._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_1061(_id, _lib._sel_XMLStringWithOptions_1, options); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSURLProtocol allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + NSString canonicalXMLStringPreservingComments_(bool comments) { + final _ret = _lib._objc_msgSend_1062( + _id, _lib._sel_canonicalXMLStringPreservingComments_1, comments); + return NSString._(_ret, _lib, retain: true, release: true); + } + + NSArray nodesForXPath_error_( + NSString? xpath, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_416( + _id, _lib._sel_nodesForXPath_error_1, xpath?._id ?? ffi.nullptr, error); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray objectsForXQuery_constants_error_(NSString? xquery, + NSDictionary? constants, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1063( + _id, + _lib._sel_objectsForXQuery_constants_error_1, + xquery?._id ?? ffi.nullptr, + constants?._id ?? ffi.nullptr, + error); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSArray objectsForXQuery_error_( + NSString? xquery, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_416(_id, _lib._sel_objectsForXQuery_error_1, + xquery?._id ?? ffi.nullptr, error); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSXMLNode new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_new1); + return NSXMLNode._(_ret, _lib, retain: false, release: true); + } + + static NSXMLNode allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSURLProtocol1, _lib._sel_allocWithZone_1, zone); - return NSURLProtocol._(_ret, _lib, retain: false, release: true); + _lib._class_NSXMLNode1, _lib._sel_allocWithZone_1, zone); + return NSXMLNode._(_ret, _lib, retain: false, release: true); } - static NSURLProtocol alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_alloc1); - return NSURLProtocol._(_ret, _lib, retain: false, release: true); + static NSXMLNode alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_alloc1); + return NSXMLNode._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -65290,7 +73346,7 @@ class NSURLProtocol extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLProtocol1, + _lib._class_NSXMLNode1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -65299,24 +73355,24 @@ class NSURLProtocol extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, + _lib._objc_msgSend_15(_lib._class_NSXMLNode1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLProtocol1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSXMLNode1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLProtocol1, _lib._sel_useStoredAccessor1); + _lib._class_NSXMLNode1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLProtocol1, + _lib._class_NSXMLNode1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -65325,7 +73381,7 @@ class NSURLProtocol extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLProtocol1, + _lib._class_NSXMLNode1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -65333,7 +73389,7 @@ class NSURLProtocol extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLProtocol1, + _lib._class_NSXMLNode1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -65341,557 +73397,453 @@ class NSURLProtocol extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLProtocol1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSXMLNode1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLProtocol1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSXMLNode1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSMutableURLRequest extends NSURLRequest { - NSMutableURLRequest._(ffi.Pointer id, SentryCocoa lib, +abstract class NSXMLNodeKind { + static const int NSXMLInvalidKind = 0; + static const int NSXMLDocumentKind = 1; + static const int NSXMLElementKind = 2; + static const int NSXMLAttributeKind = 3; + static const int NSXMLNamespaceKind = 4; + static const int NSXMLProcessingInstructionKind = 5; + static const int NSXMLCommentKind = 6; + static const int NSXMLTextKind = 7; + static const int NSXMLDTDKind = 8; + static const int NSXMLEntityDeclarationKind = 9; + static const int NSXMLAttributeDeclarationKind = 10; + static const int NSXMLElementDeclarationKind = 11; + static const int NSXMLNotationDeclarationKind = 12; +} + +abstract class NSXMLNodeOptions { + static const int NSXMLNodeOptionsNone = 0; + static const int NSXMLNodeIsCDATA = 1; + static const int NSXMLNodeExpandEmptyElement = 2; + static const int NSXMLNodeCompactEmptyElement = 4; + static const int NSXMLNodeUseSingleQuotes = 8; + static const int NSXMLNodeUseDoubleQuotes = 16; + static const int NSXMLNodeNeverEscapeContents = 32; + static const int NSXMLDocumentTidyHTML = 512; + static const int NSXMLDocumentTidyXML = 1024; + static const int NSXMLDocumentValidate = 8192; + static const int NSXMLNodeLoadExternalEntitiesAlways = 16384; + static const int NSXMLNodeLoadExternalEntitiesSameOriginOnly = 32768; + static const int NSXMLNodeLoadExternalEntitiesNever = 524288; + static const int NSXMLDocumentXInclude = 65536; + static const int NSXMLNodePrettyPrint = 131072; + static const int NSXMLDocumentIncludeContentTypeDeclaration = 262144; + static const int NSXMLNodePreserveNamespaceOrder = 1048576; + static const int NSXMLNodePreserveAttributeOrder = 2097152; + static const int NSXMLNodePreserveEntities = 4194304; + static const int NSXMLNodePreservePrefixes = 8388608; + static const int NSXMLNodePreserveCDATA = 16777216; + static const int NSXMLNodePreserveWhitespace = 33554432; + static const int NSXMLNodePreserveDTD = 67108864; + static const int NSXMLNodePreserveCharacterReferences = 134217728; + static const int NSXMLNodePromoteSignificantWhitespace = 268435456; + static const int NSXMLNodePreserveEmptyElements = 6; + static const int NSXMLNodePreserveQuotes = 24; + static const int NSXMLNodePreserveAll = 4293918750; +} + +class NSXMLDocument extends NSXMLNode { + NSXMLDocument._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSMutableURLRequest] that points to the same underlying object as [other]. - static NSMutableURLRequest castFrom(T other) { - return NSMutableURLRequest._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSXMLDocument] that points to the same underlying object as [other]. + static NSXMLDocument castFrom(T other) { + return NSXMLDocument._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSMutableURLRequest] that wraps the given raw object pointer. - static NSMutableURLRequest castFromPointer( + /// Returns a [NSXMLDocument] that wraps the given raw object pointer. + static NSXMLDocument castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSMutableURLRequest._(other, lib, retain: retain, release: release); + return NSXMLDocument._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableURLRequest]. + /// Returns whether [obj] is an instance of [NSXMLDocument]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSMutableURLRequest1); - } - - @override - NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - set URL(NSURL? value) { - return _lib._objc_msgSend_624( - _id, _lib._sel_setURL_1, value?._id ?? ffi.nullptr); - } - - @override - int get cachePolicy { - return _lib._objc_msgSend_790(_id, _lib._sel_cachePolicy1); - } - - set cachePolicy(int value) { - return _lib._objc_msgSend_939(_id, _lib._sel_setCachePolicy_1, value); - } - - @override - double get timeoutInterval { - return _lib._objc_msgSend_155(_id, _lib._sel_timeoutInterval1); - } - - set timeoutInterval(double value) { - return _lib._objc_msgSend_509(_id, _lib._sel_setTimeoutInterval_1, value); - } - - @override - NSURL? get mainDocumentURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_mainDocumentURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - set mainDocumentURL(NSURL? value) { - return _lib._objc_msgSend_624( - _id, _lib._sel_setMainDocumentURL_1, value?._id ?? ffi.nullptr); - } - - @override - int get networkServiceType { - return _lib._objc_msgSend_791(_id, _lib._sel_networkServiceType1); - } - - set networkServiceType(int value) { - return _lib._objc_msgSend_940( - _id, _lib._sel_setNetworkServiceType_1, value); - } - - @override - bool get allowsCellularAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); - } - - set allowsCellularAccess(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setAllowsCellularAccess_1, value); - } - - @override - bool get allowsExpensiveNetworkAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); - } - - set allowsExpensiveNetworkAccess(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); - } - - @override - bool get allowsConstrainedNetworkAccess { - return _lib._objc_msgSend_12( - _id, _lib._sel_allowsConstrainedNetworkAccess1); - } - - set allowsConstrainedNetworkAccess(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); - } - - @override - bool get assumesHTTP3Capable { - return _lib._objc_msgSend_12(_id, _lib._sel_assumesHTTP3Capable1); - } - - set assumesHTTP3Capable(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setAssumesHTTP3Capable_1, value); - } - - @override - int get attribution { - return _lib._objc_msgSend_792(_id, _lib._sel_attribution1); - } - - set attribution(int value) { - return _lib._objc_msgSend_941(_id, _lib._sel_setAttribution_1, value); - } - - @override - bool get requiresDNSSECValidation { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); - } - - set requiresDNSSECValidation(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setRequiresDNSSECValidation_1, value); - } - - @override - bool get allowsPersistentDNS { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsPersistentDNS1); - } - - set allowsPersistentDNS(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setAllowsPersistentDNS_1, value); - } - - @override - NSString? get cookiePartitionIdentifier { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_cookiePartitionIdentifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set cookiePartitionIdentifier(NSString? value) { - return _lib._objc_msgSend_512(_id, _lib._sel_setCookiePartitionIdentifier_1, - value?._id ?? ffi.nullptr); - } - - @override - NSString? get HTTPMethod { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_HTTPMethod1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set HTTPMethod(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setHTTPMethod_1, value?._id ?? ffi.nullptr); - } - - @override - NSDictionary? get allHTTPHeaderFields { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allHTTPHeaderFields1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set allHTTPHeaderFields(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setAllHTTPHeaderFields_1, value?._id ?? ffi.nullptr); - } - - void setValue_forHTTPHeaderField_(NSString? value, NSString? field) { - _lib._objc_msgSend_518(_id, _lib._sel_setValue_forHTTPHeaderField_1, - value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); - } - - void addValue_forHTTPHeaderField_(NSString? value, NSString? field) { - _lib._objc_msgSend_518(_id, _lib._sel_addValue_forHTTPHeaderField_1, - value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); - } - - @override - NSData? get HTTPBody { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_HTTPBody1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); - } - - set HTTPBody(NSData? value) { - return _lib._objc_msgSend_942( - _id, _lib._sel_setHTTPBody_1, value?._id ?? ffi.nullptr); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDocument1); } @override - NSInputStream? get HTTPBodyStream { - final _ret = _lib._objc_msgSend_802(_id, _lib._sel_HTTPBodyStream1); - return _ret.address == 0 - ? null - : NSInputStream._(_ret, _lib, retain: true, release: true); + NSXMLDocument init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); } - set HTTPBodyStream(NSInputStream? value) { - return _lib._objc_msgSend_943( - _id, _lib._sel_setHTTPBodyStream_1, value?._id ?? ffi.nullptr); + NSXMLDocument initWithXMLString_options_error_( + NSString? string, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1036( + _id, + _lib._sel_initWithXMLString_options_error_1, + string?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); } - @override - bool get HTTPShouldHandleCookies { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldHandleCookies1); + NSXMLDocument initWithContentsOfURL_options_error_( + NSURL? url, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1037( + _id, + _lib._sel_initWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); } - set HTTPShouldHandleCookies(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setHTTPShouldHandleCookies_1, value); + NSXMLDocument initWithData_options_error_( + NSData? data, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1038( + _id, + _lib._sel_initWithData_options_error_1, + data?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); } - @override - bool get HTTPShouldUsePipelining { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + NSXMLDocument initWithRootElement_(NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1032( + _id, _lib._sel_initWithRootElement_1, element?._id ?? ffi.nullptr); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); } - set HTTPShouldUsePipelining(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setHTTPShouldUsePipelining_1, value); + static NSObject replacementClassForClass_(SentryCocoa _lib, NSObject cls) { + final _ret = _lib._objc_msgSend_16(_lib._class_NSXMLDocument1, + _lib._sel_replacementClassForClass_1, cls._id); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSMutableURLRequest requestWithURL_(SentryCocoa _lib, NSURL? URL) { - final _ret = _lib._objc_msgSend_241(_lib._class_NSMutableURLRequest1, - _lib._sel_requestWithURL_1, URL?._id ?? ffi.nullptr); - return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + NSString? get characterEncoding { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_characterEncoding1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static bool getSupportsSecureCoding(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableURLRequest1, _lib._sel_supportsSecureCoding1); + set characterEncoding(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setCharacterEncoding_1, value?._id ?? ffi.nullptr); } - static NSMutableURLRequest requestWithURL_cachePolicy_timeoutInterval_( - SentryCocoa _lib, NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_789( - _lib._class_NSMutableURLRequest1, - _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + NSString? get version { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_version1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - @override - NSMutableURLRequest initWithURL_(NSURL? URL) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithURL_1, URL?._id ?? ffi.nullptr); - return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + set version(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setVersion_1, value?._id ?? ffi.nullptr); } - @override - NSMutableURLRequest initWithURL_cachePolicy_timeoutInterval_( - NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_789( - _id, - _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + bool get standalone { + return _lib._objc_msgSend_12(_id, _lib._sel_isStandalone1); } - @override - NSMutableURLRequest init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + set standalone(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setStandalone_1, value); } - static NSMutableURLRequest new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableURLRequest1, _lib._sel_new1); - return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); + int get documentContentKind { + return _lib._objc_msgSend_1039(_id, _lib._sel_documentContentKind1); } - static NSMutableURLRequest allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSMutableURLRequest1, _lib._sel_allocWithZone_1, zone); - return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); + set documentContentKind(int value) { + return _lib._objc_msgSend_1040( + _id, _lib._sel_setDocumentContentKind_1, value); } - static NSMutableURLRequest alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableURLRequest1, _lib._sel_alloc1); - return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); + NSString? get MIMEType { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_MIMEType1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSMutableURLRequest1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + set MIMEType(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setMIMEType_1, value?._id ?? ffi.nullptr); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableURLRequest1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + NSXMLDTD? get DTD { + final _ret = _lib._objc_msgSend_1050(_id, _lib._sel_DTD1); + return _ret.address == 0 + ? null + : NSXMLDTD._(_ret, _lib, retain: true, release: true); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSMutableURLRequest1, - _lib._sel_accessInstanceVariablesDirectly1); + set DTD(NSXMLDTD? value) { + return _lib._objc_msgSend_1051( + _id, _lib._sel_setDTD_1, value?._id ?? ffi.nullptr); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableURLRequest1, _lib._sel_useStoredAccessor1); + void setRootElement_(NSXMLElement? root) { + _lib._objc_msgSend_1052( + _id, _lib._sel_setRootElement_1, root?._id ?? ffi.nullptr); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableURLRequest1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSXMLElement rootElement() { + final _ret = _lib._objc_msgSend_1053(_id, _lib._sel_rootElement1); + return NSXMLElement._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSMutableURLRequest1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + void insertChild_atIndex_(NSXMLNode? child, int index) { + _lib._objc_msgSend_1041( + _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSMutableURLRequest1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + void insertChildren_atIndex_(NSArray? children, int index) { + _lib._objc_msgSend_1042(_id, _lib._sel_insertChildren_atIndex_1, + children?._id ?? ffi.nullptr, index); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSMutableURLRequest1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + void removeChildAtIndex_(int index) { + _lib._objc_msgSend_455(_id, _lib._sel_removeChildAtIndex_1, index); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSMutableURLRequest1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + void setChildren_(NSArray? children) { + _lib._objc_msgSend_457( + _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); } -} - -class NSXMLParser extends NSObject { - NSXMLParser._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [NSXMLParser] that points to the same underlying object as [other]. - static NSXMLParser castFrom(T other) { - return NSXMLParser._(other._id, other._lib, retain: true, release: true); + void addChild_(NSXMLNode? child) { + _lib._objc_msgSend_1043( + _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); } - /// Returns a [NSXMLParser] that wraps the given raw object pointer. - static NSXMLParser castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSXMLParser._(other, lib, retain: retain, release: release); + void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { + _lib._objc_msgSend_1044(_id, _lib._sel_replaceChildAtIndex_withNode_1, + index, node?._id ?? ffi.nullptr); } - /// Returns whether [obj] is an instance of [NSXMLParser]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLParser1); + NSData? get XMLData { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_XMLData1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSXMLParser initWithContentsOfURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_241( - _id, _lib._sel_initWithContentsOfURL_1, url?._id ?? ffi.nullptr); - return NSXMLParser._(_ret, _lib, retain: true, release: true); + NSData XMLDataWithOptions_(int options) { + final _ret = + _lib._objc_msgSend_1054(_id, _lib._sel_XMLDataWithOptions_1, options); + return NSData._(_ret, _lib, retain: true, release: true); } - NSXMLParser initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_257( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); - return NSXMLParser._(_ret, _lib, retain: true, release: true); + NSObject objectByApplyingXSLT_arguments_error_(NSData? xslt, + NSDictionary? arguments, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1055( + _id, + _lib._sel_objectByApplyingXSLT_arguments_error_1, + xslt?._id ?? ffi.nullptr, + arguments?._id ?? ffi.nullptr, + error); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSXMLParser initWithStream_(NSInputStream? stream) { - final _ret = _lib._objc_msgSend_949( - _id, _lib._sel_initWithStream_1, stream?._id ?? ffi.nullptr); - return NSXMLParser._(_ret, _lib, retain: true, release: true); + NSObject objectByApplyingXSLTString_arguments_error_(NSString? xslt, + NSDictionary? arguments, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1056( + _id, + _lib._sel_objectByApplyingXSLTString_arguments_error_1, + xslt?._id ?? ffi.nullptr, + arguments?._id ?? ffi.nullptr, + error); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + NSObject objectByApplyingXSLTAtURL_arguments_error_(NSURL? xsltURL, + NSDictionary? argument, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1057( + _id, + _lib._sel_objectByApplyingXSLTAtURL_arguments_error_1, + xsltURL?._id ?? ffi.nullptr, + argument?._id ?? ffi.nullptr, + error); + return NSObject._(_ret, _lib, retain: true, release: true); } - set delegate(NSObject? value) { - return _lib._objc_msgSend_389( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + bool validateAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_236( + _id, _lib._sel_validateAndReturnError_1, error); } - bool get shouldProcessNamespaces { - return _lib._objc_msgSend_12(_id, _lib._sel_shouldProcessNamespaces1); + @override + NSXMLDocument initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_1030(_id, _lib._sel_initWithKind_1, kind); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); } - set shouldProcessNamespaces(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setShouldProcessNamespaces_1, value); + @override + NSXMLDocument initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1031( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); } - bool get shouldReportNamespacePrefixes { - return _lib._objc_msgSend_12(_id, _lib._sel_shouldReportNamespacePrefixes1); + static NSObject document(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_document1); + return NSObject._(_ret, _lib, retain: true, release: true); } - set shouldReportNamespacePrefixes(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setShouldReportNamespacePrefixes_1, value); + static NSObject documentWithRootElement_( + SentryCocoa _lib, NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1032(_lib._class_NSXMLDocument1, + _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - int get externalEntityResolvingPolicy { - return _lib._objc_msgSend_950( - _id, _lib._sel_externalEntityResolvingPolicy1); + static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, + _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - set externalEntityResolvingPolicy(int value) { - return _lib._objc_msgSend_951( - _id, _lib._sel_setExternalEntityResolvingPolicy_1, value); + static NSObject elementWithName_URI_( + SentryCocoa _lib, NSString? name, NSString? URI) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDocument1, + _lib._sel_elementWithName_URI_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSSet? get allowedExternalEntityURLs { - final _ret = - _lib._objc_msgSend_297(_id, _lib._sel_allowedExternalEntityURLs1); - return _ret.address == 0 - ? null - : NSSet._(_ret, _lib, retain: true, release: true); + static NSObject elementWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? string) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDocument1, + _lib._sel_elementWithName_stringValue_1, + name?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - set allowedExternalEntityURLs(NSSet? value) { - return _lib._objc_msgSend_952(_id, _lib._sel_setAllowedExternalEntityURLs_1, - value?._id ?? ffi.nullptr); + static NSObject elementWithName_children_attributes_(SentryCocoa _lib, + NSString? name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1033( + _lib._class_NSXMLDocument1, + _lib._sel_elementWithName_children_attributes_1, + name?._id ?? ffi.nullptr, + children?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool parse() { - return _lib._objc_msgSend_12(_id, _lib._sel_parse1); + static NSObject attributeWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDocument1, + _lib._sel_attributeWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - void abortParsing() { - _lib._objc_msgSend_1(_id, _lib._sel_abortParsing1); + static NSObject attributeWithName_URI_stringValue_( + SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { + final _ret = _lib._objc_msgSend_26( + _lib._class_NSXMLDocument1, + _lib._sel_attributeWithName_URI_stringValue_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSError? get parserError { - final _ret = _lib._objc_msgSend_300(_id, _lib._sel_parserError1); - return _ret.address == 0 - ? null - : NSError._(_ret, _lib, retain: true, release: true); + static NSObject namespaceWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDocument1, + _lib._sel_namespaceWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool get shouldResolveExternalEntities { - return _lib._objc_msgSend_12(_id, _lib._sel_shouldResolveExternalEntities1); + static NSObject processingInstructionWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDocument1, + _lib._sel_processingInstructionWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - set shouldResolveExternalEntities(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setShouldResolveExternalEntities_1, value); + static NSObject commentWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, + _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString? get publicID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSObject textWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, + _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString? get systemID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, + _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - int get lineNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_lineNumber1); + static NSString localNameForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDocument1, + _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - int get columnNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_columnNumber1); + static NSString prefixForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDocument1, + _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - @override - NSXMLParser init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLParser._(_ret, _lib, retain: true, release: true); + static NSXMLNode predefinedNamespaceForPrefix_( + SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1047(_lib._class_NSXMLDocument1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - static NSXMLParser new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_new1); - return NSXMLParser._(_ret, _lib, retain: false, release: true); + static NSXMLDocument new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_new1); + return NSXMLDocument._(_ret, _lib, retain: false, release: true); } - static NSXMLParser allocWithZone_( + static NSXMLDocument allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSXMLParser1, _lib._sel_allocWithZone_1, zone); - return NSXMLParser._(_ret, _lib, retain: false, release: true); + _lib._class_NSXMLDocument1, _lib._sel_allocWithZone_1, zone); + return NSXMLDocument._(_ret, _lib, retain: false, release: true); } - static NSXMLParser alloc(SentryCocoa _lib) { + static NSXMLDocument alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_alloc1); - return NSXMLParser._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_alloc1); + return NSXMLDocument._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -65900,7 +73852,7 @@ class NSXMLParser extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSXMLParser1, + _lib._class_NSXMLDocument1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -65909,24 +73861,24 @@ class NSXMLParser extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSXMLParser1, + _lib._objc_msgSend_15(_lib._class_NSXMLDocument1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLParser1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSXMLDocument1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLParser1, _lib._sel_useStoredAccessor1); + _lib._class_NSXMLDocument1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLParser1, + _lib._class_NSXMLDocument1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -65935,7 +73887,7 @@ class NSXMLParser extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSXMLParser1, + _lib._class_NSXMLDocument1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -65943,7 +73895,7 @@ class NSXMLParser extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSXMLParser1, + _lib._class_NSXMLDocument1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -65951,302 +73903,322 @@ class NSXMLParser extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLParser1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSXMLDocument1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLParser1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSXMLDocument1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSXMLParserExternalEntityResolvingPolicy { - static const int NSXMLParserResolveExternalEntitiesNever = 0; - static const int NSXMLParserResolveExternalEntitiesNoNetwork = 1; - static const int NSXMLParserResolveExternalEntitiesSameOriginOnly = 2; - static const int NSXMLParserResolveExternalEntitiesAlways = 3; +abstract class NSXMLDocumentContentKind { + static const int NSXMLDocumentXMLKind = 0; + static const int NSXMLDocumentXHTMLKind = 1; + static const int NSXMLDocumentHTMLKind = 2; + static const int NSXMLDocumentTextKind = 3; } -class NSFileWrapper extends NSObject { - NSFileWrapper._(ffi.Pointer id, SentryCocoa lib, +class NSXMLDTD extends NSXMLNode { + NSXMLDTD._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSFileWrapper] that points to the same underlying object as [other]. - static NSFileWrapper castFrom(T other) { - return NSFileWrapper._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSXMLDTD] that points to the same underlying object as [other]. + static NSXMLDTD castFrom(T other) { + return NSXMLDTD._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSFileWrapper] that wraps the given raw object pointer. - static NSFileWrapper castFromPointer( + /// Returns a [NSXMLDTD] that wraps the given raw object pointer. + static NSXMLDTD castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSFileWrapper._(other, lib, retain: retain, release: release); + return NSXMLDTD._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSFileWrapper]. + /// Returns whether [obj] is an instance of [NSXMLDTD]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSFileWrapper1); - } - - NSFileWrapper initWithURL_options_error_( - NSURL? url, int options, ffi.Pointer> outError) { - final _ret = _lib._objc_msgSend_953( - _id, - _lib._sel_initWithURL_options_error_1, - url?._id ?? ffi.nullptr, - options, - outError); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); - } - - NSFileWrapper initDirectoryWithFileWrappers_( - NSDictionary? childrenByPreferredName) { - final _ret = _lib._objc_msgSend_149( - _id, - _lib._sel_initDirectoryWithFileWrappers_1, - childrenByPreferredName?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); - } - - NSFileWrapper initRegularFileWithContents_(NSData? contents) { - final _ret = _lib._objc_msgSend_257(_id, - _lib._sel_initRegularFileWithContents_1, contents?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); - } - - NSFileWrapper initSymbolicLinkWithDestinationURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_241( - _id, - _lib._sel_initSymbolicLinkWithDestinationURL_1, - url?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); - } - - NSFileWrapper initWithSerializedRepresentation_( - NSData? serializeRepresentation) { - final _ret = _lib._objc_msgSend_257( - _id, - _lib._sel_initWithSerializedRepresentation_1, - serializeRepresentation?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDTD1); } - NSFileWrapper initWithCoder_(NSCoder? inCoder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, inCoder?._id ?? ffi.nullptr); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); + @override + NSXMLDTD init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); } - bool get directory { - return _lib._objc_msgSend_12(_id, _lib._sel_isDirectory1); + @override + NSXMLDTD initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1031( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); } - bool get regularFile { - return _lib._objc_msgSend_12(_id, _lib._sel_isRegularFile1); + NSXMLDTD initWithContentsOfURL_options_error_( + NSURL? url, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1037( + _id, + _lib._sel_initWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); } - bool get symbolicLink { - return _lib._objc_msgSend_12(_id, _lib._sel_isSymbolicLink1); + NSXMLDTD initWithData_options_error_( + NSData? data, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1038( + _id, + _lib._sel_initWithData_options_error_1, + data?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); } - NSString? get preferredFilename { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_preferredFilename1); + NSString? get publicID { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - set preferredFilename(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setPreferredFilename_1, value?._id ?? ffi.nullptr); + set publicID(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); } - NSString? get filename { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_filename1); + NSString? get systemID { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - set filename(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setFilename_1, value?._id ?? ffi.nullptr); + set systemID(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); } - NSDictionary? get fileAttributes { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_fileAttributes1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + void insertChild_atIndex_(NSXMLNode? child, int index) { + _lib._objc_msgSend_1041( + _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); } - set fileAttributes(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setFileAttributes_1, value?._id ?? ffi.nullptr); + void insertChildren_atIndex_(NSArray? children, int index) { + _lib._objc_msgSend_1042(_id, _lib._sel_insertChildren_atIndex_1, + children?._id ?? ffi.nullptr, index); } - bool matchesContentsOfURL_(NSURL? url) { - return _lib._objc_msgSend_244( - _id, _lib._sel_matchesContentsOfURL_1, url?._id ?? ffi.nullptr); + void removeChildAtIndex_(int index) { + _lib._objc_msgSend_455(_id, _lib._sel_removeChildAtIndex_1, index); } - bool readFromURL_options_error_( - NSURL? url, int options, ffi.Pointer> outError) { - return _lib._objc_msgSend_954(_id, _lib._sel_readFromURL_options_error_1, - url?._id ?? ffi.nullptr, options, outError); + void setChildren_(NSArray? children) { + _lib._objc_msgSend_457( + _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); } - bool writeToURL_options_originalContentsURL_error_( - NSURL? url, - int options, - NSURL? originalContentsURL, - ffi.Pointer> outError) { - return _lib._objc_msgSend_955( - _id, - _lib._sel_writeToURL_options_originalContentsURL_error_1, - url?._id ?? ffi.nullptr, - options, - originalContentsURL?._id ?? ffi.nullptr, - outError); + void addChild_(NSXMLNode? child) { + _lib._objc_msgSend_1043( + _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); } - NSData? get serializedRepresentation { - final _ret = - _lib._objc_msgSend_39(_id, _lib._sel_serializedRepresentation1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { + _lib._objc_msgSend_1044(_id, _lib._sel_replaceChildAtIndex_withNode_1, + index, node?._id ?? ffi.nullptr); } - NSString addFileWrapper_(NSFileWrapper? child) { - final _ret = _lib._objc_msgSend_956( - _id, _lib._sel_addFileWrapper_1, child?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSXMLDTDNode entityDeclarationForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1048( + _id, _lib._sel_entityDeclarationForName_1, name?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - NSString addRegularFileWithContents_preferredFilename_( - NSData? data, NSString? fileName) { - final _ret = _lib._objc_msgSend_957( - _id, - _lib._sel_addRegularFileWithContents_preferredFilename_1, - data?._id ?? ffi.nullptr, - fileName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSXMLDTDNode notationDeclarationForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1048( + _id, _lib._sel_notationDeclarationForName_1, name?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - void removeFileWrapper_(NSFileWrapper? child) { - _lib._objc_msgSend_958( - _id, _lib._sel_removeFileWrapper_1, child?._id ?? ffi.nullptr); + NSXMLDTDNode elementDeclarationForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1048( + _id, _lib._sel_elementDeclarationForName_1, name?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - NSDictionary? get fileWrappers { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_fileWrappers1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + NSXMLDTDNode attributeDeclarationForName_elementName_( + NSString? name, NSString? elementName) { + final _ret = _lib._objc_msgSend_1049( + _id, + _lib._sel_attributeDeclarationForName_elementName_1, + name?._id ?? ffi.nullptr, + elementName?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - NSString keyForFileWrapper_(NSFileWrapper? child) { - final _ret = _lib._objc_msgSend_956( - _id, _lib._sel_keyForFileWrapper_1, child?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSXMLDTDNode predefinedEntityDeclarationForName_( + SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1048( + _lib._class_NSXMLDTD1, + _lib._sel_predefinedEntityDeclarationForName_1, + name?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - NSData? get regularFileContents { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_regularFileContents1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + @override + NSXMLDTD initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_1030(_id, _lib._sel_initWithKind_1, kind); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); } - NSURL? get symbolicLinkDestinationURL { + static NSObject document(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_40(_id, _lib._sel_symbolicLinkDestinationURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_document1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithPath_1, path?._id ?? ffi.nullptr); + static NSObject documentWithRootElement_( + SentryCocoa _lib, NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1032(_lib._class_NSXMLDTD1, + _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } - NSObject initSymbolicLinkWithDestination_(NSString? path) { - final _ret = _lib._objc_msgSend_30(_id, - _lib._sel_initSymbolicLinkWithDestination_1, path?._id ?? ffi.nullptr); + static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, + _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } - bool needsToBeUpdatedFromPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_needsToBeUpdatedFromPath_1, path?._id ?? ffi.nullptr); + static NSObject elementWithName_URI_( + SentryCocoa _lib, NSString? name, NSString? URI) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTD1, + _lib._sel_elementWithName_URI_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool updateFromPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_updateFromPath_1, path?._id ?? ffi.nullptr); + static NSObject elementWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? string) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTD1, + _lib._sel_elementWithName_stringValue_1, + name?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool writeToFile_atomically_updateFilenames_( - NSString? path, bool atomicFlag, bool updateFilenamesFlag) { - return _lib._objc_msgSend_959( - _id, - _lib._sel_writeToFile_atomically_updateFilenames_1, - path?._id ?? ffi.nullptr, - atomicFlag, - updateFilenamesFlag); + static NSObject elementWithName_children_attributes_(SentryCocoa _lib, + NSString? name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1033( + _lib._class_NSXMLDTD1, + _lib._sel_elementWithName_children_attributes_1, + name?._id ?? ffi.nullptr, + children?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString addFileWithPath_(NSString? path) { - final _ret = _lib._objc_msgSend_64( - _id, _lib._sel_addFileWithPath_1, path?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSObject attributeWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTD1, + _lib._sel_attributeWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSString addSymbolicLinkWithDestination_preferredFilename_( - NSString? path, NSString? filename) { - final _ret = _lib._objc_msgSend_341( - _id, - _lib._sel_addSymbolicLinkWithDestination_preferredFilename_1, - path?._id ?? ffi.nullptr, - filename?._id ?? ffi.nullptr); + static NSObject attributeWithName_URI_stringValue_( + SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { + final _ret = _lib._objc_msgSend_26( + _lib._class_NSXMLDTD1, + _lib._sel_attributeWithName_URI_stringValue_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject namespaceWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTD1, + _lib._sel_namespaceWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject processingInstructionWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTD1, + _lib._sel_processingInstructionWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject commentWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, + _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject textWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, + _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, + _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSString localNameForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTD1, + _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - NSString symbolicLinkDestination() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_symbolicLinkDestination1); + static NSString prefixForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTD1, + _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); return NSString._(_ret, _lib, retain: true, release: true); } - @override - NSFileWrapper init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); + static NSXMLNode predefinedNamespaceForPrefix_( + SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1047(_lib._class_NSXMLDTD1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - static NSFileWrapper new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_new1); - return NSFileWrapper._(_ret, _lib, retain: false, release: true); + static NSXMLDTD new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_new1); + return NSXMLDTD._(_ret, _lib, retain: false, release: true); } - static NSFileWrapper allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static NSXMLDTD allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSFileWrapper1, _lib._sel_allocWithZone_1, zone); - return NSFileWrapper._(_ret, _lib, retain: false, release: true); + _lib._class_NSXMLDTD1, _lib._sel_allocWithZone_1, zone); + return NSXMLDTD._(_ret, _lib, retain: false, release: true); } - static NSFileWrapper alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_alloc1); - return NSFileWrapper._(_ret, _lib, retain: false, release: true); + static NSXMLDTD alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_alloc1); + return NSXMLDTD._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -66255,7 +74227,7 @@ class NSFileWrapper extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSFileWrapper1, + _lib._class_NSXMLDTD1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -66264,24 +74236,24 @@ class NSFileWrapper extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSFileWrapper1, + _lib._objc_msgSend_15(_lib._class_NSXMLDTD1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSFileWrapper1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSXMLDTD1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSFileWrapper1, _lib._sel_useStoredAccessor1); + _lib._class_NSXMLDTD1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSFileWrapper1, + _lib._class_NSXMLDTD1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -66290,7 +74262,7 @@ class NSFileWrapper extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSFileWrapper1, + _lib._class_NSXMLDTD1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -66298,7 +74270,7 @@ class NSFileWrapper extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSFileWrapper1, + _lib._class_NSXMLDTD1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -66306,357 +74278,260 @@ class NSFileWrapper extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSFileWrapper1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSXMLDTD1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSFileWrapper1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSXMLDTD1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSFileWrapperReadingOptions { - static const int NSFileWrapperReadingImmediate = 1; - static const int NSFileWrapperReadingWithoutMapping = 2; -} - -abstract class NSFileWrapperWritingOptions { - static const int NSFileWrapperWritingAtomic = 1; - static const int NSFileWrapperWritingWithNameUpdating = 2; -} - -class NSURLSession extends NSObject { - NSURLSession._(ffi.Pointer id, SentryCocoa lib, +class NSXMLDTDNode extends NSXMLNode { + NSXMLDTDNode._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLSession] that points to the same underlying object as [other]. - static NSURLSession castFrom(T other) { - return NSURLSession._(other._id, other._lib, retain: true, release: true); + /// Returns a [NSXMLDTDNode] that points to the same underlying object as [other]. + static NSXMLDTDNode castFrom(T other) { + return NSXMLDTDNode._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLSession] that wraps the given raw object pointer. - static NSURLSession castFromPointer( + /// Returns a [NSXMLDTDNode] that wraps the given raw object pointer. + static NSXMLDTDNode castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSession._(other, lib, retain: retain, release: release); + return NSXMLDTDNode._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSession]. + /// Returns whether [obj] is an instance of [NSXMLDTDNode]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLSession1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDTDNode1); } - static NSURLSession? getSharedSession(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_960( - _lib._class_NSURLSession1, _lib._sel_sharedSession1); - return _ret.address == 0 - ? null - : NSURLSession._(_ret, _lib, retain: true, release: true); + NSXMLDTDNode initWithXMLString_(NSString? string) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithXMLString_1, string?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - static NSURLSession sessionWithConfiguration_( - SentryCocoa _lib, NSURLSessionConfiguration? configuration) { - final _ret = _lib._objc_msgSend_971( - _lib._class_NSURLSession1, - _lib._sel_sessionWithConfiguration_1, - configuration?._id ?? ffi.nullptr); - return NSURLSession._(_ret, _lib, retain: true, release: true); + @override + NSXMLDTDNode initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1031( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - static NSURLSession sessionWithConfiguration_delegate_delegateQueue_( - SentryCocoa _lib, - NSURLSessionConfiguration? configuration, - NSObject? delegate, - NSOperationQueue? queue) { - final _ret = _lib._objc_msgSend_972( - _lib._class_NSURLSession1, - _lib._sel_sessionWithConfiguration_delegate_delegateQueue_1, - configuration?._id ?? ffi.nullptr, - delegate?._id ?? ffi.nullptr, - queue?._id ?? ffi.nullptr); - return NSURLSession._(_ret, _lib, retain: true, release: true); + @override + NSXMLDTDNode init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - NSOperationQueue? get delegateQueue { - final _ret = _lib._objc_msgSend_842(_id, _lib._sel_delegateQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); + int get DTDKind { + return _lib._objc_msgSend_1045(_id, _lib._sel_DTDKind1); } - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + set DTDKind(int value) { + return _lib._objc_msgSend_1046(_id, _lib._sel_setDTDKind_1, value); } - NSURLSessionConfiguration? get configuration { - final _ret = _lib._objc_msgSend_961(_id, _lib._sel_configuration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + bool get external1 { + return _lib._objc_msgSend_12(_id, _lib._sel_isExternal1); } - NSString? get sessionDescription { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sessionDescription1); + NSString? get publicID { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - set sessionDescription(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setSessionDescription_1, value?._id ?? ffi.nullptr); - } - - void finishTasksAndInvalidate() { - _lib._objc_msgSend_1(_id, _lib._sel_finishTasksAndInvalidate1); - } - - void invalidateAndCancel() { - _lib._objc_msgSend_1(_id, _lib._sel_invalidateAndCancel1); - } - - void resetWithCompletionHandler_(ObjCBlock_ffiVoid completionHandler) { - _lib._objc_msgSend_500( - _id, _lib._sel_resetWithCompletionHandler_1, completionHandler._id); - } - - void flushWithCompletionHandler_(ObjCBlock_ffiVoid completionHandler) { - _lib._objc_msgSend_500( - _id, _lib._sel_flushWithCompletionHandler_1, completionHandler._id); - } - - void getTasksWithCompletionHandler_( - ObjCBlock_ffiVoid_NSArray_NSArray_NSArray completionHandler) { - _lib._objc_msgSend_973( - _id, _lib._sel_getTasksWithCompletionHandler_1, completionHandler._id); - } - - void getAllTasksWithCompletionHandler_( - ObjCBlock_ffiVoid_NSArray completionHandler) { - _lib._objc_msgSend_974(_id, _lib._sel_getAllTasksWithCompletionHandler_1, - completionHandler._id); - } - - NSURLSessionDataTask dataTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_975( - _id, _lib._sel_dataTaskWithRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); - } - - NSURLSessionDataTask dataTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_976( - _id, _lib._sel_dataTaskWithURL_1, url?._id ?? ffi.nullptr); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + set publicID(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); } - NSURLSessionUploadTask uploadTaskWithRequest_fromFile_( - NSURLRequest? request, NSURL? fileURL) { - final _ret = _lib._objc_msgSend_978( - _id, - _lib._sel_uploadTaskWithRequest_fromFile_1, - request?._id ?? ffi.nullptr, - fileURL?._id ?? ffi.nullptr); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + NSString? get systemID { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSURLSessionUploadTask uploadTaskWithRequest_fromData_( - NSURLRequest? request, NSData? bodyData) { - final _ret = _lib._objc_msgSend_979( - _id, - _lib._sel_uploadTaskWithRequest_fromData_1, - request?._id ?? ffi.nullptr, - bodyData?._id ?? ffi.nullptr); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + set systemID(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); } - NSURLSessionUploadTask uploadTaskWithResumeData_(NSData? resumeData) { - final _ret = _lib._objc_msgSend_980(_id, - _lib._sel_uploadTaskWithResumeData_1, resumeData?._id ?? ffi.nullptr); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + NSString? get notationName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_notationName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSURLSessionUploadTask uploadTaskWithStreamedRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_981(_id, - _lib._sel_uploadTaskWithStreamedRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + set notationName(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setNotationName_1, value?._id ?? ffi.nullptr); } - NSURLSessionDownloadTask downloadTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_982( - _id, _lib._sel_downloadTaskWithRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + @override + NSXMLDTDNode initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_1030(_id, _lib._sel_initWithKind_1, kind); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - NSURLSessionDownloadTask downloadTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_983( - _id, _lib._sel_downloadTaskWithURL_1, url?._id ?? ffi.nullptr); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + static NSObject document(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_document1); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionDownloadTask downloadTaskWithResumeData_(NSData? resumeData) { - final _ret = _lib._objc_msgSend_984(_id, - _lib._sel_downloadTaskWithResumeData_1, resumeData?._id ?? ffi.nullptr); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + static NSObject documentWithRootElement_( + SentryCocoa _lib, NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1032(_lib._class_NSXMLDTDNode1, + _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionStreamTask streamTaskWithHostName_port_( - NSString? hostname, int port) { - final _ret = _lib._objc_msgSend_987( - _id, - _lib._sel_streamTaskWithHostName_port_1, - hostname?._id ?? ffi.nullptr, - port); - return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); + static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, + _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionStreamTask streamTaskWithNetService_(NSNetService? service) { - final _ret = _lib._objc_msgSend_993( - _id, _lib._sel_streamTaskWithNetService_1, service?._id ?? ffi.nullptr); - return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); + static NSObject elementWithName_URI_( + SentryCocoa _lib, NSString? name, NSString? URI) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTDNode1, + _lib._sel_elementWithName_URI_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionWebSocketTask webSocketTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_1000( - _id, _lib._sel_webSocketTaskWithURL_1, url?._id ?? ffi.nullptr); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + static NSObject elementWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? string) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTDNode1, + _lib._sel_elementWithName_stringValue_1, + name?._id ?? ffi.nullptr, + string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionWebSocketTask webSocketTaskWithURL_protocols_( - NSURL? url, NSArray? protocols) { - final _ret = _lib._objc_msgSend_1001( - _id, - _lib._sel_webSocketTaskWithURL_protocols_1, - url?._id ?? ffi.nullptr, - protocols?._id ?? ffi.nullptr); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + static NSObject elementWithName_children_attributes_(SentryCocoa _lib, + NSString? name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1033( + _lib._class_NSXMLDTDNode1, + _lib._sel_elementWithName_children_attributes_1, + name?._id ?? ffi.nullptr, + children?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionWebSocketTask webSocketTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_1002( - _id, _lib._sel_webSocketTaskWithRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + static NSObject attributeWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTDNode1, + _lib._sel_attributeWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - @override - NSURLSession init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSession._(_ret, _lib, retain: true, release: true); + static NSObject attributeWithName_URI_stringValue_( + SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { + final _ret = _lib._objc_msgSend_26( + _lib._class_NSXMLDTDNode1, + _lib._sel_attributeWithName_URI_stringValue_1, + name?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - static NSURLSession new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_new1); - return NSURLSession._(_ret, _lib, retain: false, release: true); + static NSObject namespaceWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTDNode1, + _lib._sel_namespaceWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionDataTask dataTaskWithRequest_completionHandler_( - NSURLRequest? request, - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1003( - _id, - _lib._sel_dataTaskWithRequest_completionHandler_1, - request?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + static NSObject processingInstructionWithName_stringValue_( + SentryCocoa _lib, NSString? name, NSString? stringValue) { + final _ret = _lib._objc_msgSend_165( + _lib._class_NSXMLDTDNode1, + _lib._sel_processingInstructionWithName_stringValue_1, + name?._id ?? ffi.nullptr, + stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionDataTask dataTaskWithURL_completionHandler_(NSURL? url, - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1004( - _id, - _lib._sel_dataTaskWithURL_completionHandler_1, - url?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + static NSObject commentWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, + _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionUploadTask uploadTaskWithRequest_fromFile_completionHandler_( - NSURLRequest? request, - NSURL? fileURL, - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1005( - _id, - _lib._sel_uploadTaskWithRequest_fromFile_completionHandler_1, - request?._id ?? ffi.nullptr, - fileURL?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + static NSObject textWithStringValue_( + SentryCocoa _lib, NSString? stringValue) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, + _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionUploadTask uploadTaskWithRequest_fromData_completionHandler_( - NSURLRequest? request, - NSData? bodyData, - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1006( - _id, - _lib._sel_uploadTaskWithRequest_fromData_completionHandler_1, - request?._id ?? ffi.nullptr, - bodyData?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { + final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, + _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - NSURLSessionUploadTask uploadTaskWithResumeData_completionHandler_( - NSData? resumeData, - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1007( - _id, - _lib._sel_uploadTaskWithResumeData_completionHandler_1, - resumeData?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + static NSString localNameForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTDNode1, + _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - NSURLSessionDownloadTask downloadTaskWithRequest_completionHandler_( - NSURLRequest? request, - ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1008( - _id, - _lib._sel_downloadTaskWithRequest_completionHandler_1, - request?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + static NSString prefixForName_(SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTDNode1, + _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - NSURLSessionDownloadTask downloadTaskWithURL_completionHandler_(NSURL? url, - ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1009( - _id, - _lib._sel_downloadTaskWithURL_completionHandler_1, - url?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + static NSXMLNode predefinedNamespaceForPrefix_( + SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1047(_lib._class_NSXMLDTDNode1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - NSURLSessionDownloadTask downloadTaskWithResumeData_completionHandler_( - NSData? resumeData, - ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1010( - _id, - _lib._sel_downloadTaskWithResumeData_completionHandler_1, - resumeData?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + static NSXMLDTDNode new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_new1); + return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); } - static NSURLSession allocWithZone_( + static NSXMLDTDNode allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSURLSession1, _lib._sel_allocWithZone_1, zone); - return NSURLSession._(_ret, _lib, retain: false, release: true); + _lib._class_NSXMLDTDNode1, _lib._sel_allocWithZone_1, zone); + return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); } - static NSURLSession alloc(SentryCocoa _lib) { + static NSXMLDTDNode alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_alloc1); - return NSURLSession._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_alloc1); + return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -66665,7 +74540,7 @@ class NSURLSession extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLSession1, + _lib._class_NSXMLDTDNode1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -66674,24 +74549,24 @@ class NSURLSession extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSession1, + _lib._objc_msgSend_15(_lib._class_NSXMLDTDNode1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSession1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSXMLDTDNode1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSession1, _lib._sel_useStoredAccessor1); + _lib._class_NSXMLDTDNode1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSession1, + _lib._class_NSXMLDTDNode1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -66700,7 +74575,7 @@ class NSURLSession extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSession1, + _lib._class_NSXMLDTDNode1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -66708,7 +74583,7 @@ class NSURLSession extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLSession1, + _lib._class_NSXMLDTDNode1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -66716,399 +74591,487 @@ class NSURLSession extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLSession1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_NSXMLDTDNode1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSession1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSXMLDTDNode1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSURLSessionConfiguration extends NSObject { - NSURLSessionConfiguration._(ffi.Pointer id, SentryCocoa lib, +abstract class NSXMLDTDNodeKind { + static const int NSXMLEntityGeneralKind = 1; + static const int NSXMLEntityParsedKind = 2; + static const int NSXMLEntityUnparsedKind = 3; + static const int NSXMLEntityParameterKind = 4; + static const int NSXMLEntityPredefined = 5; + static const int NSXMLAttributeCDATAKind = 6; + static const int NSXMLAttributeIDKind = 7; + static const int NSXMLAttributeIDRefKind = 8; + static const int NSXMLAttributeIDRefsKind = 9; + static const int NSXMLAttributeEntityKind = 10; + static const int NSXMLAttributeEntitiesKind = 11; + static const int NSXMLAttributeNMTokenKind = 12; + static const int NSXMLAttributeNMTokensKind = 13; + static const int NSXMLAttributeEnumerationKind = 14; + static const int NSXMLAttributeNotationKind = 15; + static const int NSXMLElementDeclarationUndefinedKind = 16; + static const int NSXMLElementDeclarationEmptyKind = 17; + static const int NSXMLElementDeclarationAnyKind = 18; + static const int NSXMLElementDeclarationMixedKind = 19; + static const int NSXMLElementDeclarationElementKind = 20; +} + +/// @warning This class is reserved for hybrid SDKs. Methods may be changed, renamed or removed +/// without notice. If you want to use one of these methods here please open up an issue and let us +/// know. +/// @note The name of this class is supposed to be a bit weird and ugly. The name starts with private +/// on purpose so users don't see it in code completion when typing Sentry. We also add only at the +/// end to make it more obvious you shouldn't use it. +class PrivateSentrySDKOnly extends NSObject { + PrivateSentrySDKOnly._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLSessionConfiguration] that points to the same underlying object as [other]. - static NSURLSessionConfiguration castFrom(T other) { - return NSURLSessionConfiguration._(other._id, other._lib, + /// Returns a [PrivateSentrySDKOnly] that points to the same underlying object as [other]. + static PrivateSentrySDKOnly castFrom(T other) { + return PrivateSentrySDKOnly._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLSessionConfiguration] that wraps the given raw object pointer. - static NSURLSessionConfiguration castFromPointer( + /// Returns a [PrivateSentrySDKOnly] that wraps the given raw object pointer. + static PrivateSentrySDKOnly castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSessionConfiguration._(other, lib, - retain: retain, release: release); + return PrivateSentrySDKOnly._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionConfiguration]. + /// Returns whether [obj] is an instance of [PrivateSentrySDKOnly]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionConfiguration1); - } - - static NSURLSessionConfiguration? getDefaultSessionConfiguration( - SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_961(_lib._class_NSURLSessionConfiguration1, - _lib._sel_defaultSessionConfiguration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); - } - - static NSURLSessionConfiguration? getEphemeralSessionConfiguration( - SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_961(_lib._class_NSURLSessionConfiguration1, - _lib._sel_ephemeralSessionConfiguration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); - } - - static NSURLSessionConfiguration - backgroundSessionConfigurationWithIdentifier_( - SentryCocoa _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_962( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_backgroundSessionConfigurationWithIdentifier_1, - identifier?._id ?? ffi.nullptr); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); - } - - NSString? get identifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_identifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - int get requestCachePolicy { - return _lib._objc_msgSend_790(_id, _lib._sel_requestCachePolicy1); - } - - set requestCachePolicy(int value) { - return _lib._objc_msgSend_939( - _id, _lib._sel_setRequestCachePolicy_1, value); - } - - double get timeoutIntervalForRequest { - return _lib._objc_msgSend_155(_id, _lib._sel_timeoutIntervalForRequest1); - } - - set timeoutIntervalForRequest(double value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setTimeoutIntervalForRequest_1, value); + obj._lib._class_PrivateSentrySDKOnly1); } - double get timeoutIntervalForResource { - return _lib._objc_msgSend_155(_id, _lib._sel_timeoutIntervalForResource1); + /// For storing an envelope synchronously to disk. + static void storeEnvelope_(SentryCocoa _lib, SentryEnvelope? envelope) { + _lib._objc_msgSend_1065(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_storeEnvelope_1, envelope?._id ?? ffi.nullptr); } - set timeoutIntervalForResource(double value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setTimeoutIntervalForResource_1, value); + static void captureEnvelope_(SentryCocoa _lib, SentryEnvelope? envelope) { + _lib._objc_msgSend_1065(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_captureEnvelope_1, envelope?._id ?? ffi.nullptr); } - int get networkServiceType { - return _lib._objc_msgSend_791(_id, _lib._sel_networkServiceType1); + /// Create an envelope from @c NSData. Needed for example by Flutter. + static SentryEnvelope envelopeWithData_(SentryCocoa _lib, NSData? data) { + final _ret = _lib._objc_msgSend_1066(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_envelopeWithData_1, data?._id ?? ffi.nullptr); + return SentryEnvelope._(_ret, _lib, retain: true, release: true); } - set networkServiceType(int value) { - return _lib._objc_msgSend_940( - _id, _lib._sel_setNetworkServiceType_1, value); + /// Override SDK information. + static void setSdkName_andVersionString_( + SentryCocoa _lib, NSString? sdkName, NSString? versionString) { + _lib._objc_msgSend_530( + _lib._class_PrivateSentrySDKOnly1, + _lib._sel_setSdkName_andVersionString_1, + sdkName?._id ?? ffi.nullptr, + versionString?._id ?? ffi.nullptr); } - bool get allowsCellularAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); + /// Override SDK information. + static void setSdkName_(SentryCocoa _lib, NSString? sdkName) { + _lib._objc_msgSend_192(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_setSdkName_1, sdkName?._id ?? ffi.nullptr); } - set allowsCellularAccess(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setAllowsCellularAccess_1, value); + /// Retrieves the SDK name + static NSString getSdkName(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_20( + _lib._class_PrivateSentrySDKOnly1, _lib._sel_getSdkName1); + return NSString._(_ret, _lib, retain: true, release: true); } - bool get allowsExpensiveNetworkAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); + /// Retrieves the SDK version string + static NSString getSdkVersionString(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_20( + _lib._class_PrivateSentrySDKOnly1, _lib._sel_getSdkVersionString1); + return NSString._(_ret, _lib, retain: true, release: true); } - set allowsExpensiveNetworkAccess(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); + /// Add a package to the SDK packages + static void addSdkPackage_version_( + SentryCocoa _lib, NSString? name, NSString? version) { + _lib._objc_msgSend_530( + _lib._class_PrivateSentrySDKOnly1, + _lib._sel_addSdkPackage_version_1, + name?._id ?? ffi.nullptr, + version?._id ?? ffi.nullptr); } - bool get allowsConstrainedNetworkAccess { - return _lib._objc_msgSend_12( - _id, _lib._sel_allowsConstrainedNetworkAccess1); + /// Retrieves extra context + static NSDictionary getExtraContext(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_170( + _lib._class_PrivateSentrySDKOnly1, _lib._sel_getExtraContext1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - set allowsConstrainedNetworkAccess(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); + /// Allows Hybrids SDKs to thread-safe set the current trace. + static void setTrace_spanId_( + SentryCocoa _lib, SentryId? traceId, SentrySpanId? spanId) { + _lib._objc_msgSend_1072( + _lib._class_PrivateSentrySDKOnly1, + _lib._sel_setTrace_spanId_1, + traceId?._id ?? ffi.nullptr, + spanId?._id ?? ffi.nullptr); } - bool get requiresDNSSECValidation { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); + /// Start a profiler session associated with the given @c SentryId. + /// @return The system time when the profiler session started. + static int startProfilerForTrace_(SentryCocoa _lib, SentryId? traceId) { + return _lib._objc_msgSend_1073(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_startProfilerForTrace_1, traceId?._id ?? ffi.nullptr); } - set requiresDNSSECValidation(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setRequiresDNSSECValidation_1, value); + /// Collect a profiler session data associated with the given @c SentryId. + /// This also discards the profiler. + static NSMutableDictionary collectProfileBetween_and_forTrace_( + SentryCocoa _lib, + int startSystemTime, + int endSystemTime, + SentryId? traceId) { + final _ret = _lib._objc_msgSend_1074( + _lib._class_PrivateSentrySDKOnly1, + _lib._sel_collectProfileBetween_and_forTrace_1, + startSystemTime, + endSystemTime, + traceId?._id ?? ffi.nullptr); + return NSMutableDictionary._(_ret, _lib, retain: true, release: true); } - bool get waitsForConnectivity { - return _lib._objc_msgSend_12(_id, _lib._sel_waitsForConnectivity1); + /// Discard profiler session data associated with the given @c SentryId. + /// This only needs to be called in case you haven't collected the profile (and don't intend to). + static void discardProfilerForTrace_(SentryCocoa _lib, SentryId? traceId) { + _lib._objc_msgSend_1075(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_discardProfilerForTrace_1, traceId?._id ?? ffi.nullptr); } - set waitsForConnectivity(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setWaitsForConnectivity_1, value); + static ObjCBlock_ffiVoid_SentryAppStartMeasurement + getOnAppStartMeasurementAvailable(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_1076(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_onAppStartMeasurementAvailable1); + return ObjCBlock_ffiVoid_SentryAppStartMeasurement._(_ret, _lib); } - bool get discretionary { - return _lib._objc_msgSend_12(_id, _lib._sel_isDiscretionary1); + static void setOnAppStartMeasurementAvailable( + SentryCocoa _lib, ObjCBlock_ffiVoid_SentryAppStartMeasurement value) { + return _lib._objc_msgSend_1077(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_setOnAppStartMeasurementAvailable_1, value._id); } - set discretionary(bool value) { - return _lib._objc_msgSend_495(_id, _lib._sel_setDiscretionary_1, value); + static SentryAppStartMeasurement? getAppStartMeasurement(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_1078( + _lib._class_PrivateSentrySDKOnly1, _lib._sel_appStartMeasurement1); + return _ret.address == 0 + ? null + : SentryAppStartMeasurement._(_ret, _lib, retain: true, release: true); } - NSString? get sharedContainerIdentifier { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_sharedContainerIdentifier1); + static NSString? getInstallationID(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_20( + _lib._class_PrivateSentrySDKOnly1, _lib._sel_installationID1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - set sharedContainerIdentifier(NSString? value) { - return _lib._objc_msgSend_512(_id, _lib._sel_setSharedContainerIdentifier_1, - value?._id ?? ffi.nullptr); - } - - bool get sessionSendsLaunchEvents { - return _lib._objc_msgSend_12(_id, _lib._sel_sessionSendsLaunchEvents1); - } - - set sessionSendsLaunchEvents(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setSessionSendsLaunchEvents_1, value); - } - - NSDictionary? get connectionProxyDictionary { - final _ret = - _lib._objc_msgSend_170(_id, _lib._sel_connectionProxyDictionary1); + static SentryOptions? getOptions(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_1079( + _lib._class_PrivateSentrySDKOnly1, _lib._sel_options1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); - } - - set connectionProxyDictionary(NSDictionary? value) { - return _lib._objc_msgSend_171(_id, _lib._sel_setConnectionProxyDictionary_1, - value?._id ?? ffi.nullptr); - } - - int get TLSMinimumSupportedProtocol { - return _lib._objc_msgSend_963(_id, _lib._sel_TLSMinimumSupportedProtocol1); - } - - set TLSMinimumSupportedProtocol(int value) { - return _lib._objc_msgSend_964( - _id, _lib._sel_setTLSMinimumSupportedProtocol_1, value); - } - - int get TLSMaximumSupportedProtocol { - return _lib._objc_msgSend_963(_id, _lib._sel_TLSMaximumSupportedProtocol1); + : SentryOptions._(_ret, _lib, retain: true, release: true); } - set TLSMaximumSupportedProtocol(int value) { - return _lib._objc_msgSend_964( - _id, _lib._sel_setTLSMaximumSupportedProtocol_1, value); + /// If enabled, the SDK won't send the app start measurement with the first transaction. Instead, if + /// @c enableAutoPerformanceTracing is enabled, the SDK measures the app start and then calls + /// @c onAppStartMeasurementAvailable. Furthermore, the SDK doesn't set all values for the app start + /// measurement because the HybridSDKs initialize the Cocoa SDK too late to receive all + /// notifications. Instead, the SDK sets the @c appStartDuration to @c 0 and the + /// @c didFinishLaunchingTimestamp to @c timeIntervalSinceReferenceDate. + /// @note Default is @c NO. + static bool getAppStartMeasurementHybridSDKMode(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_appStartMeasurementHybridSDKMode1); } - int get TLSMinimumSupportedProtocolVersion { - return _lib._objc_msgSend_965( - _id, _lib._sel_TLSMinimumSupportedProtocolVersion1); + /// If enabled, the SDK won't send the app start measurement with the first transaction. Instead, if + /// @c enableAutoPerformanceTracing is enabled, the SDK measures the app start and then calls + /// @c onAppStartMeasurementAvailable. Furthermore, the SDK doesn't set all values for the app start + /// measurement because the HybridSDKs initialize the Cocoa SDK too late to receive all + /// notifications. Instead, the SDK sets the @c appStartDuration to @c 0 and the + /// @c didFinishLaunchingTimestamp to @c timeIntervalSinceReferenceDate. + /// @note Default is @c NO. + static void setAppStartMeasurementHybridSDKMode( + SentryCocoa _lib, bool value) { + return _lib._objc_msgSend_447(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_setAppStartMeasurementHybridSDKMode_1, value); } - set TLSMinimumSupportedProtocolVersion(int value) { - return _lib._objc_msgSend_966( - _id, _lib._sel_setTLSMinimumSupportedProtocolVersion_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); } - int get TLSMaximumSupportedProtocolVersion { - return _lib._objc_msgSend_965( - _id, _lib._sel_TLSMaximumSupportedProtocolVersion1); + static SentryUser userWithDictionary_( + SentryCocoa _lib, NSDictionary? dictionary) { + final _ret = _lib._objc_msgSend_1080(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_userWithDictionary_1, dictionary?._id ?? ffi.nullptr); + return SentryUser._(_ret, _lib, retain: true, release: true); } - set TLSMaximumSupportedProtocolVersion(int value) { - return _lib._objc_msgSend_966( - _id, _lib._sel_setTLSMaximumSupportedProtocolVersion_1, value); + static SentryBreadcrumb breadcrumbWithDictionary_( + SentryCocoa _lib, NSDictionary? dictionary) { + final _ret = _lib._objc_msgSend_1081(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_breadcrumbWithDictionary_1, dictionary?._id ?? ffi.nullptr); + return SentryBreadcrumb._(_ret, _lib, retain: true, release: true); } - bool get HTTPShouldUsePipelining { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + static SentryOptions optionsWithDictionary_didFailWithError_(SentryCocoa _lib, + NSDictionary? options, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1082( + _lib._class_PrivateSentrySDKOnly1, + _lib._sel_optionsWithDictionary_didFailWithError_1, + options?._id ?? ffi.nullptr, + error); + return SentryOptions._(_ret, _lib, retain: true, release: true); } - set HTTPShouldUsePipelining(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setHTTPShouldUsePipelining_1, value); + /// Sets a custom log output handler. This allows hybrid SDKs (React Native, Flutter, etc.) + /// to intercept SDK log messages and forward them to their respective consoles. + /// @param output A block that receives the formatted log message string. + static void setLogOutput_( + SentryCocoa _lib, ObjCBlock_ffiVoid_NSString output) { + _lib._objc_msgSend_1083(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_setLogOutput_1, output._id); } - bool get HTTPShouldSetCookies { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldSetCookies1); + /// Tell the crash reporter to ignore the next occurrence of the given signal on + /// the calling thread. Used by hybrid SDKs to prevent duplicate crash reports + /// when the host runtime is about to raise a signal that has already been + /// captured as a managed exception. The ignore is consumed by the next signal + /// delivery on that thread, regardless of whether it matches. + /// @param signum The signal number to ignore (e.g. SIGABRT). + static void ignoreNextSignal_(SentryCocoa _lib, int signum) { + _lib._objc_msgSend_1084(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_ignoreNextSignal_1, signum); } - set HTTPShouldSetCookies(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setHTTPShouldSetCookies_1, value); + @override + PrivateSentrySDKOnly init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return PrivateSentrySDKOnly._(_ret, _lib, retain: true, release: true); } - int get HTTPCookieAcceptPolicy { - return _lib._objc_msgSend_787(_id, _lib._sel_HTTPCookieAcceptPolicy1); + static PrivateSentrySDKOnly new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_PrivateSentrySDKOnly1, _lib._sel_new1); + return PrivateSentrySDKOnly._(_ret, _lib, retain: false, release: true); } - set HTTPCookieAcceptPolicy(int value) { - return _lib._objc_msgSend_788( - _id, _lib._sel_setHTTPCookieAcceptPolicy_1, value); + static PrivateSentrySDKOnly allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_PrivateSentrySDKOnly1, _lib._sel_allocWithZone_1, zone); + return PrivateSentrySDKOnly._(_ret, _lib, retain: false, release: true); } - NSDictionary? get HTTPAdditionalHeaders { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_HTTPAdditionalHeaders1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + static PrivateSentrySDKOnly alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_PrivateSentrySDKOnly1, _lib._sel_alloc1); + return PrivateSentrySDKOnly._(_ret, _lib, retain: false, release: true); } - set HTTPAdditionalHeaders(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setHTTPAdditionalHeaders_1, value?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_PrivateSentrySDKOnly1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - int get HTTPMaximumConnectionsPerHost { - return _lib._objc_msgSend_78(_id, _lib._sel_HTTPMaximumConnectionsPerHost1); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - set HTTPMaximumConnectionsPerHost(int value) { - return _lib._objc_msgSend_593( - _id, _lib._sel_setHTTPMaximumConnectionsPerHost_1, value); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_accessInstanceVariablesDirectly1); } - NSHTTPCookieStorage? get HTTPCookieStorage { - final _ret = _lib._objc_msgSend_781(_id, _lib._sel_HTTPCookieStorage1); - return _ret.address == 0 - ? null - : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_PrivateSentrySDKOnly1, _lib._sel_useStoredAccessor1); } - set HTTPCookieStorage(NSHTTPCookieStorage? value) { - return _lib._objc_msgSend_967( - _id, _lib._sel_setHTTPCookieStorage_1, value?._id ?? ffi.nullptr); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_PrivateSentrySDKOnly1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - NSURLCredentialStorage? get URLCredentialStorage { - final _ret = _lib._objc_msgSend_925(_id, _lib._sel_URLCredentialStorage1); - return _ret.address == 0 - ? null - : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_PrivateSentrySDKOnly1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - set URLCredentialStorage(NSURLCredentialStorage? value) { - return _lib._objc_msgSend_968( - _id, _lib._sel_setURLCredentialStorage_1, value?._id ?? ffi.nullptr); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_PrivateSentrySDKOnly1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - NSURLCache? get URLCache { - final _ret = _lib._objc_msgSend_895(_id, _lib._sel_URLCache1); - return _ret.address == 0 - ? null - : NSURLCache._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set URLCache(NSURLCache? value) { - return _lib._objc_msgSend_896( - _id, _lib._sel_setURLCache_1, value?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_PrivateSentrySDKOnly1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - bool get shouldUseExtendedBackgroundIdleMode { - return _lib._objc_msgSend_12( - _id, _lib._sel_shouldUseExtendedBackgroundIdleMode1); +class SentryEnvelope extends _ObjCWrapper { + SentryEnvelope._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryEnvelope] that points to the same underlying object as [other]. + static SentryEnvelope castFrom(T other) { + return SentryEnvelope._(other._id, other._lib, retain: true, release: true); } - set shouldUseExtendedBackgroundIdleMode(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setShouldUseExtendedBackgroundIdleMode_1, value); + /// Returns a [SentryEnvelope] that wraps the given raw object pointer. + static SentryEnvelope castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryEnvelope._(other, lib, retain: retain, release: release); } - NSArray? get protocolClasses { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_protocolClasses1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [SentryEnvelope]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryEnvelope2); } +} - set protocolClasses(NSArray? value) { - return _lib._objc_msgSend_739( - _id, _lib._sel_setProtocolClasses_1, value?._id ?? ffi.nullptr); +class SentryId extends NSObject { + SentryId._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryId] that points to the same underlying object as [other]. + static SentryId castFrom(T other) { + return SentryId._(other._id, other._lib, retain: true, release: true); } - int get multipathServiceType { - return _lib._objc_msgSend_969(_id, _lib._sel_multipathServiceType1); + /// Returns a [SentryId] that wraps the given raw object pointer. + static SentryId castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryId._(other, lib, retain: retain, release: release); } - set multipathServiceType(int value) { - return _lib._objc_msgSend_970( - _id, _lib._sel_setMultipathServiceType_1, value); + /// Returns whether [obj] is an instance of [SentryId]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryId1); } - bool get usesClassicLoadingMode { - return _lib._objc_msgSend_12(_id, _lib._sel_usesClassicLoadingMode1); + /// A @c SentryId with an empty UUID “00000000000000000000000000000000”. + static SentryId? getEmpty(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_1067(_lib._class_SentryId1, _lib._sel_empty1); + return _ret.address == 0 + ? null + : SentryId._(_ret, _lib, retain: true, release: true); } - set usesClassicLoadingMode(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setUsesClassicLoadingMode_1, value); + /// Returns a 32 lowercase character hexadecimal string description of the @c SentryId, such as + /// “12c2d058d58442709aa2eca08bf20986”. + NSString? get sentryIdString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sentryIdString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } + /// Creates a @c SentryId with a random UUID. @override - NSURLSessionConfiguration init() { + SentryId init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + return SentryId._(_ret, _lib, retain: true, release: true); } - static NSURLSessionConfiguration new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionConfiguration1, _lib._sel_new1); - return NSURLSessionConfiguration._(_ret, _lib, - retain: false, release: true); + /// Creates a SentryId with the given UUID. + SentryId initWithUuid_(NSUUID? uuid) { + final _ret = _lib._objc_msgSend_1071( + _id, _lib._sel_initWithUuid_1, uuid?._id ?? ffi.nullptr); + return SentryId._(_ret, _lib, retain: true, release: true); } - static NSURLSessionConfiguration backgroundSessionConfiguration_( - SentryCocoa _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_962( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_backgroundSessionConfiguration_1, - identifier?._id ?? ffi.nullptr); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + /// Creates a @c SentryId from a 32 character hexadecimal string without dashes such as + /// “12c2d058d58442709aa2eca08bf20986” or a 36 character hexadecimal string such as such as + /// “12c2d058-d584-4270-9aa2-eca08bf20986”. + /// @return SentryId.empty for invalid strings. + SentryId initWithUUIDString_(NSString? uuidString) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithUUIDString_1, uuidString?._id ?? ffi.nullptr); + return SentryId._(_ret, _lib, retain: true, release: true); } - static NSURLSessionConfiguration allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3(_lib._class_NSURLSessionConfiguration1, - _lib._sel_allocWithZone_1, zone); - return NSURLSessionConfiguration._(_ret, _lib, - retain: false, release: true); + bool isEqual_(NSObject object) { + return _lib._objc_msgSend_0(_id, _lib._sel_isEqual_1, object._id); } - static NSURLSessionConfiguration alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionConfiguration1, _lib._sel_alloc1); - return NSURLSessionConfiguration._(_ret, _lib, - retain: false, release: true); + static SentryId new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_SentryId1, _lib._sel_new1); + return SentryId._(_ret, _lib, retain: false, release: true); + } + + static SentryId allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryId1, _lib._sel_allocWithZone_1, zone); + return SentryId._(_ret, _lib, retain: false, release: true); + } + + static SentryId alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_SentryId1, _lib._sel_alloc1); + return SentryId._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -67117,7 +75080,7 @@ class NSURLSessionConfiguration extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLSessionConfiguration1, + _lib._class_SentryId1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -67126,24 +75089,24 @@ class NSURLSessionConfiguration extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionConfiguration1, + _lib._objc_msgSend_15(_lib._class_SentryId1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionConfiguration1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_SentryId1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSessionConfiguration1, _lib._sel_useStoredAccessor1); + _lib._class_SentryId1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionConfiguration1, + _lib._class_SentryId1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -67152,7 +75115,7 @@ class NSURLSessionConfiguration extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSessionConfiguration1, + _lib._class_SentryId1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -67160,218 +75123,100 @@ class NSURLSessionConfiguration extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLSessionConfiguration1, + _lib._class_SentryId1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionConfiguration1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_SentryId1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionConfiguration1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryId1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class SSLProtocol { - static const int kSSLProtocolUnknown = 0; - static const int kTLSProtocol1 = 4; - static const int kTLSProtocol11 = 7; - static const int kTLSProtocol12 = 8; - static const int kDTLSProtocol1 = 9; - static const int kTLSProtocol13 = 10; - static const int kDTLSProtocol12 = 11; - static const int kTLSProtocolMaxSupported = 999; - static const int kSSLProtocol2 = 1; - static const int kSSLProtocol3 = 2; - static const int kSSLProtocol3Only = 3; - static const int kTLSProtocol1Only = 5; - static const int kSSLProtocolAll = 6; -} - -abstract class tls_protocol_version_t { - static const int tls_protocol_version_TLSv10 = 769; - static const int tls_protocol_version_TLSv11 = 770; - static const int tls_protocol_version_TLSv12 = 771; - static const int tls_protocol_version_TLSv13 = 772; - static const int tls_protocol_version_DTLSv10 = -257; - static const int tls_protocol_version_DTLSv12 = -259; -} - -abstract class NSURLSessionMultipathServiceType { - static const int NSURLSessionMultipathServiceTypeNone = 0; - static const int NSURLSessionMultipathServiceTypeHandover = 1; - static const int NSURLSessionMultipathServiceTypeInteractive = 2; - static const int NSURLSessionMultipathServiceTypeAggregate = 3; -} - -void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} - -final _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); -} - -class ObjCBlock_ffiVoid_NSArray_NSArray_NSArray extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSArray_NSArray_NSArray._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSArray_NSArray_NSArray.fromFunctionPointer( - SentryCocoa lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSArray_NSArray_NSArray.fromFunction( - SentryCocoa lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); - } -} - -class NSURLSessionUploadTask extends NSURLSessionDataTask { - NSURLSessionUploadTask._(ffi.Pointer id, SentryCocoa lib, +class NSUUID extends NSObject { + NSUUID._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLSessionUploadTask] that points to the same underlying object as [other]. - static NSURLSessionUploadTask castFrom(T other) { - return NSURLSessionUploadTask._(other._id, other._lib, - retain: true, release: true); + /// Returns a [NSUUID] that points to the same underlying object as [other]. + static NSUUID castFrom(T other) { + return NSUUID._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLSessionUploadTask] that wraps the given raw object pointer. - static NSURLSessionUploadTask castFromPointer( - SentryCocoa lib, ffi.Pointer other, + /// Returns a [NSUUID] that wraps the given raw object pointer. + static NSUUID castFromPointer(SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSessionUploadTask._(other, lib, - retain: retain, release: release); + return NSUUID._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionUploadTask]. + /// Returns whether [obj] is an instance of [NSUUID]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionUploadTask1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSUUID1); + } + + static NSUUID UUID(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSUUID1, _lib._sel_UUID1); + return NSUUID._(_ret, _lib, retain: true, release: true); } @override - NSURLSessionUploadTask init() { + NSUUID init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + return NSUUID._(_ret, _lib, retain: true, release: true); } - static NSURLSessionUploadTask new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionUploadTask1, _lib._sel_new1); - return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); + NSUUID initWithUUIDString_(NSString? string) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithUUIDString_1, string?._id ?? ffi.nullptr); + return NSUUID._(_ret, _lib, retain: true, release: true); } - void cancelByProducingResumeData_( - ObjCBlock_ffiVoid_NSData completionHandler) { - _lib._objc_msgSend_977( - _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); + NSUUID initWithUUIDBytes_(ffi.Pointer bytes) { + final _ret = + _lib._objc_msgSend_1068(_id, _lib._sel_initWithUUIDBytes_1, bytes); + return NSUUID._(_ret, _lib, retain: true, release: true); } - static NSURLSessionUploadTask allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + void getUUIDBytes_(ffi.Pointer uuid) { + _lib._objc_msgSend_1069(_id, _lib._sel_getUUIDBytes_1, uuid); + } + + int compare_(NSUUID? otherUUID) { + return _lib._objc_msgSend_1070( + _id, _lib._sel_compare_1, otherUUID?._id ?? ffi.nullptr); + } + + NSString? get UUIDString { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_UUIDString1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + static NSUUID new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSUUID1, _lib._sel_new1); + return NSUUID._(_ret, _lib, retain: false, release: true); + } + + static NSUUID allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSURLSessionUploadTask1, _lib._sel_allocWithZone_1, zone); - return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); + _lib._class_NSUUID1, _lib._sel_allocWithZone_1, zone); + return NSUUID._(_ret, _lib, retain: false, release: true); } - static NSURLSessionUploadTask alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionUploadTask1, _lib._sel_alloc1); - return NSURLSessionUploadTask._(_ret, _lib, retain: false, release: true); + static NSUUID alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSUUID1, _lib._sel_alloc1); + return NSUUID._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -67380,7 +75225,7 @@ class NSURLSessionUploadTask extends NSURLSessionDataTask { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLSessionUploadTask1, + _lib._class_NSUUID1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -67389,24 +75234,24 @@ class NSURLSessionUploadTask extends NSURLSessionDataTask { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionUploadTask1, + _lib._objc_msgSend_15(_lib._class_NSUUID1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionUploadTask1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSUUID1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSessionUploadTask1, _lib._sel_useStoredAccessor1); + _lib._class_NSUUID1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionUploadTask1, + _lib._class_NSUUID1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -67415,7 +75260,7 @@ class NSURLSessionUploadTask extends NSURLSessionDataTask { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSessionUploadTask1, + _lib._class_NSUUID1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -67423,26 +75268,50 @@ class NSURLSessionUploadTask extends NSURLSessionDataTask { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLSessionUploadTask1, + _lib._class_NSUUID1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionUploadTask1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _lib._class_NSUUID1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionUploadTask1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSUUID1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline( +class SentrySpanId extends _ObjCWrapper { + SentrySpanId._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentrySpanId] that points to the same underlying object as [other]. + static SentrySpanId castFrom(T other) { + return SentrySpanId._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [SentrySpanId] that wraps the given raw object pointer. + static SentrySpanId castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentrySpanId._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [SentrySpanId]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentrySpanId1); + } +} + +void _ObjCBlock_ffiVoid_SentryAppStartMeasurement_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { return block.ref.target .cast< @@ -67450,26 +75319,30 @@ void _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline( .asFunction arg0)>()(arg0); } -final _ObjCBlock_ffiVoid_NSData_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSData_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSData_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSData_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSData_closureRegistry[id] = fn; +final _ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_SentryAppStartMeasurement_registerClosure(Function fn) { + final id = + ++_ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureRegistryIndex; + _ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSData_closureTrampoline( +void _ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSData_closureRegistry[block.ref.target.address] - as void Function(ffi.Pointer))(arg0); + return (_ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureRegistry[block + .ref.target.address] as void Function(ffi.Pointer))(arg0); } -class ObjCBlock_ffiVoid_NSData extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSData._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock_ffiVoid_SentryAppStartMeasurement extends _ObjCBlockBase { + ObjCBlock_ffiVoid_SentryAppStartMeasurement._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSData.fromFunctionPointer( + ObjCBlock_ffiVoid_SentryAppStartMeasurement.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi @@ -67480,23 +75353,24 @@ class ObjCBlock_ffiVoid_NSData extends _ObjCBlockBase { _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline) + _ObjCBlock_ffiVoid_SentryAppStartMeasurement_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSData.fromFunction( + ObjCBlock_ffiVoid_SentryAppStartMeasurement.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSData_closureTrampoline) + _ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSData_registerClosure(fn)), + _ObjCBlock_ffiVoid_SentryAppStartMeasurement_registerClosure( + fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0) { @@ -67511,218 +75385,280 @@ class ObjCBlock_ffiVoid_NSData extends _ObjCBlockBase { } } -class NSURLSessionDownloadTask extends NSURLSessionTask { - NSURLSessionDownloadTask._(ffi.Pointer id, SentryCocoa lib, +class SentryAppStartMeasurement extends _ObjCWrapper { + SentryAppStartMeasurement._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLSessionDownloadTask] that points to the same underlying object as [other]. - static NSURLSessionDownloadTask castFrom(T other) { - return NSURLSessionDownloadTask._(other._id, other._lib, + /// Returns a [SentryAppStartMeasurement] that points to the same underlying object as [other]. + static SentryAppStartMeasurement castFrom(T other) { + return SentryAppStartMeasurement._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLSessionDownloadTask] that wraps the given raw object pointer. - static NSURLSessionDownloadTask castFromPointer( + /// Returns a [SentryAppStartMeasurement] that wraps the given raw object pointer. + static SentryAppStartMeasurement castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSessionDownloadTask._(other, lib, + return SentryAppStartMeasurement._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionDownloadTask]. + /// Returns whether [obj] is an instance of [SentryAppStartMeasurement]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionDownloadTask1); + obj._lib._class_SentryAppStartMeasurement1); } +} - void cancelByProducingResumeData_( - ObjCBlock_ffiVoid_NSData completionHandler) { - _lib._objc_msgSend_977( - _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); - } +class SentryOptions extends _ObjCWrapper { + SentryOptions._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - @override - NSURLSessionDownloadTask init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + /// Returns a [SentryOptions] that points to the same underlying object as [other]. + static SentryOptions castFrom(T other) { + return SentryOptions._(other._id, other._lib, retain: true, release: true); } - static NSURLSessionDownloadTask new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionDownloadTask1, _lib._sel_new1); - return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); + /// Returns a [SentryOptions] that wraps the given raw object pointer. + static SentryOptions castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryOptions._(other, lib, retain: retain, release: release); } - static NSURLSessionDownloadTask allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSURLSessionDownloadTask1, _lib._sel_allocWithZone_1, zone); - return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); + /// Returns whether [obj] is an instance of [SentryOptions]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryOptions2); } +} - static NSURLSessionDownloadTask alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionDownloadTask1, _lib._sel_alloc1); - return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); - } +class SentryUser extends _ObjCWrapper { + SentryUser._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLSessionDownloadTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + /// Returns a [SentryUser] that points to the same underlying object as [other]. + static SentryUser castFrom(T other) { + return SentryUser._(other._id, other._lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionDownloadTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + /// Returns a [SentryUser] that wraps the given raw object pointer. + static SentryUser castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryUser._(other, lib, retain: retain, release: release); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionDownloadTask1, - _lib._sel_accessInstanceVariablesDirectly1); + /// Returns whether [obj] is an instance of [SentryUser]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryUser1); } +} - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLSessionDownloadTask1, _lib._sel_useStoredAccessor1); - } +class SentryBreadcrumb extends _ObjCWrapper { + SentryBreadcrumb._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionDownloadTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + /// Returns a [SentryBreadcrumb] that points to the same underlying object as [other]. + static SentryBreadcrumb castFrom(T other) { + return SentryBreadcrumb._(other._id, other._lib, + retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionDownloadTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + /// Returns a [SentryBreadcrumb] that wraps the given raw object pointer. + static SentryBreadcrumb castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryBreadcrumb._(other, lib, retain: retain, release: release); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSURLSessionDownloadTask1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + /// Returns whether [obj] is an instance of [SentryBreadcrumb]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryBreadcrumb1); } +} - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionDownloadTask1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } +void _ObjCBlock_ffiVoid_NSString_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionDownloadTask1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); +final _ObjCBlock_ffiVoid_NSString_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSString_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSString_registerClosure(Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSString_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSString_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock_ffiVoid_NSString_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSString_closureRegistry[block.ref.target.address] + as void Function(ffi.Pointer))(arg0); +} + +class ObjCBlock_ffiVoid_NSString extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSString._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_NSString.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi + .NativeFunction arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSString_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_NSString.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSString_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_NSString_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); } } -class NSURLSessionStreamTask extends NSURLSessionTask { - NSURLSessionStreamTask._(ffi.Pointer id, SentryCocoa lib, +class NSNotificationCenter extends NSObject { + NSNotificationCenter._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLSessionStreamTask] that points to the same underlying object as [other]. - static NSURLSessionStreamTask castFrom(T other) { - return NSURLSessionStreamTask._(other._id, other._lib, + /// Returns a [NSNotificationCenter] that points to the same underlying object as [other]. + static NSNotificationCenter castFrom(T other) { + return NSNotificationCenter._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLSessionStreamTask] that wraps the given raw object pointer. - static NSURLSessionStreamTask castFromPointer( + /// Returns a [NSNotificationCenter] that wraps the given raw object pointer. + static NSNotificationCenter castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSessionStreamTask._(other, lib, - retain: retain, release: release); + return NSNotificationCenter._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionStreamTask]. + /// Returns whether [obj] is an instance of [NSNotificationCenter]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionStreamTask1); + obj._lib._class_NSNotificationCenter1); } - void readDataOfMinLength_maxLength_timeout_completionHandler_( - int minBytes, - int maxBytes, - double timeout, - ObjCBlock_ffiVoid_NSData_bool_NSError completionHandler) { - _lib._objc_msgSend_985( - _id, - _lib._sel_readDataOfMinLength_maxLength_timeout_completionHandler_1, - minBytes, - maxBytes, - timeout, - completionHandler._id); + static NSNotificationCenter? getDefaultCenter(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_1085( + _lib._class_NSNotificationCenter1, _lib._sel_defaultCenter1); + return _ret.address == 0 + ? null + : NSNotificationCenter._(_ret, _lib, retain: true, release: true); } - void writeData_timeout_completionHandler_(NSData? data, double timeout, - ObjCBlock_ffiVoid_NSError completionHandler) { - _lib._objc_msgSend_986(_id, _lib._sel_writeData_timeout_completionHandler_1, - data?._id ?? ffi.nullptr, timeout, completionHandler._id); + void addObserver_selector_name_object_(NSObject observer, + ffi.Pointer aSelector, NSString aName, NSObject anObject) { + _lib._objc_msgSend_1086(_id, _lib._sel_addObserver_selector_name_object_1, + observer._id, aSelector, aName._id, anObject._id); } - void captureStreams() { - _lib._objc_msgSend_1(_id, _lib._sel_captureStreams1); + void postNotification_(NSNotification? notification) { + _lib._objc_msgSend_1087( + _id, _lib._sel_postNotification_1, notification?._id ?? ffi.nullptr); } - void closeWrite() { - _lib._objc_msgSend_1(_id, _lib._sel_closeWrite1); + void postNotificationName_object_(NSString aName, NSObject anObject) { + _lib._objc_msgSend_508( + _id, _lib._sel_postNotificationName_object_1, aName._id, anObject._id); } - void closeRead() { - _lib._objc_msgSend_1(_id, _lib._sel_closeRead1); + void postNotificationName_object_userInfo_( + NSString aName, NSObject anObject, NSDictionary? aUserInfo) { + _lib._objc_msgSend_1088( + _id, + _lib._sel_postNotificationName_object_userInfo_1, + aName._id, + anObject._id, + aUserInfo?._id ?? ffi.nullptr); } - void startSecureConnection() { - _lib._objc_msgSend_1(_id, _lib._sel_startSecureConnection1); + void removeObserver_(NSObject observer) { + _lib._objc_msgSend_15(_id, _lib._sel_removeObserver_1, observer._id); } - void stopSecureConnection() { - _lib._objc_msgSend_1(_id, _lib._sel_stopSecureConnection1); + void removeObserver_name_object_( + NSObject observer, NSString aName, NSObject anObject) { + _lib._objc_msgSend_1089(_id, _lib._sel_removeObserver_name_object_1, + observer._id, aName._id, anObject._id); + } + + NSObject addObserverForName_object_queue_usingBlock_( + NSString name, + NSObject obj, + NSOperationQueue? queue, + ObjCBlock_ffiVoid_NSNotification block) { + final _ret = _lib._objc_msgSend_1090( + _id, + _lib._sel_addObserverForName_object_queue_usingBlock_1, + name._id, + obj._id, + queue?._id ?? ffi.nullptr, + block._id); + return NSObject._(_ret, _lib, retain: true, release: true); } @override - NSURLSessionStreamTask init() { + NSNotificationCenter init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); + return NSNotificationCenter._(_ret, _lib, retain: true, release: true); } - static NSURLSessionStreamTask new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionStreamTask1, _lib._sel_new1); - return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); + static NSNotificationCenter new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSNotificationCenter1, _lib._sel_new1); + return NSNotificationCenter._(_ret, _lib, retain: false, release: true); } - static NSURLSessionStreamTask allocWithZone_( + static NSNotificationCenter allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSURLSessionStreamTask1, _lib._sel_allocWithZone_1, zone); - return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); + _lib._class_NSNotificationCenter1, _lib._sel_allocWithZone_1, zone); + return NSNotificationCenter._(_ret, _lib, retain: false, release: true); } - static NSURLSessionStreamTask alloc(SentryCocoa _lib) { + static NSNotificationCenter alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionStreamTask1, _lib._sel_alloc1); - return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); + _lib._class_NSNotificationCenter1, _lib._sel_alloc1); + return NSNotificationCenter._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -67731,7 +75667,7 @@ class NSURLSessionStreamTask extends NSURLSessionTask { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLSessionStreamTask1, + _lib._class_NSNotificationCenter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -67740,24 +75676,24 @@ class NSURLSessionStreamTask extends NSURLSessionTask { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionStreamTask1, + _lib._objc_msgSend_15(_lib._class_NSNotificationCenter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionStreamTask1, + return _lib._objc_msgSend_12(_lib._class_NSNotificationCenter1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSessionStreamTask1, _lib._sel_useStoredAccessor1); + _lib._class_NSNotificationCenter1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionStreamTask1, + _lib._class_NSNotificationCenter1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -67766,7 +75702,7 @@ class NSURLSessionStreamTask extends NSURLSessionTask { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSessionStreamTask1, + _lib._class_NSNotificationCenter1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -67774,326 +75710,343 @@ class NSURLSessionStreamTask extends NSURLSessionTask { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLSessionStreamTask1, + _lib._class_NSNotificationCenter1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionStreamTask1, + final _ret = _lib._objc_msgSend_79(_lib._class_NSNotificationCenter1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionStreamTask1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSNotificationCenter1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock_ffiVoid_NSData_bool_NSError_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2) { +void _ObjCBlock_ffiVoid_NSNotification_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { return block.ref.target .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); } -final _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSData_bool_NSError_registerClosure( +final _ObjCBlock_ffiVoid_NSNotification_closureRegistry = {}; +int _ObjCBlock_ffiVoid_NSNotification_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSNotification_registerClosure( Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry[id] = fn; + final id = ++_ObjCBlock_ffiVoid_NSNotification_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSNotification_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSData_bool_NSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, bool, - ffi.Pointer))(arg0, arg1, arg2); +void _ObjCBlock_ffiVoid_NSNotification_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_ffiVoid_NSNotification_closureRegistry[block + .ref.target.address] as void Function(ffi.Pointer))(arg0); } -class ObjCBlock_ffiVoid_NSData_bool_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSData_bool_NSError._( +class ObjCBlock_ffiVoid_NSNotification extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSNotification._( ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSData_bool_NSError.fromFunctionPointer( + ObjCBlock_ffiVoid_NSNotification.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, - ffi.Pointer arg2)>> + ffi + .NativeFunction arg0)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSData_bool_NSError_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSNotification_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSData_bool_NSError.fromFunction( - SentryCocoa lib, - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2) - fn) + ObjCBlock_ffiVoid_NSNotification.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSData_bool_NSError_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_ffiVoid_NSNotification_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSData_bool_NSError_registerClosure(fn)), + _ObjCBlock_ffiVoid_NSNotification_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { + void call(ffi.Pointer arg0) { return _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Bool arg1, - ffi.Pointer arg2)>>() + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); } } -class NSNetService extends NSObject { - NSNetService._(ffi.Pointer id, SentryCocoa lib, +class SentryBreadcrumbTracker extends NSObject { + SentryBreadcrumbTracker._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSNetService] that points to the same underlying object as [other]. - static NSNetService castFrom(T other) { - return NSNetService._(other._id, other._lib, retain: true, release: true); + /// Returns a [SentryBreadcrumbTracker] that points to the same underlying object as [other]. + static SentryBreadcrumbTracker castFrom(T other) { + return SentryBreadcrumbTracker._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSNetService] that wraps the given raw object pointer. - static NSNetService castFromPointer( + /// Returns a [SentryBreadcrumbTracker] that wraps the given raw object pointer. + static SentryBreadcrumbTracker castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSNetService._(other, lib, retain: retain, release: release); + return SentryBreadcrumbTracker._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSNetService]. + /// Returns whether [obj] is an instance of [SentryBreadcrumbTracker]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSNetService1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryBreadcrumbTracker1); } - NSNetService initWithDomain_type_name_port_( - NSString? domain, NSString? type, NSString? name, int port) { - final _ret = _lib._objc_msgSend_988( - _id, - _lib._sel_initWithDomain_type_name_port_1, - domain?._id ?? ffi.nullptr, - type?._id ?? ffi.nullptr, - name?._id ?? ffi.nullptr, - port); - return NSNetService._(_ret, _lib, retain: true, release: true); + @override + SentryBreadcrumbTracker init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryBreadcrumbTracker._(_ret, _lib, retain: true, release: true); } - NSNetService initWithDomain_type_name_( - NSString? domain, NSString? type, NSString? name) { - final _ret = _lib._objc_msgSend_26( - _id, - _lib._sel_initWithDomain_type_name_1, - domain?._id ?? ffi.nullptr, - type?._id ?? ffi.nullptr, - name?._id ?? ffi.nullptr); - return NSNetService._(_ret, _lib, retain: true, release: true); + static SentryBreadcrumbTracker new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryBreadcrumbTracker1, _lib._sel_new1); + return SentryBreadcrumbTracker._(_ret, _lib, retain: false, release: true); } - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - _lib._objc_msgSend_536(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); + void connectivityChanged_typeDescription_( + bool connected, NSString? typeDescription) { + _lib._objc_msgSend_272(_id, _lib._sel_connectivityChanged_typeDescription_1, + connected, typeDescription?._id ?? ffi.nullptr); + } + + static SentryBreadcrumbTracker allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryBreadcrumbTracker1, _lib._sel_allocWithZone_1, zone); + return SentryBreadcrumbTracker._(_ret, _lib, retain: false, release: true); + } + + static SentryBreadcrumbTracker alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryBreadcrumbTracker1, _lib._sel_alloc1); + return SentryBreadcrumbTracker._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_SentryBreadcrumbTracker1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_SentryBreadcrumbTracker1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryBreadcrumbTracker1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryBreadcrumbTracker1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryBreadcrumbTracker1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - _lib._objc_msgSend_536(_id, _lib._sel_removeFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryBreadcrumbTracker1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_SentryBreadcrumbTracker1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - set delegate(NSObject? value) { - return _lib._objc_msgSend_389( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_SentryBreadcrumbTracker1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - bool get includesPeerToPeer { - return _lib._objc_msgSend_12(_id, _lib._sel_includesPeerToPeer1); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_SentryBreadcrumbTracker1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - set includesPeerToPeer(bool value) { - return _lib._objc_msgSend_495( - _id, _lib._sel_setIncludesPeerToPeer_1, value); - } +class SentryDefaultCrashReporter extends NSObject { + SentryDefaultCrashReporter._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// Returns a [SentryDefaultCrashReporter] that points to the same underlying object as [other]. + static SentryDefaultCrashReporter castFrom(T other) { + return SentryDefaultCrashReporter._(other._id, other._lib, + retain: true, release: true); } - NSString? get type { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_type1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// Returns a [SentryDefaultCrashReporter] that wraps the given raw object pointer. + static SentryDefaultCrashReporter castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryDefaultCrashReporter._(other, lib, + retain: retain, release: release); } - NSString? get domain { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_domain1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [SentryDefaultCrashReporter]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryDefaultCrashReporter1); } - NSString? get hostName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_hostName1); + NSObject? get processInfoWrapper { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_processInfoWrapper1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - NSArray? get addresses { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_addresses1); + NSDictionary? get systemInfo { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_systemInfo1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - int get port { - return _lib._objc_msgSend_78(_id, _lib._sel_port1); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - void publish() { - _lib._objc_msgSend_1(_id, _lib._sel_publish1); + SentryDefaultCrashReporter initWithProcessInfoWrapper_bridge_( + NSObject? processInfoWrapper, SentryCrashBridge? bridge) { + final _ret = _lib._objc_msgSend_1100( + _id, + _lib._sel_initWithProcessInfoWrapper_bridge_1, + processInfoWrapper?._id ?? ffi.nullptr, + bridge?._id ?? ffi.nullptr); + return SentryDefaultCrashReporter._(_ret, _lib, + retain: true, release: true); } - void publishWithOptions_(int options) { - _lib._objc_msgSend_989(_id, _lib._sel_publishWithOptions_1, options); + @override + SentryDefaultCrashReporter init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryDefaultCrashReporter._(_ret, _lib, + retain: true, release: true); } - void resolve() { - _lib._objc_msgSend_1(_id, _lib._sel_resolve1); + static SentryDefaultCrashReporter new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryDefaultCrashReporter1, _lib._sel_new1); + return SentryDefaultCrashReporter._(_ret, _lib, + retain: false, release: true); } - void stop() { - _lib._objc_msgSend_1(_id, _lib._sel_stop1); + void startBinaryImageCache() { + _lib._objc_msgSend_1(_id, _lib._sel_startBinaryImageCache1); } - static NSDictionary dictionaryFromTXTRecordData_( - SentryCocoa _lib, NSData? txtData) { - final _ret = _lib._objc_msgSend_990(_lib._class_NSNetService1, - _lib._sel_dictionaryFromTXTRecordData_1, txtData?._id ?? ffi.nullptr); - return NSDictionary._(_ret, _lib, retain: true, release: true); + void stopBinaryImageCache() { + _lib._objc_msgSend_1(_id, _lib._sel_stopBinaryImageCache1); } - static NSData dataFromTXTRecordDictionary_( - SentryCocoa _lib, NSDictionary? txtDictionary) { - final _ret = _lib._objc_msgSend_991( - _lib._class_NSNetService1, - _lib._sel_dataFromTXTRecordDictionary_1, - txtDictionary?._id ?? ffi.nullptr); - return NSData._(_ret, _lib, retain: true, release: true); + bool get crashedLastLaunch { + return _lib._objc_msgSend_12(_id, _lib._sel_crashedLastLaunch1); } - void resolveWithTimeout_(double timeout) { - _lib._objc_msgSend_508(_id, _lib._sel_resolveWithTimeout_1, timeout); + double get durationFromCrashStateInitToLastCrash { + return _lib._objc_msgSend_155( + _id, _lib._sel_durationFromCrashStateInitToLastCrash1); } - bool getInputStream_outputStream_( - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_992(_id, _lib._sel_getInputStream_outputStream_1, - inputStream, outputStream); + double get activeDurationSinceLastCrash { + return _lib._objc_msgSend_155(_id, _lib._sel_activeDurationSinceLastCrash1); } - bool setTXTRecordData_(NSData? recordData) { - return _lib._objc_msgSend_23( - _id, _lib._sel_setTXTRecordData_1, recordData?._id ?? ffi.nullptr); + bool get isBeingTraced { + return _lib._objc_msgSend_12(_id, _lib._sel_isBeingTraced1); } - NSData TXTRecordData() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_TXTRecordData1); - return NSData._(_ret, _lib, retain: true, release: true); + bool get isSimulatorBuild { + return _lib._objc_msgSend_12(_id, _lib._sel_isSimulatorBuild1); } - void startMonitoring() { - _lib._objc_msgSend_1(_id, _lib._sel_startMonitoring1); + bool get isApplicationInForeground { + return _lib._objc_msgSend_12(_id, _lib._sel_isApplicationInForeground1); } - void stopMonitoring() { - _lib._objc_msgSend_1(_id, _lib._sel_stopMonitoring1); + int get freeMemorySize { + return _lib._objc_msgSend_1101(_id, _lib._sel_freeMemorySize1); } - @override - NSNetService init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSNetService._(_ret, _lib, retain: true, release: true); + int get appMemorySize { + return _lib._objc_msgSend_1101(_id, _lib._sel_appMemorySize1); } - static NSNetService new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_new1); - return NSNetService._(_ret, _lib, retain: false, release: true); + void enrichScope_(SentryScope? scope) { + _lib._objc_msgSend_1102( + _id, _lib._sel_enrichScope_1, scope?._id ?? ffi.nullptr); } - static NSNetService allocWithZone_( + static SentryDefaultCrashReporter allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSNetService1, _lib._sel_allocWithZone_1, zone); - return NSNetService._(_ret, _lib, retain: false, release: true); + final _ret = _lib._objc_msgSend_3(_lib._class_SentryDefaultCrashReporter1, + _lib._sel_allocWithZone_1, zone); + return SentryDefaultCrashReporter._(_ret, _lib, + retain: false, release: true); } - static NSNetService alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_alloc1); - return NSNetService._(_ret, _lib, retain: false, release: true); + static SentryDefaultCrashReporter alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryDefaultCrashReporter1, _lib._sel_alloc1); + return SentryDefaultCrashReporter._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -68102,7 +76055,7 @@ class NSNetService extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSNetService1, + _lib._class_SentryDefaultCrashReporter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -68111,24 +76064,24 @@ class NSNetService extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSNetService1, + _lib._objc_msgSend_15(_lib._class_SentryDefaultCrashReporter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSNetService1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_SentryDefaultCrashReporter1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSNetService1, _lib._sel_useStoredAccessor1); + _lib._class_SentryDefaultCrashReporter1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSNetService1, + _lib._class_SentryDefaultCrashReporter1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -68137,7 +76090,7 @@ class NSNetService extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSNetService1, + _lib._class_SentryDefaultCrashReporter1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -68145,125 +76098,179 @@ class NSNetService extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSNetService1, + _lib._class_SentryDefaultCrashReporter1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSNetService1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_SentryDefaultCrashReporter1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSNetService1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_SentryDefaultCrashReporter1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSNetServiceOptions { - static const int NSNetServiceNoAutoRename = 1; - static const int NSNetServiceListenForConnections = 2; -} - -class NSURLSessionWebSocketTask extends NSURLSessionTask { - NSURLSessionWebSocketTask._(ffi.Pointer id, SentryCocoa lib, +/// Facade that bridges the Sentry SDK layer to the SentryCrash subsystem. +/// SentryCrashBridge is the single entry point through which SentryCrash +/// accesses SDK services. It replaces direct SentryDependencyContainer +/// look-ups inside the crash reporter, keeping the dependency direction +/// one-way: Sentry → SentryCrash, never the reverse. +///

Isolation boundary

+/// This bridge is the first step toward fully isolating SentryCrash from the +/// SDK. Today the two layers still share a handful of model types (e.g. +/// SentryCrashSwift, notification-center wrappers). Future work will replace +/// those shared types with protocol abstractions so that SentryCrash can be +/// built and tested independently. +///

Exposed services

+/// | Service | Used by SentryCrash for | +/// |––––––––––––––––|———————————————————| +/// | notificationCenterWrapper | Observing app-lifecycle events (foreground, background) | +/// | dateProvider | Timestamping crash reports and session boundaries | +/// | crashReporter | Reading system info, crash state, and launch metadata | +/// | uncaughtExceptionHandler | Installing / reading the NSException handler | +/// | activeScreenSize() (UIKit) | Recording screen dimensions in device context | +///

Threading

+/// The bridge is created once during SentryCrashIntegration.install(with:) and +/// is safe to read from any thread after initialization. The +/// uncaughtExceptionHandler property may be written from the SentryCrash +/// installation path and read from the crash-time exception handler. +///

Usage

+/// The bridge is created by the integration layer and passed down: +/// \code +/// let bridge = SentryCrashBridge( +/// notificationCenterWrapper: notificationCenter, +/// dateProvider: dateProvider, +/// crashReporter: crashReporter +/// ) +/// // Passed to SentryCrashWrapper, SentryCrashIntegrationSessionHandler, +/// // and the underlying SentryCrash / SentryCrashInstallation instances. +/// +/// \endcode +class SentryCrashBridge extends NSObject { + SentryCrashBridge._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLSessionWebSocketTask] that points to the same underlying object as [other]. - static NSURLSessionWebSocketTask castFrom(T other) { - return NSURLSessionWebSocketTask._(other._id, other._lib, + /// Returns a [SentryCrashBridge] that points to the same underlying object as [other]. + static SentryCrashBridge castFrom(T other) { + return SentryCrashBridge._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLSessionWebSocketTask] that wraps the given raw object pointer. - static NSURLSessionWebSocketTask castFromPointer( + /// Returns a [SentryCrashBridge] that wraps the given raw object pointer. + static SentryCrashBridge castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSessionWebSocketTask._(other, lib, - retain: retain, release: release); + return SentryCrashBridge._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionWebSocketTask]. + /// Returns whether [obj] is an instance of [SentryCrashBridge]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionWebSocketTask1); - } - - void sendMessage_completionHandler_(NSURLSessionWebSocketMessage? message, - ObjCBlock_ffiVoid_NSError completionHandler) { - _lib._objc_msgSend_995(_id, _lib._sel_sendMessage_completionHandler_1, - message?._id ?? ffi.nullptr, completionHandler._id); - } - - void receiveMessageWithCompletionHandler_( - ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError - completionHandler) { - _lib._objc_msgSend_996(_id, _lib._sel_receiveMessageWithCompletionHandler_1, - completionHandler._id); + obj._lib._class_SentryCrashBridge1); } - void sendPingWithPongReceiveHandler_( - ObjCBlock_ffiVoid_NSError pongReceiveHandler) { - _lib._objc_msgSend_997(_id, _lib._sel_sendPingWithPongReceiveHandler_1, - pongReceiveHandler._id); + /// Wrapper around NSNotificationCenter used by SentryCrash to observe + /// app-lifecycle transitions (e.g. UIApplicationDidBecomeActiveNotification). + NSObject? get notificationCenterWrapper { + final _ret = + _lib._objc_msgSend_2(_id, _lib._sel_notificationCenterWrapper1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - void cancelWithCloseCode_reason_(int closeCode, NSData? reason) { - _lib._objc_msgSend_998(_id, _lib._sel_cancelWithCloseCode_reason_1, - closeCode, reason?._id ?? ffi.nullptr); + /// Provides the current date/time. Used for timestamping crash reports and + /// computing session durations. + NSObject? get dateProvider { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_dateProvider1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - int get maximumMessageSize { - return _lib._objc_msgSend_78(_id, _lib._sel_maximumMessageSize1); + /// The crash reporter instance that owns system info, crash state, and the + /// on-disk report store. This is the main object SentryCrash interacts with. + SentryCrashSwift? get crashReporter { + final _ret = _lib._objc_msgSend_1098(_id, _lib._sel_crashReporter1); + return _ret.address == 0 + ? null + : SentryCrashSwift._(_ret, _lib, retain: true, release: true); } - set maximumMessageSize(int value) { - return _lib._objc_msgSend_593( - _id, _lib._sel_setMaximumMessageSize_1, value); + /// The C-convention uncaught-exception handler installed by SentryCrash. + /// This is a convenience proxy for crashReporter.uncaughtExceptionHandler. + /// The NSException monitor (SentryCrashMonitor_NSException) writes this + /// during installation so it can be restored if monitoring is later disabled. + ffi.Pointer)>> + get uncaughtExceptionHandler { + return _lib._objc_msgSend_1093(_id, _lib._sel_uncaughtExceptionHandler1); } - int get closeCode { - return _lib._objc_msgSend_999(_id, _lib._sel_closeCode1); + /// The C-convention uncaught-exception handler installed by SentryCrash. + /// This is a convenience proxy for crashReporter.uncaughtExceptionHandler. + /// The NSException monitor (SentryCrashMonitor_NSException) writes this + /// during installation so it can be restored if monitoring is later disabled. + set uncaughtExceptionHandler( + ffi.Pointer< + ffi.NativeFunction)>> + value) { + return _lib._objc_msgSend_1094( + _id, _lib._sel_setUncaughtExceptionHandler_1, value); } - NSData? get closeReason { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_closeReason1); - return _ret.address == 0 - ? null - : NSData._(_ret, _lib, retain: true, release: true); + /// Creates a bridge with the SDK services that SentryCrash requires. + /// \param notificationCenterWrapper Wrapper for subscribing to app-lifecycle + /// notifications. + /// + /// \param dateProvider Provider for current timestamps. + /// + /// \param crashReporter The crash reporter that manages on-disk reports and + /// system info. + SentryCrashBridge + initWithNotificationCenterWrapper_dateProvider_crashReporter_( + NSObject? notificationCenterWrapper, + NSObject? dateProvider, + SentryCrashSwift? crashReporter) { + final _ret = _lib._objc_msgSend_1099( + _id, + _lib._sel_initWithNotificationCenterWrapper_dateProvider_crashReporter_1, + notificationCenterWrapper?._id ?? ffi.nullptr, + dateProvider?._id ?? ffi.nullptr, + crashReporter?._id ?? ffi.nullptr); + return SentryCrashBridge._(_ret, _lib, retain: true, release: true); } @override - NSURLSessionWebSocketTask init() { + SentryCrashBridge init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + return SentryCrashBridge._(_ret, _lib, retain: true, release: true); } - static NSURLSessionWebSocketTask new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionWebSocketTask1, _lib._sel_new1); - return NSURLSessionWebSocketTask._(_ret, _lib, - retain: false, release: true); + static SentryCrashBridge new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryCrashBridge1, _lib._sel_new1); + return SentryCrashBridge._(_ret, _lib, retain: false, release: true); } - static NSURLSessionWebSocketTask allocWithZone_( + static SentryCrashBridge allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3(_lib._class_NSURLSessionWebSocketTask1, - _lib._sel_allocWithZone_1, zone); - return NSURLSessionWebSocketTask._(_ret, _lib, - retain: false, release: true); + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryCrashBridge1, _lib._sel_allocWithZone_1, zone); + return SentryCrashBridge._(_ret, _lib, retain: false, release: true); } - static NSURLSessionWebSocketTask alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionWebSocketTask1, _lib._sel_alloc1); - return NSURLSessionWebSocketTask._(_ret, _lib, - retain: false, release: true); + static SentryCrashBridge alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryCrashBridge1, _lib._sel_alloc1); + return SentryCrashBridge._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -68272,7 +76279,7 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLSessionWebSocketTask1, + _lib._class_SentryCrashBridge1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -68281,24 +76288,24 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketTask1, + _lib._objc_msgSend_15(_lib._class_SentryCrashBridge1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketTask1, + return _lib._objc_msgSend_12(_lib._class_SentryCrashBridge1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSessionWebSocketTask1, _lib._sel_useStoredAccessor1); + _lib._class_SentryCrashBridge1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionWebSocketTask1, + _lib._class_SentryCrashBridge1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -68307,7 +76314,7 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSessionWebSocketTask1, + _lib._class_SentryCrashBridge1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -68315,110 +76322,164 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLSessionWebSocketTask1, + _lib._class_SentryCrashBridge1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionWebSocketTask1, + final _ret = _lib._objc_msgSend_79(_lib._class_SentryCrashBridge1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketTask1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryCrashBridge1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSURLSessionWebSocketMessage extends NSObject { - NSURLSessionWebSocketMessage._(ffi.Pointer id, SentryCocoa lib, +class SentryCrashSwift extends NSObject { + SentryCrashSwift._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSURLSessionWebSocketMessage] that points to the same underlying object as [other]. - static NSURLSessionWebSocketMessage castFrom( - T other) { - return NSURLSessionWebSocketMessage._(other._id, other._lib, + /// Returns a [SentryCrashSwift] that points to the same underlying object as [other]. + static SentryCrashSwift castFrom(T other) { + return SentryCrashSwift._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSURLSessionWebSocketMessage] that wraps the given raw object pointer. - static NSURLSessionWebSocketMessage castFromPointer( + /// Returns a [SentryCrashSwift] that wraps the given raw object pointer. + static SentryCrashSwift castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSURLSessionWebSocketMessage._(other, lib, - retain: retain, release: release); + return SentryCrashSwift._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionWebSocketMessage]. + /// Returns whether [obj] is an instance of [SentryCrashSwift]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSURLSessionWebSocketMessage1); + obj._lib._class_SentryCrashSwift1); } - NSURLSessionWebSocketMessage initWithData_(NSData? data) { - final _ret = _lib._objc_msgSend_257( - _id, _lib._sel_initWithData_1, data?._id ?? ffi.nullptr); - return NSURLSessionWebSocketMessage._(_ret, _lib, - retain: true, release: true); + bool get crashedLastLaunch { + return _lib._objc_msgSend_12(_id, _lib._sel_crashedLastLaunch1); } - NSURLSessionWebSocketMessage initWithString_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithString_1, string?._id ?? ffi.nullptr); - return NSURLSessionWebSocketMessage._(_ret, _lib, - retain: true, release: true); + double get activeDurationSinceLastCrash { + return _lib._objc_msgSend_155(_id, _lib._sel_activeDurationSinceLastCrash1); } - int get type { - return _lib._objc_msgSend_994(_id, _lib._sel_type1); + void setSink_(SentryCrashReportFilterSwift? newValue) { + _lib._objc_msgSend_1092( + _id, _lib._sel_setSink_1, newValue?._id ?? ffi.nullptr); } - NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); + void setupOnCrash() { + _lib._objc_msgSend_1(_id, _lib._sel_setupOnCrash1); + } + + void removeOnCrash() { + _lib._objc_msgSend_1(_id, _lib._sel_removeOnCrash1); + } + + ffi.Pointer)>> + get uncaughtExceptionHandler { + return _lib._objc_msgSend_1093(_id, _lib._sel_uncaughtExceptionHandler1); + } + + set uncaughtExceptionHandler( + ffi.Pointer< + ffi.NativeFunction)>> + value) { + return _lib._objc_msgSend_1094( + _id, _lib._sel_setUncaughtExceptionHandler_1, value); + } + + void setBridge_(SentryCrashBridge? bridge) { + _lib._objc_msgSend_1095( + _id, _lib._sel_setBridge_1, bridge?._id ?? ffi.nullptr); + } + + NSString? get basePath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_basePath1); return _ret.address == 0 ? null - : NSData._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - NSString? get string { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_string1); + set basePath(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setBasePath_1, value?._id ?? ffi.nullptr); + } + + void install() { + _lib._objc_msgSend_1(_id, _lib._sel_install1); + } + + void uninstall() { + _lib._objc_msgSend_1(_id, _lib._sel_uninstall1); + } + + NSDictionary? get systemInfo { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_systemInfo1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + NSDictionary? get userInfo { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); + } + + set userInfo(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setUserInfo_1, value?._id ?? ffi.nullptr); + } + + void sendAllReportsWithCompletion_( + ObjCBlock_ffiVoid_NSArray_bool_NSError completion) { + _lib._objc_msgSend_1096( + _id, _lib._sel_sendAllReportsWithCompletion_1, completion._id); + } + + int get monitoring { + return _lib._objc_msgSend_1097(_id, _lib._sel_monitoring1); + } + + bool hasOnCrash() { + return _lib._objc_msgSend_12(_id, _lib._sel_hasOnCrash1); } @override - NSURLSessionWebSocketMessage init() { + SentryCrashSwift init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionWebSocketMessage._(_ret, _lib, - retain: true, release: true); + return SentryCrashSwift._(_ret, _lib, retain: true, release: true); } - static NSURLSessionWebSocketMessage new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_new1); - return NSURLSessionWebSocketMessage._(_ret, _lib, - retain: false, release: true); + static SentryCrashSwift new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryCrashSwift1, _lib._sel_new1); + return SentryCrashSwift._(_ret, _lib, retain: false, release: true); } - static NSURLSessionWebSocketMessage allocWithZone_( + static SentryCrashSwift allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3(_lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_allocWithZone_1, zone); - return NSURLSessionWebSocketMessage._(_ret, _lib, - retain: false, release: true); + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryCrashSwift1, _lib._sel_allocWithZone_1, zone); + return SentryCrashSwift._(_ret, _lib, retain: false, release: true); } - static NSURLSessionWebSocketMessage alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_alloc1); - return NSURLSessionWebSocketMessage._(_ret, _lib, - retain: false, release: true); + static SentryCrashSwift alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryCrashSwift1, _lib._sel_alloc1); + return SentryCrashSwift._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -68427,7 +76488,7 @@ class NSURLSessionWebSocketMessage extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSURLSessionWebSocketMessage1, + _lib._class_SentryCrashSwift1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -68436,24 +76497,24 @@ class NSURLSessionWebSocketMessage extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketMessage1, + _lib._objc_msgSend_15(_lib._class_SentryCrashSwift1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketMessage1, + return _lib._objc_msgSend_12(_lib._class_SentryCrashSwift1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_useStoredAccessor1); + return _lib._objc_msgSend_12( + _lib._class_SentryCrashSwift1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionWebSocketMessage1, + _lib._class_SentryCrashSwift1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -68462,7 +76523,7 @@ class NSURLSessionWebSocketMessage extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSessionWebSocketMessage1, + _lib._class_SentryCrashSwift1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -68470,203 +76531,207 @@ class NSURLSessionWebSocketMessage extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSURLSessionWebSocketMessage1, + _lib._class_SentryCrashSwift1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLSessionWebSocketMessage1, + final _ret = _lib._objc_msgSend_79(_lib._class_SentryCrashSwift1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketMessage1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryCrashSwift1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSURLSessionWebSocketMessageType { - static const int NSURLSessionWebSocketMessageTypeData = 0; - static const int NSURLSessionWebSocketMessageTypeString = 1; -} +class SentryCrashReportFilterSwift extends NSObject { + SentryCrashReportFilterSwift._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); -void _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return block.ref.target - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>()(arg0, arg1); -} + /// Returns a [SentryCrashReportFilterSwift] that points to the same underlying object as [other]. + static SentryCrashReportFilterSwift castFrom( + T other) { + return SentryCrashReportFilterSwift._(other._id, other._lib, + retain: true, release: true); + } -final _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistryIndex = - 0; -ffi.Pointer - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry[id] = - fn; - return ffi.Pointer.fromAddress(id); -} + /// Returns a [SentryCrashReportFilterSwift] that wraps the given raw object pointer. + static SentryCrashReportFilterSwift castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryCrashReportFilterSwift._(other, lib, + retain: retain, release: release); + } -void _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureRegistry[ - block.ref.target.address] - as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); -} + /// Returns whether [obj] is an instance of [SentryCrashReportFilterSwift]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryCrashReportFilterSwift1); + } -class ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError - extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + SentryCrashReportFilterSwift initWithFilterReports_( + ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError filter) { + final _ret = _lib._objc_msgSend_1091( + _id, _lib._sel_initWithFilterReports_1, filter._id); + return SentryCrashReportFilterSwift._(_ret, _lib, + retain: true, release: true); + } - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.fromFunctionPointer( - SentryCocoa lib, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Pointer arg1)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; + @override + SentryCrashReportFilterSwift init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryCrashReportFilterSwift._(_ret, _lib, + retain: true, release: true); + } - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError.fromFunction( - SentryCocoa lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1) - fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError_registerClosure( - fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1)>()(_id, arg0, arg1); + static SentryCrashReportFilterSwift new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryCrashReportFilterSwift1, _lib._sel_new1); + return SentryCrashReportFilterSwift._(_ret, _lib, + retain: false, release: true); + } + + static SentryCrashReportFilterSwift allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_lib._class_SentryCrashReportFilterSwift1, + _lib._sel_allocWithZone_1, zone); + return SentryCrashReportFilterSwift._(_ret, _lib, + retain: false, release: true); + } + + static SentryCrashReportFilterSwift alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryCrashReportFilterSwift1, _lib._sel_alloc1); + return SentryCrashReportFilterSwift._(_ret, _lib, + retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_SentryCrashReportFilterSwift1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_SentryCrashReportFilterSwift1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryCrashReportFilterSwift1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryCrashReportFilterSwift1, + _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryCrashReportFilterSwift1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } -} -abstract class NSURLSessionWebSocketCloseCode { - static const int NSURLSessionWebSocketCloseCodeInvalid = 0; - static const int NSURLSessionWebSocketCloseCodeNormalClosure = 1000; - static const int NSURLSessionWebSocketCloseCodeGoingAway = 1001; - static const int NSURLSessionWebSocketCloseCodeProtocolError = 1002; - static const int NSURLSessionWebSocketCloseCodeUnsupportedData = 1003; - static const int NSURLSessionWebSocketCloseCodeNoStatusReceived = 1005; - static const int NSURLSessionWebSocketCloseCodeAbnormalClosure = 1006; - static const int NSURLSessionWebSocketCloseCodeInvalidFramePayloadData = 1007; - static const int NSURLSessionWebSocketCloseCodePolicyViolation = 1008; - static const int NSURLSessionWebSocketCloseCodeMessageTooBig = 1009; - static const int NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing = - 1010; - static const int NSURLSessionWebSocketCloseCodeInternalServerError = 1011; - static const int NSURLSessionWebSocketCloseCodeTLSHandshakeFailure = 1015; + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryCrashReportFilterSwift1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_SentryCrashReportFilterSwift1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_SentryCrashReportFilterSwift1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_SentryCrashReportFilterSwift1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } } -void _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrTrampoline( +void _ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { + ffi.Pointer<_ObjCBlock> arg1) { return block.ref.target .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer<_ObjCBlock> arg1)>>() .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); + void Function(ffi.Pointer arg0, + ffi.Pointer<_ObjCBlock> arg1)>()(arg0, arg1); } -final _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry = +final _ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistryIndex = 0; +int _ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_closureRegistryIndex = + 0; ffi.Pointer - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_registerClosure( + _ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_registerClosure( Function fn) { final id = - ++_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry[id] = fn; + ++_ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline( +void _ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureRegistry[ + ffi.Pointer<_ObjCBlock> arg1) { + return (_ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_closureRegistry[ block.ref.target.address] - as void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer))(arg0, arg1, arg2); + as void Function( + ffi.Pointer, ffi.Pointer<_ObjCBlock>))(arg0, arg1); } -class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError._( +class ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError._( ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.fromFunctionPointer( + ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>> + ffi.Void Function(ffi.Pointer arg0, + ffi.Pointer<_ObjCBlock> arg1)>> ptr) : this._( lib._newBlock1( @@ -68674,19 +76739,17 @@ class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError extends _ObjCBlockBase { ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock> arg1)>( + _ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError.fromFunction( + ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError.fromFunction( SentryCocoa lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) + void Function(ffi.Pointer arg0, ffi.Pointer<_ObjCBlock> arg1) fn) : this._( lib._newBlock1( @@ -68694,88 +76757,76 @@ class ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError extends _ObjCBlockBase { ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_closureTrampoline) + ffi.Pointer<_ObjCBlock> arg1)>( + _ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError_registerClosure( + _ObjCBlock_ffiVoid_NSArray_ffiVoidNSArrayboolNSError_registerClosure( fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { + void call(ffi.Pointer arg0, ffi.Pointer<_ObjCBlock> arg1) { return _id.ref.invoke .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>>() + ffi.Pointer<_ObjCBlock> arg1)>>() .asFunction< void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + ffi.Pointer<_ObjCBlock> arg1)>()(_id, arg0, arg1); } } -void _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrTrampoline( +void _ObjCBlock_ffiVoid_NSArray_bool_NSError_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, + bool arg1, ffi.Pointer arg2) { return block.ref.target .cast< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, ffi.Pointer arg2)>>() .asFunction< - void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, + void Function(ffi.Pointer arg0, bool arg1, ffi.Pointer arg2)>()(arg0, arg1, arg2); } -final _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry = +final _ObjCBlock_ffiVoid_NSArray_bool_NSError_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry[id] = fn; +int _ObjCBlock_ffiVoid_NSArray_bool_NSError_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_NSArray_bool_NSError_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_NSArray_bool_NSError_closureRegistryIndex; + _ObjCBlock_ffiVoid_NSArray_bool_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline( +void _ObjCBlock_ffiVoid_NSArray_bool_NSError_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, + bool arg1, ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureRegistry[ + return (_ObjCBlock_ffiVoid_NSArray_bool_NSError_closureRegistry[ block.ref.target.address] - as void Function(ffi.Pointer, ffi.Pointer, + as void Function(ffi.Pointer, bool, ffi.Pointer))(arg0, arg1, arg2); } -class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError._( +class ObjCBlock_ffiVoid_NSArray_bool_NSError extends _ObjCBlockBase { + ObjCBlock_ffiVoid_NSArray_bool_NSError._( ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError.fromFunctionPointer( + ObjCBlock_ffiVoid_NSArray_bool_NSError.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, - ffi.Pointer arg1, + ffi.Void Function(ffi.Pointer arg0, ffi.Bool arg1, ffi.Pointer arg2)>> ptr) : this._( @@ -68784,18 +76835,18 @@ class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError extends _ObjCBlockBase { ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, + ffi.Bool arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_fnPtrTrampoline) + _ObjCBlock_ffiVoid_NSArray_bool_NSError_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError.fromFunction( + ObjCBlock_ffiVoid_NSArray_bool_NSError.fromFunction( SentryCocoa lib, - void Function(ffi.Pointer arg0, ffi.Pointer arg1, + void Function(ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) fn) : this._( @@ -68804,347 +76855,541 @@ class ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError extends _ObjCBlockBase { ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, + ffi.Bool arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_closureTrampoline) + _ObjCBlock_ffiVoid_NSArray_bool_NSError_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError_registerClosure( - fn)), + _ObjCBlock_ffiVoid_NSArray_bool_NSError_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0, ffi.Pointer arg1, - ffi.Pointer arg2) { + void call( + ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { return _id.ref.invoke .cast< ffi.NativeFunction< ffi.Void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, + ffi.Bool arg1, ffi.Pointer arg2)>>() .asFunction< void Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, - ffi.Pointer arg1, + bool arg1, ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); } } -class NSProtocolChecker extends NSProxy { - NSProtocolChecker._(ffi.Pointer id, SentryCocoa lib, +class SentryScope extends _ObjCWrapper { + SentryScope._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSProtocolChecker] that points to the same underlying object as [other]. - static NSProtocolChecker castFrom(T other) { - return NSProtocolChecker._(other._id, other._lib, - retain: true, release: true); + /// Returns a [SentryScope] that points to the same underlying object as [other]. + static SentryScope castFrom(T other) { + return SentryScope._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSProtocolChecker] that wraps the given raw object pointer. - static NSProtocolChecker castFromPointer( + /// Returns a [SentryScope] that wraps the given raw object pointer. + static SentryScope castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSProtocolChecker._(other, lib, retain: retain, release: release); + return SentryScope._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSProtocolChecker]. + /// Returns whether [obj] is an instance of [SentryScope]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryScope1); + } +} + +class SentryFeedback extends NSObject { + SentryFeedback._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryFeedback] that points to the same underlying object as [other]. + static SentryFeedback castFrom(T other) { + return SentryFeedback._(other._id, other._lib, retain: true, release: true); + } + + /// Returns a [SentryFeedback] that wraps the given raw object pointer. + static SentryFeedback castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryFeedback._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [SentryFeedback]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSProtocolChecker1); + obj._lib._class_SentryFeedback1); } - Protocol? get protocol { - final _ret = _lib._objc_msgSend_1011(_id, _lib._sel_protocol1); + SentryId? get eventId { + final _ret = _lib._objc_msgSend_1067(_id, _lib._sel_eventId1); return _ret.address == 0 ? null - : Protocol._(_ret, _lib, retain: true, release: true); + : SentryId._(_ret, _lib, retain: true, release: true); } - NSObject? get target { - final _ret = _lib._objc_msgSend_840(_id, _lib._sel_target1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + /// \param associatedEventId The ID for an event you’d like associated with the feedback. + /// + /// \param attachments Attachment objects for any files to include with the feedback. + SentryFeedback + initWithMessage_name_email_source_associatedEventId_attachments_( + NSString? message, + NSString? name, + NSString? email, + int source, + SentryId? associatedEventId, + NSArray? attachments) { + final _ret = _lib._objc_msgSend_1103( + _id, + _lib._sel_initWithMessage_name_email_source_associatedEventId_attachments_1, + message?._id ?? ffi.nullptr, + name?._id ?? ffi.nullptr, + email?._id ?? ffi.nullptr, + source, + associatedEventId?._id ?? ffi.nullptr, + attachments?._id ?? ffi.nullptr); + return SentryFeedback._(_ret, _lib, retain: true, release: true); } - static NSProtocolChecker protocolCheckerWithTarget_protocol_( - SentryCocoa _lib, NSObject? anObject, Protocol? aProtocol) { - final _ret = _lib._objc_msgSend_1012( - _lib._class_NSProtocolChecker1, - _lib._sel_protocolCheckerWithTarget_protocol_1, - anObject?._id ?? ffi.nullptr, - aProtocol?._id ?? ffi.nullptr); - return NSProtocolChecker._(_ret, _lib, retain: true, release: true); + @override + SentryFeedback init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryFeedback._(_ret, _lib, retain: true, release: true); } - NSProtocolChecker initWithTarget_protocol_( - NSObject? anObject, Protocol? aProtocol) { - final _ret = _lib._objc_msgSend_1012( - _id, - _lib._sel_initWithTarget_protocol_1, - anObject?._id ?? ffi.nullptr, - aProtocol?._id ?? ffi.nullptr); - return NSProtocolChecker._(_ret, _lib, retain: true, release: true); + static SentryFeedback new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryFeedback1, _lib._sel_new1); + return SentryFeedback._(_ret, _lib, retain: false, release: true); } - static NSObject alloc(SentryCocoa _lib) { + NSDictionary serialize() { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_serialize1); + return NSDictionary._(_ret, _lib, retain: true, release: true); + } + + /// Returns all attachments for inclusion in the feedback envelope. + NSArray attachmentsForEnvelope() { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attachmentsForEnvelope1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static SentryFeedback allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryFeedback1, _lib._sel_allocWithZone_1, zone); + return SentryFeedback._(_ret, _lib, retain: false, release: true); + } + + static SentryFeedback alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSProtocolChecker1, _lib._sel_alloc1); - return NSObject._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_SentryFeedback1, _lib._sel_alloc1); + return SentryFeedback._(_ret, _lib, retain: false, release: true); } - static bool respondsToSelector_( - SentryCocoa _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_4(_lib._class_NSProtocolChecker1, - _lib._sel_respondsToSelector_1, aSelector); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_SentryFeedback1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_SentryFeedback1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryFeedback1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryFeedback1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryFeedback1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryFeedback1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_SentryFeedback1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_SentryFeedback1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryFeedback1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSTask extends NSObject { - NSTask._(ffi.Pointer id, SentryCocoa lib, +abstract class SentryFeedbackSource { + static const int SentryFeedbackSourceWidget = 0; + static const int SentryFeedbackSourceCustom = 1; +} + +class SentryFileManager extends NSObject { + SentryFileManager._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSTask] that points to the same underlying object as [other]. - static NSTask castFrom(T other) { - return NSTask._(other._id, other._lib, retain: true, release: true); + /// Returns a [SentryFileManager] that points to the same underlying object as [other]. + static SentryFileManager castFrom(T other) { + return SentryFileManager._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSTask] that wraps the given raw object pointer. - static NSTask castFromPointer(SentryCocoa lib, ffi.Pointer other, + /// Returns a [SentryFileManager] that wraps the given raw object pointer. + static SentryFileManager castFromPointer( + SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSTask._(other, lib, retain: retain, release: release); + return SentryFileManager._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSTask]. + /// Returns whether [obj] is an instance of [SentryFileManager]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSTask1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryFileManager1); } - @override - NSTask init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSTask._(_ret, _lib, retain: true, release: true); + ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong + get envelopeDeletedCallback { + final _ret = + _lib._objc_msgSend_1115(_id, _lib._sel_envelopeDeletedCallback1); + return ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong._(_ret, _lib); } - NSURL? get executableURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_executableURL1); - return _ret.address == 0 - ? null - : NSURL._(_ret, _lib, retain: true, release: true); + set envelopeDeletedCallback( + ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong value) { + return _lib._objc_msgSend_1116( + _id, _lib._sel_setEnvelopeDeletedCallback_1, value._id); } - set executableURL(NSURL? value) { - return _lib._objc_msgSend_624( - _id, _lib._sel_setExecutableURL_1, value?._id ?? ffi.nullptr); + NSString? get basePath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_basePath1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSArray? get arguments { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_arguments1); + NSString? get sentryPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sentryPath1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - set arguments(NSArray? value) { - return _lib._objc_msgSend_739( - _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); + NSString? get breadcrumbsFilePathOne { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_breadcrumbsFilePathOne1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSDictionary? get environment { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_environment1); + NSString? get breadcrumbsFilePathTwo { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_breadcrumbsFilePathTwo1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - set environment(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setEnvironment_1, value?._id ?? ffi.nullptr); + NSString? get previousBreadcrumbsFilePathOne { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_previousBreadcrumbsFilePathOne1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSURL? get currentDirectoryURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_currentDirectoryURL1); + NSString? get previousBreadcrumbsFilePathTwo { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_previousBreadcrumbsFilePathTwo1); return _ret.address == 0 ? null - : NSURL._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - set currentDirectoryURL(NSURL? value) { - return _lib._objc_msgSend_624( - _id, _lib._sel_setCurrentDirectoryURL_1, value?._id ?? ffi.nullptr); + SentryFileManager initWithOptions_dateProvider_dispatchQueueWrapper_error_( + SentryOptions1? options, + NSObject? dateProvider, + SentryDispatchQueueWrapper? dispatchQueueWrapper, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1149( + _id, + _lib._sel_initWithOptions_dateProvider_dispatchQueueWrapper_error_1, + options?._id ?? ffi.nullptr, + dateProvider?._id ?? ffi.nullptr, + dispatchQueueWrapper?._id ?? ffi.nullptr, + error); + return SentryFileManager._(_ret, _lib, retain: true, release: true); } - 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); + NSString storeEnvelope_(SentryEnvelope1? envelope) { + final _ret = _lib._objc_msgSend_1158( + _id, _lib._sel_storeEnvelope_1, envelope?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - set launchRequirementData(NSData? value) { - return _lib._objc_msgSend_942( - _id, _lib._sel_setLaunchRequirementData_1, value?._id ?? ffi.nullptr); + NSString getEnvelopesPath_(NSString? filePath) { + final _ret = _lib._objc_msgSend_64( + _id, _lib._sel_getEnvelopesPath_1, filePath?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - NSObject get standardInput { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardInput1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSArray getAllEnvelopes() { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_getAllEnvelopes1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set standardInput(NSObject value) { - return _lib._objc_msgSend_389(_id, _lib._sel_setStandardInput_1, value._id); + SentryFileContents getOldestEnvelope() { + final _ret = _lib._objc_msgSend_1159(_id, _lib._sel_getOldestEnvelope1); + return SentryFileContents._(_ret, _lib, retain: true, release: true); } - NSObject get standardOutput { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardOutput1); - return NSObject._(_ret, _lib, retain: true, release: true); + void deleteOldEnvelopeItems() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteOldEnvelopeItems1); } - set standardOutput(NSObject value) { - return _lib._objc_msgSend_389( - _id, _lib._sel_setStandardOutput_1, value._id); + void deleteAllEnvelopes() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteAllEnvelopes1); } - NSObject get standardError { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardError1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSURL getSentryPathAsURL() { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_getSentryPathAsURL1); + return NSURL._(_ret, _lib, retain: true, release: true); } - set standardError(NSObject value) { - return _lib._objc_msgSend_389(_id, _lib._sel_setStandardError_1, value._id); + void moveState_toPreviousState_( + NSString? stateFilePath, NSString? previousStateFilePath) { + _lib._objc_msgSend_530( + _id, + _lib._sel_moveState_toPreviousState_1, + stateFilePath?._id ?? ffi.nullptr, + previousStateFilePath?._id ?? ffi.nullptr); } - bool launchAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_236(_id, _lib._sel_launchAndReturnError_1, error); + void storeCurrentSession_(SentrySession? session) { + _lib._objc_msgSend_1160( + _id, _lib._sel_storeCurrentSession_1, session?._id ?? ffi.nullptr); } - void interrupt() { - _lib._objc_msgSend_1(_id, _lib._sel_interrupt1); + SentrySession readCurrentSession() { + final _ret = _lib._objc_msgSend_1161(_id, _lib._sel_readCurrentSession1); + return SentrySession._(_ret, _lib, retain: true, release: true); } - void terminate() { - _lib._objc_msgSend_1(_id, _lib._sel_terminate1); + void deleteCurrentSession() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteCurrentSession1); } - bool suspend() { - return _lib._objc_msgSend_12(_id, _lib._sel_suspend1); + void storeCrashedSession_(SentrySession? session) { + _lib._objc_msgSend_1160( + _id, _lib._sel_storeCrashedSession_1, session?._id ?? ffi.nullptr); } - bool resume() { - return _lib._objc_msgSend_12(_id, _lib._sel_resume1); + SentrySession readCrashedSession() { + final _ret = _lib._objc_msgSend_1161(_id, _lib._sel_readCrashedSession1); + return SentrySession._(_ret, _lib, retain: true, release: true); } - int get processIdentifier { - return _lib._objc_msgSend_219(_id, _lib._sel_processIdentifier1); + void deleteCrashedSession() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteCrashedSession1); } - bool get running { - return _lib._objc_msgSend_12(_id, _lib._sel_isRunning1); + void storeAbnormalSession_(SentrySession? session) { + _lib._objc_msgSend_1160( + _id, _lib._sel_storeAbnormalSession_1, session?._id ?? ffi.nullptr); } - int get terminationStatus { - return _lib._objc_msgSend_219(_id, _lib._sel_terminationStatus1); + SentrySession readAbnormalSession() { + final _ret = _lib._objc_msgSend_1161(_id, _lib._sel_readAbnormalSession1); + return SentrySession._(_ret, _lib, retain: true, release: true); } - int get terminationReason { - return _lib._objc_msgSend_1013(_id, _lib._sel_terminationReason1); + void deleteAbnormalSession() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteAbnormalSession1); } - ObjCBlock_ffiVoid_NSTask get terminationHandler { - final _ret = _lib._objc_msgSend_1014(_id, _lib._sel_terminationHandler1); - return ObjCBlock_ffiVoid_NSTask._(_ret, _lib); + void storeTimestampLastInForeground_(NSDate? timestamp) { + _lib._objc_msgSend_520(_id, _lib._sel_storeTimestampLastInForeground_1, + timestamp?._id ?? ffi.nullptr); } - set terminationHandler(ObjCBlock_ffiVoid_NSTask value) { - return _lib._objc_msgSend_1015( - _id, _lib._sel_setTerminationHandler_1, value._id); + NSDate readTimestampLastInForeground() { + final _ret = + _lib._objc_msgSend_162(_id, _lib._sel_readTimestampLastInForeground1); + return NSDate._(_ret, _lib, retain: true, release: true); } - int get qualityOfService { - return _lib._objc_msgSend_510(_id, _lib._sel_qualityOfService1); + void deleteTimestampLastInForeground() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteTimestampLastInForeground1); } - set qualityOfService(int value) { - return _lib._objc_msgSend_511(_id, _lib._sel_setQualityOfService_1, value); + void storeAppState_(SentryAppState? appState) { + _lib._objc_msgSend_1163( + _id, _lib._sel_storeAppState_1, appState?._id ?? ffi.nullptr); } - static NSTask - launchedTaskWithExecutableURL_arguments_error_terminationHandler_( - SentryCocoa _lib, - NSURL? url, - NSArray? arguments, - ffi.Pointer> error, - ObjCBlock_ffiVoid_NSTask terminationHandler) { - final _ret = _lib._objc_msgSend_1016( - _lib._class_NSTask1, - _lib._sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_1, - url?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr, - error, - terminationHandler._id); - return NSTask._(_ret, _lib, retain: true, release: true); + void moveAppStateToPreviousAppState() { + _lib._objc_msgSend_1(_id, _lib._sel_moveAppStateToPreviousAppState1); } - void waitUntilExit() { - _lib._objc_msgSend_1(_id, _lib._sel_waitUntilExit1); + SentryAppState readAppState() { + final _ret = _lib._objc_msgSend_1164(_id, _lib._sel_readAppState1); + return SentryAppState._(_ret, _lib, retain: true, release: true); } - NSString? get launchPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_launchPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + SentryAppState readPreviousAppState() { + final _ret = _lib._objc_msgSend_1164(_id, _lib._sel_readPreviousAppState1); + return SentryAppState._(_ret, _lib, retain: true, release: true); } - set launchPath(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setLaunchPath_1, value?._id ?? ffi.nullptr); + void deleteAppState() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteAppState1); + } + + void moveBreadcrumbsToPreviousBreadcrumbs() { + _lib._objc_msgSend_1(_id, _lib._sel_moveBreadcrumbsToPreviousBreadcrumbs1); + } + + NSArray readPreviousBreadcrumbs() { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_readPreviousBreadcrumbs1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + NSNumber readTimezoneOffset() { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_readTimezoneOffset1); + return NSNumber._(_ret, _lib, retain: true, release: true); + } + + void storeTimezoneOffset_(int offset) { + _lib._objc_msgSend_396(_id, _lib._sel_storeTimezoneOffset_1, offset); + } + + void deleteTimezoneOffset() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteTimezoneOffset1); + } + + void storeAppHangEvent_(NSObject event) { + _lib._objc_msgSend_15(_id, _lib._sel_storeAppHangEvent_1, event._id); + } + + NSObject readAppHangEvent() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_readAppHangEvent1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + bool appHangEventExists() { + return _lib._objc_msgSend_12(_id, _lib._sel_appHangEventExists1); + } + + void deleteAppHangEvent() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteAppHangEvent1); + } + + static bool createDirectoryAtPath_error_(SentryCocoa _lib, NSString? path, + ffi.Pointer> error) { + return _lib._objc_msgSend_420( + _lib._class_SentryFileManager1, + _lib._sel_createDirectoryAtPath_error_1, + path?._id ?? ffi.nullptr, + error); + } + + void deleteAllFolders() { + _lib._objc_msgSend_1(_id, _lib._sel_deleteAllFolders1); + } + + void removeFileAtPath_(NSString? path) { + _lib._objc_msgSend_192( + _id, _lib._sel_removeFileAtPath_1, path?._id ?? ffi.nullptr); + } + + NSArray allFilesInFolder_(NSString? path) { + final _ret = _lib._objc_msgSend_123( + _id, _lib._sel_allFilesInFolder_1, path?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get currentDirectoryPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentDirectoryPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + bool isDirectory_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_isDirectory_1, path?._id ?? ffi.nullptr); } - set currentDirectoryPath(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setCurrentDirectoryPath_1, value?._id ?? ffi.nullptr); + NSData readDataFromPath_error_( + NSString? path, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1165(_id, + _lib._sel_readDataFromPath_error_1, path?._id ?? ffi.nullptr, error); + return NSData._(_ret, _lib, retain: true, release: true); } - void launch() { - _lib._objc_msgSend_1(_id, _lib._sel_launch1); + bool writeData_toPath_(NSData? data, NSString? toPath) { + return _lib._objc_msgSend_1166(_id, _lib._sel_writeData_toPath_1, + data?._id ?? ffi.nullptr, toPath?._id ?? ffi.nullptr); } - static NSTask launchedTaskWithLaunchPath_arguments_( - SentryCocoa _lib, NSString? path, NSArray? arguments) { - final _ret = _lib._objc_msgSend_1017( - _lib._class_NSTask1, - _lib._sel_launchedTaskWithLaunchPath_arguments_1, - path?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr); - return NSTask._(_ret, _lib, retain: true, release: true); + @override + SentryFileManager init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryFileManager._(_ret, _lib, retain: true, release: true); } - static NSTask new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSTask1, _lib._sel_new1); - return NSTask._(_ret, _lib, retain: false, release: true); + static SentryFileManager new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryFileManager1, _lib._sel_new1); + return SentryFileManager._(_ret, _lib, retain: false, release: true); } - static NSTask allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static SentryFileManager allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSTask1, _lib._sel_allocWithZone_1, zone); - return NSTask._(_ret, _lib, retain: false, release: true); + _lib._class_SentryFileManager1, _lib._sel_allocWithZone_1, zone); + return SentryFileManager._(_ret, _lib, retain: false, release: true); } - static NSTask alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSTask1, _lib._sel_alloc1); - return NSTask._(_ret, _lib, retain: false, release: true); + static SentryFileManager alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryFileManager1, _lib._sel_alloc1); + return SentryFileManager._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -69153,7 +77398,7 @@ class NSTask extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSTask1, + _lib._class_SentryFileManager1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -69162,24 +77407,24 @@ class NSTask extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSTask1, + _lib._objc_msgSend_15(_lib._class_SentryFileManager1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSTask1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_SentryFileManager1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSTask1, _lib._sel_useStoredAccessor1); + _lib._class_SentryFileManager1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSTask1, + _lib._class_SentryFileManager1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -69188,7 +77433,7 @@ class NSTask extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSTask1, + _lib._class_SentryFileManager1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -69196,454 +77441,499 @@ class NSTask extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSTask1, + _lib._class_SentryFileManager1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSTask1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_SentryFileManager1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSTask1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_SentryFileManager1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSTaskTerminationReason { - static const int NSTaskTerminationReasonExit = 1; - static const int NSTaskTerminationReasonUncaughtSignal = 2; -} - -void _ObjCBlock_ffiVoid_NSTask_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { +void _ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() + .asFunction arg0, int arg1)>()( + arg0, arg1); } -final _ObjCBlock_ffiVoid_NSTask_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSTask_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSTask_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSTask_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSTask_closureRegistry[id] = fn; +final _ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_closureRegistryIndex = + 0; +ffi.Pointer + _ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_registerClosure( + Function fn) { + final id = + ++_ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_closureRegistryIndex; + _ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_closureRegistry[id] = + fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSTask_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSTask_closureRegistry[block.ref.target.address] - as void Function(ffi.Pointer))(arg0); +void _ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { + return (_ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_closureRegistry[ + block.ref.target.address] + as void Function(ffi.Pointer, int))(arg0, arg1); } -class ObjCBlock_ffiVoid_NSTask extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSTask._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong + extends _ObjCBlockBase { + ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSTask.fromFunctionPointer( + ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< - ffi - .NativeFunction arg0)>> + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer arg0, ffi.UnsignedLong arg1)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSTask_fnPtrTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1)>( + _ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSTask.fromFunction( - SentryCocoa lib, void Function(ffi.Pointer arg0) fn) + ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong.fromFunction( + SentryCocoa lib, void Function(ffi.Pointer arg0, int arg1) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSTask_closureTrampoline) + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1)>( + _ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSTask_registerClosure(fn)), + _ObjCBlock_ffiVoid_SentryEnvelopeItem_ffiUnsignedLong_registerClosure( + fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { + void call(ffi.Pointer arg0, int arg1) { return _id.ref.invoke .cast< ffi.NativeFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() + ffi.Pointer arg0, ffi.UnsignedLong arg1)>>() .asFunction< void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); + ffi.Pointer arg0, int arg1)>()(_id, arg0, arg1); } } -class NSXMLElement extends NSXMLNode { - NSXMLElement._(ffi.Pointer id, SentryCocoa lib, +class SentryEnvelopeItem extends NSObject { + SentryEnvelopeItem._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSXMLElement] that points to the same underlying object as [other]. - static NSXMLElement castFrom(T other) { - return NSXMLElement._(other._id, other._lib, retain: true, release: true); + /// Returns a [SentryEnvelopeItem] that points to the same underlying object as [other]. + static SentryEnvelopeItem castFrom(T other) { + return SentryEnvelopeItem._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSXMLElement] that wraps the given raw object pointer. - static NSXMLElement castFromPointer( + /// Returns a [SentryEnvelopeItem] that wraps the given raw object pointer. + static SentryEnvelopeItem castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSXMLElement._(other, lib, retain: retain, release: release); + return SentryEnvelopeItem._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSXMLElement]. + /// Returns whether [obj] is an instance of [SentryEnvelopeItem]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLElement1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryEnvelopeItem1); } - NSXMLElement initWithName_(NSString? name) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithName_1, name?._id ?? ffi.nullptr); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + /// The envelope payload. + NSData? get data { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - NSXMLElement initWithName_URI_(NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_165(_id, _lib._sel_initWithName_URI_1, - name?._id ?? ffi.nullptr, URI?._id ?? ffi.nullptr); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + SentryEnvelopeItem initWithType_data_contentType_itemCount_(NSString? type, + NSData? data, NSString? contentType, NSNumber? itemCount) { + final _ret = _lib._objc_msgSend_1104( + _id, + _lib._sel_initWithType_data_contentType_itemCount_1, + type?._id ?? ffi.nullptr, + data?._id ?? ffi.nullptr, + contentType?._id ?? ffi.nullptr, + itemCount?._id ?? ffi.nullptr); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); } - NSXMLElement initWithName_stringValue_(NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_165( + SentryEnvelopeItem initWithType_data_addPlatform_( + NSString? type, NSData? data, bool addPlatform) { + final _ret = _lib._objc_msgSend_1105( _id, - _lib._sel_initWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithType_data_addPlatform_1, + type?._id ?? ffi.nullptr, + data?._id ?? ffi.nullptr, + addPlatform); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); } - NSXMLElement initWithXMLString_error_( - NSString? string, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_279(_id, - _lib._sel_initWithXMLString_error_1, string?._id ?? ffi.nullptr, error); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + /// Initializes an envelope item with an event. + SentryEnvelopeItem initWithEvent_(NSObject event) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithEvent_1, event._id); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); } - @override - NSXMLElement initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1019( - _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + /// Initializes an envelope item with a session. + SentryEnvelopeItem initWithSession_(SentrySession? session) { + final _ret = _lib._objc_msgSend_1107( + _id, _lib._sel_initWithSession_1, session?._id ?? ffi.nullptr); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); } - NSArray elementsForName_(NSString? name) { - final _ret = _lib._objc_msgSend_123( - _id, _lib._sel_elementsForName_1, name?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + /// Initializes an envelope item with an attachment. + /// @param attachment The attachment to create the envelope item from. + /// @param maxAttachmentSize The maximum allowed size for the attachment. + /// @return The envelope item or nil if the attachment is too large or cannot be processed. + SentryEnvelopeItem initWithAttachment_maxAttachmentSize_( + SentryAttachment? attachment, int maxAttachmentSize) { + final _ret = _lib._objc_msgSend_1108( + _id, + _lib._sel_initWithAttachment_maxAttachmentSize_1, + attachment?._id ?? ffi.nullptr, + maxAttachmentSize); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); } - NSArray elementsForLocalName_URI_(NSString? localName, NSString? URI) { - final _ret = _lib._objc_msgSend_655( + /// Initializes an envelope item with a client report. + SentryEnvelopeItem initWithClientReport_(SentryClientReport? clientReport) { + final _ret = _lib._objc_msgSend_1110(_id, _lib._sel_initWithClientReport_1, + clientReport?._id ?? ffi.nullptr); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); + } + + /// Initializes an envelope item with replay event and recording data. + SentryEnvelopeItem initWithReplayEvent_replayRecording_video_( + SentryReplayEvent? replayEvent, + SentryReplayRecording? replayRecording, + NSURL? video) { + final _ret = _lib._objc_msgSend_1114( _id, - _lib._sel_elementsForLocalName_URI_1, - localName?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithReplayEvent_replayRecording_video_1, + replayEvent?._id ?? ffi.nullptr, + replayRecording?._id ?? ffi.nullptr, + video?._id ?? ffi.nullptr); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); } - void addAttribute_(NSXMLNode? attribute) { - _lib._objc_msgSend_1031( - _id, _lib._sel_addAttribute_1, attribute?._id ?? ffi.nullptr); + NSString type() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_type1); + return NSString._(_ret, _lib, retain: true, release: true); } - void removeAttributeForName_(NSString? name) { - _lib._objc_msgSend_192( - _id, _lib._sel_removeAttributeForName_1, name?._id ?? ffi.nullptr); + @override + SentryEnvelopeItem init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); } - NSArray? get attributes { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attributes1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static SentryEnvelopeItem new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryEnvelopeItem1, _lib._sel_new1); + return SentryEnvelopeItem._(_ret, _lib, retain: false, release: true); } - set attributes(NSArray? value) { - return _lib._objc_msgSend_739( - _id, _lib._sel_setAttributes_1, value?._id ?? ffi.nullptr); + static SentryEnvelopeItem allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryEnvelopeItem1, _lib._sel_allocWithZone_1, zone); + return SentryEnvelopeItem._(_ret, _lib, retain: false, release: true); } - void setAttributesWithDictionary_(NSDictionary? attributes) { - _lib._objc_msgSend_478(_id, _lib._sel_setAttributesWithDictionary_1, - attributes?._id ?? ffi.nullptr); + static SentryEnvelopeItem alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryEnvelopeItem1, _lib._sel_alloc1); + return SentryEnvelopeItem._(_ret, _lib, retain: false, release: true); } - NSXMLNode attributeForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1035( - _id, _lib._sel_attributeForName_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_SentryEnvelopeItem1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - NSXMLNode attributeForLocalName_URI_(NSString? localName, NSString? URI) { - final _ret = _lib._objc_msgSend_1052( - _id, - _lib._sel_attributeForLocalName_URI_1, - localName?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_SentryEnvelopeItem1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void addNamespace_(NSXMLNode? aNamespace) { - _lib._objc_msgSend_1031( - _id, _lib._sel_addNamespace_1, aNamespace?._id ?? ffi.nullptr); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryEnvelopeItem1, + _lib._sel_accessInstanceVariablesDirectly1); } - void removeNamespaceForPrefix_(NSString? name) { - _lib._objc_msgSend_192( - _id, _lib._sel_removeNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryEnvelopeItem1, _lib._sel_useStoredAccessor1); } - NSArray? get namespaces { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_namespaces1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryEnvelopeItem1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - set namespaces(NSArray? value) { - return _lib._objc_msgSend_739( - _id, _lib._sel_setNamespaces_1, value?._id ?? ffi.nullptr); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryEnvelopeItem1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - NSXMLNode namespaceForPrefix_(NSString? name) { - final _ret = _lib._objc_msgSend_1035( - _id, _lib._sel_namespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_SentryEnvelopeItem1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - NSXMLNode resolveNamespaceForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1035( - _id, _lib._sel_resolveNamespaceForName_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_SentryEnvelopeItem1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSString resolvePrefixForNamespaceURI_(NSString? namespaceURI) { - final _ret = _lib._objc_msgSend_64( - _id, - _lib._sel_resolvePrefixForNamespaceURI_1, - namespaceURI?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryEnvelopeItem1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - void insertChild_atIndex_(NSXMLNode? child, int index) { - _lib._objc_msgSend_1029( - _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); +/// The SDK uses SentrySession to inform Sentry about release and project associated project health. +class SentrySession extends NSObject { + SentrySession._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentrySession] that points to the same underlying object as [other]. + static SentrySession castFrom(T other) { + return SentrySession._(other._id, other._lib, retain: true, release: true); } - void insertChildren_atIndex_(NSArray? children, int index) { - _lib._objc_msgSend_1030(_id, _lib._sel_insertChildren_atIndex_1, - children?._id ?? ffi.nullptr, index); + /// Returns a [SentrySession] that wraps the given raw object pointer. + static SentrySession castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentrySession._(other, lib, retain: retain, release: release); } - void removeChildAtIndex_(int index) { - _lib._objc_msgSend_441(_id, _lib._sel_removeChildAtIndex_1, index); + /// Returns whether [obj] is an instance of [SentrySession]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentrySession1); } - void setChildren_(NSArray? children) { - _lib._objc_msgSend_443( - _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); + @override + SentrySession init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentrySession._(_ret, _lib, retain: true, release: true); } - void addChild_(NSXMLNode? child) { - _lib._objc_msgSend_1031( - _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + static SentrySession new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentrySession1, _lib._sel_new1); + return SentrySession._(_ret, _lib, retain: false, release: true); } - void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { - _lib._objc_msgSend_1032(_id, _lib._sel_replaceChildAtIndex_withNode_1, - index, node?._id ?? ffi.nullptr); + /// Designated initializer. + SentrySession initWithReleaseName_distinctId_( + NSString? releaseName, NSString? distinctId) { + final _ret = _lib._objc_msgSend_165( + _id, + _lib._sel_initWithReleaseName_distinctId_1, + releaseName?._id ?? ffi.nullptr, + distinctId?._id ?? ffi.nullptr); + return SentrySession._(_ret, _lib, retain: true, release: true); } - void normalizeAdjacentTextNodesPreservingCDATA_(bool preserve) { - _lib._objc_msgSend_798( - _id, _lib._sel_normalizeAdjacentTextNodesPreservingCDATA_1, preserve); + /// Initializes @c SentrySession from a JSON object. + /// @param jsonObject The @c jsonObject containing the session. + /// @return The @c SentrySession or @c nil if @c jsonObject contains an error. + SentrySession initWithJSONObject_(NSDictionary? jsonObject) { + final _ret = _lib._objc_msgSend_149( + _id, _lib._sel_initWithJSONObject_1, jsonObject?._id ?? ffi.nullptr); + return SentrySession._(_ret, _lib, retain: true, release: true); } - void setAttributesAsDictionary_(NSDictionary? attributes) { - _lib._objc_msgSend_478(_id, _lib._sel_setAttributesAsDictionary_1, - attributes?._id ?? ffi.nullptr); + void endSessionExitedWithTimestamp_(NSDate? timestamp) { + _lib._objc_msgSend_520(_id, _lib._sel_endSessionExitedWithTimestamp_1, + timestamp?._id ?? ffi.nullptr); } - @override - NSXMLElement init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + void endSessionCrashedWithTimestamp_(NSDate? timestamp) { + _lib._objc_msgSend_520(_id, _lib._sel_endSessionCrashedWithTimestamp_1, + timestamp?._id ?? ffi.nullptr); } - @override - NSXMLElement initWithKind_(int kind) { - final _ret = _lib._objc_msgSend_1018(_id, _lib._sel_initWithKind_1, kind); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + void endSessionAbnormalWithTimestamp_(NSDate? timestamp) { + _lib._objc_msgSend_520(_id, _lib._sel_endSessionAbnormalWithTimestamp_1, + timestamp?._id ?? ffi.nullptr); } - static NSObject document(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_document1); - return NSObject._(_ret, _lib, retain: true, release: true); + void incrementErrors() { + _lib._objc_msgSend_1(_id, _lib._sel_incrementErrors1); } - static NSObject documentWithRootElement_( - SentryCocoa _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1020(_lib._class_NSXMLElement1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + void setFlagInit() { + _lib._objc_msgSend_1(_id, _lib._sel_setFlagInit1); } - static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSDictionary serialize() { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_serialize1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSObject elementWithName_URI_( - SentryCocoa _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSObject copyWithZone_(ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3(_id, _lib._sel_copyWithZone_1, zone); + return NSObject._(_ret, _lib, retain: false, release: true); } - static NSObject elementWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSUUID? get sessionId { + final _ret = _lib._objc_msgSend_1106(_id, _lib._sel_sessionId1); + return _ret.address == 0 + ? null + : NSUUID._(_ret, _lib, retain: true, release: true); } - static NSObject elementWithName_children_attributes_(SentryCocoa _lib, - NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_1021( - _lib._class_NSXMLElement1, - _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, - children?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSDate? get started { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_started1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - static NSObject attributeWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + int get errors { + return _lib._objc_msgSend_10(_id, _lib._sel_errors1); } - static NSObject attributeWithName_URI_stringValue_( - SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( - _lib._class_NSXMLElement1, - _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + set errors(int value) { + return _lib._objc_msgSend_500(_id, _lib._sel_setErrors_1, value); } - static NSObject namespaceWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + int get sequence { + return _lib._objc_msgSend_10(_id, _lib._sel_sequence1); } - static NSObject processingInstructionWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, - _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSString? get distinctId { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_distinctId1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSObject commentWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSNumber? get flagInit { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_flagInit1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - static NSObject textWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSDate? get timestamp { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_timestamp1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSNumber? get duration { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_duration1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - static NSString localNameForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLElement1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? get releaseName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_releaseName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSString prefixForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLElement1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + NSString? get environment { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_environment1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSXMLNode predefinedNamespaceForPrefix_( - SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1035(_lib._class_NSXMLElement1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + set environment(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setEnvironment_1, value?._id ?? ffi.nullptr); } - static NSXMLElement new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_new1); - return NSXMLElement._(_ret, _lib, retain: false, release: true); + NSString? get abnormalMechanism { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_abnormalMechanism1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSXMLElement allocWithZone_( + set abnormalMechanism(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setAbnormalMechanism_1, value?._id ?? ffi.nullptr); + } + + static SentrySession allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSXMLElement1, _lib._sel_allocWithZone_1, zone); - return NSXMLElement._(_ret, _lib, retain: false, release: true); + _lib._class_SentrySession1, _lib._sel_allocWithZone_1, zone); + return SentrySession._(_ret, _lib, retain: false, release: true); } - static NSXMLElement alloc(SentryCocoa _lib) { + static SentrySession alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_alloc1); - return NSXMLElement._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_SentrySession1, _lib._sel_alloc1); + return SentrySession._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -69652,7 +77942,7 @@ class NSXMLElement extends NSXMLNode { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSXMLElement1, + _lib._class_SentrySession1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -69661,24 +77951,24 @@ class NSXMLElement extends NSXMLNode { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSXMLElement1, + _lib._objc_msgSend_15(_lib._class_SentrySession1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLElement1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_SentrySession1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLElement1, _lib._sel_useStoredAccessor1); + _lib._class_SentrySession1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLElement1, + _lib._class_SentrySession1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -69687,7 +77977,7 @@ class NSXMLElement extends NSXMLNode { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSXMLElement1, + _lib._class_SentrySession1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -69695,7 +77985,7 @@ class NSXMLElement extends NSXMLNode { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSXMLElement1, + _lib._class_SentrySession1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -69703,397 +77993,466 @@ class NSXMLElement extends NSXMLNode { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLElement1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_SentrySession1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLElement1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_SentrySession1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSXMLNode extends NSObject { - NSXMLNode._(ffi.Pointer id, SentryCocoa lib, +class SentryAttachment extends _ObjCWrapper { + SentryAttachment._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSXMLNode] that points to the same underlying object as [other]. - static NSXMLNode castFrom(T other) { - return NSXMLNode._(other._id, other._lib, retain: true, release: true); + /// Returns a [SentryAttachment] that points to the same underlying object as [other]. + static SentryAttachment castFrom(T other) { + return SentryAttachment._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSXMLNode] that wraps the given raw object pointer. - static NSXMLNode castFromPointer( + /// Returns a [SentryAttachment] that wraps the given raw object pointer. + static SentryAttachment castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSXMLNode._(other, lib, retain: retain, release: release); + return SentryAttachment._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSXMLNode]. + /// Returns whether [obj] is an instance of [SentryAttachment]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLNode1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryAttachment1); + } +} + +class SentryClientReport extends NSObject { + SentryClientReport._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryClientReport] that points to the same underlying object as [other]. + static SentryClientReport castFrom(T other) { + return SentryClientReport._(other._id, other._lib, + retain: true, release: true); + } + + /// Returns a [SentryClientReport] that wraps the given raw object pointer. + static SentryClientReport castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryClientReport._(other, lib, retain: retain, release: release); + } + + /// Returns whether [obj] is an instance of [SentryClientReport]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryClientReport1); + } + + SentryClientReport initWithDiscardedEvents_dateProvider_( + NSArray? discardedEvents, NSObject? dateProvider) { + final _ret = _lib._objc_msgSend_1109( + _id, + _lib._sel_initWithDiscardedEvents_dateProvider_1, + discardedEvents?._id ?? ffi.nullptr, + dateProvider?._id ?? ffi.nullptr); + return SentryClientReport._(_ret, _lib, retain: true, release: true); + } + + NSDictionary serialize() { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_serialize1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } @override - NSXMLNode init() { + SentryClientReport init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + return SentryClientReport._(_ret, _lib, retain: true, release: true); } - NSXMLNode initWithKind_(int kind) { - final _ret = _lib._objc_msgSend_1018(_id, _lib._sel_initWithKind_1, kind); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + static SentryClientReport new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryClientReport1, _lib._sel_new1); + return SentryClientReport._(_ret, _lib, retain: false, release: true); + } + + static SentryClientReport allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryClientReport1, _lib._sel_allocWithZone_1, zone); + return SentryClientReport._(_ret, _lib, retain: false, release: true); + } + + static SentryClientReport alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryClientReport1, _lib._sel_alloc1); + return SentryClientReport._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_SentryClientReport1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - NSXMLNode initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1019( - _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_SentryClientReport1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - static NSObject document(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_document1); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryClientReport1, + _lib._sel_accessInstanceVariablesDirectly1); } - static NSObject documentWithRootElement_( - SentryCocoa _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1020(_lib._class_NSXMLNode1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryClientReport1, _lib._sel_useStoredAccessor1); } - static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryClientReport1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - static NSObject elementWithName_URI_( - SentryCocoa _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryClientReport1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - static NSObject elementWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_SentryClientReport1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - static NSObject elementWithName_children_attributes_(SentryCocoa _lib, - NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_1021( - _lib._class_NSXMLNode1, - _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, - children?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_SentryClientReport1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSObject attributeWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryClientReport1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } +} - static NSObject attributeWithName_URI_stringValue_( - SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( - _lib._class_NSXMLNode1, - _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } +class SentryReplayEvent extends _ObjCWrapper { + SentryReplayEvent._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - static NSObject namespaceWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns a [SentryReplayEvent] that points to the same underlying object as [other]. + static SentryReplayEvent castFrom(T other) { + return SentryReplayEvent._(other._id, other._lib, + retain: true, release: true); } - static NSObject processingInstructionWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, - _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns a [SentryReplayEvent] that wraps the given raw object pointer. + static SentryReplayEvent castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryReplayEvent._(other, lib, retain: retain, release: release); } - static NSObject commentWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [SentryReplayEvent]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryReplayEvent1); } - static NSObject textWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + NSDate? get replayStartTimestamp { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_replayStartTimestamp1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + int get replayType { + return _lib._objc_msgSend_1111(_id, _lib._sel_replayType1); } - int get kind { - return _lib._objc_msgSend_1022(_id, _lib._sel_kind1); + /// Number of the segment in the replay. + /// This is an incremental number + int get segmentId { + return _lib._objc_msgSend_78(_id, _lib._sel_segmentId1); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + /// This will be used to store the name of the screens + /// that appear during the duration of the replay segment. + NSArray? get urls { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_urls1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - set name(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + /// This will be used to store the name of the screens + /// that appear during the duration of the replay segment. + set urls(NSArray? value) { + return _lib._objc_msgSend_751( + _id, _lib._sel_setUrls_1, value?._id ?? ffi.nullptr); } - NSObject get objectValue { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_objectValue1); - return NSObject._(_ret, _lib, retain: true, release: true); + SentryReplayEvent initWithEventId_replayStartTimestamp_replayType_segmentId_( + SentryId? eventId, + NSDate? replayStartTimestamp, + int replayType, + int segmentId) { + final _ret = _lib._objc_msgSend_1112( + _id, + _lib._sel_initWithEventId_replayStartTimestamp_replayType_segmentId_1, + eventId?._id ?? ffi.nullptr, + replayStartTimestamp?._id ?? ffi.nullptr, + replayType, + segmentId); + return SentryReplayEvent._(_ret, _lib, retain: true, release: true); } - set objectValue(NSObject value) { - return _lib._objc_msgSend_389(_id, _lib._sel_setObjectValue_1, value._id); + SentryReplayEvent init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryReplayEvent._(_ret, _lib, retain: true, release: true); } - NSString? get stringValue { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_stringValue1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static SentryReplayEvent new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryReplayEvent1, _lib._sel_new1); + return SentryReplayEvent._(_ret, _lib, retain: false, release: true); } - set stringValue(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setStringValue_1, value?._id ?? ffi.nullptr); + SentryReplayEvent initWithLevel_(NSObject level) { + final _ret = + _lib._objc_msgSend_16(_id, _lib._sel_initWithLevel_1, level._id); + return SentryReplayEvent._(_ret, _lib, retain: true, release: true); } +} - void setStringValue_resolvingEntities_(NSString? string, bool resolve) { - _lib._objc_msgSend_1023(_id, _lib._sel_setStringValue_resolvingEntities_1, - string?._id ?? ffi.nullptr, resolve); - } +abstract class SentryReplayType { + static const int SentryReplayTypeSession = 0; + static const int SentryReplayTypeBuffer = 1; +} - int get index { - return _lib._objc_msgSend_10(_id, _lib._sel_index1); +class SentryReplayRecording extends NSObject { + SentryReplayRecording._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryReplayRecording] that points to the same underlying object as [other]. + static SentryReplayRecording castFrom(T other) { + return SentryReplayRecording._(other._id, other._lib, + retain: true, release: true); } - int get level { - return _lib._objc_msgSend_10(_id, _lib._sel_level1); + /// Returns a [SentryReplayRecording] that wraps the given raw object pointer. + static SentryReplayRecording castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryReplayRecording._(other, lib, + retain: retain, release: release); } - NSXMLDocument? get rootDocument { - final _ret = _lib._objc_msgSend_1046(_id, _lib._sel_rootDocument1); - return _ret.address == 0 - ? null - : NSXMLDocument._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [SentryReplayRecording]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryReplayRecording1); } - NSXMLNode? get parent { - final _ret = _lib._objc_msgSend_1047(_id, _lib._sel_parent1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); + SentryReplayRecording initWithSegmentId_video_extraEvents_( + int segmentId, SentryVideoInfo? video, NSArray? extraEvents) { + final _ret = _lib._objc_msgSend_1113( + _id, + _lib._sel_initWithSegmentId_video_extraEvents_1, + segmentId, + video?._id ?? ffi.nullptr, + extraEvents?._id ?? ffi.nullptr); + return SentryReplayRecording._(_ret, _lib, retain: true, release: true); } - int get childCount { - return _lib._objc_msgSend_10(_id, _lib._sel_childCount1); + @override + SentryReplayRecording init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryReplayRecording._(_ret, _lib, retain: true, release: true); } - NSArray? get children { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_children1); - return _ret.address == 0 - ? null - : NSArray._(_ret, _lib, retain: true, release: true); + static SentryReplayRecording new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryReplayRecording1, _lib._sel_new1); + return SentryReplayRecording._(_ret, _lib, retain: false, release: true); } - NSXMLNode childAtIndex_(int index) { - final _ret = _lib._objc_msgSend_1048(_id, _lib._sel_childAtIndex_1, index); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + static SentryReplayRecording allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryReplayRecording1, _lib._sel_allocWithZone_1, zone); + return SentryReplayRecording._(_ret, _lib, retain: false, release: true); } - NSXMLNode? get previousSibling { - final _ret = _lib._objc_msgSend_1047(_id, _lib._sel_previousSibling1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); + static SentryReplayRecording alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryReplayRecording1, _lib._sel_alloc1); + return SentryReplayRecording._(_ret, _lib, retain: false, release: true); } - NSXMLNode? get nextSibling { - final _ret = _lib._objc_msgSend_1047(_id, _lib._sel_nextSibling1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_SentryReplayRecording1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - NSXMLNode? get previousNode { - final _ret = _lib._objc_msgSend_1047(_id, _lib._sel_previousNode1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_SentryReplayRecording1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - NSXMLNode? get nextNode { - final _ret = _lib._objc_msgSend_1047(_id, _lib._sel_nextNode1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryReplayRecording1, + _lib._sel_accessInstanceVariablesDirectly1); } - void detach() { - _lib._objc_msgSend_1(_id, _lib._sel_detach1); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryReplayRecording1, _lib._sel_useStoredAccessor1); } - NSString? get XPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_XPath1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryReplayRecording1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - NSString? get localName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_localName1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryReplayRecording1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - NSString? get prefix { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_prefix1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_SentryReplayRecording1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - NSString? get URI { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_URI1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_SentryReplayRecording1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - set URI(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setURI_1, value?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryReplayRecording1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - static NSString localNameForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLNode1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); +class SentryVideoInfo extends NSObject { + SentryVideoInfo._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryVideoInfo] that points to the same underlying object as [other]. + static SentryVideoInfo castFrom(T other) { + return SentryVideoInfo._(other._id, other._lib, + retain: true, release: true); } - static NSString prefixForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLNode1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// Returns a [SentryVideoInfo] that wraps the given raw object pointer. + static SentryVideoInfo castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryVideoInfo._(other, lib, retain: retain, release: release); } - static NSXMLNode predefinedNamespaceForPrefix_( - SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1035(_lib._class_NSXMLNode1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [SentryVideoInfo]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryVideoInfo1); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + NSURL? get path { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_path1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSURL._(_ret, _lib, retain: true, release: true); } - NSString? get XMLString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_XMLString1); + NSDate? get start { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_start1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - NSString XMLStringWithOptions_(int options) { - final _ret = - _lib._objc_msgSend_1049(_id, _lib._sel_XMLStringWithOptions_1, options); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString canonicalXMLStringPreservingComments_(bool comments) { - final _ret = _lib._objc_msgSend_1050( - _id, _lib._sel_canonicalXMLStringPreservingComments_1, comments); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSArray nodesForXPath_error_( - NSString? xpath, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_416( - _id, _lib._sel_nodesForXPath_error_1, xpath?._id ?? ffi.nullptr, error); - return NSArray._(_ret, _lib, retain: true, release: true); + : NSDate._(_ret, _lib, retain: true, release: true); } - NSArray objectsForXQuery_constants_error_(NSString? xquery, - NSDictionary? constants, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1051( - _id, - _lib._sel_objectsForXQuery_constants_error_1, - xquery?._id ?? ffi.nullptr, - constants?._id ?? ffi.nullptr, - error); - return NSArray._(_ret, _lib, retain: true, release: true); + NSDate? get end { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_end1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - NSArray objectsForXQuery_error_( - NSString? xquery, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_416(_id, _lib._sel_objectsForXQuery_error_1, - xquery?._id ?? ffi.nullptr, error); - return NSArray._(_ret, _lib, retain: true, release: true); + @override + SentryVideoInfo init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryVideoInfo._(_ret, _lib, retain: true, release: true); } - static NSXMLNode new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_new1); - return NSXMLNode._(_ret, _lib, retain: false, release: true); + static SentryVideoInfo new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryVideoInfo1, _lib._sel_new1); + return SentryVideoInfo._(_ret, _lib, retain: false, release: true); } - static NSXMLNode allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static SentryVideoInfo allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSXMLNode1, _lib._sel_allocWithZone_1, zone); - return NSXMLNode._(_ret, _lib, retain: false, release: true); + _lib._class_SentryVideoInfo1, _lib._sel_allocWithZone_1, zone); + return SentryVideoInfo._(_ret, _lib, retain: false, release: true); } - static NSXMLNode alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_alloc1); - return NSXMLNode._(_ret, _lib, retain: false, release: true); + static SentryVideoInfo alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryVideoInfo1, _lib._sel_alloc1); + return SentryVideoInfo._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -70102,7 +78461,7 @@ class NSXMLNode extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSXMLNode1, + _lib._class_SentryVideoInfo1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -70111,24 +78470,24 @@ class NSXMLNode extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSXMLNode1, + _lib._objc_msgSend_15(_lib._class_SentryVideoInfo1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLNode1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_SentryVideoInfo1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLNode1, _lib._sel_useStoredAccessor1); + _lib._class_SentryVideoInfo1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLNode1, + _lib._class_SentryVideoInfo1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -70137,7 +78496,7 @@ class NSXMLNode extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSXMLNode1, + _lib._class_SentryVideoInfo1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -70145,836 +78504,1534 @@ class NSXMLNode extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSXMLNode1, + _lib._class_SentryVideoInfo1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLNode1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_SentryVideoInfo1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLNode1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_SentryVideoInfo1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSXMLNodeKind { - static const int NSXMLInvalidKind = 0; - static const int NSXMLDocumentKind = 1; - static const int NSXMLElementKind = 2; - static const int NSXMLAttributeKind = 3; - static const int NSXMLNamespaceKind = 4; - static const int NSXMLProcessingInstructionKind = 5; - static const int NSXMLCommentKind = 6; - static const int NSXMLTextKind = 7; - static const int NSXMLDTDKind = 8; - static const int NSXMLEntityDeclarationKind = 9; - static const int NSXMLAttributeDeclarationKind = 10; - static const int NSXMLElementDeclarationKind = 11; - static const int NSXMLNotationDeclarationKind = 12; -} - -abstract class NSXMLNodeOptions { - static const int NSXMLNodeOptionsNone = 0; - static const int NSXMLNodeIsCDATA = 1; - static const int NSXMLNodeExpandEmptyElement = 2; - static const int NSXMLNodeCompactEmptyElement = 4; - static const int NSXMLNodeUseSingleQuotes = 8; - static const int NSXMLNodeUseDoubleQuotes = 16; - static const int NSXMLNodeNeverEscapeContents = 32; - static const int NSXMLDocumentTidyHTML = 512; - static const int NSXMLDocumentTidyXML = 1024; - static const int NSXMLDocumentValidate = 8192; - static const int NSXMLNodeLoadExternalEntitiesAlways = 16384; - static const int NSXMLNodeLoadExternalEntitiesSameOriginOnly = 32768; - static const int NSXMLNodeLoadExternalEntitiesNever = 524288; - static const int NSXMLDocumentXInclude = 65536; - static const int NSXMLNodePrettyPrint = 131072; - static const int NSXMLDocumentIncludeContentTypeDeclaration = 262144; - static const int NSXMLNodePreserveNamespaceOrder = 1048576; - static const int NSXMLNodePreserveAttributeOrder = 2097152; - static const int NSXMLNodePreserveEntities = 4194304; - static const int NSXMLNodePreservePrefixes = 8388608; - static const int NSXMLNodePreserveCDATA = 16777216; - static const int NSXMLNodePreserveWhitespace = 33554432; - static const int NSXMLNodePreserveDTD = 67108864; - static const int NSXMLNodePreserveCharacterReferences = 134217728; - static const int NSXMLNodePromoteSignificantWhitespace = 268435456; - static const int NSXMLNodePreserveEmptyElements = 6; - static const int NSXMLNodePreserveQuotes = 24; - static const int NSXMLNodePreserveAll = 4293918750; -} - -class NSXMLDocument extends NSXMLNode { - NSXMLDocument._(ffi.Pointer id, SentryCocoa lib, +/// Configuration options for the Sentry SDK. +class SentryOptions1 extends NSObject { + SentryOptions1._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSXMLDocument] that points to the same underlying object as [other]. - static NSXMLDocument castFrom(T other) { - return NSXMLDocument._(other._id, other._lib, retain: true, release: true); + /// Returns a [SentryOptions1] that points to the same underlying object as [other]. + static SentryOptions1 castFrom(T other) { + return SentryOptions1._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSXMLDocument] that wraps the given raw object pointer. - static NSXMLDocument castFromPointer( + /// Returns a [SentryOptions1] that wraps the given raw object pointer. + static SentryOptions1 castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSXMLDocument._(other, lib, retain: retain, release: release); + return SentryOptions1._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSXMLDocument]. + /// Returns whether [obj] is an instance of [SentryOptions1]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDocument1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryOptions11); } @override - NSXMLDocument init() { + SentryOptions1 init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + return SentryOptions1._(_ret, _lib, retain: true, release: true); } - NSXMLDocument initWithXMLString_options_error_( - NSString? string, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1024( - _id, - _lib._sel_initWithXMLString_options_error_1, - string?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + /// The DSN tells the SDK where to send the events to. If this value is not provided, the SDK will + /// not send any events. + NSString? get dsn { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dsn1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSXMLDocument initWithContentsOfURL_options_error_( - NSURL? url, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1025( - _id, - _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + /// The DSN tells the SDK where to send the events to. If this value is not provided, the SDK will + /// not send any events. + set dsn(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setDsn_1, value?._id ?? ffi.nullptr); } - NSXMLDocument initWithData_options_error_( - NSData? data, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1026( - _id, - _lib._sel_initWithData_options_error_1, - data?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + /// The parsed internal DSN. + SentryDsn? get parsedDsn { + final _ret = _lib._objc_msgSend_1117(_id, _lib._sel_parsedDsn1); + return _ret.address == 0 + ? null + : SentryDsn._(_ret, _lib, retain: true, release: true); } - NSXMLDocument initWithRootElement_(NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1020( - _id, _lib._sel_initWithRootElement_1, element?._id ?? ffi.nullptr); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + /// The parsed internal DSN. + set parsedDsn(SentryDsn? value) { + return _lib._objc_msgSend_1118( + _id, _lib._sel_setParsedDsn_1, value?._id ?? ffi.nullptr); } - static NSObject replacementClassForClass_(SentryCocoa _lib, NSObject cls) { - final _ret = _lib._objc_msgSend_16(_lib._class_NSXMLDocument1, - _lib._sel_replacementClassForClass_1, cls._id); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Turns debug mode on or off. If debug is enabled SDK will attempt to print out useful debugging + /// information if something goes wrong. + /// @note Default is @c false. + bool get debug { + return _lib._objc_msgSend_12(_id, _lib._sel_debug1); + } + + /// Turns debug mode on or off. If debug is enabled SDK will attempt to print out useful debugging + /// information if something goes wrong. + /// @note Default is @c false. + set debug(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setDebug_1, value); + } + + /// Minimum LogLevel to be used if debug is enabled. + /// @note Default is kSentryLevelDebug. + int get diagnosticLevel { + return _lib._objc_msgSend_219(_id, _lib._sel_diagnosticLevel1); + } + + /// Minimum LogLevel to be used if debug is enabled. + /// @note Default is kSentryLevelDebug. + set diagnosticLevel(int value) { + return _lib._objc_msgSend_1119(_id, _lib._sel_setDiagnosticLevel_1, value); + } + + /// This property will be filled before the event is sent. + NSString? get releaseName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_releaseName1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + /// This property will be filled before the event is sent. + set releaseName(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setReleaseName_1, value?._id ?? ffi.nullptr); + } + + /// The distribution of the application. + /// @discussion Distributions are used to disambiguate build or deployment variants of the same + /// release of an application. For example, the dist can be the build number of an Xcode build. + NSString? get dist { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_dist1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + /// The distribution of the application. + /// @discussion Distributions are used to disambiguate build or deployment variants of the same + /// release of an application. For example, the dist can be the build number of an Xcode build. + set dist(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setDist_1, value?._id ?? ffi.nullptr); + } + + /// The environment used for events if no environment is set on the current scope. + /// @note Default value is “production”. + NSString? get environment { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_environment1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + /// The environment used for events if no environment is set on the current scope. + /// @note Default value is “production”. + set environment(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setEnvironment_1, value?._id ?? ffi.nullptr); + } + + /// Specifies whether this SDK should send events to Sentry. If set to @c false events will be + /// dropped in the client and not sent to Sentry. Default is @c true. + bool get enabled { + return _lib._objc_msgSend_12(_id, _lib._sel_enabled1); + } + + /// Specifies whether this SDK should send events to Sentry. If set to @c false events will be + /// dropped in the client and not sent to Sentry. Default is @c true. + set enabled(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setEnabled_1, value); + } + + /// Controls the flush duration when calling SentrySDK/close. + double get shutdownTimeInterval { + return _lib._objc_msgSend_155(_id, _lib._sel_shutdownTimeInterval1); + } + + /// Controls the flush duration when calling SentrySDK/close. + set shutdownTimeInterval(double value) { + return _lib._objc_msgSend_522( + _id, _lib._sel_setShutdownTimeInterval_1, value); + } + + /// When enabled, the SDK sends crashes to Sentry. + /// @note Disabling this feature disables the SentryWatchdogTerminationTrackingIntegration, + /// because SentryWatchdogTerminationTrackingIntegration would falsely report every crash as watchdog + /// termination. + /// @note Default value is @c true. + /// @note Crash reporting is automatically disabled if a debugger is attached. + bool get enableCrashHandler { + return _lib._objc_msgSend_12(_id, _lib._sel_enableCrashHandler1); + } + + /// When enabled, the SDK sends crashes to Sentry. + /// @note Disabling this feature disables the SentryWatchdogTerminationTrackingIntegration, + /// because SentryWatchdogTerminationTrackingIntegration would falsely report every crash as watchdog + /// termination. + /// @note Default value is @c true. + /// @note Crash reporting is automatically disabled if a debugger is attached. + set enableCrashHandler(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableCrashHandler_1, value); + } + + /// When enabled, the SDK captures uncaught NSExceptions. As this feature uses swizzling, disabling + /// enableSwizzling also disables this feature. + /// @discussion This option registers the NSApplicationCrashOnExceptions UserDefault, + /// so your macOS application crashes when an uncaught exception occurs. As the Cocoa Frameworks are + /// generally not exception-safe on macOS, we recommend this approach because the application could + /// otherwise end up in a corrupted state. + /// @warning Don’t use this in combination with SentryCrashExceptionApplication. Either enable this + /// feature or use the SentryCrashExceptionApplication. Having both enabled can lead to duplicated + /// reports. + /// @note Default value is @c false. + bool get enableUncaughtNSExceptionReporting { + return _lib._objc_msgSend_12( + _id, _lib._sel_enableUncaughtNSExceptionReporting1); + } + + /// When enabled, the SDK captures uncaught NSExceptions. As this feature uses swizzling, disabling + /// enableSwizzling also disables this feature. + /// @discussion This option registers the NSApplicationCrashOnExceptions UserDefault, + /// so your macOS application crashes when an uncaught exception occurs. As the Cocoa Frameworks are + /// generally not exception-safe on macOS, we recommend this approach because the application could + /// otherwise end up in a corrupted state. + /// @warning Don’t use this in combination with SentryCrashExceptionApplication. Either enable this + /// feature or use the SentryCrashExceptionApplication. Having both enabled can lead to duplicated + /// reports. + /// @note Default value is @c false. + set enableUncaughtNSExceptionReporting(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableUncaughtNSExceptionReporting_1, value); + } + + /// When enabled, the SDK reports SIGTERM signals to Sentry. + /// It’s crucial for developers to understand that the OS sends a SIGTERM to their app as a prelude + /// to a graceful shutdown, before resorting to a SIGKILL. This SIGKILL, which your app can’t catch + /// or ignore, is a direct order to terminate your app’s process immediately. Developers should be + /// aware that their app can receive a SIGTERM in various scenarios, such as CPU or disk overuse, + /// watchdog terminations, or when the OS updates your app. + /// @note The default value is @c false. + bool get enableSigtermReporting { + return _lib._objc_msgSend_12(_id, _lib._sel_enableSigtermReporting1); + } + + /// When enabled, the SDK reports SIGTERM signals to Sentry. + /// It’s crucial for developers to understand that the OS sends a SIGTERM to their app as a prelude + /// to a graceful shutdown, before resorting to a SIGKILL. This SIGKILL, which your app can’t catch + /// or ignore, is a direct order to terminate your app’s process immediately. Developers should be + /// aware that their app can receive a SIGTERM in various scenarios, such as CPU or disk overuse, + /// watchdog terminations, or when the OS updates your app. + /// @note The default value is @c false. + set enableSigtermReporting(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableSigtermReporting_1, value); + } + + /// How many breadcrumbs do you want to keep in memory? + /// @note Default is 100. + int get maxBreadcrumbs { + return _lib._objc_msgSend_10(_id, _lib._sel_maxBreadcrumbs1); } - NSString? get characterEncoding { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_characterEncoding1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// How many breadcrumbs do you want to keep in memory? + /// @note Default is 100. + set maxBreadcrumbs(int value) { + return _lib._objc_msgSend_500(_id, _lib._sel_setMaxBreadcrumbs_1, value); } - set characterEncoding(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setCharacterEncoding_1, value?._id ?? ffi.nullptr); + /// When enabled, the SDK adds breadcrumbs for each network request. As this feature uses swizzling, + /// disabling enableSwizzling also disables this feature. + /// @discussion If you want to enable or disable network tracking for performance monitoring, please + /// use enableNetworkTracking instead. + /// @note Default value is @c true. + bool get enableNetworkBreadcrumbs { + return _lib._objc_msgSend_12(_id, _lib._sel_enableNetworkBreadcrumbs1); } - NSString? get version { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_version1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK adds breadcrumbs for each network request. As this feature uses swizzling, + /// disabling enableSwizzling also disables this feature. + /// @discussion If you want to enable or disable network tracking for performance monitoring, please + /// use enableNetworkTracking instead. + /// @note Default value is @c true. + set enableNetworkBreadcrumbs(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableNetworkBreadcrumbs_1, value); } - set version(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setVersion_1, value?._id ?? ffi.nullptr); + /// The maximum number of envelopes to keep in cache. + /// @note Default is 30. + int get maxCacheItems { + return _lib._objc_msgSend_10(_id, _lib._sel_maxCacheItems1); } - bool get standalone { - return _lib._objc_msgSend_12(_id, _lib._sel_isStandalone1); + /// The maximum number of envelopes to keep in cache. + /// @note Default is 30. + set maxCacheItems(int value) { + return _lib._objc_msgSend_500(_id, _lib._sel_setMaxCacheItems_1, value); } - set standalone(bool value) { - return _lib._objc_msgSend_495(_id, _lib._sel_setStandalone_1, value); + /// This block can be used to modify the event before it will be serialized and sent. + int get beforeSend { + return _lib._objc_msgSend_219(_id, _lib._sel_beforeSend1); } - int get documentContentKind { - return _lib._objc_msgSend_1027(_id, _lib._sel_documentContentKind1); + /// This block can be used to modify the event before it will be serialized and sent. + set beforeSend(int value) { + return _lib._objc_msgSend_1119(_id, _lib._sel_setBeforeSend_1, value); } - set documentContentKind(int value) { - return _lib._objc_msgSend_1028( - _id, _lib._sel_setDocumentContentKind_1, value); + /// Use this callback to drop or modify a span before the SDK sends it to Sentry. Return nil to + /// drop the span. + int get beforeSendSpan { + return _lib._objc_msgSend_219(_id, _lib._sel_beforeSendSpan1); } - NSString? get MIMEType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_MIMEType1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// Use this callback to drop or modify a span before the SDK sends it to Sentry. Return nil to + /// drop the span. + set beforeSendSpan(int value) { + return _lib._objc_msgSend_1119(_id, _lib._sel_setBeforeSendSpan_1, value); } - set MIMEType(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setMIMEType_1, value?._id ?? ffi.nullptr); + /// When enabled, the SDK sends logs to Sentry. Logs can be captured using the SentrySDK.logger + /// API, which provides structured logging with attributes. + /// @note Default value is @c false. + bool get enableLogs { + return _lib._objc_msgSend_12(_id, _lib._sel_enableLogs1); } - NSXMLDTD? get DTD { - final _ret = _lib._objc_msgSend_1038(_id, _lib._sel_DTD1); - return _ret.address == 0 - ? null - : NSXMLDTD._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK sends logs to Sentry. Logs can be captured using the SentrySDK.logger + /// API, which provides structured logging with attributes. + /// @note Default value is @c false. + set enableLogs(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setEnableLogs_1, value); + } + + /// Use this callback to drop or modify a log before the SDK sends it to Sentry. Return nil to + /// drop the log. + ObjCBlock_SentryLog_SentryLog get beforeSendLog { + final _ret = _lib._objc_msgSend_1129(_id, _lib._sel_beforeSendLog1); + return ObjCBlock_SentryLog_SentryLog._(_ret, _lib); } - set DTD(NSXMLDTD? value) { - return _lib._objc_msgSend_1039( - _id, _lib._sel_setDTD_1, value?._id ?? ffi.nullptr); + /// Use this callback to drop or modify a log before the SDK sends it to Sentry. Return nil to + /// drop the log. + set beforeSendLog(ObjCBlock_SentryLog_SentryLog value) { + return _lib._objc_msgSend_1130( + _id, _lib._sel_setBeforeSendLog_1, value._id); } - void setRootElement_(NSXMLElement? root) { - _lib._objc_msgSend_1040( - _id, _lib._sel_setRootElement_1, root?._id ?? ffi.nullptr); + /// This block can be used to modify the breadcrumb before it will be serialized and sent. + int get beforeBreadcrumb { + return _lib._objc_msgSend_219(_id, _lib._sel_beforeBreadcrumb1); } - NSXMLElement rootElement() { - final _ret = _lib._objc_msgSend_1041(_id, _lib._sel_rootElement1); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + /// This block can be used to modify the breadcrumb before it will be serialized and sent. + set beforeBreadcrumb(int value) { + return _lib._objc_msgSend_1119(_id, _lib._sel_setBeforeBreadcrumb_1, value); } - void insertChild_atIndex_(NSXMLNode? child, int index) { - _lib._objc_msgSend_1029( - _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); + /// You can use this callback to decide if the SDK should capture a screenshot or not. Return @c true + /// if the SDK should capture a screenshot, return @c false if not. This callback doesn’t work for + /// crashes. + int get beforeCaptureScreenshot { + return _lib._objc_msgSend_219(_id, _lib._sel_beforeCaptureScreenshot1); } - void insertChildren_atIndex_(NSArray? children, int index) { - _lib._objc_msgSend_1030(_id, _lib._sel_insertChildren_atIndex_1, - children?._id ?? ffi.nullptr, index); + /// You can use this callback to decide if the SDK should capture a screenshot or not. Return @c true + /// if the SDK should capture a screenshot, return @c false if not. This callback doesn’t work for + /// crashes. + set beforeCaptureScreenshot(int value) { + return _lib._objc_msgSend_1119( + _id, _lib._sel_setBeforeCaptureScreenshot_1, value); } - void removeChildAtIndex_(int index) { - _lib._objc_msgSend_441(_id, _lib._sel_removeChildAtIndex_1, index); + /// You can use this callback to decide if the SDK should capture a view hierarchy or not. Return + /// @c true if the SDK should capture a view hierarchy, return @c false if not. This callback doesn’t + /// work for crashes. + int get beforeCaptureViewHierarchy { + return _lib._objc_msgSend_219(_id, _lib._sel_beforeCaptureViewHierarchy1); } - void setChildren_(NSArray? children) { - _lib._objc_msgSend_443( - _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); + /// You can use this callback to decide if the SDK should capture a view hierarchy or not. Return + /// @c true if the SDK should capture a view hierarchy, return @c false if not. This callback doesn’t + /// work for crashes. + set beforeCaptureViewHierarchy(int value) { + return _lib._objc_msgSend_1119( + _id, _lib._sel_setBeforeCaptureViewHierarchy_1, value); } - void addChild_(NSXMLNode? child) { - _lib._objc_msgSend_1031( - _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + /// A block called shortly after the initialization of the SDK when the last program execution + /// terminated with a crash. + /// @discussion This callback is only executed once during the entire run of the program to avoid + /// multiple callbacks if there are multiple crash events to send. This can happen when the program + /// terminates with a crash before the SDK can send the crash event. You can look into beforeSend + /// if you prefer a callback for every event. + /// @warning It is not guaranteed that this is called on the main thread. + /// @note Crash reporting is automatically disabled if a debugger is attached. + int get onCrashedLastRun { + return _lib._objc_msgSend_219(_id, _lib._sel_onCrashedLastRun1); } - void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { - _lib._objc_msgSend_1032(_id, _lib._sel_replaceChildAtIndex_withNode_1, - index, node?._id ?? ffi.nullptr); + /// A block called shortly after the initialization of the SDK when the last program execution + /// terminated with a crash. + /// @discussion This callback is only executed once during the entire run of the program to avoid + /// multiple callbacks if there are multiple crash events to send. This can happen when the program + /// terminates with a crash before the SDK can send the crash event. You can look into beforeSend + /// if you prefer a callback for every event. + /// @warning It is not guaranteed that this is called on the main thread. + /// @note Crash reporting is automatically disabled if a debugger is attached. + set onCrashedLastRun(int value) { + return _lib._objc_msgSend_1119(_id, _lib._sel_setOnCrashedLastRun_1, value); + } + + /// A block called shortly after the initialization of the SDK when the crash status of the + /// last program execution has been determined. + /// This callback is invoked regardless of whether the app crashed or not: + ///
    + ///
  • + /// If the last run ended with a crash, status is SentryLastRunStatus/didCrash and + /// crashEvent contains the crash event. + ///
  • + ///
  • + /// If the last run did not end with a crash, status is + /// SentryLastRunStatus/didNotCrash and crashEvent is nil. + ///
  • + ///
+ /// This callback is only executed once per SentrySDK/start(configureOptions:) lifecycle. + /// warning: + /// It is not guaranteed that this is called on the main thread. + /// note: + /// Crashes that occur while a debugger is attached are not recorded. + /// In that case, the callback reports SentryLastRunStatus/didNotCrash + /// even though the app did crash. + ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt get onLastRunStatusDetermined { + final _ret = + _lib._objc_msgSend_1131(_id, _lib._sel_onLastRunStatusDetermined1); + return ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt._(_ret, _lib); + } + + /// A block called shortly after the initialization of the SDK when the crash status of the + /// last program execution has been determined. + /// This callback is invoked regardless of whether the app crashed or not: + ///
    + ///
  • + /// If the last run ended with a crash, status is SentryLastRunStatus/didCrash and + /// crashEvent contains the crash event. + ///
  • + ///
  • + /// If the last run did not end with a crash, status is + /// SentryLastRunStatus/didNotCrash and crashEvent is nil. + ///
  • + ///
+ /// This callback is only executed once per SentrySDK/start(configureOptions:) lifecycle. + /// warning: + /// It is not guaranteed that this is called on the main thread. + /// note: + /// Crashes that occur while a debugger is attached are not recorded. + /// In that case, the callback reports SentryLastRunStatus/didNotCrash + /// even though the app did crash. + set onLastRunStatusDetermined( + ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt value) { + return _lib._objc_msgSend_1132( + _id, _lib._sel_setOnLastRunStatusDetermined_1, value._id); } - NSData? get XMLData { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_XMLData1); + /// Indicates the percentage of events being sent to Sentry. + /// @discussion Specifying 0 discards all events, 1.0 or nil sends all events, 0.01 collects 1% of + /// all events. + /// @note The value needs to be >= 0.0 and <= 1.0. When setting a value out of range the SDK sets + /// it to the default of 1.0. + /// @note The default is 1. + NSNumber? get sampleRate { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_sampleRate1); return _ret.address == 0 ? null - : NSData._(_ret, _lib, retain: true, release: true); + : NSNumber._(_ret, _lib, retain: true, release: true); } - NSData XMLDataWithOptions_(int options) { - final _ret = - _lib._objc_msgSend_1042(_id, _lib._sel_XMLDataWithOptions_1, options); - return NSData._(_ret, _lib, retain: true, release: true); + /// Indicates the percentage of events being sent to Sentry. + /// @discussion Specifying 0 discards all events, 1.0 or nil sends all events, 0.01 collects 1% of + /// all events. + /// @note The value needs to be >= 0.0 and <= 1.0. When setting a value out of range the SDK sets + /// it to the default of 1.0. + /// @note The default is 1. + set sampleRate(NSNumber? value) { + return _lib._objc_msgSend_635( + _id, _lib._sel_setSampleRate_1, value?._id ?? ffi.nullptr); } - NSObject objectByApplyingXSLT_arguments_error_(NSData? xslt, - NSDictionary? arguments, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1043( - _id, - _lib._sel_objectByApplyingXSLT_arguments_error_1, - xslt?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Whether to enable automatic session tracking or not. + /// @note Default is @c true. + bool get enableAutoSessionTracking { + return _lib._objc_msgSend_12(_id, _lib._sel_enableAutoSessionTracking1); } - NSObject objectByApplyingXSLTString_arguments_error_(NSString? xslt, - NSDictionary? arguments, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1044( - _id, - _lib._sel_objectByApplyingXSLTString_arguments_error_1, - xslt?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Whether to enable automatic session tracking or not. + /// @note Default is @c true. + set enableAutoSessionTracking(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableAutoSessionTracking_1, value); } - NSObject objectByApplyingXSLTAtURL_arguments_error_(NSURL? xsltURL, - NSDictionary? argument, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1045( - _id, - _lib._sel_objectByApplyingXSLTAtURL_arguments_error_1, - xsltURL?._id ?? ffi.nullptr, - argument?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Whether to attach the top level operationName node of HTTP json requests to HTTP breadcrumbs + /// @note Default is @c false. + bool get enableGraphQLOperationTracking { + return _lib._objc_msgSend_12( + _id, _lib._sel_enableGraphQLOperationTracking1); } - bool validateAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_236( - _id, _lib._sel_validateAndReturnError_1, error); + /// Whether to attach the top level operationName node of HTTP json requests to HTTP breadcrumbs + /// @note Default is @c false. + set enableGraphQLOperationTracking(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableGraphQLOperationTracking_1, value); } - @override - NSXMLDocument initWithKind_(int kind) { - final _ret = _lib._objc_msgSend_1018(_id, _lib._sel_initWithKind_1, kind); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + /// Whether to enable Watchdog Termination tracking or not. + /// @note This feature requires the SentryCrashIntegration being enabled, otherwise it would + /// falsely report every crash as watchdog termination. + /// @note Default is @c true. + bool get enableWatchdogTerminationTracking { + return _lib._objc_msgSend_12( + _id, _lib._sel_enableWatchdogTerminationTracking1); + } + + /// Whether to enable Watchdog Termination tracking or not. + /// @note This feature requires the SentryCrashIntegration being enabled, otherwise it would + /// falsely report every crash as watchdog termination. + /// @note Default is @c true. + set enableWatchdogTerminationTracking(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableWatchdogTerminationTracking_1, value); + } + + /// The interval to end a session after the App goes to the background. + /// @note The default is 30 seconds. + int get sessionTrackingIntervalMillis { + return _lib._objc_msgSend_10(_id, _lib._sel_sessionTrackingIntervalMillis1); + } + + /// The interval to end a session after the App goes to the background. + /// @note The default is 30 seconds. + set sessionTrackingIntervalMillis(int value) { + return _lib._objc_msgSend_500( + _id, _lib._sel_setSessionTrackingIntervalMillis_1, value); + } + + /// When enabled, stack traces are automatically attached to all messages logged. Stack traces are + /// always attached to exceptions but when this is set stack traces are also sent with messages. + /// Stack traces are only attached for the current thread. + /// @note This feature is enabled by default. + bool get attachStacktrace { + return _lib._objc_msgSend_12(_id, _lib._sel_attachStacktrace1); + } + + /// When enabled, stack traces are automatically attached to all messages logged. Stack traces are + /// always attached to exceptions but when this is set stack traces are also sent with messages. + /// Stack traces are only attached for the current thread. + /// @note This feature is enabled by default. + set attachStacktrace(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setAttachStacktrace_1, value); + } + + /// When enabled, all threads are attached with full stack traces to all captured events. + /// This requires suspending all threads briefly to collect their stack traces. + /// When disabled (the default), only the current thread gets a stack trace. + /// @note attachStacktrace must also be enabled for this to have any effect. + /// @note Default is false. + bool get attachAllThreads { + return _lib._objc_msgSend_12(_id, _lib._sel_attachAllThreads1); + } + + /// When enabled, all threads are attached with full stack traces to all captured events. + /// This requires suspending all threads briefly to collect their stack traces. + /// When disabled (the default), only the current thread gets a stack trace. + /// @note attachStacktrace must also be enabled for this to have any effect. + /// @note Default is false. + set attachAllThreads(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setAttachAllThreads_1, value); + } + + /// The maximum size for each attachment in bytes. + /// @note Default is 200 MiB (200 ✕ 1024 ✕ 1024 bytes). + /// @note Please also check the maximum attachment size of relay to make sure your attachments don’t + /// get discarded there: + /// https://docs.sentry.io/product/relay/options/ + int get maxAttachmentSize { + return _lib._objc_msgSend_10(_id, _lib._sel_maxAttachmentSize1); + } + + /// The maximum size for each attachment in bytes. + /// @note Default is 200 MiB (200 ✕ 1024 ✕ 1024 bytes). + /// @note Please also check the maximum attachment size of relay to make sure your attachments don’t + /// get discarded there: + /// https://docs.sentry.io/product/relay/options/ + set maxAttachmentSize(int value) { + return _lib._objc_msgSend_500(_id, _lib._sel_setMaxAttachmentSize_1, value); + } + + /// When enabled, the SDK sends personal identifiable along with events. + /// @note The default is @c false. + /// @discussion When the user of an event doesn’t contain an IP address, and this flag is @c true, the + /// SDK sets sdk.settings.infer_ip to auto to instruct the server to use the connection IP address as + /// the user address. Due to backward compatibility concerns, Sentry sets sdk.settings.infer_ip to + /// auto out of the box for Cocoa. If you want to stop Sentry from using the connections IP address, + /// you have to enable Prevent Storing of IP Addresses in your project settings in Sentry. + bool get sendDefaultPii { + return _lib._objc_msgSend_12(_id, _lib._sel_sendDefaultPii1); + } + + /// When enabled, the SDK sends personal identifiable along with events. + /// @note The default is @c false. + /// @discussion When the user of an event doesn’t contain an IP address, and this flag is @c true, the + /// SDK sets sdk.settings.infer_ip to auto to instruct the server to use the connection IP address as + /// the user address. Due to backward compatibility concerns, Sentry sets sdk.settings.infer_ip to + /// auto out of the box for Cocoa. If you want to stop Sentry from using the connections IP address, + /// you have to enable Prevent Storing of IP Addresses in your project settings in Sentry. + set sendDefaultPii(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setSendDefaultPii_1, value); + } + + /// When enabled, the SDK tracks performance for UIViewController subclasses and HTTP requests + /// automatically. It also measures the app start and slow and frozen frames. + /// @note The default is @c true. + /// @note Performance Monitoring must be enabled for this flag to take effect. See: + /// https://docs.sentry.io/platforms/apple/performance/ + bool get enableAutoPerformanceTracing { + return _lib._objc_msgSend_12(_id, _lib._sel_enableAutoPerformanceTracing1); + } + + /// When enabled, the SDK tracks performance for UIViewController subclasses and HTTP requests + /// automatically. It also measures the app start and slow and frozen frames. + /// @note The default is @c true. + /// @note Performance Monitoring must be enabled for this flag to take effect. See: + /// https://docs.sentry.io/platforms/apple/performance/ + set enableAutoPerformanceTracing(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableAutoPerformanceTracing_1, value); + } + + /// WARNING: This is an experimental feature and may still have bugs. + /// When enabled, the SDK finishes the ongoing transaction bound to the scope and links them to the + /// crash event when your app crashes. The SDK skips adding profiles to increase the chance of + /// keeping the transaction. + /// @note The default is @c false. + bool get enablePersistingTracesWhenCrashing { + return _lib._objc_msgSend_12( + _id, _lib._sel_enablePersistingTracesWhenCrashing1); + } + + /// WARNING: This is an experimental feature and may still have bugs. + /// When enabled, the SDK finishes the ongoing transaction bound to the scope and links them to the + /// crash event when your app crashes. The SDK skips adding profiles to increase the chance of + /// keeping the transaction. + /// @note The default is @c false. + set enablePersistingTracesWhenCrashing(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnablePersistingTracesWhenCrashing_1, value); } - @override - NSXMLDocument initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1019( - _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + /// A block that configures the initial scope when starting the SDK. + /// @discussion The block receives a suggested default scope. You can either configure and return + /// this, or create your own scope instead. + /// @note The default simply returns the passed in scope. + ObjCBlock_SentryScope_SentryScope get initialScope { + final _ret = _lib._objc_msgSend_1133(_id, _lib._sel_initialScope1); + return ObjCBlock_SentryScope_SentryScope._(_ret, _lib); } - static NSObject document(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_document1); - return NSObject._(_ret, _lib, retain: true, release: true); + /// A block that configures the initial scope when starting the SDK. + /// @discussion The block receives a suggested default scope. You can either configure and return + /// this, or create your own scope instead. + /// @note The default simply returns the passed in scope. + set initialScope(ObjCBlock_SentryScope_SentryScope value) { + return _lib._objc_msgSend_1134(_id, _lib._sel_setInitialScope_1, value._id); } - static NSObject documentWithRootElement_( - SentryCocoa _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1020(_lib._class_NSXMLDocument1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK tracks performance for HTTP requests if auto performance tracking and + /// @c enableSwizzling are enabled. + /// @note The default is @c true. + /// @discussion If you want to enable or disable network breadcrumbs, please use + /// @c enableNetworkBreadcrumbs instead. + bool get enableNetworkTracking { + return _lib._objc_msgSend_12(_id, _lib._sel_enableNetworkTracking1); } - static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK tracks performance for HTTP requests if auto performance tracking and + /// @c enableSwizzling are enabled. + /// @note The default is @c true. + /// @discussion If you want to enable or disable network breadcrumbs, please use + /// @c enableNetworkBreadcrumbs instead. + set enableNetworkTracking(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableNetworkTracking_1, value); } - static NSObject elementWithName_URI_( - SentryCocoa _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDocument1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK tracks performance for file IO reads and writes with NSData if auto + /// performance tracking and enableSwizzling are enabled. + /// @note The default is @c true. + bool get enableFileIOTracing { + return _lib._objc_msgSend_12(_id, _lib._sel_enableFileIOTracing1); } - static NSObject elementWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDocument1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK tracks performance for file IO reads and writes with NSData if auto + /// performance tracking and enableSwizzling are enabled. + /// @note The default is @c true. + set enableFileIOTracing(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableFileIOTracing_1, value); } - static NSObject elementWithName_children_attributes_(SentryCocoa _lib, - NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_1021( - _lib._class_NSXMLDocument1, - _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, - children?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK tracks performance for file IO reads and writes with NSData if auto + /// performance tracking and enableSwizzling are enabled. + /// @note The default is @c true. + bool get enableDataSwizzling { + return _lib._objc_msgSend_12(_id, _lib._sel_enableDataSwizzling1); } - static NSObject attributeWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDocument1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK tracks performance for file IO reads and writes with NSData if auto + /// performance tracking and enableSwizzling are enabled. + /// @note The default is @c true. + set enableDataSwizzling(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableDataSwizzling_1, value); } - static NSObject attributeWithName_URI_stringValue_( - SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( - _lib._class_NSXMLDocument1, - _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK tracks performance for file IO operations with NSFileManager if auto + /// performance tracking and enableSwizzling are enabled. + /// @note The default is @c false. + bool get enableFileManagerSwizzling { + return _lib._objc_msgSend_12(_id, _lib._sel_enableFileManagerSwizzling1); } - static NSObject namespaceWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDocument1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK tracks performance for file IO operations with NSFileManager if auto + /// performance tracking and enableSwizzling are enabled. + /// @note The default is @c false. + set enableFileManagerSwizzling(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableFileManagerSwizzling_1, value); } - static NSObject processingInstructionWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDocument1, - _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Indicates the percentage of the tracing data that is collected. + /// @discussion Specifying @c 0 or @c nil discards all trace data, @c 1.0 collects all trace data, + /// @c 0.01 collects 1% of all trace data. + /// @note The value needs to be >= 0.0 and <= 1.0. When setting a value out of range the SDK sets it + /// to the default. + /// @note The default is @c 0 . + NSNumber? get tracesSampleRate { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_tracesSampleRate1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - static NSObject commentWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Indicates the percentage of the tracing data that is collected. + /// @discussion Specifying @c 0 or @c nil discards all trace data, @c 1.0 collects all trace data, + /// @c 0.01 collects 1% of all trace data. + /// @note The value needs to be >= 0.0 and <= 1.0. When setting a value out of range the SDK sets it + /// to the default. + /// @note The default is @c 0 . + set tracesSampleRate(NSNumber? value) { + return _lib._objc_msgSend_635( + _id, _lib._sel_setTracesSampleRate_1, value?._id ?? ffi.nullptr); } - static NSObject textWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// A callback to a user defined traces sampler function. + /// @discussion Specifying @c 0 or @c nil discards all trace data, @c 1.0 collects all trace data, + /// @c 0.01 collects 1% of all trace data. + /// @note The value needs to be >= 0.0 and <= 1.0. When setting a value out of range the SDK sets it + /// to the default of @c 0 . + int get tracesSampler { + return _lib._objc_msgSend_219(_id, _lib._sel_tracesSampler1); } - static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDocument1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// A callback to a user defined traces sampler function. + /// @discussion Specifying @c 0 or @c nil discards all trace data, @c 1.0 collects all trace data, + /// @c 0.01 collects 1% of all trace data. + /// @note The value needs to be >= 0.0 and <= 1.0. When setting a value out of range the SDK sets it + /// to the default of @c 0 . + set tracesSampler(int value) { + return _lib._objc_msgSend_1119(_id, _lib._sel_setTracesSampler_1, value); } - static NSString localNameForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDocument1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// If tracing is enabled or not. + /// @discussion @c true if @c tracesSampleRate is > @c 0 and <= @c 1 + /// or a @c tracesSampler is set, otherwise @c false. + bool get isTracingEnabled { + return _lib._objc_msgSend_12(_id, _lib._sel_isTracingEnabled1); } - static NSString prefixForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDocument1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// A list of string prefixes of framework names that belong to the app. + /// @note By default, this contains @c CFBundleExecutable to mark it as “in-app”. + NSArray? get inAppIncludes { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_inAppIncludes1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - static NSXMLNode predefinedNamespaceForPrefix_( - SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1035(_lib._class_NSXMLDocument1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + /// Adds an item to the list of inAppIncludes. + /// \param inAppInclude The prefix of the framework name. + void addInAppInclude_(NSString? inAppInclude) { + _lib._objc_msgSend_192( + _id, _lib._sel_addInAppInclude_1, inAppInclude?._id ?? ffi.nullptr); } - static NSXMLDocument new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_new1); - return NSXMLDocument._(_ret, _lib, retain: false, release: true); + /// Set as delegate on the URLSession used for all network data-transfer tasks performed by Sentry. + /// The SDK ignores this option when using urlSession. + NSObject? get urlSessionDelegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_urlSessionDelegate1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSXMLDocument allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSXMLDocument1, _lib._sel_allocWithZone_1, zone); - return NSXMLDocument._(_ret, _lib, retain: false, release: true); + /// Set as delegate on the URLSession used for all network data-transfer tasks performed by Sentry. + /// The SDK ignores this option when using urlSession. + set urlSessionDelegate(NSObject? value) { + return _lib._objc_msgSend_389( + _id, _lib._sel_setUrlSessionDelegate_1, value?._id ?? ffi.nullptr); } - static NSXMLDocument alloc(SentryCocoa _lib) { + /// Use this property so the transport uses this URLSession with your configuration for + /// sending requests to Sentry. If not set, the SDK will create a new URLSession with + /// URLSessionConfiguration.ephemeral. + NSURLSession? get urlSession { + final _ret = _lib._objc_msgSend_972(_id, _lib._sel_urlSession1); + return _ret.address == 0 + ? null + : NSURLSession._(_ret, _lib, retain: true, release: true); + } + + /// Use this property so the transport uses this URLSession with your configuration for + /// sending requests to Sentry. If not set, the SDK will create a new URLSession with + /// URLSessionConfiguration.ephemeral. + set urlSession(NSURLSession? value) { + return _lib._objc_msgSend_1135( + _id, _lib._sel_setUrlSession_1, value?._id ?? ffi.nullptr); + } + + /// Whether the SDK should use swizzling or not. + /// When turned off the following features are disabled: breadcrumbs for touch events and + /// navigation with UIViewControllers, automatic instrumentation for UIViewControllers, + /// automatic instrumentation for HTTP requests, automatic instrumentation for file IO with + /// NSData, and automatically added sentry-trace header to HTTP requests for distributed tracing. + /// Default is @c true. + bool get enableSwizzling { + return _lib._objc_msgSend_12(_id, _lib._sel_enableSwizzling1); + } + + /// Whether the SDK should use swizzling or not. + /// When turned off the following features are disabled: breadcrumbs for touch events and + /// navigation with UIViewControllers, automatic instrumentation for UIViewControllers, + /// automatic instrumentation for HTTP requests, automatic instrumentation for file IO with + /// NSData, and automatically added sentry-trace header to HTTP requests for distributed tracing. + /// Default is @c true. + set enableSwizzling(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setEnableSwizzling_1, value); + } + + /// A set of class names to ignore for swizzling. + /// The SDK checks if a class name of a class to swizzle contains a class name of this array. + /// For example, if you add MyUIViewController to this list, the SDK excludes the following classes + /// from swizzling: YourApp.MyUIViewController, YourApp.MyUIViewControllerA, MyApp.MyUIViewController. + /// Default is an empty set. + NSSet? get swizzleClassNameExcludes { final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_alloc1); - return NSXMLDocument._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_297(_id, _lib._sel_swizzleClassNameExcludes1); + return _ret.address == 0 + ? null + : NSSet._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSXMLDocument1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + /// A set of class names to ignore for swizzling. + /// The SDK checks if a class name of a class to swizzle contains a class name of this array. + /// For example, if you add MyUIViewController to this list, the SDK excludes the following classes + /// from swizzling: YourApp.MyUIViewController, YourApp.MyUIViewControllerA, MyApp.MyUIViewController. + /// Default is an empty set. + set swizzleClassNameExcludes(NSSet? value) { + return _lib._objc_msgSend_964(_id, _lib._sel_setSwizzleClassNameExcludes_1, + value?._id ?? ffi.nullptr); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSXMLDocument1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + /// When enabled, the SDK tracks the performance of Core Data operations. It requires enabling + /// performance monitoring. The default is @c true. + /// See: https://docs.sentry.io/platforms/apple/performance/ + bool get enableCoreDataTracing { + return _lib._objc_msgSend_12(_id, _lib._sel_enableCoreDataTracing1); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLDocument1, _lib._sel_accessInstanceVariablesDirectly1); + /// When enabled, the SDK tracks the performance of Core Data operations. It requires enabling + /// performance monitoring. The default is @c true. + /// See: https://docs.sentry.io/platforms/apple/performance/ + set enableCoreDataTracing(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableCoreDataTracing_1, value); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLDocument1, _lib._sel_useStoredAccessor1); + /// Configuration for the Sentry profiler. + /// @warning: Continuous profiling is an experimental feature and may still contain bugs. + /// @warning: Profiling is automatically disabled if a thread sanitizer is attached. + ObjCBlock_ffiVoid_SentryProfileOptions get configureProfiling { + final _ret = _lib._objc_msgSend_1138(_id, _lib._sel_configureProfiling1); + return ObjCBlock_ffiVoid_SentryProfileOptions._(_ret, _lib); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLDocument1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + /// Configuration for the Sentry profiler. + /// @warning: Continuous profiling is an experimental feature and may still contain bugs. + /// @warning: Profiling is automatically disabled if a thread sanitizer is attached. + set configureProfiling(ObjCBlock_ffiVoid_SentryProfileOptions value) { + return _lib._objc_msgSend_1139( + _id, _lib._sel_setConfigureProfiling_1, value._id); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLDocument1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + SentryProfileOptions? get profiling { + final _ret = _lib._objc_msgSend_1140(_id, _lib._sel_profiling1); + return _ret.address == 0 + ? null + : SentryProfileOptions._(_ret, _lib, retain: true, release: true); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSXMLDocument1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + set profiling(SentryProfileOptions? value) { + return _lib._objc_msgSend_1141( + _id, _lib._sel_setProfiling_1, value?._id ?? ffi.nullptr); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLDocument1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + bool isContinuousProfilingEnabled() { + return _lib._objc_msgSend_12(_id, _lib._sel_isContinuousProfilingEnabled1); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLDocument1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + bool isProfilingCorrelatedToTraces() { + return _lib._objc_msgSend_12(_id, _lib._sel_isProfilingCorrelatedToTraces1); } -} -abstract class NSXMLDocumentContentKind { - static const int NSXMLDocumentXMLKind = 0; - static const int NSXMLDocumentXHTMLKind = 1; - static const int NSXMLDocumentHTMLKind = 2; - static const int NSXMLDocumentTextKind = 3; -} + /// Whether to send client reports, which contain statistics about discarded events. + /// @note The default is @c true. + /// @see https://develop.sentry.dev/sdk/client-reports/ + bool get sendClientReports { + return _lib._objc_msgSend_12(_id, _lib._sel_sendClientReports1); + } -class NSXMLDTD extends NSXMLNode { - NSXMLDTD._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + /// Whether to send client reports, which contain statistics about discarded events. + /// @note The default is @c true. + /// @see https://develop.sentry.dev/sdk/client-reports/ + set sendClientReports(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setSendClientReports_1, value); + } - /// Returns a [NSXMLDTD] that points to the same underlying object as [other]. - static NSXMLDTD castFrom(T other) { - return NSXMLDTD._(other._id, other._lib, retain: true, release: true); + /// When enabled, the SDK tracks when the application stops responding for a specific amount of + /// time defined by the @c appHangTimeoutInterval option. + /// On iOS, tvOS and visionOS, the SDK can differentiate between fully-blocking and non-fully + /// blocking app hangs. Important: this feature can’t differentiate between fully-blocking and + /// non-fully-blocking app hangs on macOS. + /// A fully-blocking app hang is when the main thread is stuck completely, and the app can’t render a + /// single frame. A non-fully-blocking app hang is when the app appears stuck to the user but can still + /// render a few frames. Fully-blocking app hangs are more actionable because the stacktrace shows the + /// exact blocking location on the main thread. As the main thread isn’t completely blocked, + /// non-fully-blocking app hangs can have a stacktrace that doesn’t highlight the exact blocking + /// location. + /// You can use @c enableReportNonFullyBlockingAppHangs to ignore non-fully-blocking app hangs. + /// @note The default is @c true. + /// @note App Hang tracking is automatically disabled if a debugger is attached. + bool get enableAppHangTracking { + return _lib._objc_msgSend_12(_id, _lib._sel_enableAppHangTracking1); } - /// Returns a [NSXMLDTD] that wraps the given raw object pointer. - static NSXMLDTD castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSXMLDTD._(other, lib, retain: retain, release: release); + /// When enabled, the SDK tracks when the application stops responding for a specific amount of + /// time defined by the @c appHangTimeoutInterval option. + /// On iOS, tvOS and visionOS, the SDK can differentiate between fully-blocking and non-fully + /// blocking app hangs. Important: this feature can’t differentiate between fully-blocking and + /// non-fully-blocking app hangs on macOS. + /// A fully-blocking app hang is when the main thread is stuck completely, and the app can’t render a + /// single frame. A non-fully-blocking app hang is when the app appears stuck to the user but can still + /// render a few frames. Fully-blocking app hangs are more actionable because the stacktrace shows the + /// exact blocking location on the main thread. As the main thread isn’t completely blocked, + /// non-fully-blocking app hangs can have a stacktrace that doesn’t highlight the exact blocking + /// location. + /// You can use @c enableReportNonFullyBlockingAppHangs to ignore non-fully-blocking app hangs. + /// @note The default is @c true. + /// @note App Hang tracking is automatically disabled if a debugger is attached. + set enableAppHangTracking(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableAppHangTracking_1, value); + } + + /// The minimum amount of time an app should be unresponsive to be classified as an App Hanging. + /// @note The actual amount may be a little longer. + /// @note Avoid using values lower than 100ms, which may cause a lot of app hangs events being + /// transmitted. + /// @note The default value is 2 seconds. + double get appHangTimeoutInterval { + return _lib._objc_msgSend_155(_id, _lib._sel_appHangTimeoutInterval1); + } + + /// The minimum amount of time an app should be unresponsive to be classified as an App Hanging. + /// @note The actual amount may be a little longer. + /// @note Avoid using values lower than 100ms, which may cause a lot of app hangs events being + /// transmitted. + /// @note The default value is 2 seconds. + set appHangTimeoutInterval(double value) { + return _lib._objc_msgSend_522( + _id, _lib._sel_setAppHangTimeoutInterval_1, value); } - /// Returns whether [obj] is an instance of [NSXMLDTD]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDTD1); + /// When enabled, the SDK adds breadcrumbs for various system events. + /// @note Default value is @c true. + bool get enableAutoBreadcrumbTracking { + return _lib._objc_msgSend_12(_id, _lib._sel_enableAutoBreadcrumbTracking1); + } + + /// When enabled, the SDK adds breadcrumbs for various system events. + /// @note Default value is @c true. + set enableAutoBreadcrumbTracking(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableAutoBreadcrumbTracking_1, value); + } + + /// When enabled, the SDK propagates the W3C Trace Context HTTP header traceparent on outgoing HTTP + /// requests. + /// @discussion This is useful when the receiving services only support OTel/W3C propagation. The + /// traceparent header is only sent when this option is @c true and the request matches @c + /// tracePropagationTargets. + /// @note Default value is @c false. + bool get enablePropagateTraceparent { + return _lib._objc_msgSend_12(_id, _lib._sel_enablePropagateTraceparent1); + } + + /// When enabled, the SDK propagates the W3C Trace Context HTTP header traceparent on outgoing HTTP + /// requests. + /// @discussion This is useful when the receiving services only support OTel/W3C propagation. The + /// traceparent header is only sent when this option is @c true and the request matches @c + /// tracePropagationTargets. + /// @note Default value is @c false. + set enablePropagateTraceparent(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnablePropagateTraceparent_1, value); + } + + /// An array of hosts or regexes that determines if outgoing HTTP requests will get + /// extra @c trace_id and @c baggage headers added. + /// @discussion This array can contain instances of @c NSString which should match the URL (using + /// @c contains ), and instances of @c NSRegularExpression, which will be used to check the whole + /// URL. + /// @note The default value adds the header to all outgoing requests. + /// @see https://docs.sentry.io/platforms/apple/configuration/options/#trace-propagation-targets + NSArray? get tracePropagationTargets { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_tracePropagationTargets1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - @override - NSXMLDTD init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); + /// An array of hosts or regexes that determines if outgoing HTTP requests will get + /// extra @c trace_id and @c baggage headers added. + /// @discussion This array can contain instances of @c NSString which should match the URL (using + /// @c contains ), and instances of @c NSRegularExpression, which will be used to check the whole + /// URL. + /// @note The default value adds the header to all outgoing requests. + /// @see https://docs.sentry.io/platforms/apple/configuration/options/#trace-propagation-targets + set tracePropagationTargets(NSArray? value) { + return _lib._objc_msgSend_751( + _id, _lib._sel_setTracePropagationTargets_1, value?._id ?? ffi.nullptr); } - @override - NSXMLDTD initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1019( - _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK captures HTTP Client errors. + /// @note This feature requires @c enableSwizzling enabled as well. + /// @note Default value is @c true. + bool get enableCaptureFailedRequests { + return _lib._objc_msgSend_12(_id, _lib._sel_enableCaptureFailedRequests1); } - NSXMLDTD initWithContentsOfURL_options_error_( - NSURL? url, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1025( - _id, - _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK captures HTTP Client errors. + /// @note This feature requires @c enableSwizzling enabled as well. + /// @note Default value is @c true. + set enableCaptureFailedRequests(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableCaptureFailedRequests_1, value); } - NSXMLDTD initWithData_options_error_( - NSData? data, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1026( - _id, - _lib._sel_initWithData_options_error_1, - data?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); + /// The SDK will only capture HTTP Client errors if the HTTP Response status code is within the + /// defined range. + /// @note Defaults to 500 - 599. + /// SentryHttpStatusCodeRange *defaultHttpStatusCodeRange = + NSArray? get failedRequestStatusCodes { + final _ret = + _lib._objc_msgSend_79(_id, _lib._sel_failedRequestStatusCodes1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - NSString? get publicID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); + /// The SDK will only capture HTTP Client errors if the HTTP Response status code is within the + /// defined range. + /// @note Defaults to 500 - 599. + /// SentryHttpStatusCodeRange *defaultHttpStatusCodeRange = + set failedRequestStatusCodes(NSArray? value) { + return _lib._objc_msgSend_751(_id, _lib._sel_setFailedRequestStatusCodes_1, + value?._id ?? ffi.nullptr); + } + + /// An array of hosts or regexes that determines if HTTP Client errors will be automatically + /// captured. + /// @discussion This array can contain instances of @c NSString which should match the URL (using + /// @c contains ), and instances of @c NSRegularExpression, which will be used to check the whole + /// URL. + /// @note The default value automatically captures HTTP Client errors of all outgoing requests. + NSArray? get failedRequestTargets { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_failedRequestTargets1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + /// An array of hosts or regexes that determines if HTTP Client errors will be automatically + /// captured. + /// @discussion This array can contain instances of @c NSString which should match the URL (using + /// @c contains ), and instances of @c NSRegularExpression, which will be used to check the whole + /// URL. + /// @note The default value automatically captures HTTP Client errors of all outgoing requests. + set failedRequestTargets(NSArray? value) { + return _lib._objc_msgSend_751( + _id, _lib._sel_setFailedRequestTargets_1, value?._id ?? ffi.nullptr); + } + + /// Use this feature to enable the Sentry MetricKit integration. + /// @brief When enabled, the SDK sends @c MXDiskWriteExceptionDiagnostic, @c MXCPUExceptionDiagnostic + /// and + /// @c MXHangDiagnostic to Sentry. The SDK supports this feature from iOS 15 and later and macOS 12 + /// and later because, on these versions, @c MetricKit delivers diagnostic reports immediately, which + /// allows the Sentry SDK to apply the current data from the scope. + /// @note This feature is disabled by default. + bool get enableMetricKit { + return _lib._objc_msgSend_12(_id, _lib._sel_enableMetricKit1); + } + + /// Use this feature to enable the Sentry MetricKit integration. + /// @brief When enabled, the SDK sends @c MXDiskWriteExceptionDiagnostic, @c MXCPUExceptionDiagnostic + /// and + /// @c MXHangDiagnostic to Sentry. The SDK supports this feature from iOS 15 and later and macOS 12 + /// and later because, on these versions, @c MetricKit delivers diagnostic reports immediately, which + /// allows the Sentry SDK to apply the current data from the scope. + /// @note This feature is disabled by default. + set enableMetricKit(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setEnableMetricKit_1, value); + } + + /// When enabled, the SDK adds the raw MXDiagnosticPayloads as an attachment to the converted + /// SentryEvent. You need to enable @c enableMetricKit for this flag to work. + /// @note Default value is @c false. + bool get enableMetricKitRawPayload { + return _lib._objc_msgSend_12(_id, _lib._sel_enableMetricKitRawPayload1); + } + + /// When enabled, the SDK adds the raw MXDiagnosticPayloads as an attachment to the converted + /// SentryEvent. You need to enable @c enableMetricKit for this flag to work. + /// @note Default value is @c false. + set enableMetricKitRawPayload(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableMetricKitRawPayload_1, value); + } + + /// @warning This is an experimental feature and may still have bugs. + /// @brief By enabling this, every UIViewController tracing transaction will wait + /// for a call to @c SentrySDK.reportFullyDisplayed(). + /// @discussion Use this in conjunction with @c enableUIViewControllerTracing. + /// If @c SentrySDK.reportFullyDisplayed() is not called, the transaction will finish + /// automatically after 30 seconds and the Time to full display Span will be + /// finished with @c DeadlineExceeded status. + /// @note Default value is false. + bool get enableTimeToFullDisplayTracing { + return _lib._objc_msgSend_12( + _id, _lib._sel_enableTimeToFullDisplayTracing1); + } + + /// @warning This is an experimental feature and may still have bugs. + /// @brief By enabling this, every UIViewController tracing transaction will wait + /// for a call to @c SentrySDK.reportFullyDisplayed(). + /// @discussion Use this in conjunction with @c enableUIViewControllerTracing. + /// If @c SentrySDK.reportFullyDisplayed() is not called, the transaction will finish + /// automatically after 30 seconds and the Time to full display Span will be + /// finished with @c DeadlineExceeded status. + /// @note Default value is false. + set enableTimeToFullDisplayTracing(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableTimeToFullDisplayTracing_1, value); + } + + /// This feature is only available from Xcode 13 and from macOS 12.0, iOS 15.0, tvOS 15.0, + /// watchOS 8.0. + /// @warning This is an experimental feature and may still have bugs. + /// @brief Stitches the call to Swift Async functions in one consecutive stack trace. + /// @note Default value is @c false. + bool get swiftAsyncStacktraces { + return _lib._objc_msgSend_12(_id, _lib._sel_swiftAsyncStacktraces1); + } + + /// This feature is only available from Xcode 13 and from macOS 12.0, iOS 15.0, tvOS 15.0, + /// watchOS 8.0. + /// @warning This is an experimental feature and may still have bugs. + /// @brief Stitches the call to Swift Async functions in one consecutive stack trace. + /// @note Default value is @c false. + set swiftAsyncStacktraces(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setSwiftAsyncStacktraces_1, value); + } + + /// The path to store SDK data, like events, transactions, profiles, raw crash data, etc. We + /// recommend only changing this when the default, e.g., in security environments, can’t be accessed. + /// @note The default is NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, true). + NSString? get cacheDirectoryPath { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_cacheDirectoryPath1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - set publicID(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); + /// The path to store SDK data, like events, transactions, profiles, raw crash data, etc. We + /// recommend only changing this when the default, e.g., in security environments, can’t be accessed. + /// @note The default is NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, true). + set cacheDirectoryPath(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setCacheDirectoryPath_1, value?._id ?? ffi.nullptr); } - NSString? get systemID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); + /// Whether to enable Spotlight for local development. For more information see + /// https://spotlightjs.com/. + /// @note Only set this option to @c true while developing, not in production! + bool get enableSpotlight { + return _lib._objc_msgSend_12(_id, _lib._sel_enableSpotlight1); + } + + /// Whether to enable Spotlight for local development. For more information see + /// https://spotlightjs.com/. + /// @note Only set this option to @c true while developing, not in production! + set enableSpotlight(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setEnableSpotlight_1, value); + } + + /// The Spotlight URL. Defaults to http://localhost:8969/stream. For more information see + /// https://spotlightjs.com/ + NSString? get spotlightUrl { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_spotlightUrl1); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); } - set systemID(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); + /// The Spotlight URL. Defaults to http://localhost:8969/stream. For more information see + /// https://spotlightjs.com/ + set spotlightUrl(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setSpotlightUrl_1, value?._id ?? ffi.nullptr); } - void insertChild_atIndex_(NSXMLNode? child, int index) { - _lib._objc_msgSend_1029( - _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); + /// If set to true, the SDK will only continue a trace if the organization ID of the incoming + /// trace found in the baggage header matches the organization ID of the current Sentry client. + /// The client’s organization ID is extracted from the DSN or can be set with the orgId option. + /// If the organization IDs do not match, the SDK will start a new trace instead of continuing + /// the incoming one. This is useful to prevent traces of unknown third-party services from being + /// continued in your application. + /// @note Default value is @c false. + bool get strictTraceContinuation { + return _lib._objc_msgSend_12(_id, _lib._sel_strictTraceContinuation1); } - void insertChildren_atIndex_(NSArray? children, int index) { - _lib._objc_msgSend_1030(_id, _lib._sel_insertChildren_atIndex_1, - children?._id ?? ffi.nullptr, index); + /// If set to true, the SDK will only continue a trace if the organization ID of the incoming + /// trace found in the baggage header matches the organization ID of the current Sentry client. + /// The client’s organization ID is extracted from the DSN or can be set with the orgId option. + /// If the organization IDs do not match, the SDK will start a new trace instead of continuing + /// the incoming one. This is useful to prevent traces of unknown third-party services from being + /// continued in your application. + /// @note Default value is @c false. + set strictTraceContinuation(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setStrictTraceContinuation_1, value); } - void removeChildAtIndex_(int index) { - _lib._objc_msgSend_441(_id, _lib._sel_removeChildAtIndex_1, index); + /// The organization ID for your Sentry project. + /// The SDK will try to extract the organization ID from the DSN. If it cannot be found, or if + /// you need to override it, you can provide the ID with this option. The organization ID is used + /// for trace propagation and for features like strictTraceContinuation. + NSString? get orgId { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_orgId1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void setChildren_(NSArray? children) { - _lib._objc_msgSend_443( - _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); + /// The organization ID for your Sentry project. + /// The SDK will try to extract the organization ID from the DSN. If it cannot be found, or if + /// you need to override it, you can provide the ID with this option. The organization ID is used + /// for trace propagation and for features like strictTraceContinuation. + set orgId(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setOrgId_1, value?._id ?? ffi.nullptr); } - void addChild_(NSXMLNode? child) { - _lib._objc_msgSend_1031( - _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + /// Returns the effective organization ID, preferring the explicit orgId option over the + /// DSN-extracted value. + NSString? get effectiveOrgId { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_effectiveOrgId1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { - _lib._objc_msgSend_1032(_id, _lib._sel_replaceChildAtIndex_withNode_1, - index, node?._id ?? ffi.nullptr); + /// Options for experimental features that are subject to change. + SentryExperimentalOptions? get experimental { + final _ret = _lib._objc_msgSend_1142(_id, _lib._sel_experimental1); + return _ret.address == 0 + ? null + : SentryExperimentalOptions._(_ret, _lib, retain: true, release: true); } - NSXMLDTDNode entityDeclarationForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1036( - _id, _lib._sel_entityDeclarationForName_1, name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + /// Options for experimental features that are subject to change. + set experimental(SentryExperimentalOptions? value) { + return _lib._objc_msgSend_1143( + _id, _lib._sel_setExperimental_1, value?._id ?? ffi.nullptr); } - NSXMLDTDNode notationDeclarationForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1036( - _id, _lib._sel_notationDeclarationForName_1, name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + static bool isValidSampleRate_(SentryCocoa _lib, NSNumber? rate) { + return _lib._objc_msgSend_223(_lib._class_SentryOptions11, + _lib._sel_isValidSampleRate_1, rate?._id ?? ffi.nullptr); } - NSXMLDTDNode elementDeclarationForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1036( - _id, _lib._sel_elementDeclarationForName_1, name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + static NSString? getDefaultEnvironment(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_20( + _lib._class_SentryOptions11, _lib._sel_defaultEnvironment1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - NSXMLDTDNode attributeDeclarationForName_elementName_( - NSString? name, NSString? elementName) { - final _ret = _lib._objc_msgSend_1037( - _id, - _lib._sel_attributeDeclarationForName_elementName_1, - name?._id ?? ffi.nullptr, - elementName?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK sends metrics to Sentry. Metrics can be captured using the SentrySDK/metrics + /// API, which allows you to send, view and query counters, gauges and measurements. + /// @note Default value is @c true. + bool get enableMetrics { + return _lib._objc_msgSend_12(_id, _lib._sel_enableMetrics1); } - static NSXMLDTDNode predefinedEntityDeclarationForName_( - SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1036( - _lib._class_NSXMLDTD1, - _lib._sel_predefinedEntityDeclarationForName_1, - name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + /// When enabled, the SDK sends metrics to Sentry. Metrics can be captured using the SentrySDK/metrics + /// API, which allows you to send, view and query counters, gauges and measurements. + /// @note Default value is @c true. + set enableMetrics(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setEnableMetrics_1, value); } - @override - NSXMLDTD initWithKind_(int kind) { - final _ret = _lib._objc_msgSend_1018(_id, _lib._sel_initWithKind_1, kind); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); + static SentryOptions1 new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryOptions11, _lib._sel_new1); + return SentryOptions1._(_ret, _lib, retain: false, release: true); } - static NSObject document(SentryCocoa _lib) { + static SentryOptions1 allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryOptions11, _lib._sel_allocWithZone_1, zone); + return SentryOptions1._(_ret, _lib, retain: false, release: true); + } + + static SentryOptions1 alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_document1); - return NSObject._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_2(_lib._class_SentryOptions11, _lib._sel_alloc1); + return SentryOptions1._(_ret, _lib, retain: false, release: true); } - static NSObject documentWithRootElement_( - SentryCocoa _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1020(_lib._class_NSXMLDTD1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_SentryOptions11, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_SentryOptions11, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - static NSObject elementWithName_URI_( - SentryCocoa _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTD1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryOptions11, + _lib._sel_accessInstanceVariablesDirectly1); } - static NSObject elementWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTD1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryOptions11, _lib._sel_useStoredAccessor1); } - static NSObject elementWithName_children_attributes_(SentryCocoa _lib, - NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_1021( - _lib._class_NSXMLDTD1, - _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, - children?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryOptions11, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - static NSObject attributeWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTD1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryOptions11, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - static NSObject attributeWithName_URI_stringValue_( - SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( - _lib._class_NSXMLDTD1, - _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_SentryOptions11, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_SentryOptions11, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - static NSObject namespaceWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTD1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryOptions11, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } +} - static NSObject processingInstructionWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTD1, - _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); +/// Represents a Sentry Data Source Name (DSN) which identifies a Sentry project. +class SentryDsn extends NSObject { + SentryDsn._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryDsn] that points to the same underlying object as [other]. + static SentryDsn castFrom(T other) { + return SentryDsn._(other._id, other._lib, retain: true, release: true); } - static NSObject commentWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns a [SentryDsn] that wraps the given raw object pointer. + static SentryDsn castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryDsn._(other, lib, retain: retain, release: release); } - static NSObject textWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [SentryDsn]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryDsn1); } - static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTD1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// The parsed URL from the DSN string. + NSURL? get url { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_url1); + return _ret.address == 0 + ? null + : NSURL._(_ret, _lib, retain: true, release: true); } - static NSString localNameForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTD1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// Initializes a SentryDsn from a DSN string. + /// \param dsnString The DSN string to parse. + /// + /// \param error An optional error pointer that will be set if the DSN is invalid. + /// + /// + /// returns: + /// A new SentryDsn instance, or nil if the DSN string is invalid. + SentryDsn initWithString_didFailWithError_( + NSString? dsnString, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_279( + _id, + _lib._sel_initWithString_didFailWithError_1, + dsnString?._id ?? ffi.nullptr, + error); + return SentryDsn._(_ret, _lib, retain: true, release: true); } - static NSString prefixForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTD1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); + /// Generates a SHA1 hash of the DSN URL. + /// note: + /// This is internal SDK API, not for public use. + /// + /// returns: + /// A hexadecimal string representation of the hash. + NSString getHash() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_getHash1); return NSString._(_ret, _lib, retain: true, release: true); } - static NSXMLNode predefinedNamespaceForPrefix_( - SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1035(_lib._class_NSXMLDTD1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + /// Returns the envelope endpoint URL for this DSN. + /// + /// returns: + /// The envelope endpoint URL. + NSURL getEnvelopeEndpoint() { + final _ret = _lib._objc_msgSend_40(_id, _lib._sel_getEnvelopeEndpoint1); + return NSURL._(_ret, _lib, retain: true, release: true); } - static NSXMLDTD new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_new1); - return NSXMLDTD._(_ret, _lib, retain: false, release: true); + /// Extracts the organization ID from the DSN host. + /// For example, given a DSN with host o123.ingest.sentry.io, this returns "123". + /// Returns nil if the host does not match the expected pattern. + NSString? get orgId { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_orgId1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSXMLDTD allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + @override + SentryDsn init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryDsn._(_ret, _lib, retain: true, release: true); + } + + static SentryDsn new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_SentryDsn1, _lib._sel_new1); + return SentryDsn._(_ret, _lib, retain: false, release: true); + } + + static SentryDsn allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSXMLDTD1, _lib._sel_allocWithZone_1, zone); - return NSXMLDTD._(_ret, _lib, retain: false, release: true); + _lib._class_SentryDsn1, _lib._sel_allocWithZone_1, zone); + return SentryDsn._(_ret, _lib, retain: false, release: true); } - static NSXMLDTD alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_alloc1); - return NSXMLDTD._(_ret, _lib, retain: false, release: true); + static SentryDsn alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_SentryDsn1, _lib._sel_alloc1); + return SentryDsn._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -70983,7 +80040,7 @@ class NSXMLDTD extends NSXMLNode { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSXMLDTD1, + _lib._class_SentryDsn1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -70992,24 +80049,24 @@ class NSXMLDTD extends NSXMLNode { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSXMLDTD1, + _lib._objc_msgSend_15(_lib._class_SentryDsn1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLDTD1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_SentryDsn1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLDTD1, _lib._sel_useStoredAccessor1); + _lib._class_SentryDsn1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLDTD1, + _lib._class_SentryDsn1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -71018,7 +80075,7 @@ class NSXMLDTD extends NSXMLNode { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSXMLDTD1, + _lib._class_SentryDsn1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -71026,7 +80083,7 @@ class NSXMLDTD extends NSXMLNode { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSXMLDTD1, + _lib._class_SentryDsn1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -71034,260 +80091,269 @@ class NSXMLDTD extends NSXMLNode { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLDTD1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_SentryDsn1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLDTD1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_SentryDsn1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSXMLDTDNode extends NSXMLNode { - NSXMLDTDNode._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +ffi.Pointer _ObjCBlock_SentryLog_SentryLog_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>()(arg0); +} - /// Returns a [NSXMLDTDNode] that points to the same underlying object as [other]. - static NSXMLDTDNode castFrom(T other) { - return NSXMLDTDNode._(other._id, other._lib, retain: true, release: true); - } +final _ObjCBlock_SentryLog_SentryLog_closureRegistry = {}; +int _ObjCBlock_SentryLog_SentryLog_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_SentryLog_SentryLog_registerClosure( + Function fn) { + final id = ++_ObjCBlock_SentryLog_SentryLog_closureRegistryIndex; + _ObjCBlock_SentryLog_SentryLog_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - /// Returns a [NSXMLDTDNode] that wraps the given raw object pointer. - static NSXMLDTDNode castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSXMLDTDNode._(other, lib, retain: retain, release: release); - } +ffi.Pointer _ObjCBlock_SentryLog_SentryLog_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_SentryLog_SentryLog_closureRegistry[ + block.ref.target.address] + as ffi.Pointer Function(ffi.Pointer))(arg0); +} - /// Returns whether [obj] is an instance of [NSXMLDTDNode]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDTDNode1); - } +class ObjCBlock_SentryLog_SentryLog extends _ObjCBlockBase { + ObjCBlock_SentryLog_SentryLog._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); - NSXMLDTDNode initWithXMLString_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithXMLString_1, string?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock_SentryLog_SentryLog.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_SentryLog_SentryLog_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - @override - NSXMLDTDNode initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1019( - _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + /// Creates a block from a Dart function. + ObjCBlock_SentryLog_SentryLog.fromFunction(SentryCocoa lib, + ffi.Pointer Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_SentryLog_SentryLog_closureTrampoline) + .cast(), + _ObjCBlock_SentryLog_SentryLog_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + ffi.Pointer call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); } +} - @override - NSXMLDTDNode init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); - } +/// A structured log entry that captures log data with associated attribute metadata. +/// Use the options.beforeSendLog callback to modify or filter log data. +class SentryLog extends NSObject { + SentryLog._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - int get DTDKind { - return _lib._objc_msgSend_1033(_id, _lib._sel_DTDKind1); + /// Returns a [SentryLog] that points to the same underlying object as [other]. + static SentryLog castFrom(T other) { + return SentryLog._(other._id, other._lib, retain: true, release: true); } - set DTDKind(int value) { - return _lib._objc_msgSend_1034(_id, _lib._sel_setDTDKind_1, value); + /// Returns a [SentryLog] that wraps the given raw object pointer. + static SentryLog castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryLog._(other, lib, retain: retain, release: release); } - bool get external1 { - return _lib._objc_msgSend_12(_id, _lib._sel_isExternal1); + /// Returns whether [obj] is an instance of [SentryLog]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryLog1); } - NSString? get publicID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); + /// The timestamp when the log event occurred + NSDate? get timestamp { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_timestamp1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSDate._(_ret, _lib, retain: true, release: true); } - set publicID(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); + /// The timestamp when the log event occurred + set timestamp(NSDate? value) { + return _lib._objc_msgSend_540( + _id, _lib._sel_setTimestamp_1, value?._id ?? ffi.nullptr); } - NSString? get systemID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); + /// The trace ID to associate this log with distributed tracing. This will be set to a valid non-empty value during processing. + SentryId? get traceId { + final _ret = _lib._objc_msgSend_1067(_id, _lib._sel_traceId1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : SentryId._(_ret, _lib, retain: true, release: true); } - set systemID(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); + /// The trace ID to associate this log with distributed tracing. This will be set to a valid non-empty value during processing. + set traceId(SentryId? value) { + return _lib._objc_msgSend_1120( + _id, _lib._sel_setTraceId_1, value?._id ?? ffi.nullptr); } - NSString? get notationName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_notationName1); + /// The span ID of the span that was active when the log was collected. + SentrySpanId? get spanId { + final _ret = _lib._objc_msgSend_1121(_id, _lib._sel_spanId1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set notationName(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setNotationName_1, value?._id ?? ffi.nullptr); - } - - @override - NSXMLDTDNode initWithKind_(int kind) { - final _ret = _lib._objc_msgSend_1018(_id, _lib._sel_initWithKind_1, kind); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); - } - - static NSObject document(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_document1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject documentWithRootElement_( - SentryCocoa _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1020(_lib._class_NSXMLDTDNode1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + : SentrySpanId._(_ret, _lib, retain: true, release: true); } - static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_elementWithName_1, name?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - static NSObject elementWithName_URI_( - SentryCocoa _lib, NSString? name, NSString? URI) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTDNode1, - _lib._sel_elementWithName_URI_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// The span ID of the span that was active when the log was collected. + set spanId(SentrySpanId? value) { + return _lib._objc_msgSend_1122( + _id, _lib._sel_setSpanId_1, value?._id ?? ffi.nullptr); } - static NSObject elementWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? string) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTDNode1, - _lib._sel_elementWithName_stringValue_1, - name?._id ?? ffi.nullptr, - string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// The severity level of the log entry + int get level { + return _lib._objc_msgSend_1123(_id, _lib._sel_level1); } - static NSObject elementWithName_children_attributes_(SentryCocoa _lib, - NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_1021( - _lib._class_NSXMLDTDNode1, - _lib._sel_elementWithName_children_attributes_1, - name?._id ?? ffi.nullptr, - children?._id ?? ffi.nullptr, - attributes?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// The severity level of the log entry + set level(int value) { + return _lib._objc_msgSend_1124(_id, _lib._sel_setLevel_1, value); } - static NSObject attributeWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTDNode1, - _lib._sel_attributeWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// The main log message content + NSString? get body { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_body1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - static NSObject attributeWithName_URI_stringValue_( - SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { - final _ret = _lib._objc_msgSend_26( - _lib._class_NSXMLDTDNode1, - _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// The main log message content + set body(NSString? value) { + return _lib._objc_msgSend_444( + _id, _lib._sel_setBody_1, value?._id ?? ffi.nullptr); } - static NSObject namespaceWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTDNode1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// A dictionary of structured attributes added to the log entry + NSDictionary? get attributes { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_attributes1); + return _ret.address == 0 + ? null + : NSDictionary._(_ret, _lib, retain: true, release: true); } - static NSObject processingInstructionWithName_stringValue_( - SentryCocoa _lib, NSString? name, NSString? stringValue) { - final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLDTDNode1, - _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// A dictionary of structured attributes added to the log entry + set attributes(NSDictionary? value) { + return _lib._objc_msgSend_171( + _id, _lib._sel_setAttributes_1, value?._id ?? ffi.nullptr); } - static NSObject commentWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_commentWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Numeric representation of the severity level (Int) + NSNumber? get severityNumber { + final _ret = _lib._objc_msgSend_198(_id, _lib._sel_severityNumber1); + return _ret.address == 0 + ? null + : NSNumber._(_ret, _lib, retain: true, release: true); } - static NSObject textWithStringValue_( - SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_textWithStringValue_1, stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Numeric representation of the severity level (Int) + set severityNumber(NSNumber? value) { + return _lib._objc_msgSend_635( + _id, _lib._sel_setSeverityNumber_1, value?._id ?? ffi.nullptr); } - static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLDTDNode1, - _lib._sel_DTDNodeWithXMLString_1, string?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// Creates a log entry with the specified level and message. + /// \param level The severity level of the log entry + /// + /// \param body The main log message content + SentryLog initWithLevel_body_(int level, NSString? body) { + final _ret = _lib._objc_msgSend_1125( + _id, _lib._sel_initWithLevel_body_1, level, body?._id ?? ffi.nullptr); + return SentryLog._(_ret, _lib, retain: true, release: true); } - static NSString localNameForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTDNode1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// Creates a log entry with the specified level, message, and attributes. + /// \param level The severity level of the log entry + /// + /// \param body The main log message content + /// + /// \param attributes A dictionary of structured attributes to add to the log entry + SentryLog initWithLevel_body_attributes_( + int level, NSString? body, NSDictionary? attributes) { + final _ret = _lib._objc_msgSend_1126( + _id, + _lib._sel_initWithLevel_body_attributes_1, + level, + body?._id ?? ffi.nullptr, + attributes?._id ?? ffi.nullptr); + return SentryLog._(_ret, _lib, retain: true, release: true); } - static NSString prefixForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLDTDNode1, - _lib._sel_prefixForName_1, name?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + /// Adds or updates an attribute in the log entry. + /// \param attribute The attribute value to add + /// + /// \param key The key for the attribute + void setAttribute_forKey_(SentryAttribute? attribute, NSString? key) { + _lib._objc_msgSend_1128(_id, _lib._sel_setAttribute_forKey_1, + attribute?._id ?? ffi.nullptr, key?._id ?? ffi.nullptr); } - static NSXMLNode predefinedNamespaceForPrefix_( - SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1035(_lib._class_NSXMLDTDNode1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + @override + SentryLog init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryLog._(_ret, _lib, retain: true, release: true); } - static NSXMLDTDNode new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_new1); - return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); + static SentryLog new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_SentryLog1, _lib._sel_new1); + return SentryLog._(_ret, _lib, retain: false, release: true); } - static NSXMLDTDNode allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static SentryLog allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSXMLDTDNode1, _lib._sel_allocWithZone_1, zone); - return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); + _lib._class_SentryLog1, _lib._sel_allocWithZone_1, zone); + return SentryLog._(_ret, _lib, retain: false, release: true); } - static NSXMLDTDNode alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDTDNode1, _lib._sel_alloc1); - return NSXMLDTDNode._(_ret, _lib, retain: false, release: true); + static SentryLog alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_SentryLog1, _lib._sel_alloc1); + return SentryLog._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -71296,7 +80362,7 @@ class NSXMLDTDNode extends NSXMLNode { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSXMLDTDNode1, + _lib._class_SentryLog1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -71305,24 +80371,24 @@ class NSXMLDTDNode extends NSXMLNode { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSXMLDTDNode1, + _lib._objc_msgSend_15(_lib._class_SentryLog1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLDTDNode1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_SentryLog1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLDTDNode1, _lib._sel_useStoredAccessor1); + _lib._class_SentryLog1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLDTDNode1, + _lib._class_SentryLog1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -71331,7 +80397,7 @@ class NSXMLDTDNode extends NSXMLNode { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSXMLDTDNode1, + _lib._class_SentryLog1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -71339,310 +80405,223 @@ class NSXMLDTDNode extends NSXMLNode { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSXMLDTDNode1, + _lib._class_SentryLog1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLDTDNode1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLDTDNode1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -abstract class NSXMLDTDNodeKind { - static const int NSXMLEntityGeneralKind = 1; - static const int NSXMLEntityParsedKind = 2; - static const int NSXMLEntityUnparsedKind = 3; - static const int NSXMLEntityParameterKind = 4; - static const int NSXMLEntityPredefined = 5; - static const int NSXMLAttributeCDATAKind = 6; - static const int NSXMLAttributeIDKind = 7; - static const int NSXMLAttributeIDRefKind = 8; - static const int NSXMLAttributeIDRefsKind = 9; - static const int NSXMLAttributeEntityKind = 10; - static const int NSXMLAttributeEntitiesKind = 11; - static const int NSXMLAttributeNMTokenKind = 12; - static const int NSXMLAttributeNMTokensKind = 13; - static const int NSXMLAttributeEnumerationKind = 14; - static const int NSXMLAttributeNotationKind = 15; - static const int NSXMLElementDeclarationUndefinedKind = 16; - static const int NSXMLElementDeclarationEmptyKind = 17; - static const int NSXMLElementDeclarationAnyKind = 18; - static const int NSXMLElementDeclarationMixedKind = 19; - static const int NSXMLElementDeclarationElementKind = 20; -} - -/// @warning This class is reserved for hybrid SDKs. Methods may be changed, renamed or removed -/// without notice. If you want to use one of these methods here please open up an issue and let us -/// know. -/// @note The name of this class is supposed to be a bit weird and ugly. The name starts with private -/// on purpose so users don't see it in code completion when typing Sentry. We also add only at the -/// end to make it more obvious you shouldn't use it. -class PrivateSentrySDKOnly extends NSObject { - PrivateSentrySDKOnly._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [PrivateSentrySDKOnly] that points to the same underlying object as [other]. - static PrivateSentrySDKOnly castFrom(T other) { - return PrivateSentrySDKOnly._(other._id, other._lib, - retain: true, release: true); - } - - /// Returns a [PrivateSentrySDKOnly] that wraps the given raw object pointer. - static PrivateSentrySDKOnly castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return PrivateSentrySDKOnly._(other, lib, retain: retain, release: release); - } - - /// Returns whether [obj] is an instance of [PrivateSentrySDKOnly]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_PrivateSentrySDKOnly1); - } - - /// For storing an envelope synchronously to disk. - static void storeEnvelope_(SentryCocoa _lib, SentryEnvelope? envelope) { - _lib._objc_msgSend_1053(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_storeEnvelope_1, envelope?._id ?? ffi.nullptr); - } - - static void captureEnvelope_(SentryCocoa _lib, SentryEnvelope? envelope) { - _lib._objc_msgSend_1053(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_captureEnvelope_1, envelope?._id ?? ffi.nullptr); - } - - /// Create an envelope from @c NSData. Needed for example by Flutter. - static SentryEnvelope envelopeWithData_(SentryCocoa _lib, NSData? data) { - final _ret = _lib._objc_msgSend_1054(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_envelopeWithData_1, data?._id ?? ffi.nullptr); - return SentryEnvelope._(_ret, _lib, retain: true, release: true); - } - - /// Returns the current list of debug images. Be aware that the @c SentryDebugMeta is actually - /// describing a debug image. - /// @warning This assumes a crash has occurred and attempts to read the crash information from each - /// image's data segment, which may not be present or be invalid if a crash has not actually - /// occurred. To avoid this, use the new @c +[getDebugImagesCrashed:] instead. - static NSArray getDebugImages(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_getDebugImages1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - /// Returns the current list of debug images. Be aware that the @c SentryDebugMeta is actually - /// describing a debug image. - /// @param isCrash @c YES if we're collecting binary images for a crash report, @c NO if we're - /// gathering them for other backtrace information, like a performance transaction. If this is for a - /// crash, each image's data section crash info is also included. - static NSArray getDebugImagesCrashed_(SentryCocoa _lib, bool isCrash) { - final _ret = _lib._objc_msgSend_1055(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_getDebugImagesCrashed_1, isCrash); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - /// Override SDK information. - static void setSdkName_andVersionString_( - SentryCocoa _lib, NSString? sdkName, NSString? versionString) { - _lib._objc_msgSend_518( - _lib._class_PrivateSentrySDKOnly1, - _lib._sel_setSdkName_andVersionString_1, - sdkName?._id ?? ffi.nullptr, - versionString?._id ?? ffi.nullptr); - } - - /// Override SDK information. - static void setSdkName_(SentryCocoa _lib, NSString? sdkName) { - _lib._objc_msgSend_192(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_setSdkName_1, sdkName?._id ?? ffi.nullptr); - } - - /// Retrieves the SDK name - static NSString getSdkName(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_20( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_getSdkName1); - return NSString._(_ret, _lib, retain: true, release: true); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_SentryLog1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - /// Retrieves the SDK version string - static NSString getSdkVersionString(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_20( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_getSdkVersionString1); - return NSString._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryLog1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - /// Add a package to the SDK packages - static void addSdkPackage_version_( - SentryCocoa _lib, NSString? name, NSString? version) { - _lib._objc_msgSend_518( - _lib._class_PrivateSentrySDKOnly1, - _lib._sel_addSdkPackage_version_1, - name?._id ?? ffi.nullptr, - version?._id ?? ffi.nullptr); - } +/// Represents the severity level of a structured log entry. +/// Log levels are ordered by severity from least (trace) to most severe (fatal). +/// Each level corresponds to a numeric severity value following the OpenTelemetry specification. +abstract class SentryLogLevel { + /// Trace level for very detailed diagnostic information. + static const int SentryLogLevelTrace = 0; - /// Retrieves extra context - static NSDictionary getExtraContext(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_170( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_getExtraContext1); - return NSDictionary._(_ret, _lib, retain: true, release: true); - } + /// Debug level for diagnostic information useful during development. + static const int SentryLogLevelDebug = 1; - /// Allows Hybrids SDKs to thread-safe set the current trace. - static void setTrace_spanId_( - SentryCocoa _lib, SentryId? traceId, SentrySpanId? spanId) { - _lib._objc_msgSend_1056( - _lib._class_PrivateSentrySDKOnly1, - _lib._sel_setTrace_spanId_1, - traceId?._id ?? ffi.nullptr, - spanId?._id ?? ffi.nullptr); + /// Info level for general informational messages. + static const int SentryLogLevelInfo = 2; + + /// Warn level for potentially harmful situations. + static const int SentryLogLevelWarn = 3; + + /// Error level for error events that might still allow the application to continue running. + static const int SentryLogLevelError = 4; + + /// Fatal level for severe error events that will presumably lead the application to abort. + static const int SentryLogLevelFatal = 5; +} + +/// A typed attribute that can be attached to structured item entries used by Logs & Metrics +/// Attribute provides a type-safe way to store structured data alongside item messages. +/// Supports String, Bool, Int, and Double types. +/// This class exists primarily for Objective-C compatibility, inheriting from NSObject and +/// using @objcMembers to ensure it can be used from Objective-C code. For Swift code, prefer +/// using the SentryAttributeValue protocol instead, which provides a more idiomatic Swift API +/// and allows you to pass native Swift types (String, Bool, Int, Double, Float, and their arrays) +/// directly without wrapping them in a class instance. This Objective-C-compatible class will be +/// removed in a future major version release. +class SentryAttribute extends NSObject { + SentryAttribute._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryAttribute] that points to the same underlying object as [other]. + static SentryAttribute castFrom(T other) { + return SentryAttribute._(other._id, other._lib, + retain: true, release: true); } - /// Start a profiler session associated with the given @c SentryId. - /// @return The system time when the profiler session started. - static int startProfilerForTrace_(SentryCocoa _lib, SentryId1? traceId) { - return _lib._objc_msgSend_1057(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_startProfilerForTrace_1, traceId?._id ?? ffi.nullptr); + /// Returns a [SentryAttribute] that wraps the given raw object pointer. + static SentryAttribute castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryAttribute._(other, lib, retain: retain, release: release); } - /// Collect a profiler session data associated with the given @c SentryId. - /// This also discards the profiler. - static NSMutableDictionary collectProfileBetween_and_forTrace_( - SentryCocoa _lib, - int startSystemTime, - int endSystemTime, - SentryId? traceId) { - final _ret = _lib._objc_msgSend_1058( - _lib._class_PrivateSentrySDKOnly1, - _lib._sel_collectProfileBetween_and_forTrace_1, - startSystemTime, - endSystemTime, - traceId?._id ?? ffi.nullptr); - return NSMutableDictionary._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [SentryAttribute]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryAttribute1); + } + + /// The type identifier for this attribute + /// Can be any of the following: + ///
    + ///
  • + /// string + ///
  • + ///
  • + /// boolean + ///
  • + ///
  • + /// integer + ///
  • + ///
  • + /// double + ///
  • + ///
  • + /// string[] + ///
  • + ///
  • + /// boolean[] + ///
  • + ///
  • + /// integer[] + ///
  • + ///
  • + /// double[] + ///
  • + ///
+ NSString? get type { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_type1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - /// Discard profiler session data associated with the given @c SentryId. - /// This only needs to be called in case you haven't collected the profile (and don't intend to). - static void discardProfilerForTrace_(SentryCocoa _lib, SentryId? traceId) { - _lib._objc_msgSend_1059(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_discardProfilerForTrace_1, traceId?._id ?? ffi.nullptr); + /// The actual value stored in this attribute + NSObject get value { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_value1); + return NSObject._(_ret, _lib, retain: true, release: true); } - static ObjCBlock_ffiVoid_SentryAppStartMeasurement - getOnAppStartMeasurementAvailable(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_1060(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_onAppStartMeasurementAvailable1); - return ObjCBlock_ffiVoid_SentryAppStartMeasurement._(_ret, _lib); + /// Creates a string attribute with the specified value. + /// \param value The string value to store in the attribute. + SentryAttribute initWithString_(NSString? value) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithString_1, value?._id ?? ffi.nullptr); + return SentryAttribute._(_ret, _lib, retain: true, release: true); } - static void setOnAppStartMeasurementAvailable( - SentryCocoa _lib, ObjCBlock_ffiVoid_SentryAppStartMeasurement value) { - return _lib._objc_msgSend_1061(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_setOnAppStartMeasurementAvailable_1, value._id); + /// Creates a boolean attribute with the specified value. + /// \param value The boolean value to store in the attribute. + SentryAttribute initWithBoolean_(bool value) { + final _ret = + _lib._objc_msgSend_498(_id, _lib._sel_initWithBoolean_1, value); + return SentryAttribute._(_ret, _lib, retain: true, release: true); } - static SentryAppStartMeasurement? getAppStartMeasurement(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_1062( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_appStartMeasurement1); - return _ret.address == 0 - ? null - : SentryAppStartMeasurement._(_ret, _lib, retain: true, release: true); + /// Creates an integer attribute with the specified value. + /// \param value The integer value to store in the attribute. + SentryAttribute initWithInteger_(int value) { + final _ret = + _lib._objc_msgSend_189(_id, _lib._sel_initWithInteger_1, value); + return SentryAttribute._(_ret, _lib, retain: true, release: true); } - static NSString? getInstallationID(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_20( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_installationID1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// Creates a double attribute with the specified value. + /// \param value The double value to store in the attribute. + SentryAttribute initWithDouble_(double value) { + final _ret = _lib._objc_msgSend_156(_id, _lib._sel_initWithDouble_1, value); + return SentryAttribute._(_ret, _lib, retain: true, release: true); } - static SentryOptions? getOptions(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_1063( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_options1); - return _ret.address == 0 - ? null - : SentryOptions._(_ret, _lib, retain: true, release: true); + /// Creates a double attribute from a float value + /// \param value The float value to store in the attribute. + SentryAttribute initWithFloat_(double value) { + final _ret = _lib._objc_msgSend_1127(_id, _lib._sel_initWithFloat_1, value); + return SentryAttribute._(_ret, _lib, retain: true, release: true); } - /// If enabled, the SDK won't send the app start measurement with the first transaction. Instead, if - /// @c enableAutoPerformanceTracing is enabled, the SDK measures the app start and then calls - /// @c onAppStartMeasurementAvailable. Furthermore, the SDK doesn't set all values for the app start - /// measurement because the HybridSDKs initialize the Cocoa SDK too late to receive all - /// notifications. Instead, the SDK sets the @c appStartDuration to @c 0 and the - /// @c didFinishLaunchingTimestamp to @c timeIntervalSinceReferenceDate. - /// @note Default is @c NO. - static bool getAppStartMeasurementHybridSDKMode(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_appStartMeasurementHybridSDKMode1); + /// Creates a string array attribute with the specified values. + /// \param values The array of string values to store in the attribute. + SentryAttribute initWithStringArray_(NSArray? values) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithStringArray_1, values?._id ?? ffi.nullptr); + return SentryAttribute._(_ret, _lib, retain: true, release: true); } - /// If enabled, the SDK won't send the app start measurement with the first transaction. Instead, if - /// @c enableAutoPerformanceTracing is enabled, the SDK measures the app start and then calls - /// @c onAppStartMeasurementAvailable. Furthermore, the SDK doesn't set all values for the app start - /// measurement because the HybridSDKs initialize the Cocoa SDK too late to receive all - /// notifications. Instead, the SDK sets the @c appStartDuration to @c 0 and the - /// @c didFinishLaunchingTimestamp to @c timeIntervalSinceReferenceDate. - /// @note Default is @c NO. - static void setAppStartMeasurementHybridSDKMode( - SentryCocoa _lib, bool value) { - return _lib._objc_msgSend_495(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_setAppStartMeasurementHybridSDKMode_1, value); + /// Creates a boolean array attribute with the specified values. + /// \param values The array of boolean values to store in the attribute. + SentryAttribute initWithBooleanArray_(NSArray? values) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithBooleanArray_1, values?._id ?? ffi.nullptr); + return SentryAttribute._(_ret, _lib, retain: true, release: true); } - 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); + /// Creates an integer array attribute with the specified values. + /// \param values The array of integer values to store in the attribute. + SentryAttribute initWithIntegerArray_(NSArray? values) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithIntegerArray_1, values?._id ?? ffi.nullptr); + return SentryAttribute._(_ret, _lib, retain: true, release: true); } - static SentryUser userWithDictionary_( - SentryCocoa _lib, NSDictionary? dictionary) { - final _ret = _lib._objc_msgSend_1064(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_userWithDictionary_1, dictionary?._id ?? ffi.nullptr); - return SentryUser._(_ret, _lib, retain: true, release: true); + /// Creates a double array attribute with the specified values. + /// \param values The array of double values to store in the attribute. + SentryAttribute initWithDoubleArray_(NSArray? values) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithDoubleArray_1, values?._id ?? ffi.nullptr); + return SentryAttribute._(_ret, _lib, retain: true, release: true); } - static SentryBreadcrumb breadcrumbWithDictionary_( - SentryCocoa _lib, NSDictionary? dictionary) { - final _ret = _lib._objc_msgSend_1065(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_breadcrumbWithDictionary_1, dictionary?._id ?? ffi.nullptr); - return SentryBreadcrumb._(_ret, _lib, retain: true, release: true); + /// Creates a double attribute from a float value + /// \param values The array of float values to store in the attribute. + SentryAttribute initWithFloatArray_(NSArray? values) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithFloatArray_1, values?._id ?? ffi.nullptr); + return SentryAttribute._(_ret, _lib, retain: true, release: true); } @override - PrivateSentrySDKOnly init() { + SentryAttribute init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return PrivateSentrySDKOnly._(_ret, _lib, retain: true, release: true); + return SentryAttribute._(_ret, _lib, retain: true, release: true); } - static PrivateSentrySDKOnly new1(SentryCocoa _lib) { + static SentryAttribute new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_PrivateSentrySDKOnly1, _lib._sel_new1); - return PrivateSentrySDKOnly._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_SentryAttribute1, _lib._sel_new1); + return SentryAttribute._(_ret, _lib, retain: false, release: true); } - static PrivateSentrySDKOnly allocWithZone_( + static SentryAttribute allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_allocWithZone_1, zone); - return PrivateSentrySDKOnly._(_ret, _lib, retain: false, release: true); + _lib._class_SentryAttribute1, _lib._sel_allocWithZone_1, zone); + return SentryAttribute._(_ret, _lib, retain: false, release: true); } - static PrivateSentrySDKOnly alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_alloc1); - return PrivateSentrySDKOnly._(_ret, _lib, retain: false, release: true); + static SentryAttribute alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryAttribute1, _lib._sel_alloc1); + return SentryAttribute._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -71651,7 +80630,7 @@ class PrivateSentrySDKOnly extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_PrivateSentrySDKOnly1, + _lib._class_SentryAttribute1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -71660,24 +80639,24 @@ class PrivateSentrySDKOnly extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_PrivateSentrySDKOnly1, + _lib._objc_msgSend_15(_lib._class_SentryAttribute1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_PrivateSentrySDKOnly1, + return _lib._objc_msgSend_12(_lib._class_SentryAttribute1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_useStoredAccessor1); + _lib._class_SentryAttribute1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_PrivateSentrySDKOnly1, + _lib._class_SentryAttribute1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -71686,7 +80665,7 @@ class PrivateSentrySDKOnly extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_PrivateSentrySDKOnly1, + _lib._class_SentryAttribute1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -71694,98 +80673,202 @@ class PrivateSentrySDKOnly extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_PrivateSentrySDKOnly1, + _lib._class_SentryAttribute1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_PrivateSentrySDKOnly1, + final _ret = _lib._objc_msgSend_79(_lib._class_SentryAttribute1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_SentryAttribute1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class SentryEnvelope extends _ObjCWrapper { - SentryEnvelope._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// Returns a [SentryEnvelope] that points to the same underlying object as [other]. - static SentryEnvelope castFrom(T other) { - return SentryEnvelope._(other._id, other._lib, retain: true, release: true); - } +void _ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Int32 arg0, ffi.Pointer arg1)>>() + .asFunction< + void Function(int arg0, ffi.Pointer arg1)>()(arg0, arg1); +} - /// Returns a [SentryEnvelope] that wraps the given raw object pointer. - static SentryEnvelope castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return SentryEnvelope._(other, lib, retain: retain, release: release); - } +final _ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_closureRegistry = + {}; +int _ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_closureRegistryIndex = 0; +ffi.Pointer + _ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_registerClosure(Function fn) { + final id = + ++_ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_closureRegistryIndex; + _ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - /// Returns whether [obj] is an instance of [SentryEnvelope]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_SentryEnvelope1); - } +void _ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { + return (_ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_closureRegistry[block + .ref + .target + .address] as void Function(int, ffi.Pointer))(arg0, arg1); } -class SentryId extends _ObjCWrapper { - SentryId._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +class ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt extends _ObjCBlockBase { + ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); - /// Returns a [SentryId] that points to the same underlying object as [other]. - static SentryId castFrom(T other) { - return SentryId._(other._id, other._lib, retain: true, release: true); - } + /// Creates a block from a C function pointer. + ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function(ffi.Int32 arg0, ffi.Pointer arg1)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Int32 arg0, ffi.Pointer arg1)>( + _ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - /// Returns a [SentryId] that wraps the given raw object pointer. - static SentryId castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return SentryId._(other, lib, retain: retain, release: release); + /// Creates a block from a Dart function. + ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt.fromFunction( + SentryCocoa lib, void Function(int arg0, ffi.Pointer arg1) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Int32 arg0, ffi.Pointer arg1)>( + _ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_closureTrampoline) + .cast(), + _ObjCBlock_ffiVoid_SentryLastRunStatus_ffiInt_registerClosure( + fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(int arg0, ffi.Pointer arg1) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Int32 arg0, + ffi.Pointer arg1)>>() + .asFunction< + void Function(ffi.Pointer<_ObjCBlock> block, int arg0, + ffi.Pointer arg1)>()(_id, arg0, arg1); } +} - /// Returns whether [obj] is an instance of [SentryId]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryId2); - } +/// Represents the crash status of the last program execution. +/// Use SentrySDK/lastRunStatus to check if the previous app execution +/// terminated with a crash. Before the SDK is fully initialized, the status +/// is unknown because the crash reporter hasn’t loaded its state yet. +/// note: +/// This enum replaces the crashedLastRun boolean property, which +/// could not distinguish between “did not crash” and “not yet known.” +abstract class SentryLastRunStatus { + /// The SDK hasn’t determined the crash status yet. + /// This is the value returned before SentrySDK/start(configureOptions:) + /// finishes initializing the crash reporter. + static const int SentryLastRunStatusUnknown = 0; + + /// The last program execution did not end with a crash. + static const int SentryLastRunStatusDidNotCrash = 1; + + /// The last program execution ended with a crash. + static const int SentryLastRunStatusDidCrash = 2; } -class SentrySpanId extends _ObjCWrapper { - SentrySpanId._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +ffi.Pointer _ObjCBlock_SentryScope_SentryScope_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>()(arg0); +} - /// Returns a [SentrySpanId] that points to the same underlying object as [other]. - static SentrySpanId castFrom(T other) { - return SentrySpanId._(other._id, other._lib, retain: true, release: true); - } +final _ObjCBlock_SentryScope_SentryScope_closureRegistry = {}; +int _ObjCBlock_SentryScope_SentryScope_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_SentryScope_SentryScope_registerClosure( + Function fn) { + final id = ++_ObjCBlock_SentryScope_SentryScope_closureRegistryIndex; + _ObjCBlock_SentryScope_SentryScope_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} - /// Returns a [SentrySpanId] that wraps the given raw object pointer. - static SentrySpanId castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return SentrySpanId._(other, lib, retain: retain, release: release); - } +ffi.Pointer _ObjCBlock_SentryScope_SentryScope_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock_SentryScope_SentryScope_closureRegistry[ + block.ref.target.address] + as ffi.Pointer Function(ffi.Pointer))(arg0); +} - /// Returns whether [obj] is an instance of [SentrySpanId]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentrySpanId1); +class ObjCBlock_SentryScope_SentryScope extends _ObjCBlockBase { + ObjCBlock_SentryScope_SentryScope._( + ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock_SentryScope_SentryScope.fromFunctionPointer( + SentryCocoa lib, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer arg0)>> + ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_SentryScope_SentryScope_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock_SentryScope_SentryScope.fromFunction(SentryCocoa lib, + ffi.Pointer Function(ffi.Pointer arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Pointer Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock_SentryScope_SentryScope_closureTrampoline) + .cast(), + _ObjCBlock_SentryScope_SentryScope_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + ffi.Pointer call(ffi.Pointer arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); } } -void _ObjCBlock_ffiVoid_SentryAppStartMeasurement_fnPtrTrampoline( +void _ObjCBlock_ffiVoid_SentryProfileOptions_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { return block.ref.target .cast< @@ -71793,30 +80876,29 @@ void _ObjCBlock_ffiVoid_SentryAppStartMeasurement_fnPtrTrampoline( .asFunction arg0)>()(arg0); } -final _ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureRegistry = +final _ObjCBlock_ffiVoid_SentryProfileOptions_closureRegistry = {}; -int _ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_SentryAppStartMeasurement_registerClosure(Function fn) { - final id = - ++_ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureRegistryIndex; - _ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureRegistry[id] = fn; +int _ObjCBlock_ffiVoid_SentryProfileOptions_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_ffiVoid_SentryProfileOptions_registerClosure( + Function fn) { + final id = ++_ObjCBlock_ffiVoid_SentryProfileOptions_closureRegistryIndex; + _ObjCBlock_ffiVoid_SentryProfileOptions_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureTrampoline( +void _ObjCBlock_ffiVoid_SentryProfileOptions_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureRegistry[block + return (_ObjCBlock_ffiVoid_SentryProfileOptions_closureRegistry[block .ref.target.address] as void Function(ffi.Pointer))(arg0); } -class ObjCBlock_ffiVoid_SentryAppStartMeasurement extends _ObjCBlockBase { - ObjCBlock_ffiVoid_SentryAppStartMeasurement._( +class ObjCBlock_ffiVoid_SentryProfileOptions extends _ObjCBlockBase { + ObjCBlock_ffiVoid_SentryProfileOptions._( ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_SentryAppStartMeasurement.fromFunctionPointer( + ObjCBlock_ffiVoid_SentryProfileOptions.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi @@ -71827,24 +80909,23 @@ class ObjCBlock_ffiVoid_SentryAppStartMeasurement extends _ObjCBlockBase { _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_SentryAppStartMeasurement_fnPtrTrampoline) + _ObjCBlock_ffiVoid_SentryProfileOptions_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_SentryAppStartMeasurement.fromFunction( + ObjCBlock_ffiVoid_SentryProfileOptions.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_SentryAppStartMeasurement_closureTrampoline) + _ObjCBlock_ffiVoid_SentryProfileOptions_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_SentryAppStartMeasurement_registerClosure( - fn)), + _ObjCBlock_ffiVoid_SentryProfileOptions_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0) { @@ -71859,211 +80940,403 @@ class ObjCBlock_ffiVoid_SentryAppStartMeasurement extends _ObjCBlockBase { } } -class SentryAppStartMeasurement extends _ObjCWrapper { - SentryAppStartMeasurement._(ffi.Pointer id, SentryCocoa lib, +/// An object containing configuration for the Sentry profiler. +/// warning: +/// Continuous profiling is an experimental feature and may still contain bugs. +/// note: +/// If either SentryOptions.profilesSampleRate or SentryOptions.profilesSampler are +/// set to a non-nil value such that transaction-based profiling is being used, these settings +/// will have no effect, nor will SentrySDK.startProfiler() or SentrySDK.stopProfiler(). +/// note: +/// Profiling is automatically disabled if a thread sanitizer is attached. +class SentryProfileOptions extends NSObject { + SentryProfileOptions._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [SentryAppStartMeasurement] that points to the same underlying object as [other]. - static SentryAppStartMeasurement castFrom(T other) { - return SentryAppStartMeasurement._(other._id, other._lib, + /// Returns a [SentryProfileOptions] that points to the same underlying object as [other]. + static SentryProfileOptions castFrom(T other) { + return SentryProfileOptions._(other._id, other._lib, retain: true, release: true); } - /// Returns a [SentryAppStartMeasurement] that wraps the given raw object pointer. - static SentryAppStartMeasurement castFromPointer( + /// Returns a [SentryProfileOptions] that wraps the given raw object pointer. + static SentryProfileOptions castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return SentryAppStartMeasurement._(other, lib, - retain: retain, release: release); + return SentryProfileOptions._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [SentryAppStartMeasurement]. + /// Returns whether [obj] is an instance of [SentryProfileOptions]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_SentryAppStartMeasurement1); + obj._lib._class_SentryProfileOptions1); } -} -class SentryOptions extends _ObjCWrapper { - SentryOptions._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + /// The mode to use for starting and stopping the profiler, either manually or automatically. + /// warning: + /// Continuous profiling is an experimental feature and may still contain bugs. + /// note: + /// Default: SentryProfileLifecycleManual. + /// note: + /// If either SentryOptions.profilesSampleRate or SentryOptions.profilesSampler are + /// set to a non-nil value such that transaction-based profiling is being used, then setting + /// this property has no effect. + /// note: + /// Profiling is automatically disabled if a thread sanitizer is attached. + int get lifecycle { + return _lib._objc_msgSend_1136(_id, _lib._sel_lifecycle1); + } - /// Returns a [SentryOptions] that points to the same underlying object as [other]. - static SentryOptions castFrom(T other) { - return SentryOptions._(other._id, other._lib, retain: true, release: true); + /// The mode to use for starting and stopping the profiler, either manually or automatically. + /// warning: + /// Continuous profiling is an experimental feature and may still contain bugs. + /// note: + /// Default: SentryProfileLifecycleManual. + /// note: + /// If either SentryOptions.profilesSampleRate or SentryOptions.profilesSampler are + /// set to a non-nil value such that transaction-based profiling is being used, then setting + /// this property has no effect. + /// note: + /// Profiling is automatically disabled if a thread sanitizer is attached. + set lifecycle(int value) { + return _lib._objc_msgSend_1137(_id, _lib._sel_setLifecycle_1, value); } - /// Returns a [SentryOptions] that wraps the given raw object pointer. - static SentryOptions castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return SentryOptions._(other, lib, retain: retain, release: release); + /// The % of user sessions in which to enable profiling. + /// warning: + /// Continuous profiling is an experimental feature and may still contain bugs. + /// note: + /// The decision whether or not to sample profiles is computed using this sample rate + /// when the SDK is started, and applies to any requests to start the profiler–regardless of + /// lifecycle– until the app resigns its active status. It is then reevaluated on subsequent + /// foreground events. The duration of time that a sample decision prevails between + /// launch/foreground and background is referred to as a profile session. + /// note: + /// Backgrounding and foregrounding the app starts a new user session and sampling is + /// re-evaluated. If there is no active trace when the app is backgrounded, profiling stops + /// before the app backgrounds. If there is an active trace and profiling is in-flight when the + /// app is foregrounded again, the same profiling session should continue until the last root + /// span in that trace finishes — this means that the re-evaluated sample rate does not actually + /// take effect until the profiler is started again. + /// note: + /// Profiling is automatically disabled if a thread sanitizer is attached. + double get sessionSampleRate { + return _lib._objc_msgSend_221(_id, _lib._sel_sessionSampleRate1); } - /// Returns whether [obj] is an instance of [SentryOptions]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryOptions1); + /// The % of user sessions in which to enable profiling. + /// warning: + /// Continuous profiling is an experimental feature and may still contain bugs. + /// note: + /// The decision whether or not to sample profiles is computed using this sample rate + /// when the SDK is started, and applies to any requests to start the profiler–regardless of + /// lifecycle– until the app resigns its active status. It is then reevaluated on subsequent + /// foreground events. The duration of time that a sample decision prevails between + /// launch/foreground and background is referred to as a profile session. + /// note: + /// Backgrounding and foregrounding the app starts a new user session and sampling is + /// re-evaluated. If there is no active trace when the app is backgrounded, profiling stops + /// before the app backgrounds. If there is an active trace and profiling is in-flight when the + /// app is foregrounded again, the same profiling session should continue until the last root + /// span in that trace finishes — this means that the re-evaluated sample rate does not actually + /// take effect until the profiler is started again. + /// note: + /// Profiling is automatically disabled if a thread sanitizer is attached. + set sessionSampleRate(double value) { + return _lib._objc_msgSend_819(_id, _lib._sel_setSessionSampleRate_1, value); } -} -class SentryUser extends _ObjCWrapper { - SentryUser._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + /// Start the profiler as early as possible during the app lifecycle to capture more activity + /// during your app’s launch. + /// warning: + /// Continuous profiling is an experimental feature and may still contain bugs. + /// note: + /// sessionSampleRate is evaluated on the previous launch and only takes effect when + /// app start profiling activates on the next launch. + /// note: + /// If lifecycle is manual, profiling is started automatically on startup, but you + /// must manually call SentrySDK.stopProfiler() whenever you app startup to be complete. If + /// lifecycle is trace, profiling is started automatically on startup, and will + /// automatically be stopped when the root span that is associated with app startup ends. + /// note: + /// Profiling is automatically disabled if a thread sanitizer is attached. + bool get profileAppStarts { + return _lib._objc_msgSend_12(_id, _lib._sel_profileAppStarts1); + } - /// Returns a [SentryUser] that points to the same underlying object as [other]. - static SentryUser castFrom(T other) { - return SentryUser._(other._id, other._lib, retain: true, release: true); + /// Start the profiler as early as possible during the app lifecycle to capture more activity + /// during your app’s launch. + /// warning: + /// Continuous profiling is an experimental feature and may still contain bugs. + /// note: + /// sessionSampleRate is evaluated on the previous launch and only takes effect when + /// app start profiling activates on the next launch. + /// note: + /// If lifecycle is manual, profiling is started automatically on startup, but you + /// must manually call SentrySDK.stopProfiler() whenever you app startup to be complete. If + /// lifecycle is trace, profiling is started automatically on startup, and will + /// automatically be stopped when the root span that is associated with app startup ends. + /// note: + /// Profiling is automatically disabled if a thread sanitizer is attached. + set profileAppStarts(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setProfileAppStarts_1, value); } - /// Returns a [SentryUser] that wraps the given raw object pointer. - static SentryUser castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return SentryUser._(other, lib, retain: retain, release: release); + @override + SentryProfileOptions init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryProfileOptions._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [SentryUser]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryUser1); + static SentryProfileOptions new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryProfileOptions1, _lib._sel_new1); + return SentryProfileOptions._(_ret, _lib, retain: false, release: true); } -} -class SentryBreadcrumb extends _ObjCWrapper { - SentryBreadcrumb._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + static SentryProfileOptions allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + final _ret = _lib._objc_msgSend_3( + _lib._class_SentryProfileOptions1, _lib._sel_allocWithZone_1, zone); + return SentryProfileOptions._(_ret, _lib, retain: false, release: true); + } - /// Returns a [SentryBreadcrumb] that points to the same underlying object as [other]. - static SentryBreadcrumb castFrom(T other) { - return SentryBreadcrumb._(other._id, other._lib, - retain: true, release: true); + static SentryProfileOptions alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryProfileOptions1, _lib._sel_alloc1); + return SentryProfileOptions._(_ret, _lib, retain: false, release: true); } - /// Returns a [SentryBreadcrumb] that wraps the given raw object pointer. - static SentryBreadcrumb castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return SentryBreadcrumb._(other, lib, retain: retain, release: release); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + _lib._objc_msgSend_14( + _lib._class_SentryProfileOptions1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - /// Returns whether [obj] is an instance of [SentryBreadcrumb]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_SentryBreadcrumb1); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + _lib._objc_msgSend_15(_lib._class_SentryProfileOptions1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + } + + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryProfileOptions1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryProfileOptions1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryProfileOptions1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryProfileOptions1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + _lib._objc_msgSend_82( + _lib._class_SentryProfileOptions1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); + } + + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_SentryProfileOptions1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); + } + + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryProfileOptions1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSNotificationCenter extends NSObject { - NSNotificationCenter._(ffi.Pointer id, SentryCocoa lib, +/// Different modes for starting and stopping the profiler. +abstract class SentryProfileLifecycle { + /// Profiling is controlled manually, and is independent of transactions & spans. Developers + /// must useSentrySDK.startProfiler() and SentrySDK.stopProfiler() to manage the profile + /// session. If the session is sampled, SentrySDK.startProfiler() will always start + /// profiling. + /// warning: + /// Continuous profiling is an experimental feature and may still contain bugs. + /// note: + /// Profiling is automatically disabled if a thread sanitizer is attached. + static const int SentryProfileLifecycleManual = 0; + + /// Profiling is automatically started when there is at least 1 active root span, and + /// automatically stopped when there are 0 root spans. + /// warning: + /// Continuous profiling is an experimental feature and may still contain bugs. + /// note: + /// This mode only works if tracing is enabled. + /// note: + /// Profiling respects both SentryProfileOptions.profileSessionSampleRate and + /// the existing sampling configuration for tracing + /// (SentryOptions.tracesSampleRate/SentryOptions.tracesSampler). Sampling will be + /// re-evaluated on a per root span basis. + /// note: + /// If there are multiple overlapping root spans, where some are sampled and some or + /// not, profiling will continue until the end of the last sampled root span. Profiling data + /// will not be linked with spans that are not sampled. + /// note: + /// When the last root span finishes, the profiler will continue running until the + /// end of the current timed interval. If a new root span starts before this interval + /// completes, the profiler will instead continue running until the next root span stops, at + /// which time it will attempt to stop again in the same way. + /// note: + /// Profiling is automatically disabled if a thread sanitizer is attached. + static const int SentryProfileLifecycleTrace = 1; +} + +/// Options for experimental features that are subject to change or may be removed in future versions. +class SentryExperimentalOptions extends NSObject { + SentryExperimentalOptions._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSNotificationCenter] that points to the same underlying object as [other]. - static NSNotificationCenter castFrom(T other) { - return NSNotificationCenter._(other._id, other._lib, + /// Returns a [SentryExperimentalOptions] that points to the same underlying object as [other]. + static SentryExperimentalOptions castFrom(T other) { + return SentryExperimentalOptions._(other._id, other._lib, retain: true, release: true); } - /// Returns a [NSNotificationCenter] that wraps the given raw object pointer. - static NSNotificationCenter castFromPointer( + /// Returns a [SentryExperimentalOptions] that wraps the given raw object pointer. + static SentryExperimentalOptions castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSNotificationCenter._(other, lib, retain: retain, release: release); + return SentryExperimentalOptions._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSNotificationCenter]. + /// Returns whether [obj] is an instance of [SentryExperimentalOptions]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_NSNotificationCenter1); + obj._lib._class_SentryExperimentalOptions1); } - static NSNotificationCenter? getDefaultCenter(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_1066( - _lib._class_NSNotificationCenter1, _lib._sel_defaultCenter1); - return _ret.address == 0 - ? null - : NSNotificationCenter._(_ret, _lib, retain: true, release: true); + /// A more reliable way to report unhandled C++ exceptions. + /// This approach hooks into all instances of the __cxa_throw function, which provides a more comprehensive and consistent exception handling across an app’s runtime, regardless of the number of C++ modules or how they’re linked. It helps in obtaining accurate stack traces. + /// note: + /// The mechanism of hooking into __cxa_throw could cause issues with symbolication on iOS due to caching of symbol references. + /// experiment: + /// This is an experimental feature and is therefore disabled by default. We’ll enable it by default in a future major release. + bool get enableUnhandledCPPExceptionsV2 { + return _lib._objc_msgSend_12( + _id, _lib._sel_enableUnhandledCPPExceptionsV21); } - void addObserver_selector_name_object_(NSObject observer, - ffi.Pointer aSelector, NSString aName, NSObject anObject) { - _lib._objc_msgSend_1067(_id, _lib._sel_addObserver_selector_name_object_1, - observer._id, aSelector, aName._id, anObject._id); + /// A more reliable way to report unhandled C++ exceptions. + /// This approach hooks into all instances of the __cxa_throw function, which provides a more comprehensive and consistent exception handling across an app’s runtime, regardless of the number of C++ modules or how they’re linked. It helps in obtaining accurate stack traces. + /// note: + /// The mechanism of hooking into __cxa_throw could cause issues with symbolication on iOS due to caching of symbol references. + /// experiment: + /// This is an experimental feature and is therefore disabled by default. We’ll enable it by default in a future major release. + set enableUnhandledCPPExceptionsV2(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableUnhandledCPPExceptionsV2_1, value); + } + + /// When enabled, the SDK uses a more efficient mechanism for detecting watchdog terminations. + bool get enableWatchdogTerminationsV2 { + return _lib._objc_msgSend_12(_id, _lib._sel_enableWatchdogTerminationsV21); } - void postNotification_(NSNotification? notification) { - _lib._objc_msgSend_1068( - _id, _lib._sel_postNotification_1, notification?._id ?? ffi.nullptr); + /// When enabled, the SDK uses a more efficient mechanism for detecting watchdog terminations. + set enableWatchdogTerminationsV2(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableWatchdogTerminationsV2_1, value); } - void postNotificationName_object_(NSString aName, NSObject anObject) { - _lib._objc_msgSend_494( - _id, _lib._sel_postNotificationName_object_1, aName._id, anObject._id); + /// Enables network detail capture for Session Replay. + /// When enabled, the SDK can capture request and response headers and bodies for network + /// requests during session replay. You must also configure + /// options.sessionReplay.networkDetailAllowUrls with URL patterns to specify which + /// requests should be captured. + bool get enableReplayNetworkDetailsCapturing { + return _lib._objc_msgSend_12( + _id, _lib._sel_enableReplayNetworkDetailsCapturing1); } - void postNotificationName_object_userInfo_( - NSString aName, NSObject anObject, NSDictionary? aUserInfo) { - _lib._objc_msgSend_1069( - _id, - _lib._sel_postNotificationName_object_userInfo_1, - aName._id, - anObject._id, - aUserInfo?._id ?? ffi.nullptr); + /// Enables network detail capture for Session Replay. + /// When enabled, the SDK can capture request and response headers and bodies for network + /// requests during session replay. You must also configure + /// options.sessionReplay.networkDetailAllowUrls with URL patterns to specify which + /// requests should be captured. + set enableReplayNetworkDetailsCapturing(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableReplayNetworkDetailsCapturing_1, value); } - void removeObserver_(NSObject observer) { - _lib._objc_msgSend_15(_id, _lib._sel_removeObserver_1, observer._id); + /// When enabled, the SDK sends a standalone app start transaction instead of attaching app + /// start data to the first UIViewController transaction. + bool get enableStandaloneAppStartTracing { + return _lib._objc_msgSend_12( + _id, _lib._sel_enableStandaloneAppStartTracing1); } - void removeObserver_name_object_( - NSObject observer, NSString aName, NSObject anObject) { - _lib._objc_msgSend_1070(_id, _lib._sel_removeObserver_name_object_1, - observer._id, aName._id, anObject._id); + /// When enabled, the SDK sends a standalone app start transaction instead of attaching app + /// start data to the first UIViewController transaction. + set enableStandaloneAppStartTracing(bool value) { + return _lib._objc_msgSend_447( + _id, _lib._sel_setEnableStandaloneAppStartTracing_1, value); } - NSObject addObserverForName_object_queue_usingBlock_( - NSString name, - NSObject obj, - NSOperationQueue? queue, - ObjCBlock_ffiVoid_NSNotification block) { - final _ret = _lib._objc_msgSend_1071( - _id, - _lib._sel_addObserverForName_object_queue_usingBlock_1, - name._id, - obj._id, - queue?._id ?? ffi.nullptr, - block._id); - return NSObject._(_ret, _lib, retain: true, release: true); + void validateOptions_(NSDictionary? options) { + _lib._objc_msgSend_492( + _id, _lib._sel_validateOptions_1, options?._id ?? ffi.nullptr); } @override - NSNotificationCenter init() { + SentryExperimentalOptions init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSNotificationCenter._(_ret, _lib, retain: true, release: true); + return SentryExperimentalOptions._(_ret, _lib, retain: true, release: true); } - static NSNotificationCenter new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSNotificationCenter1, _lib._sel_new1); - return NSNotificationCenter._(_ret, _lib, retain: false, release: true); + static SentryExperimentalOptions new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryExperimentalOptions1, _lib._sel_new1); + return SentryExperimentalOptions._(_ret, _lib, + retain: false, release: true); } - static NSNotificationCenter allocWithZone_( + static SentryExperimentalOptions allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSNotificationCenter1, _lib._sel_allocWithZone_1, zone); - return NSNotificationCenter._(_ret, _lib, retain: false, release: true); + final _ret = _lib._objc_msgSend_3(_lib._class_SentryExperimentalOptions1, + _lib._sel_allocWithZone_1, zone); + return SentryExperimentalOptions._(_ret, _lib, + retain: false, release: true); } - static NSNotificationCenter alloc(SentryCocoa _lib) { + static SentryExperimentalOptions alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSNotificationCenter1, _lib._sel_alloc1); - return NSNotificationCenter._(_ret, _lib, retain: false, release: true); + _lib._class_SentryExperimentalOptions1, _lib._sel_alloc1); + return SentryExperimentalOptions._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -72072,7 +81345,7 @@ class NSNotificationCenter extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSNotificationCenter1, + _lib._class_SentryExperimentalOptions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -72081,24 +81354,24 @@ class NSNotificationCenter extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSNotificationCenter1, + _lib._objc_msgSend_15(_lib._class_SentryExperimentalOptions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSNotificationCenter1, + return _lib._objc_msgSend_12(_lib._class_SentryExperimentalOptions1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSNotificationCenter1, _lib._sel_useStoredAccessor1); + _lib._class_SentryExperimentalOptions1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSNotificationCenter1, + _lib._class_SentryExperimentalOptions1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -72107,7 +81380,7 @@ class NSNotificationCenter extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSNotificationCenter1, + _lib._class_SentryExperimentalOptions1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -72115,204 +81388,149 @@ class NSNotificationCenter extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSNotificationCenter1, + _lib._class_SentryExperimentalOptions1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSNotificationCenter1, + final _ret = _lib._objc_msgSend_79(_lib._class_SentryExperimentalOptions1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSNotificationCenter1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_SentryExperimentalOptions1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock_ffiVoid_NSNotification_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -final _ObjCBlock_ffiVoid_NSNotification_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSNotification_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSNotification_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSNotification_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSNotification_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_ffiVoid_NSNotification_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSNotification_closureRegistry[block - .ref.target.address] as void Function(ffi.Pointer))(arg0); -} - -class ObjCBlock_ffiVoid_NSNotification extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSNotification._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSNotification.fromFunctionPointer( - SentryCocoa lib, - ffi.Pointer< - ffi - .NativeFunction arg0)>> - ptr) - : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSNotification_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSNotification.fromFunction( - SentryCocoa lib, void Function(ffi.Pointer arg0) fn) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSNotification_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSNotification_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(ffi.Pointer arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>>() - .asFunction< - void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>()(_id, arg0); - } -} - -class SentryCrashWrapper extends NSObject { - SentryCrashWrapper._(ffi.Pointer id, SentryCocoa lib, +class SentryDispatchQueueWrapper extends NSObject { + SentryDispatchQueueWrapper._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [SentryCrashWrapper] that points to the same underlying object as [other]. - static SentryCrashWrapper castFrom(T other) { - return SentryCrashWrapper._(other._id, other._lib, + /// Returns a [SentryDispatchQueueWrapper] that points to the same underlying object as [other]. + static SentryDispatchQueueWrapper castFrom(T other) { + return SentryDispatchQueueWrapper._(other._id, other._lib, retain: true, release: true); } - /// Returns a [SentryCrashWrapper] that wraps the given raw object pointer. - static SentryCrashWrapper castFromPointer( + /// Returns a [SentryDispatchQueueWrapper] that wraps the given raw object pointer. + static SentryDispatchQueueWrapper castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return SentryCrashWrapper._(other, lib, retain: retain, release: release); + return SentryDispatchQueueWrapper._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [SentryCrashWrapper]. + /// Returns whether [obj] is an instance of [SentryDispatchQueueWrapper]. static bool isInstance(_ObjCWrapper obj) { return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_SentryCrashWrapper1); + obj._lib._class_SentryDispatchQueueWrapper1); } - NSDictionary? get systemInfo { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_systemInfo1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + @override + SentryDispatchQueueWrapper init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryDispatchQueueWrapper._(_ret, _lib, + retain: true, release: true); } - SentryCrashWrapper initWithProcessInfoWrapper_(NSObject? processInfoWrapper) { - final _ret = _lib._objc_msgSend_16( - _id, - _lib._sel_initWithProcessInfoWrapper_1, - processInfoWrapper?._id ?? ffi.nullptr); - return SentryCrashWrapper._(_ret, _lib, retain: true, release: true); + SentryDispatchQueueWrapper initWithName_(ffi.Pointer name) { + final _ret = _lib._objc_msgSend_349(_id, _lib._sel_initWithName_1, name); + return SentryDispatchQueueWrapper._(_ret, _lib, + retain: true, release: true); } - @override - SentryCrashWrapper init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return SentryCrashWrapper._(_ret, _lib, retain: true, release: true); + SentryDispatchQueueWrapper initWithName_relativePriority_( + ffi.Pointer name, int relativePriority) { + final _ret = _lib._objc_msgSend_1144( + _id, _lib._sel_initWithName_relativePriority_1, name, relativePriority); + return SentryDispatchQueueWrapper._(_ret, _lib, + retain: true, release: true); } - static SentryCrashWrapper new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_SentryCrashWrapper1, _lib._sel_new1); - return SentryCrashWrapper._(_ret, _lib, retain: false, release: true); + SentryDispatchQueueWrapper initWithName_attributes_( + ffi.Pointer name, NSObject attributes) { + final _ret = _lib._objc_msgSend_1145( + _id, _lib._sel_initWithName_attributes_1, name, attributes._id); + return SentryDispatchQueueWrapper._(_ret, _lib, + retain: true, release: true); } - void startBinaryImageCache() { - _lib._objc_msgSend_1(_id, _lib._sel_startBinaryImageCache1); + SentryDispatchQueueWrapper initWithHighPriority_(ffi.Pointer name) { + final _ret = + _lib._objc_msgSend_349(_id, _lib._sel_initWithHighPriority_1, name); + return SentryDispatchQueueWrapper._(_ret, _lib, + retain: true, release: true); } - void stopBinaryImageCache() { - _lib._objc_msgSend_1(_id, _lib._sel_stopBinaryImageCache1); + NSObject get queue { + final _ret = _lib._objc_msgSend_852(_id, _lib._sel_queue1); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool get crashedLastLaunch { - return _lib._objc_msgSend_12(_id, _lib._sel_crashedLastLaunch1); + void dispatchAsyncWithBlock_(ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_513(_id, _lib._sel_dispatchAsyncWithBlock_1, block._id); } - double get durationFromCrashStateInitToLastCrash { - return _lib._objc_msgSend_155( - _id, _lib._sel_durationFromCrashStateInitToLastCrash1); + void dispatchAsyncOnMainQueueIfNotMainThread_(ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_513( + _id, _lib._sel_dispatchAsyncOnMainQueueIfNotMainThread_1, block._id); } - double get activeDurationSinceLastCrash { - return _lib._objc_msgSend_155(_id, _lib._sel_activeDurationSinceLastCrash1); + void dispatchSyncOnMainQueue_(ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_513(_id, _lib._sel_dispatchSyncOnMainQueue_1, block._id); } - bool get isBeingTraced { - return _lib._objc_msgSend_12(_id, _lib._sel_isBeingTraced1); + void dispatchSyncOnMainQueue_timeout_( + ObjCBlock_ffiVoid block, double timeout) { + _lib._objc_msgSend_1146( + _id, _lib._sel_dispatchSyncOnMainQueue_timeout_1, block._id, timeout); } - bool get isSimulatorBuild { - return _lib._objc_msgSend_12(_id, _lib._sel_isSimulatorBuild1); + void dispatchAfter_block_(double interval, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_1147( + _id, _lib._sel_dispatchAfter_block_1, interval, block._id); } - bool get isApplicationInForeground { - return _lib._objc_msgSend_12(_id, _lib._sel_isApplicationInForeground1); + void dispatchOnce_block_( + ffi.Pointer predicate, ObjCBlock_ffiVoid block) { + _lib._objc_msgSend_1148( + _id, _lib._sel_dispatchOnce_block_1, predicate, block._id); } - int get freeMemorySize { - return _lib._objc_msgSend_1072(_id, _lib._sel_freeMemorySize1); + bool get shouldDispatchCancel { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldDispatchCancel1); } - int get appMemorySize { - return _lib._objc_msgSend_1072(_id, _lib._sel_appMemorySize1); + bool get shouldCreateDispatchBlock { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldCreateDispatchBlock1); } - void enrichScope_(SentryScope? scope) { - _lib._objc_msgSend_1073( - _id, _lib._sel_enrichScope_1, scope?._id ?? ffi.nullptr); + static SentryDispatchQueueWrapper new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryDispatchQueueWrapper1, _lib._sel_new1); + return SentryDispatchQueueWrapper._(_ret, _lib, + retain: false, release: true); } - static SentryCrashWrapper allocWithZone_( + static SentryDispatchQueueWrapper allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_SentryCrashWrapper1, _lib._sel_allocWithZone_1, zone); - return SentryCrashWrapper._(_ret, _lib, retain: false, release: true); + final _ret = _lib._objc_msgSend_3(_lib._class_SentryDispatchQueueWrapper1, + _lib._sel_allocWithZone_1, zone); + return SentryDispatchQueueWrapper._(_ret, _lib, + retain: false, release: true); } - static SentryCrashWrapper alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_SentryCrashWrapper1, _lib._sel_alloc1); - return SentryCrashWrapper._(_ret, _lib, retain: false, release: true); + static SentryDispatchQueueWrapper alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryDispatchQueueWrapper1, _lib._sel_alloc1); + return SentryDispatchQueueWrapper._(_ret, _lib, + retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -72321,7 +81539,7 @@ class SentryCrashWrapper extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_SentryCrashWrapper1, + _lib._class_SentryDispatchQueueWrapper1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -72330,24 +81548,24 @@ class SentryCrashWrapper extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_SentryCrashWrapper1, + _lib._objc_msgSend_15(_lib._class_SentryDispatchQueueWrapper1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_SentryCrashWrapper1, + return _lib._objc_msgSend_12(_lib._class_SentryDispatchQueueWrapper1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_SentryCrashWrapper1, _lib._sel_useStoredAccessor1); + _lib._class_SentryDispatchQueueWrapper1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_SentryCrashWrapper1, + _lib._class_SentryDispatchQueueWrapper1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -72356,7 +81574,7 @@ class SentryCrashWrapper extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_SentryCrashWrapper1, + _lib._class_SentryDispatchQueueWrapper1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -72364,137 +81582,116 @@ class SentryCrashWrapper extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_SentryCrashWrapper1, + _lib._class_SentryDispatchQueueWrapper1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_SentryCrashWrapper1, + final _ret = _lib._objc_msgSend_79(_lib._class_SentryDispatchQueueWrapper1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_SentryCrashWrapper1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_SentryDispatchQueueWrapper1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class SentryScope extends _ObjCWrapper { - SentryScope._(ffi.Pointer id, SentryCocoa lib, +class SentryEnvelope1 extends NSObject { + SentryEnvelope1._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [SentryScope] that points to the same underlying object as [other]. - static SentryScope castFrom(T other) { - return SentryScope._(other._id, other._lib, retain: true, release: true); + /// Returns a [SentryEnvelope1] that points to the same underlying object as [other]. + static SentryEnvelope1 castFrom(T other) { + return SentryEnvelope1._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [SentryScope] that wraps the given raw object pointer. - static SentryScope castFromPointer( + /// Returns a [SentryEnvelope1] that wraps the given raw object pointer. + static SentryEnvelope1 castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return SentryScope._(other, lib, retain: retain, release: release); + return SentryEnvelope1._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [SentryScope]. + /// Returns whether [obj] is an instance of [SentryEnvelope1]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryScope1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryEnvelope11); } -} -class SentryFeedback extends NSObject { - SentryFeedback._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + SentryEnvelope1 initWithId_singleItem_( + SentryId? id, SentryEnvelopeItem? item) { + final _ret = _lib._objc_msgSend_1150(_id, _lib._sel_initWithId_singleItem_1, + id?._id ?? ffi.nullptr, item?._id ?? ffi.nullptr); + return SentryEnvelope1._(_ret, _lib, retain: true, release: true); + } - /// Returns a [SentryFeedback] that points to the same underlying object as [other]. - static SentryFeedback castFrom(T other) { - return SentryFeedback._(other._id, other._lib, retain: true, release: true); + SentryEnvelope1 initWithHeader_singleItem_( + SentryEnvelopeHeader? header, SentryEnvelopeItem? item) { + final _ret = _lib._objc_msgSend_1154( + _id, + _lib._sel_initWithHeader_singleItem_1, + header?._id ?? ffi.nullptr, + item?._id ?? ffi.nullptr); + return SentryEnvelope1._(_ret, _lib, retain: true, release: true); } - /// Returns a [SentryFeedback] that wraps the given raw object pointer. - static SentryFeedback castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return SentryFeedback._(other, lib, retain: retain, release: release); + SentryEnvelope1 initWithId_items_(SentryId? id, NSArray? items) { + final _ret = _lib._objc_msgSend_1155(_id, _lib._sel_initWithId_items_1, + id?._id ?? ffi.nullptr, items?._id ?? ffi.nullptr); + return SentryEnvelope1._(_ret, _lib, retain: true, release: true); } - /// Returns whether [obj] is an instance of [SentryFeedback]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_SentryFeedback1); + SentryEnvelope1 initWithHeader_items_( + SentryEnvelopeHeader? header, NSArray? items) { + final _ret = _lib._objc_msgSend_1156(_id, _lib._sel_initWithHeader_items_1, + header?._id ?? ffi.nullptr, items?._id ?? ffi.nullptr); + return SentryEnvelope1._(_ret, _lib, retain: true, release: true); } - SentryId1? get eventId { - final _ret = _lib._objc_msgSend_1074(_id, _lib._sel_eventId1); + SentryEnvelopeHeader? get header { + final _ret = _lib._objc_msgSend_1157(_id, _lib._sel_header1); return _ret.address == 0 ? null - : SentryId1._(_ret, _lib, retain: true, release: true); + : SentryEnvelopeHeader._(_ret, _lib, retain: true, release: true); } - /// \param associatedEventId The ID for an event you’d like associated with the feedback. - /// - /// \param attachments Data objects for any attachments. Currently the web UI only supports showing one attached image, like for a screenshot. - SentryFeedback - initWithMessage_name_email_source_associatedEventId_attachments_( - NSString? message, - NSString? name, - NSString? email, - int source, - SentryId1? associatedEventId, - NSArray? attachments) { - final _ret = _lib._objc_msgSend_1079( - _id, - _lib._sel_initWithMessage_name_email_source_associatedEventId_attachments_1, - message?._id ?? ffi.nullptr, - name?._id ?? ffi.nullptr, - email?._id ?? ffi.nullptr, - source, - associatedEventId?._id ?? ffi.nullptr, - attachments?._id ?? ffi.nullptr); - return SentryFeedback._(_ret, _lib, retain: true, release: true); + NSArray? get items { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_items1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } @override - SentryFeedback init() { + SentryEnvelope1 init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return SentryFeedback._(_ret, _lib, retain: true, release: true); + return SentryEnvelope1._(_ret, _lib, retain: true, release: true); } - static SentryFeedback new1(SentryCocoa _lib) { + static SentryEnvelope1 new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_SentryFeedback1, _lib._sel_new1); - return SentryFeedback._(_ret, _lib, retain: false, release: true); - } - - /// note: - /// Currently there is only a single attachment possible, for the screenshot, of which there can be only one. - NSArray attachmentsForEnvelope() { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_attachmentsForEnvelope1); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - NSDictionary serialize() { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_serialize1); - return NSDictionary._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_2(_lib._class_SentryEnvelope11, _lib._sel_new1); + return SentryEnvelope1._(_ret, _lib, retain: false, release: true); } - static SentryFeedback allocWithZone_( + static SentryEnvelope1 allocWithZone_( SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_SentryFeedback1, _lib._sel_allocWithZone_1, zone); - return SentryFeedback._(_ret, _lib, retain: false, release: true); + _lib._class_SentryEnvelope11, _lib._sel_allocWithZone_1, zone); + return SentryEnvelope1._(_ret, _lib, retain: false, release: true); } - static SentryFeedback alloc(SentryCocoa _lib) { + static SentryEnvelope1 alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_SentryFeedback1, _lib._sel_alloc1); - return SentryFeedback._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_SentryEnvelope11, _lib._sel_alloc1); + return SentryEnvelope1._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -72503,7 +81700,7 @@ class SentryFeedback extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_SentryFeedback1, + _lib._class_SentryEnvelope11, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -72512,24 +81709,24 @@ class SentryFeedback extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_SentryFeedback1, + _lib._objc_msgSend_15(_lib._class_SentryEnvelope11, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_SentryFeedback1, + return _lib._objc_msgSend_12(_lib._class_SentryEnvelope11, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_SentryFeedback1, _lib._sel_useStoredAccessor1); + _lib._class_SentryEnvelope11, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_SentryFeedback1, + _lib._class_SentryEnvelope11, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -72538,7 +81735,7 @@ class SentryFeedback extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_SentryFeedback1, + _lib._class_SentryEnvelope11, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -72546,119 +81743,138 @@ class SentryFeedback extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_SentryFeedback1, + _lib._class_SentryEnvelope11, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_SentryFeedback1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_SentryEnvelope11, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_SentryFeedback1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_SentryEnvelope11, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class SentryId1 extends NSObject { - SentryId1._(ffi.Pointer id, SentryCocoa lib, +class SentryEnvelopeHeader extends NSObject { + SentryEnvelopeHeader._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [SentryId1] that points to the same underlying object as [other]. - static SentryId1 castFrom(T other) { - return SentryId1._(other._id, other._lib, retain: true, release: true); + /// Returns a [SentryEnvelopeHeader] that points to the same underlying object as [other]. + static SentryEnvelopeHeader castFrom(T other) { + return SentryEnvelopeHeader._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [SentryId1] that wraps the given raw object pointer. - static SentryId1 castFromPointer( + /// Returns a [SentryEnvelopeHeader] that wraps the given raw object pointer. + static SentryEnvelopeHeader castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return SentryId1._(other, lib, retain: retain, release: release); + return SentryEnvelopeHeader._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [SentryId1]. + /// Returns whether [obj] is an instance of [SentryEnvelopeHeader]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryId11); - } - - /// A @c SentryId with an empty UUID “00000000000000000000000000000000”. - static SentryId1? getEmpty(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_1074(_lib._class_SentryId11, _lib._sel_empty1); - return _ret.address == 0 - ? null - : SentryId1._(_ret, _lib, retain: true, release: true); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryEnvelopeHeader1); } - /// Returns a 32 lowercase character hexadecimal string description of the @c SentryId, such as - /// “12c2d058d58442709aa2eca08bf20986”. - NSString? get sentryIdString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_sentryIdString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + /// Initializes a @c SentryEnvelopeHeader object with the specified @c eventId and @c traceContext. + /// @param eventId The identifier of the event. Can be @c nil if no event in the envelope or + /// attachment related to event. + /// @param traceContext Current trace state. + SentryEnvelopeHeader initWithId_traceContext_( + SentryId? eventId, SentryTraceContext? traceContext) { + final _ret = _lib._objc_msgSend_1151( + _id, + _lib._sel_initWithId_traceContext_1, + eventId?._id ?? ffi.nullptr, + traceContext?._id ?? ffi.nullptr); + return SentryEnvelopeHeader._(_ret, _lib, retain: true, release: true); } - /// Creates a @c SentryId with a random UUID. - @override - SentryId1 init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return SentryId1._(_ret, _lib, retain: true, release: true); + SentryEnvelopeHeader initWithId_sdkInfo_( + SentryId? eventId, NSDictionary? sdkInfo) { + final _ret = _lib._objc_msgSend_1152(_id, _lib._sel_initWithId_sdkInfo_1, + eventId?._id ?? ffi.nullptr, sdkInfo?._id ?? ffi.nullptr); + return SentryEnvelopeHeader._(_ret, _lib, retain: true, release: true); } - /// Creates a SentryId with the given UUID. - SentryId1 initWithUuid_(NSUUID? uuid) { - final _ret = _lib._objc_msgSend_1078( - _id, _lib._sel_initWithUuid_1, uuid?._id ?? ffi.nullptr); - return SentryId1._(_ret, _lib, retain: true, release: true); + static SentryEnvelopeHeader empty(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryEnvelopeHeader1, _lib._sel_empty1); + return SentryEnvelopeHeader._(_ret, _lib, retain: true, release: true); } - /// Creates a @c SentryId from a 32 character hexadecimal string without dashes such as - /// “12c2d058d58442709aa2eca08bf20986” or a 36 character hexadecimal string such as such as - /// “12c2d058-d584-4270-9aa2-eca08bf20986”. - /// @return SentryId.empty for invalid strings. - SentryId1 initWithUUIDString_(NSString? uuidString) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithUUIDString_1, uuidString?._id ?? ffi.nullptr); - return SentryId1._(_ret, _lib, retain: true, release: true); + /// The event identifier, if available. + /// An event id exist if the envelope contains an event of items within it are related. i.e + /// Attachments + SentryId? get eventId { + final _ret = _lib._objc_msgSend_1067(_id, _lib._sel_eventId1); + return _ret.address == 0 + ? null + : SentryId._(_ret, _lib, retain: true, release: true); } - bool isEqual_(NSObject object) { - return _lib._objc_msgSend_0(_id, _lib._sel_isEqual_1, object._id); + SentryTraceContext? get traceContext { + final _ret = _lib._objc_msgSend_1153(_id, _lib._sel_traceContext1); + return _ret.address == 0 + ? null + : SentryTraceContext._(_ret, _lib, retain: true, release: true); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + /// The timestamp when the event was sent from the SDK as string in RFC 3339 format. Used + /// for clock drift correction of the event timestamp. The time zone must be UTC. + /// The timestamp should be generated as close as possible to the transmision of the event, + /// so that the delay between sending the envelope and receiving it on the server-side is + /// minimized. + NSDate? get sentAt { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_sentAt1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSDate._(_ret, _lib, retain: true, release: true); } - int get hash { - return _lib._objc_msgSend_10(_id, _lib._sel_hash1); + /// The timestamp when the event was sent from the SDK as string in RFC 3339 format. Used + /// for clock drift correction of the event timestamp. The time zone must be UTC. + /// The timestamp should be generated as close as possible to the transmision of the event, + /// so that the delay between sending the envelope and receiving it on the server-side is + /// minimized. + set sentAt(NSDate? value) { + return _lib._objc_msgSend_540( + _id, _lib._sel_setSentAt_1, value?._id ?? ffi.nullptr); + } + + @override + SentryEnvelopeHeader init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryEnvelopeHeader._(_ret, _lib, retain: true, release: true); } - static SentryId1 new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_SentryId11, _lib._sel_new1); - return SentryId1._(_ret, _lib, retain: false, release: true); + static SentryEnvelopeHeader new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryEnvelopeHeader1, _lib._sel_new1); + return SentryEnvelopeHeader._(_ret, _lib, retain: false, release: true); } - static SentryId1 allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static SentryEnvelopeHeader allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_SentryId11, _lib._sel_allocWithZone_1, zone); - return SentryId1._(_ret, _lib, retain: false, release: true); + _lib._class_SentryEnvelopeHeader1, _lib._sel_allocWithZone_1, zone); + return SentryEnvelopeHeader._(_ret, _lib, retain: false, release: true); } - static SentryId1 alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_SentryId11, _lib._sel_alloc1); - return SentryId1._(_ret, _lib, retain: false, release: true); + static SentryEnvelopeHeader alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryEnvelopeHeader1, _lib._sel_alloc1); + return SentryEnvelopeHeader._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -72667,7 +81883,7 @@ class SentryId1 extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_SentryId11, + _lib._class_SentryEnvelopeHeader1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -72676,24 +81892,24 @@ class SentryId1 extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_SentryId11, + _lib._objc_msgSend_15(_lib._class_SentryEnvelopeHeader1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_SentryId11, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_SentryEnvelopeHeader1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_SentryId11, _lib._sel_useStoredAccessor1); + _lib._class_SentryEnvelopeHeader1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_SentryId11, + _lib._class_SentryEnvelopeHeader1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -72702,7 +81918,7 @@ class SentryId1 extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_SentryId11, + _lib._class_SentryEnvelopeHeader1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -72710,100 +81926,117 @@ class SentryId1 extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_SentryId11, + _lib._class_SentryEnvelopeHeader1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_SentryId11, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_SentryEnvelopeHeader1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_SentryId11, _lib._sel_classForKeyedUnarchiver1); + _lib._class_SentryEnvelopeHeader1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSUUID extends NSObject { - NSUUID._(ffi.Pointer id, SentryCocoa lib, +class SentryTraceContext extends _ObjCWrapper { + SentryTraceContext._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [NSUUID] that points to the same underlying object as [other]. - static NSUUID castFrom(T other) { - return NSUUID._(other._id, other._lib, retain: true, release: true); + /// Returns a [SentryTraceContext] that points to the same underlying object as [other]. + static SentryTraceContext castFrom(T other) { + return SentryTraceContext._(other._id, other._lib, + retain: true, release: true); } - /// Returns a [NSUUID] that wraps the given raw object pointer. - static NSUUID castFromPointer(SentryCocoa lib, ffi.Pointer other, + /// Returns a [SentryTraceContext] that wraps the given raw object pointer. + static SentryTraceContext castFromPointer( + SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return NSUUID._(other, lib, retain: retain, release: release); + return SentryTraceContext._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSUUID]. + /// Returns whether [obj] is an instance of [SentryTraceContext]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSUUID1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryTraceContext1); } +} - static NSUUID UUID(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSUUID1, _lib._sel_UUID1); - return NSUUID._(_ret, _lib, retain: true, release: true); +class SentryFileContents extends NSObject { + SentryFileContents._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryFileContents] that points to the same underlying object as [other]. + static SentryFileContents castFrom(T other) { + return SentryFileContents._(other._id, other._lib, + retain: true, release: true); } - @override - NSUUID init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSUUID._(_ret, _lib, retain: true, release: true); + /// Returns a [SentryFileContents] that wraps the given raw object pointer. + static SentryFileContents castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryFileContents._(other, lib, retain: retain, release: release); } - NSUUID initWithUUIDString_(NSString? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithUUIDString_1, string?._id ?? ffi.nullptr); - return NSUUID._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [SentryFileContents]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryFileContents1); } - NSUUID initWithUUIDBytes_(ffi.Pointer bytes) { - final _ret = - _lib._objc_msgSend_1075(_id, _lib._sel_initWithUUIDBytes_1, bytes); - return NSUUID._(_ret, _lib, retain: true, release: true); + NSString? get path { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_path1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - void getUUIDBytes_(ffi.Pointer uuid) { - _lib._objc_msgSend_1076(_id, _lib._sel_getUUIDBytes_1, uuid); + NSData? get contents { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_contents1); + return _ret.address == 0 + ? null + : NSData._(_ret, _lib, retain: true, release: true); } - int compare_(NSUUID? otherUUID) { - return _lib._objc_msgSend_1077( - _id, _lib._sel_compare_1, otherUUID?._id ?? ffi.nullptr); + SentryFileContents initWithPath_contents_(NSString? path, NSData? contents) { + final _ret = _lib._objc_msgSend_188(_id, _lib._sel_initWithPath_contents_1, + path?._id ?? ffi.nullptr, contents?._id ?? ffi.nullptr); + return SentryFileContents._(_ret, _lib, retain: true, release: true); } - NSString? get UUIDString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_UUIDString1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + @override + SentryFileContents init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryFileContents._(_ret, _lib, retain: true, release: true); } - static NSUUID new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSUUID1, _lib._sel_new1); - return NSUUID._(_ret, _lib, retain: false, release: true); + static SentryFileContents new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryFileContents1, _lib._sel_new1); + return SentryFileContents._(_ret, _lib, retain: false, release: true); } - static NSUUID allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static SentryFileContents allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_NSUUID1, _lib._sel_allocWithZone_1, zone); - return NSUUID._(_ret, _lib, retain: false, release: true); + _lib._class_SentryFileContents1, _lib._sel_allocWithZone_1, zone); + return SentryFileContents._(_ret, _lib, retain: false, release: true); } - static NSUUID alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSUUID1, _lib._sel_alloc1); - return NSUUID._(_ret, _lib, retain: false, release: true); + static SentryFileContents alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryFileContents1, _lib._sel_alloc1); + return SentryFileContents._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -72812,7 +82045,7 @@ class NSUUID extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_NSUUID1, + _lib._class_SentryFileContents1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -72821,24 +82054,24 @@ class NSUUID extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSUUID1, + _lib._objc_msgSend_15(_lib._class_SentryFileContents1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSUUID1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_SentryFileContents1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSUUID1, _lib._sel_useStoredAccessor1); + _lib._class_SentryFileContents1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSUUID1, + _lib._class_SentryFileContents1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -72847,7 +82080,7 @@ class NSUUID extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSUUID1, + _lib._class_SentryFileContents1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -72855,155 +82088,172 @@ class NSUUID extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_NSUUID1, + _lib._class_SentryFileContents1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); } static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSUUID1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_SentryFileContents1, + _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSUUID1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_SentryFileContents1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class SentryFeedbackSource { - static const int SentryFeedbackSourceWidget = 0; - static const int SentryFeedbackSourceCustom = 1; -} - -/// A structured log entry that captures log data with associated attribute metadata. -/// Use the options.beforeSendLog callback to modify or filter log data. -class SentryLog extends NSObject { - SentryLog._(ffi.Pointer id, SentryCocoa lib, +class SentryAppState extends NSObject { + SentryAppState._(ffi.Pointer id, SentryCocoa lib, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// Returns a [SentryLog] that points to the same underlying object as [other]. - static SentryLog castFrom(T other) { - return SentryLog._(other._id, other._lib, retain: true, release: true); + /// Returns a [SentryAppState] that points to the same underlying object as [other]. + static SentryAppState castFrom(T other) { + return SentryAppState._(other._id, other._lib, retain: true, release: true); } - /// Returns a [SentryLog] that wraps the given raw object pointer. - static SentryLog castFromPointer( + /// Returns a [SentryAppState] that wraps the given raw object pointer. + static SentryAppState castFromPointer( SentryCocoa lib, ffi.Pointer other, {bool retain = false, bool release = false}) { - return SentryLog._(other, lib, retain: retain, release: release); + return SentryAppState._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [SentryLog]. + /// Returns whether [obj] is an instance of [SentryAppState]. static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryLog1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryAppState1); } - /// The timestamp when the log event occurred - NSDate? get timestamp { - final _ret = _lib._objc_msgSend_162(_id, _lib._sel_timestamp1); + NSString? get releaseName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_releaseName1); return _ret.address == 0 ? null - : NSDate._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - /// The timestamp when the log event occurred - set timestamp(NSDate? value) { - return _lib._objc_msgSend_528( - _id, _lib._sel_setTimestamp_1, value?._id ?? ffi.nullptr); + NSString? get osVersion { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_osVersion1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - /// The trace ID to associate this log with distributed tracing - SentryId1? get traceId { - final _ret = _lib._objc_msgSend_1074(_id, _lib._sel_traceId1); + NSString? get vendorId { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_vendorId1); return _ret.address == 0 ? null - : SentryId1._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - /// The trace ID to associate this log with distributed tracing - set traceId(SentryId1? value) { - return _lib._objc_msgSend_1080( - _id, _lib._sel_setTraceId_1, value?._id ?? ffi.nullptr); + bool get isDebugging { + return _lib._objc_msgSend_12(_id, _lib._sel_isDebugging1); } - /// The severity level of the log entry - int get level { - return _lib._objc_msgSend_1081(_id, _lib._sel_level1); + /// The boot time of the system rounded down to seconds. As the precision of the serialization is + /// only milliseconds and a precision of seconds is enough we round down to seconds. With this we + /// avoid getting different dates before and after serialization. + /// warning: + /// We must not send this information off device because Apple forbids that. + /// We are allowed send the amount of time that has elapsed between events that occurred within the + /// app though. For more information see + /// https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api#4278394. + NSDate? get systemBootTimestamp { + final _ret = _lib._objc_msgSend_162(_id, _lib._sel_systemBootTimestamp1); + return _ret.address == 0 + ? null + : NSDate._(_ret, _lib, retain: true, release: true); } - /// The severity level of the log entry - set level(int value) { - return _lib._objc_msgSend_1082(_id, _lib._sel_setLevel_1, value); + bool get isActive { + return _lib._objc_msgSend_12(_id, _lib._sel_isActive1); } - /// The main log message content - NSString? get body { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_body1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set isActive(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setIsActive_1, value); } - /// The main log message content - set body(NSString? value) { - return _lib._objc_msgSend_512( - _id, _lib._sel_setBody_1, value?._id ?? ffi.nullptr); + bool get wasTerminated { + return _lib._objc_msgSend_12(_id, _lib._sel_wasTerminated1); } - /// A dictionary of structured attributes added to the log entry - NSDictionary? get attributes { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_attributes1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + set wasTerminated(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setWasTerminated_1, value); } - /// A dictionary of structured attributes added to the log entry - set attributes(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setAttributes_1, value?._id ?? ffi.nullptr); + bool get isANROngoing { + return _lib._objc_msgSend_12(_id, _lib._sel_isANROngoing1); } - /// Numeric representation of the severity level (Int) - NSNumber? get severityNumber { - final _ret = _lib._objc_msgSend_198(_id, _lib._sel_severityNumber1); - return _ret.address == 0 - ? null - : NSNumber._(_ret, _lib, retain: true, release: true); + set isANROngoing(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setIsANROngoing_1, value); } - /// Numeric representation of the severity level (Int) - set severityNumber(NSNumber? value) { - return _lib._objc_msgSend_623( - _id, _lib._sel_setSeverityNumber_1, value?._id ?? ffi.nullptr); + bool get isSDKRunning { + return _lib._objc_msgSend_12(_id, _lib._sel_isSDKRunning1); + } + + set isSDKRunning(bool value) { + return _lib._objc_msgSend_447(_id, _lib._sel_setIsSDKRunning_1, value); + } + + SentryAppState + initWithReleaseName_osVersion_vendorId_isDebugging_systemBootTimestamp_( + NSString? releaseName, + NSString? osVersion, + NSString? vendorId, + bool isDebugging, + NSDate? systemBootTimestamp) { + final _ret = _lib._objc_msgSend_1162( + _id, + _lib._sel_initWithReleaseName_osVersion_vendorId_isDebugging_systemBootTimestamp_1, + releaseName?._id ?? ffi.nullptr, + osVersion?._id ?? ffi.nullptr, + vendorId?._id ?? ffi.nullptr, + isDebugging, + systemBootTimestamp?._id ?? ffi.nullptr); + return SentryAppState._(_ret, _lib, retain: true, release: true); + } + + SentryAppState initWithJSONObject_(NSDictionary? jsonObject) { + final _ret = _lib._objc_msgSend_149( + _id, _lib._sel_initWithJSONObject_1, jsonObject?._id ?? ffi.nullptr); + return SentryAppState._(_ret, _lib, retain: true, release: true); + } + + NSDictionary serialize() { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_serialize1); + return NSDictionary._(_ret, _lib, retain: true, release: true); } @override - SentryLog init() { + SentryAppState init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return SentryLog._(_ret, _lib, retain: true, release: true); + return SentryAppState._(_ret, _lib, retain: true, release: true); } - static SentryLog new1(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_SentryLog1, _lib._sel_new1); - return SentryLog._(_ret, _lib, retain: false, release: true); + static SentryAppState new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryAppState1, _lib._sel_new1); + return SentryAppState._(_ret, _lib, retain: false, release: true); } - static SentryLog allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { + static SentryAppState allocWithZone_( + SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { final _ret = _lib._objc_msgSend_3( - _lib._class_SentryLog1, _lib._sel_allocWithZone_1, zone); - return SentryLog._(_ret, _lib, retain: false, release: true); + _lib._class_SentryAppState1, _lib._sel_allocWithZone_1, zone); + return SentryAppState._(_ret, _lib, retain: false, release: true); } - static SentryLog alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_SentryLog1, _lib._sel_alloc1); - return SentryLog._(_ret, _lib, retain: false, release: true); + static SentryAppState alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryAppState1, _lib._sel_alloc1); + return SentryAppState._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -73012,7 +82262,7 @@ class SentryLog extends NSObject { ffi.Pointer aSelector, NSObject anArgument) { _lib._objc_msgSend_14( - _lib._class_SentryLog1, + _lib._class_SentryAppState1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -73021,24 +82271,24 @@ class SentryLog extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_SentryLog1, + _lib._objc_msgSend_15(_lib._class_SentryAppState1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_SentryLog1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_SentryAppState1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_SentryLog1, _lib._sel_useStoredAccessor1); + _lib._class_SentryAppState1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_SentryLog1, + _lib._class_SentryAppState1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -73047,7 +82297,7 @@ class SentryLog extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_SentryLog1, + _lib._class_SentryAppState1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } @@ -73055,7 +82305,7 @@ class SentryLog extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { _lib._objc_msgSend_82( - _lib._class_SentryLog1, + _lib._class_SentryAppState1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -73063,25 +82313,13 @@ class SentryLog extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_SentryLog1, _lib._sel_classFallbacksForKeyedArchiver1); + _lib._class_SentryAppState1, _lib._sel_classFallbacksForKeyedArchiver1); return NSArray._(_ret, _lib, retain: true, release: true); } static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_SentryLog1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_SentryAppState1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } - -/// Represents the severity level of a structured log entry. -/// Log levels are ordered by severity from least (trace) to most severe (fatal). -/// Each level corresponds to a numeric severity value following the OpenTelemetry specification. -abstract class SentryStructuredLogLevel { - static const int SentryStructuredLogLevelTrace = 0; - static const int SentryStructuredLogLevelDebug = 1; - static const int SentryStructuredLogLevelInfo = 2; - static const int SentryStructuredLogLevelWarn = 3; - static const int SentryStructuredLogLevelError = 4; - static const int SentryStructuredLogLevelFatal = 5; -} diff --git a/packages/flutter/lib/src/native/cocoa/sentry_native_cocoa.dart b/packages/flutter/lib/src/native/cocoa/sentry_native_cocoa.dart index 9761266205..d3e2ba0805 100644 --- a/packages/flutter/lib/src/native/cocoa/sentry_native_cocoa.dart +++ b/packages/flutter/lib/src/native/cocoa/sentry_native_cocoa.dart @@ -74,7 +74,7 @@ class SentryNativeCocoa extends SentryNativeChannel { @override int? startProfiler(SentryId traceId) => tryCatchSync('startProfiler', () { - final cSentryId = cocoa.SentryId1.alloc(_lib) + final cSentryId = cocoa.SentryId.alloc(_lib) ..initWithUUIDString_(cocoa.NSString(_lib, traceId.toString())); final startTime = cocoa.PrivateSentrySDKOnly.startProfilerForTrace_(_lib, cSentryId); diff --git a/packages/flutter/scripts/generate-cocoa-bindings.sh b/packages/flutter/scripts/generate-cocoa-bindings.sh index 08fc737675..8dde93c4e8 100755 --- a/packages/flutter/scripts/generate-cocoa-bindings.sh +++ b/packages/flutter/scripts/generate-cocoa-bindings.sh @@ -25,6 +25,4 @@ mv "$temp/$subdir" $temp/Sentry.framework binding="lib/src/native/cocoa/binding.dart" dart run ffigen --config ffi-cocoa.yaml -sed -i.bak 's|static int startProfilerForTrace_(SentryCocoa _lib, SentryId? traceId)|static int startProfilerForTrace_(SentryCocoa _lib, SentryId1? traceId)|g' $binding -rm $binding.bak dart format $binding diff --git a/scripts/build-macos-example.sh b/scripts/build-macos-example.sh new file mode 100755 index 0000000000..793ca5b39a --- /dev/null +++ b/scripts/build-macos-example.sh @@ -0,0 +1,38 @@ +#!/bin/bash +set -euo pipefail + +# Build the Flutter example for macOS. +# +# Flutter derives the local SwiftPM package identity from the plugin directory +# basename on macOS. Our package lives in packages/flutter, so Xcode resolves it +# as "flutter" and the build fails with: +# "unable to override package 'sentry_flutter' because its identity 'flutter' +# doesn't match override's identity (directory name) 'sentry_flutter'" +# We temporarily rename the package directory so the basename matches the pub +# name (sentry_flutter), build, then always rename it back -- even on failure. +# +# Any extra arguments are forwarded to `flutter build macos`, e.g.: +# ./scripts/build-macos-example.sh --debug + +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd "$SCRIPT_DIR/.." + +if command -v fvm >/dev/null 2>&1; then + flutter_cmd="fvm flutter" +else + flutter_cmd="flutter" +fi + +restore() { + if [ -d packages/sentry_flutter ]; then + mv packages/sentry_flutter packages/flutter + fi +} +trap restore EXIT + +mv packages/flutter packages/sentry_flutter +( + cd packages/sentry_flutter/example + $flutter_cmd pub get + $flutter_cmd build macos "$@" +) From 0a9347a73706a5336c0079392ee4fe7e8ec7e011 Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Mon, 15 Jun 2026 13:04:00 -0700 Subject: [PATCH 2/5] fix(flutter): Depend on Sentry pod and fix cocoa 9 tests sentry-cocoa 9 removed the Sentry/HybridSDK CocoaPods subspec; the hybrid public headers now ship with the default Core subspec. Depend on `Sentry` instead so pod resolution and pod-lint succeed, and update update-cocoa.sh to match. Bump the min_version_test iOS deployment target to 15 (cocoa 9's floor). Update the loadContexts integration test: cocoa 9 exposes no accessor for installed integration names, so native integrations are no longer reported. Assert their absence and leave a TODO to restore once cocoa adds the accessor. Co-Authored-By: Claude Opus 4.8 (1M context) --- min_version_test/ios/Podfile | 4 ++-- .../ios/Runner.xcodeproj/project.pbxproj | 6 +++--- .../integration_test/integration_test.dart | 17 ++++++----------- packages/flutter/ios/sentry_flutter.podspec | 2 +- .../sentry_flutter/SentryFlutterPlugin.swift | 6 ++++++ packages/flutter/scripts/update-cocoa.sh | 4 ++-- 6 files changed, 20 insertions(+), 19 deletions(-) diff --git a/min_version_test/ios/Podfile b/min_version_test/ios/Podfile index 0a4d76d535..9ad33d7690 100644 --- a/min_version_test/ios/Podfile +++ b/min_version_test/ios/Podfile @@ -1,5 +1,5 @@ # Uncomment this line to define a global platform for your project -platform :ios, '12.0' +platform :ios, '15.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' @@ -38,7 +38,7 @@ post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) target.build_configurations.each do |config| - config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0' + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0' end end end diff --git a/min_version_test/ios/Runner.xcodeproj/project.pbxproj b/min_version_test/ios/Runner.xcodeproj/project.pbxproj index de8583fb66..d5d1710267 100644 --- a/min_version_test/ios/Runner.xcodeproj/project.pbxproj +++ b/min_version_test/ios/Runner.xcodeproj/project.pbxproj @@ -340,7 +340,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -418,7 +418,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -467,7 +467,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; diff --git a/packages/flutter/example/integration_test/integration_test.dart b/packages/flutter/example/integration_test/integration_test.dart index 10ec5e3c23..883c55991f 100644 --- a/packages/flutter/example/integration_test/integration_test.dart +++ b/packages/flutter/example/integration_test/integration_test.dart @@ -741,17 +741,12 @@ void main() { // Top-level iOS-specific sections // integrations - expect(contexts.containsKey('integrations'), isTrue, - reason: 'Integrations section missing'); - final integrations = contexts['integrations']; - expect(integrations, isA()); - expect((integrations as List), isNotEmpty); - expect(integrations.first, isA()); - final List integrationsList = integrations; - expect(integrationsList.contains('SentryCrashIntegration'), isTrue, - reason: 'Critical integration SentryCrashIntegration missing'); - expect(integrationsList.contains('SentryReplayIntegration'), isFalse, - reason: 'SentryReplayIntegration should not be present'); + // TODO(cocoa): sentry-cocoa 9 removed the API to enumerate installed + // native integrations, so they are no longer reported via loadContexts. + // Restore reporting and this assertion once cocoa exposes the installed + // integration names again (the cocoa team is adding the accessor). + expect(contexts.containsKey('integrations'), isFalse, + reason: 'Native integrations are not reported on sentry-cocoa 9'); // package info expect(contexts.containsKey('package'), isTrue, diff --git a/packages/flutter/ios/sentry_flutter.podspec b/packages/flutter/ios/sentry_flutter.podspec index 16347c45d2..b01d6b2d2e 100644 --- a/packages/flutter/ios/sentry_flutter.podspec +++ b/packages/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 = 'sentry_flutter/Sources/**/*' s.public_header_files = 'sentry_flutter/Sources/**/*.h' - s.dependency 'Sentry/HybridSDK', '9.17.1' + s.dependency 'Sentry', '9.17.1' s.ios.dependency 'Flutter' s.osx.dependency 'FlutterMacOS' s.ios.deployment_target = '15.0' diff --git a/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter/SentryFlutterPlugin.swift b/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter/SentryFlutterPlugin.swift index c2d34bca8b..2aa757266f 100644 --- a/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter/SentryFlutterPlugin.swift +++ b/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter/SentryFlutterPlugin.swift @@ -214,6 +214,12 @@ public class SentryFlutterPlugin: NSObject, FlutterPlugin { infos["user"] = ["id": PrivateSentrySDKOnly.installationID] } + // TODO(cocoa): sentry-cocoa 9 removed `SentryOptions.integrations` and + // exposes no accessor for installed integration names, so we no longer + // report `infos["integrations"]`. Restore this (filtering out + // SentrySessionReplayIntegration) once cocoa exposes the installed + // integration names again (the cocoa team is adding the accessor). + #if SENTRY_FLUTTER_SPM infos["features"] = ["SwiftPackageManager"] #else diff --git a/packages/flutter/scripts/update-cocoa.sh b/packages/flutter/scripts/update-cocoa.sh index 2f204a14d1..ed2e8ff6af 100755 --- a/packages/flutter/scripts/update-cocoa.sh +++ b/packages/flutter/scripts/update-cocoa.sh @@ -6,7 +6,7 @@ cd $(dirname "$0")/../ios get_podspec_version() { local file='sentry_flutter.podspec' local content=$(cat $file) - regex="('Sentry/HybridSDK', *)'([0-9\.]+(\-[a-z0-9\.]+)?)'" + regex="('Sentry', *)'([0-9\.]+(\-[a-z0-9\.]+)?)'" if ! [[ $content =~ $regex ]]; then echo "Failed to find the plugin version in $file" exit 1 @@ -18,7 +18,7 @@ get_podspec_version() { set_podspec_version() { local file='sentry_flutter.podspec' local content=$(cat $file) - regex="('Sentry/HybridSDK', *)'([0-9\.]+(\-[a-z0-9\.]+)?)'" + regex="('Sentry', *)'([0-9\.]+(\-[a-z0-9\.]+)?)'" if ! [[ $content =~ $regex ]]; then echo "Failed to find the plugin version in $file" exit 1 From 80f6e1de273b2ffc20f8f3efe4e81b2ba2d05196 Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Mon, 15 Jun 2026 13:08:29 -0700 Subject: [PATCH 3/5] fix(flutter): Silence swiftlint todo rule on cocoa integrations note The swift-lint CI job runs with --strict, which promotes the default todo rule to an error. Keep the tracked TODO about restoring native integration reporting and suppress just that line with swiftlint:disable:next todo. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../Sources/sentry_flutter/SentryFlutterPlugin.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter/SentryFlutterPlugin.swift b/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter/SentryFlutterPlugin.swift index 2aa757266f..5179e29eb3 100644 --- a/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter/SentryFlutterPlugin.swift +++ b/packages/flutter/ios/sentry_flutter/Sources/sentry_flutter/SentryFlutterPlugin.swift @@ -214,6 +214,7 @@ public class SentryFlutterPlugin: NSObject, FlutterPlugin { infos["user"] = ["id": PrivateSentrySDKOnly.installationID] } + // swiftlint:disable:next todo // TODO(cocoa): sentry-cocoa 9 removed `SentryOptions.integrations` and // exposes no accessor for installed integration names, so we no longer // report `infos["integrations"]`. Restore this (filtering out From 0041b811c9aaf7a8ec0bda37f7104756888999f0 Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Mon, 15 Jun 2026 14:04:15 -0700 Subject: [PATCH 4/5] build(flutter): Harden macos build script and bump microbenchmarks targets Add preflight checks to build-macos-example.sh so it refuses to run when packages/sentry_flutter already exists (the rename would otherwise nest the directory and the restore trap would corrupt the tree) or when packages/flutter is missing. Install the EXIT trap only after the rename succeeds. Bump the microbenchmarks iOS and macOS deployment targets to 15.0 / 12.0 to match the cocoa 9 minimums now required by the sentry_flutter podspec, keeping them consistent with the example app. Co-Authored-By: Claude Opus 4.8 (1M context) --- packages/flutter/microbenchmarks/ios/Podfile | 2 +- .../ios/Runner.xcodeproj/project.pbxproj | 6 +++--- packages/flutter/microbenchmarks/macos/Podfile | 2 +- .../macos/Runner.xcodeproj/project.pbxproj | 6 +++--- scripts/build-macos-example.sh | 17 ++++++++++++++++- 5 files changed, 24 insertions(+), 9 deletions(-) diff --git a/packages/flutter/microbenchmarks/ios/Podfile b/packages/flutter/microbenchmarks/ios/Podfile index d97f17e223..4871635195 100644 --- a/packages/flutter/microbenchmarks/ios/Podfile +++ b/packages/flutter/microbenchmarks/ios/Podfile @@ -1,5 +1,5 @@ # Uncomment this line to define a global platform for your project -# platform :ios, '12.0' +platform :ios, '15.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/packages/flutter/microbenchmarks/ios/Runner.xcodeproj/project.pbxproj b/packages/flutter/microbenchmarks/ios/Runner.xcodeproj/project.pbxproj index 2f8e9549fd..eb529beabf 100644 --- a/packages/flutter/microbenchmarks/ios/Runner.xcodeproj/project.pbxproj +++ b/packages/flutter/microbenchmarks/ios/Runner.xcodeproj/project.pbxproj @@ -455,7 +455,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -584,7 +584,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -635,7 +635,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; diff --git a/packages/flutter/microbenchmarks/macos/Podfile b/packages/flutter/microbenchmarks/macos/Podfile index c795730db8..b15254e330 100644 --- a/packages/flutter/microbenchmarks/macos/Podfile +++ b/packages/flutter/microbenchmarks/macos/Podfile @@ -1,4 +1,4 @@ -platform :osx, '10.14' +platform :osx, '12.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/packages/flutter/microbenchmarks/macos/Runner.xcodeproj/project.pbxproj b/packages/flutter/microbenchmarks/macos/Runner.xcodeproj/project.pbxproj index c8c58eb50f..c1ec817ef1 100644 --- a/packages/flutter/microbenchmarks/macos/Runner.xcodeproj/project.pbxproj +++ b/packages/flutter/microbenchmarks/macos/Runner.xcodeproj/project.pbxproj @@ -461,7 +461,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; + MACOSX_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; @@ -543,7 +543,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; + MACOSX_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; @@ -593,7 +593,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; + MACOSX_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; diff --git a/scripts/build-macos-example.sh b/scripts/build-macos-example.sh index 793ca5b39a..3c00eacb46 100755 --- a/scripts/build-macos-example.sh +++ b/scripts/build-macos-example.sh @@ -23,14 +23,29 @@ else flutter_cmd="flutter" fi +# Preflight: refuse to run from an unexpected state. If packages/sentry_flutter +# already exists, `mv packages/flutter packages/sentry_flutter` would nest the +# directory instead of renaming it, which restore would then corrupt further. +if [ -e packages/sentry_flutter ]; then + echo "error: packages/sentry_flutter already exists; refusing to rename." >&2 + echo "Move or remove it (it may be left over from an interrupted run)." >&2 + exit 1 +fi +if [ ! -d packages/flutter ]; then + echo "error: packages/flutter not found; run from the repo root." >&2 + exit 1 +fi + restore() { if [ -d packages/sentry_flutter ]; then mv packages/sentry_flutter packages/flutter fi } -trap restore EXIT +# Install the trap only after the rename succeeds so restore never runs against +# a directory it didn't create. mv packages/flutter packages/sentry_flutter +trap restore EXIT ( cd packages/sentry_flutter/example $flutter_cmd pub get From b550b7f1b278e1bbdc4cb4b25adc68bcdf07d82b Mon Sep 17 00:00:00 2001 From: Giancarlo Buenaflor Date: Mon, 22 Jun 2026 13:15:26 +0200 Subject: [PATCH 5/5] ci(flutter): Update cocoa dep pattern to 9.x for v10 Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/update-deps.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-deps.yml b/.github/workflows/update-deps.yml index d770dbcd97..537aaa1a14 100644 --- a/.github/workflows/update-deps.yml +++ b/.github/workflows/update-deps.yml @@ -40,7 +40,7 @@ jobs: with: path: packages/flutter/scripts/update-cocoa.sh name: Cocoa SDK - pattern: '^8\.' # Only update Cocoa SDK 8.x.x until the next Sentry Flutter major v10 + pattern: '^9\.' changelog-entry: false ssh-key: ${{ secrets.CI_DEPLOY_KEY }}