From 696ba61013bc541237e58855d4d8dfa98a34001f Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Thu, 17 Aug 2023 09:58:20 +0200 Subject: [PATCH 01/32] todo --- dart/lib/src/sentry_envelope_item.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/dart/lib/src/sentry_envelope_item.dart b/dart/lib/src/sentry_envelope_item.dart index f88f808600..ce08fbb56d 100644 --- a/dart/lib/src/sentry_envelope_item.dart +++ b/dart/lib/src/sentry_envelope_item.dart @@ -97,6 +97,7 @@ class SentryEnvelopeItem { final newLine = utf8.encode('\n'); final data = await dataFactory(); + // TODO the data copy could be avoided - this would be most significant with attachments. return [...itemHeader, ...newLine, ...data]; } catch (e) { return []; From 4f85144dae574827bc93efa4503bc0dedd552694 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Fri, 18 Aug 2023 17:44:07 +0200 Subject: [PATCH 02/32] feat: expose cocoa profiling via method channels --- .../Classes/SentryFlutterPluginApple.swift | 45 ++++- flutter/lib/src/native/sentry_native.dart | 8 + .../lib/src/native/sentry_native_channel.dart | 22 +++ flutter/test/mocks.dart | 31 ++- flutter/test/mocks.mocks.dart | 176 +----------------- flutter/test/sentry_native_channel_test.dart | 28 +++ flutter/test/sentry_native_test.dart | 14 ++ 7 files changed, 145 insertions(+), 179 deletions(-) diff --git a/flutter/ios/Classes/SentryFlutterPluginApple.swift b/flutter/ios/Classes/SentryFlutterPluginApple.swift index 5a41c2fcc2..02ea0ca2f1 100644 --- a/flutter/ios/Classes/SentryFlutterPluginApple.swift +++ b/flutter/ios/Classes/SentryFlutterPluginApple.swift @@ -152,6 +152,14 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin { let key = arguments?["key"] as? String removeTag(key: key, result: result) + #if !os(tvOS) && !os(watchOS) + case "startProfiling": + startProfiling(call, result) + + case "collectProfile": + collectProfile(call, result) + #endif + default: result(FlutterMethodNotImplemented) } @@ -352,8 +360,8 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin { private func captureEnvelope(_ call: FlutterMethodCall, result: @escaping FlutterResult) { guard let arguments = call.arguments as? [Any], !arguments.isEmpty, - let data = (arguments.first as? FlutterStandardTypedData)?.data else { - print("Envelope is null or empty !") + let data = (arguments.first as? FlutterStandardTypedData)?.data else { + print("Envelope is null or empty!") result(FlutterError(code: "2", message: "Envelope is null or empty", details: nil)) return } @@ -385,8 +393,8 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin { result(item) #else - print("note: appStartMeasurement not available on this platform") - result(nil) + print("note: appStartMeasurement not available on this platform") + result(nil) #endif } @@ -550,6 +558,35 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin { result("") } } + + private func startProfiling(_ call: FlutterMethodCall, result: @escaping FlutterResult) { + guard let traceId = call.arguments as? String else { + print("Cannot start profiling: trace ID missing") + result(FlutterError(code: "5", message: "Cannot start profiling: trace ID missing", details: nil)) + return + } + + let startTime = PrivateSentrySDKOnly.startProfiling(forTrace: SentryId(uuidString: traceId)) + result(startTime) + } + + private func collectProfile(_ call: FlutterMethodCall, result: @escaping FlutterResult) { + guard let arguments = call.arguments as? [String: Any], + let traceId = arguments["traceId"] as? String else { + print("Cannot collect profile: trace ID missing") + result(FlutterError(code: "6", message: "Cannot collect profile: trace ID missing", details: nil)) + return + } + + guard let startTime = arguments["startTime"] as? uint64 else { + print("Cannot collect profile: start time missing") + result(FlutterError(code: "7", message: "Cannot collect profile: start time missing", details: nil)) + return + } + + let payload = PrivateSentrySDKOnly.collectProfile(forTrace: SentryId(uuidString: traceId), since: startTime) + result(payload) + } } // swiftlint:enable function_body_length diff --git a/flutter/lib/src/native/sentry_native.dart b/flutter/lib/src/native/sentry_native.dart index 6250831299..e3507fb26d 100644 --- a/flutter/lib/src/native/sentry_native.dart +++ b/flutter/lib/src/native/sentry_native.dart @@ -92,6 +92,14 @@ class SentryNative { return await _nativeChannel?.removeTag(key); } + Future startProfiling(SentryId traceId) async { + return await _nativeChannel?.startProfiling(traceId); + } + + Future collectProfile(SentryId traceId, int startTimeNs) async { + return await _nativeChannel?.collectProfile(traceId, startTimeNs); + } + /// Reset state void reset() { appStartEnd = null; diff --git a/flutter/lib/src/native/sentry_native_channel.dart b/flutter/lib/src/native/sentry_native_channel.dart index 63fd53bd06..6c970f2b3a 100644 --- a/flutter/lib/src/native/sentry_native_channel.dart +++ b/flutter/lib/src/native/sentry_native_channel.dart @@ -139,6 +139,28 @@ class SentryNativeChannel { } } + Future startProfiling(SentryId traceId) async { + try { + return await _channel.invokeMethod('startProfiling', traceId.toString()) + as int?; + } catch (error, stackTrace) { + _logError('startProfiling', error, stackTrace); + return null; + } + } + + Future collectProfile(SentryId traceId, int startTimeNs) async { + try { + return await _channel.invokeMethod('collectProfile', { + 'traceId': traceId.toString(), + 'startTime': startTimeNs + }) as Map?; + } catch (error, stackTrace) { + _logError('collectProfile', error, stackTrace); + return null; + } + } + // Helper void _logError(String nativeMethodName, Object error, StackTrace stackTrace) { diff --git a/flutter/test/mocks.dart b/flutter/test/mocks.dart index 39209f7015..eb6f729fb9 100644 --- a/flutter/test/mocks.dart +++ b/flutter/test/mocks.dart @@ -41,7 +41,6 @@ ISentrySpan startTransactionShim( // ignore: invalid_use_of_internal_member SentryTracer, MethodChannel, - SentryNative, ], customMocks: [ MockSpec(fallbackGenerators: {#startTransaction: startTransactionShim}) ]) @@ -156,6 +155,7 @@ class NoOpHub with NoSuchMethodProvider implements Hub { bool get isEnabled => false; } +// TODO can this be replaced with https://pub.dev/packages/mockito#verifying-exact-number-of-invocations--at-least-x--never class TestMockSentryNative implements SentryNative { @override DateTime? appStartEnd; @@ -189,6 +189,8 @@ class TestMockSentryNative implements SentryNative { var numberOfSetTagCalls = 0; SentryUser? sentryUser; var numberOfSetUserCalls = 0; + var numberOfStartProfilingCalls = 0; + var numberOfCollectProfileCalls = 0; @override Future addBreadcrumb(Breadcrumb breadcrumb) async { @@ -265,8 +267,21 @@ class TestMockSentryNative implements SentryNative { this.sentryUser = sentryUser; numberOfSetUserCalls++; } + + @override + Future collectProfile(SentryId traceId, int startTimeNs) { + numberOfCollectProfileCalls++; + return Future.value(null); + } + + @override + Future startProfiling(SentryId traceId) { + numberOfStartProfilingCalls++; + return Future.value(null); + } } +// TODO can this be replaced with https://pub.dev/packages/mockito#verifying-exact-number-of-invocations--at-least-x--never class MockNativeChannel implements SentryNativeChannel { NativeAppStart? nativeAppStart; NativeFrames? nativeFrames; @@ -283,6 +298,8 @@ class MockNativeChannel implements SentryNativeChannel { int numberOfSetContextsCalls = 0; int numberOfSetExtraCalls = 0; int numberOfSetTagCalls = 0; + int numberOfStartProfilingCalls = 0; + int numberOfCollectProfileCalls = 0; @override Future fetchNativeAppStart() async => nativeAppStart; @@ -343,6 +360,18 @@ class MockNativeChannel implements SentryNativeChannel { Future setTag(String key, value) async { numberOfSetTagCalls += 1; } + + @override + Future collectProfile(SentryId traceId, int startTimeNs) { + numberOfCollectProfileCalls++; + return Future.value(null); + } + + @override + Future startProfiling(SentryId traceId) { + numberOfStartProfilingCalls++; + return Future.value(null); + } } class MockRendererWrapper implements RendererWrapper { diff --git a/flutter/test/mocks.mocks.dart b/flutter/test/mocks.mocks.dart index b92e8cfba8..32d118eb56 100644 --- a/flutter/test/mocks.mocks.dart +++ b/flutter/test/mocks.mocks.dart @@ -13,10 +13,8 @@ import 'package:sentry/sentry.dart' as _i2; import 'package:sentry/src/protocol.dart' as _i3; import 'package:sentry/src/sentry_envelope.dart' as _i7; import 'package:sentry/src/sentry_tracer.dart' as _i8; -import 'package:sentry_flutter/src/native/sentry_native.dart' as _i10; -import 'package:sentry_flutter/src/native/sentry_native_channel.dart' as _i11; -import 'mocks.dart' as _i12; +import 'mocks.dart' as _i10; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -504,176 +502,6 @@ class MockMethodChannel extends _i1.Mock implements _i9.MethodChannel { ); } -/// A class which mocks [SentryNative]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockSentryNative extends _i1.Mock implements _i10.SentryNative { - MockSentryNative() { - _i1.throwOnMissingStub(this); - } - - @override - set appStartEnd(DateTime? _appStartEnd) => super.noSuchMethod( - Invocation.setter( - #appStartEnd, - _appStartEnd, - ), - returnValueForMissingStub: null, - ); - @override - set nativeChannel(_i11.SentryNativeChannel? nativeChannel) => - super.noSuchMethod( - Invocation.setter( - #nativeChannel, - nativeChannel, - ), - returnValueForMissingStub: null, - ); - @override - bool get didFetchAppStart => (super.noSuchMethod( - Invocation.getter(#didFetchAppStart), - returnValue: false, - ) as bool); - @override - _i6.Future<_i10.NativeAppStart?> fetchNativeAppStart() => (super.noSuchMethod( - Invocation.method( - #fetchNativeAppStart, - [], - ), - returnValue: _i6.Future<_i10.NativeAppStart?>.value(), - ) as _i6.Future<_i10.NativeAppStart?>); - @override - _i6.Future beginNativeFramesCollection() => (super.noSuchMethod( - Invocation.method( - #beginNativeFramesCollection, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - @override - _i6.Future<_i10.NativeFrames?> endNativeFramesCollection( - _i3.SentryId? traceId) => - (super.noSuchMethod( - Invocation.method( - #endNativeFramesCollection, - [traceId], - ), - returnValue: _i6.Future<_i10.NativeFrames?>.value(), - ) as _i6.Future<_i10.NativeFrames?>); - @override - _i6.Future setContexts( - String? key, - dynamic value, - ) => - (super.noSuchMethod( - Invocation.method( - #setContexts, - [ - key, - value, - ], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - @override - _i6.Future removeContexts(String? key) => (super.noSuchMethod( - Invocation.method( - #removeContexts, - [key], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - @override - _i6.Future setUser(_i3.SentryUser? sentryUser) => (super.noSuchMethod( - Invocation.method( - #setUser, - [sentryUser], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - @override - _i6.Future addBreadcrumb(_i3.Breadcrumb? breadcrumb) => - (super.noSuchMethod( - Invocation.method( - #addBreadcrumb, - [breadcrumb], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - @override - _i6.Future clearBreadcrumbs() => (super.noSuchMethod( - Invocation.method( - #clearBreadcrumbs, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - @override - _i6.Future setExtra( - String? key, - dynamic value, - ) => - (super.noSuchMethod( - Invocation.method( - #setExtra, - [ - key, - value, - ], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - @override - _i6.Future removeExtra(String? key) => (super.noSuchMethod( - Invocation.method( - #removeExtra, - [key], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - @override - _i6.Future setTag( - String? key, - String? value, - ) => - (super.noSuchMethod( - Invocation.method( - #setTag, - [ - key, - value, - ], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - @override - _i6.Future removeTag(String? key) => (super.noSuchMethod( - Invocation.method( - #removeTag, - [key], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - @override - void reset() => super.noSuchMethod( - Invocation.method( - #reset, - [], - ), - returnValueForMissingStub: null, - ); -} - /// A class which mocks [Hub]. /// /// See the documentation for Mockito's code generation for more information. @@ -899,7 +727,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { #customSamplingContext: customSamplingContext, }, ), - returnValue: _i12.startTransactionShim( + returnValue: _i10.startTransactionShim( name, operation, description: description, diff --git a/flutter/test/sentry_native_channel_test.dart b/flutter/test/sentry_native_channel_test.dart index cd05bf71ea..9821f649f1 100644 --- a/flutter/test/sentry_native_channel_test.dart +++ b/flutter/test/sentry_native_channel_test.dart @@ -186,6 +186,34 @@ void main() { verify(fixture.methodChannel .invokeMethod('removeTag', {'key': 'fixture-key'})); }); + + test('startProfiling', () async { + final traceId = SentryId.newId(); + when(fixture.methodChannel + .invokeMethod('startProfiling', traceId.toString())) + .thenAnswer((_) => Future.value()); + + final sut = fixture.getSut(); + await sut.startProfiling(traceId); + + verify(fixture.methodChannel + .invokeMethod('startProfiling', traceId.toString())); + }); + + test('collectProfile', () async { + final traceId = SentryId.newId(); + const startTime = 42; + when(fixture.methodChannel.invokeMethod('collectProfile', { + 'traceId': traceId.toString(), + 'startTime': startTime + })).thenAnswer((_) => Future.value()); + + final sut = fixture.getSut(); + await sut.collectProfile(traceId, startTime); + + verify(fixture.methodChannel.invokeMethod('collectProfile', + {'traceId': traceId.toString(), 'startTime': startTime})); + }); }); } diff --git a/flutter/test/sentry_native_test.dart b/flutter/test/sentry_native_test.dart index d6b5fab583..59d269f8df 100644 --- a/flutter/test/sentry_native_test.dart +++ b/flutter/test/sentry_native_test.dart @@ -116,6 +116,20 @@ void main() { expect(fixture.channel.numberOfRemoveTagCalls, 1); }); + test('startProfiling', () async { + final sut = fixture.getSut(); + await sut.startProfiling(SentryId.newId()); + + expect(fixture.channel.numberOfStartProfilingCalls, 1); + }); + + test('collectProfile', () async { + final sut = fixture.getSut(); + await sut.collectProfile(SentryId.newId(), 42); + + expect(fixture.channel.numberOfCollectProfileCalls, 1); + }); + test('reset', () async { final sut = fixture.getSut(); From de6f24432754d036698ac9cc34816c69dbce5273 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Tue, 22 Aug 2023 20:32:39 +0200 Subject: [PATCH 03/32] feat: prepare profiler interfaces and hub integration --- dart/lib/src/hub.dart | 23 ++- dart/lib/src/hub_adapter.dart | 6 + dart/lib/src/noop_hub.dart | 5 + dart/lib/src/profiling.dart | 22 +++ dart/lib/src/protocol/sentry_transaction.dart | 4 + dart/lib/src/sentry_options.dart | 17 +++ dart/lib/src/sentry_tracer.dart | 22 ++- dart/lib/src/sentry_traces_sampler.dart | 8 ++ dart/pubspec.yaml | 1 + dart/test/hub_test.dart | 60 ++++++++ dart/test/mocks.dart | 9 ++ dart/test/mocks.mocks.dart | 135 ++++++++++++++++++ 12 files changed, 305 insertions(+), 7 deletions(-) create mode 100644 dart/lib/src/profiling.dart create mode 100644 dart/test/mocks.mocks.dart diff --git a/dart/lib/src/hub.dart b/dart/lib/src/hub.dart index 855f2b9438..50d1b6c0f4 100644 --- a/dart/lib/src/hub.dart +++ b/dart/lib/src/hub.dart @@ -2,6 +2,7 @@ import 'dart:async'; import 'dart:collection'; import 'package:meta/meta.dart'; +import 'profiling.dart'; import 'propagation_context.dart'; import 'transport/data_category.dart'; @@ -435,12 +436,12 @@ class Hub { } else { final item = _peek(); - final samplingContext = SentrySamplingContext( - transactionContext, customSamplingContext ?? {}); - // if transactionContext has no sampled decision, run the traces sampler - if (transactionContext.samplingDecision == null) { - final samplingDecision = _tracesSampler.sample(samplingContext); + var samplingDecision = transactionContext.samplingDecision; + if (samplingDecision == null) { + final samplingContext = SentrySamplingContext( + transactionContext, customSamplingContext ?? {}); + samplingDecision = _tracesSampler.sample(samplingContext); transactionContext = transactionContext.copyWith(samplingDecision: samplingDecision); } @@ -451,6 +452,12 @@ class Hub { ); } + Profiler? profiler; + if (_profilerFactory != null && + _tracesSampler.sampleProfiling(samplingDecision)) { + profiler = _profilerFactory?.startProfiling(transactionContext); + } + final tracer = SentryTracer( transactionContext, this, @@ -459,6 +466,7 @@ class Hub { autoFinishAfter: autoFinishAfter, trimEnd: trimEnd ?? false, onFinish: onFinish, + profiler: profiler, ); if (bindToScope ?? false) { item.scope.span = tracer; @@ -554,6 +562,11 @@ class Hub { ) => _throwableToSpan.add(throwable, span, transaction); + @internal + set profilerFactory(ProfilerFactory? value) => _profilerFactory = value; + + ProfilerFactory? _profilerFactory; + SentryEvent _assignTraceContext(SentryEvent event) { // assign trace context if (event.throwable != null && event.contexts.trace == null) { diff --git a/dart/lib/src/hub_adapter.dart b/dart/lib/src/hub_adapter.dart index 0775042e04..49084fceba 100644 --- a/dart/lib/src/hub_adapter.dart +++ b/dart/lib/src/hub_adapter.dart @@ -4,6 +4,7 @@ import 'package:meta/meta.dart'; import 'hint.dart'; import 'hub.dart'; +import 'profiling.dart'; import 'protocol.dart'; import 'scope.dart'; import 'sentry.dart'; @@ -168,6 +169,11 @@ class HubAdapter implements Hub { ) => Sentry.currentHub.setSpanContext(throwable, span, transaction); + @internal + @override + set profilerFactory(ProfilerFactory? value) => + Sentry.currentHub.profilerFactory = value; + @override Scope get scope => Sentry.currentHub.scope; } diff --git a/dart/lib/src/noop_hub.dart b/dart/lib/src/noop_hub.dart index 28a56de249..3ad92f5f06 100644 --- a/dart/lib/src/noop_hub.dart +++ b/dart/lib/src/noop_hub.dart @@ -4,6 +4,7 @@ import 'package:meta/meta.dart'; import 'hint.dart'; import 'hub.dart'; +import 'profiling.dart'; import 'protocol.dart'; import 'scope.dart'; import 'sentry_client.dart'; @@ -120,6 +121,10 @@ class NoOpHub implements Hub { @override void setSpanContext(throwable, ISentrySpan span, String transaction) {} + @internal + @override + set profilerFactory(ProfilerFactory? value) {} + @override Scope get scope => Scope(_options); } diff --git a/dart/lib/src/profiling.dart b/dart/lib/src/profiling.dart new file mode 100644 index 0000000000..e6dd4eb144 --- /dev/null +++ b/dart/lib/src/profiling.dart @@ -0,0 +1,22 @@ +import 'dart:async'; + +import 'package:meta/meta.dart'; + +import '../sentry.dart'; + +@internal +abstract class ProfilerFactory { + Profiler startProfiling(SentryTransactionContext context); +} + +@internal +abstract class Profiler { + Future finishFor(SentryTransaction transaction); + void dispose(); +} + +// See https://develop.sentry.dev/sdk/profiles/ +@internal +abstract class ProfileInfo { + FutureOr asEnvelopeItem(); +} diff --git a/dart/lib/src/protocol/sentry_transaction.dart b/dart/lib/src/protocol/sentry_transaction.dart index 44e6c4298f..606c15e8d9 100644 --- a/dart/lib/src/protocol/sentry_transaction.dart +++ b/dart/lib/src/protocol/sentry_transaction.dart @@ -1,5 +1,6 @@ import 'package:meta/meta.dart'; +import '../profiling.dart'; import '../protocol.dart'; import '../sentry_tracer.dart'; import '../utils.dart'; @@ -14,6 +15,9 @@ class SentryTransaction extends SentryEvent { late final Map measurements; late final SentryTransactionInfo? transactionInfo; + @internal + late final ProfileInfo? profileInfo; + SentryTransaction( this._tracer, { SentryId? eventId, diff --git a/dart/lib/src/sentry_options.dart b/dart/lib/src/sentry_options.dart index 55450be9dd..6003da8841 100644 --- a/dart/lib/src/sentry_options.dart +++ b/dart/lib/src/sentry_options.dart @@ -289,6 +289,23 @@ class SentryOptions { /// to be sent to Sentry. TracesSamplerCallback? tracesSampler; + double? _profilesSampleRate; + + /// The sample rate for profiling traces in the range [0.0, 1.0]. + /// This is relative to tracesSampleRate - it is a ratio of profiled traces out of all sampled traces. + /// At the moment, only apps targeting iOS and macOS are supported. + @experimental + double? get profilesSampleRate => _profilesSampleRate; + + /// The sample rate for profiling traces in the range [0.0, 1.0]. + /// This is relative to tracesSampleRate - it is a ratio of profiled traces out of all sampled traces. + /// At the moment, only apps targeting iOS and macOS are supported. + @experimental + set profilesSampleRate(double? value) { + assert(value == null || (value >= 0 && value <= 1)); + _profilesSampleRate = value; + } + /// Send statistics to sentry when the client drops events. bool sendClientReports = true; diff --git a/dart/lib/src/sentry_tracer.dart b/dart/lib/src/sentry_tracer.dart index 46edb2bccb..7b3892fc10 100644 --- a/dart/lib/src/sentry_tracer.dart +++ b/dart/lib/src/sentry_tracer.dart @@ -3,6 +3,7 @@ import 'dart:async'; import 'package:meta/meta.dart'; import '../sentry.dart'; +import 'profiling.dart'; import 'sentry_tracer_finish_status.dart'; import 'utils/sample_rate_format.dart'; @@ -31,6 +32,8 @@ class SentryTracer extends ISentrySpan { SentryTraceContextHeader? _sentryTraceContextHeader; + late final Profiler? profiler; + /// If [waitForChildren] is true, this transaction will not finish until all /// its children are finished. /// @@ -52,6 +55,7 @@ class SentryTracer extends ISentrySpan { Duration? autoFinishAfter, bool trimEnd = false, OnTransactionFinish? onFinish, + this.profiler, }) { _rootSpan = SentrySpan( this, @@ -77,8 +81,13 @@ class SentryTracer extends ISentrySpan { final commonEndTimestamp = endTimestamp ?? _hub.options.clock(); _autoFinishAfterTimer?.cancel(); _finishStatus = SentryTracerFinishStatus.finishing(status); - if (!_rootSpan.finished && - (!_waitForChildren || _haveAllChildrenFinished())) { + if (_rootSpan.finished) { + return; + } + if (_waitForChildren && !_haveAllChildrenFinished()) { + return; + } + try { _rootSpan.status ??= status; // remove span where its endTimestamp is before startTimestamp @@ -131,10 +140,19 @@ class SentryTracer extends ISentrySpan { final transaction = SentryTransaction(this); transaction.measurements.addAll(_measurements); + + if (profiler != null) { + if (status == null || status == SpanStatus.ok()) { + transaction.profileInfo = await profiler?.finishFor(transaction); + } + } + await _hub.captureTransaction( transaction, traceContext: traceContext(), ); + } finally { + profiler?.dispose(); } } diff --git a/dart/lib/src/sentry_traces_sampler.dart b/dart/lib/src/sentry_traces_sampler.dart index 62d94dc339..876668b8a6 100644 --- a/dart/lib/src/sentry_traces_sampler.dart +++ b/dart/lib/src/sentry_traces_sampler.dart @@ -67,5 +67,13 @@ class SentryTracesSampler { return SentryTracesSamplingDecision(false); } + bool sampleProfiling(SentryTracesSamplingDecision tracesSamplingDecision) { + double? optionsRate = _options.profilesSampleRate; + if (optionsRate == null || !tracesSamplingDecision.sampled) { + return false; + } + return _sample(optionsRate); + } + bool _sample(double result) => !(result < _random.nextDouble()); } diff --git a/dart/pubspec.yaml b/dart/pubspec.yaml index 5487446118..cee741ec6f 100644 --- a/dart/pubspec.yaml +++ b/dart/pubspec.yaml @@ -18,6 +18,7 @@ dependencies: uuid: ^3.0.0 dev_dependencies: + build_runner: ^2.4.2 mockito: ^5.1.0 lints: ^2.0.0 test: ^1.21.1 diff --git a/dart/test/hub_test.dart b/dart/test/hub_test.dart index 8cc4e99502..b9e4603292 100644 --- a/dart/test/hub_test.dart +++ b/dart/test/hub_test.dart @@ -1,11 +1,14 @@ import 'package:collection/collection.dart'; +import 'package:mockito/mockito.dart'; import 'package:sentry/sentry.dart'; import 'package:sentry/src/client_reports/discard_reason.dart'; +import 'package:sentry/src/profiling.dart'; import 'package:sentry/src/sentry_tracer.dart'; import 'package:sentry/src/transport/data_category.dart'; import 'package:test/test.dart'; import 'mocks.dart'; +import 'mocks.mocks.dart'; import 'mocks/mock_client_report_recorder.dart'; import 'mocks/mock_sentry_client.dart'; @@ -375,6 +378,61 @@ void main() { fixture.client.captureTransactionCalls.first.traceContext, context); }); + test('profiler is not started by default', () async { + final hub = fixture.getSut(); + final tr = hub.startTransaction('name', 'op'); + expect(tr, isA()); + expect((tr as SentryTracer).profiler, isNull); + }); + + test('profiler is started according to the sampling rate', () async { + final hub = fixture.getSut(); + final factory = MockProfilerFactory(); + when(factory.startProfiling(fixture._context)).thenReturn(MockProfiler()); + hub.profilerFactory = factory; + + var tr = hub.startTransactionWithContext(fixture._context); + expect((tr as SentryTracer).profiler, isNull); + verifyZeroInteractions(factory); + + hub.options.profilesSampleRate = 1.0; + tr = hub.startTransactionWithContext(fixture._context); + expect((tr as SentryTracer).profiler, isNotNull); + verify(factory.startProfiling(fixture._context)).called(1); + }); + + test('profiler.finish() is called', () async { + final hub = fixture.getSut(); + final factory = MockProfilerFactory(); + final profiler = MockProfiler(); + final expected = MockProfileInfo(); + when(factory.startProfiling(fixture._context)).thenReturn(profiler); + when(profiler.finishFor(any)).thenAnswer((_) async => expected); + + hub.profilerFactory = factory; + hub.options.profilesSampleRate = 1.0; + final tr = hub.startTransactionWithContext(fixture._context); + await tr.finish(); + verify(profiler.finishFor(any)).called(1); + verify(profiler.dispose()).called(1); + }); + + test('profiler.dispose() is called even if not captured', () async { + final hub = fixture.getSut(); + final factory = MockProfilerFactory(); + final profiler = MockProfiler(); + final expected = MockProfileInfo(); + when(factory.startProfiling(fixture._context)).thenReturn(profiler); + when(profiler.finishFor(any)).thenAnswer((_) async => expected); + + hub.profilerFactory = factory; + hub.options.profilesSampleRate = 1.0; + final tr = hub.startTransactionWithContext(fixture._context); + await tr.finish(status: SpanStatus.aborted()); + verify(profiler.dispose()).called(1); + verifyNever(profiler.finishFor(any)); + }); + test('returns scope', () async { final hub = fixture.getSut(); @@ -649,10 +707,12 @@ class Fixture { final hub = Hub(options); + // A fully configured context - won't trigger a copy in startTransaction(). _context = SentryTransactionContext( 'name', 'op', samplingDecision: SentryTracesSamplingDecision(sampled!), + origin: SentryTraceOrigins.manual, ); tracer = SentryTracer(_context, hub); diff --git a/dart/test/mocks.dart b/dart/test/mocks.dart index 82430d96e8..edc3edb211 100644 --- a/dart/test/mocks.dart +++ b/dart/test/mocks.dart @@ -1,4 +1,6 @@ +import 'package:mockito/annotations.dart'; import 'package:sentry/sentry.dart'; +import 'package:sentry/src/profiling.dart'; import 'package:sentry/src/transport/rate_limiter.dart'; final fakeDsn = 'https://abc@def.ingest.sentry.io/1234567'; @@ -149,3 +151,10 @@ class MockRateLimiter implements RateLimiter { this.errorCode = errorCode; } } + +@GenerateMocks([ + ProfilerFactory, + Profiler, + ProfileInfo, +]) +void main() {} diff --git a/dart/test/mocks.mocks.dart b/dart/test/mocks.mocks.dart new file mode 100644 index 0000000000..8f8f67a5ae --- /dev/null +++ b/dart/test/mocks.mocks.dart @@ -0,0 +1,135 @@ +// Mocks generated by Mockito 5.4.2 from annotations +// in sentry/test/mocks.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i4; + +import 'package:mockito/mockito.dart' as _i1; +import 'package:sentry/sentry.dart' as _i3; +import 'package:sentry/src/profiling.dart' as _i2; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +class _FakeProfiler_0 extends _i1.SmartFake implements _i2.Profiler { + _FakeProfiler_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeProfileInfo_1 extends _i1.SmartFake implements _i2.ProfileInfo { + _FakeProfileInfo_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeSentryEnvelopeItem_2 extends _i1.SmartFake + implements _i3.SentryEnvelopeItem { + _FakeSentryEnvelopeItem_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +/// A class which mocks [ProfilerFactory]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockProfilerFactory extends _i1.Mock implements _i2.ProfilerFactory { + MockProfilerFactory() { + _i1.throwOnMissingStub(this); + } + + @override + _i2.Profiler startProfiling(_i3.SentryTransactionContext? context) => + (super.noSuchMethod( + Invocation.method( + #startProfiling, + [context], + ), + returnValue: _FakeProfiler_0( + this, + Invocation.method( + #startProfiling, + [context], + ), + ), + ) as _i2.Profiler); +} + +/// A class which mocks [Profiler]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockProfiler extends _i1.Mock implements _i2.Profiler { + MockProfiler() { + _i1.throwOnMissingStub(this); + } + + @override + _i4.Future<_i2.ProfileInfo> finishFor(_i3.SentryTransaction? transaction) => + (super.noSuchMethod( + Invocation.method( + #finishFor, + [transaction], + ), + returnValue: _i4.Future<_i2.ProfileInfo>.value(_FakeProfileInfo_1( + this, + Invocation.method( + #finishFor, + [transaction], + ), + )), + ) as _i4.Future<_i2.ProfileInfo>); + @override + void dispose() => super.noSuchMethod( + Invocation.method( + #dispose, + [], + ), + returnValueForMissingStub: null, + ); +} + +/// A class which mocks [ProfileInfo]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockProfileInfo extends _i1.Mock implements _i2.ProfileInfo { + MockProfileInfo() { + _i1.throwOnMissingStub(this); + } + + @override + _i4.FutureOr<_i3.SentryEnvelopeItem> asEnvelopeItem() => (super.noSuchMethod( + Invocation.method( + #asEnvelopeItem, + [], + ), + returnValue: + _i4.Future<_i3.SentryEnvelopeItem>.value(_FakeSentryEnvelopeItem_2( + this, + Invocation.method( + #asEnvelopeItem, + [], + ), + )), + ) as _i4.FutureOr<_i3.SentryEnvelopeItem>); +} From 7c73348af179502ac6c4605afffce1ec74c56530 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Wed, 23 Aug 2023 13:09:28 +0200 Subject: [PATCH 04/32] fix CI --- dart/lib/src/sentry_options.dart | 10 ++-------- .../Classes/SentryFlutterPluginApple.swift | 6 +++--- flutter/lib/src/sentry_flutter_options.dart | 20 +++++++++++++++++++ 3 files changed, 25 insertions(+), 11 deletions(-) diff --git a/dart/lib/src/sentry_options.dart b/dart/lib/src/sentry_options.dart index 6003da8841..8fab6f7d42 100644 --- a/dart/lib/src/sentry_options.dart +++ b/dart/lib/src/sentry_options.dart @@ -291,16 +291,10 @@ class SentryOptions { double? _profilesSampleRate; - /// The sample rate for profiling traces in the range [0.0, 1.0]. - /// This is relative to tracesSampleRate - it is a ratio of profiled traces out of all sampled traces. - /// At the moment, only apps targeting iOS and macOS are supported. - @experimental + @internal // Only exposed by SentryFlutterOptions at the moment. double? get profilesSampleRate => _profilesSampleRate; - /// The sample rate for profiling traces in the range [0.0, 1.0]. - /// This is relative to tracesSampleRate - it is a ratio of profiled traces out of all sampled traces. - /// At the moment, only apps targeting iOS and macOS are supported. - @experimental + @internal // Only exposed by SentryFlutterOptions at the moment. set profilesSampleRate(double? value) { assert(value == null || (value >= 0 && value <= 1)); _profilesSampleRate = value; diff --git a/flutter/ios/Classes/SentryFlutterPluginApple.swift b/flutter/ios/Classes/SentryFlutterPluginApple.swift index 02ea0ca2f1..6308ae4b4a 100644 --- a/flutter/ios/Classes/SentryFlutterPluginApple.swift +++ b/flutter/ios/Classes/SentryFlutterPluginApple.swift @@ -559,7 +559,7 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin { } } - private func startProfiling(_ call: FlutterMethodCall, result: @escaping FlutterResult) { + private func startProfiling(_ call: FlutterMethodCall, _ result: @escaping FlutterResult) { guard let traceId = call.arguments as? String else { print("Cannot start profiling: trace ID missing") result(FlutterError(code: "5", message: "Cannot start profiling: trace ID missing", details: nil)) @@ -570,7 +570,7 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin { result(startTime) } - private func collectProfile(_ call: FlutterMethodCall, result: @escaping FlutterResult) { + private func collectProfile(_ call: FlutterMethodCall, _ result: @escaping FlutterResult) { guard let arguments = call.arguments as? [String: Any], let traceId = arguments["traceId"] as? String else { print("Cannot collect profile: trace ID missing") @@ -578,7 +578,7 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin { return } - guard let startTime = arguments["startTime"] as? uint64 else { + guard let startTime = arguments["startTime"] as? UInt64 else { print("Cannot collect profile: start time missing") result(FlutterError(code: "7", message: "Cannot collect profile: start time missing", details: nil)) return diff --git a/flutter/lib/src/sentry_flutter_options.dart b/flutter/lib/src/sentry_flutter_options.dart index a1d7755c3c..5f85e85cb0 100644 --- a/flutter/lib/src/sentry_flutter_options.dart +++ b/flutter/lib/src/sentry_flutter_options.dart @@ -263,4 +263,24 @@ class SentryFlutterOptions extends SentryOptions { /// Setting this to a custom [BindingWrapper] allows you to use a custom [WidgetsBinding]. @experimental BindingWrapper bindingUtils = BindingWrapper(); + + /// The sample rate for profiling traces in the range of 0.0 to 1.0. + /// This is relative to tracesSampleRate - it is a ratio of profiled traces out of all sampled traces. + /// At the moment, only apps targeting iOS and macOS are supported. + @override + @experimental + double? get profilesSampleRate { + // ignore: invalid_use_of_internal_member + return super.profilesSampleRate; + } + + /// The sample rate for profiling traces in the range of 0.0 to 1.0. + /// This is relative to tracesSampleRate - it is a ratio of profiled traces out of all sampled traces. + /// At the moment, only apps targeting iOS and macOS are supported. + @override + @experimental + set profilesSampleRate(double? value) { + // ignore: invalid_use_of_internal_member + super.profilesSampleRate = value; + } } From 42af4679100ae841cd31618b5ca3f8f224650b89 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Thu, 24 Aug 2023 21:51:45 +0200 Subject: [PATCH 05/32] integrate dart & cocoa profiling --- dart/lib/src/hub.dart | 2 + dart/lib/src/hub_adapter.dart | 1 + dart/lib/src/noop_hub.dart | 1 + dart/lib/src/profiling.dart | 6 +- dart/lib/src/protocol/sentry_transaction.dart | 3 - dart/lib/src/sentry_client.dart | 5 + dart/lib/src/sentry_envelope_item.dart | 2 + dart/lib/src/sentry_item_type.dart | 1 + dart/lib/src/sentry_tracer.dart | 9 +- dart/test/mocks.mocks.dart | 76 ++++-------- dart/test/mocks/mock_hub.dart | 2 + dart/test/mocks/mock_sentry_client.dart | 2 + flutter/example/lib/main.dart | 1 + flutter/lib/src/native/sentry_native.dart | 7 +- .../lib/src/native/sentry_native_channel.dart | 9 +- flutter/lib/src/profiling.dart | 110 ++++++++++++++++++ flutter/lib/src/sentry_flutter.dart | 8 +- flutter/test/mocks.mocks.dart | 36 +++++- 18 files changed, 197 insertions(+), 84 deletions(-) create mode 100644 flutter/lib/src/profiling.dart diff --git a/dart/lib/src/hub.dart b/dart/lib/src/hub.dart index 50d1b6c0f4..d067326163 100644 --- a/dart/lib/src/hub.dart +++ b/dart/lib/src/hub.dart @@ -504,6 +504,7 @@ class Hub { Future captureTransaction( SentryTransaction transaction, { SentryTraceContextHeader? traceContext, + ProfileInfo? profileInfo, }) async { var sentryId = SentryId.empty(); @@ -540,6 +541,7 @@ class Hub { transaction, scope: item.scope, traceContext: traceContext, + profileInfo: profileInfo, ); } catch (exception, stackTrace) { _options.logger( diff --git a/dart/lib/src/hub_adapter.dart b/dart/lib/src/hub_adapter.dart index 49084fceba..4983d20129 100644 --- a/dart/lib/src/hub_adapter.dart +++ b/dart/lib/src/hub_adapter.dart @@ -100,6 +100,7 @@ class HubAdapter implements Hub { Future captureTransaction( SentryTransaction transaction, { SentryTraceContextHeader? traceContext, + ProfileInfo? profileInfo, }) => Sentry.currentHub.captureTransaction( transaction, diff --git a/dart/lib/src/noop_hub.dart b/dart/lib/src/noop_hub.dart index 3ad92f5f06..d398cc3830 100644 --- a/dart/lib/src/noop_hub.dart +++ b/dart/lib/src/noop_hub.dart @@ -81,6 +81,7 @@ class NoOpHub implements Hub { Future captureTransaction( SentryTransaction transaction, { SentryTraceContextHeader? traceContext, + ProfileInfo? profileInfo, }) async => SentryId.empty(); diff --git a/dart/lib/src/profiling.dart b/dart/lib/src/profiling.dart index e6dd4eb144..9830bdc0ec 100644 --- a/dart/lib/src/profiling.dart +++ b/dart/lib/src/profiling.dart @@ -6,17 +6,17 @@ import '../sentry.dart'; @internal abstract class ProfilerFactory { - Profiler startProfiling(SentryTransactionContext context); + Profiler? startProfiling(SentryTransactionContext context); } @internal abstract class Profiler { - Future finishFor(SentryTransaction transaction); + Future finishFor(SentryTransaction transaction); void dispose(); } // See https://develop.sentry.dev/sdk/profiles/ @internal abstract class ProfileInfo { - FutureOr asEnvelopeItem(); + SentryEnvelopeItem asEnvelopeItem(); } diff --git a/dart/lib/src/protocol/sentry_transaction.dart b/dart/lib/src/protocol/sentry_transaction.dart index 606c15e8d9..86f04f1da4 100644 --- a/dart/lib/src/protocol/sentry_transaction.dart +++ b/dart/lib/src/protocol/sentry_transaction.dart @@ -15,9 +15,6 @@ class SentryTransaction extends SentryEvent { late final Map measurements; late final SentryTransactionInfo? transactionInfo; - @internal - late final ProfileInfo? profileInfo; - SentryTransaction( this._tracer, { SentryId? eventId, diff --git a/dart/lib/src/sentry_client.dart b/dart/lib/src/sentry_client.dart index a2af9c47b2..68892b574e 100644 --- a/dart/lib/src/sentry_client.dart +++ b/dart/lib/src/sentry_client.dart @@ -1,6 +1,7 @@ import 'dart:async'; import 'dart:math'; import 'package:meta/meta.dart'; +import 'profiling.dart'; import 'sentry_baggage.dart'; import 'sentry_attachment/sentry_attachment.dart'; @@ -298,6 +299,7 @@ class SentryClient { SentryTransaction transaction, { Scope? scope, SentryTraceContextHeader? traceContext, + ProfileInfo? profileInfo, }) async { SentryTransaction? preparedTransaction = _prepareEvent(transaction) as SentryTransaction; @@ -345,6 +347,9 @@ class SentryClient { traceContext: traceContext, attachments: attachments, ); + if (profileInfo != null) { + envelope.items.add(profileInfo.asEnvelopeItem()); + } final id = await captureEnvelope(envelope); return id ?? SentryId.empty(); diff --git a/dart/lib/src/sentry_envelope_item.dart b/dart/lib/src/sentry_envelope_item.dart index ce08fbb56d..5eb73443d3 100644 --- a/dart/lib/src/sentry_envelope_item.dart +++ b/dart/lib/src/sentry_envelope_item.dart @@ -1,5 +1,7 @@ import 'dart:async'; import 'dart:convert'; +import 'package:meta/meta.dart'; + import 'client_reports/client_report.dart'; import 'protocol.dart'; import 'utils.dart'; diff --git a/dart/lib/src/sentry_item_type.dart b/dart/lib/src/sentry_item_type.dart index c74b6b6049..6215cbb78f 100644 --- a/dart/lib/src/sentry_item_type.dart +++ b/dart/lib/src/sentry_item_type.dart @@ -4,5 +4,6 @@ class SentryItemType { static const String attachment = 'attachment'; static const String transaction = 'transaction'; static const String clientReport = 'client_report'; + static const String profile = 'profile'; static const String unknown = '__unknown__'; } diff --git a/dart/lib/src/sentry_tracer.dart b/dart/lib/src/sentry_tracer.dart index 7b3892fc10..120482ce5b 100644 --- a/dart/lib/src/sentry_tracer.dart +++ b/dart/lib/src/sentry_tracer.dart @@ -141,15 +141,14 @@ class SentryTracer extends ISentrySpan { final transaction = SentryTransaction(this); transaction.measurements.addAll(_measurements); - if (profiler != null) { - if (status == null || status == SpanStatus.ok()) { - transaction.profileInfo = await profiler?.finishFor(transaction); - } - } + final profileInfo = (status == null || status == SpanStatus.ok()) + ? await profiler?.finishFor(transaction) + : null; await _hub.captureTransaction( transaction, traceContext: traceContext(), + profileInfo: profileInfo, ); } finally { profiler?.dispose(); diff --git a/dart/test/mocks.mocks.dart b/dart/test/mocks.mocks.dart index 8f8f67a5ae..249f7e4862 100644 --- a/dart/test/mocks.mocks.dart +++ b/dart/test/mocks.mocks.dart @@ -6,8 +6,8 @@ import 'dart:async' as _i4; import 'package:mockito/mockito.dart' as _i1; -import 'package:sentry/sentry.dart' as _i3; -import 'package:sentry/src/profiling.dart' as _i2; +import 'package:sentry/sentry.dart' as _i2; +import 'package:sentry/src/profiling.dart' as _i3; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -20,29 +20,9 @@ import 'package:sentry/src/profiling.dart' as _i2; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeProfiler_0 extends _i1.SmartFake implements _i2.Profiler { - _FakeProfiler_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeProfileInfo_1 extends _i1.SmartFake implements _i2.ProfileInfo { - _FakeProfileInfo_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeSentryEnvelopeItem_2 extends _i1.SmartFake - implements _i3.SentryEnvelopeItem { - _FakeSentryEnvelopeItem_2( +class _FakeSentryEnvelopeItem_0 extends _i1.SmartFake + implements _i2.SentryEnvelopeItem { + _FakeSentryEnvelopeItem_0( Object parent, Invocation parentInvocation, ) : super( @@ -54,51 +34,36 @@ class _FakeSentryEnvelopeItem_2 extends _i1.SmartFake /// A class which mocks [ProfilerFactory]. /// /// See the documentation for Mockito's code generation for more information. -class MockProfilerFactory extends _i1.Mock implements _i2.ProfilerFactory { +class MockProfilerFactory extends _i1.Mock implements _i3.ProfilerFactory { MockProfilerFactory() { _i1.throwOnMissingStub(this); } @override - _i2.Profiler startProfiling(_i3.SentryTransactionContext? context) => - (super.noSuchMethod( - Invocation.method( - #startProfiling, - [context], - ), - returnValue: _FakeProfiler_0( - this, - Invocation.method( - #startProfiling, - [context], - ), - ), - ) as _i2.Profiler); + _i3.Profiler? startProfiling(_i2.SentryTransactionContext? context) => + (super.noSuchMethod(Invocation.method( + #startProfiling, + [context], + )) as _i3.Profiler?); } /// A class which mocks [Profiler]. /// /// See the documentation for Mockito's code generation for more information. -class MockProfiler extends _i1.Mock implements _i2.Profiler { +class MockProfiler extends _i1.Mock implements _i3.Profiler { MockProfiler() { _i1.throwOnMissingStub(this); } @override - _i4.Future<_i2.ProfileInfo> finishFor(_i3.SentryTransaction? transaction) => + _i4.Future<_i3.ProfileInfo?> finishFor(_i2.SentryTransaction? transaction) => (super.noSuchMethod( Invocation.method( #finishFor, [transaction], ), - returnValue: _i4.Future<_i2.ProfileInfo>.value(_FakeProfileInfo_1( - this, - Invocation.method( - #finishFor, - [transaction], - ), - )), - ) as _i4.Future<_i2.ProfileInfo>); + returnValue: _i4.Future<_i3.ProfileInfo?>.value(), + ) as _i4.Future<_i3.ProfileInfo?>); @override void dispose() => super.noSuchMethod( Invocation.method( @@ -112,24 +77,23 @@ class MockProfiler extends _i1.Mock implements _i2.Profiler { /// A class which mocks [ProfileInfo]. /// /// See the documentation for Mockito's code generation for more information. -class MockProfileInfo extends _i1.Mock implements _i2.ProfileInfo { +class MockProfileInfo extends _i1.Mock implements _i3.ProfileInfo { MockProfileInfo() { _i1.throwOnMissingStub(this); } @override - _i4.FutureOr<_i3.SentryEnvelopeItem> asEnvelopeItem() => (super.noSuchMethod( + _i2.SentryEnvelopeItem asEnvelopeItem() => (super.noSuchMethod( Invocation.method( #asEnvelopeItem, [], ), - returnValue: - _i4.Future<_i3.SentryEnvelopeItem>.value(_FakeSentryEnvelopeItem_2( + returnValue: _FakeSentryEnvelopeItem_0( this, Invocation.method( #asEnvelopeItem, [], ), - )), - ) as _i4.FutureOr<_i3.SentryEnvelopeItem>); + ), + ) as _i2.SentryEnvelopeItem); } diff --git a/dart/test/mocks/mock_hub.dart b/dart/test/mocks/mock_hub.dart index 351ad70672..f6171fddff 100644 --- a/dart/test/mocks/mock_hub.dart +++ b/dart/test/mocks/mock_hub.dart @@ -1,5 +1,6 @@ import 'package:meta/meta.dart'; import 'package:sentry/sentry.dart'; +import 'package:sentry/src/profiling.dart'; import '../mocks.dart'; import 'mock_sentry_client.dart'; @@ -110,6 +111,7 @@ class MockHub with NoSuchMethodProvider implements Hub { Future captureTransaction( SentryTransaction transaction, { SentryTraceContextHeader? traceContext, + ProfileInfo? profileInfo, }) async { captureTransactionCalls .add(CaptureTransactionCall(transaction, traceContext)); diff --git a/dart/test/mocks/mock_sentry_client.dart b/dart/test/mocks/mock_sentry_client.dart index 7b08250193..db8aad08c4 100644 --- a/dart/test/mocks/mock_sentry_client.dart +++ b/dart/test/mocks/mock_sentry_client.dart @@ -1,4 +1,5 @@ import 'package:sentry/sentry.dart'; +import 'package:sentry/src/profiling.dart'; import 'no_such_method_provider.dart'; @@ -84,6 +85,7 @@ class MockSentryClient with NoSuchMethodProvider implements SentryClient { SentryTransaction transaction, { Scope? scope, SentryTraceContextHeader? traceContext, + ProfileInfo? profileInfo, }) async { captureTransactionCalls .add(CaptureTransactionCall(transaction, traceContext)); diff --git a/flutter/example/lib/main.dart b/flutter/example/lib/main.dart index 6d657a589e..bb4b58a01a 100644 --- a/flutter/example/lib/main.dart +++ b/flutter/example/lib/main.dart @@ -48,6 +48,7 @@ Future setupSentry(AppRunner appRunner, String dsn, await SentryFlutter.init((options) { options.dsn = exampleDsn; options.tracesSampleRate = 1.0; + options.profilesSampleRate = 1.0; options.reportPackages = false; options.addInAppInclude('sentry_flutter_example'); options.considerInAppFramesByDefault = false; diff --git a/flutter/lib/src/native/sentry_native.dart b/flutter/lib/src/native/sentry_native.dart index e3507fb26d..1b7aaf8dcd 100644 --- a/flutter/lib/src/native/sentry_native.dart +++ b/flutter/lib/src/native/sentry_native.dart @@ -93,11 +93,12 @@ class SentryNative { } Future startProfiling(SentryId traceId) async { - return await _nativeChannel?.startProfiling(traceId); + return _nativeChannel?.startProfiling(traceId); } - Future collectProfile(SentryId traceId, int startTimeNs) async { - return await _nativeChannel?.collectProfile(traceId, startTimeNs); + Future?> collectProfile( + SentryId traceId, int startTimeNs) async { + return _nativeChannel?.collectProfile(traceId, startTimeNs); } /// Reset state diff --git a/flutter/lib/src/native/sentry_native_channel.dart b/flutter/lib/src/native/sentry_native_channel.dart index 6c970f2b3a..bb2e51311d 100644 --- a/flutter/lib/src/native/sentry_native_channel.dart +++ b/flutter/lib/src/native/sentry_native_channel.dart @@ -149,12 +149,11 @@ class SentryNativeChannel { } } - Future collectProfile(SentryId traceId, int startTimeNs) async { + Future?> collectProfile( + SentryId traceId, int startTimeNs) async { try { - return await _channel.invokeMethod('collectProfile', { - 'traceId': traceId.toString(), - 'startTime': startTimeNs - }) as Map?; + return await _channel.invokeMapMethod('collectProfile', + {'traceId': traceId.toString(), 'startTime': startTimeNs}); } catch (error, stackTrace) { _logError('collectProfile', error, stackTrace); return null; diff --git a/flutter/lib/src/profiling.dart b/flutter/lib/src/profiling.dart new file mode 100644 index 0000000000..c163ee7582 --- /dev/null +++ b/flutter/lib/src/profiling.dart @@ -0,0 +1,110 @@ +import 'dart:async'; +import 'dart:io'; + +import 'package:sentry/sentry.dart'; +// ignore: implementation_imports +import 'package:sentry/src/profiling.dart'; +// ignore: implementation_imports +import 'package:sentry/src/sentry_envelope_item_header.dart'; +// ignore: implementation_imports +import 'package:sentry/src/sentry_item_type.dart'; + +import 'sentry_native.dart'; + +// ignore: invalid_use_of_internal_member +class NativeProfilerFactory implements ProfilerFactory { + final SentryNative _native; + + NativeProfilerFactory(this._native); + + static void attachTo(Hub hub) { + // ignore: invalid_use_of_internal_member + final options = hub.options; + + // ignore: invalid_use_of_internal_member + if ((options.profilesSampleRate ?? 0.0) <= 0.0) { + return; + } + + if (options.platformChecker.isWeb) { + return; + } + + if (Platform.isMacOS || Platform.isIOS) { + // ignore: invalid_use_of_internal_member + hub.profilerFactory = NativeProfilerFactory(SentryNative()); + } + } + + @override + NativeProfiler? startProfiling(SentryTransactionContext context) { + if (context.traceId == SentryId.empty()) { + return null; + } + + final startTime = _native.startProfiling(context.traceId); + + // TODO we cannot await the future returned by a method channel because + // startTransaction() is synchronous. In order to make this code fully + // synchronous and actually start the profiler, we need synchronous FFI + // calls, see https://github.com/getsentry/sentry-dart/issues/1444 + // For now, return immediately even though the profiler may not have started yet... + return NativeProfiler(_native, startTime, context.traceId); + } +} + +// ignore: invalid_use_of_internal_member +class NativeProfiler implements Profiler { + final SentryNative _native; + final Future _startTime; + final SentryId _traceId; + + NativeProfiler(this._native, this._startTime, this._traceId); + + @override + void dispose() { + // TODO expose in the cocoa SDK + // _startTime.then((_) => _native.discardProfiling(this._traceId)); + } + + @override + Future finishFor(SentryTransaction transaction) async { + final starTime = await _startTime; + if (starTime == null) { + return null; + } + + final payload = await _native.collectProfile(_traceId, starTime); + if (payload == null) { + return null; + } + + payload["transaction"] = { + "id": transaction.eventId.toString(), + "trace_id": _traceId.toString(), + "name": transaction.transaction, + // "active_thread_id" : [transaction.trace.transactionContext sentry_threadInfo].threadId + }; + payload["timestamp"] = transaction.startTimestamp.toIso8601String(); + return NativeProfileInfo(payload); + } +} + +// ignore: invalid_use_of_internal_member +class NativeProfileInfo implements ProfileInfo { + final Map _payload; + // ignore: invalid_use_of_internal_member + late final List _data = utf8JsonEncoder.convert(_payload); + + NativeProfileInfo(this._payload); + + @override + SentryEnvelopeItem asEnvelopeItem() { + final header = SentryEnvelopeItemHeader( + SentryItemType.profile, + () => Future.value(_data.length), + contentType: 'application/json', + ); + return SentryEnvelopeItem(header, () => Future.value(_data)); + } +} diff --git a/flutter/lib/src/sentry_flutter.dart b/flutter/lib/src/sentry_flutter.dart index 688f10aac0..07a8ee158e 100644 --- a/flutter/lib/src/sentry_flutter.dart +++ b/flutter/lib/src/sentry_flutter.dart @@ -11,6 +11,7 @@ import 'event_processor/flutter_exception_event_processor.dart'; import 'event_processor/platform_exception_event_processor.dart'; import 'integrations/screenshot_integration.dart'; import 'native/native_scope_observer.dart'; +import 'profiling.dart'; import 'renderer/renderer.dart'; import 'native/sentry_native.dart'; import 'native/sentry_native_channel.dart'; @@ -81,9 +82,7 @@ mixin SentryFlutter { await _initDefaultValues(flutterOptions, channel); await Sentry.init( - (options) async { - await optionsConfiguration(options as SentryFlutterOptions); - }, + (options) => optionsConfiguration(options as SentryFlutterOptions), appRunner: appRunner, // ignore: invalid_use_of_internal_member options: flutterOptions, @@ -92,6 +91,9 @@ mixin SentryFlutter { // ignore: invalid_use_of_internal_member runZonedGuardedOnError: runZonedGuardedOnError, ); + + // ignore: invalid_use_of_internal_member + NativeProfilerFactory.attachTo(Sentry.currentHub); } static Future _initDefaultValues( diff --git a/flutter/test/mocks.mocks.dart b/flutter/test/mocks.mocks.dart index 32d118eb56..cbc5d6d48f 100644 --- a/flutter/test/mocks.mocks.dart +++ b/flutter/test/mocks.mocks.dart @@ -7,14 +7,15 @@ import 'dart:async' as _i6; import 'package:flutter/src/services/binary_messenger.dart' as _i5; import 'package:flutter/src/services/message_codec.dart' as _i4; -import 'package:flutter/src/services/platform_channel.dart' as _i9; +import 'package:flutter/src/services/platform_channel.dart' as _i10; import 'package:mockito/mockito.dart' as _i1; import 'package:sentry/sentry.dart' as _i2; +import 'package:sentry/src/profiling.dart' as _i9; import 'package:sentry/src/protocol.dart' as _i3; import 'package:sentry/src/sentry_envelope.dart' as _i7; import 'package:sentry/src/sentry_tracer.dart' as _i8; -import 'mocks.dart' as _i10; +import 'mocks.dart' as _i11; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -187,6 +188,14 @@ class MockSentryTracer extends _i1.Mock implements _i8.SentryTracer { returnValueForMissingStub: null, ); @override + set profiler(_i9.Profiler? _profiler) => super.noSuchMethod( + Invocation.setter( + #profiler, + _profiler, + ), + returnValueForMissingStub: null, + ); + @override _i2.SentrySpanContext get context => (super.noSuchMethod( Invocation.getter(#context), returnValue: _FakeSentrySpanContext_0( @@ -419,7 +428,7 @@ class MockSentryTracer extends _i1.Mock implements _i8.SentryTracer { /// A class which mocks [MethodChannel]. /// /// See the documentation for Mockito's code generation for more information. -class MockMethodChannel extends _i1.Mock implements _i9.MethodChannel { +class MockMethodChannel extends _i1.Mock implements _i10.MethodChannel { MockMethodChannel() { _i1.throwOnMissingStub(this); } @@ -540,6 +549,14 @@ class MockHub extends _i1.Mock implements _i2.Hub { ), ) as _i2.Scope); @override + set profilerFactory(_i9.ProfilerFactory? value) => super.noSuchMethod( + Invocation.setter( + #profilerFactory, + value, + ), + returnValueForMissingStub: null, + ); + @override _i6.Future<_i3.SentryId> captureEvent( _i3.SentryEvent? event, { dynamic stackTrace, @@ -727,7 +744,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { #customSamplingContext: customSamplingContext, }, ), - returnValue: _i10.startTransactionShim( + returnValue: _i11.startTransactionShim( name, operation, description: description, @@ -786,19 +803,26 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i6.Future<_i3.SentryId> captureTransaction( _i3.SentryTransaction? transaction, { _i2.SentryTraceContextHeader? traceContext, + _i9.ProfileInfo? profileInfo, }) => (super.noSuchMethod( Invocation.method( #captureTransaction, [transaction], - {#traceContext: traceContext}, + { + #traceContext: traceContext, + #profileInfo: profileInfo, + }, ), returnValue: _i6.Future<_i3.SentryId>.value(_FakeSentryId_7( this, Invocation.method( #captureTransaction, [transaction], - {#traceContext: traceContext}, + { + #traceContext: traceContext, + #profileInfo: profileInfo, + }, ), )), ) as _i6.Future<_i3.SentryId>); From 162c2ba8556e7cf48ac084e9cfa667abaaf28ff1 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Sat, 26 Aug 2023 13:14:24 +0200 Subject: [PATCH 06/32] fix API breakage --- dart/lib/src/hub.dart | 2 -- dart/lib/src/hub_adapter.dart | 3 +- dart/lib/src/noop_hub.dart | 1 - dart/lib/src/protocol/sentry_transaction.dart | 30 +++++++++---------- dart/lib/src/sentry_client.dart | 4 +-- dart/lib/src/sentry_envelope_item.dart | 1 - dart/lib/src/sentry_tracer.dart | 8 +++-- dart/test/hub_test.dart | 1 - dart/test/mocks/mock_hub.dart | 2 -- dart/test/mocks/mock_sentry_client.dart | 2 -- flutter/test/mocks.dart | 6 ++-- 11 files changed, 28 insertions(+), 32 deletions(-) diff --git a/dart/lib/src/hub.dart b/dart/lib/src/hub.dart index d067326163..50d1b6c0f4 100644 --- a/dart/lib/src/hub.dart +++ b/dart/lib/src/hub.dart @@ -504,7 +504,6 @@ class Hub { Future captureTransaction( SentryTransaction transaction, { SentryTraceContextHeader? traceContext, - ProfileInfo? profileInfo, }) async { var sentryId = SentryId.empty(); @@ -541,7 +540,6 @@ class Hub { transaction, scope: item.scope, traceContext: traceContext, - profileInfo: profileInfo, ); } catch (exception, stackTrace) { _options.logger( diff --git a/dart/lib/src/hub_adapter.dart b/dart/lib/src/hub_adapter.dart index 4983d20129..12cddd5a2c 100644 --- a/dart/lib/src/hub_adapter.dart +++ b/dart/lib/src/hub_adapter.dart @@ -99,8 +99,7 @@ class HubAdapter implements Hub { @override Future captureTransaction( SentryTransaction transaction, { - SentryTraceContextHeader? traceContext, - ProfileInfo? profileInfo, + SentryTraceContextHeader? traceContext }) => Sentry.currentHub.captureTransaction( transaction, diff --git a/dart/lib/src/noop_hub.dart b/dart/lib/src/noop_hub.dart index d398cc3830..3ad92f5f06 100644 --- a/dart/lib/src/noop_hub.dart +++ b/dart/lib/src/noop_hub.dart @@ -81,7 +81,6 @@ class NoOpHub implements Hub { Future captureTransaction( SentryTransaction transaction, { SentryTraceContextHeader? traceContext, - ProfileInfo? profileInfo, }) async => SentryId.empty(); diff --git a/dart/lib/src/protocol/sentry_transaction.dart b/dart/lib/src/protocol/sentry_transaction.dart index 86f04f1da4..986169ce46 100644 --- a/dart/lib/src/protocol/sentry_transaction.dart +++ b/dart/lib/src/protocol/sentry_transaction.dart @@ -1,6 +1,5 @@ import 'package:meta/meta.dart'; -import '../profiling.dart'; import '../protocol.dart'; import '../sentry_tracer.dart'; import '../utils.dart'; @@ -11,12 +10,13 @@ class SentryTransaction extends SentryEvent { late final DateTime startTimestamp; static const String _type = 'transaction'; late final List spans; - final SentryTracer _tracer; + @internal + final SentryTracer tracer; late final Map measurements; late final SentryTransactionInfo? transactionInfo; SentryTransaction( - this._tracer, { + this.tracer, { SentryId? eventId, DateTime? timestamp, String? platform, @@ -40,17 +40,17 @@ class SentryTransaction extends SentryEvent { SentryTransactionInfo? transactionInfo, }) : super( eventId: eventId, - timestamp: timestamp ?? _tracer.endTimestamp, + timestamp: timestamp ?? tracer.endTimestamp, platform: platform, serverName: serverName, release: release, dist: dist, environment: environment, - transaction: transaction ?? _tracer.name, - throwable: throwable ?? _tracer.throwable, - tags: tags ?? _tracer.tags, + transaction: transaction ?? tracer.name, + throwable: throwable ?? tracer.throwable, + tags: tags ?? tracer.tags, // ignore: deprecated_member_use_from_same_package - extra: extra ?? _tracer.data, + extra: extra ?? tracer.data, user: user, contexts: contexts, breadcrumbs: breadcrumbs, @@ -58,19 +58,19 @@ class SentryTransaction extends SentryEvent { request: request, type: _type, ) { - startTimestamp = _tracer.startTimestamp; + startTimestamp = tracer.startTimestamp; - final spanContext = _tracer.context; - spans = _tracer.children; + final spanContext = tracer.context; + spans = tracer.children; this.measurements = measurements ?? {}; this.contexts.trace = spanContext.toTraceContext( - sampled: _tracer.samplingDecision?.sampled, - status: _tracer.status, + sampled: tracer.samplingDecision?.sampled, + status: tracer.status, ); this.transactionInfo = transactionInfo ?? - SentryTransactionInfo(_tracer.transactionNameSource.name); + SentryTransactionInfo(tracer.transactionNameSource.name); } @override @@ -137,7 +137,7 @@ class SentryTransaction extends SentryEvent { SentryTransactionInfo? transactionInfo, }) => SentryTransaction( - _tracer, + tracer, eventId: eventId ?? this.eventId, timestamp: timestamp ?? this.timestamp, platform: platform ?? this.platform, diff --git a/dart/lib/src/sentry_client.dart b/dart/lib/src/sentry_client.dart index 68892b574e..5483c5faca 100644 --- a/dart/lib/src/sentry_client.dart +++ b/dart/lib/src/sentry_client.dart @@ -1,7 +1,6 @@ import 'dart:async'; import 'dart:math'; import 'package:meta/meta.dart'; -import 'profiling.dart'; import 'sentry_baggage.dart'; import 'sentry_attachment/sentry_attachment.dart'; @@ -299,7 +298,6 @@ class SentryClient { SentryTransaction transaction, { Scope? scope, SentryTraceContextHeader? traceContext, - ProfileInfo? profileInfo, }) async { SentryTransaction? preparedTransaction = _prepareEvent(transaction) as SentryTransaction; @@ -347,6 +345,8 @@ class SentryClient { traceContext: traceContext, attachments: attachments, ); + + final profileInfo = preparedTransaction.tracer.profileInfo; if (profileInfo != null) { envelope.items.add(profileInfo.asEnvelopeItem()); } diff --git a/dart/lib/src/sentry_envelope_item.dart b/dart/lib/src/sentry_envelope_item.dart index 5eb73443d3..5e38a7123d 100644 --- a/dart/lib/src/sentry_envelope_item.dart +++ b/dart/lib/src/sentry_envelope_item.dart @@ -1,6 +1,5 @@ import 'dart:async'; import 'dart:convert'; -import 'package:meta/meta.dart'; import 'client_reports/client_report.dart'; import 'protocol.dart'; diff --git a/dart/lib/src/sentry_tracer.dart b/dart/lib/src/sentry_tracer.dart index 120482ce5b..80f1554225 100644 --- a/dart/lib/src/sentry_tracer.dart +++ b/dart/lib/src/sentry_tracer.dart @@ -32,8 +32,13 @@ class SentryTracer extends ISentrySpan { SentryTraceContextHeader? _sentryTraceContextHeader; + // Profiler attached to this tracer. late final Profiler? profiler; + // Resulting profile, after it has been collected. This is later used by + // SentryClient to attach as an envelope item when sending the transaction. + ProfileInfo? profileInfo; + /// If [waitForChildren] is true, this transaction will not finish until all /// its children are finished. /// @@ -141,14 +146,13 @@ class SentryTracer extends ISentrySpan { final transaction = SentryTransaction(this); transaction.measurements.addAll(_measurements); - final profileInfo = (status == null || status == SpanStatus.ok()) + profileInfo = (status == null || status == SpanStatus.ok()) ? await profiler?.finishFor(transaction) : null; await _hub.captureTransaction( transaction, traceContext: traceContext(), - profileInfo: profileInfo, ); } finally { profiler?.dispose(); diff --git a/dart/test/hub_test.dart b/dart/test/hub_test.dart index b9e4603292..e257ec9be6 100644 --- a/dart/test/hub_test.dart +++ b/dart/test/hub_test.dart @@ -2,7 +2,6 @@ import 'package:collection/collection.dart'; import 'package:mockito/mockito.dart'; import 'package:sentry/sentry.dart'; import 'package:sentry/src/client_reports/discard_reason.dart'; -import 'package:sentry/src/profiling.dart'; import 'package:sentry/src/sentry_tracer.dart'; import 'package:sentry/src/transport/data_category.dart'; import 'package:test/test.dart'; diff --git a/dart/test/mocks/mock_hub.dart b/dart/test/mocks/mock_hub.dart index f6171fddff..351ad70672 100644 --- a/dart/test/mocks/mock_hub.dart +++ b/dart/test/mocks/mock_hub.dart @@ -1,6 +1,5 @@ import 'package:meta/meta.dart'; import 'package:sentry/sentry.dart'; -import 'package:sentry/src/profiling.dart'; import '../mocks.dart'; import 'mock_sentry_client.dart'; @@ -111,7 +110,6 @@ class MockHub with NoSuchMethodProvider implements Hub { Future captureTransaction( SentryTransaction transaction, { SentryTraceContextHeader? traceContext, - ProfileInfo? profileInfo, }) async { captureTransactionCalls .add(CaptureTransactionCall(transaction, traceContext)); diff --git a/dart/test/mocks/mock_sentry_client.dart b/dart/test/mocks/mock_sentry_client.dart index db8aad08c4..7b08250193 100644 --- a/dart/test/mocks/mock_sentry_client.dart +++ b/dart/test/mocks/mock_sentry_client.dart @@ -1,5 +1,4 @@ import 'package:sentry/sentry.dart'; -import 'package:sentry/src/profiling.dart'; import 'no_such_method_provider.dart'; @@ -85,7 +84,6 @@ class MockSentryClient with NoSuchMethodProvider implements SentryClient { SentryTransaction transaction, { Scope? scope, SentryTraceContextHeader? traceContext, - ProfileInfo? profileInfo, }) async { captureTransactionCalls .add(CaptureTransactionCall(transaction, traceContext)); diff --git a/flutter/test/mocks.dart b/flutter/test/mocks.dart index eb6f729fb9..c3ac1f28de 100644 --- a/flutter/test/mocks.dart +++ b/flutter/test/mocks.dart @@ -269,7 +269,8 @@ class TestMockSentryNative implements SentryNative { } @override - Future collectProfile(SentryId traceId, int startTimeNs) { + Future?> collectProfile( + SentryId traceId, int startTimeNs) { numberOfCollectProfileCalls++; return Future.value(null); } @@ -362,7 +363,8 @@ class MockNativeChannel implements SentryNativeChannel { } @override - Future collectProfile(SentryId traceId, int startTimeNs) { + Future?> collectProfile( + SentryId traceId, int startTimeNs) { numberOfCollectProfileCalls++; return Future.value(null); } From 31a92e54e5f9735458eea30180267149f1a5811b Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Mon, 28 Aug 2023 13:00:54 +0200 Subject: [PATCH 07/32] fix tests --- flutter/test/sentry_native_channel_test.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flutter/test/sentry_native_channel_test.dart b/flutter/test/sentry_native_channel_test.dart index 9821f649f1..a6f65ae58d 100644 --- a/flutter/test/sentry_native_channel_test.dart +++ b/flutter/test/sentry_native_channel_test.dart @@ -203,7 +203,7 @@ void main() { test('collectProfile', () async { final traceId = SentryId.newId(); const startTime = 42; - when(fixture.methodChannel.invokeMethod('collectProfile', { + when(fixture.methodChannel.invokeMapMethod('collectProfile', { 'traceId': traceId.toString(), 'startTime': startTime })).thenAnswer((_) => Future.value()); @@ -211,7 +211,7 @@ void main() { final sut = fixture.getSut(); await sut.collectProfile(traceId, startTime); - verify(fixture.methodChannel.invokeMethod('collectProfile', + verify(fixture.methodChannel.invokeMapMethod('collectProfile', {'traceId': traceId.toString(), 'startTime': startTime})); }); }); From b12978ed18f6d87624d386d8275a9db253d94b6c Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Mon, 28 Aug 2023 13:43:40 +0200 Subject: [PATCH 08/32] dart format --- dart/lib/src/hub_adapter.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dart/lib/src/hub_adapter.dart b/dart/lib/src/hub_adapter.dart index 12cddd5a2c..f46a5bd41b 100644 --- a/dart/lib/src/hub_adapter.dart +++ b/dart/lib/src/hub_adapter.dart @@ -97,10 +97,8 @@ class HubAdapter implements Hub { SentryId get lastEventId => Sentry.lastEventId; @override - Future captureTransaction( - SentryTransaction transaction, { - SentryTraceContextHeader? traceContext - }) => + Future captureTransaction(SentryTransaction transaction, + {SentryTraceContextHeader? traceContext}) => Sentry.currentHub.captureTransaction( transaction, traceContext: traceContext, From 3582adff214165907c72457a8a8a7e3851b72600 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Tue, 29 Aug 2023 18:05:05 +0200 Subject: [PATCH 09/32] ci: fix pana --- .github/workflows/analyze.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml index 9b418a78d9..411c29e4b2 100644 --- a/.github/workflows/analyze.yml +++ b/.github/workflows/analyze.yml @@ -60,6 +60,11 @@ jobs: timeout-minutes: 20 steps: - uses: actions/checkout@v3 + - name: Apply dependency override + if: ${{ inputs.package == 'flutter' }} + working-directory: ${{ inputs.package }} + run: | + sed -i.bak 's|sentry:.*|sentry:\n path: /github/workspace/dart|g' pubspec.yaml - uses: axel-op/dart-package-analyzer@7a6c3c66bce78d82b729a1ffef2d9458fde6c8d2 # pin@v3 id: analysis with: From 1d74bacb59d5bcd5dd6104d79712dfabf870919d Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Tue, 29 Aug 2023 21:59:55 +0200 Subject: [PATCH 10/32] update tests --- dart/lib/src/hub.dart | 3 ++ dart/lib/src/hub_adapter.dart | 10 ++++-- dart/lib/src/noop_hub.dart | 4 +++ flutter/lib/src/profiling.dart | 5 ++- flutter/test/mocks.mocks.dart | 19 +++++------ flutter/test/profiling_test.dart | 46 +++++++++++++++++++++++++++ flutter/test/sentry_flutter_test.dart | 17 ++++++++++ 7 files changed, 92 insertions(+), 12 deletions(-) create mode 100644 flutter/test/profiling_test.dart diff --git a/dart/lib/src/hub.dart b/dart/lib/src/hub.dart index 50d1b6c0f4..88667aaa2d 100644 --- a/dart/lib/src/hub.dart +++ b/dart/lib/src/hub.dart @@ -562,6 +562,9 @@ class Hub { ) => _throwableToSpan.add(throwable, span, transaction); + @internal + ProfilerFactory? get profilerFactory => _profilerFactory; + @internal set profilerFactory(ProfilerFactory? value) => _profilerFactory = value; diff --git a/dart/lib/src/hub_adapter.dart b/dart/lib/src/hub_adapter.dart index f46a5bd41b..3fad3b2839 100644 --- a/dart/lib/src/hub_adapter.dart +++ b/dart/lib/src/hub_adapter.dart @@ -97,8 +97,10 @@ class HubAdapter implements Hub { SentryId get lastEventId => Sentry.lastEventId; @override - Future captureTransaction(SentryTransaction transaction, - {SentryTraceContextHeader? traceContext}) => + Future captureTransaction( + SentryTransaction transaction, { + SentryTraceContextHeader? traceContext, + }) => Sentry.currentHub.captureTransaction( transaction, traceContext: traceContext, @@ -172,6 +174,10 @@ class HubAdapter implements Hub { set profilerFactory(ProfilerFactory? value) => Sentry.currentHub.profilerFactory = value; + @internal + @override + ProfilerFactory? get profilerFactory => Sentry.currentHub.profilerFactory; + @override Scope get scope => Sentry.currentHub.scope; } diff --git a/dart/lib/src/noop_hub.dart b/dart/lib/src/noop_hub.dart index 3ad92f5f06..fa7bbe84a8 100644 --- a/dart/lib/src/noop_hub.dart +++ b/dart/lib/src/noop_hub.dart @@ -125,6 +125,10 @@ class NoOpHub implements Hub { @override set profilerFactory(ProfilerFactory? value) {} + @internal + @override + ProfilerFactory? get profilerFactory => null; + @override Scope get scope => Scope(_options); } diff --git a/flutter/lib/src/profiling.dart b/flutter/lib/src/profiling.dart index c163ee7582..32a8df1d30 100644 --- a/flutter/lib/src/profiling.dart +++ b/flutter/lib/src/profiling.dart @@ -30,7 +30,8 @@ class NativeProfilerFactory implements ProfilerFactory { return; } - if (Platform.isMacOS || Platform.isIOS) { + if (options.platformChecker.platform.isMacOS || + options.platformChecker.platform.isIOS) { // ignore: invalid_use_of_internal_member hub.profilerFactory = NativeProfilerFactory(SentryNative()); } @@ -53,6 +54,8 @@ class NativeProfilerFactory implements ProfilerFactory { } } +// TODO this may move to the native code in the future - instead of unit-testing, +// do an integration test once https://github.com/getsentry/sentry-dart/issues/1605 is done. // ignore: invalid_use_of_internal_member class NativeProfiler implements Profiler { final SentryNative _native; diff --git a/flutter/test/mocks.mocks.dart b/flutter/test/mocks.mocks.dart index cbc5d6d48f..af0f14a761 100644 --- a/flutter/test/mocks.mocks.dart +++ b/flutter/test/mocks.mocks.dart @@ -196,6 +196,14 @@ class MockSentryTracer extends _i1.Mock implements _i8.SentryTracer { returnValueForMissingStub: null, ); @override + set profileInfo(_i9.ProfileInfo? _profileInfo) => super.noSuchMethod( + Invocation.setter( + #profileInfo, + _profileInfo, + ), + returnValueForMissingStub: null, + ); + @override _i2.SentrySpanContext get context => (super.noSuchMethod( Invocation.getter(#context), returnValue: _FakeSentrySpanContext_0( @@ -803,26 +811,19 @@ class MockHub extends _i1.Mock implements _i2.Hub { _i6.Future<_i3.SentryId> captureTransaction( _i3.SentryTransaction? transaction, { _i2.SentryTraceContextHeader? traceContext, - _i9.ProfileInfo? profileInfo, }) => (super.noSuchMethod( Invocation.method( #captureTransaction, [transaction], - { - #traceContext: traceContext, - #profileInfo: profileInfo, - }, + {#traceContext: traceContext}, ), returnValue: _i6.Future<_i3.SentryId>.value(_FakeSentryId_7( this, Invocation.method( #captureTransaction, [transaction], - { - #traceContext: traceContext, - #profileInfo: profileInfo, - }, + {#traceContext: traceContext}, ), )), ) as _i6.Future<_i3.SentryId>); diff --git a/flutter/test/profiling_test.dart b/flutter/test/profiling_test.dart new file mode 100644 index 0000000000..6656a0a31e --- /dev/null +++ b/flutter/test/profiling_test.dart @@ -0,0 +1,46 @@ +@TestOn('vm') + +import 'package:flutter_test/flutter_test.dart'; +import 'package:mockito/mockito.dart'; +import 'package:sentry_flutter/sentry_flutter.dart'; +import 'package:sentry_flutter/src/profiling.dart'; +import 'package:sentry_flutter/src/sentry_native.dart'; +import 'package:sentry_flutter/src/sentry_native_channel.dart'; +import 'mocks.dart'; +import 'mocks.mocks.dart'; +import 'sentry_flutter_test.dart'; + +void main() { + group('$NativeProfilerFactory', () { + Hub hubWithSampleRate(double profilesSampleRate) { + final o = SentryFlutterOptions(dsn: fakeDsn); + o.platformChecker = getPlatformChecker(platform: MockPlatform.iOs()); + o.profilesSampleRate = profilesSampleRate; + + final hub = MockHub(); + when(hub.options).thenAnswer((_) => o); + return hub; + } + + test('attachTo() respects sampling rate', () async { + var hub = hubWithSampleRate(0.0); + NativeProfilerFactory.attachTo(hub); + verifyNever(hub.profilerFactory = any); + + hub = hubWithSampleRate(0.1); + NativeProfilerFactory.attachTo(hub); + verify(hub.profilerFactory = any); + }); + + test('creates a profiler', () async { + final nativeMock = TestMockSentryNative(); + final sut = NativeProfilerFactory(nativeMock); + final profiler = sut.startProfiling(SentryTransactionContext( + 'name', + 'op', + )); + expect(nativeMock.numberOfStartProfilingCalls, 1); + expect(profiler, isNotNull); + }); + }); +} diff --git a/flutter/test/sentry_flutter_test.dart b/flutter/test/sentry_flutter_test.dart index 4621ae3b7f..05ff7a300b 100644 --- a/flutter/test/sentry_flutter_test.dart +++ b/flutter/test/sentry_flutter_test.dart @@ -5,6 +5,7 @@ import 'package:package_info_plus/package_info_plus.dart'; import 'package:sentry_flutter/sentry_flutter.dart'; import 'package:sentry_flutter/src/integrations/integrations.dart'; import 'package:sentry_flutter/src/integrations/screenshot_integration.dart'; +import 'package:sentry_flutter/src/profiling.dart'; import 'package:sentry_flutter/src/renderer/renderer.dart'; import 'package:sentry_flutter/src/native/sentry_native.dart'; import 'package:sentry_flutter/src/version.dart'; @@ -65,6 +66,7 @@ void main() { (options) async { options.dsn = fakeDsn; options.devMode = true; + options.profilesSampleRate = 1.0; integrations = options.integrations; transport = options.transport; sentryFlutterOptions = options; @@ -100,6 +102,7 @@ void main() { afterIntegration: OnErrorIntegration); expect(SentryNative().nativeChannel, isNotNull); + expect(Sentry.currentHub.profilerFactory, isNull); await Sentry.close(); }, testOn: 'vm'); @@ -113,6 +116,7 @@ void main() { (options) async { options.dsn = fakeDsn; options.devMode = true; + options.profilesSampleRate = 1.0; integrations = options.integrations; transport = options.transport; sentryFlutterOptions = options; @@ -146,6 +150,8 @@ void main() { afterIntegration: OnErrorIntegration); expect(SentryNative().nativeChannel, isNotNull); + expect(Sentry.currentHub.profilerFactory, + isInstanceOf()); await Sentry.close(); }, testOn: 'vm'); @@ -159,6 +165,7 @@ void main() { (options) async { options.dsn = fakeDsn; options.devMode = true; + options.profilesSampleRate = 1.0; integrations = options.integrations; transport = options.transport; sentryFlutterOptions = options; @@ -192,6 +199,8 @@ void main() { afterIntegration: OnErrorIntegration); expect(SentryNative().nativeChannel, isNotNull); + expect(Sentry.currentHub.profilerFactory, + isInstanceOf()); await Sentry.close(); }, testOn: 'vm'); @@ -205,6 +214,7 @@ void main() { (options) async { options.dsn = fakeDsn; options.devMode = true; + options.profilesSampleRate = 1.0; integrations = options.integrations; transport = options.transport; sentryFlutterOptions = options; @@ -241,6 +251,7 @@ void main() { afterIntegration: OnErrorIntegration); expect(SentryNative().nativeChannel, isNull); + expect(Sentry.currentHub.profilerFactory, isNull); await Sentry.close(); }, testOn: 'vm'); @@ -254,6 +265,7 @@ void main() { (options) async { options.dsn = fakeDsn; options.devMode = true; + options.profilesSampleRate = 1.0; integrations = options.integrations; transport = options.transport; sentryFlutterOptions = options; @@ -290,6 +302,7 @@ void main() { afterIntegration: OnErrorIntegration); expect(SentryNative().nativeChannel, isNull); + expect(Sentry.currentHub.profilerFactory, isNull); await Sentry.close(); }, testOn: 'vm'); @@ -303,6 +316,7 @@ void main() { (options) async { options.dsn = fakeDsn; options.devMode = true; + options.profilesSampleRate = 1.0; integrations = options.integrations; transport = options.transport; sentryFlutterOptions = options; @@ -340,6 +354,7 @@ void main() { afterIntegration: WidgetsFlutterBindingIntegration); expect(SentryNative().nativeChannel, isNull); + expect(Sentry.currentHub.profilerFactory, isNull); await Sentry.close(); }); @@ -429,6 +444,8 @@ void main() { beforeIntegration: RunZonedGuardedIntegration, afterIntegration: WidgetsFlutterBindingIntegration); + expect(Sentry.currentHub.profilerFactory, isNull); + await Sentry.close(); }); From 8d23d3f0824f450061622f50590ab40ab3ff33d7 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Tue, 29 Aug 2023 22:06:25 +0200 Subject: [PATCH 11/32] analysis issues --- dart/analysis_options.yaml | 1 + flutter/lib/src/profiling.dart | 1 - flutter/test/profiling_test.dart | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dart/analysis_options.yaml b/dart/analysis_options.yaml index c5924fcb20..74ed00b114 100644 --- a/dart/analysis_options.yaml +++ b/dart/analysis_options.yaml @@ -3,6 +3,7 @@ include: package:lints/recommended.yaml analyzer: exclude: - example/** # the example has its own 'analysis_options.yaml' + - test/*.mocks.dart errors: # treat missing required parameters as a warning (not a hint) missing_required_param: error diff --git a/flutter/lib/src/profiling.dart b/flutter/lib/src/profiling.dart index 32a8df1d30..6adf12deac 100644 --- a/flutter/lib/src/profiling.dart +++ b/flutter/lib/src/profiling.dart @@ -1,5 +1,4 @@ import 'dart:async'; -import 'dart:io'; import 'package:sentry/sentry.dart'; // ignore: implementation_imports diff --git a/flutter/test/profiling_test.dart b/flutter/test/profiling_test.dart index 6656a0a31e..605ca6c1a2 100644 --- a/flutter/test/profiling_test.dart +++ b/flutter/test/profiling_test.dart @@ -4,8 +4,6 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/mockito.dart'; import 'package:sentry_flutter/sentry_flutter.dart'; import 'package:sentry_flutter/src/profiling.dart'; -import 'package:sentry_flutter/src/sentry_native.dart'; -import 'package:sentry_flutter/src/sentry_native_channel.dart'; import 'mocks.dart'; import 'mocks.mocks.dart'; import 'sentry_flutter_test.dart'; @@ -25,10 +23,12 @@ void main() { test('attachTo() respects sampling rate', () async { var hub = hubWithSampleRate(0.0); NativeProfilerFactory.attachTo(hub); + // ignore: invalid_use_of_internal_member verifyNever(hub.profilerFactory = any); hub = hubWithSampleRate(0.1); NativeProfilerFactory.attachTo(hub); + // ignore: invalid_use_of_internal_member verify(hub.profilerFactory = any); }); From c9be10c7122137cfcfb5f6c347efbdbb867bf75d Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Tue, 5 Sep 2023 20:39:43 +0200 Subject: [PATCH 12/32] update to the latest cocoa SDK API --- dart/lib/src/hub.dart | 2 +- dart/lib/src/profiling.dart | 2 +- dart/lib/src/protocol/sentry_event.dart | 2 +- dart/test/hub_test.dart | 8 +- dart/test/mocks.mocks.dart | 4 +- .../Classes/SentryFlutterPluginApple.swift | 30 +- flutter/lib/src/native/sentry_native.dart | 12 +- .../lib/src/native/sentry_native_channel.dart | 23 +- flutter/lib/src/profiling.dart | 49 ++- flutter/test/mocks.dart | 31 +- flutter/test/mocks.mocks.dart | 384 ++++++++++++++---- flutter/test/profiling_test.dart | 55 ++- flutter/test/sentry_native_channel_test.dart | 36 +- flutter/test/sentry_native_test.dart | 15 +- 14 files changed, 516 insertions(+), 137 deletions(-) diff --git a/dart/lib/src/hub.dart b/dart/lib/src/hub.dart index 88667aaa2d..2812dfca1e 100644 --- a/dart/lib/src/hub.dart +++ b/dart/lib/src/hub.dart @@ -455,7 +455,7 @@ class Hub { Profiler? profiler; if (_profilerFactory != null && _tracesSampler.sampleProfiling(samplingDecision)) { - profiler = _profilerFactory?.startProfiling(transactionContext); + profiler = _profilerFactory?.startProfiler(transactionContext); } final tracer = SentryTracer( diff --git a/dart/lib/src/profiling.dart b/dart/lib/src/profiling.dart index 9830bdc0ec..9bce57ffd7 100644 --- a/dart/lib/src/profiling.dart +++ b/dart/lib/src/profiling.dart @@ -6,7 +6,7 @@ import '../sentry.dart'; @internal abstract class ProfilerFactory { - Profiler? startProfiling(SentryTransactionContext context); + Profiler? startProfiler(SentryTransactionContext context); } @internal diff --git a/dart/lib/src/protocol/sentry_event.dart b/dart/lib/src/protocol/sentry_event.dart index e51441cd7d..32a76b9885 100644 --- a/dart/lib/src/protocol/sentry_event.dart +++ b/dart/lib/src/protocol/sentry_event.dart @@ -59,7 +59,7 @@ class SentryEvent with SentryEventLike { /// The ID Sentry.io assigned to the submitted event for future reference. final SentryId eventId; - /// A timestamp representing when the breadcrumb occurred. + /// A timestamp representing when the event occurred. final DateTime? timestamp; /// A string representing the platform the SDK is submitting from. This will be used by the Sentry interface to customize various components in the interface. diff --git a/dart/test/hub_test.dart b/dart/test/hub_test.dart index e257ec9be6..d2f1232b65 100644 --- a/dart/test/hub_test.dart +++ b/dart/test/hub_test.dart @@ -387,7 +387,7 @@ void main() { test('profiler is started according to the sampling rate', () async { final hub = fixture.getSut(); final factory = MockProfilerFactory(); - when(factory.startProfiling(fixture._context)).thenReturn(MockProfiler()); + when(factory.startProfiler(fixture._context)).thenReturn(MockProfiler()); hub.profilerFactory = factory; var tr = hub.startTransactionWithContext(fixture._context); @@ -397,7 +397,7 @@ void main() { hub.options.profilesSampleRate = 1.0; tr = hub.startTransactionWithContext(fixture._context); expect((tr as SentryTracer).profiler, isNotNull); - verify(factory.startProfiling(fixture._context)).called(1); + verify(factory.startProfiler(fixture._context)).called(1); }); test('profiler.finish() is called', () async { @@ -405,7 +405,7 @@ void main() { final factory = MockProfilerFactory(); final profiler = MockProfiler(); final expected = MockProfileInfo(); - when(factory.startProfiling(fixture._context)).thenReturn(profiler); + when(factory.startProfiler(fixture._context)).thenReturn(profiler); when(profiler.finishFor(any)).thenAnswer((_) async => expected); hub.profilerFactory = factory; @@ -421,7 +421,7 @@ void main() { final factory = MockProfilerFactory(); final profiler = MockProfiler(); final expected = MockProfileInfo(); - when(factory.startProfiling(fixture._context)).thenReturn(profiler); + when(factory.startProfiler(fixture._context)).thenReturn(profiler); when(profiler.finishFor(any)).thenAnswer((_) async => expected); hub.profilerFactory = factory; diff --git a/dart/test/mocks.mocks.dart b/dart/test/mocks.mocks.dart index 249f7e4862..44a1236747 100644 --- a/dart/test/mocks.mocks.dart +++ b/dart/test/mocks.mocks.dart @@ -40,9 +40,9 @@ class MockProfilerFactory extends _i1.Mock implements _i3.ProfilerFactory { } @override - _i3.Profiler? startProfiling(_i2.SentryTransactionContext? context) => + _i3.Profiler? startProfiler(_i2.SentryTransactionContext? context) => (super.noSuchMethod(Invocation.method( - #startProfiling, + #startProfiler, [context], )) as _i3.Profiler?); } diff --git a/flutter/ios/Classes/SentryFlutterPluginApple.swift b/flutter/ios/Classes/SentryFlutterPluginApple.swift index 6308ae4b4a..02f2ab57f3 100644 --- a/flutter/ios/Classes/SentryFlutterPluginApple.swift +++ b/flutter/ios/Classes/SentryFlutterPluginApple.swift @@ -153,8 +153,11 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin { removeTag(key: key, result: result) #if !os(tvOS) && !os(watchOS) - case "startProfiling": - startProfiling(call, result) + case "startProfiler": + startProfiler(call, result) + + case "discardProfiler": + discardProfiler(call, result) case "collectProfile": collectProfile(call, result) @@ -559,14 +562,14 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin { } } - private func startProfiling(_ call: FlutterMethodCall, _ result: @escaping FlutterResult) { + private func startProfiler(_ call: FlutterMethodCall, _ result: @escaping FlutterResult) { guard let traceId = call.arguments as? String else { print("Cannot start profiling: trace ID missing") result(FlutterError(code: "5", message: "Cannot start profiling: trace ID missing", details: nil)) return } - let startTime = PrivateSentrySDKOnly.startProfiling(forTrace: SentryId(uuidString: traceId)) + let startTime = PrivateSentrySDKOnly.startProfiler(forTrace: SentryId(uuidString: traceId)) result(startTime) } @@ -584,9 +587,26 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin { return } - let payload = PrivateSentrySDKOnly.collectProfile(forTrace: SentryId(uuidString: traceId), since: startTime) + guard let endTime = arguments["endTime"] as? UInt64 else { + print("Cannot collect profile: end time missing") + result(FlutterError(code: "8", message: "Cannot collect profile: end time missing", details: nil)) + return + } + + let payload = PrivateSentrySDKOnly.collectProfileBetween(startTime, and: endTime, forTrace: SentryId(uuidString: traceId)) result(payload) } + + private func discardProfiler(_ call: FlutterMethodCall, _ result: @escaping FlutterResult) { + guard let traceId = call.arguments as? String else { + print("Cannot discard a profiler: trace ID missing") + result(FlutterError(code: "9", message: "Cannot discard a profiler: trace ID missing", details: nil)) + return + } + + PrivateSentrySDKOnly.discardProfiler(forTrace: SentryId(uuidString: traceId)) + result(nil) + } } // swiftlint:enable function_body_length diff --git a/flutter/lib/src/native/sentry_native.dart b/flutter/lib/src/native/sentry_native.dart index 1b7aaf8dcd..cfd066663d 100644 --- a/flutter/lib/src/native/sentry_native.dart +++ b/flutter/lib/src/native/sentry_native.dart @@ -92,13 +92,17 @@ class SentryNative { return await _nativeChannel?.removeTag(key); } - Future startProfiling(SentryId traceId) async { - return _nativeChannel?.startProfiling(traceId); + Future startProfiler(SentryId traceId) async { + return _nativeChannel?.startProfiler(traceId); + } + + Future discardProfiler(SentryId traceId) async { + return _nativeChannel?.discardProfiler(traceId); } Future?> collectProfile( - SentryId traceId, int startTimeNs) async { - return _nativeChannel?.collectProfile(traceId, startTimeNs); + SentryId traceId, int startTimeNs, int endTimeNs) async { + return _nativeChannel?.collectProfile(traceId, startTimeNs, endTimeNs); } /// Reset state diff --git a/flutter/lib/src/native/sentry_native_channel.dart b/flutter/lib/src/native/sentry_native_channel.dart index bb2e51311d..b6165903b4 100644 --- a/flutter/lib/src/native/sentry_native_channel.dart +++ b/flutter/lib/src/native/sentry_native_channel.dart @@ -139,21 +139,32 @@ class SentryNativeChannel { } } - Future startProfiling(SentryId traceId) async { + Future startProfiler(SentryId traceId) async { try { - return await _channel.invokeMethod('startProfiling', traceId.toString()) + return await _channel.invokeMethod('startProfiler', traceId.toString()) as int?; } catch (error, stackTrace) { - _logError('startProfiling', error, stackTrace); + _logError('startProfiler', error, stackTrace); return null; } } + Future discardProfiler(SentryId traceId) async { + try { + return await _channel.invokeMethod('discardProfiler', traceId.toString()); + } catch (error, stackTrace) { + _logError('discardProfiler', error, stackTrace); + } + } + Future?> collectProfile( - SentryId traceId, int startTimeNs) async { + SentryId traceId, int startTimeNs, int endTimeNs) async { try { - return await _channel.invokeMapMethod('collectProfile', - {'traceId': traceId.toString(), 'startTime': startTimeNs}); + return await _channel.invokeMapMethod('collectProfile', { + 'traceId': traceId.toString(), + 'startTime': startTimeNs, + 'endTime': endTimeNs, + }); } catch (error, stackTrace) { _logError('collectProfile', error, stackTrace); return null; diff --git a/flutter/lib/src/profiling.dart b/flutter/lib/src/profiling.dart index 6adf12deac..d0b5bd6dee 100644 --- a/flutter/lib/src/profiling.dart +++ b/flutter/lib/src/profiling.dart @@ -13,8 +13,9 @@ import 'sentry_native.dart'; // ignore: invalid_use_of_internal_member class NativeProfilerFactory implements ProfilerFactory { final SentryNative _native; + final ClockProvider _clock; - NativeProfilerFactory(this._native); + NativeProfilerFactory(this._native, this._clock); static void attachTo(Hub hub) { // ignore: invalid_use_of_internal_member @@ -32,24 +33,26 @@ class NativeProfilerFactory implements ProfilerFactory { if (options.platformChecker.platform.isMacOS || options.platformChecker.platform.isIOS) { // ignore: invalid_use_of_internal_member - hub.profilerFactory = NativeProfilerFactory(SentryNative()); + hub.profilerFactory = + // ignore: invalid_use_of_internal_member + NativeProfilerFactory(SentryNative(), options.clock); } } @override - NativeProfiler? startProfiling(SentryTransactionContext context) { + NativeProfiler? startProfiler(SentryTransactionContext context) { if (context.traceId == SentryId.empty()) { return null; } - final startTime = _native.startProfiling(context.traceId); + final startTime = _native.startProfiler(context.traceId); // TODO we cannot await the future returned by a method channel because // startTransaction() is synchronous. In order to make this code fully // synchronous and actually start the profiler, we need synchronous FFI // calls, see https://github.com/getsentry/sentry-dart/issues/1444 // For now, return immediately even though the profiler may not have started yet... - return NativeProfiler(_native, startTime, context.traceId); + return NativeProfiler(_native, startTime, context.traceId, _clock); } } @@ -60,33 +63,45 @@ class NativeProfiler implements Profiler { final SentryNative _native; final Future _startTime; final SentryId _traceId; + bool _finished = false; + final ClockProvider _clock; - NativeProfiler(this._native, this._startTime, this._traceId); + NativeProfiler(this._native, this._startTime, this._traceId, this._clock); @override void dispose() { - // TODO expose in the cocoa SDK - // _startTime.then((_) => _native.discardProfiling(this._traceId)); + if (!_finished) { + _finished = true; + _startTime.then((_) => _native.discardProfiler(_traceId)); + } } @override Future finishFor(SentryTransaction transaction) async { - final starTime = await _startTime; - if (starTime == null) { + if (_finished) { + return null; + } + _finished = true; + + final starTimeNs = await _startTime; + if (starTimeNs == null) { return null; } - final payload = await _native.collectProfile(_traceId, starTime); + // ignore: invalid_use_of_internal_member + final transactionEndTime = transaction.timestamp ?? _clock(); + final duration = transactionEndTime.difference(transaction.startTimestamp); + final endTimeNs = starTimeNs + (duration.inMicroseconds * 1000); + + final payload = + await _native.collectProfile(_traceId, starTimeNs, endTimeNs); if (payload == null) { return null; } - payload["transaction"] = { - "id": transaction.eventId.toString(), - "trace_id": _traceId.toString(), - "name": transaction.transaction, - // "active_thread_id" : [transaction.trace.transactionContext sentry_threadInfo].threadId - }; + payload["transaction"]["id"] = transaction.eventId.toString(); + payload["transaction"]["trace_id"] = _traceId.toString(); + payload["transaction"]["name"] = transaction.transaction; payload["timestamp"] = transaction.startTimestamp.toIso8601String(); return NativeProfileInfo(payload); } diff --git a/flutter/test/mocks.dart b/flutter/test/mocks.dart index c3ac1f28de..0598415fa1 100644 --- a/flutter/test/mocks.dart +++ b/flutter/test/mocks.dart @@ -40,6 +40,7 @@ ISentrySpan startTransactionShim( Transport, // ignore: invalid_use_of_internal_member SentryTracer, + SentryTransaction, MethodChannel, ], customMocks: [ MockSpec(fallbackGenerators: {#startTransaction: startTransactionShim}) @@ -189,7 +190,8 @@ class TestMockSentryNative implements SentryNative { var numberOfSetTagCalls = 0; SentryUser? sentryUser; var numberOfSetUserCalls = 0; - var numberOfStartProfilingCalls = 0; + var numberOfStartProfilerCalls = 0; + var numberOfDiscardProfilerCalls = 0; var numberOfCollectProfileCalls = 0; @override @@ -270,14 +272,20 @@ class TestMockSentryNative implements SentryNative { @override Future?> collectProfile( - SentryId traceId, int startTimeNs) { + SentryId traceId, int startTimeNs, int endTimeNs) { numberOfCollectProfileCalls++; return Future.value(null); } @override - Future startProfiling(SentryId traceId) { - numberOfStartProfilingCalls++; + Future startProfiler(SentryId traceId) { + numberOfStartProfilerCalls++; + return Future.value(42); + } + + @override + Future discardProfiler(SentryId traceId) { + numberOfDiscardProfilerCalls++; return Future.value(null); } } @@ -299,7 +307,8 @@ class MockNativeChannel implements SentryNativeChannel { int numberOfSetContextsCalls = 0; int numberOfSetExtraCalls = 0; int numberOfSetTagCalls = 0; - int numberOfStartProfilingCalls = 0; + int numberOfStartProfilerCalls = 0; + int numberOfDiscardProfilerCalls = 0; int numberOfCollectProfileCalls = 0; @override @@ -364,14 +373,20 @@ class MockNativeChannel implements SentryNativeChannel { @override Future?> collectProfile( - SentryId traceId, int startTimeNs) { + SentryId traceId, int startTimeNs, int endTimeNs) { numberOfCollectProfileCalls++; return Future.value(null); } @override - Future startProfiling(SentryId traceId) { - numberOfStartProfilingCalls++; + Future startProfiler(SentryId traceId) { + numberOfStartProfilerCalls++; + return Future.value(null); + } + + @override + Future discardProfiler(SentryId traceId) { + numberOfDiscardProfilerCalls++; return Future.value(null); } } diff --git a/flutter/test/mocks.mocks.dart b/flutter/test/mocks.mocks.dart index af0f14a761..ebfc095fda 100644 --- a/flutter/test/mocks.mocks.dart +++ b/flutter/test/mocks.mocks.dart @@ -3,17 +3,17 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i6; +import 'dart:async' as _i7; -import 'package:flutter/src/services/binary_messenger.dart' as _i5; -import 'package:flutter/src/services/message_codec.dart' as _i4; +import 'package:flutter/src/services/binary_messenger.dart' as _i6; +import 'package:flutter/src/services/message_codec.dart' as _i5; import 'package:flutter/src/services/platform_channel.dart' as _i10; import 'package:mockito/mockito.dart' as _i1; import 'package:sentry/sentry.dart' as _i2; import 'package:sentry/src/profiling.dart' as _i9; import 'package:sentry/src/protocol.dart' as _i3; -import 'package:sentry/src/sentry_envelope.dart' as _i7; -import 'package:sentry/src/sentry_tracer.dart' as _i8; +import 'package:sentry/src/sentry_envelope.dart' as _i8; +import 'package:sentry/src/sentry_tracer.dart' as _i4; import 'mocks.dart' as _i11; @@ -70,8 +70,8 @@ class _FakeSentryTraceHeader_3 extends _i1.SmartFake ); } -class _FakeMethodCodec_4 extends _i1.SmartFake implements _i4.MethodCodec { - _FakeMethodCodec_4( +class _FakeSentryTracer_4 extends _i1.SmartFake implements _i4.SentryTracer { + _FakeSentryTracer_4( Object parent, Invocation parentInvocation, ) : super( @@ -80,9 +80,8 @@ class _FakeMethodCodec_4 extends _i1.SmartFake implements _i4.MethodCodec { ); } -class _FakeBinaryMessenger_5 extends _i1.SmartFake - implements _i5.BinaryMessenger { - _FakeBinaryMessenger_5( +class _FakeSentryId_5 extends _i1.SmartFake implements _i3.SentryId { + _FakeSentryId_5( Object parent, Invocation parentInvocation, ) : super( @@ -91,8 +90,8 @@ class _FakeBinaryMessenger_5 extends _i1.SmartFake ); } -class _FakeSentryOptions_6 extends _i1.SmartFake implements _i2.SentryOptions { - _FakeSentryOptions_6( +class _FakeContexts_6 extends _i1.SmartFake implements _i3.Contexts { + _FakeContexts_6( Object parent, Invocation parentInvocation, ) : super( @@ -101,8 +100,9 @@ class _FakeSentryOptions_6 extends _i1.SmartFake implements _i2.SentryOptions { ); } -class _FakeSentryId_7 extends _i1.SmartFake implements _i3.SentryId { - _FakeSentryId_7( +class _FakeSentryTransaction_7 extends _i1.SmartFake + implements _i3.SentryTransaction { + _FakeSentryTransaction_7( Object parent, Invocation parentInvocation, ) : super( @@ -111,8 +111,8 @@ class _FakeSentryId_7 extends _i1.SmartFake implements _i3.SentryId { ); } -class _FakeScope_8 extends _i1.SmartFake implements _i2.Scope { - _FakeScope_8( +class _FakeMethodCodec_8 extends _i1.SmartFake implements _i5.MethodCodec { + _FakeMethodCodec_8( Object parent, Invocation parentInvocation, ) : super( @@ -121,8 +121,39 @@ class _FakeScope_8 extends _i1.SmartFake implements _i2.Scope { ); } -class _FakeHub_9 extends _i1.SmartFake implements _i2.Hub { - _FakeHub_9( +class _FakeBinaryMessenger_9 extends _i1.SmartFake + implements _i6.BinaryMessenger { + _FakeBinaryMessenger_9( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeSentryOptions_10 extends _i1.SmartFake implements _i2.SentryOptions { + _FakeSentryOptions_10( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeScope_11 extends _i1.SmartFake implements _i2.Scope { + _FakeScope_11( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeHub_12 extends _i1.SmartFake implements _i2.Hub { + _FakeHub_12( Object parent, Invocation parentInvocation, ) : super( @@ -140,20 +171,20 @@ class MockTransport extends _i1.Mock implements _i2.Transport { } @override - _i6.Future<_i3.SentryId?> send(_i7.SentryEnvelope? envelope) => + _i7.Future<_i3.SentryId?> send(_i8.SentryEnvelope? envelope) => (super.noSuchMethod( Invocation.method( #send, [envelope], ), - returnValue: _i6.Future<_i3.SentryId?>.value(), - ) as _i6.Future<_i3.SentryId?>); + returnValue: _i7.Future<_i3.SentryId?>.value(), + ) as _i7.Future<_i3.SentryId?>); } /// A class which mocks [SentryTracer]. /// /// See the documentation for Mockito's code generation for more information. -class MockSentryTracer extends _i1.Mock implements _i8.SentryTracer { +class MockSentryTracer extends _i1.Mock implements _i4.SentryTracer { MockSentryTracer() { _i1.throwOnMissingStub(this); } @@ -269,7 +300,7 @@ class MockSentryTracer extends _i1.Mock implements _i8.SentryTracer { returnValue: {}, ) as Map); @override - _i6.Future finish({ + _i7.Future finish({ _i3.SpanStatus? status, DateTime? endTimestamp, }) => @@ -282,9 +313,9 @@ class MockSentryTracer extends _i1.Mock implements _i8.SentryTracer { #endTimestamp: endTimestamp, }, ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); @override void removeData(String? key) => super.noSuchMethod( Invocation.method( @@ -433,6 +464,215 @@ class MockSentryTracer extends _i1.Mock implements _i8.SentryTracer { ); } +/// A class which mocks [SentryTransaction]. +/// +/// See the documentation for Mockito's code generation for more information. +// ignore: must_be_immutable +class MockSentryTransaction extends _i1.Mock implements _i3.SentryTransaction { + MockSentryTransaction() { + _i1.throwOnMissingStub(this); + } + + @override + DateTime get startTimestamp => (super.noSuchMethod( + Invocation.getter(#startTimestamp), + returnValue: _FakeDateTime_1( + this, + Invocation.getter(#startTimestamp), + ), + ) as DateTime); + @override + set startTimestamp(DateTime? _startTimestamp) => super.noSuchMethod( + Invocation.setter( + #startTimestamp, + _startTimestamp, + ), + returnValueForMissingStub: null, + ); + @override + List<_i3.SentrySpan> get spans => (super.noSuchMethod( + Invocation.getter(#spans), + returnValue: <_i3.SentrySpan>[], + ) as List<_i3.SentrySpan>); + @override + set spans(List<_i3.SentrySpan>? _spans) => super.noSuchMethod( + Invocation.setter( + #spans, + _spans, + ), + returnValueForMissingStub: null, + ); + @override + _i4.SentryTracer get tracer => (super.noSuchMethod( + Invocation.getter(#tracer), + returnValue: _FakeSentryTracer_4( + this, + Invocation.getter(#tracer), + ), + ) as _i4.SentryTracer); + @override + Map get measurements => (super.noSuchMethod( + Invocation.getter(#measurements), + returnValue: {}, + ) as Map); + @override + set measurements(Map? _measurements) => + super.noSuchMethod( + Invocation.setter( + #measurements, + _measurements, + ), + returnValueForMissingStub: null, + ); + @override + set transactionInfo(_i3.SentryTransactionInfo? _transactionInfo) => + super.noSuchMethod( + Invocation.setter( + #transactionInfo, + _transactionInfo, + ), + returnValueForMissingStub: null, + ); + @override + bool get finished => (super.noSuchMethod( + Invocation.getter(#finished), + returnValue: false, + ) as bool); + @override + bool get sampled => (super.noSuchMethod( + Invocation.getter(#sampled), + returnValue: false, + ) as bool); + @override + _i3.SentryId get eventId => (super.noSuchMethod( + Invocation.getter(#eventId), + returnValue: _FakeSentryId_5( + this, + Invocation.getter(#eventId), + ), + ) as _i3.SentryId); + @override + _i3.Contexts get contexts => (super.noSuchMethod( + Invocation.getter(#contexts), + returnValue: _FakeContexts_6( + this, + Invocation.getter(#contexts), + ), + ) as _i3.Contexts); + @override + Map toJson() => (super.noSuchMethod( + Invocation.method( + #toJson, + [], + ), + returnValue: {}, + ) as Map); + @override + _i3.SentryTransaction copyWith({ + _i3.SentryId? eventId, + DateTime? timestamp, + String? platform, + String? logger, + String? serverName, + String? release, + String? dist, + String? environment, + Map? modules, + _i3.SentryMessage? message, + String? transaction, + dynamic throwable, + _i3.SentryLevel? level, + String? culprit, + Map? tags, + Map? extra, + List? fingerprint, + _i3.SentryUser? user, + _i3.Contexts? contexts, + List<_i3.Breadcrumb>? breadcrumbs, + _i3.SdkVersion? sdk, + _i3.SentryRequest? request, + _i3.DebugMeta? debugMeta, + List<_i3.SentryException>? exceptions, + List<_i3.SentryThread>? threads, + String? type, + Map? measurements, + _i3.SentryTransactionInfo? transactionInfo, + }) => + (super.noSuchMethod( + Invocation.method( + #copyWith, + [], + { + #eventId: eventId, + #timestamp: timestamp, + #platform: platform, + #logger: logger, + #serverName: serverName, + #release: release, + #dist: dist, + #environment: environment, + #modules: modules, + #message: message, + #transaction: transaction, + #throwable: throwable, + #level: level, + #culprit: culprit, + #tags: tags, + #extra: extra, + #fingerprint: fingerprint, + #user: user, + #contexts: contexts, + #breadcrumbs: breadcrumbs, + #sdk: sdk, + #request: request, + #debugMeta: debugMeta, + #exceptions: exceptions, + #threads: threads, + #type: type, + #measurements: measurements, + #transactionInfo: transactionInfo, + }, + ), + returnValue: _FakeSentryTransaction_7( + this, + Invocation.method( + #copyWith, + [], + { + #eventId: eventId, + #timestamp: timestamp, + #platform: platform, + #logger: logger, + #serverName: serverName, + #release: release, + #dist: dist, + #environment: environment, + #modules: modules, + #message: message, + #transaction: transaction, + #throwable: throwable, + #level: level, + #culprit: culprit, + #tags: tags, + #extra: extra, + #fingerprint: fingerprint, + #user: user, + #contexts: contexts, + #breadcrumbs: breadcrumbs, + #sdk: sdk, + #request: request, + #debugMeta: debugMeta, + #exceptions: exceptions, + #threads: threads, + #type: type, + #measurements: measurements, + #transactionInfo: transactionInfo, + }, + ), + ), + ) as _i3.SentryTransaction); +} + /// A class which mocks [MethodChannel]. /// /// See the documentation for Mockito's code generation for more information. @@ -447,23 +687,23 @@ class MockMethodChannel extends _i1.Mock implements _i10.MethodChannel { returnValue: '', ) as String); @override - _i4.MethodCodec get codec => (super.noSuchMethod( + _i5.MethodCodec get codec => (super.noSuchMethod( Invocation.getter(#codec), - returnValue: _FakeMethodCodec_4( + returnValue: _FakeMethodCodec_8( this, Invocation.getter(#codec), ), - ) as _i4.MethodCodec); + ) as _i5.MethodCodec); @override - _i5.BinaryMessenger get binaryMessenger => (super.noSuchMethod( + _i6.BinaryMessenger get binaryMessenger => (super.noSuchMethod( Invocation.getter(#binaryMessenger), - returnValue: _FakeBinaryMessenger_5( + returnValue: _FakeBinaryMessenger_9( this, Invocation.getter(#binaryMessenger), ), - ) as _i5.BinaryMessenger); + ) as _i6.BinaryMessenger); @override - _i6.Future invokeMethod( + _i7.Future invokeMethod( String? method, [ dynamic arguments, ]) => @@ -475,10 +715,10 @@ class MockMethodChannel extends _i1.Mock implements _i10.MethodChannel { arguments, ], ), - returnValue: _i6.Future.value(), - ) as _i6.Future); + returnValue: _i7.Future.value(), + ) as _i7.Future); @override - _i6.Future?> invokeListMethod( + _i7.Future?> invokeListMethod( String? method, [ dynamic arguments, ]) => @@ -490,10 +730,10 @@ class MockMethodChannel extends _i1.Mock implements _i10.MethodChannel { arguments, ], ), - returnValue: _i6.Future?>.value(), - ) as _i6.Future?>); + returnValue: _i7.Future?>.value(), + ) as _i7.Future?>); @override - _i6.Future?> invokeMapMethod( + _i7.Future?> invokeMapMethod( String? method, [ dynamic arguments, ]) => @@ -505,11 +745,11 @@ class MockMethodChannel extends _i1.Mock implements _i10.MethodChannel { arguments, ], ), - returnValue: _i6.Future?>.value(), - ) as _i6.Future?>); + returnValue: _i7.Future?>.value(), + ) as _i7.Future?>); @override void setMethodCallHandler( - _i6.Future Function(_i4.MethodCall)? handler) => + _i7.Future Function(_i5.MethodCall)? handler) => super.noSuchMethod( Invocation.method( #setMethodCallHandler, @@ -530,7 +770,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { @override _i2.SentryOptions get options => (super.noSuchMethod( Invocation.getter(#options), - returnValue: _FakeSentryOptions_6( + returnValue: _FakeSentryOptions_10( this, Invocation.getter(#options), ), @@ -543,7 +783,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { @override _i3.SentryId get lastEventId => (super.noSuchMethod( Invocation.getter(#lastEventId), - returnValue: _FakeSentryId_7( + returnValue: _FakeSentryId_5( this, Invocation.getter(#lastEventId), ), @@ -551,7 +791,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { @override _i2.Scope get scope => (super.noSuchMethod( Invocation.getter(#scope), - returnValue: _FakeScope_8( + returnValue: _FakeScope_11( this, Invocation.getter(#scope), ), @@ -565,7 +805,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { returnValueForMissingStub: null, ); @override - _i6.Future<_i3.SentryId> captureEvent( + _i7.Future<_i3.SentryId> captureEvent( _i3.SentryEvent? event, { dynamic stackTrace, _i2.Hint? hint, @@ -581,7 +821,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { #withScope: withScope, }, ), - returnValue: _i6.Future<_i3.SentryId>.value(_FakeSentryId_7( + returnValue: _i7.Future<_i3.SentryId>.value(_FakeSentryId_5( this, Invocation.method( #captureEvent, @@ -593,9 +833,9 @@ class MockHub extends _i1.Mock implements _i2.Hub { }, ), )), - ) as _i6.Future<_i3.SentryId>); + ) as _i7.Future<_i3.SentryId>); @override - _i6.Future<_i3.SentryId> captureException( + _i7.Future<_i3.SentryId> captureException( dynamic throwable, { dynamic stackTrace, _i2.Hint? hint, @@ -611,7 +851,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { #withScope: withScope, }, ), - returnValue: _i6.Future<_i3.SentryId>.value(_FakeSentryId_7( + returnValue: _i7.Future<_i3.SentryId>.value(_FakeSentryId_5( this, Invocation.method( #captureException, @@ -623,9 +863,9 @@ class MockHub extends _i1.Mock implements _i2.Hub { }, ), )), - ) as _i6.Future<_i3.SentryId>); + ) as _i7.Future<_i3.SentryId>); @override - _i6.Future<_i3.SentryId> captureMessage( + _i7.Future<_i3.SentryId> captureMessage( String? message, { _i3.SentryLevel? level, String? template, @@ -645,7 +885,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { #withScope: withScope, }, ), - returnValue: _i6.Future<_i3.SentryId>.value(_FakeSentryId_7( + returnValue: _i7.Future<_i3.SentryId>.value(_FakeSentryId_5( this, Invocation.method( #captureMessage, @@ -659,19 +899,19 @@ class MockHub extends _i1.Mock implements _i2.Hub { }, ), )), - ) as _i6.Future<_i3.SentryId>); + ) as _i7.Future<_i3.SentryId>); @override - _i6.Future captureUserFeedback(_i2.SentryUserFeedback? userFeedback) => + _i7.Future captureUserFeedback(_i2.SentryUserFeedback? userFeedback) => (super.noSuchMethod( Invocation.method( #captureUserFeedback, [userFeedback], ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); @override - _i6.Future addBreadcrumb( + _i7.Future addBreadcrumb( _i3.Breadcrumb? crumb, { _i2.Hint? hint, }) => @@ -681,9 +921,9 @@ class MockHub extends _i1.Mock implements _i2.Hub { [crumb], {#hint: hint}, ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); @override void bindClient(_i2.SentryClient? client) => super.noSuchMethod( Invocation.method( @@ -698,7 +938,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { #clone, [], ), - returnValue: _FakeHub_9( + returnValue: _FakeHub_12( this, Invocation.method( #clone, @@ -707,20 +947,20 @@ class MockHub extends _i1.Mock implements _i2.Hub { ), ) as _i2.Hub); @override - _i6.Future close() => (super.noSuchMethod( + _i7.Future close() => (super.noSuchMethod( Invocation.method( #close, [], ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); + returnValue: _i7.Future.value(), + returnValueForMissingStub: _i7.Future.value(), + ) as _i7.Future); @override - _i6.FutureOr configureScope(_i2.ScopeCallback? callback) => + _i7.FutureOr configureScope(_i2.ScopeCallback? callback) => (super.noSuchMethod(Invocation.method( #configureScope, [callback], - )) as _i6.FutureOr); + )) as _i7.FutureOr); @override _i2.ISentrySpan startTransaction( String? name, @@ -808,7 +1048,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { ), ) as _i2.ISentrySpan); @override - _i6.Future<_i3.SentryId> captureTransaction( + _i7.Future<_i3.SentryId> captureTransaction( _i3.SentryTransaction? transaction, { _i2.SentryTraceContextHeader? traceContext, }) => @@ -818,7 +1058,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { [transaction], {#traceContext: traceContext}, ), - returnValue: _i6.Future<_i3.SentryId>.value(_FakeSentryId_7( + returnValue: _i7.Future<_i3.SentryId>.value(_FakeSentryId_5( this, Invocation.method( #captureTransaction, @@ -826,7 +1066,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { {#traceContext: traceContext}, ), )), - ) as _i6.Future<_i3.SentryId>); + ) as _i7.Future<_i3.SentryId>); @override void setSpanContext( dynamic throwable, diff --git a/flutter/test/profiling_test.dart b/flutter/test/profiling_test.dart index 605ca6c1a2..7f4eb92263 100644 --- a/flutter/test/profiling_test.dart +++ b/flutter/test/profiling_test.dart @@ -34,13 +34,62 @@ void main() { test('creates a profiler', () async { final nativeMock = TestMockSentryNative(); - final sut = NativeProfilerFactory(nativeMock); - final profiler = sut.startProfiling(SentryTransactionContext( + // ignore: invalid_use_of_internal_member + final sut = NativeProfilerFactory(nativeMock, getUtcDateTime); + final profiler = sut.startProfiler(SentryTransactionContext( + 'name', + 'op', + )); + expect(nativeMock.numberOfStartProfilerCalls, 1); + expect(profiler, isNotNull); + }); + }); + + group('$NativeProfiler', () { + late TestMockSentryNative nativeMock; + late NativeProfiler sut; + + setUp(() { + nativeMock = TestMockSentryNative(); + // ignore: invalid_use_of_internal_member + final factory = NativeProfilerFactory(nativeMock, getUtcDateTime); + final profiler = factory.startProfiler(SentryTransactionContext( 'name', 'op', )); - expect(nativeMock.numberOfStartProfilingCalls, 1); + expect(nativeMock.numberOfStartProfilerCalls, 1); expect(profiler, isNotNull); + sut = profiler!; + }); + + test('dispose() calls native discard() exactly once', () async { + sut.dispose(); + sut.dispose(); // Additional calls must not have an effect. + + // Yield to let the .then() in .dispose() execute. + await null; + await null; + + expect(nativeMock.numberOfDiscardProfilerCalls, 1); + + // finishFor() mustn't work after disposing + expect(await sut.finishFor(MockSentryTransaction()), isNull); + expect(nativeMock.numberOfCollectProfileCalls, 0); + }); + + test('dispose() does not call discard() after finishing', () async { + final mockTransaction = MockSentryTransaction(); + when(mockTransaction.startTimestamp).thenReturn(DateTime.now()); + when(mockTransaction.timestamp).thenReturn(DateTime.now()); + expect(await sut.finishFor(mockTransaction), isNull); + + sut.dispose(); + + // Yield to let the .then() in .dispose() execute. + await null; + + expect(nativeMock.numberOfDiscardProfilerCalls, 0); + expect(nativeMock.numberOfCollectProfileCalls, 1); }); }); } diff --git a/flutter/test/sentry_native_channel_test.dart b/flutter/test/sentry_native_channel_test.dart index a6f65ae58d..5ab76ac754 100644 --- a/flutter/test/sentry_native_channel_test.dart +++ b/flutter/test/sentry_native_channel_test.dart @@ -187,32 +187,50 @@ void main() { .invokeMethod('removeTag', {'key': 'fixture-key'})); }); - test('startProfiling', () async { + test('startProfiler', () async { final traceId = SentryId.newId(); when(fixture.methodChannel - .invokeMethod('startProfiling', traceId.toString())) - .thenAnswer((_) => Future.value()); + .invokeMethod('startProfiler', traceId.toString())) + .thenAnswer((_) async {}); + + final sut = fixture.getSut(); + await sut.startProfiler(traceId); + + verify(fixture.methodChannel + .invokeMethod('startProfiler', traceId.toString())); + }); + + test('discardProfiler', () async { + final traceId = SentryId.newId(); + when(fixture.methodChannel + .invokeMethod('discardProfiler', traceId.toString())) + .thenAnswer((_) async {}); final sut = fixture.getSut(); - await sut.startProfiling(traceId); + await sut.discardProfiler(traceId); verify(fixture.methodChannel - .invokeMethod('startProfiling', traceId.toString())); + .invokeMethod('discardProfiler', traceId.toString())); }); test('collectProfile', () async { final traceId = SentryId.newId(); const startTime = 42; + const endTime = 50; when(fixture.methodChannel.invokeMapMethod('collectProfile', { 'traceId': traceId.toString(), - 'startTime': startTime + 'startTime': startTime, + 'endTime': endTime, })).thenAnswer((_) => Future.value()); final sut = fixture.getSut(); - await sut.collectProfile(traceId, startTime); + await sut.collectProfile(traceId, startTime, endTime); - verify(fixture.methodChannel.invokeMapMethod('collectProfile', - {'traceId': traceId.toString(), 'startTime': startTime})); + verify(fixture.methodChannel.invokeMapMethod('collectProfile', { + 'traceId': traceId.toString(), + 'startTime': startTime, + 'endTime': endTime, + })); }); }); } diff --git a/flutter/test/sentry_native_test.dart b/flutter/test/sentry_native_test.dart index 59d269f8df..25a2219d5f 100644 --- a/flutter/test/sentry_native_test.dart +++ b/flutter/test/sentry_native_test.dart @@ -116,16 +116,23 @@ void main() { expect(fixture.channel.numberOfRemoveTagCalls, 1); }); - test('startProfiling', () async { + test('startProfiler', () async { final sut = fixture.getSut(); - await sut.startProfiling(SentryId.newId()); + await sut.startProfiler(SentryId.newId()); - expect(fixture.channel.numberOfStartProfilingCalls, 1); + expect(fixture.channel.numberOfStartProfilerCalls, 1); + }); + + test('discardProfiler', () async { + final sut = fixture.getSut(); + await sut.discardProfiler(SentryId.newId()); + + expect(fixture.channel.numberOfDiscardProfilerCalls, 1); }); test('collectProfile', () async { final sut = fixture.getSut(); - await sut.collectProfile(SentryId.newId(), 42); + await sut.collectProfile(SentryId.newId(), 1, 2); expect(fixture.channel.numberOfCollectProfileCalls, 1); }); From 32c6e5dbd5aed1ec6dadd666f304109b9ca03872 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Thu, 7 Sep 2023 14:37:34 +0200 Subject: [PATCH 13/32] linter issue --- flutter/ios/Classes/SentryFlutterPluginApple.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flutter/ios/Classes/SentryFlutterPluginApple.swift b/flutter/ios/Classes/SentryFlutterPluginApple.swift index 02f2ab57f3..b4691b063a 100644 --- a/flutter/ios/Classes/SentryFlutterPluginApple.swift +++ b/flutter/ios/Classes/SentryFlutterPluginApple.swift @@ -593,7 +593,8 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin { return } - let payload = PrivateSentrySDKOnly.collectProfileBetween(startTime, and: endTime, forTrace: SentryId(uuidString: traceId)) + let payload = PrivateSentrySDKOnly.collectProfileBetween(startTime, and: endTime, + forTrace: SentryId(uuidString: traceId)) result(payload) } From 0ae79d429734cfb8dc8601b828c1129400a6054d Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Tue, 12 Sep 2023 13:38:57 +0200 Subject: [PATCH 14/32] fix import --- flutter/lib/src/profiling.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter/lib/src/profiling.dart b/flutter/lib/src/profiling.dart index d0b5bd6dee..fe4a5e542b 100644 --- a/flutter/lib/src/profiling.dart +++ b/flutter/lib/src/profiling.dart @@ -8,7 +8,7 @@ import 'package:sentry/src/sentry_envelope_item_header.dart'; // ignore: implementation_imports import 'package:sentry/src/sentry_item_type.dart'; -import 'sentry_native.dart'; +import 'native/sentry_native.dart'; // ignore: invalid_use_of_internal_member class NativeProfilerFactory implements ProfilerFactory { From df9fb5b7b03466721119cdd57d5f5af1df8caa93 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Tue, 12 Sep 2023 20:27:43 +0200 Subject: [PATCH 15/32] refactor: SentryNative integration --- flutter/lib/src/native/sentry_native.dart | 135 ++++++------ .../lib/src/native/sentry_native_binding.dart | 43 ++++ .../lib/src/native/sentry_native_channel.dart | 195 ++++++------------ .../navigation/sentry_navigator_observer.dart | 8 +- flutter/lib/src/profiling.dart | 19 +- flutter/lib/src/sentry_flutter.dart | 38 +++- .../native_app_start_integration_test.dart | 13 +- flutter/test/mocks.dart | 26 +-- flutter/test/profiling_test.dart | 4 +- flutter/test/sentry_flutter_test.dart | 17 +- flutter/test/sentry_native_channel_test.dart | 21 +- flutter/test/sentry_native_test.dart | 91 ++------ .../test/sentry_navigator_observer_test.dart | 30 +-- 13 files changed, 296 insertions(+), 344 deletions(-) create mode 100644 flutter/lib/src/native/sentry_native_binding.dart diff --git a/flutter/lib/src/native/sentry_native.dart b/flutter/lib/src/native/sentry_native.dart index cfd066663d..99c59ef678 100644 --- a/flutter/lib/src/native/sentry_native.dart +++ b/flutter/lib/src/native/sentry_native.dart @@ -3,28 +3,17 @@ import 'dart:async'; import 'package:meta/meta.dart'; import '../../sentry_flutter.dart'; -import 'sentry_native_channel.dart'; +import 'sentry_native_binding.dart'; -/// [SentryNative] holds state that it fetches from to the native SDKs. Always -/// use the shared instance with [SentryNative()]. +/// [SentryNative] holds state that it fetches from to the native SDKs. +/// It forwards to platform-specific implementations of [SentryNativeBinding]. +/// Any errors are logged and ignored. @internal class SentryNative { - SentryNative._(); + final SentryOptions _options; + final SentryNativeBinding _binding; - static final SentryNative _instance = SentryNative._(); - - SentryNativeChannel? _nativeChannel; - - factory SentryNative() { - return _instance; - } - - SentryNativeChannel? get nativeChannel => _instance._nativeChannel; - - /// Provide [nativeChannel] for native communication. - set nativeChannel(SentryNativeChannel? nativeChannel) { - _instance._nativeChannel = nativeChannel; - } + SentryNative(this._options, this._binding); // AppStart @@ -41,75 +30,99 @@ class SentryNative { /// Fetch [NativeAppStart] from native channels. Can only be called once. Future fetchNativeAppStart() async { _didFetchAppStart = true; - return await _nativeChannel?.fetchNativeAppStart(); + return _invoke("fetchNativeAppStart", _binding.fetchNativeAppStart); } // NativeFrames - Future beginNativeFramesCollection() async { - await _nativeChannel?.beginNativeFrames(); - } + Future beginNativeFramesCollection() => + _invoke("beginNativeFrames", _binding.beginNativeFrames); - Future endNativeFramesCollection(SentryId traceId) async { - return await _nativeChannel?.endNativeFrames(traceId); - } + Future endNativeFramesCollection(SentryId traceId) => + _invoke("endNativeFrames", () => _binding.endNativeFrames(traceId)); // Scope - Future setContexts(String key, dynamic value) async { - return await _nativeChannel?.setContexts(key, value); - } + Future setContexts(String key, dynamic value) => + _invoke("setContexts", () => _binding.setContexts(key, value)); - Future removeContexts(String key) async { - return await _nativeChannel?.removeContexts(key); - } + Future removeContexts(String key) => + _invoke("removeContexts", () => _binding.removeContexts(key)); - Future setUser(SentryUser? sentryUser) async { - return await _nativeChannel?.setUser(sentryUser); - } + Future setUser(SentryUser? sentryUser) => + _invoke("setUser", () => _binding.setUser(sentryUser)); - Future addBreadcrumb(Breadcrumb breadcrumb) async { - return await _nativeChannel?.addBreadcrumb(breadcrumb); - } + Future addBreadcrumb(Breadcrumb breadcrumb) => + _invoke("addBreadcrumb", () => _binding.addBreadcrumb(breadcrumb)); - Future clearBreadcrumbs() async { - return await _nativeChannel?.clearBreadcrumbs(); - } + Future clearBreadcrumbs() => + _invoke("clearBreadcrumbs", _binding.clearBreadcrumbs); - Future setExtra(String key, dynamic value) async { - return await _nativeChannel?.setExtra(key, value); - } + Future setExtra(String key, dynamic value) => + _invoke("setExtra", () => _binding.setExtra(key, value)); - Future removeExtra(String key) async { - return await _nativeChannel?.removeExtra(key); - } + Future removeExtra(String key) => + _invoke("removeExtra", () => _binding.removeExtra(key)); - Future setTag(String key, String value) async { - return await _nativeChannel?.setTag(key, value); - } + Future setTag(String key, String value) => + _invoke("setTag", () => _binding.setTag(key, value)); - Future removeTag(String key) async { - return await _nativeChannel?.removeTag(key); - } + Future removeTag(String key) => + _invoke("removeTag", () => _binding.removeTag(key)); - Future startProfiler(SentryId traceId) async { - return _nativeChannel?.startProfiler(traceId); - } + int? startProfiler(SentryId traceId) => + _invokeSync("startProfiler", () => _binding.startProfiler(traceId)); - Future discardProfiler(SentryId traceId) async { - return _nativeChannel?.discardProfiler(traceId); - } + Future discardProfiler(SentryId traceId) => + _invoke("discardProfiler", () => _binding.discardProfiler(traceId)); Future?> collectProfile( - SentryId traceId, int startTimeNs, int endTimeNs) async { - return _nativeChannel?.collectProfile(traceId, startTimeNs, endTimeNs); - } + SentryId traceId, int startTimeNs, int endTimeNs) => + _invoke("collectProfile", + () => _binding.collectProfile(traceId, startTimeNs, endTimeNs)); /// Reset state void reset() { appStartEnd = null; _didFetchAppStart = false; } + + // Helpers + Future _invoke( + String nativeMethodName, Future Function() fn) async { + try { + return await fn(); + } catch (error, stackTrace) { + _logError(nativeMethodName, error, stackTrace); + // ignore: invalid_use_of_internal_member + if (_options.devMode) { + rethrow; + } + return null; + } + } + + T? _invokeSync(String nativeMethodName, T? Function() fn) { + try { + return fn(); + } catch (error, stackTrace) { + _logError(nativeMethodName, error, stackTrace); + // ignore: invalid_use_of_internal_member + if (_options.devMode) { + rethrow; + } + return null; + } + } + + void _logError(String nativeMethodName, Object error, StackTrace stackTrace) { + _options.logger( + SentryLevel.error, + 'Native call `$nativeMethodName` failed', + exception: error, + stackTrace: stackTrace, + ); + } } class NativeAppStart { diff --git a/flutter/lib/src/native/sentry_native_binding.dart b/flutter/lib/src/native/sentry_native_binding.dart new file mode 100644 index 0000000000..54d335d529 --- /dev/null +++ b/flutter/lib/src/native/sentry_native_binding.dart @@ -0,0 +1,43 @@ +import 'dart:async'; + +import 'package:meta/meta.dart'; + +import '../../sentry_flutter.dart'; +import 'sentry_native.dart'; + +/// Provide typed methods to access native layer. +@internal +abstract class SentryNativeBinding { + // TODO Move other native calls here. + + Future fetchNativeAppStart(); + + Future beginNativeFrames(); + + Future endNativeFrames(SentryId id); + + Future setUser(SentryUser? user); + + Future addBreadcrumb(Breadcrumb breadcrumb); + + Future clearBreadcrumbs(); + + Future setContexts(String key, dynamic value); + + Future removeContexts(String key); + + Future setExtra(String key, dynamic value); + + Future removeExtra(String key); + + Future setTag(String key, String value); + + Future removeTag(String key); + + int? startProfiler(SentryId traceId); + + Future discardProfiler(SentryId traceId); + + Future?> collectProfile( + SentryId traceId, int startTimeNs, int endTimeNs); +} diff --git a/flutter/lib/src/native/sentry_native_channel.dart b/flutter/lib/src/native/sentry_native_channel.dart index b6165903b4..4bf9745cb3 100644 --- a/flutter/lib/src/native/sentry_native_channel.dart +++ b/flutter/lib/src/native/sentry_native_channel.dart @@ -6,179 +6,102 @@ import 'package:meta/meta.dart'; import '../../sentry_flutter.dart'; import 'sentry_native.dart'; import 'method_channel_helper.dart'; +import 'sentry_native_binding.dart'; /// Provide typed methods to access native layer via MethodChannel. @internal -class SentryNativeChannel { - SentryNativeChannel(this._channel, this._options); +class SentryNativeChannel implements SentryNativeBinding { + SentryNativeChannel(this._channel); final MethodChannel _channel; - final SentryFlutterOptions _options; // TODO Move other native calls here. + @override Future fetchNativeAppStart() async { - try { - final json = await _channel - .invokeMapMethod('fetchNativeAppStart'); - return (json != null) ? NativeAppStart.fromJson(json) : null; - } catch (error, stackTrace) { - _logError('fetchNativeAppStart', error, stackTrace); - return null; - } + final json = + await _channel.invokeMapMethod('fetchNativeAppStart'); + return (json != null) ? NativeAppStart.fromJson(json) : null; } - Future beginNativeFrames() async { - try { - await _channel.invokeMethod('beginNativeFrames'); - } catch (error, stackTrace) { - _logError('beginNativeFrames', error, stackTrace); - } - } + @override + Future beginNativeFrames() => + _channel.invokeMethod('beginNativeFrames'); + @override Future endNativeFrames(SentryId id) async { - try { - final json = await _channel.invokeMapMethod( - 'endNativeFrames', {'id': id.toString()}); - return (json != null) ? NativeFrames.fromJson(json) : null; - } catch (error, stackTrace) { - _logError('endNativeFrames', error, stackTrace); - return null; - } + final json = await _channel.invokeMapMethod( + 'endNativeFrames', {'id': id.toString()}); + return (json != null) ? NativeFrames.fromJson(json) : null; } + @override Future setUser(SentryUser? user) async { - try { - final normalizedUser = user?.copyWith( - data: MethodChannelHelper.normalizeMap(user.data), - ); - await _channel.invokeMethod( - 'setUser', - {'user': normalizedUser?.toJson()}, - ); - } catch (error, stackTrace) { - _logError('setUser', error, stackTrace); - } + final normalizedUser = user?.copyWith( + data: MethodChannelHelper.normalizeMap(user.data), + ); + await _channel.invokeMethod( + 'setUser', + {'user': normalizedUser?.toJson()}, + ); } + @override Future addBreadcrumb(Breadcrumb breadcrumb) async { - try { - final normalizedBreadcrumb = breadcrumb.copyWith( - data: MethodChannelHelper.normalizeMap(breadcrumb.data), - ); - await _channel.invokeMethod( - 'addBreadcrumb', - {'breadcrumb': normalizedBreadcrumb.toJson()}, - ); - } catch (error, stackTrace) { - _logError('addBreadcrumb', error, stackTrace); - } + final normalizedBreadcrumb = breadcrumb.copyWith( + data: MethodChannelHelper.normalizeMap(breadcrumb.data), + ); + await _channel.invokeMethod( + 'addBreadcrumb', + {'breadcrumb': normalizedBreadcrumb.toJson()}, + ); } - Future clearBreadcrumbs() async { - try { - await _channel.invokeMethod('clearBreadcrumbs'); - } catch (error, stackTrace) { - _logError('clearBreadcrumbs', error, stackTrace); - } - } + @override + Future clearBreadcrumbs() => _channel.invokeMethod('clearBreadcrumbs'); - Future setContexts(String key, dynamic value) async { - try { - final normalizedValue = MethodChannelHelper.normalize(value); - await _channel.invokeMethod( + @override + Future setContexts(String key, dynamic value) => _channel.invokeMethod( 'setContexts', - {'key': key, 'value': normalizedValue}, + {'key': key, 'value': MethodChannelHelper.normalize(value)}, ); - } catch (error, stackTrace) { - _logError('setContexts', error, stackTrace); - } - } - Future removeContexts(String key) async { - try { - await _channel.invokeMethod('removeContexts', {'key': key}); - } catch (error, stackTrace) { - _logError('removeContexts', error, stackTrace); - } - } + @override + Future removeContexts(String key) => + _channel.invokeMethod('removeContexts', {'key': key}); - Future setExtra(String key, dynamic value) async { - try { - final normalizedValue = MethodChannelHelper.normalize(value); - await _channel.invokeMethod( + @override + Future setExtra(String key, dynamic value) => _channel.invokeMethod( 'setExtra', - {'key': key, 'value': normalizedValue}, + {'key': key, 'value': MethodChannelHelper.normalize(value)}, ); - } catch (error, stackTrace) { - _logError('setExtra', error, stackTrace); - } - } - Future removeExtra(String key) async { - try { - await _channel.invokeMethod('removeExtra', {'key': key}); - } catch (error, stackTrace) { - _logError('removeExtra', error, stackTrace); - } - } + @override + Future removeExtra(String key) => + _channel.invokeMethod('removeExtra', {'key': key}); - Future setTag(String key, String value) async { - try { - await _channel.invokeMethod('setTag', {'key': key, 'value': value}); - } catch (error, stackTrace) { - _logError('setTag', error, stackTrace); - } - } + @override + Future setTag(String key, String value) => + _channel.invokeMethod('setTag', {'key': key, 'value': value}); - Future removeTag(String key) async { - try { - await _channel.invokeMethod('removeTag', {'key': key}); - } catch (error, stackTrace) { - _logError('removeTag', error, stackTrace); - } - } + @override + Future removeTag(String key) => + _channel.invokeMethod('removeTag', {'key': key}); - Future startProfiler(SentryId traceId) async { - try { - return await _channel.invokeMethod('startProfiler', traceId.toString()) - as int?; - } catch (error, stackTrace) { - _logError('startProfiler', error, stackTrace); - return null; - } - } + @override + int? startProfiler(SentryId traceId) => + throw UnsupportedError("Not supported on this platform"); - Future discardProfiler(SentryId traceId) async { - try { - return await _channel.invokeMethod('discardProfiler', traceId.toString()); - } catch (error, stackTrace) { - _logError('discardProfiler', error, stackTrace); - } - } + @override + Future discardProfiler(SentryId traceId) => + _channel.invokeMethod('discardProfiler', traceId.toString()); + @override Future?> collectProfile( - SentryId traceId, int startTimeNs, int endTimeNs) async { - try { - return await _channel.invokeMapMethod('collectProfile', { + SentryId traceId, int startTimeNs, int endTimeNs) => + _channel.invokeMapMethod('collectProfile', { 'traceId': traceId.toString(), 'startTime': startTimeNs, 'endTime': endTimeNs, }); - } catch (error, stackTrace) { - _logError('collectProfile', error, stackTrace); - return null; - } - } - - // Helper - - void _logError(String nativeMethodName, Object error, StackTrace stackTrace) { - _options.logger( - SentryLevel.error, - 'Native call `$nativeMethodName` failed', - exception: error, - stackTrace: stackTrace, - ); - } } diff --git a/flutter/lib/src/navigation/sentry_navigator_observer.dart b/flutter/lib/src/navigation/sentry_navigator_observer.dart index 8b88b88088..51c4b0fd07 100644 --- a/flutter/lib/src/navigation/sentry_navigator_observer.dart +++ b/flutter/lib/src/navigation/sentry_navigator_observer.dart @@ -67,7 +67,7 @@ class SentryNavigatorObserver extends RouteObserver> { _setRouteNameAsTransaction = setRouteNameAsTransaction, _routeNameExtractor = routeNameExtractor, _additionalInfoProvider = additionalInfoProvider, - _native = SentryNative() { + _native = SentryFlutter.native { if (enableAutoTransactions) { // ignore: invalid_use_of_internal_member _hub.options.sdk.addIntegration('UINavigationTracing'); @@ -80,7 +80,7 @@ class SentryNavigatorObserver extends RouteObserver> { final bool _setRouteNameAsTransaction; final RouteNameExtractor? _routeNameExtractor; final AdditionalInfoExtractor? _additionalInfoProvider; - final SentryNative _native; + final SentryNative? _native; ISentrySpan? _transaction; @@ -189,7 +189,7 @@ class SentryNavigatorObserver extends RouteObserver> { trimEnd: true, onFinish: (transaction) async { final nativeFrames = await _native - .endNativeFramesCollection(transaction.context.traceId); + ?.endNativeFramesCollection(transaction.context.traceId); if (nativeFrames != null) { final measurements = nativeFrames.toMeasurements(); for (final item in measurements.entries) { @@ -218,7 +218,7 @@ class SentryNavigatorObserver extends RouteObserver> { scope.span ??= _transaction; }); - await _native.beginNativeFramesCollection(); + await _native?.beginNativeFramesCollection(); } Future _finishTransaction() async { diff --git a/flutter/lib/src/profiling.dart b/flutter/lib/src/profiling.dart index fe4a5e542b..aa06800cb4 100644 --- a/flutter/lib/src/profiling.dart +++ b/flutter/lib/src/profiling.dart @@ -1,6 +1,5 @@ import 'dart:async'; -import 'package:sentry/sentry.dart'; // ignore: implementation_imports import 'package:sentry/src/profiling.dart'; // ignore: implementation_imports @@ -8,6 +7,7 @@ import 'package:sentry/src/sentry_envelope_item_header.dart'; // ignore: implementation_imports import 'package:sentry/src/sentry_item_type.dart'; +import '../sentry_flutter.dart'; import 'native/sentry_native.dart'; // ignore: invalid_use_of_internal_member @@ -17,7 +17,7 @@ class NativeProfilerFactory implements ProfilerFactory { NativeProfilerFactory(this._native, this._clock); - static void attachTo(Hub hub) { + static void attachTo(Hub hub, SentryNative native) { // ignore: invalid_use_of_internal_member final options = hub.options; @@ -33,9 +33,7 @@ class NativeProfilerFactory implements ProfilerFactory { if (options.platformChecker.platform.isMacOS || options.platformChecker.platform.isIOS) { // ignore: invalid_use_of_internal_member - hub.profilerFactory = - // ignore: invalid_use_of_internal_member - NativeProfilerFactory(SentryNative(), options.clock); + hub.profilerFactory = NativeProfilerFactory(native, options.clock); } } @@ -52,7 +50,9 @@ class NativeProfilerFactory implements ProfilerFactory { // synchronous and actually start the profiler, we need synchronous FFI // calls, see https://github.com/getsentry/sentry-dart/issues/1444 // For now, return immediately even though the profiler may not have started yet... - return NativeProfiler(_native, startTime, context.traceId, _clock); + // XXX fixme future.value + return NativeProfiler( + _native, Future.value(startTime), context.traceId, _clock); } } @@ -104,6 +104,13 @@ class NativeProfiler implements Profiler { payload["transaction"]["name"] = transaction.transaction; payload["timestamp"] = transaction.startTimestamp.toIso8601String(); return NativeProfileInfo(payload); + // final cSentryId = c.SentryId.alloc(_ffi) + // ..initWithUUIDString_(c.NSString(_ffi, context.traceId.toString())); + // final startTime = + // c.PrivateSentrySDKOnly.startProfilerForTrace_(_ffi, cSentryId); + + // return NativeProfiler( + // _native, Future.value(startTime), context.traceId, _clock); } } diff --git a/flutter/lib/src/sentry_flutter.dart b/flutter/lib/src/sentry_flutter.dart index 07a8ee158e..34d10f01fa 100644 --- a/flutter/lib/src/sentry_flutter.dart +++ b/flutter/lib/src/sentry_flutter.dart @@ -11,10 +11,11 @@ import 'event_processor/flutter_exception_event_processor.dart'; import 'event_processor/platform_exception_event_processor.dart'; import 'integrations/screenshot_integration.dart'; import 'native/native_scope_observer.dart'; +import 'native/sentry_native_channel.dart'; import 'profiling.dart'; import 'renderer/renderer.dart'; import 'native/sentry_native.dart'; -import 'native/sentry_native_channel.dart'; +import 'native/sentry_native_binding.dart'; import 'integrations/integrations.dart'; import 'event_processor/flutter_enricher_event_processor.dart'; @@ -49,9 +50,18 @@ mixin SentryFlutter { } if (flutterOptions.platformChecker.hasNativeIntegration) { + late final SentryNativeBinding binding; + // Set a default native channel to the singleton SentryNative instance. - SentryNative().nativeChannel = - SentryNativeChannel(channel, flutterOptions); + if (flutterOptions.platformChecker.platform.isIOS || + flutterOptions.platformChecker.platform.isMacOS) { + // TODO SentryNativeCocoa(channel); + binding = SentryNativeChannel(channel); + } else { + binding = SentryNativeChannel(channel); + } + + _native = SentryNative(flutterOptions, binding); } final platformDispatcher = PlatformDispatcher.instance; @@ -92,8 +102,10 @@ mixin SentryFlutter { runZonedGuardedOnError: runZonedGuardedOnError, ); - // ignore: invalid_use_of_internal_member - NativeProfilerFactory.attachTo(Sentry.currentHub); + if (_native != null) { + // ignore: invalid_use_of_internal_member + NativeProfilerFactory.attachTo(Sentry.currentHub, _native!); + } } static Future _initDefaultValues( @@ -103,9 +115,9 @@ mixin SentryFlutter { options.addEventProcessor(FlutterExceptionEventProcessor()); // Not all platforms have a native integration. - if (options.platformChecker.hasNativeIntegration) { + if (_native != null) { options.transport = FileSystemTransport(channel, options); - options.addScopeObserver(NativeScopeObserver(SentryNative())); + options.addScopeObserver(NativeScopeObserver(_native!)); } var flutterEventProcessor = FlutterEnricherEventProcessor(options); @@ -181,9 +193,9 @@ mixin SentryFlutter { // in errors. integrations.add(LoadReleaseIntegration()); - if (platformChecker.hasNativeIntegration) { + if (_native != null) { integrations.add(NativeAppStartIntegration( - SentryNative(), + _native!, () { try { /// Flutter >= 2.12 throws if SchedulerBinding.instance isn't initialized. @@ -209,7 +221,7 @@ mixin SentryFlutter { /// Manually set when your app finished startup. Make sure to set /// [SentryFlutterOptions.autoAppStart] to false on init. static void setAppStartEnd(DateTime appStartEnd) { - SentryNative().appStartEnd = appStartEnd; + _native?.appStartEnd = appStartEnd; } static void _setSdk(SentryFlutterOptions options) { @@ -223,4 +235,10 @@ mixin SentryFlutter { sdk.addPackage('pub:sentry_flutter', sdkVersion); options.sdk = sdk; } + + @internal + static SentryNative? get native => _native; + @internal + static set native(SentryNative? value) => _native = value; + static SentryNative? _native; } diff --git a/flutter/test/integrations/native_app_start_integration_test.dart b/flutter/test/integrations/native_app_start_integration_test.dart index b4e06183c1..d4b8deaaf5 100644 --- a/flutter/test/integrations/native_app_start_integration_test.dart +++ b/flutter/test/integrations/native_app_start_integration_test.dart @@ -23,7 +23,7 @@ void main() { test('native app start measurement added to first transaction', () async { fixture.options.autoAppStart = false; fixture.native.appStartEnd = DateTime.fromMillisecondsSinceEpoch(10); - fixture.wrapper.nativeAppStart = NativeAppStart(0, true); + fixture.binding.nativeAppStart = NativeAppStart(0, true); fixture.getNativeAppStartIntegration().call(fixture.hub, fixture.options); @@ -42,7 +42,7 @@ void main() { () async { fixture.options.autoAppStart = false; fixture.native.appStartEnd = DateTime.fromMillisecondsSinceEpoch(10); - fixture.wrapper.nativeAppStart = NativeAppStart(0, true); + fixture.binding.nativeAppStart = NativeAppStart(0, true); fixture.getNativeAppStartIntegration().call(fixture.hub, fixture.options); @@ -60,7 +60,7 @@ void main() { test('measurements appended', () async { fixture.options.autoAppStart = false; fixture.native.appStartEnd = DateTime.fromMillisecondsSinceEpoch(10); - fixture.wrapper.nativeAppStart = NativeAppStart(0, true); + fixture.binding.nativeAppStart = NativeAppStart(0, true); final measurement = SentryMeasurement.warmAppStart(Duration(seconds: 1)); fixture.getNativeAppStartIntegration().call(fixture.hub, fixture.options); @@ -81,7 +81,7 @@ void main() { test('native app start measurement not added if more than 60s', () async { fixture.options.autoAppStart = false; fixture.native.appStartEnd = DateTime.fromMillisecondsSinceEpoch(60001); - fixture.wrapper.nativeAppStart = NativeAppStart(0, true); + fixture.binding.nativeAppStart = NativeAppStart(0, true); fixture.getNativeAppStartIntegration().call(fixture.hub, fixture.options); @@ -99,11 +99,10 @@ void main() { class Fixture { final hub = MockHub(); final options = SentryFlutterOptions(dsn: fakeDsn); - final wrapper = MockNativeChannel(); - late final native = SentryNative(); + final binding = MockNativeChannel(); + late final native = SentryNative(options, binding); Fixture() { - native.nativeChannel = wrapper; native.reset(); when(hub.options).thenReturn(options); } diff --git a/flutter/test/mocks.dart b/flutter/test/mocks.dart index 0598415fa1..931eba365f 100644 --- a/flutter/test/mocks.dart +++ b/flutter/test/mocks.dart @@ -4,15 +4,14 @@ import 'package:flutter/services.dart'; import 'package:flutter/src/widgets/binding.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/annotations.dart'; -import 'package:sentry/sentry.dart'; import 'package:sentry/src/platform/platform.dart'; import 'package:sentry/src/sentry_tracer.dart'; import 'package:meta/meta.dart'; -import 'package:sentry_flutter/src/binding_wrapper.dart'; +import 'package:sentry_flutter/sentry_flutter.dart'; import 'package:sentry_flutter/src/renderer/renderer.dart'; import 'package:sentry_flutter/src/native/sentry_native.dart'; -import 'package:sentry_flutter/src/native/sentry_native_channel.dart'; +import 'package:sentry_flutter/src/native/sentry_native_binding.dart'; import 'mocks.mocks.dart'; import 'no_such_method_provider.dart'; @@ -20,6 +19,12 @@ import 'no_such_method_provider.dart'; const fakeDsn = 'https://abc@def.ingest.sentry.io/1234567'; const fakeProguardUuid = '3457d982-65ef-576d-a6ad-65b5f30f49a5'; +// TODO use this everywhere in tests so that we don't get exceptions swallowed. +SentryFlutterOptions defaultTestOptions() { + // ignore: invalid_use_of_internal_member + return SentryFlutterOptions(dsn: fakeDsn)..devMode = true; +} + // https://github.com/dart-lang/mockito/blob/master/NULL_SAFETY_README.md#fallback-generators ISentrySpan startTransactionShim( String? name, @@ -146,7 +151,7 @@ class MockPlatformChecker with NoSuchMethodProvider implements PlatformChecker { // Does nothing or returns default values. // Useful for when a Hub needs to be passed but is not used. class NoOpHub with NoSuchMethodProvider implements Hub { - final _options = SentryOptions(dsn: 'fixture-dsn'); + final _options = defaultTestOptions(); @override @internal @@ -161,9 +166,6 @@ class TestMockSentryNative implements SentryNative { @override DateTime? appStartEnd; - @override - SentryNativeChannel? nativeChannel; - bool _didFetchAppStart = false; @override @@ -278,9 +280,9 @@ class TestMockSentryNative implements SentryNative { } @override - Future startProfiler(SentryId traceId) { + int? startProfiler(SentryId traceId) { numberOfStartProfilerCalls++; - return Future.value(42); + return 42; } @override @@ -291,7 +293,7 @@ class TestMockSentryNative implements SentryNative { } // TODO can this be replaced with https://pub.dev/packages/mockito#verifying-exact-number-of-invocations--at-least-x--never -class MockNativeChannel implements SentryNativeChannel { +class MockNativeChannel implements SentryNativeBinding { NativeAppStart? nativeAppStart; NativeFrames? nativeFrames; SentryId? id; @@ -379,9 +381,9 @@ class MockNativeChannel implements SentryNativeChannel { } @override - Future startProfiler(SentryId traceId) { + int? startProfiler(SentryId traceId) { numberOfStartProfilerCalls++; - return Future.value(null); + return null; } @override diff --git a/flutter/test/profiling_test.dart b/flutter/test/profiling_test.dart index 7f4eb92263..78c43708a5 100644 --- a/flutter/test/profiling_test.dart +++ b/flutter/test/profiling_test.dart @@ -22,12 +22,12 @@ void main() { test('attachTo() respects sampling rate', () async { var hub = hubWithSampleRate(0.0); - NativeProfilerFactory.attachTo(hub); + NativeProfilerFactory.attachTo(hub, TestMockSentryNative()); // ignore: invalid_use_of_internal_member verifyNever(hub.profilerFactory = any); hub = hubWithSampleRate(0.1); - NativeProfilerFactory.attachTo(hub); + NativeProfilerFactory.attachTo(hub, TestMockSentryNative()); // ignore: invalid_use_of_internal_member verify(hub.profilerFactory = any); }); diff --git a/flutter/test/sentry_flutter_test.dart b/flutter/test/sentry_flutter_test.dart index 05ff7a300b..53f61d154e 100644 --- a/flutter/test/sentry_flutter_test.dart +++ b/flutter/test/sentry_flutter_test.dart @@ -7,7 +7,6 @@ import 'package:sentry_flutter/src/integrations/integrations.dart'; import 'package:sentry_flutter/src/integrations/screenshot_integration.dart'; import 'package:sentry_flutter/src/profiling.dart'; import 'package:sentry_flutter/src/renderer/renderer.dart'; -import 'package:sentry_flutter/src/native/sentry_native.dart'; import 'package:sentry_flutter/src/version.dart'; import 'package:sentry_flutter/src/view_hierarchy/view_hierarchy_integration.dart'; import 'mocks.dart'; @@ -51,9 +50,7 @@ void main() { setUp(() async { loadTestPackage(); await Sentry.close(); - final sentryNative = SentryNative(); - sentryNative.nativeChannel = null; - sentryNative.reset(); + SentryFlutter.native = null; }); test('Android', () async { @@ -101,7 +98,7 @@ void main() { beforeIntegration: WidgetsFlutterBindingIntegration, afterIntegration: OnErrorIntegration); - expect(SentryNative().nativeChannel, isNotNull); + expect(SentryFlutter.native, isNotNull); expect(Sentry.currentHub.profilerFactory, isNull); await Sentry.close(); @@ -149,7 +146,7 @@ void main() { beforeIntegration: WidgetsFlutterBindingIntegration, afterIntegration: OnErrorIntegration); - expect(SentryNative().nativeChannel, isNotNull); + expect(SentryFlutter.native, isNotNull); expect(Sentry.currentHub.profilerFactory, isInstanceOf()); @@ -198,7 +195,7 @@ void main() { beforeIntegration: WidgetsFlutterBindingIntegration, afterIntegration: OnErrorIntegration); - expect(SentryNative().nativeChannel, isNotNull); + expect(SentryFlutter.native, isNotNull); expect(Sentry.currentHub.profilerFactory, isInstanceOf()); @@ -250,7 +247,7 @@ void main() { beforeIntegration: WidgetsFlutterBindingIntegration, afterIntegration: OnErrorIntegration); - expect(SentryNative().nativeChannel, isNull); + expect(SentryFlutter.native, isNull); expect(Sentry.currentHub.profilerFactory, isNull); await Sentry.close(); @@ -301,7 +298,7 @@ void main() { beforeIntegration: WidgetsFlutterBindingIntegration, afterIntegration: OnErrorIntegration); - expect(SentryNative().nativeChannel, isNull); + expect(SentryFlutter.native, isNull); expect(Sentry.currentHub.profilerFactory, isNull); await Sentry.close(); @@ -353,7 +350,7 @@ void main() { beforeIntegration: RunZonedGuardedIntegration, afterIntegration: WidgetsFlutterBindingIntegration); - expect(SentryNative().nativeChannel, isNull); + expect(SentryFlutter.native, isNull); expect(Sentry.currentHub.profilerFactory, isNull); await Sentry.close(); diff --git a/flutter/test/sentry_native_channel_test.dart b/flutter/test/sentry_native_channel_test.dart index 5ab76ac754..04ec723feb 100644 --- a/flutter/test/sentry_native_channel_test.dart +++ b/flutter/test/sentry_native_channel_test.dart @@ -38,6 +38,8 @@ void main() { test('beginNativeFrames', () async { final sut = fixture.getSut(); + when(fixture.methodChannel.invokeMethod('beginNativeFrames')) + .thenAnswer((realInvocation) async {}); await sut.beginNativeFrames(); verify(fixture.methodChannel.invokeMethod('beginNativeFrames')); @@ -187,17 +189,10 @@ void main() { .invokeMethod('removeTag', {'key': 'fixture-key'})); }); - test('startProfiler', () async { - final traceId = SentryId.newId(); - when(fixture.methodChannel - .invokeMethod('startProfiler', traceId.toString())) - .thenAnswer((_) async {}); - + test('startProfiler', () { final sut = fixture.getSut(); - await sut.startProfiler(traceId); - - verify(fixture.methodChannel - .invokeMethod('startProfiler', traceId.toString())); + expect(() => sut.startProfiler(SentryId.newId()), throwsUnsupportedError); + verifyZeroInteractions(fixture.methodChannel); }); test('discardProfiler', () async { @@ -217,7 +212,8 @@ void main() { final traceId = SentryId.newId(); const startTime = 42; const endTime = 50; - when(fixture.methodChannel.invokeMapMethod('collectProfile', { + when(fixture.methodChannel + .invokeMapMethod('collectProfile', { 'traceId': traceId.toString(), 'startTime': startTime, 'endTime': endTime, @@ -237,9 +233,8 @@ void main() { class Fixture { final methodChannel = MockMethodChannel(); - final options = SentryFlutterOptions(); SentryNativeChannel getSut() { - return SentryNativeChannel(methodChannel, options); + return SentryNativeChannel(methodChannel); } } diff --git a/flutter/test/sentry_native_test.dart b/flutter/test/sentry_native_test.dart index 25a2219d5f..68dc16fdfa 100644 --- a/flutter/test/sentry_native_test.dart +++ b/flutter/test/sentry_native_test.dart @@ -7,21 +7,17 @@ import 'mocks.dart'; void main() { group('$SentryNative', () { - late Fixture fixture; - - setUp(() { - fixture = Fixture(); - }); + final channel = MockNativeChannel(); + final options = SentryFlutterOptions(dsn: fakeDsn); + late final sut = SentryNative(options, channel); tearDown(() { - fixture.getSut().reset(); + sut.reset(); }); test('fetchNativeAppStart sets didFetchAppStart', () async { final nativeAppStart = NativeAppStart(0.0, true); - fixture.channel.nativeAppStart = nativeAppStart; - - final sut = fixture.getSut(); + channel.nativeAppStart = nativeAppStart; expect(sut.didFetchAppStart, false); @@ -32,131 +28,88 @@ void main() { }); test('beginNativeFramesCollection', () async { - final sut = fixture.getSut(); - await sut.beginNativeFramesCollection(); - - expect(fixture.channel.numberOfBeginNativeFramesCalls, 1); + expect(channel.numberOfBeginNativeFramesCalls, 1); }); test('endNativeFramesCollection', () async { final nativeFrames = NativeFrames(3, 2, 1); final traceId = SentryId.empty(); - fixture.channel.nativeFrames = nativeFrames; - - final sut = fixture.getSut(); + channel.nativeFrames = nativeFrames; final actual = await sut.endNativeFramesCollection(traceId); expect(actual, nativeFrames); - expect(fixture.channel.id, traceId); - expect(fixture.channel.numberOfEndNativeFramesCalls, 1); + expect(channel.id, traceId); + expect(channel.numberOfEndNativeFramesCalls, 1); }); test('setUser', () async { - final sut = fixture.getSut(); await sut.setUser(null); - - expect(fixture.channel.numberOfSetUserCalls, 1); + expect(channel.numberOfSetUserCalls, 1); }); test('addBreadcrumb', () async { - final sut = fixture.getSut(); await sut.addBreadcrumb(Breadcrumb()); - - expect(fixture.channel.numberOfAddBreadcrumbCalls, 1); + expect(channel.numberOfAddBreadcrumbCalls, 1); }); test('clearBreadcrumbs', () async { - final sut = fixture.getSut(); await sut.clearBreadcrumbs(); - - expect(fixture.channel.numberOfClearBreadcrumbCalls, 1); + expect(channel.numberOfClearBreadcrumbCalls, 1); }); test('setContexts', () async { - final sut = fixture.getSut(); await sut.setContexts('fixture-key', 'fixture-value'); - - expect(fixture.channel.numberOfSetContextsCalls, 1); + expect(channel.numberOfSetContextsCalls, 1); }); test('removeContexts', () async { - final sut = fixture.getSut(); await sut.removeContexts('fixture-key'); - - expect(fixture.channel.numberOfRemoveContextsCalls, 1); + expect(channel.numberOfRemoveContextsCalls, 1); }); test('setExtra', () async { - final sut = fixture.getSut(); await sut.setExtra('fixture-key', 'fixture-value'); - - expect(fixture.channel.numberOfSetExtraCalls, 1); + expect(channel.numberOfSetExtraCalls, 1); }); test('removeExtra', () async { - final sut = fixture.getSut(); await sut.removeExtra('fixture-key'); - - expect(fixture.channel.numberOfRemoveExtraCalls, 1); + expect(channel.numberOfRemoveExtraCalls, 1); }); test('setTag', () async { - final sut = fixture.getSut(); await sut.setTag('fixture-key', 'fixture-value'); - - expect(fixture.channel.numberOfSetTagCalls, 1); + expect(channel.numberOfSetTagCalls, 1); }); test('removeTag', () async { - final sut = fixture.getSut(); await sut.removeTag('fixture-key'); - - expect(fixture.channel.numberOfRemoveTagCalls, 1); + expect(channel.numberOfRemoveTagCalls, 1); }); test('startProfiler', () async { - final sut = fixture.getSut(); - await sut.startProfiler(SentryId.newId()); - - expect(fixture.channel.numberOfStartProfilerCalls, 1); + sut.startProfiler(SentryId.newId()); + expect(channel.numberOfStartProfilerCalls, 1); }); test('discardProfiler', () async { - final sut = fixture.getSut(); await sut.discardProfiler(SentryId.newId()); - - expect(fixture.channel.numberOfDiscardProfilerCalls, 1); + expect(channel.numberOfDiscardProfilerCalls, 1); }); test('collectProfile', () async { - final sut = fixture.getSut(); await sut.collectProfile(SentryId.newId(), 1, 2); - - expect(fixture.channel.numberOfCollectProfileCalls, 1); + expect(channel.numberOfCollectProfileCalls, 1); }); test('reset', () async { - final sut = fixture.getSut(); - sut.appStartEnd = DateTime.now(); await sut.fetchNativeAppStart(); - sut.reset(); - expect(sut.appStartEnd, null); expect(sut.didFetchAppStart, false); }); }); } - -class Fixture { - final channel = MockNativeChannel(); - - SentryNative getSut() { - final sut = SentryNative(); - sut.nativeChannel = channel; - return sut; - } -} diff --git a/flutter/test/sentry_navigator_observer_test.dart b/flutter/test/sentry_navigator_observer_test.dart index c9a1629362..8ef61b1398 100644 --- a/flutter/test/sentry_navigator_observer_test.dart +++ b/flutter/test/sentry_navigator_observer_test.dart @@ -33,21 +33,25 @@ void main() { } setUp(() { - SentryNative().reset(); fixture = Fixture(); }); - tearDown(() { - SentryNative().reset(); - }); - group('NativeFrames', () { + late MockNativeChannel mockNativeChannel; + + setUp(() { + mockNativeChannel = MockNativeChannel(); + SentryFlutter.native = + SentryNative(SentryFlutterOptions(dsn: fakeDsn), mockNativeChannel); + }); + + tearDown(() { + SentryFlutter.native = null; + }); + test('transaction start begins frames collection', () async { final currentRoute = route(RouteSettings(name: 'Current Route')); final mockHub = _MockHub(); - final native = SentryNative(); - final mockNativeChannel = MockNativeChannel(); - native.nativeChannel = mockNativeChannel; final tracer = getMockSentryTracer(); _whenAnyStart(mockHub, tracer); @@ -65,17 +69,13 @@ void main() { test('transaction finish adds native frames to tracer', () async { final currentRoute = route(RouteSettings(name: 'Current Route')); - final options = SentryOptions(dsn: fakeDsn); + final options = defaultTestOptions(); options.tracesSampleRate = 1; final hub = Hub(options); final nativeFrames = NativeFrames(3, 2, 1); - final mockNativeChannel = MockNativeChannel(); mockNativeChannel.nativeFrames = nativeFrames; - final mockNative = SentryNative(); - mockNative.nativeChannel = mockNativeChannel; - final sut = fixture.getSut( hub: hub, autoFinishAfter: Duration(milliseconds: 50), @@ -728,6 +728,8 @@ void main() { } class Fixture { + final mockNativeChannel = MockNativeChannel(); + SentryNavigatorObserver getSut({ required Hub hub, bool enableAutoTransactions = true, @@ -753,7 +755,7 @@ class Fixture { class _MockHub extends MockHub { @override - final options = SentryOptions(dsn: fakeDsn); + final options = defaultTestOptions(); @override late final scope = Scope(options); From 0fb649c2531717ad73c75fb7953bf1c7e78c4cf4 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Tue, 12 Sep 2023 20:55:00 +0200 Subject: [PATCH 16/32] update cocoa native binding to use ffi startProfiler() --- flutter/lib/src/native/cocoa/binding.dart | 34975 ++++++++-------- .../src/native/cocoa/sentry_native_cocoa.dart | 23 + flutter/lib/src/profiling.dart | 35 +- flutter/lib/src/sentry_flutter.dart | 4 +- 4 files changed, 16559 insertions(+), 18478 deletions(-) create mode 100644 flutter/lib/src/native/cocoa/sentry_native_cocoa.dart diff --git a/flutter/lib/src/native/cocoa/binding.dart b/flutter/lib/src/native/cocoa/binding.dart index 8d5b378edc..6366cebd96 100644 --- a/flutter/lib/src/native/cocoa/binding.dart +++ b/flutter/lib/src/native/cocoa/binding.dart @@ -99,30 +99,6 @@ class SentryCocoa { late final _objc_releaseFinalizer2 = ffi.NativeFinalizer(__objc_releasePtr.cast()); - late final _class_PrivateSentrySDKOnly1 = _getClass1("PrivateSentrySDKOnly"); - bool _objc_msgSend_0( - ffi.Pointer obj, - ffi.Pointer sel, - ffi.Pointer clazz, - ) { - return __objc_msgSend_0( - obj, - sel, - clazz, - ); - } - - late final __objc_msgSend_0Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_0 = __objc_msgSend_0Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - late final _sel_isKindOfClass_1 = _registerName1("isKindOfClass:"); - late final _class_SentryEnvelope1 = _getClass1("SentryEnvelope"); - late final _class_SentryId1 = _getClass1("SentryId"); late final _class_NSObject1 = _getClass1("NSObject"); late final _sel_load1 = _registerName1("load"); void _objc_msgSend_1( @@ -213,6 +189,27 @@ class SentryCocoa { bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); + bool _objc_msgSend_0( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer clazz, + ) { + return __objc_msgSend_0( + obj, + sel, + clazz, + ); + } + + late final __objc_msgSend_0Ptr = _lookup< + ffi.NativeFunction< + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_0 = __objc_msgSend_0Ptr.asFunction< + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + + late final _sel_isKindOfClass_1 = _registerName1("isKindOfClass:"); late final _class_Protocol1 = _getClass1("Protocol"); late final _sel_conformsToProtocol_1 = _registerName1("conformsToProtocol:"); bool _objc_msgSend_5( @@ -1310,13 +1307,11 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_rangeValue1 = _registerName1("rangeValue"); - void _objc_msgSend_49( - ffi.Pointer<_NSRange> stret, + _NSRange _objc_msgSend_49( ffi.Pointer obj, ffi.Pointer sel, ) { return __objc_msgSend_49( - stret, obj, sel, ); @@ -1324,11 +1319,10 @@ class SentryCocoa { late final __objc_msgSend_49Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend_stret'); + _NSRange Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_49 = __objc_msgSend_49Ptr.asFunction< - void Function(ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer)>(); + _NSRange Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_valueWithPoint_1 = _registerName1("valueWithPoint:"); ffi.Pointer _objc_msgSend_50( @@ -1416,13 +1410,11 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, NSEdgeInsets)>(); late final _sel_pointValue1 = _registerName1("pointValue"); - void _objc_msgSend_54( - ffi.Pointer stret, + CGPoint _objc_msgSend_54( ffi.Pointer obj, ffi.Pointer sel, ) { return __objc_msgSend_54( - stret, obj, sel, ); @@ -1430,20 +1422,17 @@ class SentryCocoa { late final __objc_msgSend_54Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend_stret'); + CGPoint Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_54 = __objc_msgSend_54Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + CGPoint Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_sizeValue1 = _registerName1("sizeValue"); - void _objc_msgSend_55( - ffi.Pointer stret, + CGSize _objc_msgSend_55( ffi.Pointer obj, ffi.Pointer sel, ) { return __objc_msgSend_55( - stret, obj, sel, ); @@ -1451,20 +1440,17 @@ class SentryCocoa { late final __objc_msgSend_55Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend_stret'); + CGSize Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_55 = __objc_msgSend_55Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + CGSize Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_rectValue1 = _registerName1("rectValue"); - void _objc_msgSend_56( - ffi.Pointer stret, + CGRect _objc_msgSend_56( ffi.Pointer obj, ffi.Pointer sel, ) { return __objc_msgSend_56( - stret, obj, sel, ); @@ -1472,20 +1458,17 @@ class SentryCocoa { late final __objc_msgSend_56Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend_stret'); + CGRect Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_56 = __objc_msgSend_56Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + CGRect Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_edgeInsetsValue1 = _registerName1("edgeInsetsValue"); - void _objc_msgSend_57( - ffi.Pointer stret, + NSEdgeInsets _objc_msgSend_57( ffi.Pointer obj, ffi.Pointer sel, ) { return __objc_msgSend_57( - stret, obj, sel, ); @@ -1493,11 +1476,10 @@ class SentryCocoa { late final __objc_msgSend_57Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend_stret'); + NSEdgeInsets Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_57 = __objc_msgSend_57Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + NSEdgeInsets Function(ffi.Pointer, ffi.Pointer)>(); late final _sel_keyPathsForValuesAffectingValueForKey_1 = _registerName1("keyPathsForValuesAffectingValueForKey:"); @@ -4184,8 +4166,8 @@ class SentryCocoa { late final __objc_msgSend_155Ptr = _lookup< ffi.NativeFunction< - ffi.Double Function(ffi.Pointer, - ffi.Pointer)>>('objc_msgSend_fpret'); + ffi.Double Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_155 = __objc_msgSend_155Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer)>(); @@ -4228,7 +4210,7 @@ class SentryCocoa { late final __objc_msgSend_157Ptr = _lookup< ffi.NativeFunction< ffi.Double Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend_fpret'); + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_157 = __objc_msgSend_157Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -5925,8 +5907,8 @@ class SentryCocoa { late final __objc_msgSend_221Ptr = _lookup< ffi.NativeFunction< - ffi.Float Function(ffi.Pointer, - ffi.Pointer)>>('objc_msgSend_fpret'); + ffi.Float Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_221 = __objc_msgSend_221Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer)>(); @@ -6809,8 +6791,7 @@ class SentryCocoa { late final _sel_rangeOfData_options_range_1 = _registerName1("rangeOfData:options:range:"); - void _objc_msgSend_250( - ffi.Pointer<_NSRange> stret, + _NSRange _objc_msgSend_250( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer dataToFind, @@ -6818,7 +6799,6 @@ class SentryCocoa { _NSRange searchRange, ) { return __objc_msgSend_250( - stret, obj, sel, dataToFind, @@ -6829,16 +6809,11 @@ class SentryCocoa { late final __objc_msgSend_250Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_NSRange>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - _NSRange)>>('objc_msgSend_stret'); + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); late final __objc_msgSend_250 = __objc_msgSend_250Ptr.asFunction< - void Function(ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, _NSRange)>(); + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange)>(); late final _sel_enumerateByteRangesUsingBlock_1 = _registerName1("enumerateByteRangesUsingBlock:"); @@ -7697,7 +7672,7 @@ class SentryCocoa { late final __objc_msgSend_283Ptr = _lookup< ffi.NativeFunction< ffi.Float Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend_fpret'); + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_283 = __objc_msgSend_283Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -7718,7 +7693,7 @@ class SentryCocoa { late final __objc_msgSend_284Ptr = _lookup< ffi.NativeFunction< ffi.Double Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend_fpret'); + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_284 = __objc_msgSend_284Ptr.asFunction< double Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); @@ -8255,14 +8230,12 @@ class SentryCocoa { ffi.Pointer)>(); late final _sel_decodePointForKey_1 = _registerName1("decodePointForKey:"); - void _objc_msgSend_305( - ffi.Pointer stret, + CGPoint _objc_msgSend_305( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { return __objc_msgSend_305( - stret, obj, sel, key, @@ -8271,24 +8244,19 @@ class SentryCocoa { late final __objc_msgSend_305Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend_stret'); + CGPoint Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_305 = __objc_msgSend_305Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + CGPoint Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); late final _sel_decodeSizeForKey_1 = _registerName1("decodeSizeForKey:"); - void _objc_msgSend_306( - ffi.Pointer stret, + CGSize _objc_msgSend_306( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { return __objc_msgSend_306( - stret, obj, sel, key, @@ -8297,24 +8265,19 @@ class SentryCocoa { late final __objc_msgSend_306Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend_stret'); + CGSize Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_306 = __objc_msgSend_306Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + CGSize Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); late final _sel_decodeRectForKey_1 = _registerName1("decodeRectForKey:"); - void _objc_msgSend_307( - ffi.Pointer stret, + CGRect _objc_msgSend_307( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer key, ) { return __objc_msgSend_307( - stret, obj, sel, key, @@ -8323,14 +8286,11 @@ class SentryCocoa { late final __objc_msgSend_307Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend_stret'); + CGRect Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_307 = __objc_msgSend_307Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + CGRect Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); late final _sel_substringFromIndex_1 = _registerName1("substringFromIndex:"); ffi.Pointer _objc_msgSend_308( @@ -8545,14 +8505,12 @@ class SentryCocoa { _registerName1("localizedStandardContainsString:"); late final _sel_localizedStandardRangeOfString_1 = _registerName1("localizedStandardRangeOfString:"); - void _objc_msgSend_316( - ffi.Pointer<_NSRange> stret, + _NSRange _objc_msgSend_316( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer str, ) { return __objc_msgSend_316( - stret, obj, sel, str, @@ -8561,27 +8519,22 @@ class SentryCocoa { late final __objc_msgSend_316Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_NSRange>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend_stret'); + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_316 = __objc_msgSend_316Ptr.asFunction< - void Function(ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); late final _sel_rangeOfString_1 = _registerName1("rangeOfString:"); late final _sel_rangeOfString_options_1 = _registerName1("rangeOfString:options:"); - void _objc_msgSend_317( - ffi.Pointer<_NSRange> stret, + _NSRange _objc_msgSend_317( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchString, int mask, ) { return __objc_msgSend_317( - stret, obj, sel, searchString, @@ -8591,20 +8544,15 @@ class SentryCocoa { late final __objc_msgSend_317Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_NSRange>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend_stret'); + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_317 = __objc_msgSend_317Ptr.asFunction< - void Function(ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); late final _sel_rangeOfString_options_range_1 = _registerName1("rangeOfString:options:range:"); - void _objc_msgSend_318( - ffi.Pointer<_NSRange> stret, + _NSRange _objc_msgSend_318( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchString, @@ -8612,7 +8560,6 @@ class SentryCocoa { _NSRange rangeOfReceiverToSearch, ) { return __objc_msgSend_318( - stret, obj, sel, searchString, @@ -8623,21 +8570,15 @@ class SentryCocoa { late final __objc_msgSend_318Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_NSRange>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - _NSRange)>>('objc_msgSend_stret'); + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); late final __objc_msgSend_318 = __objc_msgSend_318Ptr.asFunction< - void Function(ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, _NSRange)>(); + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange)>(); late final _sel_rangeOfString_options_range_locale_1 = _registerName1("rangeOfString:options:range:locale:"); - void _objc_msgSend_319( - ffi.Pointer<_NSRange> stret, + _NSRange _objc_msgSend_319( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchString, @@ -8646,7 +8587,6 @@ class SentryCocoa { ffi.Pointer locale, ) { return __objc_msgSend_319( - stret, obj, sel, searchString, @@ -8658,34 +8598,25 @@ class SentryCocoa { late final __objc_msgSend_319Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_NSRange>, + _NSRange Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Int32, _NSRange, - ffi.Pointer)>>('objc_msgSend_stret'); + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_319 = __objc_msgSend_319Ptr.asFunction< - void Function( - ffi.Pointer<_NSRange>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - _NSRange, - ffi.Pointer)>(); + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange, ffi.Pointer)>(); late final _sel_rangeOfCharacterFromSet_1 = _registerName1("rangeOfCharacterFromSet:"); - void _objc_msgSend_320( - ffi.Pointer<_NSRange> stret, + _NSRange _objc_msgSend_320( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, ) { return __objc_msgSend_320( - stret, obj, sel, searchSet, @@ -8694,26 +8625,21 @@ class SentryCocoa { late final __objc_msgSend_320Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_NSRange>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend_stret'); + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_320 = __objc_msgSend_320Ptr.asFunction< - void Function(ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); late final _sel_rangeOfCharacterFromSet_options_1 = _registerName1("rangeOfCharacterFromSet:options:"); - void _objc_msgSend_321( - ffi.Pointer<_NSRange> stret, + _NSRange _objc_msgSend_321( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, int mask, ) { return __objc_msgSend_321( - stret, obj, sel, searchSet, @@ -8723,20 +8649,15 @@ class SentryCocoa { late final __objc_msgSend_321Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_NSRange>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend_stret'); + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_321 = __objc_msgSend_321Ptr.asFunction< - void Function(ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); late final _sel_rangeOfCharacterFromSet_options_range_1 = _registerName1("rangeOfCharacterFromSet:options:range:"); - void _objc_msgSend_322( - ffi.Pointer<_NSRange> stret, + _NSRange _objc_msgSend_322( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer searchSet, @@ -8744,7 +8665,6 @@ class SentryCocoa { _NSRange rangeOfReceiverToSearch, ) { return __objc_msgSend_322( - stret, obj, sel, searchSet, @@ -8755,27 +8675,20 @@ class SentryCocoa { late final __objc_msgSend_322Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_NSRange>, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - _NSRange)>>('objc_msgSend_stret'); + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); late final __objc_msgSend_322 = __objc_msgSend_322Ptr.asFunction< - void Function(ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, _NSRange)>(); + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange)>(); late final _sel_rangeOfComposedCharacterSequenceAtIndex_1 = _registerName1("rangeOfComposedCharacterSequenceAtIndex:"); - void _objc_msgSend_323( - ffi.Pointer<_NSRange> stret, + _NSRange _objc_msgSend_323( ffi.Pointer obj, ffi.Pointer sel, int index, ) { return __objc_msgSend_323( - stret, obj, sel, index, @@ -8784,22 +8697,19 @@ class SentryCocoa { late final __objc_msgSend_323Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend_stret'); + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); late final __objc_msgSend_323 = __objc_msgSend_323Ptr.asFunction< - void Function(ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer, int)>(); + _NSRange Function(ffi.Pointer, ffi.Pointer, int)>(); late final _sel_rangeOfComposedCharacterSequencesForRange_1 = _registerName1("rangeOfComposedCharacterSequencesForRange:"); - void _objc_msgSend_324( - ffi.Pointer<_NSRange> stret, + _NSRange _objc_msgSend_324( ffi.Pointer obj, ffi.Pointer sel, _NSRange range, ) { return __objc_msgSend_324( - stret, obj, sel, range, @@ -8808,11 +8718,11 @@ class SentryCocoa { late final __objc_msgSend_324Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend_stret'); + _NSRange Function(ffi.Pointer, ffi.Pointer, + _NSRange)>>('objc_msgSend'); late final __objc_msgSend_324 = __objc_msgSend_324Ptr.asFunction< - void Function(ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer, _NSRange)>(); + _NSRange Function( + ffi.Pointer, ffi.Pointer, _NSRange)>(); late final _sel_stringByAppendingString_1 = _registerName1("stringByAppendingString:"); @@ -17123,1157 +17033,1413 @@ class SentryCocoa { _registerName1("scriptingBeginsWith:"); late final _sel_scriptingEndsWith_1 = _registerName1("scriptingEndsWith:"); late final _sel_scriptingContains_1 = _registerName1("scriptingContains:"); - 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_609( + late final _class_NSItemProvider1 = _getClass1("NSItemProvider"); + late final _class_NSProgress1 = _getClass1("NSProgress"); + late final _sel_currentProgress1 = _registerName1("currentProgress"); + ffi.Pointer _objc_msgSend_609( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer bytes, ) { return __objc_msgSend_609( obj, sel, - bytes, ); } late final __objc_msgSend_609Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_609 = __objc_msgSend_609Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_getUUIDBytes_1 = _registerName1("getUUIDBytes:"); - void _objc_msgSend_610( + late final _sel_progressWithTotalUnitCount_1 = + _registerName1("progressWithTotalUnitCount:"); + ffi.Pointer _objc_msgSend_610( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer uuid, + int unitCount, ) { return __objc_msgSend_610( obj, sel, - uuid, + unitCount, ); } late final __objc_msgSend_610Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int64)>>('objc_msgSend'); late final __objc_msgSend_610 = __objc_msgSend_610Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - int _objc_msgSend_611( + late final _sel_discreteProgressWithTotalUnitCount_1 = + _registerName1("discreteProgressWithTotalUnitCount:"); + late final _sel_progressWithTotalUnitCount_parent_pendingUnitCount_1 = + _registerName1("progressWithTotalUnitCount:parent:pendingUnitCount:"); + ffi.Pointer _objc_msgSend_611( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer otherUUID, + int unitCount, + ffi.Pointer parent, + int portionOfParentTotalUnitCount, ) { return __objc_msgSend_611( obj, sel, - otherUUID, + unitCount, + parent, + portionOfParentTotalUnitCount, ); } late final __objc_msgSend_611Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int64, + ffi.Pointer, + ffi.Int64)>>('objc_msgSend'); late final __objc_msgSend_611 = __objc_msgSend_611Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer, int)>(); - late final _sel_UUIDString1 = _registerName1("UUIDString"); - late final _sel_initWithUUID_1 = _registerName1("initWithUUID:"); + late final _sel_initWithParent_userInfo_1 = + _registerName1("initWithParent:userInfo:"); instancetype _objc_msgSend_612( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer uuid, + ffi.Pointer parentProgressOrNil, + ffi.Pointer userInfoOrNil, ) { return __objc_msgSend_612( obj, sel, - uuid, + parentProgressOrNil, + userInfoOrNil, ); } late final __objc_msgSend_612Ptr = _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_612 = __objc_msgSend_612Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>(); - late final _sel_sentryIdString1 = _registerName1("sentryIdString"); - late final _sel_empty1 = _registerName1("empty"); - ffi.Pointer _objc_msgSend_613( + late final _sel_becomeCurrentWithPendingUnitCount_1 = + _registerName1("becomeCurrentWithPendingUnitCount:"); + void _objc_msgSend_613( ffi.Pointer obj, ffi.Pointer sel, + int unitCount, ) { return __objc_msgSend_613( obj, sel, + unitCount, ); } late final __objc_msgSend_613Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int64)>>('objc_msgSend'); late final __objc_msgSend_613 = __objc_msgSend_613Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _class_SentryEnvelopeItem1 = _getClass1("SentryEnvelopeItem"); - late final _class_SentryEvent1 = _getClass1("SentryEvent"); - late final _sel_initWithEvent_1 = _registerName1("initWithEvent:"); - instancetype _objc_msgSend_614( + late final _sel_performAsCurrentWithPendingUnitCount_usingBlock_1 = + _registerName1("performAsCurrentWithPendingUnitCount:usingBlock:"); + void _objc_msgSend_614( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer event, + int unitCount, + ffi.Pointer<_ObjCBlock> work, ) { return __objc_msgSend_614( obj, sel, - event, + unitCount, + work, ); } late final __objc_msgSend_614Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int64, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_614 = __objc_msgSend_614Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer<_ObjCBlock>)>(); - late final _class_SentrySession1 = _getClass1("SentrySession"); - late final _sel_initWithSession_1 = _registerName1("initWithSession:"); - instancetype _objc_msgSend_615( + late final _sel_resignCurrent1 = _registerName1("resignCurrent"); + late final _sel_addChild_withPendingUnitCount_1 = + _registerName1("addChild:withPendingUnitCount:"); + void _objc_msgSend_615( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer session, + ffi.Pointer child, + int inUnitCount, ) { return __objc_msgSend_615( obj, sel, - session, + child, + inUnitCount, ); } late final __objc_msgSend_615Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int64)>>('objc_msgSend'); late final __objc_msgSend_615 = __objc_msgSend_615Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _class_SentryUserFeedback1 = _getClass1("SentryUserFeedback"); - late final _sel_initWithUserFeedback_1 = - _registerName1("initWithUserFeedback:"); - instancetype _objc_msgSend_616( + late final _sel_totalUnitCount1 = _registerName1("totalUnitCount"); + int _objc_msgSend_616( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer userFeedback, ) { return __objc_msgSend_616( obj, sel, - userFeedback, ); } late final __objc_msgSend_616Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Int64 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_616 = __objc_msgSend_616Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _class_SentryAttachment1 = _getClass1("SentryAttachment"); - late final _sel_initWithAttachment_maxAttachmentSize_1 = - _registerName1("initWithAttachment:maxAttachmentSize:"); - instancetype _objc_msgSend_617( + late final _sel_setTotalUnitCount_1 = _registerName1("setTotalUnitCount:"); + void _objc_msgSend_617( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer attachment, - ffi.Pointer maxAttachmentSize, + int value, ) { return __objc_msgSend_617( obj, sel, - attachment, - maxAttachmentSize, + value, ); } late final __objc_msgSend_617Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int64)>>('objc_msgSend'); late final __objc_msgSend_617 = __objc_msgSend_617Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _class_SentryEnvelopeItemHeader1 = - _getClass1("SentryEnvelopeItemHeader"); - late final _sel_initWithHeader_data_1 = - _registerName1("initWithHeader:data:"); - instancetype _objc_msgSend_618( + late final _sel_completedUnitCount1 = _registerName1("completedUnitCount"); + late final _sel_setCompletedUnitCount_1 = + _registerName1("setCompletedUnitCount:"); + late final _sel_setLocalizedDescription_1 = + _registerName1("setLocalizedDescription:"); + late final _sel_localizedAdditionalDescription1 = + _registerName1("localizedAdditionalDescription"); + late final _sel_setLocalizedAdditionalDescription_1 = + _registerName1("setLocalizedAdditionalDescription:"); + late final _sel_isCancellable1 = _registerName1("isCancellable"); + late final _sel_setCancellable_1 = _registerName1("setCancellable:"); + late final _sel_isPausable1 = _registerName1("isPausable"); + late final _sel_setPausable_1 = _registerName1("setPausable:"); + late final _sel_isPaused1 = _registerName1("isPaused"); + late final _sel_cancellationHandler1 = _registerName1("cancellationHandler"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_618( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer header, - ffi.Pointer data, ) { return __objc_msgSend_618( obj, sel, - header, - data, ); } late final __objc_msgSend_618Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_618 = __objc_msgSend_618Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_header1 = _registerName1("header"); - ffi.Pointer _objc_msgSend_619( + late final _sel_setCancellationHandler_1 = + _registerName1("setCancellationHandler:"); + void _objc_msgSend_619( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> value, ) { return __objc_msgSend_619( obj, sel, + value, ); } late final __objc_msgSend_619Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_619 = __objc_msgSend_619Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - ffi.Pointer _objc_msgSend_620( + late final _sel_pausingHandler1 = _registerName1("pausingHandler"); + late final _sel_setPausingHandler_1 = _registerName1("setPausingHandler:"); + late final _sel_resumingHandler1 = _registerName1("resumingHandler"); + late final _sel_setResumingHandler_1 = _registerName1("setResumingHandler:"); + late final _sel_setUserInfoObject_forKey_1 = + _registerName1("setUserInfoObject:forKey:"); + late final _sel_isIndeterminate1 = _registerName1("isIndeterminate"); + late final _sel_fractionCompleted1 = _registerName1("fractionCompleted"); + late final _sel_pause1 = _registerName1("pause"); + late final _sel_resume1 = _registerName1("resume"); + late final _sel_kind1 = _registerName1("kind"); + late final _sel_setKind_1 = _registerName1("setKind:"); + late final _sel_estimatedTimeRemaining1 = + _registerName1("estimatedTimeRemaining"); + late final _sel_setEstimatedTimeRemaining_1 = + _registerName1("setEstimatedTimeRemaining:"); + void _objc_msgSend_620( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer value, ) { return __objc_msgSend_620( obj, sel, + value, ); } late final __objc_msgSend_620Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_620 = __objc_msgSend_620Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_initWithId_singleItem_1 = - _registerName1("initWithId:singleItem:"); - instancetype _objc_msgSend_621( + late final _sel_throughput1 = _registerName1("throughput"); + late final _sel_setThroughput_1 = _registerName1("setThroughput:"); + late final _sel_fileOperationKind1 = _registerName1("fileOperationKind"); + late final _sel_setFileOperationKind_1 = + _registerName1("setFileOperationKind:"); + late final _sel_fileURL1 = _registerName1("fileURL"); + late final _sel_setFileURL_1 = _registerName1("setFileURL:"); + void _objc_msgSend_621( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer id, - ffi.Pointer item, + ffi.Pointer value, ) { return __objc_msgSend_621( obj, sel, - id, - item, + value, ); } late final __objc_msgSend_621Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_621 = __objc_msgSend_621Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _class_SentryEnvelopeHeader1 = _getClass1("SentryEnvelopeHeader"); - late final _sel_initWithId_1 = _registerName1("initWithId:"); - instancetype _objc_msgSend_622( + late final _sel_fileTotalCount1 = _registerName1("fileTotalCount"); + late final _sel_setFileTotalCount_1 = _registerName1("setFileTotalCount:"); + late final _sel_fileCompletedCount1 = _registerName1("fileCompletedCount"); + late final _sel_setFileCompletedCount_1 = + _registerName1("setFileCompletedCount:"); + late final _sel_publish1 = _registerName1("publish"); + late final _sel_unpublish1 = _registerName1("unpublish"); + late final _sel_addSubscriberForFileURL_withPublishingHandler_1 = + _registerName1("addSubscriberForFileURL:withPublishingHandler:"); + ffi.Pointer _objc_msgSend_622( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer eventId, + ffi.Pointer url, + ffi.Pointer<_ObjCBlock> publishingHandler, ) { return __objc_msgSend_622( obj, sel, - eventId, + url, + publishingHandler, ); } late final __objc_msgSend_622Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_622 = __objc_msgSend_622Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _class_SentryTraceContext1 = _getClass1("SentryTraceContext"); - late final _sel_initWithId_traceContext_1 = - _registerName1("initWithId:traceContext:"); - instancetype _objc_msgSend_623( + late final _sel_removeSubscriber_1 = _registerName1("removeSubscriber:"); + late final _sel_isOld1 = _registerName1("isOld"); + late final _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1 = + _registerName1( + "registerDataRepresentationForTypeIdentifier:visibility:loadHandler:"); + void _objc_msgSend_623( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer eventId, - ffi.Pointer traceContext, + ffi.Pointer typeIdentifier, + int visibility, + ffi.Pointer<_ObjCBlock> loadHandler, ) { return __objc_msgSend_623( obj, sel, - eventId, - traceContext, + typeIdentifier, + visibility, + loadHandler, ); } late final __objc_msgSend_623Ptr = _lookup< ffi.NativeFunction< - instancetype Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_623 = __objc_msgSend_623Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - late final _class_SentrySdkInfo1 = _getClass1("SentrySdkInfo"); - late final _sel_initWithId_sdkInfo_traceContext_1 = - _registerName1("initWithId:sdkInfo:traceContext:"); - instancetype _objc_msgSend_624( + late final _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1 = + _registerName1( + "registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:"); + void _objc_msgSend_624( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer eventId, - ffi.Pointer sdkInfo, - ffi.Pointer traceContext, + ffi.Pointer typeIdentifier, + int fileOptions, + int visibility, + ffi.Pointer<_ObjCBlock> loadHandler, ) { return __objc_msgSend_624( obj, sel, - eventId, - sdkInfo, - traceContext, + typeIdentifier, + fileOptions, + visibility, + loadHandler, ); } late final __objc_msgSend_624Ptr = _lookup< ffi.NativeFunction< - instancetype Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Int32, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_624 = __objc_msgSend_624Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_eventId1 = _registerName1("eventId"); - late final _sel_sdkInfo1 = _registerName1("sdkInfo"); + late final _sel_registeredTypeIdentifiers1 = + _registerName1("registeredTypeIdentifiers"); + late final _sel_registeredTypeIdentifiersWithFileOptions_1 = + _registerName1("registeredTypeIdentifiersWithFileOptions:"); ffi.Pointer _objc_msgSend_625( ffi.Pointer obj, ffi.Pointer sel, + int fileOptions, ) { return __objc_msgSend_625( obj, sel, + fileOptions, ); } late final __objc_msgSend_625Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_625 = __objc_msgSend_625Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_traceContext1 = _registerName1("traceContext"); - ffi.Pointer _objc_msgSend_626( - ffi.Pointer obj, - ffi.Pointer sel, - ) { + late final _sel_hasItemConformingToTypeIdentifier_1 = + _registerName1("hasItemConformingToTypeIdentifier:"); + late final _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1 = + _registerName1( + "hasRepresentationConformingToTypeIdentifier:fileOptions:"); + bool _objc_msgSend_626( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer typeIdentifier, + int fileOptions, + ) { return __objc_msgSend_626( obj, sel, + typeIdentifier, + fileOptions, ); } late final __objc_msgSend_626Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_626 = __objc_msgSend_626Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _sel_sentAt1 = _registerName1("sentAt"); - late final _sel_setSentAt_1 = _registerName1("setSentAt:"); - void _objc_msgSend_627( + late final _sel_loadDataRepresentationForTypeIdentifier_completionHandler_1 = + _registerName1( + "loadDataRepresentationForTypeIdentifier:completionHandler:"); + ffi.Pointer _objc_msgSend_627( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, + ffi.Pointer typeIdentifier, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_627( obj, sel, - value, + typeIdentifier, + completionHandler, ); } late final __objc_msgSend_627Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_627 = __objc_msgSend_627Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_initWithHeader_singleItem_1 = - _registerName1("initWithHeader:singleItem:"); - instancetype _objc_msgSend_628( + late final _sel_loadFileRepresentationForTypeIdentifier_completionHandler_1 = + _registerName1( + "loadFileRepresentationForTypeIdentifier:completionHandler:"); + ffi.Pointer _objc_msgSend_628( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer header, - ffi.Pointer item, + ffi.Pointer typeIdentifier, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_628( obj, sel, - header, - item, + typeIdentifier, + completionHandler, ); } late final __objc_msgSend_628Ptr = _lookup< ffi.NativeFunction< - instancetype Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_628 = __objc_msgSend_628Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_initWithId_items_1 = _registerName1("initWithId:items:"); - instancetype _objc_msgSend_629( + late final _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1 = + _registerName1( + "loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:"); + ffi.Pointer _objc_msgSend_629( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer id, - ffi.Pointer items, + ffi.Pointer typeIdentifier, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_629( obj, sel, - id, - items, + typeIdentifier, + completionHandler, ); } late final __objc_msgSend_629Ptr = _lookup< ffi.NativeFunction< - instancetype Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_629 = __objc_msgSend_629Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_initWithSessions_1 = _registerName1("initWithSessions:"); - late final _sel_initWithHeader_items_1 = - _registerName1("initWithHeader:items:"); - instancetype _objc_msgSend_630( + late final _sel_suggestedName1 = _registerName1("suggestedName"); + late final _sel_setSuggestedName_1 = _registerName1("setSuggestedName:"); + late final _sel_registerObject_visibility_1 = + _registerName1("registerObject:visibility:"); + void _objc_msgSend_630( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer header, - ffi.Pointer items, + ffi.Pointer object, + int visibility, ) { return __objc_msgSend_630( obj, sel, - header, - items, + object, + visibility, ); } late final __objc_msgSend_630Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_630 = __objc_msgSend_630Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - ffi.Pointer _objc_msgSend_631( + late final _sel_registerObjectOfClass_visibility_loadHandler_1 = + _registerName1("registerObjectOfClass:visibility:loadHandler:"); + void _objc_msgSend_631( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer aClass, + int visibility, + ffi.Pointer<_ObjCBlock> loadHandler, ) { return __objc_msgSend_631( obj, sel, + aClass, + visibility, + loadHandler, ); } late final __objc_msgSend_631Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_631 = __objc_msgSend_631Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_storeEnvelope_1 = _registerName1("storeEnvelope:"); - void _objc_msgSend_632( + late final _sel_canLoadObjectOfClass_1 = + _registerName1("canLoadObjectOfClass:"); + late final _sel_loadObjectOfClass_completionHandler_1 = + _registerName1("loadObjectOfClass:completionHandler:"); + ffi.Pointer _objc_msgSend_632( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer envelope, + ffi.Pointer aClass, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_632( obj, sel, - envelope, + aClass, + completionHandler, ); } late final __objc_msgSend_632Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_632 = __objc_msgSend_632Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_captureEnvelope_1 = _registerName1("captureEnvelope:"); - late final _sel_envelopeWithData_1 = _registerName1("envelopeWithData:"); - ffi.Pointer _objc_msgSend_633( + late final _sel_initWithItem_typeIdentifier_1 = + _registerName1("initWithItem:typeIdentifier:"); + late final _sel_registerItemForTypeIdentifier_loadHandler_1 = + _registerName1("registerItemForTypeIdentifier:loadHandler:"); + void _objc_msgSend_633( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer data, + ffi.Pointer typeIdentifier, + ffi.Pointer<_ObjCBlock> loadHandler, ) { return __objc_msgSend_633( obj, sel, - data, + typeIdentifier, + loadHandler, ); } late final __objc_msgSend_633Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_633 = __objc_msgSend_633Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_getDebugImages1 = _registerName1("getDebugImages"); - late final _sel_getDebugImagesCrashed_1 = - _registerName1("getDebugImagesCrashed:"); - 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_getExtraContext1 = _registerName1("getExtraContext"); - late final _sel_startProfilerForTrace_1 = - _registerName1("startProfilerForTrace:"); - late final _sel_collectProfileBetween_and_forTrace_1 = - _registerName1("collectProfileBetween:and:forTrace:"); - ffi.Pointer _objc_msgSend_634( + late final _sel_loadItemForTypeIdentifier_options_completionHandler_1 = + _registerName1("loadItemForTypeIdentifier:options:completionHandler:"); + void _objc_msgSend_634( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer startSystemTime, - ffi.Pointer endSystemTime, - ffi.Pointer traceId, + ffi.Pointer typeIdentifier, + ffi.Pointer options, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_634( obj, sel, - startSystemTime, - endSystemTime, - traceId, + typeIdentifier, + options, + completionHandler, ); } late final __objc_msgSend_634Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_634 = __objc_msgSend_634Ptr.asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_discardProfilerForTrace_1 = - _registerName1("discardProfilerForTrace:"); - void _objc_msgSend_635( + late final _sel_previewImageHandler1 = _registerName1("previewImageHandler"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_635( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer traceId, ) { return __objc_msgSend_635( obj, sel, - traceId, ); } late final __objc_msgSend_635Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_635 = __objc_msgSend_635Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); - late final _class_SentryAppStartMeasurement1 = - _getClass1("SentryAppStartMeasurement"); - late final _sel_onAppStartMeasurementAvailable1 = - _registerName1("onAppStartMeasurementAvailable"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_636( + late final _sel_setPreviewImageHandler_1 = + _registerName1("setPreviewImageHandler:"); + void _objc_msgSend_636( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> value, ) { return __objc_msgSend_636( obj, sel, + value, ); } late final __objc_msgSend_636Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_636 = __objc_msgSend_636Ptr.asFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_setOnAppStartMeasurementAvailable_1 = - _registerName1("setOnAppStartMeasurementAvailable:"); + late final _sel_loadPreviewImageWithOptions_completionHandler_1 = + _registerName1("loadPreviewImageWithOptions:completionHandler:"); void _objc_msgSend_637( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> value, + ffi.Pointer options, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_637( obj, sel, - value, + options, + completionHandler, ); } late final __objc_msgSend_637Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_637 = __objc_msgSend_637Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_appStartMeasurement1 = _registerName1("appStartMeasurement"); - ffi.Pointer _objc_msgSend_638( + late final _class_NSMutableString1 = _getClass1("NSMutableString"); + late final _sel_replaceCharactersInRange_withString_1 = + _registerName1("replaceCharactersInRange:withString:"); + void _objc_msgSend_638( ffi.Pointer obj, ffi.Pointer sel, + _NSRange range, + ffi.Pointer aString, ) { return __objc_msgSend_638( obj, sel, + range, + aString, ); } late final __objc_msgSend_638Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + _NSRange, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_638 = __objc_msgSend_638Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + ffi.Pointer)>(); - late final _sel_installationID1 = _registerName1("installationID"); - late final _class_SentryOptions1 = _getClass1("SentryOptions"); - late final _sel_options1 = _registerName1("options"); - ffi.Pointer _objc_msgSend_639( + late final _sel_insertString_atIndex_1 = + _registerName1("insertString:atIndex:"); + void _objc_msgSend_639( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer aString, + int loc, ) { return __objc_msgSend_639( obj, sel, + aString, + loc, ); } late final __objc_msgSend_639Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); late final __objc_msgSend_639 = __objc_msgSend_639Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _sel_appStartMeasurementHybridSDKMode1 = - _registerName1("appStartMeasurementHybridSDKMode"); - late final _sel_setAppStartMeasurementHybridSDKMode_1 = - _registerName1("setAppStartMeasurementHybridSDKMode:"); - void _objc_msgSend_640( + late final _sel_deleteCharactersInRange_1 = + _registerName1("deleteCharactersInRange:"); + late final _sel_appendString_1 = _registerName1("appendString:"); + late final _sel_appendFormat_1 = _registerName1("appendFormat:"); + late final _sel_setString_1 = _registerName1("setString:"); + late final _sel_replaceOccurrencesOfString_withString_options_range_1 = + _registerName1("replaceOccurrencesOfString:withString:options:range:"); + int _objc_msgSend_640( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer target, + ffi.Pointer replacement, + int options, + _NSRange searchRange, ) { return __objc_msgSend_640( obj, sel, - value, + target, + replacement, + options, + searchRange, ); } late final __objc_msgSend_640Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int)>>('objc_msgSend'); + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend'); late final __objc_msgSend_640 = __objc_msgSend_640Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); - late final _class_SentryUser1 = _getClass1("SentryUser"); - late final _sel_userWithDictionary_1 = _registerName1("userWithDictionary:"); - ffi.Pointer _objc_msgSend_641( + late final _sel_applyTransform_reverse_range_updatedRange_1 = + _registerName1("applyTransform:reverse:range:updatedRange:"); + bool _objc_msgSend_641( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer dictionary, + ffi.Pointer transform, + bool reverse, + _NSRange range, + ffi.Pointer<_NSRange> resultingRange, ) { return __objc_msgSend_641( obj, sel, - dictionary, + transform, + reverse, + range, + resultingRange, ); } late final __objc_msgSend_641Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool, + _NSRange, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); late final __objc_msgSend_641 = __objc_msgSend_641Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool, _NSRange, ffi.Pointer<_NSRange>)>(); - late final _class_SentryBreadcrumb1 = _getClass1("SentryBreadcrumb"); - late final _sel_breadcrumbWithDictionary_1 = - _registerName1("breadcrumbWithDictionary:"); ffi.Pointer _objc_msgSend_642( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer dictionary, + int capacity, ) { return __objc_msgSend_642( obj, sel, - dictionary, + capacity, ); } late final __objc_msgSend_642Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); late final __objc_msgSend_642 = __objc_msgSend_642Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - late final _class_NSItemProvider1 = _getClass1("NSItemProvider"); - late final _class_NSProgress1 = _getClass1("NSProgress"); - late final _sel_currentProgress1 = _registerName1("currentProgress"); - ffi.Pointer _objc_msgSend_643( + late final _sel_stringWithCapacity_1 = _registerName1("stringWithCapacity:"); + late final _class_NSNotification1 = _getClass1("NSNotification"); + late final _sel_object1 = _registerName1("object"); + late final _sel_initWithName_object_userInfo_1 = + _registerName1("initWithName:object:userInfo:"); + instancetype _objc_msgSend_643( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer object, + ffi.Pointer userInfo, ) { return __objc_msgSend_643( obj, sel, + name, + object, + userInfo, ); } late final __objc_msgSend_643Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_643 = __objc_msgSend_643Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_progressWithTotalUnitCount_1 = - _registerName1("progressWithTotalUnitCount:"); + late final _sel_notificationWithName_object_1 = + _registerName1("notificationWithName:object:"); + late final _sel_notificationWithName_object_userInfo_1 = + _registerName1("notificationWithName:object:userInfo:"); + late final _class_NSBundle1 = _getClass1("NSBundle"); + late final _sel_mainBundle1 = _registerName1("mainBundle"); ffi.Pointer _objc_msgSend_644( ffi.Pointer obj, ffi.Pointer sel, - int unitCount, ) { return __objc_msgSend_644( obj, sel, - unitCount, ); } late final __objc_msgSend_644Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int64)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_644 = __objc_msgSend_644Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, ffi.Pointer)>(); - late final _sel_discreteProgressWithTotalUnitCount_1 = - _registerName1("discreteProgressWithTotalUnitCount:"); - late final _sel_progressWithTotalUnitCount_parent_pendingUnitCount_1 = - _registerName1("progressWithTotalUnitCount:parent:pendingUnitCount:"); + late final _sel_bundleWithPath_1 = _registerName1("bundleWithPath:"); + late final _sel_initWithPath_1 = _registerName1("initWithPath:"); + 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_645( ffi.Pointer obj, ffi.Pointer sel, - int unitCount, - ffi.Pointer parent, - int portionOfParentTotalUnitCount, + ffi.Pointer aClass, ) { return __objc_msgSend_645( obj, sel, - unitCount, - parent, - portionOfParentTotalUnitCount, + aClass, ); } late final __objc_msgSend_645Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Pointer, - ffi.Int64)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_645 = __objc_msgSend_645Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer, int)>(); + ffi.Pointer, ffi.Pointer)>(); - late final _sel_initWithParent_userInfo_1 = - _registerName1("initWithParent:userInfo:"); - instancetype _objc_msgSend_646( + late final _sel_bundleWithIdentifier_1 = + _registerName1("bundleWithIdentifier:"); + ffi.Pointer _objc_msgSend_646( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer parentProgressOrNil, - ffi.Pointer userInfoOrNil, + ffi.Pointer identifier, ) { return __objc_msgSend_646( obj, sel, - parentProgressOrNil, - userInfoOrNil, + identifier, ); } late final __objc_msgSend_646Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_646 = __objc_msgSend_646Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_becomeCurrentWithPendingUnitCount_1 = - _registerName1("becomeCurrentWithPendingUnitCount:"); - void _objc_msgSend_647( + late final _sel_allBundles1 = _registerName1("allBundles"); + late final _sel_allFrameworks1 = _registerName1("allFrameworks"); + late final _sel_isLoaded1 = _registerName1("isLoaded"); + late final _sel_unload1 = _registerName1("unload"); + late final _sel_preflightAndReturnError_1 = + _registerName1("preflightAndReturnError:"); + late final _sel_loadAndReturnError_1 = _registerName1("loadAndReturnError:"); + late final _sel_bundleURL1 = _registerName1("bundleURL"); + late final _sel_resourceURL1 = _registerName1("resourceURL"); + late final _sel_executableURL1 = _registerName1("executableURL"); + late final _sel_URLForAuxiliaryExecutable_1 = + _registerName1("URLForAuxiliaryExecutable:"); + late final _sel_privateFrameworksURL1 = + _registerName1("privateFrameworksURL"); + late final _sel_sharedFrameworksURL1 = _registerName1("sharedFrameworksURL"); + late final _sel_sharedSupportURL1 = _registerName1("sharedSupportURL"); + late final _sel_builtInPlugInsURL1 = _registerName1("builtInPlugInsURL"); + late final _sel_appStoreReceiptURL1 = _registerName1("appStoreReceiptURL"); + late final _sel_bundlePath1 = _registerName1("bundlePath"); + late final _sel_resourcePath1 = _registerName1("resourcePath"); + late final _sel_executablePath1 = _registerName1("executablePath"); + late final _sel_pathForAuxiliaryExecutable_1 = + _registerName1("pathForAuxiliaryExecutable:"); + late final _sel_privateFrameworksPath1 = + _registerName1("privateFrameworksPath"); + late final _sel_sharedFrameworksPath1 = + _registerName1("sharedFrameworksPath"); + late final _sel_sharedSupportPath1 = _registerName1("sharedSupportPath"); + late final _sel_builtInPlugInsPath1 = _registerName1("builtInPlugInsPath"); + late final _sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1 = + _registerName1( + "URLForResource:withExtension:subdirectory:inBundleWithURL:"); + ffi.Pointer _objc_msgSend_647( ffi.Pointer obj, ffi.Pointer sel, - int unitCount, + ffi.Pointer name, + ffi.Pointer ext, + ffi.Pointer subpath, + ffi.Pointer bundleURL, ) { return __objc_msgSend_647( obj, sel, - unitCount, + name, + ext, + subpath, + bundleURL, ); } late final __objc_msgSend_647Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int64)>>('objc_msgSend'); - late final __objc_msgSend_647 = __objc_msgSend_647Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_647 = __objc_msgSend_647Ptr.asFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_performAsCurrentWithPendingUnitCount_usingBlock_1 = - _registerName1("performAsCurrentWithPendingUnitCount:usingBlock:"); - void _objc_msgSend_648( + late final _sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1 = + _registerName1( + "URLsForResourcesWithExtension:subdirectory:inBundleWithURL:"); + ffi.Pointer _objc_msgSend_648( ffi.Pointer obj, ffi.Pointer sel, - int unitCount, - ffi.Pointer<_ObjCBlock> work, + ffi.Pointer ext, + ffi.Pointer subpath, + ffi.Pointer bundleURL, ) { return __objc_msgSend_648( obj, sel, - unitCount, - work, + ext, + subpath, + bundleURL, ); } late final __objc_msgSend_648Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int64, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_648 = __objc_msgSend_648Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_resignCurrent1 = _registerName1("resignCurrent"); - late final _sel_addChild_withPendingUnitCount_1 = - _registerName1("addChild:withPendingUnitCount:"); - void _objc_msgSend_649( + late final _sel_URLForResource_withExtension_1 = + _registerName1("URLForResource:withExtension:"); + ffi.Pointer _objc_msgSend_649( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer child, - int inUnitCount, + ffi.Pointer name, + ffi.Pointer ext, ) { return __objc_msgSend_649( obj, sel, - child, - inUnitCount, + name, + ext, ); } late final __objc_msgSend_649Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int64)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_649 = __objc_msgSend_649Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_totalUnitCount1 = _registerName1("totalUnitCount"); - int _objc_msgSend_650( + late final _sel_URLForResource_withExtension_subdirectory_1 = + _registerName1("URLForResource:withExtension:subdirectory:"); + ffi.Pointer _objc_msgSend_650( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer name, + ffi.Pointer ext, + ffi.Pointer subpath, ) { return __objc_msgSend_650( obj, sel, + name, + ext, + subpath, ); } late final __objc_msgSend_650Ptr = _lookup< ffi.NativeFunction< - ffi.Int64 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_650 = __objc_msgSend_650Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_setTotalUnitCount_1 = _registerName1("setTotalUnitCount:"); - void _objc_msgSend_651( + late final _sel_URLForResource_withExtension_subdirectory_localization_1 = + _registerName1("URLForResource:withExtension:subdirectory:localization:"); + ffi.Pointer _objc_msgSend_651( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer name, + ffi.Pointer ext, + ffi.Pointer subpath, + ffi.Pointer localizationName, ) { return __objc_msgSend_651( obj, sel, - value, + name, + ext, + subpath, + localizationName, ); } late final __objc_msgSend_651Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int64)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_651 = __objc_msgSend_651Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_completedUnitCount1 = _registerName1("completedUnitCount"); - late final _sel_setCompletedUnitCount_1 = - _registerName1("setCompletedUnitCount:"); - late final _sel_setLocalizedDescription_1 = - _registerName1("setLocalizedDescription:"); - late final _sel_localizedAdditionalDescription1 = - _registerName1("localizedAdditionalDescription"); - late final _sel_setLocalizedAdditionalDescription_1 = - _registerName1("setLocalizedAdditionalDescription:"); - late final _sel_isCancellable1 = _registerName1("isCancellable"); - late final _sel_setCancellable_1 = _registerName1("setCancellable:"); - late final _sel_isPausable1 = _registerName1("isPausable"); - late final _sel_setPausable_1 = _registerName1("setPausable:"); - late final _sel_isPaused1 = _registerName1("isPaused"); - late final _sel_cancellationHandler1 = _registerName1("cancellationHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_652( + late final _sel_URLsForResourcesWithExtension_subdirectory_1 = + _registerName1("URLsForResourcesWithExtension:subdirectory:"); + ffi.Pointer _objc_msgSend_652( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer ext, + ffi.Pointer subpath, ) { return __objc_msgSend_652( obj, sel, + ext, + subpath, ); } late final __objc_msgSend_652Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_652 = __objc_msgSend_652Ptr.asFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_setCancellationHandler_1 = - _registerName1("setCancellationHandler:"); - void _objc_msgSend_653( + late final _sel_URLsForResourcesWithExtension_subdirectory_localization_1 = + _registerName1( + "URLsForResourcesWithExtension:subdirectory:localization:"); + ffi.Pointer _objc_msgSend_653( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> value, + ffi.Pointer ext, + ffi.Pointer subpath, + ffi.Pointer localizationName, ) { return __objc_msgSend_653( obj, sel, - value, + ext, + subpath, + localizationName, ); } late final __objc_msgSend_653Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_653 = __objc_msgSend_653Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_pausingHandler1 = _registerName1("pausingHandler"); - late final _sel_setPausingHandler_1 = _registerName1("setPausingHandler:"); - late final _sel_resumingHandler1 = _registerName1("resumingHandler"); - late final _sel_setResumingHandler_1 = _registerName1("setResumingHandler:"); - late final _sel_setUserInfoObject_forKey_1 = - _registerName1("setUserInfoObject:forKey:"); - late final _sel_isIndeterminate1 = _registerName1("isIndeterminate"); - late final _sel_fractionCompleted1 = _registerName1("fractionCompleted"); - late final _sel_pause1 = _registerName1("pause"); - late final _sel_resume1 = _registerName1("resume"); - late final _sel_kind1 = _registerName1("kind"); - late final _sel_setKind_1 = _registerName1("setKind:"); - late final _sel_estimatedTimeRemaining1 = - _registerName1("estimatedTimeRemaining"); - late final _sel_setEstimatedTimeRemaining_1 = - _registerName1("setEstimatedTimeRemaining:"); - void _objc_msgSend_654( + late final _sel_pathForResource_ofType_inDirectory_1 = + _registerName1("pathForResource:ofType:inDirectory:"); + ffi.Pointer _objc_msgSend_654( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, + ffi.Pointer name, + ffi.Pointer ext, + ffi.Pointer bundlePath, ) { return __objc_msgSend_654( obj, sel, - value, + name, + ext, + bundlePath, ); } late final __objc_msgSend_654Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_654 = __objc_msgSend_654Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_throughput1 = _registerName1("throughput"); - late final _sel_setThroughput_1 = _registerName1("setThroughput:"); - late final _sel_fileOperationKind1 = _registerName1("fileOperationKind"); - late final _sel_setFileOperationKind_1 = - _registerName1("setFileOperationKind:"); - late final _sel_fileURL1 = _registerName1("fileURL"); - late final _sel_setFileURL_1 = _registerName1("setFileURL:"); - void _objc_msgSend_655( + late final _sel_pathsForResourcesOfType_inDirectory_1 = + _registerName1("pathsForResourcesOfType:inDirectory:"); + late final _sel_pathForResource_ofType_1 = + _registerName1("pathForResource:ofType:"); + late final _sel_pathForResource_ofType_inDirectory_forLocalization_1 = + _registerName1("pathForResource:ofType:inDirectory:forLocalization:"); + ffi.Pointer _objc_msgSend_655( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, + ffi.Pointer name, + ffi.Pointer ext, + ffi.Pointer subpath, + ffi.Pointer localizationName, ) { return __objc_msgSend_655( obj, sel, - value, + name, + ext, + subpath, + localizationName, ); } late final __objc_msgSend_655Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_655 = __objc_msgSend_655Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_fileTotalCount1 = _registerName1("fileTotalCount"); - late final _sel_setFileTotalCount_1 = _registerName1("setFileTotalCount:"); - late final _sel_fileCompletedCount1 = _registerName1("fileCompletedCount"); - late final _sel_setFileCompletedCount_1 = - _registerName1("setFileCompletedCount:"); - late final _sel_publish1 = _registerName1("publish"); - late final _sel_unpublish1 = _registerName1("unpublish"); - late final _sel_addSubscriberForFileURL_withPublishingHandler_1 = - _registerName1("addSubscriberForFileURL:withPublishingHandler:"); + late final _sel_pathsForResourcesOfType_inDirectory_forLocalization_1 = + _registerName1("pathsForResourcesOfType:inDirectory:forLocalization:"); + late final _sel_localizedStringForKey_value_table_1 = + _registerName1("localizedStringForKey:value:table:"); + late final _class_NSAttributedString1 = _getClass1("NSAttributedString"); + late final _sel_attributesAtIndex_effectiveRange_1 = + _registerName1("attributesAtIndex:effectiveRange:"); ffi.Pointer _objc_msgSend_656( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer<_ObjCBlock> publishingHandler, + int location, + ffi.Pointer<_NSRange> range, ) { return __objc_msgSend_656( obj, sel, - url, - publishingHandler, + location, + range, ); } @@ -18282,911 +18448,859 @@ class SentryCocoa { ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.UnsignedLong, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); late final __objc_msgSend_656 = __objc_msgSend_656Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_NSRange>)>(); - late final _sel_removeSubscriber_1 = _registerName1("removeSubscriber:"); - late final _sel_isOld1 = _registerName1("isOld"); - late final _sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1 = - _registerName1( - "registerDataRepresentationForTypeIdentifier:visibility:loadHandler:"); - void _objc_msgSend_657( + late final _sel_attribute_atIndex_effectiveRange_1 = + _registerName1("attribute:atIndex:effectiveRange:"); + ffi.Pointer _objc_msgSend_657( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer typeIdentifier, - int visibility, - ffi.Pointer<_ObjCBlock> loadHandler, + ffi.Pointer attrName, + int location, + ffi.Pointer<_NSRange> range, ) { return __objc_msgSend_657( obj, sel, - typeIdentifier, - visibility, - loadHandler, + attrName, + location, + range, ); } late final __objc_msgSend_657Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.UnsignedLong, + ffi.Pointer<_NSRange>)>>('objc_msgSend'); late final __objc_msgSend_657 = __objc_msgSend_657Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_NSRange>)>(); - late final _sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1 = - _registerName1( - "registerFileRepresentationForTypeIdentifier:fileOptions:visibility:loadHandler:"); - void _objc_msgSend_658( + late final _sel_attributedSubstringFromRange_1 = + _registerName1("attributedSubstringFromRange:"); + ffi.Pointer _objc_msgSend_658( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer typeIdentifier, - int fileOptions, - int visibility, - ffi.Pointer<_ObjCBlock> loadHandler, + _NSRange range, ) { return __objc_msgSend_658( obj, sel, - typeIdentifier, - fileOptions, - visibility, - loadHandler, + range, ); } late final __objc_msgSend_658Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); late final __objc_msgSend_658 = __objc_msgSend_658Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, int, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, _NSRange)>(); - late final _sel_registeredTypeIdentifiers1 = - _registerName1("registeredTypeIdentifiers"); - late final _sel_registeredTypeIdentifiersWithFileOptions_1 = - _registerName1("registeredTypeIdentifiersWithFileOptions:"); + late final _sel_attributesAtIndex_longestEffectiveRange_inRange_1 = + _registerName1("attributesAtIndex:longestEffectiveRange:inRange:"); ffi.Pointer _objc_msgSend_659( ffi.Pointer obj, ffi.Pointer sel, - int fileOptions, + int location, + ffi.Pointer<_NSRange> range, + _NSRange rangeLimit, ) { return __objc_msgSend_659( obj, sel, - fileOptions, + location, + range, + rangeLimit, ); } late final __objc_msgSend_659Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer<_NSRange>, + _NSRange)>>('objc_msgSend'); late final __objc_msgSend_659 = __objc_msgSend_659Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer<_NSRange>, _NSRange)>(); - late final _sel_hasItemConformingToTypeIdentifier_1 = - _registerName1("hasItemConformingToTypeIdentifier:"); - late final _sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1 = - _registerName1( - "hasRepresentationConformingToTypeIdentifier:fileOptions:"); - bool _objc_msgSend_660( + late final _sel_attribute_atIndex_longestEffectiveRange_inRange_1 = + _registerName1("attribute:atIndex:longestEffectiveRange:inRange:"); + ffi.Pointer _objc_msgSend_660( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer typeIdentifier, - int fileOptions, + ffi.Pointer attrName, + int location, + ffi.Pointer<_NSRange> range, + _NSRange rangeLimit, ) { return __objc_msgSend_660( obj, sel, - typeIdentifier, - fileOptions, + attrName, + location, + range, + rangeLimit, ); } late final __objc_msgSend_660Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer<_NSRange>, + _NSRange)>>('objc_msgSend'); late final __objc_msgSend_660 = __objc_msgSend_660Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_NSRange>, + _NSRange)>(); - late final _sel_loadDataRepresentationForTypeIdentifier_completionHandler_1 = - _registerName1( - "loadDataRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_661( + late final _sel_isEqualToAttributedString_1 = + _registerName1("isEqualToAttributedString:"); + bool _objc_msgSend_661( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer typeIdentifier, - ffi.Pointer<_ObjCBlock> completionHandler, + ffi.Pointer other, ) { return __objc_msgSend_661( obj, sel, - typeIdentifier, - completionHandler, + other, ); } late final __objc_msgSend_661Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_661 = __objc_msgSend_661Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_loadFileRepresentationForTypeIdentifier_completionHandler_1 = - _registerName1( - "loadFileRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_662( + late final _sel_initWithString_attributes_1 = + _registerName1("initWithString:attributes:"); + late final _sel_initWithAttributedString_1 = + _registerName1("initWithAttributedString:"); + instancetype _objc_msgSend_662( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer typeIdentifier, - ffi.Pointer<_ObjCBlock> completionHandler, + ffi.Pointer attrStr, ) { return __objc_msgSend_662( obj, sel, - typeIdentifier, - completionHandler, + attrStr, ); } late final __objc_msgSend_662Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_662 = __objc_msgSend_662Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_1 = - _registerName1( - "loadInPlaceFileRepresentationForTypeIdentifier:completionHandler:"); - ffi.Pointer _objc_msgSend_663( + late final _sel_enumerateAttributesInRange_options_usingBlock_1 = + _registerName1("enumerateAttributesInRange:options:usingBlock:"); + void _objc_msgSend_663( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer typeIdentifier, - ffi.Pointer<_ObjCBlock> completionHandler, + _NSRange enumerationRange, + int opts, + ffi.Pointer<_ObjCBlock> block, ) { return __objc_msgSend_663( obj, sel, - typeIdentifier, - completionHandler, + enumerationRange, + opts, + block, ); } late final __objc_msgSend_663Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_663 = __objc_msgSend_663Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + void Function(ffi.Pointer, ffi.Pointer, _NSRange, + int, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_suggestedName1 = _registerName1("suggestedName"); - late final _sel_setSuggestedName_1 = _registerName1("setSuggestedName:"); - late final _sel_registerObject_visibility_1 = - _registerName1("registerObject:visibility:"); + late final _sel_enumerateAttribute_inRange_options_usingBlock_1 = + _registerName1("enumerateAttribute:inRange:options:usingBlock:"); void _objc_msgSend_664( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer object, - int visibility, + ffi.Pointer attrName, + _NSRange enumerationRange, + int opts, + ffi.Pointer<_ObjCBlock> block, ) { return __objc_msgSend_664( obj, sel, - object, - visibility, + attrName, + enumerationRange, + opts, + block, ); } late final __objc_msgSend_664Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_664 = __objc_msgSend_664Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_registerObjectOfClass_visibility_loadHandler_1 = - _registerName1("registerObjectOfClass:visibility:loadHandler:"); - void _objc_msgSend_665( + late final _class_NSAttributedStringMarkdownParsingOptions1 = + _getClass1("NSAttributedStringMarkdownParsingOptions"); + late final _sel_allowsExtendedAttributes1 = + _registerName1("allowsExtendedAttributes"); + late final _sel_setAllowsExtendedAttributes_1 = + _registerName1("setAllowsExtendedAttributes:"); + late final _sel_interpretedSyntax1 = _registerName1("interpretedSyntax"); + int _objc_msgSend_665( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer aClass, - int visibility, - ffi.Pointer<_ObjCBlock> loadHandler, ) { return __objc_msgSend_665( obj, sel, - aClass, - visibility, - loadHandler, ); } late final __objc_msgSend_665Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_665 = __objc_msgSend_665Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_ObjCBlock>)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_canLoadObjectOfClass_1 = - _registerName1("canLoadObjectOfClass:"); - late final _sel_loadObjectOfClass_completionHandler_1 = - _registerName1("loadObjectOfClass:completionHandler:"); - ffi.Pointer _objc_msgSend_666( + late final _sel_setInterpretedSyntax_1 = + _registerName1("setInterpretedSyntax:"); + void _objc_msgSend_666( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer aClass, - ffi.Pointer<_ObjCBlock> completionHandler, + int value, ) { return __objc_msgSend_666( obj, sel, - aClass, - completionHandler, + value, ); } late final __objc_msgSend_666Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_666 = __objc_msgSend_666Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_initWithItem_typeIdentifier_1 = - _registerName1("initWithItem:typeIdentifier:"); - late final _sel_registerItemForTypeIdentifier_loadHandler_1 = - _registerName1("registerItemForTypeIdentifier:loadHandler:"); - void _objc_msgSend_667( + late final _sel_failurePolicy1 = _registerName1("failurePolicy"); + int _objc_msgSend_667( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer typeIdentifier, - ffi.Pointer<_ObjCBlock> loadHandler, ) { return __objc_msgSend_667( obj, sel, - typeIdentifier, - loadHandler, ); } late final __objc_msgSend_667Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_667 = __objc_msgSend_667Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_loadItemForTypeIdentifier_options_completionHandler_1 = - _registerName1("loadItemForTypeIdentifier:options:completionHandler:"); + late final _sel_setFailurePolicy_1 = _registerName1("setFailurePolicy:"); void _objc_msgSend_668( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer typeIdentifier, - ffi.Pointer options, - ffi.Pointer<_ObjCBlock> completionHandler, + int value, ) { return __objc_msgSend_668( obj, sel, - typeIdentifier, - options, - completionHandler, + value, ); } late final __objc_msgSend_668Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_668 = __objc_msgSend_668Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_previewImageHandler1 = _registerName1("previewImageHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_669( + late final _sel_setLanguageCode_1 = _registerName1("setLanguageCode:"); + late final _sel_appliesSourcePositionAttributes1 = + _registerName1("appliesSourcePositionAttributes"); + late final _sel_setAppliesSourcePositionAttributes_1 = + _registerName1("setAppliesSourcePositionAttributes:"); + late final _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1 = + _registerName1( + "initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"); + instancetype _objc_msgSend_669( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer markdownFile, + ffi.Pointer options, + ffi.Pointer baseURL, + ffi.Pointer> error, ) { return __objc_msgSend_669( obj, sel, + markdownFile, + options, + baseURL, + error, ); } late final __objc_msgSend_669Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_669 = __objc_msgSend_669Ptr.asFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_setPreviewImageHandler_1 = - _registerName1("setPreviewImageHandler:"); - void _objc_msgSend_670( + late final _sel_initWithMarkdown_options_baseURL_error_1 = + _registerName1("initWithMarkdown:options:baseURL:error:"); + instancetype _objc_msgSend_670( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> value, + ffi.Pointer markdown, + ffi.Pointer options, + ffi.Pointer baseURL, + ffi.Pointer> error, ) { return __objc_msgSend_670( obj, sel, - value, + markdown, + options, + baseURL, + error, ); } late final __objc_msgSend_670Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_670 = __objc_msgSend_670Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_loadPreviewImageWithOptions_completionHandler_1 = - _registerName1("loadPreviewImageWithOptions:completionHandler:"); - void _objc_msgSend_671( + late final _sel_initWithMarkdownString_options_baseURL_error_1 = + _registerName1("initWithMarkdownString:options:baseURL:error:"); + instancetype _objc_msgSend_671( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer markdownString, ffi.Pointer options, - ffi.Pointer<_ObjCBlock> completionHandler, + ffi.Pointer baseURL, + ffi.Pointer> error, ) { return __objc_msgSend_671( obj, sel, + markdownString, options, - completionHandler, + baseURL, + error, ); } late final __objc_msgSend_671Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_671 = __objc_msgSend_671Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _class_NSMutableString1 = _getClass1("NSMutableString"); - late final _sel_replaceCharactersInRange_withString_1 = - _registerName1("replaceCharactersInRange:withString:"); - void _objc_msgSend_672( + late final _sel_initWithFormat_options_locale_1 = + _registerName1("initWithFormat:options:locale:"); + instancetype _objc_msgSend_672( ffi.Pointer obj, ffi.Pointer sel, - _NSRange range, - ffi.Pointer aString, + ffi.Pointer format, + int options, + ffi.Pointer locale, ) { return __objc_msgSend_672( obj, sel, - range, - aString, + format, + options, + locale, ); } late final __objc_msgSend_672Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Pointer)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_672 = __objc_msgSend_672Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); - late final _sel_insertString_atIndex_1 = - _registerName1("insertString:atIndex:"); - void _objc_msgSend_673( + late final _sel_initWithFormat_options_locale_arguments_1 = + _registerName1("initWithFormat:options:locale:arguments:"); + instancetype _objc_msgSend_673( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer aString, - int loc, + ffi.Pointer format, + int options, + ffi.Pointer locale, + ffi.Pointer arguments, ) { return __objc_msgSend_673( obj, sel, - aString, - loc, + format, + options, + locale, + arguments, ); } late final __objc_msgSend_673Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_673 = __objc_msgSend_673Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_deleteCharactersInRange_1 = - _registerName1("deleteCharactersInRange:"); - late final _sel_appendString_1 = _registerName1("appendString:"); - late final _sel_appendFormat_1 = _registerName1("appendFormat:"); - late final _sel_setString_1 = _registerName1("setString:"); - late final _sel_replaceOccurrencesOfString_withString_options_range_1 = - _registerName1("replaceOccurrencesOfString:withString:options:range:"); - int _objc_msgSend_674( + late final _sel_localizedAttributedStringWithFormat_1 = + _registerName1("localizedAttributedStringWithFormat:"); + late final _sel_localizedAttributedStringWithFormat_options_1 = + _registerName1("localizedAttributedStringWithFormat:options:"); + instancetype _objc_msgSend_674( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer target, - ffi.Pointer replacement, + ffi.Pointer format, int options, - _NSRange searchRange, ) { return __objc_msgSend_674( obj, sel, - target, - replacement, + format, options, - searchRange, ); } late final __objc_msgSend_674Ptr = _lookup< ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - _NSRange)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_674 = __objc_msgSend_674Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, _NSRange)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _sel_applyTransform_reverse_range_updatedRange_1 = - _registerName1("applyTransform:reverse:range:updatedRange:"); - bool _objc_msgSend_675( + late final _sel_attributedStringByInflectingString1 = + _registerName1("attributedStringByInflectingString"); + ffi.Pointer _objc_msgSend_675( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer transform, - bool reverse, - _NSRange range, - ffi.Pointer<_NSRange> resultingRange, ) { return __objc_msgSend_675( obj, sel, - transform, - reverse, - range, - resultingRange, ); } late final __objc_msgSend_675Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool, - _NSRange, - ffi.Pointer<_NSRange>)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_675 = __objc_msgSend_675Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool, _NSRange, ffi.Pointer<_NSRange>)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_localizedAttributedStringForKey_value_table_1 = + _registerName1("localizedAttributedStringForKey:value:table:"); ffi.Pointer _objc_msgSend_676( ffi.Pointer obj, ffi.Pointer sel, - int capacity, + ffi.Pointer key, + ffi.Pointer value, + ffi.Pointer tableName, ) { return __objc_msgSend_676( obj, sel, - capacity, + key, + value, + tableName, ); } late final __objc_msgSend_676Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_676 = __objc_msgSend_676Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_stringWithCapacity_1 = _registerName1("stringWithCapacity:"); - late final _class_NSNotification1 = _getClass1("NSNotification"); - late final _sel_object1 = _registerName1("object"); - late final _sel_initWithName_object_userInfo_1 = - _registerName1("initWithName:object:userInfo:"); - instancetype _objc_msgSend_677( + late final _sel_bundleIdentifier1 = _registerName1("bundleIdentifier"); + late final _sel_infoDictionary1 = _registerName1("infoDictionary"); + late final _sel_localizedInfoDictionary1 = + _registerName1("localizedInfoDictionary"); + late final _sel_objectForInfoDictionaryKey_1 = + _registerName1("objectForInfoDictionaryKey:"); + late final _sel_classNamed_1 = _registerName1("classNamed:"); + late final _sel_principalClass1 = _registerName1("principalClass"); + late final _sel_preferredLocalizations1 = + _registerName1("preferredLocalizations"); + late final _sel_localizations1 = _registerName1("localizations"); + late final _sel_developmentLocalization1 = + _registerName1("developmentLocalization"); + late final _sel_preferredLocalizationsFromArray_1 = + _registerName1("preferredLocalizationsFromArray:"); + late final _sel_preferredLocalizationsFromArray_forPreferences_1 = + _registerName1("preferredLocalizationsFromArray:forPreferences:"); + ffi.Pointer _objc_msgSend_677( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer object, - ffi.Pointer userInfo, + ffi.Pointer localizationsArray, + ffi.Pointer preferencesArray, ) { return __objc_msgSend_677( obj, sel, - name, - object, - userInfo, + localizationsArray, + preferencesArray, ); } late final __objc_msgSend_677Ptr = _lookup< ffi.NativeFunction< - instancetype Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_677 = __objc_msgSend_677Ptr.asFunction< - instancetype Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - late final _sel_notificationWithName_object_1 = - _registerName1("notificationWithName:object:"); - late final _sel_notificationWithName_object_userInfo_1 = - _registerName1("notificationWithName:object:userInfo:"); - late final _class_NSBundle1 = _getClass1("NSBundle"); - late final _sel_mainBundle1 = _registerName1("mainBundle"); - ffi.Pointer _objc_msgSend_678( + late final _sel_executableArchitectures1 = + _registerName1("executableArchitectures"); + late final _sel_setPreservationPriority_forTags_1 = + _registerName1("setPreservationPriority:forTags:"); + void _objc_msgSend_678( ffi.Pointer obj, ffi.Pointer sel, + double priority, + ffi.Pointer tags, ) { return __objc_msgSend_678( obj, sel, + priority, + tags, ); } late final __objc_msgSend_678Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Double, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_678 = __objc_msgSend_678Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, double, + ffi.Pointer)>(); - late final _sel_bundleWithPath_1 = _registerName1("bundleWithPath:"); - late final _sel_initWithPath_1 = _registerName1("initWithPath:"); - 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_679( + late final _sel_preservationPriorityForTag_1 = + _registerName1("preservationPriorityForTag:"); + late final _class_NSMutableAttributedString1 = + _getClass1("NSMutableAttributedString"); + late final _sel_setAttributes_range_1 = + _registerName1("setAttributes:range:"); + void _objc_msgSend_679( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer aClass, + ffi.Pointer attrs, + _NSRange range, ) { return __objc_msgSend_679( obj, sel, - aClass, + attrs, + range, ); } late final __objc_msgSend_679Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); late final __objc_msgSend_679 = __objc_msgSend_679Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>(); - late final _sel_bundleWithIdentifier_1 = - _registerName1("bundleWithIdentifier:"); + late final _sel_mutableString1 = _registerName1("mutableString"); ffi.Pointer _objc_msgSend_680( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer identifier, ) { return __objc_msgSend_680( obj, sel, - identifier, ); } late final __objc_msgSend_680Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_680 = __objc_msgSend_680Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_allBundles1 = _registerName1("allBundles"); - late final _sel_allFrameworks1 = _registerName1("allFrameworks"); - late final _sel_isLoaded1 = _registerName1("isLoaded"); - late final _sel_unload1 = _registerName1("unload"); - late final _sel_preflightAndReturnError_1 = - _registerName1("preflightAndReturnError:"); - late final _sel_loadAndReturnError_1 = _registerName1("loadAndReturnError:"); - late final _sel_bundleURL1 = _registerName1("bundleURL"); - late final _sel_resourceURL1 = _registerName1("resourceURL"); - late final _sel_executableURL1 = _registerName1("executableURL"); - late final _sel_URLForAuxiliaryExecutable_1 = - _registerName1("URLForAuxiliaryExecutable:"); - late final _sel_privateFrameworksURL1 = - _registerName1("privateFrameworksURL"); - late final _sel_sharedFrameworksURL1 = _registerName1("sharedFrameworksURL"); - late final _sel_sharedSupportURL1 = _registerName1("sharedSupportURL"); - late final _sel_builtInPlugInsURL1 = _registerName1("builtInPlugInsURL"); - late final _sel_appStoreReceiptURL1 = _registerName1("appStoreReceiptURL"); - late final _sel_bundlePath1 = _registerName1("bundlePath"); - late final _sel_resourcePath1 = _registerName1("resourcePath"); - late final _sel_executablePath1 = _registerName1("executablePath"); - late final _sel_pathForAuxiliaryExecutable_1 = - _registerName1("pathForAuxiliaryExecutable:"); - late final _sel_privateFrameworksPath1 = - _registerName1("privateFrameworksPath"); - late final _sel_sharedFrameworksPath1 = - _registerName1("sharedFrameworksPath"); - late final _sel_sharedSupportPath1 = _registerName1("sharedSupportPath"); - late final _sel_builtInPlugInsPath1 = _registerName1("builtInPlugInsPath"); - late final _sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1 = - _registerName1( - "URLForResource:withExtension:subdirectory:inBundleWithURL:"); - ffi.Pointer _objc_msgSend_681( + late final _sel_addAttribute_value_range_1 = + _registerName1("addAttribute:value:range:"); + void _objc_msgSend_681( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer name, - ffi.Pointer ext, - ffi.Pointer subpath, - ffi.Pointer bundleURL, + ffi.Pointer value, + _NSRange range, ) { return __objc_msgSend_681( obj, sel, name, - ext, - subpath, - bundleURL, + value, + range, ); } late final __objc_msgSend_681Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + _NSRange)>>('objc_msgSend'); late final __objc_msgSend_681 = __objc_msgSend_681Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, _NSRange)>(); - late final _sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1 = - _registerName1( - "URLsForResourcesWithExtension:subdirectory:inBundleWithURL:"); - ffi.Pointer _objc_msgSend_682( + late final _sel_addAttributes_range_1 = + _registerName1("addAttributes:range:"); + late final _sel_removeAttribute_range_1 = + _registerName1("removeAttribute:range:"); + void _objc_msgSend_682( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer ext, - ffi.Pointer subpath, - ffi.Pointer bundleURL, + ffi.Pointer name, + _NSRange range, ) { return __objc_msgSend_682( obj, sel, - ext, - subpath, - bundleURL, + name, + range, ); } late final __objc_msgSend_682Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); late final __objc_msgSend_682 = __objc_msgSend_682Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>(); - late final _sel_URLForResource_withExtension_1 = - _registerName1("URLForResource:withExtension:"); - ffi.Pointer _objc_msgSend_683( + late final _sel_replaceCharactersInRange_withAttributedString_1 = + _registerName1("replaceCharactersInRange:withAttributedString:"); + void _objc_msgSend_683( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer ext, + _NSRange range, + ffi.Pointer attrString, ) { return __objc_msgSend_683( obj, sel, - name, - ext, + range, + attrString, ); } late final __objc_msgSend_683Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + _NSRange, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_683 = __objc_msgSend_683Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + void Function(ffi.Pointer, ffi.Pointer, _NSRange, ffi.Pointer)>(); - late final _sel_URLForResource_withExtension_subdirectory_1 = - _registerName1("URLForResource:withExtension:subdirectory:"); - ffi.Pointer _objc_msgSend_684( + late final _sel_insertAttributedString_atIndex_1 = + _registerName1("insertAttributedString:atIndex:"); + void _objc_msgSend_684( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer ext, - ffi.Pointer subpath, + ffi.Pointer attrString, + int loc, ) { return __objc_msgSend_684( obj, sel, - name, - ext, - subpath, + attrString, + loc, ); } late final __objc_msgSend_684Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); late final __objc_msgSend_684 = __objc_msgSend_684Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _sel_URLForResource_withExtension_subdirectory_localization_1 = - _registerName1("URLForResource:withExtension:subdirectory:localization:"); - ffi.Pointer _objc_msgSend_685( + late final _sel_appendAttributedString_1 = + _registerName1("appendAttributedString:"); + void _objc_msgSend_685( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer ext, - ffi.Pointer subpath, - ffi.Pointer localizationName, + ffi.Pointer attrString, ) { return __objc_msgSend_685( obj, sel, - name, - ext, - subpath, - localizationName, + attrString, ); } late final __objc_msgSend_685Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_685 = __objc_msgSend_685Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_URLsForResourcesWithExtension_subdirectory_1 = - _registerName1("URLsForResourcesWithExtension:subdirectory:"); + late final _sel_setAttributedString_1 = + _registerName1("setAttributedString:"); + late final _sel_beginEditing1 = _registerName1("beginEditing"); + late final _sel_endEditing1 = _registerName1("endEditing"); + late final _sel_appendLocalizedFormat_1 = + _registerName1("appendLocalizedFormat:"); + late final _class_NSDateFormatter1 = _getClass1("NSDateFormatter"); + late final _class_NSFormatter1 = _getClass1("NSFormatter"); + late final _sel_stringForObjectValue_1 = + _registerName1("stringForObjectValue:"); + late final _sel_attributedStringForObjectValue_withDefaultAttributes_1 = + _registerName1("attributedStringForObjectValue:withDefaultAttributes:"); ffi.Pointer _objc_msgSend_686( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer ext, - ffi.Pointer subpath, + ffi.Pointer obj1, + ffi.Pointer attrs, ) { return __objc_msgSend_686( obj, sel, - ext, - subpath, + obj1, + attrs, ); } @@ -19204,220 +19318,213 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer)>(); - late final _sel_URLsForResourcesWithExtension_subdirectory_localization_1 = - _registerName1( - "URLsForResourcesWithExtension:subdirectory:localization:"); - ffi.Pointer _objc_msgSend_687( + late final _sel_editingStringForObjectValue_1 = + _registerName1("editingStringForObjectValue:"); + late final _sel_getObjectValue_forString_errorDescription_1 = + _registerName1("getObjectValue:forString:errorDescription:"); + bool _objc_msgSend_687( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer ext, - ffi.Pointer subpath, - ffi.Pointer localizationName, + ffi.Pointer> obj1, + ffi.Pointer string, + ffi.Pointer> error, ) { return __objc_msgSend_687( obj, sel, - ext, - subpath, - localizationName, + obj1, + string, + error, ); } late final __objc_msgSend_687Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer>, ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_687 = __objc_msgSend_687Ptr.asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer>, ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer>)>(); - late final _sel_pathForResource_ofType_inDirectory_1 = - _registerName1("pathForResource:ofType:inDirectory:"); - ffi.Pointer _objc_msgSend_688( + late final _sel_isPartialStringValid_newEditingString_errorDescription_1 = + _registerName1("isPartialStringValid:newEditingString:errorDescription:"); + bool _objc_msgSend_688( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer ext, - ffi.Pointer bundlePath, + ffi.Pointer partialString, + ffi.Pointer> newString, + ffi.Pointer> error, ) { return __objc_msgSend_688( obj, sel, - name, - ext, - bundlePath, + partialString, + newString, + error, ); } late final __objc_msgSend_688Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_688 = __objc_msgSend_688Ptr.asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer>, + ffi.Pointer>)>(); - late final _sel_pathsForResourcesOfType_inDirectory_1 = - _registerName1("pathsForResourcesOfType:inDirectory:"); - late final _sel_pathForResource_ofType_1 = - _registerName1("pathForResource:ofType:"); - late final _sel_pathForResource_ofType_inDirectory_forLocalization_1 = - _registerName1("pathForResource:ofType:inDirectory:forLocalization:"); - ffi.Pointer _objc_msgSend_689( + late final _sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1 = + _registerName1( + "isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription:"); + bool _objc_msgSend_689( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer ext, - ffi.Pointer subpath, - ffi.Pointer localizationName, + ffi.Pointer> partialStringPtr, + ffi.Pointer<_NSRange> proposedSelRangePtr, + ffi.Pointer origString, + _NSRange origSelRange, + ffi.Pointer> error, ) { return __objc_msgSend_689( obj, sel, - name, - ext, - subpath, - localizationName, + partialStringPtr, + proposedSelRangePtr, + origString, + origSelRange, + error, ); } late final __objc_msgSend_689Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer>, + ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + _NSRange, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_689 = __objc_msgSend_689Ptr.asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, + ffi.Pointer>, + ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + _NSRange, + ffi.Pointer>)>(); - late final _sel_pathsForResourcesOfType_inDirectory_forLocalization_1 = - _registerName1("pathsForResourcesOfType:inDirectory:forLocalization:"); - late final _sel_localizedStringForKey_value_table_1 = - _registerName1("localizedStringForKey:value:table:"); - late final _class_NSAttributedString1 = _getClass1("NSAttributedString"); - late final _sel_attributesAtIndex_effectiveRange_1 = - _registerName1("attributesAtIndex:effectiveRange:"); - ffi.Pointer _objc_msgSend_690( + late final _sel_formattingContext1 = _registerName1("formattingContext"); + int _objc_msgSend_690( ffi.Pointer obj, ffi.Pointer sel, - int location, - ffi.Pointer<_NSRange> range, ) { return __objc_msgSend_690( obj, sel, - location, - range, ); } late final __objc_msgSend_690Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer<_NSRange>)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_690 = __objc_msgSend_690Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_NSRange>)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_attribute_atIndex_effectiveRange_1 = - _registerName1("attribute:atIndex:effectiveRange:"); - ffi.Pointer _objc_msgSend_691( + late final _sel_setFormattingContext_1 = + _registerName1("setFormattingContext:"); + void _objc_msgSend_691( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer attrName, - int location, - ffi.Pointer<_NSRange> range, + int value, ) { return __objc_msgSend_691( obj, sel, - attrName, - location, - range, + value, ); } late final __objc_msgSend_691Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer<_NSRange>)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_691 = __objc_msgSend_691Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer<_NSRange>)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_attributedSubstringFromRange_1 = - _registerName1("attributedSubstringFromRange:"); - ffi.Pointer _objc_msgSend_692( + late final _sel_getObjectValue_forString_range_error_1 = + _registerName1("getObjectValue:forString:range:error:"); + bool _objc_msgSend_692( ffi.Pointer obj, ffi.Pointer sel, - _NSRange range, + ffi.Pointer> obj1, + ffi.Pointer string, + ffi.Pointer<_NSRange> rangep, + ffi.Pointer> error, ) { return __objc_msgSend_692( obj, sel, - range, + obj1, + string, + rangep, + error, ); } late final __objc_msgSend_692Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer<_NSRange>, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_692 = __objc_msgSend_692Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, _NSRange)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer<_NSRange>, + ffi.Pointer>)>(); - late final _sel_attributesAtIndex_longestEffectiveRange_inRange_1 = - _registerName1("attributesAtIndex:longestEffectiveRange:inRange:"); + late final _sel_stringFromDate_1 = _registerName1("stringFromDate:"); + late final _sel_dateFromString_1 = _registerName1("dateFromString:"); + late final _sel_localizedStringFromDate_dateStyle_timeStyle_1 = + _registerName1("localizedStringFromDate:dateStyle:timeStyle:"); ffi.Pointer _objc_msgSend_693( ffi.Pointer obj, ffi.Pointer sel, - int location, - ffi.Pointer<_NSRange> range, - _NSRange rangeLimit, + ffi.Pointer date, + int dstyle, + int tstyle, ) { return __objc_msgSend_693( obj, sel, - location, - range, - rangeLimit, + date, + dstyle, + tstyle, ); } @@ -19426,30 +19533,28 @@ class SentryCocoa { ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer<_NSRange>, - _NSRange)>>('objc_msgSend'); + ffi.Pointer, + ffi.Int32, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_693 = __objc_msgSend_693Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer<_NSRange>, _NSRange)>(); + ffi.Pointer, ffi.Pointer, int, int)>(); - late final _sel_attribute_atIndex_longestEffectiveRange_inRange_1 = - _registerName1("attribute:atIndex:longestEffectiveRange:inRange:"); + late final _sel_dateFormatFromTemplate_options_locale_1 = + _registerName1("dateFormatFromTemplate:options:locale:"); ffi.Pointer _objc_msgSend_694( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer attrName, - int location, - ffi.Pointer<_NSRange> range, - _NSRange rangeLimit, + ffi.Pointer tmplate, + int opts, + ffi.Pointer locale, ) { return __objc_msgSend_694( obj, sel, - attrName, - location, - range, - rangeLimit, + tmplate, + opts, + locale, ); } @@ -19460,501 +19565,481 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.UnsignedLong, - ffi.Pointer<_NSRange>, - _NSRange)>>('objc_msgSend'); + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_694 = __objc_msgSend_694Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, int, - ffi.Pointer<_NSRange>, - _NSRange)>(); + ffi.Pointer)>(); - late final _sel_isEqualToAttributedString_1 = - _registerName1("isEqualToAttributedString:"); - bool _objc_msgSend_695( + late final _sel_defaultFormatterBehavior1 = + _registerName1("defaultFormatterBehavior"); + int _objc_msgSend_695( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer other, ) { return __objc_msgSend_695( obj, sel, - other, ); } late final __objc_msgSend_695Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_695 = __objc_msgSend_695Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_initWithString_attributes_1 = - _registerName1("initWithString:attributes:"); - late final _sel_initWithAttributedString_1 = - _registerName1("initWithAttributedString:"); - instancetype _objc_msgSend_696( + late final _sel_setDefaultFormatterBehavior_1 = + _registerName1("setDefaultFormatterBehavior:"); + void _objc_msgSend_696( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer attrStr, + int value, ) { return __objc_msgSend_696( obj, sel, - attrStr, + value, ); } late final __objc_msgSend_696Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_696 = __objc_msgSend_696Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_enumerateAttributesInRange_options_usingBlock_1 = - _registerName1("enumerateAttributesInRange:options:usingBlock:"); - void _objc_msgSend_697( + late final _sel_setLocalizedDateFormatFromTemplate_1 = + _registerName1("setLocalizedDateFormatFromTemplate:"); + late final _sel_dateFormat1 = _registerName1("dateFormat"); + late final _sel_setDateFormat_1 = _registerName1("setDateFormat:"); + late final _sel_dateStyle1 = _registerName1("dateStyle"); + int _objc_msgSend_697( ffi.Pointer obj, ffi.Pointer sel, - _NSRange enumerationRange, - int opts, - ffi.Pointer<_ObjCBlock> block, ) { return __objc_msgSend_697( obj, sel, - enumerationRange, - opts, - block, ); } late final __objc_msgSend_697Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Int32, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_697 = __objc_msgSend_697Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, - int, ffi.Pointer<_ObjCBlock>)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_enumerateAttribute_inRange_options_usingBlock_1 = - _registerName1("enumerateAttribute:inRange:options:usingBlock:"); + late final _sel_setDateStyle_1 = _registerName1("setDateStyle:"); void _objc_msgSend_698( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer attrName, - _NSRange enumerationRange, - int opts, - ffi.Pointer<_ObjCBlock> block, + int value, ) { return __objc_msgSend_698( obj, sel, - attrName, - enumerationRange, - opts, - block, + value, ); } late final __objc_msgSend_698Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_698 = __objc_msgSend_698Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange, int, ffi.Pointer<_ObjCBlock>)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _class_NSAttributedStringMarkdownParsingOptions1 = - _getClass1("NSAttributedStringMarkdownParsingOptions"); - late final _sel_allowsExtendedAttributes1 = - _registerName1("allowsExtendedAttributes"); - late final _sel_setAllowsExtendedAttributes_1 = - _registerName1("setAllowsExtendedAttributes:"); - late final _sel_interpretedSyntax1 = _registerName1("interpretedSyntax"); - int _objc_msgSend_699( + 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_699( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer value, ) { return __objc_msgSend_699( obj, sel, + value, ); } late final __objc_msgSend_699Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_699 = __objc_msgSend_699Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_setInterpretedSyntax_1 = - _registerName1("setInterpretedSyntax:"); - void _objc_msgSend_700( + late final _sel_generatesCalendarDates1 = + _registerName1("generatesCalendarDates"); + late final _sel_setGeneratesCalendarDates_1 = + _registerName1("setGeneratesCalendarDates:"); + late final _sel_formatterBehavior1 = _registerName1("formatterBehavior"); + late final _sel_setFormatterBehavior_1 = + _registerName1("setFormatterBehavior:"); + late final _class_NSCalendar1 = _getClass1("NSCalendar"); + late final _sel_currentCalendar1 = _registerName1("currentCalendar"); + ffi.Pointer _objc_msgSend_700( ffi.Pointer obj, ffi.Pointer sel, - int value, ) { return __objc_msgSend_700( obj, sel, - value, ); } late final __objc_msgSend_700Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_700 = __objc_msgSend_700Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_failurePolicy1 = _registerName1("failurePolicy"); - int _objc_msgSend_701( + late final _sel_autoupdatingCurrentCalendar1 = + _registerName1("autoupdatingCurrentCalendar"); + late final _sel_calendarWithIdentifier_1 = + _registerName1("calendarWithIdentifier:"); + ffi.Pointer _objc_msgSend_701( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer calendarIdentifierConstant, ) { return __objc_msgSend_701( obj, sel, + calendarIdentifierConstant, ); } late final __objc_msgSend_701Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_701 = __objc_msgSend_701Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); - - late final _sel_setFailurePolicy_1 = _registerName1("setFailurePolicy:"); - void _objc_msgSend_702( - ffi.Pointer obj, - ffi.Pointer sel, - int value, - ) { - return __objc_msgSend_702( - obj, - sel, - value, - ); - } + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + late final _sel_initWithCalendarIdentifier_1 = + _registerName1("initWithCalendarIdentifier:"); + late final _sel_firstWeekday1 = _registerName1("firstWeekday"); + late final _sel_setFirstWeekday_1 = _registerName1("setFirstWeekday:"); + late final _sel_minimumDaysInFirstWeek1 = + _registerName1("minimumDaysInFirstWeek"); + late final _sel_setMinimumDaysInFirstWeek_1 = + _registerName1("setMinimumDaysInFirstWeek:"); + late final _sel_eraSymbols1 = _registerName1("eraSymbols"); + late final _sel_longEraSymbols1 = _registerName1("longEraSymbols"); + late final _sel_monthSymbols1 = _registerName1("monthSymbols"); + late final _sel_shortMonthSymbols1 = _registerName1("shortMonthSymbols"); + late final _sel_veryShortMonthSymbols1 = + _registerName1("veryShortMonthSymbols"); + late final _sel_standaloneMonthSymbols1 = + _registerName1("standaloneMonthSymbols"); + late final _sel_shortStandaloneMonthSymbols1 = + _registerName1("shortStandaloneMonthSymbols"); + late final _sel_veryShortStandaloneMonthSymbols1 = + _registerName1("veryShortStandaloneMonthSymbols"); + late final _sel_weekdaySymbols1 = _registerName1("weekdaySymbols"); + late final _sel_shortWeekdaySymbols1 = _registerName1("shortWeekdaySymbols"); + late final _sel_veryShortWeekdaySymbols1 = + _registerName1("veryShortWeekdaySymbols"); + late final _sel_standaloneWeekdaySymbols1 = + _registerName1("standaloneWeekdaySymbols"); + late final _sel_shortStandaloneWeekdaySymbols1 = + _registerName1("shortStandaloneWeekdaySymbols"); + late final _sel_veryShortStandaloneWeekdaySymbols1 = + _registerName1("veryShortStandaloneWeekdaySymbols"); + late final _sel_quarterSymbols1 = _registerName1("quarterSymbols"); + late final _sel_shortQuarterSymbols1 = _registerName1("shortQuarterSymbols"); + late final _sel_standaloneQuarterSymbols1 = + _registerName1("standaloneQuarterSymbols"); + late final _sel_shortStandaloneQuarterSymbols1 = + _registerName1("shortStandaloneQuarterSymbols"); + late final _sel_AMSymbol1 = _registerName1("AMSymbol"); + late final _sel_PMSymbol1 = _registerName1("PMSymbol"); + late final _sel_minimumRangeOfUnit_1 = _registerName1("minimumRangeOfUnit:"); + _NSRange _objc_msgSend_702( + ffi.Pointer obj, + ffi.Pointer sel, + int unit, + ) { + return __objc_msgSend_702( + obj, + sel, + unit, + ); + } late final __objc_msgSend_702Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, + _NSRange Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_702 = __objc_msgSend_702Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + _NSRange Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_setLanguageCode_1 = _registerName1("setLanguageCode:"); - late final _sel_appliesSourcePositionAttributes1 = - _registerName1("appliesSourcePositionAttributes"); - late final _sel_setAppliesSourcePositionAttributes_1 = - _registerName1("setAppliesSourcePositionAttributes:"); - late final _sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1 = - _registerName1( - "initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"); - instancetype _objc_msgSend_703( + late final _sel_maximumRangeOfUnit_1 = _registerName1("maximumRangeOfUnit:"); + late final _sel_rangeOfUnit_inUnit_forDate_1 = + _registerName1("rangeOfUnit:inUnit:forDate:"); + _NSRange _objc_msgSend_703( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer markdownFile, - ffi.Pointer options, - ffi.Pointer baseURL, - ffi.Pointer> error, + int smaller, + int larger, + ffi.Pointer date, ) { return __objc_msgSend_703( obj, sel, - markdownFile, - options, - baseURL, - error, + smaller, + larger, + date, ); } late final __objc_msgSend_703Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Int32, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_703 = __objc_msgSend_703Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + _NSRange Function(ffi.Pointer, ffi.Pointer, int, int, + ffi.Pointer)>(); - late final _sel_initWithMarkdown_options_baseURL_error_1 = - _registerName1("initWithMarkdown:options:baseURL:error:"); - instancetype _objc_msgSend_704( + late final _sel_ordinalityOfUnit_inUnit_forDate_1 = + _registerName1("ordinalityOfUnit:inUnit:forDate:"); + int _objc_msgSend_704( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer markdown, - ffi.Pointer options, - ffi.Pointer baseURL, - ffi.Pointer> error, + int smaller, + int larger, + ffi.Pointer date, ) { return __objc_msgSend_704( obj, sel, - markdown, - options, - baseURL, - error, + smaller, + larger, + date, ); } late final __objc_msgSend_704Ptr = _lookup< ffi.NativeFunction< - instancetype Function( + ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Int32, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_704 = __objc_msgSend_704Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + int Function(ffi.Pointer, ffi.Pointer, int, int, + ffi.Pointer)>(); - late final _sel_initWithMarkdownString_options_baseURL_error_1 = - _registerName1("initWithMarkdownString:options:baseURL:error:"); - instancetype _objc_msgSend_705( + late final _sel_rangeOfUnit_startDate_interval_forDate_1 = + _registerName1("rangeOfUnit:startDate:interval:forDate:"); + bool _objc_msgSend_705( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer markdownString, - ffi.Pointer options, - ffi.Pointer baseURL, - ffi.Pointer> error, + int unit, + ffi.Pointer> datep, + ffi.Pointer tip, + ffi.Pointer date, ) { return __objc_msgSend_705( obj, sel, - markdownString, - options, - baseURL, - error, + unit, + datep, + tip, + date, ); } late final __objc_msgSend_705Ptr = _lookup< ffi.NativeFunction< - instancetype Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Int32, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_705 = __objc_msgSend_705Ptr.asFunction< - instancetype Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + int, + ffi.Pointer>, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_initWithFormat_options_locale_1 = - _registerName1("initWithFormat:options:locale:"); - instancetype _objc_msgSend_706( + late final _class_NSDateComponents1 = _getClass1("NSDateComponents"); + late final _sel_calendar1 = _registerName1("calendar"); + late final _sel_setCalendar_1 = _registerName1("setCalendar:"); + void _objc_msgSend_706( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer format, - int options, - ffi.Pointer locale, + ffi.Pointer value, ) { return __objc_msgSend_706( obj, sel, - format, - options, - locale, + value, ); } late final __objc_msgSend_706Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_706 = __objc_msgSend_706Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_initWithFormat_options_locale_arguments_1 = - _registerName1("initWithFormat:options:locale:arguments:"); - instancetype _objc_msgSend_707( + late final _sel_era1 = _registerName1("era"); + late final _sel_setEra_1 = _registerName1("setEra:"); + late final _sel_year1 = _registerName1("year"); + late final _sel_setYear_1 = _registerName1("setYear:"); + late final _sel_month1 = _registerName1("month"); + late final _sel_setMonth_1 = _registerName1("setMonth:"); + late final _sel_day1 = _registerName1("day"); + late final _sel_setDay_1 = _registerName1("setDay:"); + late final _sel_hour1 = _registerName1("hour"); + late final _sel_setHour_1 = _registerName1("setHour:"); + late final _sel_minute1 = _registerName1("minute"); + late final _sel_setMinute_1 = _registerName1("setMinute:"); + late final _sel_second1 = _registerName1("second"); + late final _sel_setSecond_1 = _registerName1("setSecond:"); + late final _sel_nanosecond1 = _registerName1("nanosecond"); + late final _sel_setNanosecond_1 = _registerName1("setNanosecond:"); + late final _sel_weekday1 = _registerName1("weekday"); + late final _sel_setWeekday_1 = _registerName1("setWeekday:"); + late final _sel_weekdayOrdinal1 = _registerName1("weekdayOrdinal"); + late final _sel_setWeekdayOrdinal_1 = _registerName1("setWeekdayOrdinal:"); + late final _sel_quarter1 = _registerName1("quarter"); + late final _sel_setQuarter_1 = _registerName1("setQuarter:"); + late final _sel_weekOfMonth1 = _registerName1("weekOfMonth"); + late final _sel_setWeekOfMonth_1 = _registerName1("setWeekOfMonth:"); + late final _sel_weekOfYear1 = _registerName1("weekOfYear"); + late final _sel_setWeekOfYear_1 = _registerName1("setWeekOfYear:"); + late final _sel_yearForWeekOfYear1 = _registerName1("yearForWeekOfYear"); + late final _sel_setYearForWeekOfYear_1 = + _registerName1("setYearForWeekOfYear:"); + late final _sel_isLeapMonth1 = _registerName1("isLeapMonth"); + late final _sel_setLeapMonth_1 = _registerName1("setLeapMonth:"); + 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_707( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer format, - int options, - ffi.Pointer locale, - ffi.Pointer arguments, + int value, + int unit, ) { return __objc_msgSend_707( obj, sel, - format, - options, - locale, - arguments, + value, + unit, ); } late final __objc_msgSend_707Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Long, ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_707 = __objc_msgSend_707Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, int, int)>(); - late final _sel_localizedAttributedStringWithFormat_1 = - _registerName1("localizedAttributedStringWithFormat:"); - late final _sel_localizedAttributedStringWithFormat_options_1 = - _registerName1("localizedAttributedStringWithFormat:options:"); - instancetype _objc_msgSend_708( + late final _sel_valueForComponent_1 = _registerName1("valueForComponent:"); + int _objc_msgSend_708( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer format, - int options, + int unit, ) { return __objc_msgSend_708( obj, sel, - format, - options, + unit, ); } late final __objc_msgSend_708Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + ffi.Long Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_708 = __objc_msgSend_708Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + int Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_attributedStringByInflectingString1 = - _registerName1("attributedStringByInflectingString"); - ffi.Pointer _objc_msgSend_709( + late final _sel_isValidDate1 = _registerName1("isValidDate"); + late final _sel_isValidDateInCalendar_1 = + _registerName1("isValidDateInCalendar:"); + bool _objc_msgSend_709( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer calendar, ) { return __objc_msgSend_709( obj, sel, + calendar, ); } late final __objc_msgSend_709Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_709 = __objc_msgSend_709Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_localizedAttributedStringForKey_value_table_1 = - _registerName1("localizedAttributedStringForKey:value:table:"); + late final _sel_dateFromComponents_1 = _registerName1("dateFromComponents:"); ffi.Pointer _objc_msgSend_710( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer key, - ffi.Pointer value, - ffi.Pointer tableName, + ffi.Pointer comps, ) { return __objc_msgSend_710( obj, sel, - key, - value, - tableName, + comps, ); } late final __objc_msgSend_710Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_710 = __objc_msgSend_710Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_bundleIdentifier1 = _registerName1("bundleIdentifier"); - late final _sel_infoDictionary1 = _registerName1("infoDictionary"); - late final _sel_localizedInfoDictionary1 = - _registerName1("localizedInfoDictionary"); - late final _sel_objectForInfoDictionaryKey_1 = - _registerName1("objectForInfoDictionaryKey:"); - late final _sel_classNamed_1 = _registerName1("classNamed:"); - late final _sel_principalClass1 = _registerName1("principalClass"); - late final _sel_preferredLocalizations1 = - _registerName1("preferredLocalizations"); - late final _sel_localizations1 = _registerName1("localizations"); - late final _sel_developmentLocalization1 = - _registerName1("developmentLocalization"); - late final _sel_preferredLocalizationsFromArray_1 = - _registerName1("preferredLocalizationsFromArray:"); - late final _sel_preferredLocalizationsFromArray_forPreferences_1 = - _registerName1("preferredLocalizationsFromArray:forPreferences:"); + late final _sel_components_fromDate_1 = + _registerName1("components:fromDate:"); ffi.Pointer _objc_msgSend_711( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer localizationsArray, - ffi.Pointer preferencesArray, + int unitFlags, + ffi.Pointer date, ) { return __objc_msgSend_711( obj, sel, - localizationsArray, - preferencesArray, + unitFlags, + date, ); } @@ -19963,271 +20048,339 @@ class SentryCocoa { ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, + ffi.Int32, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_711 = __objc_msgSend_711Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, ffi.Pointer)>(); - late final _sel_executableArchitectures1 = - _registerName1("executableArchitectures"); - late final _sel_setPreservationPriority_forTags_1 = - _registerName1("setPreservationPriority:forTags:"); - void _objc_msgSend_712( + late final _sel_dateByAddingComponents_toDate_options_1 = + _registerName1("dateByAddingComponents:toDate:options:"); + ffi.Pointer _objc_msgSend_712( ffi.Pointer obj, ffi.Pointer sel, - double priority, - ffi.Pointer tags, + ffi.Pointer comps, + ffi.Pointer date, + int opts, ) { return __objc_msgSend_712( obj, sel, - priority, - tags, + comps, + date, + opts, ); } late final __objc_msgSend_712Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Double, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_712 = __objc_msgSend_712Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, double, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); - late final _sel_preservationPriorityForTag_1 = - _registerName1("preservationPriorityForTag:"); - late final _class_NSMutableAttributedString1 = - _getClass1("NSMutableAttributedString"); - late final _sel_setAttributes_range_1 = - _registerName1("setAttributes:range:"); - void _objc_msgSend_713( + late final _sel_components_fromDate_toDate_options_1 = + _registerName1("components:fromDate:toDate:options:"); + ffi.Pointer _objc_msgSend_713( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer attrs, - _NSRange range, + int unitFlags, + ffi.Pointer startingDate, + ffi.Pointer resultDate, + int opts, ) { return __objc_msgSend_713( obj, sel, - attrs, - range, + unitFlags, + startingDate, + resultDate, + opts, ); } late final __objc_msgSend_713Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_713 = __objc_msgSend_713Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer, + int)>(); - late final _sel_mutableString1 = _registerName1("mutableString"); - ffi.Pointer _objc_msgSend_714( + late final _sel_getEra_year_month_day_fromDate_1 = + _registerName1("getEra:year:month:day:fromDate:"); + void _objc_msgSend_714( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer eraValuePointer, + ffi.Pointer yearValuePointer, + ffi.Pointer monthValuePointer, + ffi.Pointer dayValuePointer, + ffi.Pointer date, ) { return __objc_msgSend_714( obj, sel, + eraValuePointer, + yearValuePointer, + monthValuePointer, + dayValuePointer, + date, ); } late final __objc_msgSend_714Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_714 = __objc_msgSend_714Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_addAttribute_value_range_1 = - _registerName1("addAttribute:value:range:"); - void _objc_msgSend_715( + late final _sel_getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_1 = + _registerName1("getEra:yearForWeekOfYear:weekOfYear:weekday:fromDate:"); + 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_715( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer value, - _NSRange range, + int unit, + ffi.Pointer date, ) { return __objc_msgSend_715( obj, sel, - name, - value, - range, + unit, + date, ); } late final __objc_msgSend_715Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - _NSRange)>>('objc_msgSend'); + ffi.Long Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_715 = __objc_msgSend_715Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, _NSRange)>(); + int Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); - late final _sel_addAttributes_range_1 = - _registerName1("addAttributes:range:"); - late final _sel_removeAttribute_range_1 = - _registerName1("removeAttribute:range:"); - void _objc_msgSend_716( + 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_716( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer name, - _NSRange range, + int eraValue, + int yearValue, + int monthValue, + int dayValue, + int hourValue, + int minuteValue, + int secondValue, + int nanosecondValue, ) { return __objc_msgSend_716( obj, sel, - name, - range, + eraValue, + yearValue, + monthValue, + dayValue, + hourValue, + minuteValue, + secondValue, + nanosecondValue, ); } late final __objc_msgSend_716Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Long)>>('objc_msgSend'); late final __objc_msgSend_716 = __objc_msgSend_716Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, int, int, int, int, int, int, int)>(); - late final _sel_replaceCharactersInRange_withAttributedString_1 = - _registerName1("replaceCharactersInRange:withAttributedString:"); - void _objc_msgSend_717( + late final _sel_dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_1 = + _registerName1( + "dateWithEra:yearForWeekOfYear:weekOfYear:weekday:hour:minute:second:nanosecond:"); + late final _sel_startOfDayForDate_1 = _registerName1("startOfDayForDate:"); + late final _sel_componentsInTimeZone_fromDate_1 = + _registerName1("componentsInTimeZone:fromDate:"); + ffi.Pointer _objc_msgSend_717( ffi.Pointer obj, ffi.Pointer sel, - _NSRange range, - ffi.Pointer attrString, + ffi.Pointer timezone, + ffi.Pointer date, ) { return __objc_msgSend_717( obj, sel, - range, - attrString, + timezone, + date, ); } late final __objc_msgSend_717Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_717 = __objc_msgSend_717Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, _NSRange, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_insertAttributedString_atIndex_1 = - _registerName1("insertAttributedString:atIndex:"); - void _objc_msgSend_718( + late final _sel_compareDate_toDate_toUnitGranularity_1 = + _registerName1("compareDate:toDate:toUnitGranularity:"); + int _objc_msgSend_718( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer attrString, - int loc, + ffi.Pointer date1, + ffi.Pointer date2, + int unit, ) { return __objc_msgSend_718( obj, sel, - attrString, - loc, + date1, + date2, + unit, ); } late final __objc_msgSend_718Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_718 = __objc_msgSend_718Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_appendAttributedString_1 = - _registerName1("appendAttributedString:"); - void _objc_msgSend_719( + late final _sel_isDate_equalToDate_toUnitGranularity_1 = + _registerName1("isDate:equalToDate:toUnitGranularity:"); + bool _objc_msgSend_719( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer attrString, + ffi.Pointer date1, + ffi.Pointer date2, + int unit, ) { return __objc_msgSend_719( obj, sel, - attrString, + date1, + date2, + unit, ); } late final __objc_msgSend_719Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_719 = __objc_msgSend_719Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_setAttributedString_1 = - _registerName1("setAttributedString:"); - late final _sel_beginEditing1 = _registerName1("beginEditing"); - late final _sel_endEditing1 = _registerName1("endEditing"); - late final _sel_appendLocalizedFormat_1 = - _registerName1("appendLocalizedFormat:"); - late final _class_NSDateFormatter1 = _getClass1("NSDateFormatter"); - late final _class_NSFormatter1 = _getClass1("NSFormatter"); - late final _sel_stringForObjectValue_1 = - _registerName1("stringForObjectValue:"); - late final _sel_attributedStringForObjectValue_withDefaultAttributes_1 = - _registerName1("attributedStringForObjectValue:withDefaultAttributes:"); - ffi.Pointer _objc_msgSend_720( + late final _sel_isDate_inSameDayAsDate_1 = + _registerName1("isDate:inSameDayAsDate:"); + bool _objc_msgSend_720( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer obj1, - ffi.Pointer attrs, + ffi.Pointer date1, + ffi.Pointer date2, ) { return __objc_msgSend_720( obj, sel, - obj1, - attrs, + date1, + date2, ); } late final __objc_msgSend_720Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_720 = __objc_msgSend_720Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_editingStringForObjectValue_1 = - _registerName1("editingStringForObjectValue:"); - late final _sel_getObjectValue_forString_errorDescription_1 = - _registerName1("getObjectValue:forString:errorDescription:"); + late final _sel_isDateInToday_1 = _registerName1("isDateInToday:"); + late final _sel_isDateInYesterday_1 = _registerName1("isDateInYesterday:"); + late final _sel_isDateInTomorrow_1 = _registerName1("isDateInTomorrow:"); + late final _sel_isDateInWeekend_1 = _registerName1("isDateInWeekend:"); + late final _sel_rangeOfWeekendStartDate_interval_containingDate_1 = + _registerName1("rangeOfWeekendStartDate:interval:containingDate:"); bool _objc_msgSend_721( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer> obj1, - ffi.Pointer string, - ffi.Pointer> error, + ffi.Pointer> datep, + ffi.Pointer tip, + ffi.Pointer date, ) { return __objc_msgSend_721( obj, sel, - obj1, - string, - error, + datep, + tip, + date, ); } @@ -20237,31 +20390,33 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_721 = __objc_msgSend_721Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer>, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_isPartialStringValid_newEditingString_errorDescription_1 = - _registerName1("isPartialStringValid:newEditingString:errorDescription:"); + late final _sel_nextWeekendStartDate_interval_options_afterDate_1 = + _registerName1("nextWeekendStartDate:interval:options:afterDate:"); bool _objc_msgSend_722( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer partialString, - ffi.Pointer> newString, - ffi.Pointer> error, + ffi.Pointer> datep, + ffi.Pointer tip, + int options, + ffi.Pointer date, ) { return __objc_msgSend_722( obj, sel, - partialString, - newString, - error, + datep, + tip, + options, + date, ); } @@ -20270,154 +20425,180 @@ class SentryCocoa { ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_722 = __objc_msgSend_722Ptr.asFunction< bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer>, - ffi.Pointer>)>(); + ffi.Pointer, + int, + ffi.Pointer)>(); - late final _sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1 = - _registerName1( - "isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription:"); - bool _objc_msgSend_723( + late final _sel_components_fromDateComponents_toDateComponents_options_1 = + _registerName1("components:fromDateComponents:toDateComponents:options:"); + ffi.Pointer _objc_msgSend_723( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer> partialStringPtr, - ffi.Pointer<_NSRange> proposedSelRangePtr, - ffi.Pointer origString, - _NSRange origSelRange, - ffi.Pointer> error, + int unitFlags, + ffi.Pointer startingDateComp, + ffi.Pointer resultDateComp, + int options, ) { return __objc_msgSend_723( obj, sel, - partialStringPtr, - proposedSelRangePtr, - origString, - origSelRange, - error, + unitFlags, + startingDateComp, + resultDateComp, + options, ); } late final __objc_msgSend_723Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, - ffi.Pointer<_NSRange>, + ffi.Int32, ffi.Pointer, - _NSRange, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_723 = __objc_msgSend_723Ptr.asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, - ffi.Pointer<_NSRange>, + int, ffi.Pointer, - _NSRange, - ffi.Pointer>)>(); + ffi.Pointer, + int)>(); - late final _sel_formattingContext1 = _registerName1("formattingContext"); - int _objc_msgSend_724( + late final _sel_dateByAddingUnit_value_toDate_options_1 = + _registerName1("dateByAddingUnit:value:toDate:options:"); + ffi.Pointer _objc_msgSend_724( ffi.Pointer obj, ffi.Pointer sel, + int unit, + int value, + ffi.Pointer date, + int options, ) { return __objc_msgSend_724( obj, sel, + unit, + value, + date, + options, ); } late final __objc_msgSend_724Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Long, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_724 = __objc_msgSend_724Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, int, ffi.Pointer, int)>(); - late final _sel_setFormattingContext_1 = - _registerName1("setFormattingContext:"); + late final _sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1 = + _registerName1( + "enumerateDatesStartingAfterDate:matchingComponents:options:usingBlock:"); void _objc_msgSend_725( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer start, + ffi.Pointer comps, + int opts, + ffi.Pointer<_ObjCBlock> block, ) { return __objc_msgSend_725( obj, sel, - value, + start, + comps, + opts, + block, ); } late final __objc_msgSend_725Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_725 = __objc_msgSend_725Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_getObjectValue_forString_range_error_1 = - _registerName1("getObjectValue:forString:range:error:"); - bool _objc_msgSend_726( + late final _sel_nextDateAfterDate_matchingComponents_options_1 = + _registerName1("nextDateAfterDate:matchingComponents:options:"); + ffi.Pointer _objc_msgSend_726( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer> obj1, - ffi.Pointer string, - ffi.Pointer<_NSRange> rangep, - ffi.Pointer> error, + ffi.Pointer date, + ffi.Pointer comps, + int options, ) { return __objc_msgSend_726( obj, sel, - obj1, - string, - rangep, - error, + date, + comps, + options, ); } late final __objc_msgSend_726Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, ffi.Pointer, - ffi.Pointer<_NSRange>, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_726 = __objc_msgSend_726Ptr.asFunction< - bool Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, ffi.Pointer, - ffi.Pointer<_NSRange>, - ffi.Pointer>)>(); + ffi.Pointer, + int)>(); - late final _sel_stringFromDate_1 = _registerName1("stringFromDate:"); - late final _sel_dateFromString_1 = _registerName1("dateFromString:"); - late final _sel_localizedStringFromDate_dateStyle_timeStyle_1 = - _registerName1("localizedStringFromDate:dateStyle:timeStyle:"); + late final _sel_nextDateAfterDate_matchingUnit_value_options_1 = + _registerName1("nextDateAfterDate:matchingUnit:value:options:"); ffi.Pointer _objc_msgSend_727( ffi.Pointer obj, ffi.Pointer sel, ffi.Pointer date, - int dstyle, - int tstyle, + int unit, + int value, + int options, ) { return __objc_msgSend_727( obj, sel, date, - dstyle, - tstyle, + unit, + value, + options, ); } @@ -20428,26 +20609,31 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Int32, + ffi.Long, ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_727 = __objc_msgSend_727Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, int)>(); + ffi.Pointer, ffi.Pointer, int, int, int)>(); - late final _sel_dateFormatFromTemplate_options_locale_1 = - _registerName1("dateFormatFromTemplate:options:locale:"); + late final _sel_nextDateAfterDate_matchingHour_minute_second_options_1 = + _registerName1("nextDateAfterDate:matchingHour:minute:second:options:"); ffi.Pointer _objc_msgSend_728( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer tmplate, - int opts, - ffi.Pointer locale, + ffi.Pointer date, + int hourValue, + int minuteValue, + int secondValue, + int options, ) { return __objc_msgSend_728( obj, sel, - tmplate, - opts, - locale, + date, + hourValue, + minuteValue, + secondValue, + options, ); } @@ -20457,869 +20643,862 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer)>>('objc_msgSend'); + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_728 = __objc_msgSend_728Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, int, int, int)>(); - late final _sel_defaultFormatterBehavior1 = - _registerName1("defaultFormatterBehavior"); - int _objc_msgSend_729( + late final _sel_dateBySettingUnit_value_ofDate_options_1 = + _registerName1("dateBySettingUnit:value:ofDate:options:"); + late final _sel_dateBySettingHour_minute_second_ofDate_options_1 = + _registerName1("dateBySettingHour:minute:second:ofDate:options:"); + ffi.Pointer _objc_msgSend_729( ffi.Pointer obj, ffi.Pointer sel, + int h, + int m, + int s, + ffi.Pointer date, + int opts, ) { return __objc_msgSend_729( obj, sel, + h, + m, + s, + date, + opts, ); } late final __objc_msgSend_729Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Long, + ffi.Long, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_729 = __objc_msgSend_729Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, int, int, ffi.Pointer, int)>(); - late final _sel_setDefaultFormatterBehavior_1 = - _registerName1("setDefaultFormatterBehavior:"); - void _objc_msgSend_730( + late final _sel_date_matchesComponents_1 = + _registerName1("date:matchesComponents:"); + bool _objc_msgSend_730( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer date, + ffi.Pointer components, ) { return __objc_msgSend_730( obj, sel, - value, + date, + components, ); } late final __objc_msgSend_730Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_730 = __objc_msgSend_730Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_setLocalizedDateFormatFromTemplate_1 = - _registerName1("setLocalizedDateFormatFromTemplate:"); - late final _sel_dateFormat1 = _registerName1("dateFormat"); - late final _sel_setDateFormat_1 = _registerName1("setDateFormat:"); - late final _sel_dateStyle1 = _registerName1("dateStyle"); - int _objc_msgSend_731( + late final _sel_isLenient1 = _registerName1("isLenient"); + late final _sel_setLenient_1 = _registerName1("setLenient:"); + late final _sel_twoDigitStartDate1 = _registerName1("twoDigitStartDate"); + late final _sel_setTwoDigitStartDate_1 = + _registerName1("setTwoDigitStartDate:"); + late final _sel_defaultDate1 = _registerName1("defaultDate"); + late final _sel_setDefaultDate_1 = _registerName1("setDefaultDate:"); + late final _sel_setEraSymbols_1 = _registerName1("setEraSymbols:"); + void _objc_msgSend_731( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer value, ) { return __objc_msgSend_731( obj, sel, + value, ); } late final __objc_msgSend_731Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_731 = __objc_msgSend_731Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_setDateStyle_1 = _registerName1("setDateStyle:"); - void _objc_msgSend_732( + late final _sel_setMonthSymbols_1 = _registerName1("setMonthSymbols:"); + late final _sel_setShortMonthSymbols_1 = + _registerName1("setShortMonthSymbols:"); + late final _sel_setWeekdaySymbols_1 = _registerName1("setWeekdaySymbols:"); + late final _sel_setShortWeekdaySymbols_1 = + _registerName1("setShortWeekdaySymbols:"); + late final _sel_setAMSymbol_1 = _registerName1("setAMSymbol:"); + late final _sel_setPMSymbol_1 = _registerName1("setPMSymbol:"); + late final _sel_setLongEraSymbols_1 = _registerName1("setLongEraSymbols:"); + late final _sel_setVeryShortMonthSymbols_1 = + _registerName1("setVeryShortMonthSymbols:"); + late final _sel_setStandaloneMonthSymbols_1 = + _registerName1("setStandaloneMonthSymbols:"); + late final _sel_setShortStandaloneMonthSymbols_1 = + _registerName1("setShortStandaloneMonthSymbols:"); + late final _sel_setVeryShortStandaloneMonthSymbols_1 = + _registerName1("setVeryShortStandaloneMonthSymbols:"); + late final _sel_setVeryShortWeekdaySymbols_1 = + _registerName1("setVeryShortWeekdaySymbols:"); + late final _sel_setStandaloneWeekdaySymbols_1 = + _registerName1("setStandaloneWeekdaySymbols:"); + late final _sel_setShortStandaloneWeekdaySymbols_1 = + _registerName1("setShortStandaloneWeekdaySymbols:"); + late final _sel_setVeryShortStandaloneWeekdaySymbols_1 = + _registerName1("setVeryShortStandaloneWeekdaySymbols:"); + late final _sel_setQuarterSymbols_1 = _registerName1("setQuarterSymbols:"); + late final _sel_setShortQuarterSymbols_1 = + _registerName1("setShortQuarterSymbols:"); + late final _sel_setStandaloneQuarterSymbols_1 = + _registerName1("setStandaloneQuarterSymbols:"); + late final _sel_setShortStandaloneQuarterSymbols_1 = + _registerName1("setShortStandaloneQuarterSymbols:"); + late final _sel_gregorianStartDate1 = _registerName1("gregorianStartDate"); + late final _sel_setGregorianStartDate_1 = + _registerName1("setGregorianStartDate:"); + late final _sel_doesRelativeDateFormatting1 = + _registerName1("doesRelativeDateFormatting"); + late final _sel_setDoesRelativeDateFormatting_1 = + _registerName1("setDoesRelativeDateFormatting:"); + late final _sel_initWithDateFormat_allowNaturalLanguage_1 = + _registerName1("initWithDateFormat:allowNaturalLanguage:"); + late final _sel_allowsNaturalLanguage1 = + _registerName1("allowsNaturalLanguage"); + late final _class_NSNumberFormatter1 = _getClass1("NSNumberFormatter"); + late final _sel_stringFromNumber_1 = _registerName1("stringFromNumber:"); + ffi.Pointer _objc_msgSend_732( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer number, ) { return __objc_msgSend_732( obj, sel, - value, + number, ); } late final __objc_msgSend_732Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_732 = __objc_msgSend_732Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - 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_733( + late final _sel_numberFromString_1 = _registerName1("numberFromString:"); + ffi.Pointer _objc_msgSend_733( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, + ffi.Pointer string, ) { return __objc_msgSend_733( obj, sel, - value, + string, ); } late final __objc_msgSend_733Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_733 = __objc_msgSend_733Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_generatesCalendarDates1 = - _registerName1("generatesCalendarDates"); - late final _sel_setGeneratesCalendarDates_1 = - _registerName1("setGeneratesCalendarDates:"); - late final _sel_formatterBehavior1 = _registerName1("formatterBehavior"); - late final _sel_setFormatterBehavior_1 = - _registerName1("setFormatterBehavior:"); - late final _class_NSCalendar1 = _getClass1("NSCalendar"); - late final _sel_currentCalendar1 = _registerName1("currentCalendar"); + late final _sel_localizedStringFromNumber_numberStyle_1 = + _registerName1("localizedStringFromNumber:numberStyle:"); ffi.Pointer _objc_msgSend_734( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer num, + int nstyle, ) { return __objc_msgSend_734( obj, sel, + num, + nstyle, ); } late final __objc_msgSend_734Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_734 = __objc_msgSend_734Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_autoupdatingCurrentCalendar1 = - _registerName1("autoupdatingCurrentCalendar"); - late final _sel_calendarWithIdentifier_1 = - _registerName1("calendarWithIdentifier:"); - ffi.Pointer _objc_msgSend_735( + int _objc_msgSend_735( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer calendarIdentifierConstant, ) { return __objc_msgSend_735( obj, sel, - calendarIdentifierConstant, ); } late final __objc_msgSend_735Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_735 = __objc_msgSend_735Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_initWithCalendarIdentifier_1 = - _registerName1("initWithCalendarIdentifier:"); - late final _sel_firstWeekday1 = _registerName1("firstWeekday"); - late final _sel_setFirstWeekday_1 = _registerName1("setFirstWeekday:"); - late final _sel_minimumDaysInFirstWeek1 = - _registerName1("minimumDaysInFirstWeek"); - late final _sel_setMinimumDaysInFirstWeek_1 = - _registerName1("setMinimumDaysInFirstWeek:"); - late final _sel_eraSymbols1 = _registerName1("eraSymbols"); - late final _sel_longEraSymbols1 = _registerName1("longEraSymbols"); - late final _sel_monthSymbols1 = _registerName1("monthSymbols"); - late final _sel_shortMonthSymbols1 = _registerName1("shortMonthSymbols"); - late final _sel_veryShortMonthSymbols1 = - _registerName1("veryShortMonthSymbols"); - late final _sel_standaloneMonthSymbols1 = - _registerName1("standaloneMonthSymbols"); - late final _sel_shortStandaloneMonthSymbols1 = - _registerName1("shortStandaloneMonthSymbols"); - late final _sel_veryShortStandaloneMonthSymbols1 = - _registerName1("veryShortStandaloneMonthSymbols"); - late final _sel_weekdaySymbols1 = _registerName1("weekdaySymbols"); - late final _sel_shortWeekdaySymbols1 = _registerName1("shortWeekdaySymbols"); - late final _sel_veryShortWeekdaySymbols1 = - _registerName1("veryShortWeekdaySymbols"); - late final _sel_standaloneWeekdaySymbols1 = - _registerName1("standaloneWeekdaySymbols"); - late final _sel_shortStandaloneWeekdaySymbols1 = - _registerName1("shortStandaloneWeekdaySymbols"); - late final _sel_veryShortStandaloneWeekdaySymbols1 = - _registerName1("veryShortStandaloneWeekdaySymbols"); - late final _sel_quarterSymbols1 = _registerName1("quarterSymbols"); - late final _sel_shortQuarterSymbols1 = _registerName1("shortQuarterSymbols"); - late final _sel_standaloneQuarterSymbols1 = - _registerName1("standaloneQuarterSymbols"); - late final _sel_shortStandaloneQuarterSymbols1 = - _registerName1("shortStandaloneQuarterSymbols"); - late final _sel_AMSymbol1 = _registerName1("AMSymbol"); - late final _sel_PMSymbol1 = _registerName1("PMSymbol"); - late final _sel_minimumRangeOfUnit_1 = _registerName1("minimumRangeOfUnit:"); void _objc_msgSend_736( - ffi.Pointer<_NSRange> stret, ffi.Pointer obj, ffi.Pointer sel, - int unit, + int behavior, ) { return __objc_msgSend_736( - stret, obj, sel, - unit, + behavior, ); } late final __objc_msgSend_736Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend_stret'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_736 = __objc_msgSend_736Ptr.asFunction< - void Function(ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer, int)>(); + void Function(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_737( - ffi.Pointer<_NSRange> stret, + late final _sel_numberStyle1 = _registerName1("numberStyle"); + int _objc_msgSend_737( ffi.Pointer obj, ffi.Pointer sel, - int smaller, - int larger, - ffi.Pointer date, ) { return __objc_msgSend_737( - stret, obj, sel, - smaller, - larger, - date, ); } late final __objc_msgSend_737Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_NSRange>, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Int32, - ffi.Pointer)>>('objc_msgSend_stret'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_737 = __objc_msgSend_737Ptr.asFunction< - void Function(ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer, int, int, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_ordinalityOfUnit_inUnit_forDate_1 = - _registerName1("ordinalityOfUnit:inUnit:forDate:"); - int _objc_msgSend_738( + late final _sel_setNumberStyle_1 = _registerName1("setNumberStyle:"); + void _objc_msgSend_738( ffi.Pointer obj, ffi.Pointer sel, - int smaller, - int larger, - ffi.Pointer date, + int value, ) { return __objc_msgSend_738( obj, sel, - smaller, - larger, - date, + value, ); } late final __objc_msgSend_738Ptr = _lookup< ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Int32, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_738 = __objc_msgSend_738Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int, int, - ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_rangeOfUnit_startDate_interval_forDate_1 = - _registerName1("rangeOfUnit:startDate:interval:forDate:"); - bool _objc_msgSend_739( + late final _sel_generatesDecimalNumbers1 = + _registerName1("generatesDecimalNumbers"); + late final _sel_setGeneratesDecimalNumbers_1 = + _registerName1("setGeneratesDecimalNumbers:"); + void _objc_msgSend_739( ffi.Pointer obj, ffi.Pointer sel, - int unit, - ffi.Pointer> datep, - ffi.Pointer tip, - ffi.Pointer date, + int value, ) { return __objc_msgSend_739( obj, sel, - unit, - datep, - tip, - date, + value, ); } late final __objc_msgSend_739Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_739 = __objc_msgSend_739Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _class_NSDateComponents1 = _getClass1("NSDateComponents"); - late final _sel_calendar1 = _registerName1("calendar"); - late final _sel_setCalendar_1 = _registerName1("setCalendar:"); - void _objc_msgSend_740( + late final _sel_negativeFormat1 = _registerName1("negativeFormat"); + late final _sel_setNegativeFormat_1 = _registerName1("setNegativeFormat:"); + late final _sel_textAttributesForNegativeValues1 = + _registerName1("textAttributesForNegativeValues"); + late final _sel_setTextAttributesForNegativeValues_1 = + _registerName1("setTextAttributesForNegativeValues:"); + late final _sel_positiveFormat1 = _registerName1("positiveFormat"); + late final _sel_setPositiveFormat_1 = _registerName1("setPositiveFormat:"); + late final _sel_textAttributesForPositiveValues1 = + _registerName1("textAttributesForPositiveValues"); + late final _sel_setTextAttributesForPositiveValues_1 = + _registerName1("setTextAttributesForPositiveValues:"); + late final _sel_allowsFloats1 = _registerName1("allowsFloats"); + late final _sel_setAllowsFloats_1 = _registerName1("setAllowsFloats:"); + late final _sel_setDecimalSeparator_1 = + _registerName1("setDecimalSeparator:"); + late final _sel_alwaysShowsDecimalSeparator1 = + _registerName1("alwaysShowsDecimalSeparator"); + late final _sel_setAlwaysShowsDecimalSeparator_1 = + _registerName1("setAlwaysShowsDecimalSeparator:"); + late final _sel_currencyDecimalSeparator1 = + _registerName1("currencyDecimalSeparator"); + late final _sel_setCurrencyDecimalSeparator_1 = + _registerName1("setCurrencyDecimalSeparator:"); + late final _sel_usesGroupingSeparator1 = + _registerName1("usesGroupingSeparator"); + late final _sel_setUsesGroupingSeparator_1 = + _registerName1("setUsesGroupingSeparator:"); + late final _sel_setGroupingSeparator_1 = + _registerName1("setGroupingSeparator:"); + late final _sel_zeroSymbol1 = _registerName1("zeroSymbol"); + late final _sel_setZeroSymbol_1 = _registerName1("setZeroSymbol:"); + late final _sel_textAttributesForZero1 = + _registerName1("textAttributesForZero"); + late final _sel_setTextAttributesForZero_1 = + _registerName1("setTextAttributesForZero:"); + late final _sel_nilSymbol1 = _registerName1("nilSymbol"); + late final _sel_setNilSymbol_1 = _registerName1("setNilSymbol:"); + late final _sel_textAttributesForNil1 = + _registerName1("textAttributesForNil"); + late final _sel_setTextAttributesForNil_1 = + _registerName1("setTextAttributesForNil:"); + late final _sel_notANumberSymbol1 = _registerName1("notANumberSymbol"); + late final _sel_setNotANumberSymbol_1 = + _registerName1("setNotANumberSymbol:"); + late final _sel_textAttributesForNotANumber1 = + _registerName1("textAttributesForNotANumber"); + late final _sel_setTextAttributesForNotANumber_1 = + _registerName1("setTextAttributesForNotANumber:"); + late final _sel_positiveInfinitySymbol1 = + _registerName1("positiveInfinitySymbol"); + late final _sel_setPositiveInfinitySymbol_1 = + _registerName1("setPositiveInfinitySymbol:"); + late final _sel_textAttributesForPositiveInfinity1 = + _registerName1("textAttributesForPositiveInfinity"); + late final _sel_setTextAttributesForPositiveInfinity_1 = + _registerName1("setTextAttributesForPositiveInfinity:"); + late final _sel_negativeInfinitySymbol1 = + _registerName1("negativeInfinitySymbol"); + late final _sel_setNegativeInfinitySymbol_1 = + _registerName1("setNegativeInfinitySymbol:"); + late final _sel_textAttributesForNegativeInfinity1 = + _registerName1("textAttributesForNegativeInfinity"); + late final _sel_setTextAttributesForNegativeInfinity_1 = + _registerName1("setTextAttributesForNegativeInfinity:"); + late final _sel_positivePrefix1 = _registerName1("positivePrefix"); + late final _sel_setPositivePrefix_1 = _registerName1("setPositivePrefix:"); + late final _sel_positiveSuffix1 = _registerName1("positiveSuffix"); + late final _sel_setPositiveSuffix_1 = _registerName1("setPositiveSuffix:"); + late final _sel_negativePrefix1 = _registerName1("negativePrefix"); + late final _sel_setNegativePrefix_1 = _registerName1("setNegativePrefix:"); + late final _sel_negativeSuffix1 = _registerName1("negativeSuffix"); + late final _sel_setNegativeSuffix_1 = _registerName1("setNegativeSuffix:"); + late final _sel_setCurrencyCode_1 = _registerName1("setCurrencyCode:"); + late final _sel_setCurrencySymbol_1 = _registerName1("setCurrencySymbol:"); + late final _sel_internationalCurrencySymbol1 = + _registerName1("internationalCurrencySymbol"); + late final _sel_setInternationalCurrencySymbol_1 = + _registerName1("setInternationalCurrencySymbol:"); + late final _sel_percentSymbol1 = _registerName1("percentSymbol"); + late final _sel_setPercentSymbol_1 = _registerName1("setPercentSymbol:"); + late final _sel_perMillSymbol1 = _registerName1("perMillSymbol"); + late final _sel_setPerMillSymbol_1 = _registerName1("setPerMillSymbol:"); + late final _sel_minusSign1 = _registerName1("minusSign"); + late final _sel_setMinusSign_1 = _registerName1("setMinusSign:"); + late final _sel_plusSign1 = _registerName1("plusSign"); + late final _sel_setPlusSign_1 = _registerName1("setPlusSign:"); + late final _sel_exponentSymbol1 = _registerName1("exponentSymbol"); + late final _sel_setExponentSymbol_1 = _registerName1("setExponentSymbol:"); + late final _sel_groupingSize1 = _registerName1("groupingSize"); + late final _sel_setGroupingSize_1 = _registerName1("setGroupingSize:"); + late final _sel_secondaryGroupingSize1 = + _registerName1("secondaryGroupingSize"); + late final _sel_setSecondaryGroupingSize_1 = + _registerName1("setSecondaryGroupingSize:"); + late final _sel_multiplier1 = _registerName1("multiplier"); + late final _sel_setMultiplier_1 = _registerName1("setMultiplier:"); + late final _sel_formatWidth1 = _registerName1("formatWidth"); + late final _sel_setFormatWidth_1 = _registerName1("setFormatWidth:"); + late final _sel_paddingCharacter1 = _registerName1("paddingCharacter"); + late final _sel_setPaddingCharacter_1 = + _registerName1("setPaddingCharacter:"); + late final _sel_paddingPosition1 = _registerName1("paddingPosition"); + int _objc_msgSend_740( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, ) { return __objc_msgSend_740( obj, sel, - value, ); } late final __objc_msgSend_740Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_740 = __objc_msgSend_740Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_era1 = _registerName1("era"); - late final _sel_setEra_1 = _registerName1("setEra:"); - late final _sel_year1 = _registerName1("year"); - late final _sel_setYear_1 = _registerName1("setYear:"); - late final _sel_month1 = _registerName1("month"); - late final _sel_setMonth_1 = _registerName1("setMonth:"); - late final _sel_day1 = _registerName1("day"); - late final _sel_setDay_1 = _registerName1("setDay:"); - late final _sel_hour1 = _registerName1("hour"); - late final _sel_setHour_1 = _registerName1("setHour:"); - late final _sel_minute1 = _registerName1("minute"); - late final _sel_setMinute_1 = _registerName1("setMinute:"); - late final _sel_second1 = _registerName1("second"); - late final _sel_setSecond_1 = _registerName1("setSecond:"); - late final _sel_nanosecond1 = _registerName1("nanosecond"); - late final _sel_setNanosecond_1 = _registerName1("setNanosecond:"); - late final _sel_weekday1 = _registerName1("weekday"); - late final _sel_setWeekday_1 = _registerName1("setWeekday:"); - late final _sel_weekdayOrdinal1 = _registerName1("weekdayOrdinal"); - late final _sel_setWeekdayOrdinal_1 = _registerName1("setWeekdayOrdinal:"); - late final _sel_quarter1 = _registerName1("quarter"); - late final _sel_setQuarter_1 = _registerName1("setQuarter:"); - late final _sel_weekOfMonth1 = _registerName1("weekOfMonth"); - late final _sel_setWeekOfMonth_1 = _registerName1("setWeekOfMonth:"); - late final _sel_weekOfYear1 = _registerName1("weekOfYear"); - late final _sel_setWeekOfYear_1 = _registerName1("setWeekOfYear:"); - late final _sel_yearForWeekOfYear1 = _registerName1("yearForWeekOfYear"); - late final _sel_setYearForWeekOfYear_1 = - _registerName1("setYearForWeekOfYear:"); - late final _sel_isLeapMonth1 = _registerName1("isLeapMonth"); - late final _sel_setLeapMonth_1 = _registerName1("setLeapMonth:"); - late final _sel_week1 = _registerName1("week"); - late final _sel_setWeek_1 = _registerName1("setWeek:"); - late final _sel_setValue_forComponent_1 = - _registerName1("setValue:forComponent:"); + late final _sel_setPaddingPosition_1 = _registerName1("setPaddingPosition:"); void _objc_msgSend_741( ffi.Pointer obj, ffi.Pointer sel, int value, - int unit, ) { return __objc_msgSend_741( obj, sel, value, - unit, ); } late final __objc_msgSend_741Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Long, ffi.Int32)>>('objc_msgSend'); + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_741 = __objc_msgSend_741Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, int)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_valueForComponent_1 = _registerName1("valueForComponent:"); + late final _sel_roundingMode1 = _registerName1("roundingMode"); int _objc_msgSend_742( ffi.Pointer obj, ffi.Pointer sel, - int unit, ) { return __objc_msgSend_742( obj, sel, - unit, ); } late final __objc_msgSend_742Ptr = _lookup< ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_742 = __objc_msgSend_742Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_isValidDate1 = _registerName1("isValidDate"); - late final _sel_isValidDateInCalendar_1 = - _registerName1("isValidDateInCalendar:"); - bool _objc_msgSend_743( + late final _sel_setRoundingMode_1 = _registerName1("setRoundingMode:"); + void _objc_msgSend_743( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer calendar, + int value, ) { return __objc_msgSend_743( obj, sel, - calendar, + value, ); } late final __objc_msgSend_743Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_743 = __objc_msgSend_743Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_dateFromComponents_1 = _registerName1("dateFromComponents:"); - ffi.Pointer _objc_msgSend_744( + late final _sel_roundingIncrement1 = _registerName1("roundingIncrement"); + late final _sel_setRoundingIncrement_1 = + _registerName1("setRoundingIncrement:"); + late final _sel_minimumIntegerDigits1 = + _registerName1("minimumIntegerDigits"); + late final _sel_setMinimumIntegerDigits_1 = + _registerName1("setMinimumIntegerDigits:"); + late final _sel_maximumIntegerDigits1 = + _registerName1("maximumIntegerDigits"); + late final _sel_setMaximumIntegerDigits_1 = + _registerName1("setMaximumIntegerDigits:"); + late final _sel_minimumFractionDigits1 = + _registerName1("minimumFractionDigits"); + late final _sel_setMinimumFractionDigits_1 = + _registerName1("setMinimumFractionDigits:"); + late final _sel_maximumFractionDigits1 = + _registerName1("maximumFractionDigits"); + late final _sel_setMaximumFractionDigits_1 = + _registerName1("setMaximumFractionDigits:"); + late final _sel_minimum1 = _registerName1("minimum"); + late final _sel_setMinimum_1 = _registerName1("setMinimum:"); + late final _sel_maximum1 = _registerName1("maximum"); + late final _sel_setMaximum_1 = _registerName1("setMaximum:"); + late final _sel_currencyGroupingSeparator1 = + _registerName1("currencyGroupingSeparator"); + late final _sel_setCurrencyGroupingSeparator_1 = + _registerName1("setCurrencyGroupingSeparator:"); + late final _sel_usesSignificantDigits1 = + _registerName1("usesSignificantDigits"); + late final _sel_setUsesSignificantDigits_1 = + _registerName1("setUsesSignificantDigits:"); + late final _sel_minimumSignificantDigits1 = + _registerName1("minimumSignificantDigits"); + late final _sel_setMinimumSignificantDigits_1 = + _registerName1("setMinimumSignificantDigits:"); + late final _sel_maximumSignificantDigits1 = + _registerName1("maximumSignificantDigits"); + late final _sel_setMaximumSignificantDigits_1 = + _registerName1("setMaximumSignificantDigits:"); + late final _sel_isPartialStringValidationEnabled1 = + _registerName1("isPartialStringValidationEnabled"); + late final _sel_setPartialStringValidationEnabled_1 = + _registerName1("setPartialStringValidationEnabled:"); + late final _sel_hasThousandSeparators1 = + _registerName1("hasThousandSeparators"); + late final _sel_setHasThousandSeparators_1 = + _registerName1("setHasThousandSeparators:"); + late final _sel_thousandSeparator1 = _registerName1("thousandSeparator"); + late final _sel_setThousandSeparator_1 = + _registerName1("setThousandSeparator:"); + late final _sel_localizesFormat1 = _registerName1("localizesFormat"); + late final _sel_setLocalizesFormat_1 = _registerName1("setLocalizesFormat:"); + late final _sel_format1 = _registerName1("format"); + late final _sel_setFormat_1 = _registerName1("setFormat:"); + late final _sel_attributedStringForZero1 = + _registerName1("attributedStringForZero"); + late final _sel_setAttributedStringForZero_1 = + _registerName1("setAttributedStringForZero:"); + void _objc_msgSend_744( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer comps, + ffi.Pointer value, ) { return __objc_msgSend_744( obj, sel, - comps, + value, ); } late final __objc_msgSend_744Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_744 = __objc_msgSend_744Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_components_fromDate_1 = - _registerName1("components:fromDate:"); + late final _sel_attributedStringForNil1 = + _registerName1("attributedStringForNil"); + late final _sel_setAttributedStringForNil_1 = + _registerName1("setAttributedStringForNil:"); + late final _sel_attributedStringForNotANumber1 = + _registerName1("attributedStringForNotANumber"); + late final _sel_setAttributedStringForNotANumber_1 = + _registerName1("setAttributedStringForNotANumber:"); + late final _class_NSDecimalNumberHandler1 = + _getClass1("NSDecimalNumberHandler"); + late final _sel_defaultDecimalNumberHandler1 = + _registerName1("defaultDecimalNumberHandler"); ffi.Pointer _objc_msgSend_745( ffi.Pointer obj, ffi.Pointer sel, - int unitFlags, - ffi.Pointer date, ) { return __objc_msgSend_745( obj, sel, - unitFlags, - date, ); } late final __objc_msgSend_745Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_745 = __objc_msgSend_745Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_dateByAddingComponents_toDate_options_1 = - _registerName1("dateByAddingComponents:toDate:options:"); - ffi.Pointer _objc_msgSend_746( + late final _sel_initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1 = + _registerName1( + "initWithRoundingMode:scale:raiseOnExactness:raiseOnOverflow:raiseOnUnderflow:raiseOnDivideByZero:"); + instancetype _objc_msgSend_746( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer comps, - ffi.Pointer date, - int opts, + int roundingMode, + int scale, + bool exact, + bool overflow, + bool underflow, + bool divideByZero, ) { return __objc_msgSend_746( obj, sel, - comps, - date, - opts, + roundingMode, + scale, + exact, + overflow, + underflow, + divideByZero, ); } late final __objc_msgSend_746Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + instancetype Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Int32, + ffi.Short, + ffi.Bool, + ffi.Bool, + ffi.Bool, + ffi.Bool)>>('objc_msgSend'); late final __objc_msgSend_746 = __objc_msgSend_746Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, int, + int, bool, bool, bool, bool)>(); - late final _sel_components_fromDate_toDate_options_1 = - _registerName1("components:fromDate:toDate:options:"); - ffi.Pointer _objc_msgSend_747( + late final _sel_decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1 = + _registerName1( + "decimalNumberHandlerWithRoundingMode:scale:raiseOnExactness:raiseOnOverflow:raiseOnUnderflow:raiseOnDivideByZero:"); + late final _sel_roundingBehavior1 = _registerName1("roundingBehavior"); + late final _sel_setRoundingBehavior_1 = + _registerName1("setRoundingBehavior:"); + void _objc_msgSend_747( ffi.Pointer obj, ffi.Pointer sel, - int unitFlags, - ffi.Pointer startingDate, - ffi.Pointer resultDate, - int opts, + ffi.Pointer value, ) { return __objc_msgSend_747( obj, sel, - unitFlags, - startingDate, - resultDate, - opts, + value, ); } late final __objc_msgSend_747Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_747 = __objc_msgSend_747Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - int)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_getEra_year_month_day_fromDate_1 = - _registerName1("getEra:year:month:day:fromDate:"); + late final _class_NSScanner1 = _getClass1("NSScanner"); + late final _sel_scanLocation1 = _registerName1("scanLocation"); + late final _sel_setScanLocation_1 = _registerName1("setScanLocation:"); + late final _sel_charactersToBeSkipped1 = + _registerName1("charactersToBeSkipped"); + late final _sel_setCharactersToBeSkipped_1 = + _registerName1("setCharactersToBeSkipped:"); void _objc_msgSend_748( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer eraValuePointer, - ffi.Pointer yearValuePointer, - ffi.Pointer monthValuePointer, - ffi.Pointer dayValuePointer, - ffi.Pointer date, + ffi.Pointer value, ) { return __objc_msgSend_748( obj, sel, - eraValuePointer, - yearValuePointer, - monthValuePointer, - dayValuePointer, - date, + value, ); } late final __objc_msgSend_748Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_748 = __objc_msgSend_748Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_1 = - _registerName1("getEra:yearForWeekOfYear:weekOfYear:weekday:fromDate:"); - 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_749( + late final _sel_caseSensitive1 = _registerName1("caseSensitive"); + late final _sel_setCaseSensitive_1 = _registerName1("setCaseSensitive:"); + late final _sel_scanInt_1 = _registerName1("scanInt:"); + bool _objc_msgSend_749( ffi.Pointer obj, ffi.Pointer sel, - int unit, - ffi.Pointer date, + ffi.Pointer result, ) { return __objc_msgSend_749( obj, sel, - unit, - date, + result, ); } late final __objc_msgSend_749Ptr = _lookup< ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer)>>('objc_msgSend'); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_749 = __objc_msgSend_749Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); + bool Function(ffi.Pointer, ffi.Pointer, + 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_750( + late final _sel_scanInteger_1 = _registerName1("scanInteger:"); + bool _objc_msgSend_750( ffi.Pointer obj, ffi.Pointer sel, - int eraValue, - int yearValue, - int monthValue, - int dayValue, - int hourValue, - int minuteValue, - int secondValue, - int nanosecondValue, + ffi.Pointer result, ) { return __objc_msgSend_750( obj, sel, - eraValue, - yearValue, - monthValue, - dayValue, - hourValue, - minuteValue, - secondValue, - nanosecondValue, + result, ); } late final __objc_msgSend_750Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Long, - ffi.Long, - ffi.Long, - ffi.Long, - ffi.Long, - ffi.Long, - ffi.Long)>>('objc_msgSend'); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_750 = __objc_msgSend_750Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, int, int, int, int, int, int, int)>(); + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_1 = - _registerName1( - "dateWithEra:yearForWeekOfYear:weekOfYear:weekday:hour:minute:second:nanosecond:"); - late final _sel_startOfDayForDate_1 = _registerName1("startOfDayForDate:"); - late final _sel_componentsInTimeZone_fromDate_1 = - _registerName1("componentsInTimeZone:fromDate:"); - ffi.Pointer _objc_msgSend_751( + late final _sel_scanLongLong_1 = _registerName1("scanLongLong:"); + bool _objc_msgSend_751( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer timezone, - ffi.Pointer date, + ffi.Pointer result, ) { return __objc_msgSend_751( obj, sel, - timezone, - date, + result, ); } late final __objc_msgSend_751Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_751 = __objc_msgSend_751Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_compareDate_toDate_toUnitGranularity_1 = - _registerName1("compareDate:toDate:toUnitGranularity:"); - int _objc_msgSend_752( + late final _sel_scanUnsignedLongLong_1 = + _registerName1("scanUnsignedLongLong:"); + bool _objc_msgSend_752( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer date1, - ffi.Pointer date2, - int unit, + ffi.Pointer result, ) { return __objc_msgSend_752( obj, sel, - date1, - date2, - unit, + result, ); } late final __objc_msgSend_752Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_752 = __objc_msgSend_752Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_isDate_equalToDate_toUnitGranularity_1 = - _registerName1("isDate:equalToDate:toUnitGranularity:"); + late final _sel_scanFloat_1 = _registerName1("scanFloat:"); bool _objc_msgSend_753( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer date1, - ffi.Pointer date2, - int unit, + ffi.Pointer result, ) { return __objc_msgSend_753( obj, sel, - date1, - date2, - unit, + result, ); } late final __objc_msgSend_753Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_753 = __objc_msgSend_753Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer)>(); - late final _sel_isDate_inSameDayAsDate_1 = - _registerName1("isDate:inSameDayAsDate:"); + late final _sel_scanDouble_1 = _registerName1("scanDouble:"); bool _objc_msgSend_754( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer date1, - ffi.Pointer date2, + ffi.Pointer result, ) { return __objc_msgSend_754( obj, sel, - date1, - date2, + result, ); } late final __objc_msgSend_754Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_754 = __objc_msgSend_754Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer)>(); - late final _sel_isDateInToday_1 = _registerName1("isDateInToday:"); - late final _sel_isDateInYesterday_1 = _registerName1("isDateInYesterday:"); - late final _sel_isDateInTomorrow_1 = _registerName1("isDateInTomorrow:"); - late final _sel_isDateInWeekend_1 = _registerName1("isDateInWeekend:"); - late final _sel_rangeOfWeekendStartDate_interval_containingDate_1 = - _registerName1("rangeOfWeekendStartDate:interval:containingDate:"); + late final _sel_scanHexInt_1 = _registerName1("scanHexInt:"); bool _objc_msgSend_755( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer> datep, - ffi.Pointer tip, - ffi.Pointer date, + ffi.Pointer result, ) { return __objc_msgSend_755( obj, sel, - datep, - tip, - date, + result, ); } late final __objc_msgSend_755Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_755 = __objc_msgSend_755Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Pointer)>(); + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_nextWeekendStartDate_interval_options_afterDate_1 = - _registerName1("nextWeekendStartDate:interval:options:afterDate:"); + late final _sel_scanHexLongLong_1 = _registerName1("scanHexLongLong:"); + late final _sel_scanHexFloat_1 = _registerName1("scanHexFloat:"); + late final _sel_scanHexDouble_1 = _registerName1("scanHexDouble:"); + late final _sel_scanString_intoString_1 = + _registerName1("scanString:intoString:"); bool _objc_msgSend_756( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer> datep, - ffi.Pointer tip, - int options, - ffi.Pointer date, + ffi.Pointer string, + ffi.Pointer> result, ) { return __objc_msgSend_756( obj, sel, - datep, - tip, - options, - date, + string, + result, ); } @@ -21328,215 +21507,179 @@ class SentryCocoa { ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - ffi.Int32, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_756 = __objc_msgSend_756Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer, - int, - ffi.Pointer)>(); + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); - late final _sel_components_fromDateComponents_toDateComponents_options_1 = - _registerName1("components:fromDateComponents:toDateComponents:options:"); - ffi.Pointer _objc_msgSend_757( + late final _sel_scanCharactersFromSet_intoString_1 = + _registerName1("scanCharactersFromSet:intoString:"); + bool _objc_msgSend_757( ffi.Pointer obj, ffi.Pointer sel, - int unitFlags, - ffi.Pointer startingDateComp, - ffi.Pointer resultDateComp, - int options, + ffi.Pointer set1, + ffi.Pointer> result, ) { return __objc_msgSend_757( obj, sel, - unitFlags, - startingDateComp, - resultDateComp, - options, + set1, + result, ); } late final __objc_msgSend_757Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_757 = __objc_msgSend_757Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - int)>(); + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); - late final _sel_dateByAddingUnit_value_toDate_options_1 = - _registerName1("dateByAddingUnit:value:toDate:options:"); - ffi.Pointer _objc_msgSend_758( + late final _sel_scanUpToString_intoString_1 = + _registerName1("scanUpToString:intoString:"); + late final _sel_scanUpToCharactersFromSet_intoString_1 = + _registerName1("scanUpToCharactersFromSet:intoString:"); + late final _sel_isAtEnd1 = _registerName1("isAtEnd"); + late final _sel_scannerWithString_1 = _registerName1("scannerWithString:"); + late final _sel_localizedScannerWithString_1 = + _registerName1("localizedScannerWithString:"); + late final _sel_scanDecimal_1 = _registerName1("scanDecimal:"); + bool _objc_msgSend_758( ffi.Pointer obj, ffi.Pointer sel, - int unit, - int value, - ffi.Pointer date, - int options, + ffi.Pointer dcm, ) { return __objc_msgSend_758( obj, sel, - unit, - value, - date, - options, + dcm, ); } late final __objc_msgSend_758Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Long, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_758 = __objc_msgSend_758Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, int, ffi.Pointer, int)>(); + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1 = - _registerName1( - "enumerateDatesStartingAfterDate:matchingComponents:options:usingBlock:"); - void _objc_msgSend_759( + late final _class_NSException1 = _getClass1("NSException"); + late final _sel_exceptionWithName_reason_userInfo_1 = + _registerName1("exceptionWithName:reason:userInfo:"); + ffi.Pointer _objc_msgSend_759( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer start, - ffi.Pointer comps, - int opts, - ffi.Pointer<_ObjCBlock> block, + ffi.Pointer name, + ffi.Pointer reason, + ffi.Pointer userInfo, ) { return __objc_msgSend_759( obj, sel, - start, - comps, - opts, - block, + name, + reason, + userInfo, ); } late final __objc_msgSend_759Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_759 = __objc_msgSend_759Ptr.asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer)>(); - late final _sel_nextDateAfterDate_matchingComponents_options_1 = - _registerName1("nextDateAfterDate:matchingComponents:options:"); - ffi.Pointer _objc_msgSend_760( + late final _sel_initWithName_reason_userInfo_1 = + _registerName1("initWithName:reason:userInfo:"); + late final _sel_reason1 = _registerName1("reason"); + late final _sel_raise1 = _registerName1("raise"); + late final _sel_raise_format_1 = _registerName1("raise:format:"); + late final _sel_raise_format_arguments_1 = + _registerName1("raise:format:arguments:"); + void _objc_msgSend_760( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer date, - ffi.Pointer comps, - int options, + ffi.Pointer name, + ffi.Pointer format, + ffi.Pointer argList, ) { return __objc_msgSend_760( obj, sel, - date, - comps, - options, + name, + format, + argList, ); } late final __objc_msgSend_760Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_760 = __objc_msgSend_760Ptr.asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - int)>(); + ffi.Pointer)>(); - late final _sel_nextDateAfterDate_matchingUnit_value_options_1 = - _registerName1("nextDateAfterDate:matchingUnit:value:options:"); - ffi.Pointer _objc_msgSend_761( + late final _class_NSFileHandle1 = _getClass1("NSFileHandle"); + late final _sel_availableData1 = _registerName1("availableData"); + late final _sel_initWithFileDescriptor_closeOnDealloc_1 = + _registerName1("initWithFileDescriptor:closeOnDealloc:"); + instancetype _objc_msgSend_761( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer date, - int unit, - int value, - int options, + int fd, + bool closeopt, ) { return __objc_msgSend_761( obj, sel, - date, - unit, - value, - options, + fd, + closeopt, ); } late final __objc_msgSend_761Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Long, - ffi.Int32)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Int, ffi.Bool)>>('objc_msgSend'); late final __objc_msgSend_761 = __objc_msgSend_761Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, int, int)>(); + instancetype Function( + ffi.Pointer, ffi.Pointer, int, bool)>(); - late final _sel_nextDateAfterDate_matchingHour_minute_second_options_1 = - _registerName1("nextDateAfterDate:matchingHour:minute:second:options:"); + late final _sel_readDataToEndOfFileAndReturnError_1 = + _registerName1("readDataToEndOfFileAndReturnError:"); ffi.Pointer _objc_msgSend_762( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer date, - int hourValue, - int minuteValue, - int secondValue, - int options, + ffi.Pointer> error, ) { return __objc_msgSend_762( obj, sel, - date, - hourValue, - minuteValue, - secondValue, - options, + error, ); } @@ -21545,36 +21688,24 @@ class SentryCocoa { ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Long, - ffi.Long, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_762 = __objc_msgSend_762Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, int, int, int)>(); + ffi.Pointer, ffi.Pointer>)>(); - late final _sel_dateBySettingUnit_value_ofDate_options_1 = - _registerName1("dateBySettingUnit:value:ofDate:options:"); - late final _sel_dateBySettingHour_minute_second_ofDate_options_1 = - _registerName1("dateBySettingHour:minute:second:ofDate:options:"); + late final _sel_readDataUpToLength_error_1 = + _registerName1("readDataUpToLength:error:"); ffi.Pointer _objc_msgSend_763( ffi.Pointer obj, ffi.Pointer sel, - int h, - int m, - int s, - ffi.Pointer date, - int opts, + int length, + ffi.Pointer> error, ) { return __objc_msgSend_763( obj, sel, - h, - m, - s, - date, - opts, + length, + error, ); } @@ -21583,28 +21714,24 @@ class SentryCocoa { ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Long, - ffi.Long, - ffi.Long, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.UnsignedLong, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_763 = __objc_msgSend_763Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, int, int, ffi.Pointer, int)>(); + ffi.Pointer, int, ffi.Pointer>)>(); - late final _sel_date_matchesComponents_1 = - _registerName1("date:matchesComponents:"); + late final _sel_writeData_error_1 = _registerName1("writeData:error:"); bool _objc_msgSend_764( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer date, - ffi.Pointer components, + ffi.Pointer data, + ffi.Pointer> error, ) { return __objc_msgSend_764( obj, sel, - date, - components, + data, + error, ); } @@ -21614,153 +21741,155 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_764 = __objc_msgSend_764Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer>)>(); - late final _sel_isLenient1 = _registerName1("isLenient"); - late final _sel_setLenient_1 = _registerName1("setLenient:"); - late final _sel_twoDigitStartDate1 = _registerName1("twoDigitStartDate"); - late final _sel_setTwoDigitStartDate_1 = - _registerName1("setTwoDigitStartDate:"); - late final _sel_defaultDate1 = _registerName1("defaultDate"); - late final _sel_setDefaultDate_1 = _registerName1("setDefaultDate:"); - late final _sel_setEraSymbols_1 = _registerName1("setEraSymbols:"); - void _objc_msgSend_765( + late final _sel_getOffset_error_1 = _registerName1("getOffset:error:"); + bool _objc_msgSend_765( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, + ffi.Pointer offsetInFile, + ffi.Pointer> error, ) { return __objc_msgSend_765( obj, sel, - value, + offsetInFile, + error, ); } late final __objc_msgSend_765Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_765 = __objc_msgSend_765Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_setMonthSymbols_1 = _registerName1("setMonthSymbols:"); - late final _sel_setShortMonthSymbols_1 = - _registerName1("setShortMonthSymbols:"); - late final _sel_setWeekdaySymbols_1 = _registerName1("setWeekdaySymbols:"); - late final _sel_setShortWeekdaySymbols_1 = - _registerName1("setShortWeekdaySymbols:"); - late final _sel_setAMSymbol_1 = _registerName1("setAMSymbol:"); - late final _sel_setPMSymbol_1 = _registerName1("setPMSymbol:"); - late final _sel_setLongEraSymbols_1 = _registerName1("setLongEraSymbols:"); - late final _sel_setVeryShortMonthSymbols_1 = - _registerName1("setVeryShortMonthSymbols:"); - late final _sel_setStandaloneMonthSymbols_1 = - _registerName1("setStandaloneMonthSymbols:"); - late final _sel_setShortStandaloneMonthSymbols_1 = - _registerName1("setShortStandaloneMonthSymbols:"); - late final _sel_setVeryShortStandaloneMonthSymbols_1 = - _registerName1("setVeryShortStandaloneMonthSymbols:"); - late final _sel_setVeryShortWeekdaySymbols_1 = - _registerName1("setVeryShortWeekdaySymbols:"); - late final _sel_setStandaloneWeekdaySymbols_1 = - _registerName1("setStandaloneWeekdaySymbols:"); - late final _sel_setShortStandaloneWeekdaySymbols_1 = - _registerName1("setShortStandaloneWeekdaySymbols:"); - late final _sel_setVeryShortStandaloneWeekdaySymbols_1 = - _registerName1("setVeryShortStandaloneWeekdaySymbols:"); - late final _sel_setQuarterSymbols_1 = _registerName1("setQuarterSymbols:"); - late final _sel_setShortQuarterSymbols_1 = - _registerName1("setShortQuarterSymbols:"); - late final _sel_setStandaloneQuarterSymbols_1 = - _registerName1("setStandaloneQuarterSymbols:"); - late final _sel_setShortStandaloneQuarterSymbols_1 = - _registerName1("setShortStandaloneQuarterSymbols:"); - late final _sel_gregorianStartDate1 = _registerName1("gregorianStartDate"); - late final _sel_setGregorianStartDate_1 = - _registerName1("setGregorianStartDate:"); - late final _sel_doesRelativeDateFormatting1 = - _registerName1("doesRelativeDateFormatting"); - late final _sel_setDoesRelativeDateFormatting_1 = - _registerName1("setDoesRelativeDateFormatting:"); - late final _sel_initWithDateFormat_allowNaturalLanguage_1 = - _registerName1("initWithDateFormat:allowNaturalLanguage:"); - late final _sel_allowsNaturalLanguage1 = - _registerName1("allowsNaturalLanguage"); - late final _class_NSNumberFormatter1 = _getClass1("NSNumberFormatter"); - late final _sel_stringFromNumber_1 = _registerName1("stringFromNumber:"); - ffi.Pointer _objc_msgSend_766( + late final _sel_seekToEndReturningOffset_error_1 = + _registerName1("seekToEndReturningOffset:error:"); + late final _sel_seekToOffset_error_1 = _registerName1("seekToOffset:error:"); + bool _objc_msgSend_766( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer number, + int offset, + ffi.Pointer> error, ) { return __objc_msgSend_766( obj, sel, - number, + offset, + error, ); } late final __objc_msgSend_766Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLongLong, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_766 = __objc_msgSend_766Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + bool Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer>)>(); - late final _sel_numberFromString_1 = _registerName1("numberFromString:"); + late final _sel_truncateAtOffset_error_1 = + _registerName1("truncateAtOffset:error:"); + late final _sel_synchronizeAndReturnError_1 = + _registerName1("synchronizeAndReturnError:"); + late final _sel_closeAndReturnError_1 = + _registerName1("closeAndReturnError:"); + late final _sel_fileHandleWithStandardInput1 = + _registerName1("fileHandleWithStandardInput"); ffi.Pointer _objc_msgSend_767( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer string, ) { return __objc_msgSend_767( obj, sel, - string, ); } late final __objc_msgSend_767Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_767 = __objc_msgSend_767Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_localizedStringFromNumber_numberStyle_1 = - _registerName1("localizedStringFromNumber:numberStyle:"); - ffi.Pointer _objc_msgSend_768( + late final _sel_fileHandleWithStandardOutput1 = + _registerName1("fileHandleWithStandardOutput"); + late final _sel_fileHandleWithStandardError1 = + _registerName1("fileHandleWithStandardError"); + late final _sel_fileHandleWithNullDevice1 = + _registerName1("fileHandleWithNullDevice"); + late final _sel_fileHandleForReadingAtPath_1 = + _registerName1("fileHandleForReadingAtPath:"); + late final _sel_fileHandleForWritingAtPath_1 = + _registerName1("fileHandleForWritingAtPath:"); + late final _sel_fileHandleForUpdatingAtPath_1 = + _registerName1("fileHandleForUpdatingAtPath:"); + late final _sel_fileHandleForReadingFromURL_error_1 = + _registerName1("fileHandleForReadingFromURL:error:"); + instancetype _objc_msgSend_768( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer num, - int nstyle, + ffi.Pointer url, + ffi.Pointer> error, ) { return __objc_msgSend_768( obj, sel, - num, - nstyle, + url, + error, ); } late final __objc_msgSend_768Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_768 = __objc_msgSend_768Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer>)>(); - int _objc_msgSend_769( + late final _sel_fileHandleForWritingToURL_error_1 = + _registerName1("fileHandleForWritingToURL:error:"); + late final _sel_fileHandleForUpdatingURL_error_1 = + _registerName1("fileHandleForUpdatingURL:error:"); + late final _sel_readInBackgroundAndNotifyForModes_1 = + _registerName1("readInBackgroundAndNotifyForModes:"); + late final _sel_readInBackgroundAndNotify1 = + _registerName1("readInBackgroundAndNotify"); + late final _sel_readToEndOfFileInBackgroundAndNotifyForModes_1 = + _registerName1("readToEndOfFileInBackgroundAndNotifyForModes:"); + late final _sel_readToEndOfFileInBackgroundAndNotify1 = + _registerName1("readToEndOfFileInBackgroundAndNotify"); + late final _sel_acceptConnectionInBackgroundAndNotifyForModes_1 = + _registerName1("acceptConnectionInBackgroundAndNotifyForModes:"); + late final _sel_acceptConnectionInBackgroundAndNotify1 = + _registerName1("acceptConnectionInBackgroundAndNotify"); + late final _sel_waitForDataInBackgroundAndNotifyForModes_1 = + _registerName1("waitForDataInBackgroundAndNotifyForModes:"); + late final _sel_waitForDataInBackgroundAndNotify1 = + _registerName1("waitForDataInBackgroundAndNotify"); + late final _sel_readabilityHandler1 = _registerName1("readabilityHandler"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_769( ffi.Pointer obj, ffi.Pointer sel, ) { @@ -21772,360 +21901,259 @@ class SentryCocoa { late final __objc_msgSend_769Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer<_ObjCBlock> Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_769 = __objc_msgSend_769Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); + late final _sel_setReadabilityHandler_1 = + _registerName1("setReadabilityHandler:"); void _objc_msgSend_770( ffi.Pointer obj, ffi.Pointer sel, - int behavior, + ffi.Pointer<_ObjCBlock> value, ) { return __objc_msgSend_770( obj, sel, - behavior, + value, ); } late final __objc_msgSend_770Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_770 = __objc_msgSend_770Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_numberStyle1 = _registerName1("numberStyle"); - int _objc_msgSend_771( + late final _sel_writeabilityHandler1 = _registerName1("writeabilityHandler"); + late final _sel_setWriteabilityHandler_1 = + _registerName1("setWriteabilityHandler:"); + late final _sel_initWithFileDescriptor_1 = + _registerName1("initWithFileDescriptor:"); + instancetype _objc_msgSend_771( ffi.Pointer obj, ffi.Pointer sel, + int fd, ) { return __objc_msgSend_771( obj, sel, + fd, ); } late final __objc_msgSend_771Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Int)>>('objc_msgSend'); late final __objc_msgSend_771 = __objc_msgSend_771Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + instancetype Function( + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_setNumberStyle_1 = _registerName1("setNumberStyle:"); + late final _sel_fileDescriptor1 = _registerName1("fileDescriptor"); + late final _sel_readDataToEndOfFile1 = _registerName1("readDataToEndOfFile"); + late final _sel_readDataOfLength_1 = _registerName1("readDataOfLength:"); + late final _sel_offsetInFile1 = _registerName1("offsetInFile"); + late final _sel_seekToEndOfFile1 = _registerName1("seekToEndOfFile"); + late final _sel_seekToFileOffset_1 = _registerName1("seekToFileOffset:"); void _objc_msgSend_772( ffi.Pointer obj, ffi.Pointer sel, - int value, + int offset, ) { return __objc_msgSend_772( obj, sel, - value, + offset, ); } late final __objc_msgSend_772Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.UnsignedLongLong)>>('objc_msgSend'); late final __objc_msgSend_772 = __objc_msgSend_772Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_generatesDecimalNumbers1 = - _registerName1("generatesDecimalNumbers"); - late final _sel_setGeneratesDecimalNumbers_1 = - _registerName1("setGeneratesDecimalNumbers:"); - void _objc_msgSend_773( + late final _sel_truncateFileAtOffset_1 = + _registerName1("truncateFileAtOffset:"); + late final _sel_synchronizeFile1 = _registerName1("synchronizeFile"); + late final _sel_closeFile1 = _registerName1("closeFile"); + late final _class_NSHTTPCookieStorage1 = _getClass1("NSHTTPCookieStorage"); + late final _sel_sharedHTTPCookieStorage1 = + _registerName1("sharedHTTPCookieStorage"); + ffi.Pointer _objc_msgSend_773( ffi.Pointer obj, ffi.Pointer sel, - int value, ) { return __objc_msgSend_773( obj, sel, - value, ); } late final __objc_msgSend_773Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_773 = __objc_msgSend_773Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_negativeFormat1 = _registerName1("negativeFormat"); - late final _sel_setNegativeFormat_1 = _registerName1("setNegativeFormat:"); - late final _sel_textAttributesForNegativeValues1 = - _registerName1("textAttributesForNegativeValues"); - late final _sel_setTextAttributesForNegativeValues_1 = - _registerName1("setTextAttributesForNegativeValues:"); - late final _sel_positiveFormat1 = _registerName1("positiveFormat"); - late final _sel_setPositiveFormat_1 = _registerName1("setPositiveFormat:"); - late final _sel_textAttributesForPositiveValues1 = - _registerName1("textAttributesForPositiveValues"); - late final _sel_setTextAttributesForPositiveValues_1 = - _registerName1("setTextAttributesForPositiveValues:"); - late final _sel_allowsFloats1 = _registerName1("allowsFloats"); - late final _sel_setAllowsFloats_1 = _registerName1("setAllowsFloats:"); - late final _sel_setDecimalSeparator_1 = - _registerName1("setDecimalSeparator:"); - late final _sel_alwaysShowsDecimalSeparator1 = - _registerName1("alwaysShowsDecimalSeparator"); - late final _sel_setAlwaysShowsDecimalSeparator_1 = - _registerName1("setAlwaysShowsDecimalSeparator:"); - late final _sel_currencyDecimalSeparator1 = - _registerName1("currencyDecimalSeparator"); - late final _sel_setCurrencyDecimalSeparator_1 = - _registerName1("setCurrencyDecimalSeparator:"); - late final _sel_usesGroupingSeparator1 = - _registerName1("usesGroupingSeparator"); - late final _sel_setUsesGroupingSeparator_1 = - _registerName1("setUsesGroupingSeparator:"); - late final _sel_setGroupingSeparator_1 = - _registerName1("setGroupingSeparator:"); - late final _sel_zeroSymbol1 = _registerName1("zeroSymbol"); - late final _sel_setZeroSymbol_1 = _registerName1("setZeroSymbol:"); - late final _sel_textAttributesForZero1 = - _registerName1("textAttributesForZero"); - late final _sel_setTextAttributesForZero_1 = - _registerName1("setTextAttributesForZero:"); - late final _sel_nilSymbol1 = _registerName1("nilSymbol"); - late final _sel_setNilSymbol_1 = _registerName1("setNilSymbol:"); - late final _sel_textAttributesForNil1 = - _registerName1("textAttributesForNil"); - late final _sel_setTextAttributesForNil_1 = - _registerName1("setTextAttributesForNil:"); - late final _sel_notANumberSymbol1 = _registerName1("notANumberSymbol"); - late final _sel_setNotANumberSymbol_1 = - _registerName1("setNotANumberSymbol:"); - late final _sel_textAttributesForNotANumber1 = - _registerName1("textAttributesForNotANumber"); - late final _sel_setTextAttributesForNotANumber_1 = - _registerName1("setTextAttributesForNotANumber:"); - late final _sel_positiveInfinitySymbol1 = - _registerName1("positiveInfinitySymbol"); - late final _sel_setPositiveInfinitySymbol_1 = - _registerName1("setPositiveInfinitySymbol:"); - late final _sel_textAttributesForPositiveInfinity1 = - _registerName1("textAttributesForPositiveInfinity"); - late final _sel_setTextAttributesForPositiveInfinity_1 = - _registerName1("setTextAttributesForPositiveInfinity:"); - late final _sel_negativeInfinitySymbol1 = - _registerName1("negativeInfinitySymbol"); - late final _sel_setNegativeInfinitySymbol_1 = - _registerName1("setNegativeInfinitySymbol:"); - late final _sel_textAttributesForNegativeInfinity1 = - _registerName1("textAttributesForNegativeInfinity"); - late final _sel_setTextAttributesForNegativeInfinity_1 = - _registerName1("setTextAttributesForNegativeInfinity:"); - late final _sel_positivePrefix1 = _registerName1("positivePrefix"); - late final _sel_setPositivePrefix_1 = _registerName1("setPositivePrefix:"); - late final _sel_positiveSuffix1 = _registerName1("positiveSuffix"); - late final _sel_setPositiveSuffix_1 = _registerName1("setPositiveSuffix:"); - late final _sel_negativePrefix1 = _registerName1("negativePrefix"); - late final _sel_setNegativePrefix_1 = _registerName1("setNegativePrefix:"); - late final _sel_negativeSuffix1 = _registerName1("negativeSuffix"); - late final _sel_setNegativeSuffix_1 = _registerName1("setNegativeSuffix:"); - late final _sel_setCurrencyCode_1 = _registerName1("setCurrencyCode:"); - late final _sel_setCurrencySymbol_1 = _registerName1("setCurrencySymbol:"); - late final _sel_internationalCurrencySymbol1 = - _registerName1("internationalCurrencySymbol"); - late final _sel_setInternationalCurrencySymbol_1 = - _registerName1("setInternationalCurrencySymbol:"); - late final _sel_percentSymbol1 = _registerName1("percentSymbol"); - late final _sel_setPercentSymbol_1 = _registerName1("setPercentSymbol:"); - late final _sel_perMillSymbol1 = _registerName1("perMillSymbol"); - late final _sel_setPerMillSymbol_1 = _registerName1("setPerMillSymbol:"); - late final _sel_minusSign1 = _registerName1("minusSign"); - late final _sel_setMinusSign_1 = _registerName1("setMinusSign:"); - late final _sel_plusSign1 = _registerName1("plusSign"); - late final _sel_setPlusSign_1 = _registerName1("setPlusSign:"); - late final _sel_exponentSymbol1 = _registerName1("exponentSymbol"); - late final _sel_setExponentSymbol_1 = _registerName1("setExponentSymbol:"); - late final _sel_groupingSize1 = _registerName1("groupingSize"); - late final _sel_setGroupingSize_1 = _registerName1("setGroupingSize:"); - late final _sel_secondaryGroupingSize1 = - _registerName1("secondaryGroupingSize"); - late final _sel_setSecondaryGroupingSize_1 = - _registerName1("setSecondaryGroupingSize:"); - late final _sel_multiplier1 = _registerName1("multiplier"); - late final _sel_setMultiplier_1 = _registerName1("setMultiplier:"); - late final _sel_formatWidth1 = _registerName1("formatWidth"); - late final _sel_setFormatWidth_1 = _registerName1("setFormatWidth:"); - late final _sel_paddingCharacter1 = _registerName1("paddingCharacter"); - late final _sel_setPaddingCharacter_1 = - _registerName1("setPaddingCharacter:"); - late final _sel_paddingPosition1 = _registerName1("paddingPosition"); - int _objc_msgSend_774( + late final _sel_sharedCookieStorageForGroupContainerIdentifier_1 = + _registerName1("sharedCookieStorageForGroupContainerIdentifier:"); + ffi.Pointer _objc_msgSend_774( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer identifier, ) { return __objc_msgSend_774( obj, sel, + identifier, ); } late final __objc_msgSend_774Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_774 = __objc_msgSend_774Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_setPaddingPosition_1 = _registerName1("setPaddingPosition:"); - void _objc_msgSend_775( + late final _sel_cookies1 = _registerName1("cookies"); + late final _class_NSHTTPCookie1 = _getClass1("NSHTTPCookie"); + late final _sel_initWithProperties_1 = _registerName1("initWithProperties:"); + late final _sel_cookieWithProperties_1 = + _registerName1("cookieWithProperties:"); + ffi.Pointer _objc_msgSend_775( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer properties, ) { return __objc_msgSend_775( obj, sel, - value, + properties, ); } late final __objc_msgSend_775Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_775 = __objc_msgSend_775Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_roundingMode1 = _registerName1("roundingMode"); - int _objc_msgSend_776( + late final _sel_requestHeaderFieldsWithCookies_1 = + _registerName1("requestHeaderFieldsWithCookies:"); + late final _sel_cookiesWithResponseHeaderFields_forURL_1 = + _registerName1("cookiesWithResponseHeaderFields:forURL:"); + ffi.Pointer _objc_msgSend_776( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer headerFields, + ffi.Pointer URL, ) { return __objc_msgSend_776( obj, sel, + headerFields, + URL, ); } late final __objc_msgSend_776Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_776 = __objc_msgSend_776Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_setRoundingMode_1 = _registerName1("setRoundingMode:"); + late final _sel_properties1 = _registerName1("properties"); + late final _sel_value1 = _registerName1("value"); + late final _sel_expiresDate1 = _registerName1("expiresDate"); + late final _sel_isSessionOnly1 = _registerName1("isSessionOnly"); + late final _sel_isSecure1 = _registerName1("isSecure"); + late final _sel_isHTTPOnly1 = _registerName1("isHTTPOnly"); + late final _sel_comment1 = _registerName1("comment"); + late final _sel_commentURL1 = _registerName1("commentURL"); + late final _sel_portList1 = _registerName1("portList"); + late final _sel_sameSitePolicy1 = _registerName1("sameSitePolicy"); + late final _sel_setCookie_1 = _registerName1("setCookie:"); void _objc_msgSend_777( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer cookie, ) { return __objc_msgSend_777( obj, sel, - value, + cookie, ); } late final __objc_msgSend_777Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_777 = __objc_msgSend_777Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_roundingIncrement1 = _registerName1("roundingIncrement"); - late final _sel_setRoundingIncrement_1 = - _registerName1("setRoundingIncrement:"); - late final _sel_minimumIntegerDigits1 = - _registerName1("minimumIntegerDigits"); - late final _sel_setMinimumIntegerDigits_1 = - _registerName1("setMinimumIntegerDigits:"); - late final _sel_maximumIntegerDigits1 = - _registerName1("maximumIntegerDigits"); - late final _sel_setMaximumIntegerDigits_1 = - _registerName1("setMaximumIntegerDigits:"); - late final _sel_minimumFractionDigits1 = - _registerName1("minimumFractionDigits"); - late final _sel_setMinimumFractionDigits_1 = - _registerName1("setMinimumFractionDigits:"); - late final _sel_maximumFractionDigits1 = - _registerName1("maximumFractionDigits"); - late final _sel_setMaximumFractionDigits_1 = - _registerName1("setMaximumFractionDigits:"); - late final _sel_minimum1 = _registerName1("minimum"); - late final _sel_setMinimum_1 = _registerName1("setMinimum:"); - late final _sel_maximum1 = _registerName1("maximum"); - late final _sel_setMaximum_1 = _registerName1("setMaximum:"); - late final _sel_currencyGroupingSeparator1 = - _registerName1("currencyGroupingSeparator"); - late final _sel_setCurrencyGroupingSeparator_1 = - _registerName1("setCurrencyGroupingSeparator:"); - late final _sel_usesSignificantDigits1 = - _registerName1("usesSignificantDigits"); - late final _sel_setUsesSignificantDigits_1 = - _registerName1("setUsesSignificantDigits:"); - late final _sel_minimumSignificantDigits1 = - _registerName1("minimumSignificantDigits"); - late final _sel_setMinimumSignificantDigits_1 = - _registerName1("setMinimumSignificantDigits:"); - late final _sel_maximumSignificantDigits1 = - _registerName1("maximumSignificantDigits"); - late final _sel_setMaximumSignificantDigits_1 = - _registerName1("setMaximumSignificantDigits:"); - late final _sel_isPartialStringValidationEnabled1 = - _registerName1("isPartialStringValidationEnabled"); - late final _sel_setPartialStringValidationEnabled_1 = - _registerName1("setPartialStringValidationEnabled:"); - late final _sel_hasThousandSeparators1 = - _registerName1("hasThousandSeparators"); - late final _sel_setHasThousandSeparators_1 = - _registerName1("setHasThousandSeparators:"); - late final _sel_thousandSeparator1 = _registerName1("thousandSeparator"); - late final _sel_setThousandSeparator_1 = - _registerName1("setThousandSeparator:"); - late final _sel_localizesFormat1 = _registerName1("localizesFormat"); - late final _sel_setLocalizesFormat_1 = _registerName1("setLocalizesFormat:"); - late final _sel_format1 = _registerName1("format"); - late final _sel_setFormat_1 = _registerName1("setFormat:"); - late final _sel_attributedStringForZero1 = - _registerName1("attributedStringForZero"); - late final _sel_setAttributedStringForZero_1 = - _registerName1("setAttributedStringForZero:"); + late final _sel_deleteCookie_1 = _registerName1("deleteCookie:"); + late final _sel_removeCookiesSinceDate_1 = + _registerName1("removeCookiesSinceDate:"); + late final _sel_cookiesForURL_1 = _registerName1("cookiesForURL:"); + late final _sel_setCookies_forURL_mainDocumentURL_1 = + _registerName1("setCookies:forURL:mainDocumentURL:"); void _objc_msgSend_778( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, + ffi.Pointer cookies, + ffi.Pointer URL, + ffi.Pointer mainDocumentURL, ) { return __objc_msgSend_778( obj, sel, - value, + cookies, + URL, + mainDocumentURL, ); } late final __objc_msgSend_778Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_778 = __objc_msgSend_778Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_attributedStringForNil1 = - _registerName1("attributedStringForNil"); - late final _sel_setAttributedStringForNil_1 = - _registerName1("setAttributedStringForNil:"); - late final _sel_attributedStringForNotANumber1 = - _registerName1("attributedStringForNotANumber"); - late final _sel_setAttributedStringForNotANumber_1 = - _registerName1("setAttributedStringForNotANumber:"); - late final _class_NSDecimalNumberHandler1 = - _getClass1("NSDecimalNumberHandler"); - late final _sel_defaultDecimalNumberHandler1 = - _registerName1("defaultDecimalNumberHandler"); - ffi.Pointer _objc_msgSend_779( + late final _sel_cookieAcceptPolicy1 = _registerName1("cookieAcceptPolicy"); + int _objc_msgSend_779( ffi.Pointer obj, ffi.Pointer sel, ) { @@ -22137,626 +22165,663 @@ class SentryCocoa { late final __objc_msgSend_779Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_779 = __objc_msgSend_779Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + int 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_780( + late final _sel_setCookieAcceptPolicy_1 = + _registerName1("setCookieAcceptPolicy:"); + void _objc_msgSend_780( ffi.Pointer obj, ffi.Pointer sel, - int roundingMode, - int scale, - bool exact, - bool overflow, - bool underflow, - bool divideByZero, + int value, ) { return __objc_msgSend_780( obj, sel, - roundingMode, - scale, - exact, - overflow, - underflow, - divideByZero, + value, ); } late final __objc_msgSend_780Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Short, - ffi.Bool, - ffi.Bool, - ffi.Bool, - ffi.Bool)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_780 = __objc_msgSend_780Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, int, - int, bool, bool, bool, bool)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1 = - _registerName1( - "decimalNumberHandlerWithRoundingMode:scale:raiseOnExactness:raiseOnOverflow:raiseOnUnderflow:raiseOnDivideByZero:"); - late final _sel_roundingBehavior1 = _registerName1("roundingBehavior"); - late final _sel_setRoundingBehavior_1 = - _registerName1("setRoundingBehavior:"); - void _objc_msgSend_781( - ffi.Pointer obj, + late final _sel_sortedCookiesUsingDescriptors_1 = + _registerName1("sortedCookiesUsingDescriptors:"); + late final _class_NSURLSessionTask1 = _getClass1("NSURLSessionTask"); + late final _sel_taskIdentifier1 = _registerName1("taskIdentifier"); + late final _class_NSURLRequest1 = _getClass1("NSURLRequest"); + late final _sel_requestWithURL_1 = _registerName1("requestWithURL:"); + late final _sel_supportsSecureCoding1 = + _registerName1("supportsSecureCoding"); + late final _sel_requestWithURL_cachePolicy_timeoutInterval_1 = + _registerName1("requestWithURL:cachePolicy:timeoutInterval:"); + instancetype _objc_msgSend_781( + ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, + ffi.Pointer URL, + int cachePolicy, + double timeoutInterval, ) { return __objc_msgSend_781( obj, sel, - value, + URL, + cachePolicy, + timeoutInterval, ); } late final __objc_msgSend_781Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32, ffi.Double)>>('objc_msgSend'); late final __objc_msgSend_781 = __objc_msgSend_781Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, double)>(); - late final _class_NSScanner1 = _getClass1("NSScanner"); - late final _sel_scanLocation1 = _registerName1("scanLocation"); - late final _sel_setScanLocation_1 = _registerName1("setScanLocation:"); - late final _sel_charactersToBeSkipped1 = - _registerName1("charactersToBeSkipped"); - late final _sel_setCharactersToBeSkipped_1 = - _registerName1("setCharactersToBeSkipped:"); - void _objc_msgSend_782( + 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_782( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, ) { return __objc_msgSend_782( obj, sel, - value, ); } late final __objc_msgSend_782Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_782 = __objc_msgSend_782Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + int Function(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_783( + late final _sel_timeoutInterval1 = _registerName1("timeoutInterval"); + late final _sel_mainDocumentURL1 = _registerName1("mainDocumentURL"); + late final _sel_networkServiceType1 = _registerName1("networkServiceType"); + int _objc_msgSend_783( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer result, ) { return __objc_msgSend_783( obj, sel, - result, ); } late final __objc_msgSend_783Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_783 = __objc_msgSend_783Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_scanInteger_1 = _registerName1("scanInteger:"); - bool _objc_msgSend_784( + late final _sel_allowsCellularAccess1 = + _registerName1("allowsCellularAccess"); + late final _sel_allowsExpensiveNetworkAccess1 = + _registerName1("allowsExpensiveNetworkAccess"); + late final _sel_allowsConstrainedNetworkAccess1 = + _registerName1("allowsConstrainedNetworkAccess"); + late final _sel_assumesHTTP3Capable1 = _registerName1("assumesHTTP3Capable"); + late final _sel_attribution1 = _registerName1("attribution"); + int _objc_msgSend_784( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer result, ) { return __objc_msgSend_784( obj, sel, - result, ); } late final __objc_msgSend_784Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_784 = __objc_msgSend_784Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_scanLongLong_1 = _registerName1("scanLongLong:"); - bool _objc_msgSend_785( + late final _sel_requiresDNSSECValidation1 = + _registerName1("requiresDNSSECValidation"); + late final _sel_HTTPMethod1 = _registerName1("HTTPMethod"); + late final _sel_allHTTPHeaderFields1 = _registerName1("allHTTPHeaderFields"); + late final _sel_valueForHTTPHeaderField_1 = + _registerName1("valueForHTTPHeaderField:"); + late final _sel_HTTPBody1 = _registerName1("HTTPBody"); + late final _class_NSInputStream1 = _getClass1("NSInputStream"); + late final _class_NSStream1 = _getClass1("NSStream"); + late final _sel_open1 = _registerName1("open"); + late final _sel_close1 = _registerName1("close"); + late final _sel_streamStatus1 = _registerName1("streamStatus"); + int _objc_msgSend_785( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer result, ) { return __objc_msgSend_785( obj, sel, - result, ); } late final __objc_msgSend_785Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_785 = __objc_msgSend_785Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_scanUnsignedLongLong_1 = - _registerName1("scanUnsignedLongLong:"); - bool _objc_msgSend_786( + late final _sel_streamError1 = _registerName1("streamError"); + late final _class_NSOutputStream1 = _getClass1("NSOutputStream"); + late final _sel_write_maxLength_1 = _registerName1("write:maxLength:"); + int _objc_msgSend_786( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer result, + ffi.Pointer buffer, + int len, ) { return __objc_msgSend_786( obj, sel, - result, + buffer, + len, ); } late final __objc_msgSend_786Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Long Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); late final __objc_msgSend_786 = __objc_msgSend_786Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _sel_scanFloat_1 = _registerName1("scanFloat:"); - bool _objc_msgSend_787( + late final _sel_hasSpaceAvailable1 = _registerName1("hasSpaceAvailable"); + late final _sel_initToMemory1 = _registerName1("initToMemory"); + late final _sel_initToBuffer_capacity_1 = + _registerName1("initToBuffer:capacity:"); + instancetype _objc_msgSend_787( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer result, + ffi.Pointer buffer, + int capacity, ) { return __objc_msgSend_787( obj, sel, - result, + buffer, + capacity, ); } late final __objc_msgSend_787Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); late final __objc_msgSend_787 = __objc_msgSend_787Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _sel_scanDouble_1 = _registerName1("scanDouble:"); - bool _objc_msgSend_788( + late final _sel_initWithURL_append_1 = _registerName1("initWithURL:append:"); + late final _sel_initToFileAtPath_append_1 = + _registerName1("initToFileAtPath:append:"); + late final _sel_outputStreamToMemory1 = + _registerName1("outputStreamToMemory"); + late final _sel_outputStreamToBuffer_capacity_1 = + _registerName1("outputStreamToBuffer:capacity:"); + late final _sel_outputStreamToFileAtPath_append_1 = + _registerName1("outputStreamToFileAtPath:append:"); + late final _sel_outputStreamWithURL_append_1 = + _registerName1("outputStreamWithURL:append:"); + late final _sel_getStreamsToHostWithName_port_inputStream_outputStream_1 = + _registerName1("getStreamsToHostWithName:port:inputStream:outputStream:"); + void _objc_msgSend_788( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer result, + ffi.Pointer hostname, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream, ) { return __objc_msgSend_788( obj, sel, - result, + hostname, + port, + inputStream, + outputStream, ); } late final __objc_msgSend_788Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_788 = __objc_msgSend_788Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>)>(); - late final _sel_scanHexInt_1 = _registerName1("scanHexInt:"); + late final _class_NSHost1 = _getClass1("NSHost"); + late final _sel_currentHost1 = _registerName1("currentHost"); + late final _sel_hostWithName_1 = _registerName1("hostWithName:"); + late final _sel_hostWithAddress_1 = _registerName1("hostWithAddress:"); + late final _sel_isEqualToHost_1 = _registerName1("isEqualToHost:"); bool _objc_msgSend_789( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer result, + ffi.Pointer aHost, ) { return __objc_msgSend_789( obj, sel, - result, + aHost, ); } late final __objc_msgSend_789Ptr = _lookup< ffi.NativeFunction< ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_789 = __objc_msgSend_789Ptr.asFunction< bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer)>(); - late final _sel_scanHexLongLong_1 = _registerName1("scanHexLongLong:"); - late final _sel_scanHexFloat_1 = _registerName1("scanHexFloat:"); - late final _sel_scanHexDouble_1 = _registerName1("scanHexDouble:"); - late final _sel_scanString_intoString_1 = - _registerName1("scanString:intoString:"); - bool _objc_msgSend_790( + 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_790( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer string, - ffi.Pointer> result, + bool flag, ) { return __objc_msgSend_790( obj, sel, - string, - result, + flag, ); } late final __objc_msgSend_790Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); late final __objc_msgSend_790 = __objc_msgSend_790Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); + void Function(ffi.Pointer, ffi.Pointer, bool)>(); - late final _sel_scanCharactersFromSet_intoString_1 = - _registerName1("scanCharactersFromSet:intoString:"); - bool _objc_msgSend_791( + 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_791( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer set1, - ffi.Pointer> result, + ffi.Pointer host, + int port, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream, ) { return __objc_msgSend_791( obj, sel, - set1, - result, + host, + port, + inputStream, + outputStream, ); } late final __objc_msgSend_791Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Long, + ffi.Pointer>, ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_791 = __objc_msgSend_791Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>, + ffi.Pointer>)>(); - late final _sel_scanUpToString_intoString_1 = - _registerName1("scanUpToString:intoString:"); - late final _sel_scanUpToCharactersFromSet_intoString_1 = - _registerName1("scanUpToCharactersFromSet:intoString:"); - late final _sel_isAtEnd1 = _registerName1("isAtEnd"); - late final _sel_scannerWithString_1 = _registerName1("scannerWithString:"); - late final _sel_localizedScannerWithString_1 = - _registerName1("localizedScannerWithString:"); - late final _sel_scanDecimal_1 = _registerName1("scanDecimal:"); - bool _objc_msgSend_792( + late final _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1 = + _registerName1("getBoundStreamsWithBufferSize:inputStream:outputStream:"); + void _objc_msgSend_792( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer dcm, + int bufferSize, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream, ) { return __objc_msgSend_792( obj, sel, - dcm, + bufferSize, + inputStream, + outputStream, ); } late final __objc_msgSend_792Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_792 = __objc_msgSend_792Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + int, + 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_793( + late final _sel_read_maxLength_1 = _registerName1("read:maxLength:"); + late final _sel_getBuffer_length_1 = _registerName1("getBuffer:length:"); + bool _objc_msgSend_793( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer reason, - ffi.Pointer userInfo, + ffi.Pointer> buffer, + ffi.Pointer len, ) { return __objc_msgSend_793( obj, sel, - name, - reason, - userInfo, + buffer, + len, ); } late final __objc_msgSend_793Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer>, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_793 = __objc_msgSend_793Ptr.asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer>, + ffi.Pointer)>(); - late final _sel_initWithName_reason_userInfo_1 = - _registerName1("initWithName:reason:userInfo:"); - late final _sel_reason1 = _registerName1("reason"); - late final _sel_raise1 = _registerName1("raise"); - late final _sel_raise_format_1 = _registerName1("raise:format:"); - late final _sel_raise_format_arguments_1 = - _registerName1("raise:format:arguments:"); - void _objc_msgSend_794( + late final _sel_hasBytesAvailable1 = _registerName1("hasBytesAvailable"); + late final _sel_initWithFileAtPath_1 = _registerName1("initWithFileAtPath:"); + late final _sel_inputStreamWithData_1 = + _registerName1("inputStreamWithData:"); + late final _sel_inputStreamWithFileAtPath_1 = + _registerName1("inputStreamWithFileAtPath:"); + late final _sel_inputStreamWithURL_1 = _registerName1("inputStreamWithURL:"); + late final _sel_HTTPBodyStream1 = _registerName1("HTTPBodyStream"); + ffi.Pointer _objc_msgSend_794( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer format, - ffi.Pointer argList, ) { return __objc_msgSend_794( obj, sel, - name, - format, - argList, ); } late final __objc_msgSend_794Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_794 = __objc_msgSend_794Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, 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_795( + late final _sel_HTTPShouldHandleCookies1 = + _registerName1("HTTPShouldHandleCookies"); + late final _sel_HTTPShouldUsePipelining1 = + _registerName1("HTTPShouldUsePipelining"); + late final _sel_originalRequest1 = _registerName1("originalRequest"); + ffi.Pointer _objc_msgSend_795( ffi.Pointer obj, ffi.Pointer sel, - int fd, - bool closeopt, ) { return __objc_msgSend_795( obj, sel, - fd, - closeopt, ); } late final __objc_msgSend_795Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Int, ffi.Bool)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_795 = __objc_msgSend_795Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, int, bool)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_readDataToEndOfFileAndReturnError_1 = - _registerName1("readDataToEndOfFileAndReturnError:"); - ffi.Pointer _objc_msgSend_796( + late final _sel_currentRequest1 = _registerName1("currentRequest"); + late final _class_NSURLResponse1 = _getClass1("NSURLResponse"); + late final _sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1 = + _registerName1( + "initWithURL:MIMEType:expectedContentLength:textEncodingName:"); + instancetype _objc_msgSend_796( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer> error, + ffi.Pointer URL, + ffi.Pointer MIMEType, + int length, + ffi.Pointer name, ) { return __objc_msgSend_796( obj, sel, - error, + URL, + MIMEType, + length, + name, ); } late final __objc_msgSend_796Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + instancetype Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_796 = __objc_msgSend_796Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); - late final _sel_readDataUpToLength_error_1 = - _registerName1("readDataUpToLength:error:"); + late final _sel_MIMEType1 = _registerName1("MIMEType"); + late final _sel_expectedContentLength1 = + _registerName1("expectedContentLength"); + late final _sel_textEncodingName1 = _registerName1("textEncodingName"); + late final _sel_suggestedFilename1 = _registerName1("suggestedFilename"); + late final _sel_response1 = _registerName1("response"); ffi.Pointer _objc_msgSend_797( ffi.Pointer obj, ffi.Pointer sel, - int length, - ffi.Pointer> error, ) { return __objc_msgSend_797( obj, sel, - length, - error, ); } late final __objc_msgSend_797Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_797 = __objc_msgSend_797Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer>)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_writeData_error_1 = _registerName1("writeData:error:"); - bool _objc_msgSend_798( + late final _sel_progress1 = _registerName1("progress"); + late final _sel_earliestBeginDate1 = _registerName1("earliestBeginDate"); + late final _sel_setEarliestBeginDate_1 = + _registerName1("setEarliestBeginDate:"); + late final _sel_countOfBytesClientExpectsToSend1 = + _registerName1("countOfBytesClientExpectsToSend"); + late final _sel_setCountOfBytesClientExpectsToSend_1 = + _registerName1("setCountOfBytesClientExpectsToSend:"); + late final _sel_countOfBytesClientExpectsToReceive1 = + _registerName1("countOfBytesClientExpectsToReceive"); + late final _sel_setCountOfBytesClientExpectsToReceive_1 = + _registerName1("setCountOfBytesClientExpectsToReceive:"); + late final _sel_countOfBytesSent1 = _registerName1("countOfBytesSent"); + late final _sel_countOfBytesReceived1 = + _registerName1("countOfBytesReceived"); + late final _sel_countOfBytesExpectedToSend1 = + _registerName1("countOfBytesExpectedToSend"); + late final _sel_countOfBytesExpectedToReceive1 = + _registerName1("countOfBytesExpectedToReceive"); + late final _sel_taskDescription1 = _registerName1("taskDescription"); + late final _sel_setTaskDescription_1 = _registerName1("setTaskDescription:"); + late final _sel_state1 = _registerName1("state"); + int _objc_msgSend_798( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer data, - ffi.Pointer> error, ) { return __objc_msgSend_798( obj, sel, - data, - error, ); } late final __objc_msgSend_798Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_798 = __objc_msgSend_798Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_getOffset_error_1 = _registerName1("getOffset:error:"); - bool _objc_msgSend_799( + late final _sel_suspend1 = _registerName1("suspend"); + late final _sel_priority1 = _registerName1("priority"); + late final _sel_setPriority_1 = _registerName1("setPriority:"); + void _objc_msgSend_799( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer offsetInFile, - ffi.Pointer> error, + double value, ) { return __objc_msgSend_799( obj, sel, - offsetInFile, - error, + value, ); } late final __objc_msgSend_799Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Float)>>('objc_msgSend'); late final __objc_msgSend_799 = __objc_msgSend_799Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + void Function(ffi.Pointer, ffi.Pointer, double)>(); - late final _sel_seekToEndReturningOffset_error_1 = - _registerName1("seekToEndReturningOffset:error:"); - late final _sel_seekToOffset_error_1 = _registerName1("seekToOffset:error:"); - bool _objc_msgSend_800( + late final _sel_prefersIncrementalDelivery1 = + _registerName1("prefersIncrementalDelivery"); + late final _sel_setPrefersIncrementalDelivery_1 = + _registerName1("setPrefersIncrementalDelivery:"); + late final _sel_storeCookies_forTask_1 = + _registerName1("storeCookies:forTask:"); + void _objc_msgSend_800( ffi.Pointer obj, ffi.Pointer sel, - int offset, - ffi.Pointer> error, + ffi.Pointer cookies, + ffi.Pointer task, ) { return __objc_msgSend_800( obj, sel, - offset, - error, + cookies, + task, ); } late final __objc_msgSend_800Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLongLong, - ffi.Pointer>)>>('objc_msgSend'); - late final __objc_msgSend_800 = __objc_msgSend_800Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer>)>(); + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_800 = __objc_msgSend_800Ptr.asFunction< + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_truncateAtOffset_error_1 = - _registerName1("truncateAtOffset:error:"); - late final _sel_synchronizeAndReturnError_1 = - _registerName1("synchronizeAndReturnError:"); - late final _sel_closeAndReturnError_1 = - _registerName1("closeAndReturnError:"); - late final _sel_fileHandleWithStandardInput1 = - _registerName1("fileHandleWithStandardInput"); - ffi.Pointer _objc_msgSend_801( + late final _sel_getCookiesForTask_completionHandler_1 = + _registerName1("getCookiesForTask:completionHandler:"); + void _objc_msgSend_801( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer task, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_801( obj, sel, + task, + completionHandler, ); } late final __objc_msgSend_801Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_801 = __objc_msgSend_801Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_fileHandleWithStandardOutput1 = - _registerName1("fileHandleWithStandardOutput"); - late final _sel_fileHandleWithStandardError1 = - _registerName1("fileHandleWithStandardError"); - late final _sel_fileHandleWithNullDevice1 = - _registerName1("fileHandleWithNullDevice"); - late final _sel_fileHandleForReadingAtPath_1 = - _registerName1("fileHandleForReadingAtPath:"); - late final _sel_fileHandleForWritingAtPath_1 = - _registerName1("fileHandleForWritingAtPath:"); - late final _sel_fileHandleForUpdatingAtPath_1 = - _registerName1("fileHandleForUpdatingAtPath:"); - late final _sel_fileHandleForReadingFromURL_error_1 = - _registerName1("fileHandleForReadingFromURL:error:"); + late final _class_NSIndexPath1 = _getClass1("NSIndexPath"); + late final _sel_indexPathWithIndex_1 = _registerName1("indexPathWithIndex:"); + late final _sel_indexPathWithIndexes_length_1 = + _registerName1("indexPathWithIndexes:length:"); instancetype _objc_msgSend_802( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer> error, + ffi.Pointer indexes, + int length, ) { return __objc_msgSend_802( obj, sel, - url, - error, + indexes, + length, ); } @@ -22765,297 +22830,223 @@ class SentryCocoa { instancetype Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Pointer, + ffi.UnsignedLong)>>('objc_msgSend'); late final __objc_msgSend_802 = __objc_msgSend_802Ptr.asFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer>)>(); + ffi.Pointer, int)>(); - late final _sel_fileHandleForWritingToURL_error_1 = - _registerName1("fileHandleForWritingToURL:error:"); - late final _sel_fileHandleForUpdatingURL_error_1 = - _registerName1("fileHandleForUpdatingURL:error:"); - late final _sel_readInBackgroundAndNotifyForModes_1 = - _registerName1("readInBackgroundAndNotifyForModes:"); - late final _sel_readInBackgroundAndNotify1 = - _registerName1("readInBackgroundAndNotify"); - late final _sel_readToEndOfFileInBackgroundAndNotifyForModes_1 = - _registerName1("readToEndOfFileInBackgroundAndNotifyForModes:"); - late final _sel_readToEndOfFileInBackgroundAndNotify1 = - _registerName1("readToEndOfFileInBackgroundAndNotify"); - late final _sel_acceptConnectionInBackgroundAndNotifyForModes_1 = - _registerName1("acceptConnectionInBackgroundAndNotifyForModes:"); - late final _sel_acceptConnectionInBackgroundAndNotify1 = - _registerName1("acceptConnectionInBackgroundAndNotify"); - late final _sel_waitForDataInBackgroundAndNotifyForModes_1 = - _registerName1("waitForDataInBackgroundAndNotifyForModes:"); - late final _sel_waitForDataInBackgroundAndNotify1 = - _registerName1("waitForDataInBackgroundAndNotify"); - late final _sel_readabilityHandler1 = _registerName1("readabilityHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_803( + late final _sel_initWithIndexes_length_1 = + _registerName1("initWithIndexes:length:"); + late final _sel_indexPathByAddingIndex_1 = + _registerName1("indexPathByAddingIndex:"); + ffi.Pointer _objc_msgSend_803( ffi.Pointer obj, ffi.Pointer sel, + int index, ) { return __objc_msgSend_803( obj, sel, + index, ); } late final __objc_msgSend_803Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); late final __objc_msgSend_803 = __objc_msgSend_803Ptr.asFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_setReadabilityHandler_1 = - _registerName1("setReadabilityHandler:"); - void _objc_msgSend_804( + late final _sel_indexPathByRemovingLastIndex1 = + _registerName1("indexPathByRemovingLastIndex"); + ffi.Pointer _objc_msgSend_804( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> value, ) { return __objc_msgSend_804( obj, sel, - value, ); } late final __objc_msgSend_804Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_804 = __objc_msgSend_804Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_writeabilityHandler1 = _registerName1("writeabilityHandler"); - late final _sel_setWriteabilityHandler_1 = - _registerName1("setWriteabilityHandler:"); - late final _sel_initWithFileDescriptor_1 = - _registerName1("initWithFileDescriptor:"); - instancetype _objc_msgSend_805( + late final _sel_indexAtPosition_1 = _registerName1("indexAtPosition:"); + late final _sel_getIndexes_range_1 = _registerName1("getIndexes:range:"); + void _objc_msgSend_805( ffi.Pointer obj, ffi.Pointer sel, - int fd, + ffi.Pointer indexes, + _NSRange positionRange, ) { return __objc_msgSend_805( obj, sel, - fd, + indexes, + positionRange, ); } late final __objc_msgSend_805Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Int)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); late final __objc_msgSend_805 = __objc_msgSend_805Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, int)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, _NSRange)>(); - late final _sel_fileDescriptor1 = _registerName1("fileDescriptor"); - late final _sel_readDataToEndOfFile1 = _registerName1("readDataToEndOfFile"); - late final _sel_readDataOfLength_1 = _registerName1("readDataOfLength:"); - late final _sel_offsetInFile1 = _registerName1("offsetInFile"); - late final _sel_seekToEndOfFile1 = _registerName1("seekToEndOfFile"); - late final _sel_seekToFileOffset_1 = _registerName1("seekToFileOffset:"); - void _objc_msgSend_806( + int _objc_msgSend_806( ffi.Pointer obj, ffi.Pointer sel, - int offset, + ffi.Pointer otherObject, ) { return __objc_msgSend_806( obj, sel, - offset, + otherObject, ); } late final __objc_msgSend_806Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLongLong)>>('objc_msgSend'); + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_806 = __objc_msgSend_806Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_truncateFileAtOffset_1 = - _registerName1("truncateFileAtOffset:"); - late final _sel_synchronizeFile1 = _registerName1("synchronizeFile"); - late final _sel_closeFile1 = _registerName1("closeFile"); - late final _class_NSHTTPCookieStorage1 = _getClass1("NSHTTPCookieStorage"); - late final _sel_sharedHTTPCookieStorage1 = - _registerName1("sharedHTTPCookieStorage"); - ffi.Pointer _objc_msgSend_807( + late final _sel_getIndexes_1 = _registerName1("getIndexes:"); + void _objc_msgSend_807( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer indexes, ) { return __objc_msgSend_807( obj, sel, + indexes, ); } late final __objc_msgSend_807Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_807 = __objc_msgSend_807Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_sharedCookieStorageForGroupContainerIdentifier_1 = - _registerName1("sharedCookieStorageForGroupContainerIdentifier:"); + late final _class_NSInflectionRule1 = _getClass1("NSInflectionRule"); + late final _sel_automaticRule1 = _registerName1("automaticRule"); ffi.Pointer _objc_msgSend_808( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer identifier, ) { return __objc_msgSend_808( obj, sel, - identifier, ); } late final __objc_msgSend_808Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_808 = __objc_msgSend_808Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_cookies1 = _registerName1("cookies"); - late final _class_NSHTTPCookie1 = _getClass1("NSHTTPCookie"); - late final _sel_initWithProperties_1 = _registerName1("initWithProperties:"); - late final _sel_cookieWithProperties_1 = - _registerName1("cookieWithProperties:"); - ffi.Pointer _objc_msgSend_809( + late final _sel_canInflectLanguage_1 = _registerName1("canInflectLanguage:"); + late final _sel_canInflectPreferredLocalization1 = + _registerName1("canInflectPreferredLocalization"); + late final _class_NSMorphology1 = _getClass1("NSMorphology"); + late final _sel_grammaticalGender1 = _registerName1("grammaticalGender"); + int _objc_msgSend_809( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer properties, ) { return __objc_msgSend_809( obj, sel, - properties, ); } late final __objc_msgSend_809Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_809 = __objc_msgSend_809Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_requestHeaderFieldsWithCookies_1 = - _registerName1("requestHeaderFieldsWithCookies:"); - late final _sel_cookiesWithResponseHeaderFields_forURL_1 = - _registerName1("cookiesWithResponseHeaderFields:forURL:"); - ffi.Pointer _objc_msgSend_810( + late final _sel_setGrammaticalGender_1 = + _registerName1("setGrammaticalGender:"); + void _objc_msgSend_810( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer headerFields, - ffi.Pointer URL, + int value, ) { return __objc_msgSend_810( obj, sel, - headerFields, - URL, + value, ); } late final __objc_msgSend_810Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_810 = __objc_msgSend_810Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_properties1 = _registerName1("properties"); - late final _sel_value1 = _registerName1("value"); - late final _sel_expiresDate1 = _registerName1("expiresDate"); - late final _sel_isSessionOnly1 = _registerName1("isSessionOnly"); - late final _sel_isSecure1 = _registerName1("isSecure"); - late final _sel_isHTTPOnly1 = _registerName1("isHTTPOnly"); - late final _sel_comment1 = _registerName1("comment"); - late final _sel_commentURL1 = _registerName1("commentURL"); - late final _sel_portList1 = _registerName1("portList"); - late final _sel_sameSitePolicy1 = _registerName1("sameSitePolicy"); - late final _sel_setCookie_1 = _registerName1("setCookie:"); - void _objc_msgSend_811( + late final _sel_partOfSpeech1 = _registerName1("partOfSpeech"); + int _objc_msgSend_811( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer cookie, ) { return __objc_msgSend_811( obj, sel, - cookie, ); } late final __objc_msgSend_811Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_811 = __objc_msgSend_811Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_deleteCookie_1 = _registerName1("deleteCookie:"); - late final _sel_removeCookiesSinceDate_1 = - _registerName1("removeCookiesSinceDate:"); - late final _sel_cookiesForURL_1 = _registerName1("cookiesForURL:"); - late final _sel_setCookies_forURL_mainDocumentURL_1 = - _registerName1("setCookies:forURL:mainDocumentURL:"); + late final _sel_setPartOfSpeech_1 = _registerName1("setPartOfSpeech:"); void _objc_msgSend_812( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer cookies, - ffi.Pointer URL, - ffi.Pointer mainDocumentURL, + int value, ) { return __objc_msgSend_812( obj, sel, - cookies, - URL, - mainDocumentURL, + value, ); } late final __objc_msgSend_812Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_812 = __objc_msgSend_812Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_cookieAcceptPolicy1 = _registerName1("cookieAcceptPolicy"); + late final _sel_number1 = _registerName1("number"); int _objc_msgSend_813( ffi.Pointer obj, ffi.Pointer sel, @@ -23073,8 +23064,7 @@ class SentryCocoa { late final __objc_msgSend_813 = __objc_msgSend_813Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_setCookieAcceptPolicy_1 = - _registerName1("setCookieAcceptPolicy:"); + late final _sel_setNumber_1 = _registerName1("setNumber:"); void _objc_msgSend_814( ffi.Pointer obj, ffi.Pointer sel, @@ -23094,65 +23084,83 @@ class SentryCocoa { late final __objc_msgSend_814 = __objc_msgSend_814Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_sortedCookiesUsingDescriptors_1 = - _registerName1("sortedCookiesUsingDescriptors:"); - late final _class_NSURLSessionTask1 = _getClass1("NSURLSessionTask"); - late final _sel_taskIdentifier1 = _registerName1("taskIdentifier"); - late final _class_NSURLRequest1 = _getClass1("NSURLRequest"); - late final _sel_requestWithURL_1 = _registerName1("requestWithURL:"); - late final _sel_supportsSecureCoding1 = - _registerName1("supportsSecureCoding"); - late final _sel_requestWithURL_cachePolicy_timeoutInterval_1 = - _registerName1("requestWithURL:cachePolicy:timeoutInterval:"); - instancetype _objc_msgSend_815( + late final _class_NSMorphologyCustomPronoun1 = + _getClass1("NSMorphologyCustomPronoun"); + late final _sel_isSupportedForLanguage_1 = + _registerName1("isSupportedForLanguage:"); + late final _sel_requiredKeysForLanguage_1 = + _registerName1("requiredKeysForLanguage:"); + late final _sel_subjectForm1 = _registerName1("subjectForm"); + late final _sel_setSubjectForm_1 = _registerName1("setSubjectForm:"); + late final _sel_objectForm1 = _registerName1("objectForm"); + late final _sel_setObjectForm_1 = _registerName1("setObjectForm:"); + late final _sel_possessiveForm1 = _registerName1("possessiveForm"); + late final _sel_setPossessiveForm_1 = _registerName1("setPossessiveForm:"); + late final _sel_possessiveAdjectiveForm1 = + _registerName1("possessiveAdjectiveForm"); + late final _sel_setPossessiveAdjectiveForm_1 = + _registerName1("setPossessiveAdjectiveForm:"); + late final _sel_reflexiveForm1 = _registerName1("reflexiveForm"); + late final _sel_setReflexiveForm_1 = _registerName1("setReflexiveForm:"); + late final _sel_customPronounForLanguage_1 = + _registerName1("customPronounForLanguage:"); + ffi.Pointer _objc_msgSend_815( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer URL, - int cachePolicy, - double timeoutInterval, + ffi.Pointer language, ) { return __objc_msgSend_815( obj, sel, - URL, - cachePolicy, - timeoutInterval, + language, ); } late final __objc_msgSend_815Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Int32, ffi.Double)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_815 = __objc_msgSend_815Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, double)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - 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_816( + late final _sel_setCustomPronoun_forLanguage_error_1 = + _registerName1("setCustomPronoun:forLanguage:error:"); + bool _objc_msgSend_816( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer features, + ffi.Pointer language, + ffi.Pointer> error, ) { return __objc_msgSend_816( obj, sel, + features, + language, + error, ); } late final __objc_msgSend_816Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_816 = __objc_msgSend_816Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + 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_817( + late final _sel_isUnspecified1 = _registerName1("isUnspecified"); + late final _sel_userMorphology1 = _registerName1("userMorphology"); + ffi.Pointer _objc_msgSend_817( ffi.Pointer obj, ffi.Pointer sel, ) { @@ -23164,48 +23172,41 @@ class SentryCocoa { late final __objc_msgSend_817Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_817 = __objc_msgSend_817Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_allowsCellularAccess1 = - _registerName1("allowsCellularAccess"); - late final _sel_allowsExpensiveNetworkAccess1 = - _registerName1("allowsExpensiveNetworkAccess"); - late final _sel_allowsConstrainedNetworkAccess1 = - _registerName1("allowsConstrainedNetworkAccess"); - late final _sel_assumesHTTP3Capable1 = _registerName1("assumesHTTP3Capable"); - late final _sel_attribution1 = _registerName1("attribution"); - int _objc_msgSend_818( + late final _class_NSOperationQueue1 = _getClass1("NSOperationQueue"); + late final _class_NSOperation1 = _getClass1("NSOperation"); + late final _sel_isConcurrent1 = _registerName1("isConcurrent"); + late final _sel_isAsynchronous1 = _registerName1("isAsynchronous"); + late final _sel_isReady1 = _registerName1("isReady"); + late final _sel_addDependency_1 = _registerName1("addDependency:"); + void _objc_msgSend_818( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer op, ) { return __objc_msgSend_818( obj, sel, + op, ); } late final __objc_msgSend_818Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_818 = __objc_msgSend_818Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_requiresDNSSECValidation1 = - _registerName1("requiresDNSSECValidation"); - late final _sel_HTTPMethod1 = _registerName1("HTTPMethod"); - late final _sel_allHTTPHeaderFields1 = _registerName1("allHTTPHeaderFields"); - late final _sel_valueForHTTPHeaderField_1 = - _registerName1("valueForHTTPHeaderField:"); - late final _sel_HTTPBody1 = _registerName1("HTTPBody"); - late final _class_NSInputStream1 = _getClass1("NSInputStream"); - late final _class_NSStream1 = _getClass1("NSStream"); - late final _sel_open1 = _registerName1("open"); - late final _sel_close1 = _registerName1("close"); - late final _sel_streamStatus1 = _registerName1("streamStatus"); + late final _sel_removeDependency_1 = _registerName1("removeDependency:"); + late final _sel_dependencies1 = _registerName1("dependencies"); + late final _sel_queuePriority1 = _registerName1("queuePriority"); int _objc_msgSend_819( ffi.Pointer obj, ffi.Pointer sel, @@ -23223,292 +23224,272 @@ class SentryCocoa { late final __objc_msgSend_819 = __objc_msgSend_819Ptr.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_820( + late final _sel_setQueuePriority_1 = _registerName1("setQueuePriority:"); + void _objc_msgSend_820( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer buffer, - int len, + int value, ) { return __objc_msgSend_820( obj, sel, - buffer, - len, + value, ); } late final __objc_msgSend_820Ptr = _lookup< ffi.NativeFunction< - ffi.Long Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_820 = __objc_msgSend_820Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_hasSpaceAvailable1 = _registerName1("hasSpaceAvailable"); - late final _sel_initToMemory1 = _registerName1("initToMemory"); - late final _sel_initToBuffer_capacity_1 = - _registerName1("initToBuffer:capacity:"); - instancetype _objc_msgSend_821( + late final _sel_completionBlock1 = _registerName1("completionBlock"); + late final _sel_setCompletionBlock_1 = _registerName1("setCompletionBlock:"); + late final _sel_waitUntilFinished1 = _registerName1("waitUntilFinished"); + late final _sel_addOperation_1 = _registerName1("addOperation:"); + late final _sel_addOperations_waitUntilFinished_1 = + _registerName1("addOperations:waitUntilFinished:"); + void _objc_msgSend_821( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer buffer, - int capacity, + ffi.Pointer ops, + bool wait, ) { return __objc_msgSend_821( obj, sel, - buffer, - capacity, + ops, + wait, ); } late final __objc_msgSend_821Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); late final __objc_msgSend_821 = __objc_msgSend_821Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); - late final _sel_initWithURL_append_1 = _registerName1("initWithURL:append:"); - late final _sel_initToFileAtPath_append_1 = - _registerName1("initToFileAtPath:append:"); - late final _sel_outputStreamToMemory1 = - _registerName1("outputStreamToMemory"); - late final _sel_outputStreamToBuffer_capacity_1 = - _registerName1("outputStreamToBuffer:capacity:"); - late final _sel_outputStreamToFileAtPath_append_1 = - _registerName1("outputStreamToFileAtPath:append:"); - late final _sel_outputStreamWithURL_append_1 = - _registerName1("outputStreamWithURL:append:"); - late final _sel_getStreamsToHostWithName_port_inputStream_outputStream_1 = - _registerName1("getStreamsToHostWithName:port:inputStream:outputStream:"); - void _objc_msgSend_822( + late final _sel_addOperationWithBlock_1 = + _registerName1("addOperationWithBlock:"); + late final _sel_addBarrierBlock_1 = _registerName1("addBarrierBlock:"); + late final _sel_maxConcurrentOperationCount1 = + _registerName1("maxConcurrentOperationCount"); + late final _sel_setMaxConcurrentOperationCount_1 = + _registerName1("setMaxConcurrentOperationCount:"); + late final _sel_isSuspended1 = _registerName1("isSuspended"); + late final _sel_setSuspended_1 = _registerName1("setSuspended:"); + late final _sel_underlyingQueue1 = _registerName1("underlyingQueue"); + ffi.Pointer _objc_msgSend_822( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer hostname, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream, ) { return __objc_msgSend_822( obj, sel, - hostname, - port, - inputStream, - outputStream, ); } late final __objc_msgSend_822Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_822 = __objc_msgSend_822Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _class_NSHost1 = _getClass1("NSHost"); - late final _sel_currentHost1 = _registerName1("currentHost"); - late final _sel_hostWithName_1 = _registerName1("hostWithName:"); - late final _sel_hostWithAddress_1 = _registerName1("hostWithAddress:"); - late final _sel_isEqualToHost_1 = _registerName1("isEqualToHost:"); - bool _objc_msgSend_823( + late final _sel_setUnderlyingQueue_1 = _registerName1("setUnderlyingQueue:"); + void _objc_msgSend_823( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer aHost, + ffi.Pointer value, ) { return __objc_msgSend_823( obj, sel, - aHost, + value, ); } late final __objc_msgSend_823Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_823 = __objc_msgSend_823Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, + void 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_824( + late final _sel_cancelAllOperations1 = _registerName1("cancelAllOperations"); + late final _sel_waitUntilAllOperationsAreFinished1 = + _registerName1("waitUntilAllOperationsAreFinished"); + late final _sel_currentQueue1 = _registerName1("currentQueue"); + ffi.Pointer _objc_msgSend_824( ffi.Pointer obj, ffi.Pointer sel, - bool flag, ) { return __objc_msgSend_824( obj, sel, - flag, ); } late final __objc_msgSend_824Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_824 = __objc_msgSend_824Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, bool)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - 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_825( + late final _sel_mainQueue1 = _registerName1("mainQueue"); + late final _sel_operations1 = _registerName1("operations"); + late final _sel_operationCount1 = _registerName1("operationCount"); + late final _class_NSPointerArray1 = _getClass1("NSPointerArray"); + late final _sel_initWithOptions_1 = _registerName1("initWithOptions:"); + instancetype _objc_msgSend_825( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer host, - int port, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream, + int options, ) { return __objc_msgSend_825( obj, sel, - host, - port, - inputStream, - outputStream, + options, ); } late final __objc_msgSend_825Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_825 = __objc_msgSend_825Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>)>(); + instancetype Function( + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1 = - _registerName1("getBoundStreamsWithBufferSize:inputStream:outputStream:"); - void _objc_msgSend_826( + late final _class_NSPointerFunctions1 = _getClass1("NSPointerFunctions"); + late final _sel_pointerFunctionsWithOptions_1 = + _registerName1("pointerFunctionsWithOptions:"); + ffi.Pointer _objc_msgSend_826( ffi.Pointer obj, ffi.Pointer sel, - int bufferSize, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream, + int options, ) { return __objc_msgSend_826( obj, sel, - bufferSize, - inputStream, - outputStream, + options, ); } late final __objc_msgSend_826Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_826 = __objc_msgSend_826Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>, - ffi.Pointer>)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_read_maxLength_1 = _registerName1("read:maxLength:"); - late final _sel_getBuffer_length_1 = _registerName1("getBuffer:length:"); - bool _objc_msgSend_827( + late final _sel_hashFunction1 = _registerName1("hashFunction"); + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + _objc_msgSend_827( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer> buffer, - ffi.Pointer len, ) { return __objc_msgSend_827( obj, sel, - buffer, - len, ); } late final __objc_msgSend_827Ptr = _lookup< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer)>>('objc_msgSend'); + ffi.NativeFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + Function(ffi.Pointer, ffi.Pointer)>>( + 'objc_msgSend'); late final __objc_msgSend_827 = __objc_msgSend_827Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer)>(); + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_hasBytesAvailable1 = _registerName1("hasBytesAvailable"); - late final _sel_initWithFileAtPath_1 = _registerName1("initWithFileAtPath:"); - late final _sel_inputStreamWithData_1 = - _registerName1("inputStreamWithData:"); - late final _sel_inputStreamWithFileAtPath_1 = - _registerName1("inputStreamWithFileAtPath:"); - late final _sel_inputStreamWithURL_1 = _registerName1("inputStreamWithURL:"); - late final _sel_HTTPBodyStream1 = _registerName1("HTTPBodyStream"); - ffi.Pointer _objc_msgSend_828( + late final _sel_setHashFunction_1 = _registerName1("setHashFunction:"); + void _objc_msgSend_828( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + value, ) { return __objc_msgSend_828( obj, sel, + value, ); } late final __objc_msgSend_828Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>>)>>( + 'objc_msgSend'); late final __objc_msgSend_828 = __objc_msgSend_828Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>>)>(); - late final _sel_HTTPShouldHandleCookies1 = - _registerName1("HTTPShouldHandleCookies"); - late final _sel_HTTPShouldUsePipelining1 = - _registerName1("HTTPShouldUsePipelining"); - late final _sel_originalRequest1 = _registerName1("originalRequest"); - ffi.Pointer _objc_msgSend_829( + late final _sel_isEqualFunction1 = _registerName1("isEqualFunction"); + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + _objc_msgSend_829( ffi.Pointer obj, ffi.Pointer sel, ) { @@ -23519,61 +23500,85 @@ class SentryCocoa { } late final __objc_msgSend_829Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.NativeFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + Function(ffi.Pointer, ffi.Pointer)>>( + 'objc_msgSend'); late final __objc_msgSend_829 = __objc_msgSend_829Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_currentRequest1 = _registerName1("currentRequest"); - late final _class_NSURLResponse1 = _getClass1("NSURLResponse"); - late final _sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1 = - _registerName1( - "initWithURL:MIMEType:expectedContentLength:textEncodingName:"); - instancetype _objc_msgSend_830( + late final _sel_setIsEqualFunction_1 = _registerName1("setIsEqualFunction:"); + void _objc_msgSend_830( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer URL, - ffi.Pointer MIMEType, - int length, - ffi.Pointer name, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + value, ) { return __objc_msgSend_830( obj, sel, - URL, - MIMEType, - length, - name, + value, ); } late final __objc_msgSend_830Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long, - ffi.Pointer)>>('objc_msgSend'); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>>)>>( + 'objc_msgSend'); late final __objc_msgSend_830 = __objc_msgSend_830Ptr.asFunction< - instancetype Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>>)>(); - late final _sel_MIMEType1 = _registerName1("MIMEType"); - late final _sel_expectedContentLength1 = - _registerName1("expectedContentLength"); - late final _sel_textEncodingName1 = _registerName1("textEncodingName"); - late final _sel_suggestedFilename1 = _registerName1("suggestedFilename"); - late final _sel_response1 = _registerName1("response"); - ffi.Pointer _objc_msgSend_831( + late final _sel_sizeFunction1 = _registerName1("sizeFunction"); + ffi.Pointer< + ffi.NativeFunction)>> + _objc_msgSend_831( ffi.Pointer obj, ffi.Pointer sel, ) { @@ -23584,91 +23589,94 @@ class SentryCocoa { } late final __objc_msgSend_831Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.NativeFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>> + Function(ffi.Pointer, ffi.Pointer)>>( + 'objc_msgSend'); late final __objc_msgSend_831 = __objc_msgSend_831Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer< + ffi + .NativeFunction)>> + Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_progress1 = _registerName1("progress"); - late final _sel_earliestBeginDate1 = _registerName1("earliestBeginDate"); - late final _sel_setEarliestBeginDate_1 = - _registerName1("setEarliestBeginDate:"); - late final _sel_countOfBytesClientExpectsToSend1 = - _registerName1("countOfBytesClientExpectsToSend"); - late final _sel_setCountOfBytesClientExpectsToSend_1 = - _registerName1("setCountOfBytesClientExpectsToSend:"); - late final _sel_countOfBytesClientExpectsToReceive1 = - _registerName1("countOfBytesClientExpectsToReceive"); - late final _sel_setCountOfBytesClientExpectsToReceive_1 = - _registerName1("setCountOfBytesClientExpectsToReceive:"); - late final _sel_countOfBytesSent1 = _registerName1("countOfBytesSent"); - late final _sel_countOfBytesReceived1 = - _registerName1("countOfBytesReceived"); - late final _sel_countOfBytesExpectedToSend1 = - _registerName1("countOfBytesExpectedToSend"); - late final _sel_countOfBytesExpectedToReceive1 = - _registerName1("countOfBytesExpectedToReceive"); - late final _sel_taskDescription1 = _registerName1("taskDescription"); - late final _sel_setTaskDescription_1 = _registerName1("setTaskDescription:"); - late final _sel_state1 = _registerName1("state"); - int _objc_msgSend_832( + late final _sel_setSizeFunction_1 = _registerName1("setSizeFunction:"); + void _objc_msgSend_832( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer< + ffi + .NativeFunction)>> + value, ) { return __objc_msgSend_832( obj, sel, + value, ); } late final __objc_msgSend_832Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>>('objc_msgSend'); late final __objc_msgSend_832 = __objc_msgSend_832Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>(); - late final _sel_suspend1 = _registerName1("suspend"); - late final _sel_priority1 = _registerName1("priority"); - late final _sel_setPriority_1 = _registerName1("setPriority:"); - void _objc_msgSend_833( + late final _sel_descriptionFunction1 = _registerName1("descriptionFunction"); + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>> + _objc_msgSend_833( ffi.Pointer obj, ffi.Pointer sel, - double value, ) { return __objc_msgSend_833( obj, sel, - value, ); } - late final __objc_msgSend_833Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Float)>>('objc_msgSend'); + late final __objc_msgSend_833Ptr = + _lookup< + ffi.NativeFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>> + Function(ffi.Pointer, ffi.Pointer)>>( + 'objc_msgSend'); late final __objc_msgSend_833 = __objc_msgSend_833Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, double)>(); + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>> + Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_prefersIncrementalDelivery1 = - _registerName1("prefersIncrementalDelivery"); - late final _sel_setPrefersIncrementalDelivery_1 = - _registerName1("setPrefersIncrementalDelivery:"); - late final _sel_storeCookies_forTask_1 = - _registerName1("storeCookies:forTask:"); + late final _sel_setDescriptionFunction_1 = + _registerName1("setDescriptionFunction:"); void _objc_msgSend_834( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer cookies, - ffi.Pointer task, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>> + value, ) { return __objc_msgSend_834( obj, sel, - cookies, - task, + value, ); } @@ -23677,179 +23685,275 @@ class SentryCocoa { ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer)>>)>>('objc_msgSend'); late final __objc_msgSend_834 = __objc_msgSend_834Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>>)>(); - late final _sel_getCookiesForTask_completionHandler_1 = - _registerName1("getCookiesForTask:completionHandler:"); - void _objc_msgSend_835( + late final _sel_relinquishFunction1 = _registerName1("relinquishFunction"); + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + _objc_msgSend_835( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer task, - ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_835( obj, sel, - task, - completionHandler, ); } late final __objc_msgSend_835Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.NativeFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + Function(ffi.Pointer, ffi.Pointer)>>( + 'objc_msgSend'); late final __objc_msgSend_835 = __objc_msgSend_835Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + Function(ffi.Pointer, ffi.Pointer)>(); - late final _class_NSIndexPath1 = _getClass1("NSIndexPath"); - late final _sel_indexPathWithIndex_1 = _registerName1("indexPathWithIndex:"); - late final _sel_indexPathWithIndexes_length_1 = - _registerName1("indexPathWithIndexes:length:"); - instancetype _objc_msgSend_836( + late final _sel_setRelinquishFunction_1 = + _registerName1("setRelinquishFunction:"); + void _objc_msgSend_836( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer indexes, - int length, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + value, ) { return __objc_msgSend_836( obj, sel, - indexes, - length, + value, ); } late final __objc_msgSend_836Ptr = _lookup< - ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong)>>('objc_msgSend'); + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>>)>>( + 'objc_msgSend'); late final __objc_msgSend_836 = __objc_msgSend_836Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>>)>(); - late final _sel_initWithIndexes_length_1 = - _registerName1("initWithIndexes:length:"); - late final _sel_indexPathByAddingIndex_1 = - _registerName1("indexPathByAddingIndex:"); - ffi.Pointer _objc_msgSend_837( + late final _sel_acquireFunction1 = _registerName1("acquireFunction"); + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>, + ffi.Bool)>> _objc_msgSend_837( ffi.Pointer obj, ffi.Pointer sel, - int index, ) { return __objc_msgSend_837( obj, sel, - index, ); } late final __objc_msgSend_837Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + ffi.NativeFunction< + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>, + ffi.Bool)>> + Function(ffi.Pointer, ffi.Pointer)>>( + 'objc_msgSend'); late final __objc_msgSend_837 = __objc_msgSend_837Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>, + ffi.Bool)>> + Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_indexPathByRemovingLastIndex1 = - _registerName1("indexPathByRemovingLastIndex"); - ffi.Pointer _objc_msgSend_838( + late final _sel_setAcquireFunction_1 = _registerName1("setAcquireFunction:"); + void _objc_msgSend_838( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>, + ffi.Bool)>> + value, ) { return __objc_msgSend_838( obj, sel, + value, ); } late final __objc_msgSend_838Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>, + ffi.Bool)>>)>>('objc_msgSend'); late final __objc_msgSend_838 = __objc_msgSend_838Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>, + ffi.Bool)>>)>(); - late final _sel_indexAtPosition_1 = _registerName1("indexAtPosition:"); - late final _sel_getIndexes_range_1 = _registerName1("getIndexes:range:"); - void _objc_msgSend_839( + late final _sel_usesStrongWriteBarrier1 = + _registerName1("usesStrongWriteBarrier"); + late final _sel_setUsesStrongWriteBarrier_1 = + _registerName1("setUsesStrongWriteBarrier:"); + late final _sel_usesWeakReadAndWriteBarriers1 = + _registerName1("usesWeakReadAndWriteBarriers"); + late final _sel_setUsesWeakReadAndWriteBarriers_1 = + _registerName1("setUsesWeakReadAndWriteBarriers:"); + late final _sel_initWithPointerFunctions_1 = + _registerName1("initWithPointerFunctions:"); + instancetype _objc_msgSend_839( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer indexes, - _NSRange positionRange, + ffi.Pointer functions, ) { return __objc_msgSend_839( obj, sel, - indexes, - positionRange, + functions, ); } late final __objc_msgSend_839Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_839 = __objc_msgSend_839Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, _NSRange)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - int _objc_msgSend_840( + late final _sel_pointerArrayWithOptions_1 = + _registerName1("pointerArrayWithOptions:"); + ffi.Pointer _objc_msgSend_840( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer otherObject, + int options, ) { return __objc_msgSend_840( obj, sel, - otherObject, + options, ); } late final __objc_msgSend_840Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_840 = __objc_msgSend_840Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_getIndexes_1 = _registerName1("getIndexes:"); - void _objc_msgSend_841( + late final _sel_pointerArrayWithPointerFunctions_1 = + _registerName1("pointerArrayWithPointerFunctions:"); + ffi.Pointer _objc_msgSend_841( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer indexes, + ffi.Pointer functions, ) { return __objc_msgSend_841( obj, sel, - indexes, + functions, ); } late final __objc_msgSend_841Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_841 = __objc_msgSend_841Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _class_NSInflectionRule1 = _getClass1("NSInflectionRule"); - late final _sel_automaticRule1 = _registerName1("automaticRule"); + late final _sel_pointerFunctions1 = _registerName1("pointerFunctions"); ffi.Pointer _objc_msgSend_842( ffi.Pointer obj, ffi.Pointer sel, @@ -23868,51 +23972,65 @@ class SentryCocoa { ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); - late final _sel_canInflectLanguage_1 = _registerName1("canInflectLanguage:"); - late final _sel_canInflectPreferredLocalization1 = - _registerName1("canInflectPreferredLocalization"); - late final _class_NSMorphology1 = _getClass1("NSMorphology"); - late final _sel_grammaticalGender1 = _registerName1("grammaticalGender"); - int _objc_msgSend_843( + late final _sel_pointerAtIndex_1 = _registerName1("pointerAtIndex:"); + ffi.Pointer _objc_msgSend_843( ffi.Pointer obj, ffi.Pointer sel, + int index, ) { return __objc_msgSend_843( obj, sel, + index, ); } late final __objc_msgSend_843Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); late final __objc_msgSend_843 = __objc_msgSend_843Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_setGrammaticalGender_1 = - _registerName1("setGrammaticalGender:"); + late final _sel_addPointer_1 = _registerName1("addPointer:"); + late final _sel_removePointerAtIndex_1 = + _registerName1("removePointerAtIndex:"); + late final _sel_insertPointer_atIndex_1 = + _registerName1("insertPointer:atIndex:"); + late final _sel_replacePointerAtIndex_withPointer_1 = + _registerName1("replacePointerAtIndex:withPointer:"); void _objc_msgSend_844( ffi.Pointer obj, ffi.Pointer sel, - int value, + int index, + ffi.Pointer item, ) { return __objc_msgSend_844( obj, sel, - value, + index, + item, ); } late final __objc_msgSend_844Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_844 = __objc_msgSend_844Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); - late final _sel_partOfSpeech1 = _registerName1("partOfSpeech"); - int _objc_msgSend_845( + late final _sel_compact1 = _registerName1("compact"); + late final _sel_setCount_1 = _registerName1("setCount:"); + late final _sel_pointerArrayWithStrongObjects1 = + _registerName1("pointerArrayWithStrongObjects"); + late final _sel_pointerArrayWithWeakObjects1 = + _registerName1("pointerArrayWithWeakObjects"); + late final _sel_strongObjectsPointerArray1 = + _registerName1("strongObjectsPointerArray"); + ffi.Pointer _objc_msgSend_845( ffi.Pointer obj, ffi.Pointer sel, ) { @@ -23924,33 +24042,48 @@ class SentryCocoa { late final __objc_msgSend_845Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_845 = __objc_msgSend_845Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_setPartOfSpeech_1 = _registerName1("setPartOfSpeech:"); - void _objc_msgSend_846( + late final _sel_weakObjectsPointerArray1 = + _registerName1("weakObjectsPointerArray"); + late final _class_NSProcessInfo1 = _getClass1("NSProcessInfo"); + late final _sel_processInfo1 = _registerName1("processInfo"); + ffi.Pointer _objc_msgSend_846( ffi.Pointer obj, ffi.Pointer sel, - int value, ) { return __objc_msgSend_846( obj, sel, - value, ); } late final __objc_msgSend_846Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_846 = __objc_msgSend_846Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_number1 = _registerName1("number"); - int _objc_msgSend_847( + late final _sel_environment1 = _registerName1("environment"); + late final _sel_hostName1 = _registerName1("hostName"); + late final _sel_processName1 = _registerName1("processName"); + late final _sel_setProcessName_1 = _registerName1("setProcessName:"); + late final _sel_processIdentifier1 = _registerName1("processIdentifier"); + late final _sel_globallyUniqueString1 = + _registerName1("globallyUniqueString"); + late final _sel_operatingSystem1 = _registerName1("operatingSystem"); + late final _sel_operatingSystemName1 = _registerName1("operatingSystemName"); + late final _sel_operatingSystemVersionString1 = + _registerName1("operatingSystemVersionString"); + late final _sel_operatingSystemVersion1 = + _registerName1("operatingSystemVersion"); + NSOperatingSystemVersion _objc_msgSend_847( ffi.Pointer obj, ffi.Pointer sel, ) { @@ -23962,154 +24095,162 @@ class SentryCocoa { late final __objc_msgSend_847Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( + NSOperatingSystemVersion Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_847 = __objc_msgSend_847Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + NSOperatingSystemVersion Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_setNumber_1 = _registerName1("setNumber:"); - void _objc_msgSend_848( + late final _sel_processorCount1 = _registerName1("processorCount"); + late final _sel_activeProcessorCount1 = + _registerName1("activeProcessorCount"); + late final _sel_physicalMemory1 = _registerName1("physicalMemory"); + late final _sel_isOperatingSystemAtLeastVersion_1 = + _registerName1("isOperatingSystemAtLeastVersion:"); + bool _objc_msgSend_848( ffi.Pointer obj, ffi.Pointer sel, - int value, + NSOperatingSystemVersion version, ) { return __objc_msgSend_848( obj, sel, - value, + version, ); } late final __objc_msgSend_848Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + NSOperatingSystemVersion)>>('objc_msgSend'); late final __objc_msgSend_848 = __objc_msgSend_848Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + bool Function(ffi.Pointer, ffi.Pointer, + NSOperatingSystemVersion)>(); - late final _class_NSMorphologyCustomPronoun1 = - _getClass1("NSMorphologyCustomPronoun"); - late final _sel_isSupportedForLanguage_1 = - _registerName1("isSupportedForLanguage:"); - late final _sel_requiredKeysForLanguage_1 = - _registerName1("requiredKeysForLanguage:"); - late final _sel_subjectForm1 = _registerName1("subjectForm"); - late final _sel_setSubjectForm_1 = _registerName1("setSubjectForm:"); - late final _sel_objectForm1 = _registerName1("objectForm"); - late final _sel_setObjectForm_1 = _registerName1("setObjectForm:"); - late final _sel_possessiveForm1 = _registerName1("possessiveForm"); - late final _sel_setPossessiveForm_1 = _registerName1("setPossessiveForm:"); - late final _sel_possessiveAdjectiveForm1 = - _registerName1("possessiveAdjectiveForm"); - late final _sel_setPossessiveAdjectiveForm_1 = - _registerName1("setPossessiveAdjectiveForm:"); - late final _sel_reflexiveForm1 = _registerName1("reflexiveForm"); - late final _sel_setReflexiveForm_1 = _registerName1("setReflexiveForm:"); - late final _sel_customPronounForLanguage_1 = - _registerName1("customPronounForLanguage:"); + late final _sel_systemUptime1 = _registerName1("systemUptime"); + late final _sel_disableSuddenTermination1 = + _registerName1("disableSuddenTermination"); + late final _sel_enableSuddenTermination1 = + _registerName1("enableSuddenTermination"); + late final _sel_disableAutomaticTermination_1 = + _registerName1("disableAutomaticTermination:"); + late final _sel_enableAutomaticTermination_1 = + _registerName1("enableAutomaticTermination:"); + late final _sel_automaticTerminationSupportEnabled1 = + _registerName1("automaticTerminationSupportEnabled"); + late final _sel_setAutomaticTerminationSupportEnabled_1 = + _registerName1("setAutomaticTerminationSupportEnabled:"); + late final _sel_beginActivityWithOptions_reason_1 = + _registerName1("beginActivityWithOptions:reason:"); ffi.Pointer _objc_msgSend_849( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer language, + int options, + ffi.Pointer reason, ) { return __objc_msgSend_849( obj, sel, - language, + options, + reason, ); } late final __objc_msgSend_849Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_849 = __objc_msgSend_849Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, int, ffi.Pointer)>(); - late final _sel_setCustomPronoun_forLanguage_error_1 = - _registerName1("setCustomPronoun:forLanguage:error:"); - bool _objc_msgSend_850( + late final _sel_endActivity_1 = _registerName1("endActivity:"); + late final _sel_performActivityWithOptions_reason_usingBlock_1 = + _registerName1("performActivityWithOptions:reason:usingBlock:"); + void _objc_msgSend_850( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer features, - ffi.Pointer language, - ffi.Pointer> error, + int options, + ffi.Pointer reason, + ffi.Pointer<_ObjCBlock> block, ) { return __objc_msgSend_850( obj, sel, - features, - language, - error, + options, + reason, + block, ); } late final __objc_msgSend_850Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_850 = __objc_msgSend_850Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_isUnspecified1 = _registerName1("isUnspecified"); - late final _sel_userMorphology1 = _registerName1("userMorphology"); - ffi.Pointer _objc_msgSend_851( + late final _sel_performExpiringActivityWithReason_usingBlock_1 = + _registerName1("performExpiringActivityWithReason:usingBlock:"); + void _objc_msgSend_851( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer reason, + ffi.Pointer<_ObjCBlock> block, ) { return __objc_msgSend_851( obj, sel, + reason, + block, ); } late final __objc_msgSend_851Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_851 = __objc_msgSend_851Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _class_NSOperationQueue1 = _getClass1("NSOperationQueue"); - late final _class_NSOperation1 = _getClass1("NSOperation"); - late final _sel_isConcurrent1 = _registerName1("isConcurrent"); - late final _sel_isAsynchronous1 = _registerName1("isAsynchronous"); - late final _sel_isReady1 = _registerName1("isReady"); - late final _sel_addDependency_1 = _registerName1("addDependency:"); - void _objc_msgSend_852( + late final _sel_userName1 = _registerName1("userName"); + late final _sel_fullUserName1 = _registerName1("fullUserName"); + late final _sel_thermalState1 = _registerName1("thermalState"); + int _objc_msgSend_852( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer op, ) { return __objc_msgSend_852( obj, sel, - op, ); } late final __objc_msgSend_852Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_852 = __objc_msgSend_852Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_removeDependency_1 = _registerName1("removeDependency:"); - late final _sel_dependencies1 = _registerName1("dependencies"); - late final _sel_queuePriority1 = _registerName1("queuePriority"); + late final _sel_isLowPowerModeEnabled1 = + _registerName1("isLowPowerModeEnabled"); + late final _sel_isMacCatalystApp1 = _registerName1("isMacCatalystApp"); + late final _sel_isiOSAppOnMac1 = _registerName1("isiOSAppOnMac"); + late final _class_NSTextCheckingResult1 = _getClass1("NSTextCheckingResult"); + late final _sel_resultType1 = _registerName1("resultType"); int _objc_msgSend_853( ffi.Pointer obj, ffi.Pointer sel, @@ -24127,1218 +24268,1146 @@ class SentryCocoa { late final __objc_msgSend_853 = __objc_msgSend_853Ptr.asFunction< int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_setQueuePriority_1 = _registerName1("setQueuePriority:"); - void _objc_msgSend_854( + late final _sel_range1 = _registerName1("range"); + late final _sel_orthography1 = _registerName1("orthography"); + ffi.Pointer _objc_msgSend_854( ffi.Pointer obj, ffi.Pointer sel, - int value, ) { return __objc_msgSend_854( obj, sel, - value, ); } late final __objc_msgSend_854Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_854 = __objc_msgSend_854Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_completionBlock1 = _registerName1("completionBlock"); - late final _sel_setCompletionBlock_1 = _registerName1("setCompletionBlock:"); - late final _sel_waitUntilFinished1 = _registerName1("waitUntilFinished"); - late final _sel_addOperation_1 = _registerName1("addOperation:"); - late final _sel_addOperations_waitUntilFinished_1 = - _registerName1("addOperations:waitUntilFinished:"); - void _objc_msgSend_855( + late final _sel_grammarDetails1 = _registerName1("grammarDetails"); + late final _sel_duration1 = _registerName1("duration"); + late final _sel_components1 = _registerName1("components"); + late final _sel_replacementString1 = _registerName1("replacementString"); + late final _sel_alternativeStrings1 = _registerName1("alternativeStrings"); + late final _class_NSRegularExpression1 = _getClass1("NSRegularExpression"); + late final _sel_regularExpressionWithPattern_options_error_1 = + _registerName1("regularExpressionWithPattern:options:error:"); + ffi.Pointer _objc_msgSend_855( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer ops, - bool wait, + ffi.Pointer pattern, + int options, + ffi.Pointer> error, ) { return __objc_msgSend_855( obj, sel, - ops, - wait, + pattern, + options, + error, ); } late final __objc_msgSend_855Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_855 = __objc_msgSend_855Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); - late final _sel_addOperationWithBlock_1 = - _registerName1("addOperationWithBlock:"); - late final _sel_addBarrierBlock_1 = _registerName1("addBarrierBlock:"); - late final _sel_maxConcurrentOperationCount1 = - _registerName1("maxConcurrentOperationCount"); - late final _sel_setMaxConcurrentOperationCount_1 = - _registerName1("setMaxConcurrentOperationCount:"); - late final _sel_isSuspended1 = _registerName1("isSuspended"); - late final _sel_setSuspended_1 = _registerName1("setSuspended:"); - late final _sel_underlyingQueue1 = _registerName1("underlyingQueue"); - ffi.Pointer _objc_msgSend_856( + late final _sel_initWithPattern_options_error_1 = + _registerName1("initWithPattern:options:error:"); + instancetype _objc_msgSend_856( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer pattern, + int options, + ffi.Pointer> error, ) { return __objc_msgSend_856( obj, sel, + pattern, + options, + error, ); } late final __objc_msgSend_856Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_856 = __objc_msgSend_856Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); - late final _sel_setUnderlyingQueue_1 = _registerName1("setUnderlyingQueue:"); - void _objc_msgSend_857( + late final _sel_pattern1 = _registerName1("pattern"); + late final _sel_options1 = _registerName1("options"); + int _objc_msgSend_857( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, ) { return __objc_msgSend_857( obj, sel, - value, ); } late final __objc_msgSend_857Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_857 = __objc_msgSend_857Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_cancelAllOperations1 = _registerName1("cancelAllOperations"); - late final _sel_waitUntilAllOperationsAreFinished1 = - _registerName1("waitUntilAllOperationsAreFinished"); - late final _sel_currentQueue1 = _registerName1("currentQueue"); - ffi.Pointer _objc_msgSend_858( + late final _sel_numberOfCaptureGroups1 = + _registerName1("numberOfCaptureGroups"); + late final _sel_escapedPatternForString_1 = + _registerName1("escapedPatternForString:"); + late final _sel_enumerateMatchesInString_options_range_usingBlock_1 = + _registerName1("enumerateMatchesInString:options:range:usingBlock:"); + void _objc_msgSend_858( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer string, + int options, + _NSRange range, + ffi.Pointer<_ObjCBlock> block, ) { return __objc_msgSend_858( obj, sel, + string, + options, + range, + block, ); } late final __objc_msgSend_858Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_858 = __objc_msgSend_858Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_mainQueue1 = _registerName1("mainQueue"); - late final _sel_operations1 = _registerName1("operations"); - late final _sel_operationCount1 = _registerName1("operationCount"); - late final _class_NSPointerArray1 = _getClass1("NSPointerArray"); - late final _sel_initWithOptions_1 = _registerName1("initWithOptions:"); - instancetype _objc_msgSend_859( + late final _sel_matchesInString_options_range_1 = + _registerName1("matchesInString:options:range:"); + ffi.Pointer _objc_msgSend_859( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer string, int options, + _NSRange range, ) { return __objc_msgSend_859( obj, sel, + string, options, + range, ); } late final __objc_msgSend_859Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend'); late final __objc_msgSend_859 = __objc_msgSend_859Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); - late final _class_NSPointerFunctions1 = _getClass1("NSPointerFunctions"); - late final _sel_pointerFunctionsWithOptions_1 = - _registerName1("pointerFunctionsWithOptions:"); - ffi.Pointer _objc_msgSend_860( + late final _sel_numberOfMatchesInString_options_range_1 = + _registerName1("numberOfMatchesInString:options:range:"); + int _objc_msgSend_860( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer string, int options, + _NSRange range, ) { return __objc_msgSend_860( obj, sel, + string, options, + range, ); } late final __objc_msgSend_860Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend'); late final __objc_msgSend_860 = __objc_msgSend_860Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange)>(); - late final _sel_hashFunction1 = _registerName1("hashFunction"); - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>> - _objc_msgSend_861( + late final _sel_firstMatchInString_options_range_1 = + _registerName1("firstMatchInString:options:range:"); + ffi.Pointer _objc_msgSend_861( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer string, + int options, + _NSRange range, ) { return __objc_msgSend_861( obj, sel, + string, + options, + range, ); } late final __objc_msgSend_861Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - Function(ffi.Pointer, ffi.Pointer)>>( - 'objc_msgSend'); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange)>>('objc_msgSend'); late final __objc_msgSend_861 = __objc_msgSend_861Ptr.asFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int, _NSRange)>(); - late final _sel_setHashFunction_1 = _registerName1("setHashFunction:"); - void _objc_msgSend_862( + late final _sel_rangeOfFirstMatchInString_options_range_1 = + _registerName1("rangeOfFirstMatchInString:options:range:"); + _NSRange _objc_msgSend_862( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - value, + ffi.Pointer string, + int options, + _NSRange range, ) { return __objc_msgSend_862( obj, sel, - value, + string, + options, + range, ); } late final __objc_msgSend_862Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>>)>>( - 'objc_msgSend'); + ffi.NativeFunction< + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Int32, _NSRange)>>('objc_msgSend'); late final __objc_msgSend_862 = __objc_msgSend_862Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>>)>(); + _NSRange Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange)>(); - late final _sel_isEqualFunction1 = _registerName1("isEqualFunction"); - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>> - _objc_msgSend_863( + late final _sel_stringByReplacingMatchesInString_options_range_withTemplate_1 = + _registerName1( + "stringByReplacingMatchesInString:options:range:withTemplate:"); + ffi.Pointer _objc_msgSend_863( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer string, + int options, + _NSRange range, + ffi.Pointer templ, ) { return __objc_msgSend_863( obj, sel, + string, + options, + range, + templ, ); } late final __objc_msgSend_863Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - Function(ffi.Pointer, ffi.Pointer)>>( - 'objc_msgSend'); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_863 = __objc_msgSend_863Ptr.asFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + _NSRange, + ffi.Pointer)>(); - late final _sel_setIsEqualFunction_1 = _registerName1("setIsEqualFunction:"); - void _objc_msgSend_864( + late final _sel_replaceMatchesInString_options_range_withTemplate_1 = + _registerName1("replaceMatchesInString:options:range:withTemplate:"); + int _objc_msgSend_864( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - value, + ffi.Pointer string, + int options, + _NSRange range, + ffi.Pointer templ, ) { return __objc_msgSend_864( obj, sel, - value, + string, + options, + range, + templ, ); } late final __objc_msgSend_864Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>>)>>( - 'objc_msgSend'); + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + _NSRange, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_864 = __objc_msgSend_864Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>>)>(); + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int, _NSRange, ffi.Pointer)>(); - late final _sel_sizeFunction1 = _registerName1("sizeFunction"); - ffi.Pointer< - ffi.NativeFunction)>> - _objc_msgSend_865( + late final _sel_replacementStringForResult_inString_offset_template_1 = + _registerName1("replacementStringForResult:inString:offset:template:"); + ffi.Pointer _objc_msgSend_865( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer result, + ffi.Pointer string, + int offset, + ffi.Pointer templ, ) { return __objc_msgSend_865( obj, sel, + result, + string, + offset, + templ, ); } late final __objc_msgSend_865Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>> - Function(ffi.Pointer, ffi.Pointer)>>( - 'objc_msgSend'); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_865 = __objc_msgSend_865Ptr.asFunction< - ffi.Pointer< - ffi - .NativeFunction)>> - Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer)>(); - late final _sel_setSizeFunction_1 = _registerName1("setSizeFunction:"); - void _objc_msgSend_866( + late final _sel_escapedTemplateForString_1 = + _registerName1("escapedTemplateForString:"); + late final _sel_regularExpression1 = _registerName1("regularExpression"); + ffi.Pointer _objc_msgSend_866( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer< - ffi - .NativeFunction)>> - value, ) { return __objc_msgSend_866( obj, sel, - value, ); } late final __objc_msgSend_866Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_866 = __objc_msgSend_866Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_descriptionFunction1 = _registerName1("descriptionFunction"); - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> - _objc_msgSend_867( + late final _sel_phoneNumber1 = _registerName1("phoneNumber"); + late final _sel_numberOfRanges1 = _registerName1("numberOfRanges"); + late final _sel_rangeAtIndex_1 = _registerName1("rangeAtIndex:"); + late final _sel_rangeWithName_1 = _registerName1("rangeWithName:"); + late final _sel_resultByAdjustingRangesWithOffset_1 = + _registerName1("resultByAdjustingRangesWithOffset:"); + ffi.Pointer _objc_msgSend_867( ffi.Pointer obj, ffi.Pointer sel, + int offset, ) { return __objc_msgSend_867( obj, sel, + offset, ); } - late final __objc_msgSend_867Ptr = - _lookup< - ffi.NativeFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>> - Function(ffi.Pointer, ffi.Pointer)>>( - 'objc_msgSend'); + late final __objc_msgSend_867Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Long)>>('objc_msgSend'); late final __objc_msgSend_867 = __objc_msgSend_867Ptr.asFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> - Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_setDescriptionFunction_1 = - _registerName1("setDescriptionFunction:"); - void _objc_msgSend_868( + late final _sel_addressComponents1 = _registerName1("addressComponents"); + late final _sel_orthographyCheckingResultWithRange_orthography_1 = + _registerName1("orthographyCheckingResultWithRange:orthography:"); + ffi.Pointer _objc_msgSend_868( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> - value, + _NSRange range, + ffi.Pointer orthography, ) { return __objc_msgSend_868( obj, sel, - value, + range, + orthography, ); } late final __objc_msgSend_868Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer)>>)>>('objc_msgSend'); + _NSRange, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_868 = __objc_msgSend_868Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange, ffi.Pointer)>(); - late final _sel_relinquishFunction1 = _registerName1("relinquishFunction"); - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>> - _objc_msgSend_869( + late final _sel_spellCheckingResultWithRange_1 = + _registerName1("spellCheckingResultWithRange:"); + ffi.Pointer _objc_msgSend_869( ffi.Pointer obj, ffi.Pointer sel, + _NSRange range, ) { return __objc_msgSend_869( obj, sel, + range, ); } late final __objc_msgSend_869Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - Function(ffi.Pointer, ffi.Pointer)>>( - 'objc_msgSend'); + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange)>>('objc_msgSend'); late final __objc_msgSend_869 = __objc_msgSend_869Ptr.asFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, _NSRange)>(); - late final _sel_setRelinquishFunction_1 = - _registerName1("setRelinquishFunction:"); - void _objc_msgSend_870( + late final _sel_grammarCheckingResultWithRange_details_1 = + _registerName1("grammarCheckingResultWithRange:details:"); + ffi.Pointer _objc_msgSend_870( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>> - value, + _NSRange range, + ffi.Pointer details, ) { return __objc_msgSend_870( obj, sel, - value, + range, + details, ); } late final __objc_msgSend_870Ptr = _lookup< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>>)>>( - 'objc_msgSend'); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_870 = __objc_msgSend_870Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>)>>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange, ffi.Pointer)>(); - late final _sel_acquireFunction1 = _registerName1("acquireFunction"); - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>, - ffi.Bool)>> _objc_msgSend_871( + late final _sel_dateCheckingResultWithRange_date_1 = + _registerName1("dateCheckingResultWithRange:date:"); + ffi.Pointer _objc_msgSend_871( ffi.Pointer obj, ffi.Pointer sel, + _NSRange range, + ffi.Pointer date, ) { return __objc_msgSend_871( obj, sel, + range, + date, ); } late final __objc_msgSend_871Ptr = _lookup< - ffi.NativeFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>, - ffi.Bool)>> - Function(ffi.Pointer, ffi.Pointer)>>( - 'objc_msgSend'); + ffi.NativeFunction< + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_871 = __objc_msgSend_871Ptr.asFunction< - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>, - ffi.Bool)>> - Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange, ffi.Pointer)>(); - late final _sel_setAcquireFunction_1 = _registerName1("setAcquireFunction:"); - void _objc_msgSend_872( + late final _sel_dateCheckingResultWithRange_date_timeZone_duration_1 = + _registerName1("dateCheckingResultWithRange:date:timeZone:duration:"); + ffi.Pointer _objc_msgSend_872( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>, - ffi.Bool)>> - value, + _NSRange range, + ffi.Pointer date, + ffi.Pointer timeZone, + double duration, ) { return __objc_msgSend_872( obj, sel, - value, + range, + date, + timeZone, + duration, ); } late final __objc_msgSend_872Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>, - ffi.Bool)>>)>>('objc_msgSend'); + _NSRange, + ffi.Pointer, + ffi.Pointer, + ffi.Double)>>('objc_msgSend'); late final __objc_msgSend_872 = __objc_msgSend_872Ptr.asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer)>>, - ffi.Bool)>>)>(); + _NSRange, + ffi.Pointer, + ffi.Pointer, + double)>(); - late final _sel_usesStrongWriteBarrier1 = - _registerName1("usesStrongWriteBarrier"); - late final _sel_setUsesStrongWriteBarrier_1 = - _registerName1("setUsesStrongWriteBarrier:"); - late final _sel_usesWeakReadAndWriteBarriers1 = - _registerName1("usesWeakReadAndWriteBarriers"); - late final _sel_setUsesWeakReadAndWriteBarriers_1 = - _registerName1("setUsesWeakReadAndWriteBarriers:"); - late final _sel_initWithPointerFunctions_1 = - _registerName1("initWithPointerFunctions:"); - instancetype _objc_msgSend_873( + late final _sel_addressCheckingResultWithRange_components_1 = + _registerName1("addressCheckingResultWithRange:components:"); + ffi.Pointer _objc_msgSend_873( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer functions, + _NSRange range, + ffi.Pointer components, ) { return __objc_msgSend_873( obj, sel, - functions, + range, + components, ); } late final __objc_msgSend_873Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_873 = __objc_msgSend_873Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange, ffi.Pointer)>(); - late final _sel_pointerArrayWithOptions_1 = - _registerName1("pointerArrayWithOptions:"); + late final _sel_linkCheckingResultWithRange_URL_1 = + _registerName1("linkCheckingResultWithRange:URL:"); ffi.Pointer _objc_msgSend_874( ffi.Pointer obj, ffi.Pointer sel, - int options, + _NSRange range, + ffi.Pointer url, ) { return __objc_msgSend_874( obj, sel, - options, + range, + url, ); } late final __objc_msgSend_874Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_874 = __objc_msgSend_874Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, _NSRange, ffi.Pointer)>(); - late final _sel_pointerArrayWithPointerFunctions_1 = - _registerName1("pointerArrayWithPointerFunctions:"); + late final _sel_quoteCheckingResultWithRange_replacementString_1 = + _registerName1("quoteCheckingResultWithRange:replacementString:"); ffi.Pointer _objc_msgSend_875( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer functions, + _NSRange range, + ffi.Pointer replacementString, ) { return __objc_msgSend_875( obj, sel, - functions, + range, + replacementString, ); } late final __objc_msgSend_875Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_875 = __objc_msgSend_875Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, _NSRange, ffi.Pointer)>(); - late final _sel_pointerFunctions1 = _registerName1("pointerFunctions"); + late final _sel_dashCheckingResultWithRange_replacementString_1 = + _registerName1("dashCheckingResultWithRange:replacementString:"); + late final _sel_replacementCheckingResultWithRange_replacementString_1 = + _registerName1("replacementCheckingResultWithRange:replacementString:"); + late final _sel_correctionCheckingResultWithRange_replacementString_1 = + _registerName1("correctionCheckingResultWithRange:replacementString:"); + late final _sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_1 = + _registerName1( + "correctionCheckingResultWithRange:replacementString:alternativeStrings:"); ffi.Pointer _objc_msgSend_876( ffi.Pointer obj, ffi.Pointer sel, + _NSRange range, + ffi.Pointer replacementString, + ffi.Pointer alternativeStrings, ) { return __objc_msgSend_876( obj, sel, + range, + replacementString, + alternativeStrings, ); } late final __objc_msgSend_876Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_876 = __objc_msgSend_876Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + _NSRange, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_pointerAtIndex_1 = _registerName1("pointerAtIndex:"); - ffi.Pointer _objc_msgSend_877( + late final _sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1 = + _registerName1( + "regularExpressionCheckingResultWithRanges:count:regularExpression:"); + ffi.Pointer _objc_msgSend_877( ffi.Pointer obj, ffi.Pointer sel, - int index, + ffi.Pointer<_NSRange> ranges, + int count, + ffi.Pointer regularExpression, ) { return __objc_msgSend_877( obj, sel, - index, + ranges, + count, + regularExpression, ); } late final __objc_msgSend_877Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_NSRange>, + ffi.UnsignedLong, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_877 = __objc_msgSend_877Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_NSRange>, + int, + ffi.Pointer)>(); - late final _sel_addPointer_1 = _registerName1("addPointer:"); - late final _sel_removePointerAtIndex_1 = - _registerName1("removePointerAtIndex:"); - late final _sel_insertPointer_atIndex_1 = - _registerName1("insertPointer:atIndex:"); - late final _sel_replacePointerAtIndex_withPointer_1 = - _registerName1("replacePointerAtIndex:withPointer:"); - void _objc_msgSend_878( + late final _sel_phoneNumberCheckingResultWithRange_phoneNumber_1 = + _registerName1("phoneNumberCheckingResultWithRange:phoneNumber:"); + late final _sel_transitInformationCheckingResultWithRange_components_1 = + _registerName1("transitInformationCheckingResultWithRange:components:"); + late final _class_NSURLCache1 = _getClass1("NSURLCache"); + late final _sel_sharedURLCache1 = _registerName1("sharedURLCache"); + ffi.Pointer _objc_msgSend_878( ffi.Pointer obj, ffi.Pointer sel, - int index, - ffi.Pointer item, ) { return __objc_msgSend_878( obj, sel, - index, - item, ); } late final __objc_msgSend_878Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_878 = __objc_msgSend_878Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_compact1 = _registerName1("compact"); - late final _sel_setCount_1 = _registerName1("setCount:"); - late final _sel_pointerArrayWithStrongObjects1 = - _registerName1("pointerArrayWithStrongObjects"); - late final _sel_pointerArrayWithWeakObjects1 = - _registerName1("pointerArrayWithWeakObjects"); - late final _sel_strongObjectsPointerArray1 = - _registerName1("strongObjectsPointerArray"); - ffi.Pointer _objc_msgSend_879( + late final _sel_setSharedURLCache_1 = _registerName1("setSharedURLCache:"); + void _objc_msgSend_879( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer value, ) { return __objc_msgSend_879( obj, sel, + value, ); } late final __objc_msgSend_879Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_879 = __objc_msgSend_879Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_weakObjectsPointerArray1 = - _registerName1("weakObjectsPointerArray"); - late final _class_NSProcessInfo1 = _getClass1("NSProcessInfo"); - late final _sel_processInfo1 = _registerName1("processInfo"); - ffi.Pointer _objc_msgSend_880( + late final _sel_initWithMemoryCapacity_diskCapacity_diskPath_1 = + _registerName1("initWithMemoryCapacity:diskCapacity:diskPath:"); + instancetype _objc_msgSend_880( ffi.Pointer obj, ffi.Pointer sel, + int memoryCapacity, + int diskCapacity, + ffi.Pointer path, ) { return __objc_msgSend_880( obj, sel, + memoryCapacity, + diskCapacity, + path, ); } late final __objc_msgSend_880Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_880 = __objc_msgSend_880Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, int, + int, ffi.Pointer)>(); - late final _sel_environment1 = _registerName1("environment"); - late final _sel_hostName1 = _registerName1("hostName"); - late final _sel_processName1 = _registerName1("processName"); - late final _sel_setProcessName_1 = _registerName1("setProcessName:"); - late final _sel_processIdentifier1 = _registerName1("processIdentifier"); - late final _sel_globallyUniqueString1 = - _registerName1("globallyUniqueString"); - late final _sel_operatingSystem1 = _registerName1("operatingSystem"); - late final _sel_operatingSystemName1 = _registerName1("operatingSystemName"); - late final _sel_operatingSystemVersionString1 = - _registerName1("operatingSystemVersionString"); - late final _sel_operatingSystemVersion1 = - _registerName1("operatingSystemVersion"); - void _objc_msgSend_881( - ffi.Pointer stret, + late final _sel_initWithMemoryCapacity_diskCapacity_directoryURL_1 = + _registerName1("initWithMemoryCapacity:diskCapacity:directoryURL:"); + instancetype _objc_msgSend_881( ffi.Pointer obj, ffi.Pointer sel, + int memoryCapacity, + int diskCapacity, + ffi.Pointer directoryURL, ) { return __objc_msgSend_881( - stret, obj, sel, + memoryCapacity, + diskCapacity, + directoryURL, ); } late final __objc_msgSend_881Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, + instancetype Function( ffi.Pointer, - ffi.Pointer)>>('objc_msgSend_stret'); + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_881 = __objc_msgSend_881Ptr.asFunction< - void Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, int, + int, ffi.Pointer)>(); - late final _sel_processorCount1 = _registerName1("processorCount"); - late final _sel_activeProcessorCount1 = - _registerName1("activeProcessorCount"); - late final _sel_physicalMemory1 = _registerName1("physicalMemory"); - late final _sel_isOperatingSystemAtLeastVersion_1 = - _registerName1("isOperatingSystemAtLeastVersion:"); - bool _objc_msgSend_882( + late final _class_NSCachedURLResponse1 = _getClass1("NSCachedURLResponse"); + late final _sel_initWithResponse_data_1 = + _registerName1("initWithResponse:data:"); + instancetype _objc_msgSend_882( ffi.Pointer obj, ffi.Pointer sel, - NSOperatingSystemVersion version, + ffi.Pointer response, + ffi.Pointer data, ) { return __objc_msgSend_882( obj, sel, - version, + response, + data, ); } late final __objc_msgSend_882Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - NSOperatingSystemVersion)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_882 = __objc_msgSend_882Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - NSOperatingSystemVersion)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_systemUptime1 = _registerName1("systemUptime"); - late final _sel_disableSuddenTermination1 = - _registerName1("disableSuddenTermination"); - late final _sel_enableSuddenTermination1 = - _registerName1("enableSuddenTermination"); - late final _sel_disableAutomaticTermination_1 = - _registerName1("disableAutomaticTermination:"); - late final _sel_enableAutomaticTermination_1 = - _registerName1("enableAutomaticTermination:"); - late final _sel_automaticTerminationSupportEnabled1 = - _registerName1("automaticTerminationSupportEnabled"); - late final _sel_setAutomaticTerminationSupportEnabled_1 = - _registerName1("setAutomaticTerminationSupportEnabled:"); - late final _sel_beginActivityWithOptions_reason_1 = - _registerName1("beginActivityWithOptions:reason:"); - ffi.Pointer _objc_msgSend_883( + late final _sel_initWithResponse_data_userInfo_storagePolicy_1 = + _registerName1("initWithResponse:data:userInfo:storagePolicy:"); + instancetype _objc_msgSend_883( ffi.Pointer obj, ffi.Pointer sel, - int options, - ffi.Pointer reason, + ffi.Pointer response, + ffi.Pointer data, + ffi.Pointer userInfo, + int storagePolicy, ) { return __objc_msgSend_883( obj, sel, - options, - reason, + response, + data, + userInfo, + storagePolicy, ); } late final __objc_msgSend_883Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + instancetype Function( ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_883 = __objc_msgSend_883Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, int, ffi.Pointer)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); - late final _sel_endActivity_1 = _registerName1("endActivity:"); - late final _sel_performActivityWithOptions_reason_usingBlock_1 = - _registerName1("performActivityWithOptions:reason:usingBlock:"); - void _objc_msgSend_884( + late final _sel_storagePolicy1 = _registerName1("storagePolicy"); + int _objc_msgSend_884( ffi.Pointer obj, ffi.Pointer sel, - int options, - ffi.Pointer reason, - ffi.Pointer<_ObjCBlock> block, ) { return __objc_msgSend_884( obj, sel, - options, - reason, - block, ); } late final __objc_msgSend_884Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_884 = __objc_msgSend_884Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_performExpiringActivityWithReason_usingBlock_1 = - _registerName1("performExpiringActivityWithReason:usingBlock:"); - void _objc_msgSend_885( + late final _sel_cachedResponseForRequest_1 = + _registerName1("cachedResponseForRequest:"); + ffi.Pointer _objc_msgSend_885( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer reason, - ffi.Pointer<_ObjCBlock> block, + ffi.Pointer request, ) { return __objc_msgSend_885( obj, sel, - reason, - block, + request, ); } late final __objc_msgSend_885Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_885 = __objc_msgSend_885Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_userName1 = _registerName1("userName"); - late final _sel_fullUserName1 = _registerName1("fullUserName"); - late final _sel_thermalState1 = _registerName1("thermalState"); - int _objc_msgSend_886( + late final _sel_storeCachedResponse_forRequest_1 = + _registerName1("storeCachedResponse:forRequest:"); + void _objc_msgSend_886( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer cachedResponse, + ffi.Pointer request, ) { return __objc_msgSend_886( obj, sel, + cachedResponse, + request, ); } late final __objc_msgSend_886Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_886 = __objc_msgSend_886Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_isLowPowerModeEnabled1 = - _registerName1("isLowPowerModeEnabled"); - late final _sel_isMacCatalystApp1 = _registerName1("isMacCatalystApp"); - late final _sel_isiOSAppOnMac1 = _registerName1("isiOSAppOnMac"); - late final _class_NSTextCheckingResult1 = _getClass1("NSTextCheckingResult"); - late final _sel_resultType1 = _registerName1("resultType"); - int _objc_msgSend_887( + late final _sel_removeCachedResponseForRequest_1 = + _registerName1("removeCachedResponseForRequest:"); + void _objc_msgSend_887( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer request, ) { return __objc_msgSend_887( obj, sel, + request, ); } late final __objc_msgSend_887Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_887 = __objc_msgSend_887Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_range1 = _registerName1("range"); - late final _sel_orthography1 = _registerName1("orthography"); - ffi.Pointer _objc_msgSend_888( + late final _sel_removeAllCachedResponses1 = + _registerName1("removeAllCachedResponses"); + late final _sel_removeCachedResponsesSinceDate_1 = + _registerName1("removeCachedResponsesSinceDate:"); + late final _sel_memoryCapacity1 = _registerName1("memoryCapacity"); + late final _sel_setMemoryCapacity_1 = _registerName1("setMemoryCapacity:"); + late final _sel_diskCapacity1 = _registerName1("diskCapacity"); + late final _sel_setDiskCapacity_1 = _registerName1("setDiskCapacity:"); + late final _sel_currentMemoryUsage1 = _registerName1("currentMemoryUsage"); + late final _sel_currentDiskUsage1 = _registerName1("currentDiskUsage"); + late final _class_NSURLSessionDataTask1 = _getClass1("NSURLSessionDataTask"); + late final _sel_storeCachedResponse_forDataTask_1 = + _registerName1("storeCachedResponse:forDataTask:"); + void _objc_msgSend_888( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer cachedResponse, + ffi.Pointer dataTask, ) { return __objc_msgSend_888( obj, sel, + cachedResponse, + dataTask, ); } late final __objc_msgSend_888Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_888 = __objc_msgSend_888Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_grammarDetails1 = _registerName1("grammarDetails"); - late final _sel_duration1 = _registerName1("duration"); - late final _sel_components1 = _registerName1("components"); - late final _sel_replacementString1 = _registerName1("replacementString"); - late final _sel_alternativeStrings1 = _registerName1("alternativeStrings"); - late final _class_NSRegularExpression1 = _getClass1("NSRegularExpression"); - late final _sel_regularExpressionWithPattern_options_error_1 = - _registerName1("regularExpressionWithPattern:options:error:"); - ffi.Pointer _objc_msgSend_889( + late final _sel_getCachedResponseForDataTask_completionHandler_1 = + _registerName1("getCachedResponseForDataTask:completionHandler:"); + void _objc_msgSend_889( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer pattern, - int options, - ffi.Pointer> error, + ffi.Pointer dataTask, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_889( obj, sel, - pattern, - options, - error, + dataTask, + completionHandler, ); } late final __objc_msgSend_889Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_889 = __objc_msgSend_889Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_initWithPattern_options_error_1 = - _registerName1("initWithPattern:options:error:"); - instancetype _objc_msgSend_890( + late final _sel_removeCachedResponseForDataTask_1 = + _registerName1("removeCachedResponseForDataTask:"); + void _objc_msgSend_890( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer pattern, - int options, - ffi.Pointer> error, + ffi.Pointer dataTask, ) { return __objc_msgSend_890( obj, sel, - pattern, - options, - error, + dataTask, ); } late final __objc_msgSend_890Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_890 = __objc_msgSend_890Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_pattern1 = _registerName1("pattern"); - int _objc_msgSend_891( + late final _class_NSURLConnection1 = _getClass1("NSURLConnection"); + late final _sel_initWithRequest_delegate_startImmediately_1 = + _registerName1("initWithRequest:delegate:startImmediately:"); + instancetype _objc_msgSend_891( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer request, + ffi.Pointer delegate, + bool startImmediately, ) { return __objc_msgSend_891( obj, sel, + request, + delegate, + startImmediately, ); } late final __objc_msgSend_891Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Bool)>>('objc_msgSend'); late final __objc_msgSend_891 = __objc_msgSend_891Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, bool)>(); - late final _sel_numberOfCaptureGroups1 = - _registerName1("numberOfCaptureGroups"); - late final _sel_escapedPatternForString_1 = - _registerName1("escapedPatternForString:"); - late final _sel_enumerateMatchesInString_options_range_usingBlock_1 = - _registerName1("enumerateMatchesInString:options:range:usingBlock:"); - void _objc_msgSend_892( + late final _sel_initWithRequest_delegate_1 = + _registerName1("initWithRequest:delegate:"); + instancetype _objc_msgSend_892( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer string, - int options, - _NSRange range, - ffi.Pointer<_ObjCBlock> block, + ffi.Pointer request, + ffi.Pointer delegate, ) { return __objc_msgSend_892( obj, sel, - string, - options, - range, - block, - ); + request, + delegate, + ); } late final __objc_msgSend_892Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - _NSRange, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_892 = __objc_msgSend_892Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange, ffi.Pointer<_ObjCBlock>)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_matchesInString_options_range_1 = - _registerName1("matchesInString:options:range:"); + late final _sel_connectionWithRequest_delegate_1 = + _registerName1("connectionWithRequest:delegate:"); ffi.Pointer _objc_msgSend_893( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer string, - int options, - _NSRange range, + ffi.Pointer request, + ffi.Pointer delegate, ) { return __objc_msgSend_893( obj, sel, - string, - options, - range, + request, + delegate, ); } @@ -25348,276 +25417,255 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - _NSRange)>>('objc_msgSend'); + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_893 = __objc_msgSend_893Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, _NSRange)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_numberOfMatchesInString_options_range_1 = - _registerName1("numberOfMatchesInString:options:range:"); - int _objc_msgSend_894( + late final _sel_unscheduleFromRunLoop_forMode_1 = + _registerName1("unscheduleFromRunLoop:forMode:"); + late final _sel_setDelegateQueue_1 = _registerName1("setDelegateQueue:"); + void _objc_msgSend_894( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer string, - int options, - _NSRange range, + ffi.Pointer queue, ) { return __objc_msgSend_894( obj, sel, - string, - options, - range, + queue, ); } late final __objc_msgSend_894Ptr = _lookup< ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - _NSRange)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_894 = __objc_msgSend_894Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_firstMatchInString_options_range_1 = - _registerName1("firstMatchInString:options:range:"); - ffi.Pointer _objc_msgSend_895( + late final _sel_canHandleRequest_1 = _registerName1("canHandleRequest:"); + bool _objc_msgSend_895( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer string, - int options, - _NSRange range, + ffi.Pointer request, ) { return __objc_msgSend_895( obj, sel, - string, - options, - range, + request, ); } late final __objc_msgSend_895Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - _NSRange)>>('objc_msgSend'); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_895 = __objc_msgSend_895Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, _NSRange)>(); + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_rangeOfFirstMatchInString_options_range_1 = - _registerName1("rangeOfFirstMatchInString:options:range:"); - void _objc_msgSend_896( - ffi.Pointer<_NSRange> stret, + late final _sel_sendSynchronousRequest_returningResponse_error_1 = + _registerName1("sendSynchronousRequest:returningResponse:error:"); + ffi.Pointer _objc_msgSend_896( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer string, - int options, - _NSRange range, + ffi.Pointer request, + ffi.Pointer> response, + ffi.Pointer> error, ) { return __objc_msgSend_896( - stret, obj, sel, - string, - options, - range, + request, + response, + error, ); } late final __objc_msgSend_896Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_NSRange>, + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - _NSRange)>>('objc_msgSend_stret'); + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_896 = __objc_msgSend_896Ptr.asFunction< - void Function(ffi.Pointer<_NSRange>, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int, _NSRange)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, + ffi.Pointer>)>(); - late final _sel_stringByReplacingMatchesInString_options_range_withTemplate_1 = - _registerName1( - "stringByReplacingMatchesInString:options:range:withTemplate:"); - ffi.Pointer _objc_msgSend_897( + late final _sel_sendAsynchronousRequest_queue_completionHandler_1 = + _registerName1("sendAsynchronousRequest:queue:completionHandler:"); + void _objc_msgSend_897( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer string, - int options, - _NSRange range, - ffi.Pointer templ, + ffi.Pointer request, + ffi.Pointer queue, + ffi.Pointer<_ObjCBlock> handler, ) { return __objc_msgSend_897( obj, sel, - string, - options, - range, - templ, + request, + queue, + handler, ); } late final __objc_msgSend_897Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_897 = __objc_msgSend_897Ptr.asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - _NSRange, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_replaceMatchesInString_options_range_withTemplate_1 = - _registerName1("replaceMatchesInString:options:range:withTemplate:"); + late final _class_NSURLCredential1 = _getClass1("NSURLCredential"); + late final _sel_persistence1 = _registerName1("persistence"); int _objc_msgSend_898( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer string, - int options, - _NSRange range, - ffi.Pointer templ, ) { return __objc_msgSend_898( obj, sel, - string, - options, - range, - templ, ); } late final __objc_msgSend_898Ptr = _lookup< ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_898 = __objc_msgSend_898Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int, _NSRange, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_replacementStringForResult_inString_offset_template_1 = - _registerName1("replacementStringForResult:inString:offset:template:"); - ffi.Pointer _objc_msgSend_899( + late final _sel_initWithUser_password_persistence_1 = + _registerName1("initWithUser:password:persistence:"); + instancetype _objc_msgSend_899( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer result, - ffi.Pointer string, - int offset, - ffi.Pointer templ, + ffi.Pointer user, + ffi.Pointer password, + int persistence, ) { return __objc_msgSend_899( obj, sel, - result, - string, - offset, - templ, + user, + password, + persistence, ); } late final __objc_msgSend_899Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Long, - ffi.Pointer)>>('objc_msgSend'); + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_899 = __objc_msgSend_899Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_escapedTemplateForString_1 = - _registerName1("escapedTemplateForString:"); - late final _sel_regularExpression1 = _registerName1("regularExpression"); + late final _sel_credentialWithUser_password_persistence_1 = + _registerName1("credentialWithUser:password:persistence:"); ffi.Pointer _objc_msgSend_900( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer user, + ffi.Pointer password, + int persistence, ) { return __objc_msgSend_900( obj, sel, + user, + password, + persistence, ); } late final __objc_msgSend_900Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_900 = __objc_msgSend_900Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int)>(); - late final _sel_phoneNumber1 = _registerName1("phoneNumber"); - late final _sel_numberOfRanges1 = _registerName1("numberOfRanges"); - late final _sel_rangeAtIndex_1 = _registerName1("rangeAtIndex:"); - late final _sel_rangeWithName_1 = _registerName1("rangeWithName:"); - late final _sel_resultByAdjustingRangesWithOffset_1 = - _registerName1("resultByAdjustingRangesWithOffset:"); - ffi.Pointer _objc_msgSend_901( + late final _sel_hasPassword1 = _registerName1("hasPassword"); + late final _sel_initWithIdentity_certificates_persistence_1 = + _registerName1("initWithIdentity:certificates:persistence:"); + instancetype _objc_msgSend_901( ffi.Pointer obj, ffi.Pointer sel, - int offset, + ffi.Pointer<__SecIdentity> identity, + ffi.Pointer certArray, + int persistence, ) { return __objc_msgSend_901( obj, sel, - offset, + identity, + certArray, + persistence, ); } late final __objc_msgSend_901Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Long)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__SecIdentity>, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_901 = __objc_msgSend_901Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<__SecIdentity>, ffi.Pointer, int)>(); - late final _sel_addressComponents1 = _registerName1("addressComponents"); - late final _sel_orthographyCheckingResultWithRange_orthography_1 = - _registerName1("orthographyCheckingResultWithRange:orthography:"); + late final _sel_credentialWithIdentity_certificates_persistence_1 = + _registerName1("credentialWithIdentity:certificates:persistence:"); ffi.Pointer _objc_msgSend_902( ffi.Pointer obj, ffi.Pointer sel, - _NSRange range, - ffi.Pointer orthography, + ffi.Pointer<__SecIdentity> identity, + ffi.Pointer certArray, + int persistence, ) { return __objc_msgSend_902( obj, sel, - range, - orthography, + identity, + certArray, + persistence, ); } @@ -25626,433 +25674,444 @@ class SentryCocoa { ffi.Pointer Function( ffi.Pointer, ffi.Pointer, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer<__SecIdentity>, + ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_902 = __objc_msgSend_902Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<__SecIdentity>, + ffi.Pointer, + int)>(); - late final _sel_spellCheckingResultWithRange_1 = - _registerName1("spellCheckingResultWithRange:"); - ffi.Pointer _objc_msgSend_903( + late final _sel_identity1 = _registerName1("identity"); + ffi.Pointer<__SecIdentity> _objc_msgSend_903( ffi.Pointer obj, ffi.Pointer sel, - _NSRange range, ) { return __objc_msgSend_903( obj, sel, - range, ); } late final __objc_msgSend_903Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange)>>('objc_msgSend'); + ffi.Pointer<__SecIdentity> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_903 = __objc_msgSend_903Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, _NSRange)>(); + ffi.Pointer<__SecIdentity> Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_grammarCheckingResultWithRange_details_1 = - _registerName1("grammarCheckingResultWithRange:details:"); - ffi.Pointer _objc_msgSend_904( + late final _sel_certificates1 = _registerName1("certificates"); + late final _sel_initWithTrust_1 = _registerName1("initWithTrust:"); + instancetype _objc_msgSend_904( ffi.Pointer obj, ffi.Pointer sel, - _NSRange range, - ffi.Pointer details, + ffi.Pointer<__SecTrust> trust, ) { return __objc_msgSend_904( obj, sel, - range, - details, + trust, ); } late final __objc_msgSend_904Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<__SecTrust>)>>('objc_msgSend'); late final __objc_msgSend_904 = __objc_msgSend_904Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange, ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<__SecTrust>)>(); - late final _sel_dateCheckingResultWithRange_date_1 = - _registerName1("dateCheckingResultWithRange:date:"); + late final _sel_credentialForTrust_1 = _registerName1("credentialForTrust:"); ffi.Pointer _objc_msgSend_905( ffi.Pointer obj, ffi.Pointer sel, - _NSRange range, - ffi.Pointer date, + ffi.Pointer<__SecTrust> trust, ) { return __objc_msgSend_905( obj, sel, - range, - date, + trust, ); } late final __objc_msgSend_905Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer<__SecTrust>)>>('objc_msgSend'); late final __objc_msgSend_905 = __objc_msgSend_905Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer<__SecTrust>)>(); - late final _sel_dateCheckingResultWithRange_date_timeZone_duration_1 = - _registerName1("dateCheckingResultWithRange:date:timeZone:duration:"); - ffi.Pointer _objc_msgSend_906( + late final _class_NSURLProtectionSpace1 = _getClass1("NSURLProtectionSpace"); + late final _sel_initWithHost_port_protocol_realm_authenticationMethod_1 = + _registerName1("initWithHost:port:protocol:realm:authenticationMethod:"); + instancetype _objc_msgSend_906( ffi.Pointer obj, ffi.Pointer sel, - _NSRange range, - ffi.Pointer date, - ffi.Pointer timeZone, - double duration, + ffi.Pointer host, + int port, + ffi.Pointer protocol, + ffi.Pointer realm, + ffi.Pointer authenticationMethod, ) { return __objc_msgSend_906( obj, sel, - range, - date, - timeZone, - duration, + host, + port, + protocol, + realm, + authenticationMethod, ); } late final __objc_msgSend_906Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + instancetype Function( ffi.Pointer, ffi.Pointer, - _NSRange, + ffi.Pointer, + ffi.Long, ffi.Pointer, ffi.Pointer, - ffi.Double)>>('objc_msgSend'); + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_906 = __objc_msgSend_906Ptr.asFunction< - ffi.Pointer Function( + instancetype Function( ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Pointer, + int, ffi.Pointer, - double)>(); + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_addressCheckingResultWithRange_components_1 = - _registerName1("addressCheckingResultWithRange:components:"); - ffi.Pointer _objc_msgSend_907( + late final _sel_initWithProxyHost_port_type_realm_authenticationMethod_1 = + _registerName1("initWithProxyHost:port:type:realm:authenticationMethod:"); + late final _sel_realm1 = _registerName1("realm"); + late final _sel_receivesCredentialSecurely1 = + _registerName1("receivesCredentialSecurely"); + late final _sel_isProxy1 = _registerName1("isProxy"); + late final _sel_proxyType1 = _registerName1("proxyType"); + late final _sel_protocol1 = _registerName1("protocol"); + late final _sel_authenticationMethod1 = + _registerName1("authenticationMethod"); + late final _sel_distinguishedNames1 = _registerName1("distinguishedNames"); + late final _sel_serverTrust1 = _registerName1("serverTrust"); + ffi.Pointer<__SecTrust> _objc_msgSend_907( ffi.Pointer obj, ffi.Pointer sel, - _NSRange range, - ffi.Pointer components, ) { return __objc_msgSend_907( obj, sel, - range, - components, ); } late final __objc_msgSend_907Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer<__SecTrust> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_907 = __objc_msgSend_907Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange, ffi.Pointer)>(); + ffi.Pointer<__SecTrust> Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_linkCheckingResultWithRange_URL_1 = - _registerName1("linkCheckingResultWithRange:URL:"); + late final _class_NSURLCredentialStorage1 = + _getClass1("NSURLCredentialStorage"); + late final _sel_sharedCredentialStorage1 = + _registerName1("sharedCredentialStorage"); ffi.Pointer _objc_msgSend_908( ffi.Pointer obj, ffi.Pointer sel, - _NSRange range, - ffi.Pointer url, ) { return __objc_msgSend_908( obj, sel, - range, - url, ); } late final __objc_msgSend_908Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_908 = __objc_msgSend_908Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_quoteCheckingResultWithRange_replacementString_1 = - _registerName1("quoteCheckingResultWithRange:replacementString:"); + late final _sel_credentialsForProtectionSpace_1 = + _registerName1("credentialsForProtectionSpace:"); ffi.Pointer _objc_msgSend_909( ffi.Pointer obj, ffi.Pointer sel, - _NSRange range, - ffi.Pointer replacementString, + ffi.Pointer space, ) { return __objc_msgSend_909( obj, sel, - range, - replacementString, + space, ); } late final __objc_msgSend_909Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_909 = __objc_msgSend_909Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, _NSRange, ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>(); - late final _sel_dashCheckingResultWithRange_replacementString_1 = - _registerName1("dashCheckingResultWithRange:replacementString:"); - late final _sel_replacementCheckingResultWithRange_replacementString_1 = - _registerName1("replacementCheckingResultWithRange:replacementString:"); - late final _sel_correctionCheckingResultWithRange_replacementString_1 = - _registerName1("correctionCheckingResultWithRange:replacementString:"); - late final _sel_correctionCheckingResultWithRange_replacementString_alternativeStrings_1 = - _registerName1( - "correctionCheckingResultWithRange:replacementString:alternativeStrings:"); - ffi.Pointer _objc_msgSend_910( + late final _sel_allCredentials1 = _registerName1("allCredentials"); + late final _sel_setCredential_forProtectionSpace_1 = + _registerName1("setCredential:forProtectionSpace:"); + void _objc_msgSend_910( ffi.Pointer obj, ffi.Pointer sel, - _NSRange range, - ffi.Pointer replacementString, - ffi.Pointer alternativeStrings, + ffi.Pointer credential, + ffi.Pointer space, ) { return __objc_msgSend_910( obj, sel, - range, - replacementString, - alternativeStrings, + credential, + space, ); } late final __objc_msgSend_910Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - _NSRange, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_910 = __objc_msgSend_910Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - _NSRange, - ffi.Pointer, - ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1 = - _registerName1( - "regularExpressionCheckingResultWithRanges:count:regularExpression:"); - ffi.Pointer _objc_msgSend_911( + late final _sel_removeCredential_forProtectionSpace_1 = + _registerName1("removeCredential:forProtectionSpace:"); + late final _sel_removeCredential_forProtectionSpace_options_1 = + _registerName1("removeCredential:forProtectionSpace:options:"); + void _objc_msgSend_911( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_NSRange> ranges, - int count, - ffi.Pointer regularExpression, + ffi.Pointer credential, + ffi.Pointer space, + ffi.Pointer options, ) { return __objc_msgSend_911( obj, sel, - ranges, - count, - regularExpression, + credential, + space, + options, ); } late final __objc_msgSend_911Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer<_NSRange>, - ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_911 = __objc_msgSend_911Ptr.asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer<_NSRange>, - int, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_phoneNumberCheckingResultWithRange_phoneNumber_1 = - _registerName1("phoneNumberCheckingResultWithRange:phoneNumber:"); - late final _sel_transitInformationCheckingResultWithRange_components_1 = - _registerName1("transitInformationCheckingResultWithRange:components:"); - late final _class_NSURLCache1 = _getClass1("NSURLCache"); - late final _sel_sharedURLCache1 = _registerName1("sharedURLCache"); + late final _sel_defaultCredentialForProtectionSpace_1 = + _registerName1("defaultCredentialForProtectionSpace:"); ffi.Pointer _objc_msgSend_912( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer space, ) { return __objc_msgSend_912( obj, sel, + space, ); } late final __objc_msgSend_912Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_912 = __objc_msgSend_912Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_setSharedURLCache_1 = _registerName1("setSharedURLCache:"); + late final _sel_setDefaultCredential_forProtectionSpace_1 = + _registerName1("setDefaultCredential:forProtectionSpace:"); + late final _sel_getCredentialsForProtectionSpace_task_completionHandler_1 = + _registerName1( + "getCredentialsForProtectionSpace:task:completionHandler:"); void _objc_msgSend_913( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, + ffi.Pointer protectionSpace, + ffi.Pointer task, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_913( obj, sel, - value, + protectionSpace, + task, + completionHandler, ); } late final __objc_msgSend_913Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_913 = __objc_msgSend_913Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_initWithMemoryCapacity_diskCapacity_diskPath_1 = - _registerName1("initWithMemoryCapacity:diskCapacity:diskPath:"); - instancetype _objc_msgSend_914( + late final _sel_setCredential_forProtectionSpace_task_1 = + _registerName1("setCredential:forProtectionSpace:task:"); + void _objc_msgSend_914( ffi.Pointer obj, ffi.Pointer sel, - int memoryCapacity, - int diskCapacity, - ffi.Pointer path, + ffi.Pointer credential, + ffi.Pointer protectionSpace, + ffi.Pointer task, ) { return __objc_msgSend_914( obj, sel, - memoryCapacity, - diskCapacity, - path, + credential, + protectionSpace, + task, ); } late final __objc_msgSend_914Ptr = _lookup< ffi.NativeFunction< - instancetype Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_914 = __objc_msgSend_914Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, int, - int, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_initWithMemoryCapacity_diskCapacity_directoryURL_1 = - _registerName1("initWithMemoryCapacity:diskCapacity:directoryURL:"); - instancetype _objc_msgSend_915( + late final _sel_removeCredential_forProtectionSpace_options_task_1 = + _registerName1("removeCredential:forProtectionSpace:options:task:"); + void _objc_msgSend_915( ffi.Pointer obj, ffi.Pointer sel, - int memoryCapacity, - int diskCapacity, - ffi.Pointer directoryURL, + ffi.Pointer credential, + ffi.Pointer protectionSpace, + ffi.Pointer options, + ffi.Pointer task, ) { return __objc_msgSend_915( obj, sel, - memoryCapacity, - diskCapacity, - directoryURL, + credential, + protectionSpace, + options, + task, ); } late final __objc_msgSend_915Ptr = _lookup< ffi.NativeFunction< - instancetype Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_915 = __objc_msgSend_915Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, int, - int, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _class_NSCachedURLResponse1 = _getClass1("NSCachedURLResponse"); - late final _sel_initWithResponse_data_1 = - _registerName1("initWithResponse:data:"); - instancetype _objc_msgSend_916( + late final _sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1 = + _registerName1( + "getDefaultCredentialForProtectionSpace:task:completionHandler:"); + void _objc_msgSend_916( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer response, - ffi.Pointer data, + ffi.Pointer space, + ffi.Pointer task, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_916( obj, sel, - response, - data, + space, + task, + completionHandler, ); } late final __objc_msgSend_916Ptr = _lookup< ffi.NativeFunction< - instancetype Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_916 = __objc_msgSend_916Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_initWithResponse_data_userInfo_storagePolicy_1 = - _registerName1("initWithResponse:data:userInfo:storagePolicy:"); + late final _sel_setDefaultCredential_forProtectionSpace_task_1 = + _registerName1("setDefaultCredential:forProtectionSpace:task:"); + late final _class_NSURLProtocol1 = _getClass1("NSURLProtocol"); + late final _sel_initWithRequest_cachedResponse_client_1 = + _registerName1("initWithRequest:cachedResponse:client:"); instancetype _objc_msgSend_917( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer response, - ffi.Pointer data, - ffi.Pointer userInfo, - int storagePolicy, + ffi.Pointer request, + ffi.Pointer cachedResponse, + ffi.Pointer client, ) { return __objc_msgSend_917( obj, sel, - response, - data, - userInfo, - storagePolicy, + request, + cachedResponse, + client, ); } @@ -26063,19 +26122,19 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_917 = __objc_msgSend_917Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - int)>(); + ffi.Pointer)>(); - late final _sel_storagePolicy1 = _registerName1("storagePolicy"); - int _objc_msgSend_918( + late final _sel_client1 = _registerName1("client"); + late final _sel_request1 = _registerName1("request"); + late final _sel_cachedResponse1 = _registerName1("cachedResponse"); + ffi.Pointer _objc_msgSend_918( ffi.Pointer obj, ffi.Pointer sel, ) { @@ -26087,13 +26146,15 @@ class SentryCocoa { late final __objc_msgSend_918Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_918 = __objc_msgSend_918Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_cachedResponseForRequest_1 = - _registerName1("cachedResponseForRequest:"); + late final _sel_canInitWithRequest_1 = _registerName1("canInitWithRequest:"); + late final _sel_canonicalRequestForRequest_1 = + _registerName1("canonicalRequestForRequest:"); ffi.Pointer _objc_msgSend_919( ffi.Pointer obj, ffi.Pointer sel, @@ -26114,263 +26175,266 @@ class SentryCocoa { ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_storeCachedResponse_forRequest_1 = - _registerName1("storeCachedResponse:forRequest:"); - void _objc_msgSend_920( + late final _sel_requestIsCacheEquivalent_toRequest_1 = + _registerName1("requestIsCacheEquivalent:toRequest:"); + bool _objc_msgSend_920( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer cachedResponse, - ffi.Pointer request, + ffi.Pointer a, + ffi.Pointer b, ) { return __objc_msgSend_920( obj, sel, - cachedResponse, - request, + a, + b, ); } late final __objc_msgSend_920Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_920 = __objc_msgSend_920Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, + bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_removeCachedResponseForRequest_1 = - _registerName1("removeCachedResponseForRequest:"); - void _objc_msgSend_921( + late final _sel_startLoading1 = _registerName1("startLoading"); + late final _sel_stopLoading1 = _registerName1("stopLoading"); + late final _sel_propertyForKey_inRequest_1 = + _registerName1("propertyForKey:inRequest:"); + ffi.Pointer _objc_msgSend_921( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer key, ffi.Pointer request, ) { return __objc_msgSend_921( obj, sel, + key, request, ); } late final __objc_msgSend_921Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_921 = __objc_msgSend_921Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_removeAllCachedResponses1 = - _registerName1("removeAllCachedResponses"); - late final _sel_removeCachedResponsesSinceDate_1 = - _registerName1("removeCachedResponsesSinceDate:"); - late final _sel_memoryCapacity1 = _registerName1("memoryCapacity"); - late final _sel_setMemoryCapacity_1 = _registerName1("setMemoryCapacity:"); - late final _sel_diskCapacity1 = _registerName1("diskCapacity"); - late final _sel_setDiskCapacity_1 = _registerName1("setDiskCapacity:"); - late final _sel_currentMemoryUsage1 = _registerName1("currentMemoryUsage"); - late final _sel_currentDiskUsage1 = _registerName1("currentDiskUsage"); - late final _class_NSURLSessionDataTask1 = _getClass1("NSURLSessionDataTask"); - late final _sel_storeCachedResponse_forDataTask_1 = - _registerName1("storeCachedResponse:forDataTask:"); + late final _class_NSMutableURLRequest1 = _getClass1("NSMutableURLRequest"); + late final _sel_setURL_1 = _registerName1("setURL:"); + late final _sel_setCachePolicy_1 = _registerName1("setCachePolicy:"); void _objc_msgSend_922( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer cachedResponse, - ffi.Pointer dataTask, + int value, ) { return __objc_msgSend_922( obj, sel, - cachedResponse, - dataTask, + value, ); } late final __objc_msgSend_922Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_922 = __objc_msgSend_922Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_getCachedResponseForDataTask_completionHandler_1 = - _registerName1("getCachedResponseForDataTask:completionHandler:"); + late final _sel_setTimeoutInterval_1 = _registerName1("setTimeoutInterval:"); + late final _sel_setMainDocumentURL_1 = _registerName1("setMainDocumentURL:"); + late final _sel_setNetworkServiceType_1 = + _registerName1("setNetworkServiceType:"); void _objc_msgSend_923( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer dataTask, - ffi.Pointer<_ObjCBlock> completionHandler, + int value, ) { return __objc_msgSend_923( obj, sel, - dataTask, - completionHandler, + value, ); } late final __objc_msgSend_923Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_923 = __objc_msgSend_923Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_removeCachedResponseForDataTask_1 = - _registerName1("removeCachedResponseForDataTask:"); + late final _sel_setAllowsCellularAccess_1 = + _registerName1("setAllowsCellularAccess:"); + late final _sel_setAllowsExpensiveNetworkAccess_1 = + _registerName1("setAllowsExpensiveNetworkAccess:"); + late final _sel_setAllowsConstrainedNetworkAccess_1 = + _registerName1("setAllowsConstrainedNetworkAccess:"); + late final _sel_setAssumesHTTP3Capable_1 = + _registerName1("setAssumesHTTP3Capable:"); + late final _sel_setAttribution_1 = _registerName1("setAttribution:"); void _objc_msgSend_924( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer dataTask, + int value, ) { return __objc_msgSend_924( obj, sel, - dataTask, + value, ); } late final __objc_msgSend_924Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_924 = __objc_msgSend_924Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _class_NSURLConnection1 = _getClass1("NSURLConnection"); - late final _sel_initWithRequest_delegate_startImmediately_1 = - _registerName1("initWithRequest:delegate:startImmediately:"); - instancetype _objc_msgSend_925( + late final _sel_setRequiresDNSSECValidation_1 = + _registerName1("setRequiresDNSSECValidation:"); + late final _sel_setHTTPMethod_1 = _registerName1("setHTTPMethod:"); + late final _sel_setAllHTTPHeaderFields_1 = + _registerName1("setAllHTTPHeaderFields:"); + late final _sel_setValue_forHTTPHeaderField_1 = + _registerName1("setValue:forHTTPHeaderField:"); + late final _sel_addValue_forHTTPHeaderField_1 = + _registerName1("addValue:forHTTPHeaderField:"); + late final _sel_setHTTPBody_1 = _registerName1("setHTTPBody:"); + void _objc_msgSend_925( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer delegate, - bool startImmediately, + ffi.Pointer value, ) { return __objc_msgSend_925( obj, sel, - request, - delegate, - startImmediately, + value, ); } late final __objc_msgSend_925Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Bool)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_925 = __objc_msgSend_925Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, bool)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_initWithRequest_delegate_1 = - _registerName1("initWithRequest:delegate:"); - instancetype _objc_msgSend_926( + late final _sel_setHTTPBodyStream_1 = _registerName1("setHTTPBodyStream:"); + void _objc_msgSend_926( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer delegate, + ffi.Pointer value, ) { return __objc_msgSend_926( obj, sel, - request, - delegate, + value, ); } late final __objc_msgSend_926Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_926 = __objc_msgSend_926Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_connectionWithRequest_delegate_1 = - _registerName1("connectionWithRequest:delegate:"); - ffi.Pointer _objc_msgSend_927( + late final _sel_setHTTPShouldHandleCookies_1 = + _registerName1("setHTTPShouldHandleCookies:"); + late final _sel_setHTTPShouldUsePipelining_1 = + _registerName1("setHTTPShouldUsePipelining:"); + late final _sel_setProperty_forKey_inRequest_1 = + _registerName1("setProperty:forKey:inRequest:"); + void _objc_msgSend_927( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer value, + ffi.Pointer key, ffi.Pointer request, - ffi.Pointer delegate, ) { return __objc_msgSend_927( obj, sel, + value, + key, request, - delegate, ); } late final __objc_msgSend_927Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_927 = __objc_msgSend_927Ptr.asFunction< - ffi.Pointer Function( + void Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_unscheduleFromRunLoop_forMode_1 = - _registerName1("unscheduleFromRunLoop:forMode:"); - late final _sel_setDelegateQueue_1 = _registerName1("setDelegateQueue:"); + late final _sel_removePropertyForKey_inRequest_1 = + _registerName1("removePropertyForKey:inRequest:"); void _objc_msgSend_928( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer queue, + ffi.Pointer key, + ffi.Pointer request, ) { return __objc_msgSend_928( obj, sel, - queue, + key, + request, ); } late final __objc_msgSend_928Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_928 = __objc_msgSend_928Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>(); - late final _sel_canHandleRequest_1 = _registerName1("canHandleRequest:"); + late final _sel_registerClass_1 = _registerName1("registerClass:"); + late final _sel_unregisterClass_1 = _registerName1("unregisterClass:"); + late final _sel_canInitWithTask_1 = _registerName1("canInitWithTask:"); bool _objc_msgSend_929( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, + ffi.Pointer task, ) { return __objc_msgSend_929( obj, sel, - request, + task, ); } @@ -26382,672 +26446,664 @@ class SentryCocoa { bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_sendSynchronousRequest_returningResponse_error_1 = - _registerName1("sendSynchronousRequest:returningResponse:error:"); - ffi.Pointer _objc_msgSend_930( + late final _sel_initWithTask_cachedResponse_client_1 = + _registerName1("initWithTask:cachedResponse:client:"); + instancetype _objc_msgSend_930( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer> response, - ffi.Pointer> error, + ffi.Pointer task, + ffi.Pointer cachedResponse, + ffi.Pointer client, ) { return __objc_msgSend_930( obj, sel, - request, - response, - error, + task, + cachedResponse, + client, ); } late final __objc_msgSend_930Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_930 = __objc_msgSend_930Ptr.asFunction< - ffi.Pointer Function( + instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>(); + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_sendAsynchronousRequest_queue_completionHandler_1 = - _registerName1("sendAsynchronousRequest:queue:completionHandler:"); - void _objc_msgSend_931( + late final _sel_task1 = _registerName1("task"); + ffi.Pointer _objc_msgSend_931( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer queue, - ffi.Pointer<_ObjCBlock> handler, ) { return __objc_msgSend_931( obj, sel, - request, - queue, - handler, ); } late final __objc_msgSend_931Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_931 = __objc_msgSend_931Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _class_NSURLCredential1 = _getClass1("NSURLCredential"); - late final _sel_persistence1 = _registerName1("persistence"); - int _objc_msgSend_932( + late final _class_NSXMLParser1 = _getClass1("NSXMLParser"); + late final _sel_initWithStream_1 = _registerName1("initWithStream:"); + instancetype _objc_msgSend_932( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer stream, ) { return __objc_msgSend_932( obj, sel, + stream, ); } late final __objc_msgSend_932Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_932 = __objc_msgSend_932Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_initWithUser_password_persistence_1 = - _registerName1("initWithUser:password:persistence:"); - instancetype _objc_msgSend_933( + late final _sel_shouldProcessNamespaces1 = + _registerName1("shouldProcessNamespaces"); + late final _sel_setShouldProcessNamespaces_1 = + _registerName1("setShouldProcessNamespaces:"); + late final _sel_shouldReportNamespacePrefixes1 = + _registerName1("shouldReportNamespacePrefixes"); + late final _sel_setShouldReportNamespacePrefixes_1 = + _registerName1("setShouldReportNamespacePrefixes:"); + late final _sel_externalEntityResolvingPolicy1 = + _registerName1("externalEntityResolvingPolicy"); + int _objc_msgSend_933( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer user, - ffi.Pointer password, - int persistence, ) { return __objc_msgSend_933( obj, sel, - user, - password, - persistence, ); } late final __objc_msgSend_933Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_933 = __objc_msgSend_933Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_credentialWithUser_password_persistence_1 = - _registerName1("credentialWithUser:password:persistence:"); - ffi.Pointer _objc_msgSend_934( + late final _sel_setExternalEntityResolvingPolicy_1 = + _registerName1("setExternalEntityResolvingPolicy:"); + void _objc_msgSend_934( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer user, - ffi.Pointer password, - int persistence, + int value, ) { return __objc_msgSend_934( obj, sel, - user, - password, - persistence, + value, ); } late final __objc_msgSend_934Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_934 = __objc_msgSend_934Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_hasPassword1 = _registerName1("hasPassword"); - late final _sel_initWithIdentity_certificates_persistence_1 = - _registerName1("initWithIdentity:certificates:persistence:"); - instancetype _objc_msgSend_935( + late final _sel_allowedExternalEntityURLs1 = + _registerName1("allowedExternalEntityURLs"); + late final _sel_setAllowedExternalEntityURLs_1 = + _registerName1("setAllowedExternalEntityURLs:"); + void _objc_msgSend_935( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<__SecIdentity> identity, - ffi.Pointer certArray, - int persistence, + ffi.Pointer value, ) { return __objc_msgSend_935( obj, sel, - identity, - certArray, - persistence, + value, ); } late final __objc_msgSend_935Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<__SecIdentity>, - ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_935 = __objc_msgSend_935Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<__SecIdentity>, ffi.Pointer, int)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_credentialWithIdentity_certificates_persistence_1 = - _registerName1("credentialWithIdentity:certificates:persistence:"); - ffi.Pointer _objc_msgSend_936( + late final _sel_parse1 = _registerName1("parse"); + late final _sel_abortParsing1 = _registerName1("abortParsing"); + late final _sel_parserError1 = _registerName1("parserError"); + late final _sel_shouldResolveExternalEntities1 = + _registerName1("shouldResolveExternalEntities"); + late final _sel_setShouldResolveExternalEntities_1 = + _registerName1("setShouldResolveExternalEntities:"); + late final _sel_publicID1 = _registerName1("publicID"); + late final _sel_systemID1 = _registerName1("systemID"); + late final _sel_lineNumber1 = _registerName1("lineNumber"); + late final _sel_columnNumber1 = _registerName1("columnNumber"); + late final _class_NSFileWrapper1 = _getClass1("NSFileWrapper"); + late final _sel_initWithURL_options_error_1 = + _registerName1("initWithURL:options:error:"); + instancetype _objc_msgSend_936( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<__SecIdentity> identity, - ffi.Pointer certArray, - int persistence, + ffi.Pointer url, + int options, + ffi.Pointer> outError, ) { return __objc_msgSend_936( obj, sel, - identity, - certArray, - persistence, + url, + options, + outError, ); } late final __objc_msgSend_936Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + instancetype Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer<__SecIdentity>, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_936 = __objc_msgSend_936Ptr.asFunction< - ffi.Pointer Function( + instancetype Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer<__SecIdentity>, ffi.Pointer, - int)>(); + int, + ffi.Pointer>)>(); - late final _sel_identity1 = _registerName1("identity"); - ffi.Pointer<__SecIdentity> _objc_msgSend_937( + late final _sel_initDirectoryWithFileWrappers_1 = + _registerName1("initDirectoryWithFileWrappers:"); + late final _sel_initRegularFileWithContents_1 = + _registerName1("initRegularFileWithContents:"); + late final _sel_initSymbolicLinkWithDestinationURL_1 = + _registerName1("initSymbolicLinkWithDestinationURL:"); + late final _sel_initWithSerializedRepresentation_1 = + _registerName1("initWithSerializedRepresentation:"); + late final _sel_isDirectory1 = _registerName1("isDirectory"); + late final _sel_isRegularFile1 = _registerName1("isRegularFile"); + late final _sel_isSymbolicLink1 = _registerName1("isSymbolicLink"); + late final _sel_preferredFilename1 = _registerName1("preferredFilename"); + late final _sel_setPreferredFilename_1 = + _registerName1("setPreferredFilename:"); + late final _sel_filename1 = _registerName1("filename"); + late final _sel_setFilename_1 = _registerName1("setFilename:"); + late final _sel_fileAttributes1 = _registerName1("fileAttributes"); + late final _sel_setFileAttributes_1 = _registerName1("setFileAttributes:"); + late final _sel_matchesContentsOfURL_1 = + _registerName1("matchesContentsOfURL:"); + late final _sel_readFromURL_options_error_1 = + _registerName1("readFromURL:options:error:"); + bool _objc_msgSend_937( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer url, + int options, + ffi.Pointer> outError, ) { return __objc_msgSend_937( obj, sel, + url, + options, + outError, ); } late final __objc_msgSend_937Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer<__SecIdentity> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_937 = __objc_msgSend_937Ptr.asFunction< - ffi.Pointer<__SecIdentity> Function( - ffi.Pointer, ffi.Pointer)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); - late final _sel_certificates1 = _registerName1("certificates"); - late final _sel_initWithTrust_1 = _registerName1("initWithTrust:"); - instancetype _objc_msgSend_938( + late final _sel_writeToURL_options_originalContentsURL_error_1 = + _registerName1("writeToURL:options:originalContentsURL:error:"); + bool _objc_msgSend_938( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<__SecTrust> trust, + ffi.Pointer url, + int options, + ffi.Pointer originalContentsURL, + ffi.Pointer> outError, ) { return __objc_msgSend_938( obj, sel, - trust, + url, + options, + originalContentsURL, + outError, ); } late final __objc_msgSend_938Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<__SecTrust>)>>('objc_msgSend'); + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_938 = __objc_msgSend_938Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<__SecTrust>)>(); + bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_credentialForTrust_1 = _registerName1("credentialForTrust:"); + late final _sel_serializedRepresentation1 = + _registerName1("serializedRepresentation"); + late final _sel_addFileWrapper_1 = _registerName1("addFileWrapper:"); ffi.Pointer _objc_msgSend_939( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<__SecTrust> trust, + ffi.Pointer child, ) { return __objc_msgSend_939( obj, sel, - trust, + child, ); } late final __objc_msgSend_939Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<__SecTrust>)>>('objc_msgSend'); + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_939 = __objc_msgSend_939Ptr.asFunction< ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer<__SecTrust>)>(); + ffi.Pointer, ffi.Pointer)>(); - late final _class_NSURLProtectionSpace1 = _getClass1("NSURLProtectionSpace"); - late final _sel_initWithHost_port_protocol_realm_authenticationMethod_1 = - _registerName1("initWithHost:port:protocol:realm:authenticationMethod:"); - instancetype _objc_msgSend_940( + late final _sel_addRegularFileWithContents_preferredFilename_1 = + _registerName1("addRegularFileWithContents:preferredFilename:"); + ffi.Pointer _objc_msgSend_940( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer host, - int port, - ffi.Pointer protocol, - ffi.Pointer realm, - ffi.Pointer authenticationMethod, + ffi.Pointer data, + ffi.Pointer fileName, ) { return __objc_msgSend_940( obj, sel, - host, - port, - protocol, - realm, - authenticationMethod, + data, + fileName, ); } late final __objc_msgSend_940Ptr = _lookup< ffi.NativeFunction< - instancetype Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Long, - ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_940 = __objc_msgSend_940Ptr.asFunction< - instancetype Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - late final _sel_initWithProxyHost_port_type_realm_authenticationMethod_1 = - _registerName1("initWithProxyHost:port:type:realm:authenticationMethod:"); - late final _sel_realm1 = _registerName1("realm"); - late final _sel_receivesCredentialSecurely1 = - _registerName1("receivesCredentialSecurely"); - late final _sel_isProxy1 = _registerName1("isProxy"); - late final _sel_proxyType1 = _registerName1("proxyType"); - late final _sel_protocol1 = _registerName1("protocol"); - late final _sel_authenticationMethod1 = - _registerName1("authenticationMethod"); - late final _sel_distinguishedNames1 = _registerName1("distinguishedNames"); - late final _sel_serverTrust1 = _registerName1("serverTrust"); - ffi.Pointer<__SecTrust> _objc_msgSend_941( + late final _sel_removeFileWrapper_1 = _registerName1("removeFileWrapper:"); + void _objc_msgSend_941( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer child, ) { return __objc_msgSend_941( obj, sel, + child, ); } late final __objc_msgSend_941Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer<__SecTrust> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_941 = __objc_msgSend_941Ptr.asFunction< - ffi.Pointer<__SecTrust> Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _class_NSURLCredentialStorage1 = - _getClass1("NSURLCredentialStorage"); - late final _sel_sharedCredentialStorage1 = - _registerName1("sharedCredentialStorage"); - ffi.Pointer _objc_msgSend_942( + late final _sel_fileWrappers1 = _registerName1("fileWrappers"); + late final _sel_keyForFileWrapper_1 = _registerName1("keyForFileWrapper:"); + late final _sel_regularFileContents1 = _registerName1("regularFileContents"); + late final _sel_symbolicLinkDestinationURL1 = + _registerName1("symbolicLinkDestinationURL"); + late final _sel_initSymbolicLinkWithDestination_1 = + _registerName1("initSymbolicLinkWithDestination:"); + late final _sel_needsToBeUpdatedFromPath_1 = + _registerName1("needsToBeUpdatedFromPath:"); + late final _sel_updateFromPath_1 = _registerName1("updateFromPath:"); + late final _sel_writeToFile_atomically_updateFilenames_1 = + _registerName1("writeToFile:atomically:updateFilenames:"); + bool _objc_msgSend_942( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer path, + bool atomicFlag, + bool updateFilenamesFlag, ) { return __objc_msgSend_942( obj, sel, + path, + atomicFlag, + updateFilenamesFlag, ); } late final __objc_msgSend_942Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool, ffi.Bool)>>('objc_msgSend'); late final __objc_msgSend_942 = __objc_msgSend_942Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + bool Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool, bool)>(); - late final _sel_credentialsForProtectionSpace_1 = - _registerName1("credentialsForProtectionSpace:"); + late final _sel_addFileWithPath_1 = _registerName1("addFileWithPath:"); + late final _sel_addSymbolicLinkWithDestination_preferredFilename_1 = + _registerName1("addSymbolicLinkWithDestination:preferredFilename:"); + late final _sel_symbolicLinkDestination1 = + _registerName1("symbolicLinkDestination"); + late final _class_NSURLSession1 = _getClass1("NSURLSession"); + late final _sel_sharedSession1 = _registerName1("sharedSession"); ffi.Pointer _objc_msgSend_943( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer space, ) { return __objc_msgSend_943( obj, sel, - space, ); } late final __objc_msgSend_943Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_943 = __objc_msgSend_943Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_allCredentials1 = _registerName1("allCredentials"); - late final _sel_setCredential_forProtectionSpace_1 = - _registerName1("setCredential:forProtectionSpace:"); - void _objc_msgSend_944( + late final _class_NSURLSessionConfiguration1 = + _getClass1("NSURLSessionConfiguration"); + late final _sel_defaultSessionConfiguration1 = + _registerName1("defaultSessionConfiguration"); + ffi.Pointer _objc_msgSend_944( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer credential, - ffi.Pointer space, ) { return __objc_msgSend_944( obj, sel, - credential, - space, ); } late final __objc_msgSend_944Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_944 = __objc_msgSend_944Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_removeCredential_forProtectionSpace_1 = - _registerName1("removeCredential:forProtectionSpace:"); - late final _sel_removeCredential_forProtectionSpace_options_1 = - _registerName1("removeCredential:forProtectionSpace:options:"); - void _objc_msgSend_945( + late final _sel_ephemeralSessionConfiguration1 = + _registerName1("ephemeralSessionConfiguration"); + late final _sel_backgroundSessionConfigurationWithIdentifier_1 = + _registerName1("backgroundSessionConfigurationWithIdentifier:"); + ffi.Pointer _objc_msgSend_945( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer credential, - ffi.Pointer space, - ffi.Pointer options, + ffi.Pointer identifier, ) { return __objc_msgSend_945( obj, sel, - credential, - space, - options, + identifier, ); } late final __objc_msgSend_945Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_945 = __objc_msgSend_945Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_defaultCredentialForProtectionSpace_1 = - _registerName1("defaultCredentialForProtectionSpace:"); - ffi.Pointer _objc_msgSend_946( + late final _sel_identifier1 = _registerName1("identifier"); + late final _sel_requestCachePolicy1 = _registerName1("requestCachePolicy"); + late final _sel_setRequestCachePolicy_1 = + _registerName1("setRequestCachePolicy:"); + late final _sel_timeoutIntervalForRequest1 = + _registerName1("timeoutIntervalForRequest"); + late final _sel_setTimeoutIntervalForRequest_1 = + _registerName1("setTimeoutIntervalForRequest:"); + late final _sel_timeoutIntervalForResource1 = + _registerName1("timeoutIntervalForResource"); + late final _sel_setTimeoutIntervalForResource_1 = + _registerName1("setTimeoutIntervalForResource:"); + late final _sel_waitsForConnectivity1 = + _registerName1("waitsForConnectivity"); + late final _sel_setWaitsForConnectivity_1 = + _registerName1("setWaitsForConnectivity:"); + late final _sel_isDiscretionary1 = _registerName1("isDiscretionary"); + late final _sel_setDiscretionary_1 = _registerName1("setDiscretionary:"); + late final _sel_sharedContainerIdentifier1 = + _registerName1("sharedContainerIdentifier"); + late final _sel_setSharedContainerIdentifier_1 = + _registerName1("setSharedContainerIdentifier:"); + late final _sel_sessionSendsLaunchEvents1 = + _registerName1("sessionSendsLaunchEvents"); + late final _sel_setSessionSendsLaunchEvents_1 = + _registerName1("setSessionSendsLaunchEvents:"); + late final _sel_connectionProxyDictionary1 = + _registerName1("connectionProxyDictionary"); + late final _sel_setConnectionProxyDictionary_1 = + _registerName1("setConnectionProxyDictionary:"); + late final _sel_TLSMinimumSupportedProtocol1 = + _registerName1("TLSMinimumSupportedProtocol"); + int _objc_msgSend_946( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer space, ) { return __objc_msgSend_946( obj, sel, - space, ); } late final __objc_msgSend_946Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_946 = __objc_msgSend_946Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_setDefaultCredential_forProtectionSpace_1 = - _registerName1("setDefaultCredential:forProtectionSpace:"); - late final _sel_getCredentialsForProtectionSpace_task_completionHandler_1 = - _registerName1( - "getCredentialsForProtectionSpace:task:completionHandler:"); + late final _sel_setTLSMinimumSupportedProtocol_1 = + _registerName1("setTLSMinimumSupportedProtocol:"); void _objc_msgSend_947( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer protectionSpace, - ffi.Pointer task, - ffi.Pointer<_ObjCBlock> completionHandler, + int value, ) { return __objc_msgSend_947( obj, sel, - protectionSpace, - task, - completionHandler, + value, ); } late final __objc_msgSend_947Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_947 = __objc_msgSend_947Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_setCredential_forProtectionSpace_task_1 = - _registerName1("setCredential:forProtectionSpace:task:"); - void _objc_msgSend_948( + late final _sel_TLSMaximumSupportedProtocol1 = + _registerName1("TLSMaximumSupportedProtocol"); + late final _sel_setTLSMaximumSupportedProtocol_1 = + _registerName1("setTLSMaximumSupportedProtocol:"); + late final _sel_TLSMinimumSupportedProtocolVersion1 = + _registerName1("TLSMinimumSupportedProtocolVersion"); + int _objc_msgSend_948( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer credential, - ffi.Pointer protectionSpace, - ffi.Pointer task, ) { return __objc_msgSend_948( obj, sel, - credential, - protectionSpace, - task, ); } late final __objc_msgSend_948Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_948 = __objc_msgSend_948Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_removeCredential_forProtectionSpace_options_task_1 = - _registerName1("removeCredential:forProtectionSpace:options:task:"); + late final _sel_setTLSMinimumSupportedProtocolVersion_1 = + _registerName1("setTLSMinimumSupportedProtocolVersion:"); void _objc_msgSend_949( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer credential, - ffi.Pointer protectionSpace, - ffi.Pointer options, - ffi.Pointer task, + int value, ) { return __objc_msgSend_949( obj, sel, - credential, - protectionSpace, - options, - task, + value, ); } late final __objc_msgSend_949Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_949 = __objc_msgSend_949Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1 = - _registerName1( - "getDefaultCredentialForProtectionSpace:task:completionHandler:"); + late final _sel_TLSMaximumSupportedProtocolVersion1 = + _registerName1("TLSMaximumSupportedProtocolVersion"); + late final _sel_setTLSMaximumSupportedProtocolVersion_1 = + _registerName1("setTLSMaximumSupportedProtocolVersion:"); + late final _sel_HTTPShouldSetCookies1 = + _registerName1("HTTPShouldSetCookies"); + late final _sel_setHTTPShouldSetCookies_1 = + _registerName1("setHTTPShouldSetCookies:"); + late final _sel_HTTPCookieAcceptPolicy1 = + _registerName1("HTTPCookieAcceptPolicy"); + late final _sel_setHTTPCookieAcceptPolicy_1 = + _registerName1("setHTTPCookieAcceptPolicy:"); + late final _sel_HTTPAdditionalHeaders1 = + _registerName1("HTTPAdditionalHeaders"); + late final _sel_setHTTPAdditionalHeaders_1 = + _registerName1("setHTTPAdditionalHeaders:"); + late final _sel_HTTPMaximumConnectionsPerHost1 = + _registerName1("HTTPMaximumConnectionsPerHost"); + late final _sel_setHTTPMaximumConnectionsPerHost_1 = + _registerName1("setHTTPMaximumConnectionsPerHost:"); + late final _sel_HTTPCookieStorage1 = _registerName1("HTTPCookieStorage"); + late final _sel_setHTTPCookieStorage_1 = + _registerName1("setHTTPCookieStorage:"); void _objc_msgSend_950( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer space, - ffi.Pointer task, - ffi.Pointer<_ObjCBlock> completionHandler, + ffi.Pointer value, ) { return __objc_msgSend_950( obj, sel, - space, - task, - completionHandler, + value, ); } late final __objc_msgSend_950Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_950 = __objc_msgSend_950Ptr.asFunction< - void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_setDefaultCredential_forProtectionSpace_task_1 = - _registerName1("setDefaultCredential:forProtectionSpace:task:"); - late final _class_NSURLProtocol1 = _getClass1("NSURLProtocol"); - late final _sel_initWithRequest_cachedResponse_client_1 = - _registerName1("initWithRequest:cachedResponse:client:"); - instancetype _objc_msgSend_951( + late final _sel_URLCredentialStorage1 = + _registerName1("URLCredentialStorage"); + late final _sel_setURLCredentialStorage_1 = + _registerName1("setURLCredentialStorage:"); + void _objc_msgSend_951( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer cachedResponse, - ffi.Pointer client, + ffi.Pointer value, ) { return __objc_msgSend_951( obj, sel, - request, - cachedResponse, - client, + value, ); } late final __objc_msgSend_951Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_951 = __objc_msgSend_951Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_client1 = _registerName1("client"); - late final _sel_request1 = _registerName1("request"); - late final _sel_cachedResponse1 = _registerName1("cachedResponse"); - ffi.Pointer _objc_msgSend_952( + late final _sel_URLCache1 = _registerName1("URLCache"); + late final _sel_setURLCache_1 = _registerName1("setURLCache:"); + late final _sel_shouldUseExtendedBackgroundIdleMode1 = + _registerName1("shouldUseExtendedBackgroundIdleMode"); + late final _sel_setShouldUseExtendedBackgroundIdleMode_1 = + _registerName1("setShouldUseExtendedBackgroundIdleMode:"); + late final _sel_protocolClasses1 = _registerName1("protocolClasses"); + late final _sel_setProtocolClasses_1 = _registerName1("setProtocolClasses:"); + late final _sel_multipathServiceType1 = + _registerName1("multipathServiceType"); + int _objc_msgSend_952( ffi.Pointer obj, ffi.Pointer sel, ) { @@ -27059,77 +27115,71 @@ class SentryCocoa { late final __objc_msgSend_952Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Int32 Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_952 = __objc_msgSend_952Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_canInitWithRequest_1 = _registerName1("canInitWithRequest:"); - late final _sel_canonicalRequestForRequest_1 = - _registerName1("canonicalRequestForRequest:"); - ffi.Pointer _objc_msgSend_953( + late final _sel_setMultipathServiceType_1 = + _registerName1("setMultipathServiceType:"); + void _objc_msgSend_953( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, + int value, ) { return __objc_msgSend_953( obj, sel, - request, + value, ); } late final __objc_msgSend_953Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_953 = __objc_msgSend_953Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_requestIsCacheEquivalent_toRequest_1 = - _registerName1("requestIsCacheEquivalent:toRequest:"); - bool _objc_msgSend_954( + late final _sel_backgroundSessionConfiguration_1 = + _registerName1("backgroundSessionConfiguration:"); + late final _sel_sessionWithConfiguration_1 = + _registerName1("sessionWithConfiguration:"); + ffi.Pointer _objc_msgSend_954( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer a, - ffi.Pointer b, + ffi.Pointer configuration, ) { return __objc_msgSend_954( obj, sel, - a, - b, + configuration, ); } late final __objc_msgSend_954Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_954 = __objc_msgSend_954Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_startLoading1 = _registerName1("startLoading"); - late final _sel_stopLoading1 = _registerName1("stopLoading"); - late final _sel_propertyForKey_inRequest_1 = - _registerName1("propertyForKey:inRequest:"); + late final _sel_sessionWithConfiguration_delegate_delegateQueue_1 = + _registerName1("sessionWithConfiguration:delegate:delegateQueue:"); ffi.Pointer _objc_msgSend_955( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer key, - ffi.Pointer request, + ffi.Pointer configuration, + ffi.Pointer delegate, + ffi.Pointer queue, ) { return __objc_msgSend_955( obj, sel, - key, - request, + configuration, + delegate, + queue, ); } @@ -27139,400 +27189,407 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_955 = __objc_msgSend_955Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _class_NSMutableURLRequest1 = _getClass1("NSMutableURLRequest"); - late final _sel_setURL_1 = _registerName1("setURL:"); - late final _sel_setCachePolicy_1 = _registerName1("setCachePolicy:"); + late final _sel_delegateQueue1 = _registerName1("delegateQueue"); + late final _sel_configuration1 = _registerName1("configuration"); + late final _sel_sessionDescription1 = _registerName1("sessionDescription"); + late final _sel_setSessionDescription_1 = + _registerName1("setSessionDescription:"); + late final _sel_finishTasksAndInvalidate1 = + _registerName1("finishTasksAndInvalidate"); + late final _sel_invalidateAndCancel1 = _registerName1("invalidateAndCancel"); + late final _sel_resetWithCompletionHandler_1 = + _registerName1("resetWithCompletionHandler:"); + late final _sel_flushWithCompletionHandler_1 = + _registerName1("flushWithCompletionHandler:"); + late final _sel_getTasksWithCompletionHandler_1 = + _registerName1("getTasksWithCompletionHandler:"); void _objc_msgSend_956( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_956( obj, sel, - value, + completionHandler, ); } late final __objc_msgSend_956Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_956 = __objc_msgSend_956Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_setTimeoutInterval_1 = _registerName1("setTimeoutInterval:"); - late final _sel_setMainDocumentURL_1 = _registerName1("setMainDocumentURL:"); - late final _sel_setNetworkServiceType_1 = - _registerName1("setNetworkServiceType:"); + late final _sel_getAllTasksWithCompletionHandler_1 = + _registerName1("getAllTasksWithCompletionHandler:"); void _objc_msgSend_957( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_957( obj, sel, - value, + completionHandler, ); } late final __objc_msgSend_957Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_957 = __objc_msgSend_957Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_setAllowsCellularAccess_1 = - _registerName1("setAllowsCellularAccess:"); - late final _sel_setAllowsExpensiveNetworkAccess_1 = - _registerName1("setAllowsExpensiveNetworkAccess:"); - late final _sel_setAllowsConstrainedNetworkAccess_1 = - _registerName1("setAllowsConstrainedNetworkAccess:"); - late final _sel_setAssumesHTTP3Capable_1 = - _registerName1("setAssumesHTTP3Capable:"); - late final _sel_setAttribution_1 = _registerName1("setAttribution:"); - void _objc_msgSend_958( + late final _sel_dataTaskWithRequest_1 = + _registerName1("dataTaskWithRequest:"); + ffi.Pointer _objc_msgSend_958( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer request, ) { return __objc_msgSend_958( obj, sel, - value, + request, ); } late final __objc_msgSend_958Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_958 = __objc_msgSend_958Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_setRequiresDNSSECValidation_1 = - _registerName1("setRequiresDNSSECValidation:"); - late final _sel_setHTTPMethod_1 = _registerName1("setHTTPMethod:"); - late final _sel_setAllHTTPHeaderFields_1 = - _registerName1("setAllHTTPHeaderFields:"); - late final _sel_setValue_forHTTPHeaderField_1 = - _registerName1("setValue:forHTTPHeaderField:"); - late final _sel_addValue_forHTTPHeaderField_1 = - _registerName1("addValue:forHTTPHeaderField:"); - late final _sel_setHTTPBody_1 = _registerName1("setHTTPBody:"); - void _objc_msgSend_959( + late final _sel_dataTaskWithURL_1 = _registerName1("dataTaskWithURL:"); + ffi.Pointer _objc_msgSend_959( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, + ffi.Pointer url, ) { return __objc_msgSend_959( obj, sel, - value, + url, ); } late final __objc_msgSend_959Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_959 = __objc_msgSend_959Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_setHTTPBodyStream_1 = _registerName1("setHTTPBodyStream:"); - void _objc_msgSend_960( + late final _class_NSURLSessionUploadTask1 = + _getClass1("NSURLSessionUploadTask"); + late final _sel_uploadTaskWithRequest_fromFile_1 = + _registerName1("uploadTaskWithRequest:fromFile:"); + ffi.Pointer _objc_msgSend_960( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, + ffi.Pointer request, + ffi.Pointer fileURL, ) { return __objc_msgSend_960( obj, sel, - value, + request, + fileURL, ); } late final __objc_msgSend_960Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_960 = __objc_msgSend_960Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_setHTTPShouldHandleCookies_1 = - _registerName1("setHTTPShouldHandleCookies:"); - late final _sel_setHTTPShouldUsePipelining_1 = - _registerName1("setHTTPShouldUsePipelining:"); - late final _sel_setProperty_forKey_inRequest_1 = - _registerName1("setProperty:forKey:inRequest:"); - void _objc_msgSend_961( + late final _sel_uploadTaskWithRequest_fromData_1 = + _registerName1("uploadTaskWithRequest:fromData:"); + ffi.Pointer _objc_msgSend_961( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, - ffi.Pointer key, ffi.Pointer request, + ffi.Pointer bodyData, ) { return __objc_msgSend_961( obj, sel, - value, - key, request, + bodyData, ); } late final __objc_msgSend_961Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_961 = __objc_msgSend_961Ptr.asFunction< - void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - late final _sel_removePropertyForKey_inRequest_1 = - _registerName1("removePropertyForKey:inRequest:"); - void _objc_msgSend_962( + late final _sel_uploadTaskWithStreamedRequest_1 = + _registerName1("uploadTaskWithStreamedRequest:"); + ffi.Pointer _objc_msgSend_962( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer key, ffi.Pointer request, ) { return __objc_msgSend_962( obj, sel, - key, request, ); } late final __objc_msgSend_962Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_962 = __objc_msgSend_962Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(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_963( + late final _class_NSURLSessionDownloadTask1 = + _getClass1("NSURLSessionDownloadTask"); + late final _sel_cancelByProducingResumeData_1 = + _registerName1("cancelByProducingResumeData:"); + void _objc_msgSend_963( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer task, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_963( obj, sel, - task, + completionHandler, ); } late final __objc_msgSend_963Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_963 = __objc_msgSend_963Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_initWithTask_cachedResponse_client_1 = - _registerName1("initWithTask:cachedResponse:client:"); - instancetype _objc_msgSend_964( + late final _sel_downloadTaskWithRequest_1 = + _registerName1("downloadTaskWithRequest:"); + ffi.Pointer _objc_msgSend_964( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer task, - ffi.Pointer cachedResponse, - ffi.Pointer client, + ffi.Pointer request, ) { return __objc_msgSend_964( obj, sel, - task, - cachedResponse, - client, + request, ); } late final __objc_msgSend_964Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_964 = __objc_msgSend_964Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_task1 = _registerName1("task"); + late final _sel_downloadTaskWithURL_1 = + _registerName1("downloadTaskWithURL:"); ffi.Pointer _objc_msgSend_965( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer url, ) { return __objc_msgSend_965( obj, sel, + url, ); } late final __objc_msgSend_965Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_965 = __objc_msgSend_965Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _class_NSXMLParser1 = _getClass1("NSXMLParser"); - late final _sel_initWithStream_1 = _registerName1("initWithStream:"); - instancetype _objc_msgSend_966( + late final _sel_downloadTaskWithResumeData_1 = + _registerName1("downloadTaskWithResumeData:"); + ffi.Pointer _objc_msgSend_966( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer stream, + ffi.Pointer resumeData, ) { return __objc_msgSend_966( obj, sel, - stream, + resumeData, ); } late final __objc_msgSend_966Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_966 = __objc_msgSend_966Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_shouldProcessNamespaces1 = - _registerName1("shouldProcessNamespaces"); - late final _sel_setShouldProcessNamespaces_1 = - _registerName1("setShouldProcessNamespaces:"); - late final _sel_shouldReportNamespacePrefixes1 = - _registerName1("shouldReportNamespacePrefixes"); - late final _sel_setShouldReportNamespacePrefixes_1 = - _registerName1("setShouldReportNamespacePrefixes:"); - late final _sel_externalEntityResolvingPolicy1 = - _registerName1("externalEntityResolvingPolicy"); - int _objc_msgSend_967( + late final _class_NSURLSessionStreamTask1 = + _getClass1("NSURLSessionStreamTask"); + late final _sel_readDataOfMinLength_maxLength_timeout_completionHandler_1 = + _registerName1( + "readDataOfMinLength:maxLength:timeout:completionHandler:"); + void _objc_msgSend_967( ffi.Pointer obj, ffi.Pointer sel, + int minBytes, + int maxBytes, + double timeout, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_967( obj, sel, + minBytes, + maxBytes, + timeout, + completionHandler, ); } late final __objc_msgSend_967Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.UnsignedLong, + ffi.Double, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_967 = __objc_msgSend_967Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, int, int, + double, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_setExternalEntityResolvingPolicy_1 = - _registerName1("setExternalEntityResolvingPolicy:"); + late final _sel_writeData_timeout_completionHandler_1 = + _registerName1("writeData:timeout:completionHandler:"); void _objc_msgSend_968( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer data, + double timeout, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_968( obj, sel, - value, + data, + timeout, + completionHandler, ); } late final __objc_msgSend_968Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Double, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_968 = __objc_msgSend_968Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, double, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_allowedExternalEntityURLs1 = - _registerName1("allowedExternalEntityURLs"); - late final _sel_setAllowedExternalEntityURLs_1 = - _registerName1("setAllowedExternalEntityURLs:"); - void _objc_msgSend_969( + late final _sel_captureStreams1 = _registerName1("captureStreams"); + late final _sel_closeWrite1 = _registerName1("closeWrite"); + late final _sel_closeRead1 = _registerName1("closeRead"); + late final _sel_startSecureConnection1 = + _registerName1("startSecureConnection"); + late final _sel_stopSecureConnection1 = + _registerName1("stopSecureConnection"); + late final _sel_streamTaskWithHostName_port_1 = + _registerName1("streamTaskWithHostName:port:"); + ffi.Pointer _objc_msgSend_969( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, + ffi.Pointer hostname, + int port, ) { return __objc_msgSend_969( obj, sel, - value, + hostname, + port, ); } late final __objc_msgSend_969Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Long)>>('objc_msgSend'); late final __objc_msgSend_969 = __objc_msgSend_969Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_parse1 = _registerName1("parse"); - late final _sel_abortParsing1 = _registerName1("abortParsing"); - late final _sel_parserError1 = _registerName1("parserError"); - late final _sel_shouldResolveExternalEntities1 = - _registerName1("shouldResolveExternalEntities"); - late final _sel_setShouldResolveExternalEntities_1 = - _registerName1("setShouldResolveExternalEntities:"); - late final _sel_publicID1 = _registerName1("publicID"); - late final _sel_systemID1 = _registerName1("systemID"); - late final _sel_lineNumber1 = _registerName1("lineNumber"); - late final _sel_columnNumber1 = _registerName1("columnNumber"); - late final _class_NSFileWrapper1 = _getClass1("NSFileWrapper"); - late final _sel_initWithURL_options_error_1 = - _registerName1("initWithURL:options:error:"); + late final _class_NSNetService1 = _getClass1("NSNetService"); + late final _sel_initWithDomain_type_name_port_1 = + _registerName1("initWithDomain:type:name:port:"); instancetype _objc_msgSend_970( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, - int options, - ffi.Pointer> outError, + ffi.Pointer domain, + ffi.Pointer type, + ffi.Pointer name, + int port, ) { return __objc_msgSend_970( obj, sel, - url, - options, - outError, + domain, + type, + name, + port, ); } @@ -27542,120 +27599,79 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Pointer, + ffi.Pointer, + ffi.Int)>>('objc_msgSend'); late final __objc_msgSend_970 = __objc_msgSend_970Ptr.asFunction< instancetype Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - int, - ffi.Pointer>)>(); + ffi.Pointer, + ffi.Pointer, + int)>(); - late final _sel_initDirectoryWithFileWrappers_1 = - _registerName1("initDirectoryWithFileWrappers:"); - late final _sel_initRegularFileWithContents_1 = - _registerName1("initRegularFileWithContents:"); - late final _sel_initSymbolicLinkWithDestinationURL_1 = - _registerName1("initSymbolicLinkWithDestinationURL:"); - late final _sel_initWithSerializedRepresentation_1 = - _registerName1("initWithSerializedRepresentation:"); - late final _sel_isDirectory1 = _registerName1("isDirectory"); - late final _sel_isRegularFile1 = _registerName1("isRegularFile"); - late final _sel_isSymbolicLink1 = _registerName1("isSymbolicLink"); - late final _sel_preferredFilename1 = _registerName1("preferredFilename"); - late final _sel_setPreferredFilename_1 = - _registerName1("setPreferredFilename:"); - late final _sel_filename1 = _registerName1("filename"); - late final _sel_setFilename_1 = _registerName1("setFilename:"); - late final _sel_fileAttributes1 = _registerName1("fileAttributes"); - late final _sel_setFileAttributes_1 = _registerName1("setFileAttributes:"); - late final _sel_matchesContentsOfURL_1 = - _registerName1("matchesContentsOfURL:"); - late final _sel_readFromURL_options_error_1 = - _registerName1("readFromURL:options:error:"); - bool _objc_msgSend_971( + late final _sel_initWithDomain_type_name_1 = + _registerName1("initWithDomain:type:name:"); + late final _sel_includesPeerToPeer1 = _registerName1("includesPeerToPeer"); + late final _sel_setIncludesPeerToPeer_1 = + _registerName1("setIncludesPeerToPeer:"); + late final _sel_type1 = _registerName1("type"); + late final _sel_publishWithOptions_1 = _registerName1("publishWithOptions:"); + void _objc_msgSend_971( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, int options, - ffi.Pointer> outError, ) { return __objc_msgSend_971( obj, sel, - url, options, - outError, ); } late final __objc_msgSend_971Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_971 = __objc_msgSend_971Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_writeToURL_options_originalContentsURL_error_1 = - _registerName1("writeToURL:options:originalContentsURL:error:"); - bool _objc_msgSend_972( + late final _sel_resolve1 = _registerName1("resolve"); + late final _sel_stop1 = _registerName1("stop"); + late final _sel_dictionaryFromTXTRecordData_1 = + _registerName1("dictionaryFromTXTRecordData:"); + ffi.Pointer _objc_msgSend_972( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, - int options, - ffi.Pointer originalContentsURL, - ffi.Pointer> outError, + ffi.Pointer txtData, ) { return __objc_msgSend_972( obj, sel, - url, - options, - originalContentsURL, - outError, + txtData, ); } late final __objc_msgSend_972Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_972 = __objc_msgSend_972Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_serializedRepresentation1 = - _registerName1("serializedRepresentation"); - late final _sel_addFileWrapper_1 = _registerName1("addFileWrapper:"); + late final _sel_dataFromTXTRecordDictionary_1 = + _registerName1("dataFromTXTRecordDictionary:"); ffi.Pointer _objc_msgSend_973( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer child, + ffi.Pointer txtDictionary, ) { return __objc_msgSend_973( obj, sel, - child, + txtDictionary, ); } @@ -27667,432 +27683,416 @@ class SentryCocoa { ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_addRegularFileWithContents_preferredFilename_1 = - _registerName1("addRegularFileWithContents:preferredFilename:"); - ffi.Pointer _objc_msgSend_974( + late final _sel_resolveWithTimeout_1 = _registerName1("resolveWithTimeout:"); + late final _sel_getInputStream_outputStream_1 = + _registerName1("getInputStream:outputStream:"); + bool _objc_msgSend_974( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer data, - ffi.Pointer fileName, + ffi.Pointer> inputStream, + ffi.Pointer> outputStream, ) { return __objc_msgSend_974( obj, sel, - data, - fileName, + inputStream, + outputStream, ); } late final __objc_msgSend_974Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( + ffi.Bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer>, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_974 = __objc_msgSend_974Ptr.asFunction< - ffi.Pointer Function( + bool Function( ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer>, + ffi.Pointer>)>(); - late final _sel_removeFileWrapper_1 = _registerName1("removeFileWrapper:"); - void _objc_msgSend_975( + late final _sel_setTXTRecordData_1 = _registerName1("setTXTRecordData:"); + late final _sel_TXTRecordData1 = _registerName1("TXTRecordData"); + late final _sel_startMonitoring1 = _registerName1("startMonitoring"); + late final _sel_stopMonitoring1 = _registerName1("stopMonitoring"); + late final _sel_streamTaskWithNetService_1 = + _registerName1("streamTaskWithNetService:"); + ffi.Pointer _objc_msgSend_975( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer child, + ffi.Pointer service, ) { return __objc_msgSend_975( obj, sel, - child, + service, ); } late final __objc_msgSend_975Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_975 = __objc_msgSend_975Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_fileWrappers1 = _registerName1("fileWrappers"); - late final _sel_keyForFileWrapper_1 = _registerName1("keyForFileWrapper:"); - late final _sel_regularFileContents1 = _registerName1("regularFileContents"); - late final _sel_symbolicLinkDestinationURL1 = - _registerName1("symbolicLinkDestinationURL"); - late final _sel_initSymbolicLinkWithDestination_1 = - _registerName1("initSymbolicLinkWithDestination:"); - late final _sel_needsToBeUpdatedFromPath_1 = - _registerName1("needsToBeUpdatedFromPath:"); - late final _sel_updateFromPath_1 = _registerName1("updateFromPath:"); - late final _sel_writeToFile_atomically_updateFilenames_1 = - _registerName1("writeToFile:atomically:updateFilenames:"); - bool _objc_msgSend_976( + late final _class_NSURLSessionWebSocketTask1 = + _getClass1("NSURLSessionWebSocketTask"); + late final _class_NSURLSessionWebSocketMessage1 = + _getClass1("NSURLSessionWebSocketMessage"); + int _objc_msgSend_976( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, - bool atomicFlag, - bool updateFilenamesFlag, ) { return __objc_msgSend_976( obj, sel, - path, - atomicFlag, - updateFilenamesFlag, ); } late final __objc_msgSend_976Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool, ffi.Bool)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_976 = __objc_msgSend_976Ptr.asFunction< - bool Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool, bool)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_addFileWithPath_1 = _registerName1("addFileWithPath:"); - late final _sel_addSymbolicLinkWithDestination_preferredFilename_1 = - _registerName1("addSymbolicLinkWithDestination:preferredFilename:"); - late final _sel_symbolicLinkDestination1 = - _registerName1("symbolicLinkDestination"); - late final _class_NSURLSession1 = _getClass1("NSURLSession"); - late final _sel_sharedSession1 = _registerName1("sharedSession"); - ffi.Pointer _objc_msgSend_977( + late final _sel_sendMessage_completionHandler_1 = + _registerName1("sendMessage:completionHandler:"); + void _objc_msgSend_977( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer message, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_977( obj, sel, + message, + completionHandler, ); } late final __objc_msgSend_977Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_977 = __objc_msgSend_977Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _class_NSURLSessionConfiguration1 = - _getClass1("NSURLSessionConfiguration"); - late final _sel_defaultSessionConfiguration1 = - _registerName1("defaultSessionConfiguration"); - ffi.Pointer _objc_msgSend_978( + late final _sel_receiveMessageWithCompletionHandler_1 = + _registerName1("receiveMessageWithCompletionHandler:"); + void _objc_msgSend_978( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_978( obj, sel, + completionHandler, ); } late final __objc_msgSend_978Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_978 = __objc_msgSend_978Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_ephemeralSessionConfiguration1 = - _registerName1("ephemeralSessionConfiguration"); - late final _sel_backgroundSessionConfigurationWithIdentifier_1 = - _registerName1("backgroundSessionConfigurationWithIdentifier:"); - ffi.Pointer _objc_msgSend_979( + late final _sel_sendPingWithPongReceiveHandler_1 = + _registerName1("sendPingWithPongReceiveHandler:"); + void _objc_msgSend_979( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer identifier, + ffi.Pointer<_ObjCBlock> pongReceiveHandler, ) { return __objc_msgSend_979( obj, sel, - identifier, + pongReceiveHandler, ); } late final __objc_msgSend_979Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_979 = __objc_msgSend_979Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_identifier1 = _registerName1("identifier"); - late final _sel_requestCachePolicy1 = _registerName1("requestCachePolicy"); - late final _sel_setRequestCachePolicy_1 = - _registerName1("setRequestCachePolicy:"); - late final _sel_timeoutIntervalForRequest1 = - _registerName1("timeoutIntervalForRequest"); - late final _sel_setTimeoutIntervalForRequest_1 = - _registerName1("setTimeoutIntervalForRequest:"); - late final _sel_timeoutIntervalForResource1 = - _registerName1("timeoutIntervalForResource"); - late final _sel_setTimeoutIntervalForResource_1 = - _registerName1("setTimeoutIntervalForResource:"); - late final _sel_waitsForConnectivity1 = - _registerName1("waitsForConnectivity"); - late final _sel_setWaitsForConnectivity_1 = - _registerName1("setWaitsForConnectivity:"); - late final _sel_isDiscretionary1 = _registerName1("isDiscretionary"); - late final _sel_setDiscretionary_1 = _registerName1("setDiscretionary:"); - late final _sel_sharedContainerIdentifier1 = - _registerName1("sharedContainerIdentifier"); - late final _sel_setSharedContainerIdentifier_1 = - _registerName1("setSharedContainerIdentifier:"); - late final _sel_sessionSendsLaunchEvents1 = - _registerName1("sessionSendsLaunchEvents"); - late final _sel_setSessionSendsLaunchEvents_1 = - _registerName1("setSessionSendsLaunchEvents:"); - late final _sel_connectionProxyDictionary1 = - _registerName1("connectionProxyDictionary"); - late final _sel_setConnectionProxyDictionary_1 = - _registerName1("setConnectionProxyDictionary:"); - late final _sel_TLSMinimumSupportedProtocol1 = - _registerName1("TLSMinimumSupportedProtocol"); - int _objc_msgSend_980( + late final _sel_cancelWithCloseCode_reason_1 = + _registerName1("cancelWithCloseCode:reason:"); + void _objc_msgSend_980( ffi.Pointer obj, ffi.Pointer sel, + int closeCode, + ffi.Pointer reason, ) { return __objc_msgSend_980( obj, sel, + closeCode, + reason, ); } late final __objc_msgSend_980Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_980 = __objc_msgSend_980Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); - late final _sel_setTLSMinimumSupportedProtocol_1 = - _registerName1("setTLSMinimumSupportedProtocol:"); - void _objc_msgSend_981( + late final _sel_maximumMessageSize1 = _registerName1("maximumMessageSize"); + late final _sel_setMaximumMessageSize_1 = + _registerName1("setMaximumMessageSize:"); + late final _sel_closeCode1 = _registerName1("closeCode"); + int _objc_msgSend_981( ffi.Pointer obj, ffi.Pointer sel, - int value, ) { return __objc_msgSend_981( obj, sel, - value, ); } late final __objc_msgSend_981Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_981 = __objc_msgSend_981Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_TLSMaximumSupportedProtocol1 = - _registerName1("TLSMaximumSupportedProtocol"); - late final _sel_setTLSMaximumSupportedProtocol_1 = - _registerName1("setTLSMaximumSupportedProtocol:"); - late final _sel_TLSMinimumSupportedProtocolVersion1 = - _registerName1("TLSMinimumSupportedProtocolVersion"); - int _objc_msgSend_982( + late final _sel_closeReason1 = _registerName1("closeReason"); + late final _sel_webSocketTaskWithURL_1 = + _registerName1("webSocketTaskWithURL:"); + ffi.Pointer _objc_msgSend_982( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer url, ) { return __objc_msgSend_982( obj, sel, + url, ); } late final __objc_msgSend_982Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_982 = __objc_msgSend_982Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_setTLSMinimumSupportedProtocolVersion_1 = - _registerName1("setTLSMinimumSupportedProtocolVersion:"); - void _objc_msgSend_983( + late final _sel_webSocketTaskWithURL_protocols_1 = + _registerName1("webSocketTaskWithURL:protocols:"); + ffi.Pointer _objc_msgSend_983( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer url, + ffi.Pointer protocols, ) { return __objc_msgSend_983( obj, sel, - value, + url, + protocols, ); } late final __objc_msgSend_983Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_983 = __objc_msgSend_983Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_TLSMaximumSupportedProtocolVersion1 = - _registerName1("TLSMaximumSupportedProtocolVersion"); - late final _sel_setTLSMaximumSupportedProtocolVersion_1 = - _registerName1("setTLSMaximumSupportedProtocolVersion:"); - late final _sel_HTTPShouldSetCookies1 = - _registerName1("HTTPShouldSetCookies"); - late final _sel_setHTTPShouldSetCookies_1 = - _registerName1("setHTTPShouldSetCookies:"); - late final _sel_HTTPCookieAcceptPolicy1 = - _registerName1("HTTPCookieAcceptPolicy"); - late final _sel_setHTTPCookieAcceptPolicy_1 = - _registerName1("setHTTPCookieAcceptPolicy:"); - late final _sel_HTTPAdditionalHeaders1 = - _registerName1("HTTPAdditionalHeaders"); - late final _sel_setHTTPAdditionalHeaders_1 = - _registerName1("setHTTPAdditionalHeaders:"); - late final _sel_HTTPMaximumConnectionsPerHost1 = - _registerName1("HTTPMaximumConnectionsPerHost"); - late final _sel_setHTTPMaximumConnectionsPerHost_1 = - _registerName1("setHTTPMaximumConnectionsPerHost:"); - late final _sel_HTTPCookieStorage1 = _registerName1("HTTPCookieStorage"); - late final _sel_setHTTPCookieStorage_1 = - _registerName1("setHTTPCookieStorage:"); - void _objc_msgSend_984( + late final _sel_webSocketTaskWithRequest_1 = + _registerName1("webSocketTaskWithRequest:"); + ffi.Pointer _objc_msgSend_984( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, + ffi.Pointer request, ) { return __objc_msgSend_984( obj, sel, - value, + request, ); } late final __objc_msgSend_984Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_984 = __objc_msgSend_984Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_URLCredentialStorage1 = - _registerName1("URLCredentialStorage"); - late final _sel_setURLCredentialStorage_1 = - _registerName1("setURLCredentialStorage:"); - void _objc_msgSend_985( + late final _sel_dataTaskWithRequest_completionHandler_1 = + _registerName1("dataTaskWithRequest:completionHandler:"); + ffi.Pointer _objc_msgSend_985( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, + ffi.Pointer request, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_985( obj, sel, - value, + request, + completionHandler, ); } late final __objc_msgSend_985Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_985 = __objc_msgSend_985Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_URLCache1 = _registerName1("URLCache"); - late final _sel_setURLCache_1 = _registerName1("setURLCache:"); - late final _sel_shouldUseExtendedBackgroundIdleMode1 = - _registerName1("shouldUseExtendedBackgroundIdleMode"); - late final _sel_setShouldUseExtendedBackgroundIdleMode_1 = - _registerName1("setShouldUseExtendedBackgroundIdleMode:"); - late final _sel_protocolClasses1 = _registerName1("protocolClasses"); - late final _sel_setProtocolClasses_1 = _registerName1("setProtocolClasses:"); - late final _sel_multipathServiceType1 = - _registerName1("multipathServiceType"); - int _objc_msgSend_986( + late final _sel_dataTaskWithURL_completionHandler_1 = + _registerName1("dataTaskWithURL:completionHandler:"); + ffi.Pointer _objc_msgSend_986( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer url, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_986( obj, sel, + url, + completionHandler, ); } late final __objc_msgSend_986Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_986 = __objc_msgSend_986Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_setMultipathServiceType_1 = - _registerName1("setMultipathServiceType:"); - void _objc_msgSend_987( + late final _sel_uploadTaskWithRequest_fromFile_completionHandler_1 = + _registerName1("uploadTaskWithRequest:fromFile:completionHandler:"); + ffi.Pointer _objc_msgSend_987( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer request, + ffi.Pointer fileURL, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_987( obj, sel, - value, + request, + fileURL, + completionHandler, ); } late final __objc_msgSend_987Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_987 = __objc_msgSend_987Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_backgroundSessionConfiguration_1 = - _registerName1("backgroundSessionConfiguration:"); - late final _sel_sessionWithConfiguration_1 = - _registerName1("sessionWithConfiguration:"); + late final _sel_uploadTaskWithRequest_fromData_completionHandler_1 = + _registerName1("uploadTaskWithRequest:fromData:completionHandler:"); ffi.Pointer _objc_msgSend_988( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer configuration, + ffi.Pointer request, + ffi.Pointer bodyData, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_988( obj, sel, - configuration, + request, + bodyData, + completionHandler, ); } late final __objc_msgSend_988Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_988 = __objc_msgSend_988Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_sessionWithConfiguration_delegate_delegateQueue_1 = - _registerName1("sessionWithConfiguration:delegate:delegateQueue:"); + late final _sel_downloadTaskWithRequest_completionHandler_1 = + _registerName1("downloadTaskWithRequest:completionHandler:"); ffi.Pointer _objc_msgSend_989( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer configuration, - ffi.Pointer delegate, - ffi.Pointer queue, + ffi.Pointer request, + ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_989( obj, sel, - configuration, - delegate, - queue, + request, + completionHandler, ); } @@ -28102,706 +28102,747 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_989 = __objc_msgSend_989Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_delegateQueue1 = _registerName1("delegateQueue"); - late final _sel_configuration1 = _registerName1("configuration"); - late final _sel_sessionDescription1 = _registerName1("sessionDescription"); - late final _sel_setSessionDescription_1 = - _registerName1("setSessionDescription:"); - late final _sel_finishTasksAndInvalidate1 = - _registerName1("finishTasksAndInvalidate"); - late final _sel_invalidateAndCancel1 = _registerName1("invalidateAndCancel"); - late final _sel_resetWithCompletionHandler_1 = - _registerName1("resetWithCompletionHandler:"); - late final _sel_flushWithCompletionHandler_1 = - _registerName1("flushWithCompletionHandler:"); - late final _sel_getTasksWithCompletionHandler_1 = - _registerName1("getTasksWithCompletionHandler:"); - void _objc_msgSend_990( + late final _sel_downloadTaskWithURL_completionHandler_1 = + _registerName1("downloadTaskWithURL:completionHandler:"); + ffi.Pointer _objc_msgSend_990( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer url, ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_990( obj, sel, + url, completionHandler, ); } late final __objc_msgSend_990Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_990 = __objc_msgSend_990Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_getAllTasksWithCompletionHandler_1 = - _registerName1("getAllTasksWithCompletionHandler:"); - void _objc_msgSend_991( + late final _sel_downloadTaskWithResumeData_completionHandler_1 = + _registerName1("downloadTaskWithResumeData:completionHandler:"); + ffi.Pointer _objc_msgSend_991( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer resumeData, ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_991( obj, sel, + resumeData, completionHandler, ); } late final __objc_msgSend_991Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_991 = __objc_msgSend_991Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_dataTaskWithRequest_1 = - _registerName1("dataTaskWithRequest:"); + late final _class_NSProtocolChecker1 = _getClass1("NSProtocolChecker"); ffi.Pointer _objc_msgSend_992( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, ) { return __objc_msgSend_992( obj, sel, - request, ); } late final __objc_msgSend_992Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_992 = __objc_msgSend_992Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_dataTaskWithURL_1 = _registerName1("dataTaskWithURL:"); - ffi.Pointer _objc_msgSend_993( + late final _sel_protocolCheckerWithTarget_protocol_1 = + _registerName1("protocolCheckerWithTarget:protocol:"); + instancetype _objc_msgSend_993( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, + ffi.Pointer anObject, + ffi.Pointer aProtocol, ) { return __objc_msgSend_993( obj, sel, - url, + anObject, + aProtocol, ); } late final __objc_msgSend_993Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_993 = __objc_msgSend_993Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _class_NSURLSessionUploadTask1 = - _getClass1("NSURLSessionUploadTask"); - late final _sel_uploadTaskWithRequest_fromFile_1 = - _registerName1("uploadTaskWithRequest:fromFile:"); - ffi.Pointer _objc_msgSend_994( + late final _sel_initWithTarget_protocol_1 = + _registerName1("initWithTarget:protocol:"); + late final _class_NSTask1 = _getClass1("NSTask"); + late final _sel_setExecutableURL_1 = _registerName1("setExecutableURL:"); + late final _sel_setEnvironment_1 = _registerName1("setEnvironment:"); + late final _sel_currentDirectoryURL1 = _registerName1("currentDirectoryURL"); + late final _sel_setCurrentDirectoryURL_1 = + _registerName1("setCurrentDirectoryURL:"); + late final _sel_standardInput1 = _registerName1("standardInput"); + late final _sel_setStandardInput_1 = _registerName1("setStandardInput:"); + late final _sel_standardOutput1 = _registerName1("standardOutput"); + late final _sel_setStandardOutput_1 = _registerName1("setStandardOutput:"); + late final _sel_standardError1 = _registerName1("standardError"); + late final _sel_setStandardError_1 = _registerName1("setStandardError:"); + late final _sel_launchAndReturnError_1 = + _registerName1("launchAndReturnError:"); + late final _sel_interrupt1 = _registerName1("interrupt"); + late final _sel_terminate1 = _registerName1("terminate"); + late final _sel_isRunning1 = _registerName1("isRunning"); + late final _sel_terminationStatus1 = _registerName1("terminationStatus"); + late final _sel_terminationReason1 = _registerName1("terminationReason"); + int _objc_msgSend_994( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer fileURL, ) { return __objc_msgSend_994( obj, sel, - request, - fileURL, ); } late final __objc_msgSend_994Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); - late final __objc_msgSend_994 = __objc_msgSend_994Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_994 = __objc_msgSend_994Ptr.asFunction< + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_uploadTaskWithRequest_fromData_1 = - _registerName1("uploadTaskWithRequest:fromData:"); - ffi.Pointer _objc_msgSend_995( + late final _sel_terminationHandler1 = _registerName1("terminationHandler"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_995( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer bodyData, ) { return __objc_msgSend_995( obj, sel, - request, - bodyData, ); } late final __objc_msgSend_995Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_995 = __objc_msgSend_995Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_uploadTaskWithStreamedRequest_1 = - _registerName1("uploadTaskWithStreamedRequest:"); - ffi.Pointer _objc_msgSend_996( + late final _sel_setTerminationHandler_1 = + _registerName1("setTerminationHandler:"); + void _objc_msgSend_996( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, + ffi.Pointer<_ObjCBlock> value, ) { return __objc_msgSend_996( obj, sel, - request, + value, ); } late final __objc_msgSend_996Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_996 = __objc_msgSend_996Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _class_NSURLSessionDownloadTask1 = - _getClass1("NSURLSessionDownloadTask"); - late final _sel_cancelByProducingResumeData_1 = - _registerName1("cancelByProducingResumeData:"); - void _objc_msgSend_997( + late final _sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_1 = + _registerName1( + "launchedTaskWithExecutableURL:arguments:error:terminationHandler:"); + ffi.Pointer _objc_msgSend_997( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> completionHandler, + ffi.Pointer url, + ffi.Pointer arguments, + ffi.Pointer> error, + ffi.Pointer<_ObjCBlock> terminationHandler, ) { return __objc_msgSend_997( obj, sel, - completionHandler, + url, + arguments, + error, + terminationHandler, ); } late final __objc_msgSend_997Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_997 = __objc_msgSend_997Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>, ffi.Pointer<_ObjCBlock>)>(); - late final _sel_downloadTaskWithRequest_1 = - _registerName1("downloadTaskWithRequest:"); + late final _sel_waitUntilExit1 = _registerName1("waitUntilExit"); + late final _sel_launchPath1 = _registerName1("launchPath"); + late final _sel_setLaunchPath_1 = _registerName1("setLaunchPath:"); + late final _sel_setCurrentDirectoryPath_1 = + _registerName1("setCurrentDirectoryPath:"); + late final _sel_launch1 = _registerName1("launch"); + late final _sel_launchedTaskWithLaunchPath_arguments_1 = + _registerName1("launchedTaskWithLaunchPath:arguments:"); ffi.Pointer _objc_msgSend_998( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, + ffi.Pointer path, + ffi.Pointer arguments, ) { return __objc_msgSend_998( obj, sel, - request, + path, + arguments, ); } late final __objc_msgSend_998Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_998 = __objc_msgSend_998Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_downloadTaskWithURL_1 = - _registerName1("downloadTaskWithURL:"); - ffi.Pointer _objc_msgSend_999( + late final _class_NSXMLElement1 = _getClass1("NSXMLElement"); + late final _class_NSXMLNode1 = _getClass1("NSXMLNode"); + late final _sel_initWithKind_1 = _registerName1("initWithKind:"); + instancetype _objc_msgSend_999( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, + int kind, ) { return __objc_msgSend_999( obj, sel, - url, + kind, ); } late final __objc_msgSend_999Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_999 = __objc_msgSend_999Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + instancetype Function( + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_downloadTaskWithResumeData_1 = - _registerName1("downloadTaskWithResumeData:"); - ffi.Pointer _objc_msgSend_1000( + late final _sel_initWithKind_options_1 = + _registerName1("initWithKind:options:"); + instancetype _objc_msgSend_1000( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer resumeData, + int kind, + int options, ) { return __objc_msgSend_1000( obj, sel, - resumeData, + kind, + options, ); } late final __objc_msgSend_1000Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Int32, ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_1000 = __objc_msgSend_1000Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + instancetype Function( + ffi.Pointer, ffi.Pointer, int, int)>(); - late final _class_NSURLSessionStreamTask1 = - _getClass1("NSURLSessionStreamTask"); - late final _sel_readDataOfMinLength_maxLength_timeout_completionHandler_1 = - _registerName1( - "readDataOfMinLength:maxLength:timeout:completionHandler:"); - void _objc_msgSend_1001( + late final _sel_document1 = _registerName1("document"); + late final _sel_documentWithRootElement_1 = + _registerName1("documentWithRootElement:"); + ffi.Pointer _objc_msgSend_1001( ffi.Pointer obj, ffi.Pointer sel, - int minBytes, - int maxBytes, - double timeout, - ffi.Pointer<_ObjCBlock> completionHandler, + ffi.Pointer element, ) { return __objc_msgSend_1001( obj, sel, - minBytes, - maxBytes, - timeout, - completionHandler, + element, ); } late final __objc_msgSend_1001Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.UnsignedLong, - ffi.UnsignedLong, - ffi.Double, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1001 = __objc_msgSend_1001Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, int, - double, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_writeData_timeout_completionHandler_1 = - _registerName1("writeData:timeout:completionHandler:"); - void _objc_msgSend_1002( + late final _sel_elementWithName_1 = _registerName1("elementWithName:"); + late final _sel_elementWithName_URI_1 = + _registerName1("elementWithName:URI:"); + late final _sel_elementWithName_stringValue_1 = + _registerName1("elementWithName:stringValue:"); + late final _sel_elementWithName_children_attributes_1 = + _registerName1("elementWithName:children:attributes:"); + ffi.Pointer _objc_msgSend_1002( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer data, - double timeout, - ffi.Pointer<_ObjCBlock> completionHandler, + ffi.Pointer name, + ffi.Pointer children, + ffi.Pointer attributes, ) { return __objc_msgSend_1002( obj, sel, - data, - timeout, - completionHandler, + name, + children, + attributes, ); } late final __objc_msgSend_1002Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Double, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1002 = __objc_msgSend_1002Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, double, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_captureStreams1 = _registerName1("captureStreams"); - late final _sel_closeWrite1 = _registerName1("closeWrite"); - late final _sel_closeRead1 = _registerName1("closeRead"); - late final _sel_startSecureConnection1 = - _registerName1("startSecureConnection"); - late final _sel_stopSecureConnection1 = - _registerName1("stopSecureConnection"); - late final _sel_streamTaskWithHostName_port_1 = - _registerName1("streamTaskWithHostName:port:"); - ffi.Pointer _objc_msgSend_1003( + late final _sel_attributeWithName_stringValue_1 = + _registerName1("attributeWithName:stringValue:"); + late final _sel_attributeWithName_URI_stringValue_1 = + _registerName1("attributeWithName:URI:stringValue:"); + late final _sel_namespaceWithName_stringValue_1 = + _registerName1("namespaceWithName:stringValue:"); + late final _sel_processingInstructionWithName_stringValue_1 = + _registerName1("processingInstructionWithName:stringValue:"); + late final _sel_commentWithStringValue_1 = + _registerName1("commentWithStringValue:"); + late final _sel_textWithStringValue_1 = + _registerName1("textWithStringValue:"); + late final _sel_DTDNodeWithXMLString_1 = + _registerName1("DTDNodeWithXMLString:"); + int _objc_msgSend_1003( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer hostname, - int port, ) { return __objc_msgSend_1003( obj, sel, - hostname, - port, ); } late final __objc_msgSend_1003Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Long)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1003 = __objc_msgSend_1003Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer, int)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _class_NSNetService1 = _getClass1("NSNetService"); - late final _sel_initWithDomain_type_name_port_1 = - _registerName1("initWithDomain:type:name:port:"); - instancetype _objc_msgSend_1004( + late final _sel_objectValue1 = _registerName1("objectValue"); + late final _sel_setObjectValue_1 = _registerName1("setObjectValue:"); + late final _sel_setStringValue_1 = _registerName1("setStringValue:"); + late final _sel_setStringValue_resolvingEntities_1 = + _registerName1("setStringValue:resolvingEntities:"); + void _objc_msgSend_1004( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer domain, - ffi.Pointer type, - ffi.Pointer name, - int port, + ffi.Pointer string, + bool resolve, ) { return __objc_msgSend_1004( obj, sel, - domain, - type, - name, - port, + string, + resolve, ); } late final __objc_msgSend_1004Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); late final __objc_msgSend_1004 = __objc_msgSend_1004Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, bool)>(); - late final _sel_initWithDomain_type_name_1 = - _registerName1("initWithDomain:type:name:"); - late final _sel_includesPeerToPeer1 = _registerName1("includesPeerToPeer"); - late final _sel_setIncludesPeerToPeer_1 = - _registerName1("setIncludesPeerToPeer:"); - late final _sel_type1 = _registerName1("type"); - late final _sel_publishWithOptions_1 = _registerName1("publishWithOptions:"); - void _objc_msgSend_1005( + late final _sel_index1 = _registerName1("index"); + late final _sel_level1 = _registerName1("level"); + late final _class_NSXMLDocument1 = _getClass1("NSXMLDocument"); + late final _sel_initWithXMLString_options_error_1 = + _registerName1("initWithXMLString:options:error:"); + instancetype _objc_msgSend_1005( ffi.Pointer obj, ffi.Pointer sel, - int options, + ffi.Pointer string, + int mask, + ffi.Pointer> error, ) { return __objc_msgSend_1005( obj, sel, - options, + string, + mask, + error, ); } late final __objc_msgSend_1005Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_1005 = __objc_msgSend_1005Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); - late final _sel_resolve1 = _registerName1("resolve"); - late final _sel_stop1 = _registerName1("stop"); - late final _sel_dictionaryFromTXTRecordData_1 = - _registerName1("dictionaryFromTXTRecordData:"); - ffi.Pointer _objc_msgSend_1006( + instancetype _objc_msgSend_1006( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer txtData, + ffi.Pointer url, + int mask, + ffi.Pointer> error, ) { return __objc_msgSend_1006( obj, sel, - txtData, + url, + mask, + error, ); } late final __objc_msgSend_1006Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_1006 = __objc_msgSend_1006Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); - late final _sel_dataFromTXTRecordDictionary_1 = - _registerName1("dataFromTXTRecordDictionary:"); - ffi.Pointer _objc_msgSend_1007( + late final _sel_initWithData_options_error_1 = + _registerName1("initWithData:options:error:"); + instancetype _objc_msgSend_1007( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer txtDictionary, + ffi.Pointer data, + int mask, + ffi.Pointer> error, ) { return __objc_msgSend_1007( obj, sel, - txtDictionary, + data, + mask, + error, ); } late final __objc_msgSend_1007Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Int32, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_1007 = __objc_msgSend_1007Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer>)>(); - late final _sel_resolveWithTimeout_1 = _registerName1("resolveWithTimeout:"); - late final _sel_getInputStream_outputStream_1 = - _registerName1("getInputStream:outputStream:"); - bool _objc_msgSend_1008( + late final _sel_initWithRootElement_1 = + _registerName1("initWithRootElement:"); + late final _sel_replacementClassForClass_1 = + _registerName1("replacementClassForClass:"); + late final _sel_characterEncoding1 = _registerName1("characterEncoding"); + late final _sel_setCharacterEncoding_1 = + _registerName1("setCharacterEncoding:"); + late final _sel_isStandalone1 = _registerName1("isStandalone"); + late final _sel_setStandalone_1 = _registerName1("setStandalone:"); + late final _sel_documentContentKind1 = _registerName1("documentContentKind"); + int _objc_msgSend_1008( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer> inputStream, - ffi.Pointer> outputStream, ) { return __objc_msgSend_1008( obj, sel, - inputStream, - outputStream, ); } late final __objc_msgSend_1008Ptr = _lookup< ffi.NativeFunction< - ffi.Bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1008 = __objc_msgSend_1008Ptr.asFunction< - bool Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer>)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_setTXTRecordData_1 = _registerName1("setTXTRecordData:"); - late final _sel_TXTRecordData1 = _registerName1("TXTRecordData"); - late final _sel_startMonitoring1 = _registerName1("startMonitoring"); - late final _sel_stopMonitoring1 = _registerName1("stopMonitoring"); - late final _sel_streamTaskWithNetService_1 = - _registerName1("streamTaskWithNetService:"); - ffi.Pointer _objc_msgSend_1009( + late final _sel_setDocumentContentKind_1 = + _registerName1("setDocumentContentKind:"); + void _objc_msgSend_1009( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer service, + int value, ) { return __objc_msgSend_1009( obj, sel, - service, + value, ); } late final __objc_msgSend_1009Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_1009 = __objc_msgSend_1009Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _class_NSURLSessionWebSocketTask1 = - _getClass1("NSURLSessionWebSocketTask"); - late final _class_NSURLSessionWebSocketMessage1 = - _getClass1("NSURLSessionWebSocketMessage"); - int _objc_msgSend_1010( + late final _sel_setMIMEType_1 = _registerName1("setMIMEType:"); + late final _class_NSXMLDTD1 = _getClass1("NSXMLDTD"); + late final _sel_setPublicID_1 = _registerName1("setPublicID:"); + late final _sel_setSystemID_1 = _registerName1("setSystemID:"); + late final _sel_insertChild_atIndex_1 = + _registerName1("insertChild:atIndex:"); + void _objc_msgSend_1010( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer child, + int index, ) { return __objc_msgSend_1010( obj, sel, + child, + index, ); } late final __objc_msgSend_1010Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); late final __objc_msgSend_1010 = __objc_msgSend_1010Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _sel_sendMessage_completionHandler_1 = - _registerName1("sendMessage:completionHandler:"); + late final _sel_insertChildren_atIndex_1 = + _registerName1("insertChildren:atIndex:"); void _objc_msgSend_1011( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer message, - ffi.Pointer<_ObjCBlock> completionHandler, + ffi.Pointer children, + int index, ) { return __objc_msgSend_1011( obj, sel, - message, - completionHandler, + children, + index, ); } late final __objc_msgSend_1011Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); late final __objc_msgSend_1011 = __objc_msgSend_1011Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, int)>(); - late final _sel_receiveMessageWithCompletionHandler_1 = - _registerName1("receiveMessageWithCompletionHandler:"); + late final _sel_removeChildAtIndex_1 = _registerName1("removeChildAtIndex:"); + late final _sel_setChildren_1 = _registerName1("setChildren:"); + late final _sel_addChild_1 = _registerName1("addChild:"); void _objc_msgSend_1012( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> completionHandler, + ffi.Pointer child, ) { return __objc_msgSend_1012( obj, sel, - completionHandler, + child, ); } late final __objc_msgSend_1012Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1012 = __objc_msgSend_1012Ptr.asFunction< void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer)>(); - late final _sel_sendPingWithPongReceiveHandler_1 = - _registerName1("sendPingWithPongReceiveHandler:"); + late final _sel_replaceChildAtIndex_withNode_1 = + _registerName1("replaceChildAtIndex:withNode:"); void _objc_msgSend_1013( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> pongReceiveHandler, + int index, + ffi.Pointer node, ) { return __objc_msgSend_1013( obj, sel, - pongReceiveHandler, + index, + node, ); } late final __objc_msgSend_1013Ptr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1013 = __objc_msgSend_1013Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + void Function(ffi.Pointer, ffi.Pointer, int, + ffi.Pointer)>(); - late final _sel_cancelWithCloseCode_reason_1 = - _registerName1("cancelWithCloseCode:reason:"); - void _objc_msgSend_1014( + late final _class_NSXMLDTDNode1 = _getClass1("NSXMLDTDNode"); + late final _sel_initWithXMLString_1 = _registerName1("initWithXMLString:"); + late final _sel_DTDKind1 = _registerName1("DTDKind"); + int _objc_msgSend_1014( ffi.Pointer obj, ffi.Pointer sel, - int closeCode, - ffi.Pointer reason, ) { return __objc_msgSend_1014( obj, sel, - closeCode, - reason, ); } late final __objc_msgSend_1014Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Pointer)>>('objc_msgSend'); + ffi.Int32 Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1014 = __objc_msgSend_1014Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); + int Function(ffi.Pointer, ffi.Pointer)>(); - late final _sel_maximumMessageSize1 = _registerName1("maximumMessageSize"); - late final _sel_setMaximumMessageSize_1 = - _registerName1("setMaximumMessageSize:"); - late final _sel_closeCode1 = _registerName1("closeCode"); - int _objc_msgSend_1015( + late final _sel_setDTDKind_1 = _registerName1("setDTDKind:"); + void _objc_msgSend_1015( ffi.Pointer obj, ffi.Pointer sel, + int value, ) { return __objc_msgSend_1015( obj, sel, + value, ); } late final __objc_msgSend_1015Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_1015 = __objc_msgSend_1015Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_closeReason1 = _registerName1("closeReason"); - late final _sel_webSocketTaskWithURL_1 = - _registerName1("webSocketTaskWithURL:"); + late final _sel_isExternal1 = _registerName1("isExternal"); + late final _sel_notationName1 = _registerName1("notationName"); + late final _sel_setNotationName_1 = _registerName1("setNotationName:"); + late final _sel_localNameForName_1 = _registerName1("localNameForName:"); + late final _sel_prefixForName_1 = _registerName1("prefixForName:"); + late final _sel_predefinedNamespaceForPrefix_1 = + _registerName1("predefinedNamespaceForPrefix:"); ffi.Pointer _objc_msgSend_1016( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, + ffi.Pointer name, ) { return __objc_msgSend_1016( obj, sel, - url, + name, ); } @@ -28813,229 +28854,181 @@ class SentryCocoa { ffi.Pointer Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_webSocketTaskWithURL_protocols_1 = - _registerName1("webSocketTaskWithURL:protocols:"); + late final _sel_entityDeclarationForName_1 = + _registerName1("entityDeclarationForName:"); ffi.Pointer _objc_msgSend_1017( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer protocols, + ffi.Pointer name, ) { return __objc_msgSend_1017( obj, sel, - url, - protocols, + name, ); } late final __objc_msgSend_1017Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1017 = __objc_msgSend_1017Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_webSocketTaskWithRequest_1 = - _registerName1("webSocketTaskWithRequest:"); + late final _sel_notationDeclarationForName_1 = + _registerName1("notationDeclarationForName:"); + late final _sel_elementDeclarationForName_1 = + _registerName1("elementDeclarationForName:"); + late final _sel_attributeDeclarationForName_elementName_1 = + _registerName1("attributeDeclarationForName:elementName:"); ffi.Pointer _objc_msgSend_1018( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, + ffi.Pointer name, + ffi.Pointer elementName, ) { return __objc_msgSend_1018( obj, sel, - request, + name, + elementName, ); } late final __objc_msgSend_1018Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1018 = __objc_msgSend_1018Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_dataTaskWithRequest_completionHandler_1 = - _registerName1("dataTaskWithRequest:completionHandler:"); + late final _sel_predefinedEntityDeclarationForName_1 = + _registerName1("predefinedEntityDeclarationForName:"); + late final _sel_DTD1 = _registerName1("DTD"); ffi.Pointer _objc_msgSend_1019( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_1019( obj, sel, - request, - completionHandler, ); } late final __objc_msgSend_1019Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1019 = __objc_msgSend_1019Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, ffi.Pointer)>(); - late final _sel_dataTaskWithURL_completionHandler_1 = - _registerName1("dataTaskWithURL:completionHandler:"); - ffi.Pointer _objc_msgSend_1020( + late final _sel_setDTD_1 = _registerName1("setDTD:"); + void _objc_msgSend_1020( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer<_ObjCBlock> completionHandler, + ffi.Pointer value, ) { return __objc_msgSend_1020( obj, sel, - url, - completionHandler, + value, ); } late final __objc_msgSend_1020Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1020 = __objc_msgSend_1020Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_uploadTaskWithRequest_fromFile_completionHandler_1 = - _registerName1("uploadTaskWithRequest:fromFile:completionHandler:"); - ffi.Pointer _objc_msgSend_1021( + late final _sel_setRootElement_1 = _registerName1("setRootElement:"); + void _objc_msgSend_1021( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer fileURL, - ffi.Pointer<_ObjCBlock> completionHandler, + ffi.Pointer root, ) { return __objc_msgSend_1021( obj, sel, - request, - fileURL, - completionHandler, + root, ); } late final __objc_msgSend_1021Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1021 = __objc_msgSend_1021Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_uploadTaskWithRequest_fromData_completionHandler_1 = - _registerName1("uploadTaskWithRequest:fromData:completionHandler:"); + late final _sel_rootElement1 = _registerName1("rootElement"); ffi.Pointer _objc_msgSend_1022( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer bodyData, - ffi.Pointer<_ObjCBlock> completionHandler, ) { return __objc_msgSend_1022( obj, sel, - request, - bodyData, - completionHandler, ); } late final __objc_msgSend_1022Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1022 = __objc_msgSend_1022Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, ffi.Pointer)>(); - late final _sel_downloadTaskWithRequest_completionHandler_1 = - _registerName1("downloadTaskWithRequest:completionHandler:"); + late final _sel_XMLData1 = _registerName1("XMLData"); + late final _sel_XMLDataWithOptions_1 = _registerName1("XMLDataWithOptions:"); ffi.Pointer _objc_msgSend_1023( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer request, - ffi.Pointer<_ObjCBlock> completionHandler, + int options, ) { return __objc_msgSend_1023( obj, sel, - request, - completionHandler, + options, ); } late final __objc_msgSend_1023Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_1023 = __objc_msgSend_1023Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_downloadTaskWithURL_completionHandler_1 = - _registerName1("downloadTaskWithURL:completionHandler:"); + late final _sel_objectByApplyingXSLT_arguments_error_1 = + _registerName1("objectByApplyingXSLT:arguments:error:"); ffi.Pointer _objc_msgSend_1024( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer<_ObjCBlock> completionHandler, + ffi.Pointer xslt, + ffi.Pointer arguments, + ffi.Pointer> error, ) { return __objc_msgSend_1024( obj, sel, - url, - completionHandler, + xslt, + arguments, + error, ); } @@ -29045,27 +29038,31 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_1024 = __objc_msgSend_1024Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_downloadTaskWithResumeData_completionHandler_1 = - _registerName1("downloadTaskWithResumeData:completionHandler:"); + late final _sel_objectByApplyingXSLTString_arguments_error_1 = + _registerName1("objectByApplyingXSLTString:arguments:error:"); ffi.Pointer _objc_msgSend_1025( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer resumeData, - ffi.Pointer<_ObjCBlock> completionHandler, + ffi.Pointer xslt, + ffi.Pointer arguments, + ffi.Pointer> error, ) { return __objc_msgSend_1025( obj, sel, - resumeData, - completionHandler, + xslt, + arguments, + error, ); } @@ -29075,82 +29072,73 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_1025 = __objc_msgSend_1025Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, + ffi.Pointer>)>(); - late final _class_NSProtocolChecker1 = _getClass1("NSProtocolChecker"); + late final _sel_objectByApplyingXSLTAtURL_arguments_error_1 = + _registerName1("objectByApplyingXSLTAtURL:arguments:error:"); ffi.Pointer _objc_msgSend_1026( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer xsltURL, + ffi.Pointer argument, + ffi.Pointer> error, ) { return __objc_msgSend_1026( obj, sel, + xsltURL, + argument, + error, ); } late final __objc_msgSend_1026Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_1026 = __objc_msgSend_1026Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer>)>(); - late final _sel_protocolCheckerWithTarget_protocol_1 = - _registerName1("protocolCheckerWithTarget:protocol:"); - instancetype _objc_msgSend_1027( + late final _sel_validateAndReturnError_1 = + _registerName1("validateAndReturnError:"); + late final _sel_rootDocument1 = _registerName1("rootDocument"); + ffi.Pointer _objc_msgSend_1027( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer anObject, - ffi.Pointer aProtocol, ) { return __objc_msgSend_1027( obj, sel, - anObject, - aProtocol, ); } late final __objc_msgSend_1027Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1027 = __objc_msgSend_1027Ptr.asFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_initWithTarget_protocol_1 = - _registerName1("initWithTarget:protocol:"); - late final _class_NSTask1 = _getClass1("NSTask"); - late final _sel_setExecutableURL_1 = _registerName1("setExecutableURL:"); - late final _sel_setEnvironment_1 = _registerName1("setEnvironment:"); - late final _sel_currentDirectoryURL1 = _registerName1("currentDirectoryURL"); - late final _sel_setCurrentDirectoryURL_1 = - _registerName1("setCurrentDirectoryURL:"); - late final _sel_standardInput1 = _registerName1("standardInput"); - late final _sel_setStandardInput_1 = _registerName1("setStandardInput:"); - late final _sel_standardOutput1 = _registerName1("standardOutput"); - late final _sel_setStandardOutput_1 = _registerName1("setStandardOutput:"); - late final _sel_standardError1 = _registerName1("standardError"); - late final _sel_setStandardError_1 = _registerName1("setStandardError:"); - late final _sel_launchAndReturnError_1 = - _registerName1("launchAndReturnError:"); - late final _sel_interrupt1 = _registerName1("interrupt"); - late final _sel_terminate1 = _registerName1("terminate"); - late final _sel_isRunning1 = _registerName1("isRunning"); - late final _sel_terminationStatus1 = _registerName1("terminationStatus"); - late final _sel_terminationReason1 = _registerName1("terminationReason"); - int _objc_msgSend_1028( + late final _sel_parent1 = _registerName1("parent"); + ffi.Pointer _objc_msgSend_1028( ffi.Pointer obj, ffi.Pointer sel, ) { @@ -29162,110 +29150,107 @@ class SentryCocoa { late final __objc_msgSend_1028Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( + ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1028 = __objc_msgSend_1028Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_terminationHandler1 = _registerName1("terminationHandler"); - ffi.Pointer<_ObjCBlock> _objc_msgSend_1029( + late final _sel_childCount1 = _registerName1("childCount"); + late final _sel_children1 = _registerName1("children"); + late final _sel_childAtIndex_1 = _registerName1("childAtIndex:"); + ffi.Pointer _objc_msgSend_1029( ffi.Pointer obj, ffi.Pointer sel, + int index, ) { return __objc_msgSend_1029( obj, sel, + index, ); } late final __objc_msgSend_1029Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); late final __objc_msgSend_1029 = __objc_msgSend_1029Ptr.asFunction< - ffi.Pointer<_ObjCBlock> Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_setTerminationHandler_1 = - _registerName1("setTerminationHandler:"); - void _objc_msgSend_1030( + late final _sel_previousSibling1 = _registerName1("previousSibling"); + late final _sel_nextSibling1 = _registerName1("nextSibling"); + late final _sel_previousNode1 = _registerName1("previousNode"); + late final _sel_nextNode1 = _registerName1("nextNode"); + late final _sel_detach1 = _registerName1("detach"); + late final _sel_XPath1 = _registerName1("XPath"); + late final _sel_localName1 = _registerName1("localName"); + late final _sel_prefix1 = _registerName1("prefix"); + late final _sel_URI1 = _registerName1("URI"); + late final _sel_setURI_1 = _registerName1("setURI:"); + late final _sel_XMLString1 = _registerName1("XMLString"); + late final _sel_XMLStringWithOptions_1 = + _registerName1("XMLStringWithOptions:"); + ffi.Pointer _objc_msgSend_1030( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer<_ObjCBlock> value, + int options, ) { return __objc_msgSend_1030( obj, sel, - value, + options, ); } late final __objc_msgSend_1030Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Int32)>>('objc_msgSend'); late final __objc_msgSend_1030 = __objc_msgSend_1030Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer, int)>(); - late final _sel_launchedTaskWithExecutableURL_arguments_error_terminationHandler_1 = - _registerName1( - "launchedTaskWithExecutableURL:arguments:error:terminationHandler:"); + late final _sel_canonicalXMLStringPreservingComments_1 = + _registerName1("canonicalXMLStringPreservingComments:"); ffi.Pointer _objc_msgSend_1031( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, - ffi.Pointer arguments, - ffi.Pointer> error, - ffi.Pointer<_ObjCBlock> terminationHandler, + bool comments, ) { return __objc_msgSend_1031( obj, sel, - url, - arguments, - error, - terminationHandler, + comments, ); } late final __objc_msgSend_1031Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); late final __objc_msgSend_1031 = __objc_msgSend_1031Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>, - ffi.Pointer<_ObjCBlock>)>(); + ffi.Pointer, ffi.Pointer, bool)>(); - late final _sel_waitUntilExit1 = _registerName1("waitUntilExit"); - late final _sel_launchPath1 = _registerName1("launchPath"); - late final _sel_setLaunchPath_1 = _registerName1("setLaunchPath:"); - late final _sel_setCurrentDirectoryPath_1 = - _registerName1("setCurrentDirectoryPath:"); - late final _sel_launch1 = _registerName1("launch"); - late final _sel_launchedTaskWithLaunchPath_arguments_1 = - _registerName1("launchedTaskWithLaunchPath:arguments:"); + late final _sel_nodesForXPath_error_1 = + _registerName1("nodesForXPath:error:"); + late final _sel_objectsForXQuery_constants_error_1 = + _registerName1("objectsForXQuery:constants:error:"); ffi.Pointer _objc_msgSend_1032( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer path, - ffi.Pointer arguments, + ffi.Pointer xquery, + ffi.Pointer constants, + ffi.Pointer> error, ) { return __objc_msgSend_1032( obj, sel, - path, - arguments, + xquery, + constants, + error, ); } @@ -29275,618 +29260,626 @@ class SentryCocoa { ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer, + ffi.Pointer>)>>('objc_msgSend'); late final __objc_msgSend_1032 = __objc_msgSend_1032Ptr.asFunction< ffi.Pointer Function( ffi.Pointer, ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, + ffi.Pointer>)>(); - late final _class_NSXMLElement1 = _getClass1("NSXMLElement"); - late final _class_NSXMLNode1 = _getClass1("NSXMLNode"); - late final _sel_initWithKind_1 = _registerName1("initWithKind:"); - instancetype _objc_msgSend_1033( + late final _sel_objectsForXQuery_error_1 = + _registerName1("objectsForXQuery:error:"); + late final _sel_initWithName_URI_1 = _registerName1("initWithName:URI:"); + late final _sel_initWithName_stringValue_1 = + _registerName1("initWithName:stringValue:"); + late final _sel_initWithXMLString_error_1 = + _registerName1("initWithXMLString:error:"); + late final _sel_elementsForName_1 = _registerName1("elementsForName:"); + late final _sel_elementsForLocalName_URI_1 = + _registerName1("elementsForLocalName:URI:"); + late final _sel_addAttribute_1 = _registerName1("addAttribute:"); + late final _sel_removeAttributeForName_1 = + _registerName1("removeAttributeForName:"); + late final _sel_attributes1 = _registerName1("attributes"); + late final _sel_setAttributes_1 = _registerName1("setAttributes:"); + late final _sel_setAttributesWithDictionary_1 = + _registerName1("setAttributesWithDictionary:"); + late final _sel_attributeForName_1 = _registerName1("attributeForName:"); + late final _sel_attributeForLocalName_URI_1 = + _registerName1("attributeForLocalName:URI:"); + ffi.Pointer _objc_msgSend_1033( ffi.Pointer obj, ffi.Pointer sel, - int kind, + ffi.Pointer localName, + ffi.Pointer URI, ) { return __objc_msgSend_1033( obj, sel, - kind, + localName, + URI, ); } late final __objc_msgSend_1033Ptr = _lookup< ffi.NativeFunction< - instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1033 = __objc_msgSend_1033Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_initWithKind_options_1 = - _registerName1("initWithKind:options:"); + late final _sel_addNamespace_1 = _registerName1("addNamespace:"); + late final _sel_removeNamespaceForPrefix_1 = + _registerName1("removeNamespaceForPrefix:"); + late final _sel_namespaces1 = _registerName1("namespaces"); + late final _sel_setNamespaces_1 = _registerName1("setNamespaces:"); + late final _sel_namespaceForPrefix_1 = _registerName1("namespaceForPrefix:"); + late final _sel_resolveNamespaceForName_1 = + _registerName1("resolveNamespaceForName:"); + late final _sel_resolvePrefixForNamespaceURI_1 = + _registerName1("resolvePrefixForNamespaceURI:"); + late final _sel_normalizeAdjacentTextNodesPreservingCDATA_1 = + _registerName1("normalizeAdjacentTextNodesPreservingCDATA:"); + late final _sel_setAttributesAsDictionary_1 = + _registerName1("setAttributesAsDictionary:"); + late final _class_PrivateSentrySDKOnly1 = _getClass1("PrivateSentrySDKOnly"); + late final _class_SentryEnvelope1 = _getClass1("SentryEnvelope"); + late final _class_SentryId1 = _getClass1("SentryId"); + 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_1034( ffi.Pointer obj, ffi.Pointer sel, - int kind, - int options, + ffi.Pointer bytes, ) { return __objc_msgSend_1034( obj, sel, - kind, - options, + bytes, ); } late final __objc_msgSend_1034Ptr = _lookup< ffi.NativeFunction< instancetype Function(ffi.Pointer, ffi.Pointer, - ffi.Int32, ffi.Int32)>>('objc_msgSend'); + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1034 = __objc_msgSend_1034Ptr.asFunction< - instancetype Function( - ffi.Pointer, ffi.Pointer, int, int)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_document1 = _registerName1("document"); - late final _sel_documentWithRootElement_1 = - _registerName1("documentWithRootElement:"); - ffi.Pointer _objc_msgSend_1035( + late final _sel_getUUIDBytes_1 = _registerName1("getUUIDBytes:"); + void _objc_msgSend_1035( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer element, + ffi.Pointer uuid, ) { return __objc_msgSend_1035( obj, sel, - element, + uuid, ); } late final __objc_msgSend_1035Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1035 = __objc_msgSend_1035Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_elementWithName_1 = _registerName1("elementWithName:"); - late final _sel_elementWithName_URI_1 = - _registerName1("elementWithName:URI:"); - late final _sel_elementWithName_stringValue_1 = - _registerName1("elementWithName:stringValue:"); - late final _sel_elementWithName_children_attributes_1 = - _registerName1("elementWithName:children:attributes:"); - ffi.Pointer _objc_msgSend_1036( + int _objc_msgSend_1036( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer children, - ffi.Pointer attributes, + ffi.Pointer otherUUID, ) { return __objc_msgSend_1036( obj, sel, - name, - children, - attributes, + otherUUID, ); } late final __objc_msgSend_1036Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + ffi.Int32 Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1036 = __objc_msgSend_1036Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, + int Function(ffi.Pointer, ffi.Pointer, ffi.Pointer)>(); - late final _sel_attributeWithName_stringValue_1 = - _registerName1("attributeWithName:stringValue:"); - late final _sel_attributeWithName_URI_stringValue_1 = - _registerName1("attributeWithName:URI:stringValue:"); - late final _sel_namespaceWithName_stringValue_1 = - _registerName1("namespaceWithName:stringValue:"); - late final _sel_processingInstructionWithName_stringValue_1 = - _registerName1("processingInstructionWithName:stringValue:"); - late final _sel_commentWithStringValue_1 = - _registerName1("commentWithStringValue:"); - late final _sel_textWithStringValue_1 = - _registerName1("textWithStringValue:"); - late final _sel_DTDNodeWithXMLString_1 = - _registerName1("DTDNodeWithXMLString:"); - int _objc_msgSend_1037( + late final _sel_UUIDString1 = _registerName1("UUIDString"); + late final _sel_initWithUUID_1 = _registerName1("initWithUUID:"); + instancetype _objc_msgSend_1037( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer uuid, ) { return __objc_msgSend_1037( obj, sel, + uuid, ); } late final __objc_msgSend_1037Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1037 = __objc_msgSend_1037Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_objectValue1 = _registerName1("objectValue"); - late final _sel_setObjectValue_1 = _registerName1("setObjectValue:"); - late final _sel_setStringValue_1 = _registerName1("setStringValue:"); - late final _sel_setStringValue_resolvingEntities_1 = - _registerName1("setStringValue:resolvingEntities:"); - void _objc_msgSend_1038( + late final _sel_sentryIdString1 = _registerName1("sentryIdString"); + late final _sel_empty1 = _registerName1("empty"); + ffi.Pointer _objc_msgSend_1038( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer string, - bool resolve, ) { return __objc_msgSend_1038( obj, sel, - string, - resolve, ); } late final __objc_msgSend_1038Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1038 = __objc_msgSend_1038Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, bool)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_index1 = _registerName1("index"); - late final _sel_level1 = _registerName1("level"); - late final _class_NSXMLDocument1 = _getClass1("NSXMLDocument"); - late final _sel_initWithXMLString_options_error_1 = - _registerName1("initWithXMLString:options:error:"); + late final _class_SentryEnvelopeItem1 = _getClass1("SentryEnvelopeItem"); + late final _class_SentryEvent1 = _getClass1("SentryEvent"); + late final _sel_initWithEvent_1 = _registerName1("initWithEvent:"); instancetype _objc_msgSend_1039( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer string, - int mask, - ffi.Pointer> error, + ffi.Pointer event, ) { return __objc_msgSend_1039( obj, sel, - string, - mask, - error, + event, ); } late final __objc_msgSend_1039Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1039 = __objc_msgSend_1039Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); + late final _class_SentrySession1 = _getClass1("SentrySession"); + late final _sel_initWithSession_1 = _registerName1("initWithSession:"); instancetype _objc_msgSend_1040( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer url, - int mask, - ffi.Pointer> error, + ffi.Pointer session, ) { return __objc_msgSend_1040( obj, sel, - url, - mask, - error, + session, ); } late final __objc_msgSend_1040Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1040 = __objc_msgSend_1040Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_initWithData_options_error_1 = - _registerName1("initWithData:options:error:"); + late final _class_SentryUserFeedback1 = _getClass1("SentryUserFeedback"); + late final _sel_initWithUserFeedback_1 = + _registerName1("initWithUserFeedback:"); instancetype _objc_msgSend_1041( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer data, - int mask, - ffi.Pointer> error, + ffi.Pointer userFeedback, ) { return __objc_msgSend_1041( obj, sel, - data, - mask, - error, + userFeedback, ); } late final __objc_msgSend_1041Ptr = _lookup< ffi.NativeFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int32, - ffi.Pointer>)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1041 = __objc_msgSend_1041Ptr.asFunction< - instancetype Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer>)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_initWithRootElement_1 = - _registerName1("initWithRootElement:"); - late final _sel_replacementClassForClass_1 = - _registerName1("replacementClassForClass:"); - late final _sel_characterEncoding1 = _registerName1("characterEncoding"); - late final _sel_setCharacterEncoding_1 = - _registerName1("setCharacterEncoding:"); - late final _sel_isStandalone1 = _registerName1("isStandalone"); - late final _sel_setStandalone_1 = _registerName1("setStandalone:"); - late final _sel_documentContentKind1 = _registerName1("documentContentKind"); - int _objc_msgSend_1042( + late final _class_SentryAttachment1 = _getClass1("SentryAttachment"); + late final _sel_initWithAttachment_maxAttachmentSize_1 = + _registerName1("initWithAttachment:maxAttachmentSize:"); + instancetype _objc_msgSend_1042( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer attachment, + int maxAttachmentSize, ) { return __objc_msgSend_1042( obj, sel, + attachment, + maxAttachmentSize, ); } late final __objc_msgSend_1042Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); late final __objc_msgSend_1042 = __objc_msgSend_1042Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _sel_setDocumentContentKind_1 = - _registerName1("setDocumentContentKind:"); - void _objc_msgSend_1043( + late final _class_SentryEnvelopeItemHeader1 = + _getClass1("SentryEnvelopeItemHeader"); + late final _sel_initWithType_length_1 = + _registerName1("initWithType:length:"); + instancetype _objc_msgSend_1043( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer type, + int length, ) { return __objc_msgSend_1043( obj, sel, - value, + type, + length, ); } late final __objc_msgSend_1043Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); late final __objc_msgSend_1043 = __objc_msgSend_1043Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, int)>(); - late final _sel_setMIMEType_1 = _registerName1("setMIMEType:"); - late final _class_NSXMLDTD1 = _getClass1("NSXMLDTD"); - late final _sel_setPublicID_1 = _registerName1("setPublicID:"); - late final _sel_setSystemID_1 = _registerName1("setSystemID:"); - late final _sel_insertChild_atIndex_1 = - _registerName1("insertChild:atIndex:"); - void _objc_msgSend_1044( + late final _sel_initWithType_length_filenname_contentType_1 = + _registerName1("initWithType:length:filenname:contentType:"); + instancetype _objc_msgSend_1044( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer child, - int index, + ffi.Pointer type, + int length, + ffi.Pointer filename, + ffi.Pointer contentType, ) { return __objc_msgSend_1044( obj, sel, - child, - index, + type, + length, + filename, + contentType, ); } late final __objc_msgSend_1044Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.UnsignedLong, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1044 = __objc_msgSend_1044Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + int, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_insertChildren_atIndex_1 = - _registerName1("insertChildren:atIndex:"); - void _objc_msgSend_1045( + late final _sel_contentType1 = _registerName1("contentType"); + late final _sel_initWithHeader_data_1 = + _registerName1("initWithHeader:data:"); + instancetype _objc_msgSend_1045( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer children, - int index, + ffi.Pointer header, + ffi.Pointer data, ) { return __objc_msgSend_1045( obj, sel, - children, - index, + header, + data, ); } late final __objc_msgSend_1045Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1045 = __objc_msgSend_1045Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, int)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_removeChildAtIndex_1 = _registerName1("removeChildAtIndex:"); - late final _sel_setChildren_1 = _registerName1("setChildren:"); - late final _sel_addChild_1 = _registerName1("addChild:"); - void _objc_msgSend_1046( + late final _sel_header1 = _registerName1("header"); + ffi.Pointer _objc_msgSend_1046( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer child, ) { return __objc_msgSend_1046( obj, sel, - child, ); } late final __objc_msgSend_1046Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1046 = __objc_msgSend_1046Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_replaceChildAtIndex_withNode_1 = - _registerName1("replaceChildAtIndex:withNode:"); - void _objc_msgSend_1047( + late final _sel_initWithId_singleItem_1 = + _registerName1("initWithId:singleItem:"); + instancetype _objc_msgSend_1047( ffi.Pointer obj, ffi.Pointer sel, - int index, - ffi.Pointer node, + ffi.Pointer id, + ffi.Pointer item, ) { return __objc_msgSend_1047( obj, sel, - index, - node, + id, + item, ); } late final __objc_msgSend_1047Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.UnsignedLong, ffi.Pointer)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1047 = __objc_msgSend_1047Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int, - ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _class_NSXMLDTDNode1 = _getClass1("NSXMLDTDNode"); - late final _sel_initWithXMLString_1 = _registerName1("initWithXMLString:"); - late final _sel_DTDKind1 = _registerName1("DTDKind"); - int _objc_msgSend_1048( + late final _class_SentryEnvelopeHeader1 = _getClass1("SentryEnvelopeHeader"); + late final _sel_initWithId_1 = _registerName1("initWithId:"); + instancetype _objc_msgSend_1048( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer eventId, ) { return __objc_msgSend_1048( obj, sel, + eventId, ); } late final __objc_msgSend_1048Ptr = _lookup< ffi.NativeFunction< - ffi.Int32 Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1048 = __objc_msgSend_1048Ptr.asFunction< - int Function(ffi.Pointer, ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_setDTDKind_1 = _registerName1("setDTDKind:"); - void _objc_msgSend_1049( + late final _class_SentryTraceContext1 = _getClass1("SentryTraceContext"); + late final _sel_initWithId_traceContext_1 = + _registerName1("initWithId:traceContext:"); + instancetype _objc_msgSend_1049( ffi.Pointer obj, ffi.Pointer sel, - int value, + ffi.Pointer eventId, + ffi.Pointer traceContext, ) { return __objc_msgSend_1049( obj, sel, - value, + eventId, + traceContext, ); } late final __objc_msgSend_1049Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, - ffi.Int32)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1049 = __objc_msgSend_1049Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, int)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_isExternal1 = _registerName1("isExternal"); - late final _sel_notationName1 = _registerName1("notationName"); - late final _sel_setNotationName_1 = _registerName1("setNotationName:"); - late final _sel_localNameForName_1 = _registerName1("localNameForName:"); - late final _sel_prefixForName_1 = _registerName1("prefixForName:"); - late final _sel_predefinedNamespaceForPrefix_1 = - _registerName1("predefinedNamespaceForPrefix:"); - ffi.Pointer _objc_msgSend_1050( + late final _class_SentrySdkInfo1 = _getClass1("SentrySdkInfo"); + late final _sel_initWithId_sdkInfo_traceContext_1 = + _registerName1("initWithId:sdkInfo:traceContext:"); + instancetype _objc_msgSend_1050( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer name, + ffi.Pointer eventId, + ffi.Pointer sdkInfo, + ffi.Pointer traceContext, ) { return __objc_msgSend_1050( obj, sel, - name, + eventId, + sdkInfo, + traceContext, ); } late final __objc_msgSend_1050Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1050 = __objc_msgSend_1050Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>(); - late final _sel_entityDeclarationForName_1 = - _registerName1("entityDeclarationForName:"); + late final _sel_eventId1 = _registerName1("eventId"); + late final _sel_sdkInfo1 = _registerName1("sdkInfo"); ffi.Pointer _objc_msgSend_1051( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer name, ) { return __objc_msgSend_1051( obj, sel, - name, ); } late final __objc_msgSend_1051Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1051 = __objc_msgSend_1051Ptr.asFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_notationDeclarationForName_1 = - _registerName1("notationDeclarationForName:"); - late final _sel_elementDeclarationForName_1 = - _registerName1("elementDeclarationForName:"); - late final _sel_attributeDeclarationForName_elementName_1 = - _registerName1("attributeDeclarationForName:elementName:"); + late final _sel_traceContext1 = _registerName1("traceContext"); ffi.Pointer _objc_msgSend_1052( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer name, - ffi.Pointer elementName, ) { return __objc_msgSend_1052( obj, sel, - name, - elementName, ); } late final __objc_msgSend_1052Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1052 = __objc_msgSend_1052Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer, ffi.Pointer)>(); - late final _sel_predefinedEntityDeclarationForName_1 = - _registerName1("predefinedEntityDeclarationForName:"); - late final _sel_DTD1 = _registerName1("DTD"); - ffi.Pointer _objc_msgSend_1053( + 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_1053( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer header, + ffi.Pointer item, ) { return __objc_msgSend_1053( obj, sel, + header, + item, ); } late final __objc_msgSend_1053Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1053 = __objc_msgSend_1053Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_setDTD_1 = _registerName1("setDTD:"); - void _objc_msgSend_1054( + late final _sel_initWithId_items_1 = _registerName1("initWithId:items:"); + instancetype _objc_msgSend_1054( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer value, + ffi.Pointer id, + ffi.Pointer items, ) { return __objc_msgSend_1054( obj, sel, - value, + id, + items, ); } late final __objc_msgSend_1054Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1054 = __objc_msgSend_1054Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_setRootElement_1 = _registerName1("setRootElement:"); - void _objc_msgSend_1055( + late final _sel_initWithSessions_1 = _registerName1("initWithSessions:"); + late final _sel_initWithHeader_items_1 = + _registerName1("initWithHeader:items:"); + instancetype _objc_msgSend_1055( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer root, + ffi.Pointer header, + ffi.Pointer items, ) { return __objc_msgSend_1055( obj, sel, - root, + header, + items, ); } late final __objc_msgSend_1055Ptr = _lookup< ffi.NativeFunction< - ffi.Void Function(ffi.Pointer, ffi.Pointer, + instancetype Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1055 = __objc_msgSend_1055Ptr.asFunction< - void Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); + instancetype Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_rootElement1 = _registerName1("rootElement"); ffi.Pointer _objc_msgSend_1056( ffi.Pointer obj, ffi.Pointer sel, @@ -29905,354 +29898,286 @@ class SentryCocoa { ffi.Pointer Function( ffi.Pointer, ffi.Pointer)>(); - late final _sel_XMLData1 = _registerName1("XMLData"); - late final _sel_XMLDataWithOptions_1 = _registerName1("XMLDataWithOptions:"); - ffi.Pointer _objc_msgSend_1057( + late final _sel_items1 = _registerName1("items"); + late final _sel_storeEnvelope_1 = _registerName1("storeEnvelope:"); + void _objc_msgSend_1057( ffi.Pointer obj, ffi.Pointer sel, - int options, + ffi.Pointer envelope, ) { return __objc_msgSend_1057( obj, sel, - options, + envelope, ); } late final __objc_msgSend_1057Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1057 = __objc_msgSend_1057Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_objectByApplyingXSLT_arguments_error_1 = - _registerName1("objectByApplyingXSLT:arguments:error:"); + late final _sel_captureEnvelope_1 = _registerName1("captureEnvelope:"); + late final _sel_envelopeWithData_1 = _registerName1("envelopeWithData:"); ffi.Pointer _objc_msgSend_1058( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer xslt, - ffi.Pointer arguments, - ffi.Pointer> error, + ffi.Pointer data, ) { return __objc_msgSend_1058( obj, sel, - xslt, - arguments, - error, + data, ); } late final __objc_msgSend_1058Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1058 = __objc_msgSend_1058Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_objectByApplyingXSLTString_arguments_error_1 = - _registerName1("objectByApplyingXSLTString:arguments:error:"); + late final _sel_getDebugImages1 = _registerName1("getDebugImages"); + late final _sel_getDebugImagesCrashed_1 = + _registerName1("getDebugImagesCrashed:"); ffi.Pointer _objc_msgSend_1059( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer xslt, - ffi.Pointer arguments, - ffi.Pointer> error, + bool isCrash, ) { return __objc_msgSend_1059( obj, sel, - xslt, - arguments, - error, + isCrash, ); } late final __objc_msgSend_1059Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Bool)>>('objc_msgSend'); late final __objc_msgSend_1059 = __objc_msgSend_1059Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer, ffi.Pointer, bool)>(); - late final _sel_objectByApplyingXSLTAtURL_arguments_error_1 = - _registerName1("objectByApplyingXSLTAtURL:arguments:error:"); - ffi.Pointer _objc_msgSend_1060( + 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_getExtraContext1 = _registerName1("getExtraContext"); + late final _sel_startProfilerForTrace_1 = + _registerName1("startProfilerForTrace:"); + int _objc_msgSend_1060( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer xsltURL, - ffi.Pointer argument, - ffi.Pointer> error, + ffi.Pointer traceId, ) { return __objc_msgSend_1060( obj, sel, - xsltURL, - argument, - error, + traceId, ); } late final __objc_msgSend_1060Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Uint64 Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1060 = __objc_msgSend_1060Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + int Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>(); - late final _sel_validateAndReturnError_1 = - _registerName1("validateAndReturnError:"); - late final _sel_rootDocument1 = _registerName1("rootDocument"); + late final _sel_collectProfileBetween_and_forTrace_1 = + _registerName1("collectProfileBetween:and:forTrace:"); ffi.Pointer _objc_msgSend_1061( ffi.Pointer obj, ffi.Pointer sel, + int startSystemTime, + int endSystemTime, + ffi.Pointer traceId, ) { return __objc_msgSend_1061( obj, sel, + startSystemTime, + endSystemTime, + traceId, ); } late final __objc_msgSend_1061Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer, + ffi.Pointer, + ffi.Uint64, + ffi.Uint64, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1061 = __objc_msgSend_1061Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, int, int, ffi.Pointer)>(); - late final _sel_parent1 = _registerName1("parent"); - ffi.Pointer _objc_msgSend_1062( + late final _sel_discardProfilerForTrace_1 = + _registerName1("discardProfilerForTrace:"); + void _objc_msgSend_1062( ffi.Pointer obj, ffi.Pointer sel, + ffi.Pointer traceId, ) { return __objc_msgSend_1062( obj, sel, + traceId, ); } late final __objc_msgSend_1062Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1062 = __objc_msgSend_1062Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer)>(); + void Function(ffi.Pointer, 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_1063( + late final _class_SentryAppStartMeasurement1 = + _getClass1("SentryAppStartMeasurement"); + late final _sel_onAppStartMeasurementAvailable1 = + _registerName1("onAppStartMeasurementAvailable"); + ffi.Pointer<_ObjCBlock> _objc_msgSend_1063( ffi.Pointer obj, ffi.Pointer sel, - int index, ) { return __objc_msgSend_1063( obj, sel, - index, ); } late final __objc_msgSend_1063Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.UnsignedLong)>>('objc_msgSend'); + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1063 = __objc_msgSend_1063Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer, ffi.Pointer)>(); - late final _sel_previousSibling1 = _registerName1("previousSibling"); - late final _sel_nextSibling1 = _registerName1("nextSibling"); - late final _sel_previousNode1 = _registerName1("previousNode"); - late final _sel_nextNode1 = _registerName1("nextNode"); - late final _sel_detach1 = _registerName1("detach"); - late final _sel_XPath1 = _registerName1("XPath"); - late final _sel_localName1 = _registerName1("localName"); - late final _sel_prefix1 = _registerName1("prefix"); - late final _sel_URI1 = _registerName1("URI"); - late final _sel_setURI_1 = _registerName1("setURI:"); - late final _sel_XMLString1 = _registerName1("XMLString"); - late final _sel_XMLStringWithOptions_1 = - _registerName1("XMLStringWithOptions:"); - ffi.Pointer _objc_msgSend_1064( + late final _sel_setOnAppStartMeasurementAvailable_1 = + _registerName1("setOnAppStartMeasurementAvailable:"); + void _objc_msgSend_1064( ffi.Pointer obj, ffi.Pointer sel, - int options, + ffi.Pointer<_ObjCBlock> value, ) { return __objc_msgSend_1064( obj, sel, - options, + value, ); } late final __objc_msgSend_1064Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Int32)>>('objc_msgSend'); + ffi.Void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>>('objc_msgSend'); late final __objc_msgSend_1064 = __objc_msgSend_1064Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, int)>(); + void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer<_ObjCBlock>)>(); - late final _sel_canonicalXMLStringPreservingComments_1 = - _registerName1("canonicalXMLStringPreservingComments:"); + late final _sel_appStartMeasurement1 = _registerName1("appStartMeasurement"); ffi.Pointer _objc_msgSend_1065( ffi.Pointer obj, ffi.Pointer sel, - bool comments, ) { return __objc_msgSend_1065( obj, sel, - comments, ); } late final __objc_msgSend_1065Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer, - ffi.Pointer, ffi.Bool)>>('objc_msgSend'); + ffi.Pointer Function( + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1065 = __objc_msgSend_1065Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, ffi.Pointer, bool)>(); + ffi.Pointer, ffi.Pointer)>(); - late final _sel_nodesForXPath_error_1 = - _registerName1("nodesForXPath:error:"); - late final _sel_objectsForXQuery_constants_error_1 = - _registerName1("objectsForXQuery:constants:error:"); + late final _sel_installationID1 = _registerName1("installationID"); + late final _class_SentryOptions1 = _getClass1("SentryOptions"); ffi.Pointer _objc_msgSend_1066( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer xquery, - ffi.Pointer constants, - ffi.Pointer> error, ) { return __objc_msgSend_1066( obj, sel, - xquery, - constants, - error, ); } late final __objc_msgSend_1066Ptr = _lookup< ffi.NativeFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>>('objc_msgSend'); + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1066 = __objc_msgSend_1066Ptr.asFunction< ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer>)>(); + ffi.Pointer, ffi.Pointer)>(); - late final _sel_objectsForXQuery_error_1 = - _registerName1("objectsForXQuery:error:"); - late final _sel_initWithName_URI_1 = _registerName1("initWithName:URI:"); - late final _sel_initWithName_stringValue_1 = - _registerName1("initWithName:stringValue:"); - late final _sel_initWithXMLString_error_1 = - _registerName1("initWithXMLString:error:"); - late final _sel_elementsForName_1 = _registerName1("elementsForName:"); - late final _sel_elementsForLocalName_URI_1 = - _registerName1("elementsForLocalName:URI:"); - late final _sel_addAttribute_1 = _registerName1("addAttribute:"); - late final _sel_removeAttributeForName_1 = - _registerName1("removeAttributeForName:"); - late final _sel_attributes1 = _registerName1("attributes"); - late final _sel_setAttributes_1 = _registerName1("setAttributes:"); - late final _sel_setAttributesWithDictionary_1 = - _registerName1("setAttributesWithDictionary:"); - late final _sel_attributeForName_1 = _registerName1("attributeForName:"); - late final _sel_attributeForLocalName_URI_1 = - _registerName1("attributeForLocalName:URI:"); + late final _sel_appStartMeasurementHybridSDKMode1 = + _registerName1("appStartMeasurementHybridSDKMode"); + late final _sel_setAppStartMeasurementHybridSDKMode_1 = + _registerName1("setAppStartMeasurementHybridSDKMode:"); + late final _class_SentryUser1 = _getClass1("SentryUser"); + late final _sel_userWithDictionary_1 = _registerName1("userWithDictionary:"); ffi.Pointer _objc_msgSend_1067( ffi.Pointer obj, ffi.Pointer sel, - ffi.Pointer localName, - ffi.Pointer URI, + ffi.Pointer dictionary, ) { return __objc_msgSend_1067( obj, sel, - localName, - URI, + dictionary, ); } late final __objc_msgSend_1067Ptr = _lookup< ffi.NativeFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>('objc_msgSend'); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); late final __objc_msgSend_1067 = __objc_msgSend_1067Ptr.asFunction< - ffi.Pointer Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - late final _sel_addNamespace_1 = _registerName1("addNamespace:"); - late final _sel_removeNamespaceForPrefix_1 = - _registerName1("removeNamespaceForPrefix:"); - late final _sel_namespaces1 = _registerName1("namespaces"); - late final _sel_setNamespaces_1 = _registerName1("setNamespaces:"); - late final _sel_namespaceForPrefix_1 = _registerName1("namespaceForPrefix:"); - late final _sel_resolveNamespaceForName_1 = - _registerName1("resolveNamespaceForName:"); - late final _sel_resolvePrefixForNamespaceURI_1 = - _registerName1("resolvePrefixForNamespaceURI:"); - late final _sel_normalizeAdjacentTextNodesPreservingCDATA_1 = - _registerName1("normalizeAdjacentTextNodesPreservingCDATA:"); - late final _sel_setAttributesAsDictionary_1 = - _registerName1("setAttributesAsDictionary:"); + late final _class_SentryBreadcrumb1 = _getClass1("SentryBreadcrumb"); + late final _sel_breadcrumbWithDictionary_1 = + _registerName1("breadcrumbWithDictionary:"); + ffi.Pointer _objc_msgSend_1068( + ffi.Pointer obj, + ffi.Pointer sel, + ffi.Pointer dictionary, + ) { + return __objc_msgSend_1068( + obj, + sel, + dictionary, + ); + } + + late final __objc_msgSend_1068Ptr = _lookup< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>('objc_msgSend'); + late final __objc_msgSend_1068 = __objc_msgSend_1068Ptr.asFunction< + ffi.Pointer Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); } -/// @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 _ObjCWrapper implements ffi.Finalizable { final ffi.Pointer _id; final SentryCocoa _lib; @@ -30294,669 +30219,222 @@ class _ObjCWrapper implements ffi.Finalizable { ffi.Pointer get pointer => _id; } -class PrivateSentrySDKOnly extends _ObjCWrapper { - PrivateSentrySDKOnly._(ffi.Pointer id, SentryCocoa lib, +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 [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 [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); } - /// Returns a [PrivateSentrySDKOnly] that wraps the given raw object pointer. - static PrivateSentrySDKOnly castFromPointer( + /// 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 PrivateSentrySDKOnly._(other, lib, retain: retain, release: release); + return NSObject._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [PrivateSentrySDKOnly]. + /// 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_PrivateSentrySDKOnly1); - } - - /// For storing an envelope synchronously to disk. - static void storeEnvelope_(SentryCocoa _lib, SentryEnvelope? envelope) { - _lib._objc_msgSend_632(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_storeEnvelope_1, envelope?._id ?? ffi.nullptr); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSObject1); } - static void captureEnvelope_(SentryCocoa _lib, SentryEnvelope? envelope) { - _lib._objc_msgSend_632(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_captureEnvelope_1, envelope?._id ?? ffi.nullptr); + static void load(SentryCocoa _lib) { + return _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_load1); } - /// Create an envelope from @c NSData. Needed for example by Flutter. - static SentryEnvelope envelopeWithData_(SentryCocoa _lib, NSObject data) { - final _ret = _lib._objc_msgSend_633(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_envelopeWithData_1, data._id); - return SentryEnvelope._(_ret, _lib, retain: true, release: true); + static void initialize(SentryCocoa _lib) { + return _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_initialize1); } - /// 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 NSObject getDebugImages(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_getDebugImages1); + NSObject init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); return NSObject._(_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 NSObject getDebugImagesCrashed_(SentryCocoa _lib, NSObject isCrash) { - final _ret = _lib._objc_msgSend_16(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_getDebugImagesCrashed_1, isCrash._id); - return NSObject._(_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); } - /// Override SDK information. - static void setSdkName_andVersionString_( - SentryCocoa _lib, NSObject sdkName, NSObject versionString) { - _lib._objc_msgSend_499( - _lib._class_PrivateSentrySDKOnly1, - _lib._sel_setSdkName_andVersionString_1, - sdkName._id, - versionString._id); + 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); } - /// Override SDK information. - static void setSdkName_(SentryCocoa _lib, NSObject sdkName) { - _lib._objc_msgSend_15( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_setSdkName_1, sdkName._id); + 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); } - /// Retrieves the SDK name - static NSObject getSdkName(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_getSdkName1); - return NSObject._(_ret, _lib, retain: true, release: true); + void dealloc() { + return _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); } - /// Retrieves the SDK version string - static NSObject getSdkVersionString(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_getSdkVersionString1); - return NSObject._(_ret, _lib, retain: true, release: true); + void finalize() { + return _lib._objc_msgSend_1(_id, _lib._sel_finalize1); } - /// Retrieves extra context - static NSObject getExtraContext(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_getExtraContext1); - 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); } - /// Start a profiler session associated with the given @c SentryId. - /// @return The system time when the profiler session started. - static NSObject startProfilerForTrace_(SentryCocoa _lib, SentryId? traceId) { - final _ret = _lib._objc_msgSend_622(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_startProfilerForTrace_1, traceId?._id ?? ffi.nullptr); - return NSObject._(_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); } - /// Collect a profiler session data associated with the given @c SentryId. - /// This also discards the profiler. - static NSObject collectProfileBetween_and_forTrace_(SentryCocoa _lib, - NSObject startSystemTime, NSObject endSystemTime, SentryId? traceId) { - final _ret = _lib._objc_msgSend_634( - _lib._class_PrivateSentrySDKOnly1, - _lib._sel_collectProfileBetween_and_forTrace_1, - startSystemTime._id, - endSystemTime._id, - traceId?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + 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); } - /// 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_635(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_discardProfilerForTrace_1, traceId?._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); } - static ObjCBlock_ffiInt_SentryAppStartMeasurement - getOnAppStartMeasurementAvailable(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_636(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_onAppStartMeasurementAvailable1); - return ObjCBlock_ffiInt_SentryAppStartMeasurement._(_ret, _lib); + static bool instancesRespondToSelector_( + SentryCocoa _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_4(_lib._class_NSObject1, + _lib._sel_instancesRespondToSelector_1, aSelector); } - static void setOnAppStartMeasurementAvailable( - SentryCocoa _lib, ObjCBlock_ffiInt_SentryAppStartMeasurement value) { - return _lib._objc_msgSend_637(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_setOnAppStartMeasurementAvailable_1, value._id); + static bool conformsToProtocol_(SentryCocoa _lib, Protocol? protocol) { + return _lib._objc_msgSend_5(_lib._class_NSObject1, + _lib._sel_conformsToProtocol_1, protocol?._id ?? ffi.nullptr); } - static SentryAppStartMeasurement? getAppStartMeasurement(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_638( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_appStartMeasurement1); - return _ret.address == 0 - ? null - : SentryAppStartMeasurement._(_ret, _lib, retain: true, release: true); + ffi.Pointer> methodForSelector_( + ffi.Pointer aSelector) { + return _lib._objc_msgSend_6(_id, _lib._sel_methodForSelector_1, aSelector); } - static ffi.Pointer getInstallationID(SentryCocoa _lib) { - return _lib._objc_msgSend_620( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_installationID1); + static ffi.Pointer> + instanceMethodForSelector_( + SentryCocoa _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_6(_lib._class_NSObject1, + _lib._sel_instanceMethodForSelector_1, aSelector); } - static SentryOptions? getOptions(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_639( - _lib._class_PrivateSentrySDKOnly1, _lib._sel_options1); - return _ret.address == 0 - ? null - : SentryOptions._(_ret, _lib, retain: true, release: true); + void doesNotRecognizeSelector_(ffi.Pointer aSelector) { + return _lib._objc_msgSend_7( + _id, _lib._sel_doesNotRecognizeSelector_1, aSelector); } - /// 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 int getAppStartMeasurementHybridSDKMode(SentryCocoa _lib) { - return _lib._objc_msgSend_219(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_appStartMeasurementHybridSDKMode1); + 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); } - /// 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, int value) { - return _lib._objc_msgSend_640(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_setAppStartMeasurementHybridSDKMode_1, value); + void forwardInvocation_(NSInvocation? anInvocation) { + return _lib._objc_msgSend_392( + _id, _lib._sel_forwardInvocation_1, anInvocation?._id ?? ffi.nullptr); } - static SentryUser userWithDictionary_(SentryCocoa _lib, NSObject dictionary) { - final _ret = _lib._objc_msgSend_641(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_userWithDictionary_1, dictionary._id); - return SentryUser._(_ret, _lib, retain: true, release: true); + NSMethodSignature methodSignatureForSelector_( + ffi.Pointer aSelector) { + final _ret = _lib._objc_msgSend_393( + _id, _lib._sel_methodSignatureForSelector_1, aSelector); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); } - static SentryBreadcrumb breadcrumbWithDictionary_( - SentryCocoa _lib, NSObject dictionary) { - final _ret = _lib._objc_msgSend_642(_lib._class_PrivateSentrySDKOnly1, - _lib._sel_breadcrumbWithDictionary_1, dictionary._id); - return SentryBreadcrumb._(_ret, _lib, retain: true, release: true); + static NSMethodSignature instanceMethodSignatureForSelector_( + SentryCocoa _lib, ffi.Pointer aSelector) { + final _ret = _lib._objc_msgSend_393(_lib._class_NSObject1, + _lib._sel_instanceMethodSignatureForSelector_1, aSelector); + return NSMethodSignature._(_ret, _lib, retain: true, release: true); } -} - -class ObjCSel extends ffi.Opaque {} - -class ObjCObject extends ffi.Opaque {} -class SentryEnvelope extends _ObjCWrapper { - SentryEnvelope._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + bool allowsWeakReference() { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsWeakReference1); + } - /// 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); + bool retainWeakReference() { + return _lib._objc_msgSend_12(_id, _lib._sel_retainWeakReference1); } - /// 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); + static bool isSubclassOfClass_(SentryCocoa _lib, NSObject aClass) { + return _lib._objc_msgSend_0( + _lib._class_NSObject1, _lib._sel_isSubclassOfClass_1, aClass._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); + static bool resolveClassMethod_(SentryCocoa _lib, ffi.Pointer sel) { + return _lib._objc_msgSend_4( + _lib._class_NSObject1, _lib._sel_resolveClassMethod_1, sel); } - SentryEnvelope initWithId_singleItem_( - SentryId? id, SentryEnvelopeItem? item) { - final _ret = _lib._objc_msgSend_621(_id, _lib._sel_initWithId_singleItem_1, - id?._id ?? ffi.nullptr, item?._id ?? ffi.nullptr); - return SentryEnvelope._(_ret, _lib, retain: true, release: true); + static bool resolveInstanceMethod_( + SentryCocoa _lib, ffi.Pointer sel) { + return _lib._objc_msgSend_4( + _lib._class_NSObject1, _lib._sel_resolveInstanceMethod_1, sel); } - SentryEnvelope initWithHeader_singleItem_( - SentryEnvelopeHeader? header, SentryEnvelopeItem? item) { - final _ret = _lib._objc_msgSend_628( - _id, - _lib._sel_initWithHeader_singleItem_1, - header?._id ?? ffi.nullptr, - item?._id ?? ffi.nullptr); - return SentryEnvelope._(_ret, _lib, retain: true, release: true); + static int hash(SentryCocoa _lib) { + return _lib._objc_msgSend_10(_lib._class_NSObject1, _lib._sel_hash1); } - SentryEnvelope initWithId_items_(SentryId? id, NSObject items) { - final _ret = _lib._objc_msgSend_629( - _id, _lib._sel_initWithId_items_1, id?._id ?? ffi.nullptr, items._id); - return SentryEnvelope._(_ret, _lib, retain: true, release: true); + 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); } - /// Initializes a @c SentryEnvelope with a single session. - /// @param session to init the envelope with. - SentryEnvelope initWithSession_(SentrySession? session) { - final _ret = _lib._objc_msgSend_615( - _id, _lib._sel_initWithSession_1, session?._id ?? ffi.nullptr); - return SentryEnvelope._(_ret, _lib, retain: true, release: true); + 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); } - /// Initializes a @c SentryEnvelope with a list of sessions. - /// Can be used when an operation that starts a session closes an ongoing session. - /// @param sessions to init the envelope with. - SentryEnvelope initWithSessions_(NSObject sessions) { + static NSString description(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_16(_id, _lib._sel_initWithSessions_1, sessions._id); - return SentryEnvelope._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_20(_lib._class_NSObject1, _lib._sel_description1); + return NSString._(_ret, _lib, retain: true, release: true); } - SentryEnvelope initWithHeader_items_( - SentryEnvelopeHeader? header, NSObject items) { - final _ret = _lib._objc_msgSend_630(_id, _lib._sel_initWithHeader_items_1, - header?._id ?? ffi.nullptr, items._id); - return SentryEnvelope._(_ret, _lib, retain: true, release: true); + 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); } - /// Convenience init for a single event. - SentryEnvelope initWithEvent_(SentryEvent? event) { - final _ret = _lib._objc_msgSend_614( - _id, _lib._sel_initWithEvent_1, event?._id ?? ffi.nullptr); - return SentryEnvelope._(_ret, _lib, retain: true, release: true); + static int version(SentryCocoa _lib) { + return _lib._objc_msgSend_78(_lib._class_NSObject1, _lib._sel_version1); } - SentryEnvelope initWithUserFeedback_(SentryUserFeedback? userFeedback) { - final _ret = _lib._objc_msgSend_616(_id, _lib._sel_initWithUserFeedback_1, - userFeedback?._id ?? ffi.nullptr); - return SentryEnvelope._(_ret, _lib, retain: true, release: true); + static void setVersion_(SentryCocoa _lib, int aVersion) { + return _lib._objc_msgSend_394( + _lib._class_NSObject1, _lib._sel_setVersion_1, aVersion); } - /// The envelope header. - SentryEnvelopeHeader? get header { - final _ret = _lib._objc_msgSend_631(_id, _lib._sel_header1); - return _ret.address == 0 - ? null - : SentryEnvelopeHeader._(_ret, _lib, retain: true, release: true); + NSObject get classForCoder { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForCoder1); + return NSObject._(_ret, _lib, retain: true, release: true); } -} -typedef instancetype = ffi.Pointer; - -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); + 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); } - /// 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); + 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); } - /// 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); - } - - /// Creates a @c SentryId with a random UUID. - @override - SentryId init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return SentryId._(_ret, _lib, retain: true, release: true); - } - - /// Creates a SentryId with the given UUID. - SentryId initWithUUID_(NSUUID? uuid) { - final _ret = _lib._objc_msgSend_612( - _id, _lib._sel_initWithUUID_1, uuid?._id ?? ffi.nullptr); - return SentryId._(_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? string) { - final _ret = _lib._objc_msgSend_30( - _id, _lib._sel_initWithUUIDString_1, string?._id ?? ffi.nullptr); - return SentryId._(_ret, _lib, retain: true, release: true); - } - - /// 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); - } - - /// A @c SentryId with an empty UUID "00000000000000000000000000000000". - static SentryId? getEmpty(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_613(_lib._class_SentryId1, _lib._sel_empty1); - return _ret.address == 0 - ? null - : SentryId._(_ret, _lib, retain: true, 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_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_SentryId1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _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_SentryId1, _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_SentryId1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_SentryId1, - _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_SentryId1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _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_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_SentryId1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); - } -} - -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); - } - - /// 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); - } - - /// 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); - } - - static void load(SentryCocoa _lib) { - _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_load1); - } - - static void initialize(SentryCocoa _lib) { - _lib._objc_msgSend_1(_lib._class_NSObject1, _lib._sel_initialize1); - } - - NSObject init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSObject._(_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); - } - - 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); - } - - 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); - } - - void dealloc() { - _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); - } - - void finalize() { - _lib._objc_msgSend_1(_id, _lib._sel_finalize1); - } - - NSObject copy() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_copy1); - return NSObject._(_ret, _lib, retain: false, release: true); - } - - NSObject mutableCopy() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_mutableCopy1); - return NSObject._(_ret, _lib, retain: false, release: true); - } - - 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); - } - - 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); - } - - static bool instancesRespondToSelector_( - SentryCocoa _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_4(_lib._class_NSObject1, - _lib._sel_instancesRespondToSelector_1, aSelector); - } - - static bool conformsToProtocol_(SentryCocoa _lib, Protocol? protocol) { - return _lib._objc_msgSend_5(_lib._class_NSObject1, - _lib._sel_conformsToProtocol_1, protocol?._id ?? ffi.nullptr); - } - - ffi.Pointer> methodForSelector_( - ffi.Pointer aSelector) { - return _lib._objc_msgSend_6(_id, _lib._sel_methodForSelector_1, aSelector); - } - - static ffi.Pointer> - instanceMethodForSelector_( - SentryCocoa _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_6(_lib._class_NSObject1, - _lib._sel_instanceMethodForSelector_1, aSelector); - } - - void doesNotRecognizeSelector_(ffi.Pointer aSelector) { - _lib._objc_msgSend_7(_id, _lib._sel_doesNotRecognizeSelector_1, aSelector); - } - - 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 forwardInvocation_(NSInvocation? anInvocation) { - _lib._objc_msgSend_392( - _id, _lib._sel_forwardInvocation_1, anInvocation?._id ?? ffi.nullptr); - } - - NSMethodSignature methodSignatureForSelector_( - ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_393( - _id, _lib._sel_methodSignatureForSelector_1, aSelector); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); - } - - static NSMethodSignature instanceMethodSignatureForSelector_( - SentryCocoa _lib, ffi.Pointer aSelector) { - final _ret = _lib._objc_msgSend_393(_lib._class_NSObject1, - _lib._sel_instanceMethodSignatureForSelector_1, aSelector); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); - } - - bool allowsWeakReference() { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsWeakReference1); - } - - bool retainWeakReference() { - return _lib._objc_msgSend_12(_id, _lib._sel_retainWeakReference1); - } - - static bool isSubclassOfClass_(SentryCocoa _lib, NSObject aClass) { - return _lib._objc_msgSend_0( - _lib._class_NSObject1, _lib._sel_isSubclassOfClass_1, aClass._id); - } - - static bool resolveClassMethod_(SentryCocoa _lib, ffi.Pointer sel) { - return _lib._objc_msgSend_4( - _lib._class_NSObject1, _lib._sel_resolveClassMethod_1, sel); - } - - static bool resolveInstanceMethod_( - SentryCocoa _lib, ffi.Pointer sel) { - return _lib._objc_msgSend_4( - _lib._class_NSObject1, _lib._sel_resolveInstanceMethod_1, sel); - } - - static int hash(SentryCocoa _lib) { - return _lib._objc_msgSend_10(_lib._class_NSObject1, _lib._sel_hash1); - } - - 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); - } - - 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); - } - - 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); - } - - 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); - } - - static int version(SentryCocoa _lib) { - return _lib._objc_msgSend_78(_lib._class_NSObject1, _lib._sel_version1); - } - - static void setVersion_(SentryCocoa _lib, int aVersion) { - _lib._objc_msgSend_394( - _lib._class_NSObject1, _lib._sel_setVersion_1, aVersion); - } - - NSObject get classForCoder { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_classForCoder1); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - 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); - } - - 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); - } - - static void poseAsClass_(SentryCocoa _lib, NSObject aClass) { - _lib._objc_msgSend_15( - _lib._class_NSObject1, _lib._sel_poseAsClass_1, aClass._id); + static void poseAsClass_(SentryCocoa _lib, NSObject aClass) { + return _lib._objc_msgSend_15( + _lib._class_NSObject1, _lib._sel_poseAsClass_1, aClass._id); } NSObject get autoContentAccessingProxy { @@ -30972,7 +30450,7 @@ class NSObject extends _ObjCWrapper { NSObject delegate, ffi.Pointer didRecoverSelector, ffi.Pointer contextInfo) { - _lib._objc_msgSend_395( + return _lib._objc_msgSend_395( _id, _lib._sel_attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo_1, error?._id ?? ffi.nullptr, @@ -30996,7 +30474,7 @@ class NSObject extends _ObjCWrapper { NSObject anArgument, double delay, NSArray? modes) { - _lib._objc_msgSend_397( + return _lib._objc_msgSend_397( _id, _lib._sel_performSelector_withObject_afterDelay_inModes_1, aSelector, @@ -31007,7 +30485,7 @@ class NSObject extends _ObjCWrapper { void performSelector_withObject_afterDelay_( ffi.Pointer aSelector, NSObject anArgument, double delay) { - _lib._objc_msgSend_398( + return _lib._objc_msgSend_398( _id, _lib._sel_performSelector_withObject_afterDelay_1, aSelector, @@ -31020,7 +30498,7 @@ class NSObject extends _ObjCWrapper { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSObject1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -31030,27 +30508,30 @@ class NSObject extends _ObjCWrapper { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSObject1, + return _lib._objc_msgSend_15(_lib._class_NSObject1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } void URL_resourceDataDidBecomeAvailable_(NSURL? sender, NSData? newBytes) { - _lib._objc_msgSend_399(_id, _lib._sel_URL_resourceDataDidBecomeAvailable_1, - sender?._id ?? ffi.nullptr, newBytes?._id ?? ffi.nullptr); + return _lib._objc_msgSend_399( + _id, + _lib._sel_URL_resourceDataDidBecomeAvailable_1, + sender?._id ?? ffi.nullptr, + newBytes?._id ?? ffi.nullptr); } void URLResourceDidFinishLoading_(NSURL? sender) { - _lib._objc_msgSend_400(_id, _lib._sel_URLResourceDidFinishLoading_1, + return _lib._objc_msgSend_400(_id, _lib._sel_URLResourceDidFinishLoading_1, sender?._id ?? ffi.nullptr); } void URLResourceDidCancelLoading_(NSURL? sender) { - _lib._objc_msgSend_400(_id, _lib._sel_URLResourceDidCancelLoading_1, + return _lib._objc_msgSend_400(_id, _lib._sel_URLResourceDidCancelLoading_1, sender?._id ?? ffi.nullptr); } void URL_resourceDidFailLoadingWithReason_(NSURL? sender, NSString? reason) { - _lib._objc_msgSend_401( + return _lib._objc_msgSend_401( _id, _lib._sel_URL_resourceDidFailLoadingWithReason_1, sender?._id ?? ffi.nullptr, @@ -31067,7 +30548,7 @@ class NSObject extends _ObjCWrapper { } void fileManager_willProcessPath_(NSFileManager? fm, NSString? path) { - _lib._objc_msgSend_437(_id, _lib._sel_fileManager_willProcessPath_1, + return _lib._objc_msgSend_437(_id, _lib._sel_fileManager_willProcessPath_1, fm?._id ?? ffi.nullptr, path?._id ?? ffi.nullptr); } @@ -31083,7 +30564,7 @@ class NSObject extends _ObjCWrapper { } void setValue_forKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126( + return _lib._objc_msgSend_126( _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); } @@ -31118,8 +30599,8 @@ class NSObject extends _ObjCWrapper { } void setValue_forKeyPath_(NSObject value, NSString? keyPath) { - _lib._objc_msgSend_126(_id, _lib._sel_setValue_forKeyPath_1, value._id, - keyPath?._id ?? ffi.nullptr); + return _lib._objc_msgSend_126(_id, _lib._sel_setValue_forKeyPath_1, + value._id, keyPath?._id ?? ffi.nullptr); } bool validateValue_forKeyPath_error_( @@ -31161,12 +30642,12 @@ class NSObject extends _ObjCWrapper { } void setValue_forUndefinedKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_setValue_forUndefinedKey_1, value._id, - key?._id ?? ffi.nullptr); + return _lib._objc_msgSend_126(_id, _lib._sel_setValue_forUndefinedKey_1, + value._id, key?._id ?? ffi.nullptr); } void setNilValueForKey_(NSString? key) { - _lib._objc_msgSend_192( + return _lib._objc_msgSend_192( _id, _lib._sel_setNilValueForKey_1, key?._id ?? ffi.nullptr); } @@ -31177,7 +30658,9 @@ class NSObject extends _ObjCWrapper { } void setValuesForKeysWithDictionary_(NSDictionary? keyedValues) { - _lib._objc_msgSend_476(_id, _lib._sel_setValuesForKeysWithDictionary_1, + return _lib._objc_msgSend_476( + _id, + _lib._sel_setValuesForKeysWithDictionary_1, keyedValues?._id ?? ffi.nullptr); } @@ -31193,18 +30676,18 @@ class NSObject extends _ObjCWrapper { } void takeStoredValue_forKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_takeStoredValue_forKey_1, value._id, - key?._id ?? ffi.nullptr); + return _lib._objc_msgSend_126(_id, _lib._sel_takeStoredValue_forKey_1, + value._id, key?._id ?? ffi.nullptr); } void takeValue_forKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126( + return _lib._objc_msgSend_126( _id, _lib._sel_takeValue_forKey_1, value._id, key?._id ?? ffi.nullptr); } void takeValue_forKeyPath_(NSObject value, NSString? keyPath) { - _lib._objc_msgSend_126(_id, _lib._sel_takeValue_forKeyPath_1, value._id, - keyPath?._id ?? ffi.nullptr); + return _lib._objc_msgSend_126(_id, _lib._sel_takeValue_forKeyPath_1, + value._id, keyPath?._id ?? ffi.nullptr); } NSObject handleQueryWithUnboundKey_(NSString? key) { @@ -31214,12 +30697,15 @@ class NSObject extends _ObjCWrapper { } void handleTakeValue_forUnboundKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_handleTakeValue_forUnboundKey_1, - value._id, key?._id ?? ffi.nullptr); + return _lib._objc_msgSend_126( + _id, + _lib._sel_handleTakeValue_forUnboundKey_1, + value._id, + key?._id ?? ffi.nullptr); } void unableToSetNilForKey_(NSString? key) { - _lib._objc_msgSend_192( + return _lib._objc_msgSend_192( _id, _lib._sel_unableToSetNilForKey_1, key?._id ?? ffi.nullptr); } @@ -31230,13 +30716,13 @@ class NSObject extends _ObjCWrapper { } void takeValuesFromDictionary_(NSDictionary? properties) { - _lib._objc_msgSend_476(_id, _lib._sel_takeValuesFromDictionary_1, + return _lib._objc_msgSend_476(_id, _lib._sel_takeValuesFromDictionary_1, properties?._id ?? ffi.nullptr); } void observeValueForKeyPath_ofObject_change_context_(NSString? keyPath, NSObject object, NSDictionary? change, ffi.Pointer context) { - _lib._objc_msgSend_477( + return _lib._objc_msgSend_477( _id, _lib._sel_observeValueForKeyPath_ofObject_change_context_1, keyPath?._id ?? ffi.nullptr, @@ -31247,7 +30733,7 @@ class NSObject extends _ObjCWrapper { void addObserver_forKeyPath_options_context_(NSObject? observer, NSString? keyPath, int options, ffi.Pointer context) { - _lib._objc_msgSend_130( + return _lib._objc_msgSend_130( _id, _lib._sel_addObserver_forKeyPath_options_context_1, observer?._id ?? ffi.nullptr, @@ -31258,40 +30744,52 @@ class NSObject extends _ObjCWrapper { 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 _lib._objc_msgSend_131( + _id, + _lib._sel_removeObserver_forKeyPath_context_1, + observer?._id ?? ffi.nullptr, + keyPath?._id ?? ffi.nullptr, + context); } void removeObserver_forKeyPath_(NSObject? observer, NSString? keyPath) { - _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, + return _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); } void willChangeValueForKey_(NSString? key) { - _lib._objc_msgSend_192( + return _lib._objc_msgSend_192( _id, _lib._sel_willChangeValueForKey_1, key?._id ?? ffi.nullptr); } void didChangeValueForKey_(NSString? key) { - _lib._objc_msgSend_192( + return _lib._objc_msgSend_192( _id, _lib._sel_didChangeValueForKey_1, key?._id ?? ffi.nullptr); } void willChange_valuesAtIndexes_forKey_( int changeKind, NSIndexSet? indexes, NSString? key) { - _lib._objc_msgSend_478(_id, _lib._sel_willChange_valuesAtIndexes_forKey_1, - changeKind, indexes?._id ?? ffi.nullptr, key?._id ?? ffi.nullptr); + return _lib._objc_msgSend_478( + _id, + _lib._sel_willChange_valuesAtIndexes_forKey_1, + changeKind, + indexes?._id ?? ffi.nullptr, + key?._id ?? ffi.nullptr); } void didChange_valuesAtIndexes_forKey_( int changeKind, NSIndexSet? indexes, NSString? key) { - _lib._objc_msgSend_478(_id, _lib._sel_didChange_valuesAtIndexes_forKey_1, - changeKind, indexes?._id ?? ffi.nullptr, key?._id ?? ffi.nullptr); + return _lib._objc_msgSend_478( + _id, + _lib._sel_didChange_valuesAtIndexes_forKey_1, + changeKind, + indexes?._id ?? ffi.nullptr, + key?._id ?? ffi.nullptr); } void willChangeValueForKey_withSetMutation_usingObjects_( NSString? key, int mutationKind, NSSet? objects) { - _lib._objc_msgSend_479( + return _lib._objc_msgSend_479( _id, _lib._sel_willChangeValueForKey_withSetMutation_usingObjects_1, key?._id ?? ffi.nullptr, @@ -31301,7 +30799,7 @@ class NSObject extends _ObjCWrapper { void didChangeValueForKey_withSetMutation_usingObjects_( NSString? key, int mutationKind, NSSet? objects) { - _lib._objc_msgSend_479( + return _lib._objc_msgSend_479( _id, _lib._sel_didChangeValueForKey_withSetMutation_usingObjects_1, key?._id ?? ffi.nullptr, @@ -31331,12 +30829,12 @@ class NSObject extends _ObjCWrapper { } set observationInfo(ffi.Pointer value) { - return _lib._objc_msgSend_480(_id, _lib._sel_setObservationInfo_1, value); + _lib._objc_msgSend_480(_id, _lib._sel_setObservationInfo_1, value); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSObject1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -31370,7 +30868,7 @@ class NSObject extends _ObjCWrapper { void performSelectorOnMainThread_withObject_waitUntilDone_modes_( ffi.Pointer aSelector, NSObject arg, bool wait, NSArray? array) { - _lib._objc_msgSend_494( + return _lib._objc_msgSend_494( _id, _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_modes_1, aSelector, @@ -31381,7 +30879,7 @@ class NSObject extends _ObjCWrapper { void performSelectorOnMainThread_withObject_waitUntilDone_( ffi.Pointer aSelector, NSObject arg, bool wait) { - _lib._objc_msgSend_495( + return _lib._objc_msgSend_495( _id, _lib._sel_performSelectorOnMainThread_withObject_waitUntilDone_1, aSelector, @@ -31395,7 +30893,7 @@ class NSObject extends _ObjCWrapper { NSObject arg, bool wait, NSArray? array) { - _lib._objc_msgSend_512( + return _lib._objc_msgSend_512( _id, _lib._sel_performSelector_onThread_withObject_waitUntilDone_modes_1, aSelector, @@ -31407,7 +30905,7 @@ class NSObject extends _ObjCWrapper { void performSelector_onThread_withObject_waitUntilDone_( ffi.Pointer aSelector, NSThread? thr, NSObject arg, bool wait) { - _lib._objc_msgSend_513( + return _lib._objc_msgSend_513( _id, _lib._sel_performSelector_onThread_withObject_waitUntilDone_1, aSelector, @@ -31418,7 +30916,7 @@ class NSObject extends _ObjCWrapper { void performSelectorInBackground_withObject_( ffi.Pointer aSelector, NSObject arg) { - _lib._objc_msgSend_84(_id, + return _lib._objc_msgSend_84(_id, _lib._sel_performSelectorInBackground_withObject_1, aSelector, arg._id); } @@ -31497,7 +30995,7 @@ class NSObject extends _ObjCWrapper { } set scriptingProperties(NSDictionary? value) { - return _lib._objc_msgSend_171( + _lib._objc_msgSend_171( _id, _lib._sel_setScriptingProperties_1, value?._id ?? ffi.nullptr); } @@ -31569,7 +31067,7 @@ class NSObject extends _ObjCWrapper { void insertValue_atIndex_inPropertyWithKey_( NSObject value, int index, NSString? key) { - _lib._objc_msgSend_605( + return _lib._objc_msgSend_605( _id, _lib._sel_insertValue_atIndex_inPropertyWithKey_1, value._id, @@ -31578,7 +31076,7 @@ class NSObject extends _ObjCWrapper { } void removeValueAtIndex_fromPropertyWithKey_(int index, NSString? key) { - _lib._objc_msgSend_606( + return _lib._objc_msgSend_606( _id, _lib._sel_removeValueAtIndex_fromPropertyWithKey_1, index, @@ -31587,7 +31085,7 @@ class NSObject extends _ObjCWrapper { void replaceValueAtIndex_inPropertyWithKey_withValue_( int index, NSString? key, NSObject value) { - _lib._objc_msgSend_607( + return _lib._objc_msgSend_607( _id, _lib._sel_replaceValueAtIndex_inPropertyWithKey_withValue_1, index, @@ -31596,8 +31094,11 @@ class NSObject extends _ObjCWrapper { } void insertValue_inPropertyWithKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_insertValue_inPropertyWithKey_1, - value._id, key?._id ?? ffi.nullptr); + return _lib._objc_msgSend_126( + _id, + _lib._sel_insertValue_inPropertyWithKey_1, + value._id, + key?._id ?? ffi.nullptr); } NSObject coerceValue_forKey_(NSObject value, NSString? key) { @@ -31701,6 +31202,12 @@ class NSObject extends _ObjCWrapper { } } +class ObjCSel extends ffi.Opaque {} + +class ObjCObject extends ffi.Opaque {} + +typedef instancetype = ffi.Pointer; + class _NSZone extends ffi.Opaque {} class Protocol extends _ObjCWrapper { @@ -31765,7 +31272,7 @@ class NSInvocation extends NSObject { } void retainArguments() { - _lib._objc_msgSend_1(_id, _lib._sel_retainArguments1); + return _lib._objc_msgSend_1(_id, _lib._sel_retainArguments1); } bool get argumentsRetained { @@ -31778,7 +31285,7 @@ class NSInvocation extends NSObject { } set target(NSObject value) { - return _lib._objc_msgSend_387(_id, _lib._sel_setTarget_1, value._id); + _lib._objc_msgSend_387(_id, _lib._sel_setTarget_1, value._id); } ffi.Pointer get selector { @@ -31786,44 +31293,38 @@ class NSInvocation extends NSObject { } set selector(ffi.Pointer value) { - return _lib._objc_msgSend_389(_id, _lib._sel_setSelector_1, value); + _lib._objc_msgSend_389(_id, _lib._sel_setSelector_1, value); } void getReturnValue_(ffi.Pointer retLoc) { - _lib._objc_msgSend_47(_id, _lib._sel_getReturnValue_1, retLoc); + return _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); + return _lib._objc_msgSend_47(_id, _lib._sel_setReturnValue_1, retLoc); } void getArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { - _lib._objc_msgSend_390( + return _lib._objc_msgSend_390( _id, _lib._sel_getArgument_atIndex_1, argumentLocation, idx); } void setArgument_atIndex_(ffi.Pointer argumentLocation, int idx) { - _lib._objc_msgSend_390( + return _lib._objc_msgSend_390( _id, _lib._sel_setArgument_atIndex_1, argumentLocation, idx); } void invoke() { - _lib._objc_msgSend_1(_id, _lib._sel_invoke1); + return _lib._objc_msgSend_1(_id, _lib._sel_invoke1); } void invokeWithTarget_(NSObject target) { - _lib._objc_msgSend_15(_id, _lib._sel_invokeWithTarget_1, target._id); + return _lib._objc_msgSend_15(_id, _lib._sel_invokeWithTarget_1, target._id); } void invokeUsingIMP_( ffi.Pointer> imp) { - _lib._objc_msgSend_391(_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); + return _lib._objc_msgSend_391(_id, _lib._sel_invokeUsingIMP_1, imp); } static NSInvocation new1(SentryCocoa _lib) { @@ -31832,13 +31333,6 @@ class NSInvocation extends NSObject { 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_NSInvocation1, _lib._sel_allocWithZone_1, zone); - return NSInvocation._(_ret, _lib, retain: false, release: true); - } - static NSInvocation alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSInvocation1, _lib._sel_alloc1); @@ -31850,7 +31344,7 @@ class NSInvocation extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSInvocation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -31860,7 +31354,7 @@ class NSInvocation extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSInvocation1, + return _lib._objc_msgSend_15(_lib._class_NSInvocation1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -31893,7 +31387,7 @@ class NSInvocation extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSInvocation1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -31968,25 +31462,12 @@ class NSMethodSignature extends NSObject { return _lib._objc_msgSend_10(_id, _lib._sel_methodReturnLength1); } - @override - NSMethodSignature init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMethodSignature._(_ret, _lib, retain: true, release: true); - } - 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); } - 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); - } - static NSMethodSignature alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMethodSignature1, _lib._sel_alloc1); @@ -31998,7 +31479,7 @@ class NSMethodSignature extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSMethodSignature1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -32008,7 +31489,7 @@ class NSMethodSignature extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMethodSignature1, + return _lib._objc_msgSend_15(_lib._class_NSMethodSignature1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -32041,7 +31522,7 @@ class NSMethodSignature extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSMethodSignature1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -32161,13 +31642,13 @@ class NSSet extends NSObject { } void makeObjectsPerformSelector_(ffi.Pointer aSelector) { - _lib._objc_msgSend_7( + return _lib._objc_msgSend_7( _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); } void makeObjectsPerformSelector_withObject_( ffi.Pointer aSelector, NSObject argument) { - _lib._objc_msgSend_84( + return _lib._objc_msgSend_84( _id, _lib._sel_makeObjectsPerformSelector_withObject_1, aSelector, @@ -32192,25 +31673,23 @@ class NSSet extends NSObject { return NSSet._(_ret, _lib, retain: true, release: true); } - void enumerateObjectsUsingBlock_(ObjCBlock_ffiVoid_ObjCObject_bool block) { - _lib._objc_msgSend_378( + void enumerateObjectsUsingBlock_(ObjCBlock16 block) { + return _lib._objc_msgSend_378( _id, _lib._sel_enumerateObjectsUsingBlock_1, block._id); } - void enumerateObjectsWithOptions_usingBlock_( - int opts, ObjCBlock_ffiVoid_ObjCObject_bool block) { - _lib._objc_msgSend_379(_id, + void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock16 block) { + return _lib._objc_msgSend_379(_id, _lib._sel_enumerateObjectsWithOptions_usingBlock_1, opts, block._id); } - NSSet objectsPassingTest_(ObjCBlock_bool_ObjCObject_bool predicate) { + NSSet objectsPassingTest_(ObjCBlock17 predicate) { final _ret = _lib._objc_msgSend_380( _id, _lib._sel_objectsPassingTest_1, predicate._id); return NSSet._(_ret, _lib, retain: true, release: true); } - NSSet objectsWithOptions_passingTest_( - int opts, ObjCBlock_bool_ObjCObject_bool predicate) { + NSSet objectsWithOptions_passingTest_(int opts, ObjCBlock17 predicate) { final _ret = _lib._objc_msgSend_381( _id, _lib._sel_objectsWithOptions_passingTest_1, opts, predicate._id); return NSSet._(_ret, _lib, retain: true, release: true); @@ -32285,14 +31764,14 @@ class NSSet extends NSObject { @override void setValue_forKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126( + return _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( + return _lib._objc_msgSend_130( _id, _lib._sel_addObserver_forKeyPath_options_context_1, observer?._id ?? ffi.nullptr, @@ -32304,13 +31783,17 @@ class NSSet extends NSObject { @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 _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, + return _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); } @@ -32333,12 +31816,6 @@ class NSSet extends NSObject { 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); @@ -32349,7 +31826,7 @@ class NSSet extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -32359,7 +31836,7 @@ class NSSet extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSSet1, + return _lib._objc_msgSend_15(_lib._class_NSSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -32392,7 +31869,7 @@ class NSSet extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -32447,25 +31924,12 @@ class NSEnumerator extends NSObject { : 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); @@ -32477,7 +31941,7 @@ class NSEnumerator extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSEnumerator1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -32487,7 +31951,7 @@ class NSEnumerator extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSEnumerator1, + return _lib._objc_msgSend_15(_lib._class_NSEnumerator1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -32520,7 +31984,7 @@ class NSEnumerator extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSEnumerator1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -32616,7 +32080,8 @@ class NSString extends NSObject { void getCharacters_range_( ffi.Pointer buffer, _NSRange range) { - _lib._objc_msgSend_310(_id, _lib._sel_getCharacters_range_1, buffer, range); + return _lib._objc_msgSend_310( + _id, _lib._sel_getCharacters_range_1, buffer, range); } int compare_(NSString? string) { @@ -32704,37 +32169,30 @@ class NSString extends NSObject { _lib._sel_localizedStandardContainsString_1, str?._id ?? ffi.nullptr); } - void localizedStandardRangeOfString_( - ffi.Pointer<_NSRange> stret, NSString? str) { - _lib._objc_msgSend_316(stret, _id, + _NSRange localizedStandardRangeOfString_(NSString? str) { + return _lib._objc_msgSend_316(_id, _lib._sel_localizedStandardRangeOfString_1, str?._id ?? ffi.nullptr); } - void rangeOfString_(ffi.Pointer<_NSRange> stret, NSString? searchString) { - _lib._objc_msgSend_316(stret, _id, _lib._sel_rangeOfString_1, - searchString?._id ?? ffi.nullptr); + _NSRange rangeOfString_(NSString? searchString) { + return _lib._objc_msgSend_316( + _id, _lib._sel_rangeOfString_1, searchString?._id ?? ffi.nullptr); } - void rangeOfString_options_( - ffi.Pointer<_NSRange> stret, NSString? searchString, int mask) { - _lib._objc_msgSend_317(stret, _id, _lib._sel_rangeOfString_options_1, + _NSRange rangeOfString_options_(NSString? searchString, int mask) { + return _lib._objc_msgSend_317(_id, _lib._sel_rangeOfString_options_1, searchString?._id ?? ffi.nullptr, mask); } - void rangeOfString_options_range_(ffi.Pointer<_NSRange> stret, + _NSRange rangeOfString_options_range_( NSString? searchString, int mask, _NSRange rangeOfReceiverToSearch) { - _lib._objc_msgSend_318(stret, _id, _lib._sel_rangeOfString_options_range_1, + return _lib._objc_msgSend_318(_id, _lib._sel_rangeOfString_options_range_1, searchString?._id ?? ffi.nullptr, mask, rangeOfReceiverToSearch); } - void rangeOfString_options_range_locale_( - ffi.Pointer<_NSRange> stret, - NSString? searchString, - int mask, - _NSRange rangeOfReceiverToSearch, - NSLocale? locale) { - _lib._objc_msgSend_319( - stret, + _NSRange rangeOfString_options_range_locale_(NSString? searchString, int mask, + _NSRange rangeOfReceiverToSearch, NSLocale? locale) { + return _lib._objc_msgSend_319( _id, _lib._sel_rangeOfString_options_range_locale_1, searchString?._id ?? ffi.nullptr, @@ -32743,26 +32201,23 @@ class NSString extends NSObject { locale?._id ?? ffi.nullptr); } - void rangeOfCharacterFromSet_( - ffi.Pointer<_NSRange> stret, NSCharacterSet? searchSet) { - _lib._objc_msgSend_320(stret, _id, _lib._sel_rangeOfCharacterFromSet_1, + _NSRange rangeOfCharacterFromSet_(NSCharacterSet? searchSet) { + return _lib._objc_msgSend_320(_id, _lib._sel_rangeOfCharacterFromSet_1, searchSet?._id ?? ffi.nullptr); } - void rangeOfCharacterFromSet_options_( - ffi.Pointer<_NSRange> stret, NSCharacterSet? searchSet, int mask) { - _lib._objc_msgSend_321( - stret, + _NSRange rangeOfCharacterFromSet_options_( + NSCharacterSet? searchSet, int mask) { + return _lib._objc_msgSend_321( _id, _lib._sel_rangeOfCharacterFromSet_options_1, searchSet?._id ?? ffi.nullptr, mask); } - void rangeOfCharacterFromSet_options_range_(ffi.Pointer<_NSRange> stret, + _NSRange rangeOfCharacterFromSet_options_range_( NSCharacterSet? searchSet, int mask, _NSRange rangeOfReceiverToSearch) { - _lib._objc_msgSend_322( - stret, + return _lib._objc_msgSend_322( _id, _lib._sel_rangeOfCharacterFromSet_options_range_1, searchSet?._id ?? ffi.nullptr, @@ -32770,16 +32225,14 @@ class NSString extends NSObject { rangeOfReceiverToSearch); } - void rangeOfComposedCharacterSequenceAtIndex_( - ffi.Pointer<_NSRange> stret, int index) { - _lib._objc_msgSend_323( - stret, _id, _lib._sel_rangeOfComposedCharacterSequenceAtIndex_1, index); + _NSRange rangeOfComposedCharacterSequenceAtIndex_(int index) { + return _lib._objc_msgSend_323( + _id, _lib._sel_rangeOfComposedCharacterSequenceAtIndex_1, index); } - void rangeOfComposedCharacterSequencesForRange_( - ffi.Pointer<_NSRange> stret, _NSRange range) { - _lib._objc_msgSend_324(stret, _id, - _lib._sel_rangeOfComposedCharacterSequencesForRange_1, range); + _NSRange rangeOfComposedCharacterSequencesForRange_(_NSRange range) { + return _lib._objc_msgSend_324( + _id, _lib._sel_rangeOfComposedCharacterSequencesForRange_1, range); } NSString stringByAppendingString_(NSString? aString) { @@ -32886,7 +32339,7 @@ class NSString extends NSObject { ffi.Pointer lineEndPtr, ffi.Pointer contentsEndPtr, _NSRange range) { - _lib._objc_msgSend_326( + return _lib._objc_msgSend_326( _id, _lib._sel_getLineStart_end_contentsEnd_forRange_1, startPtr, @@ -32895,8 +32348,8 @@ class NSString extends NSObject { range); } - void lineRangeForRange_(ffi.Pointer<_NSRange> stret, _NSRange range) { - _lib._objc_msgSend_324(stret, _id, _lib._sel_lineRangeForRange_1, range); + _NSRange lineRangeForRange_(_NSRange range) { + return _lib._objc_msgSend_324(_id, _lib._sel_lineRangeForRange_1, range); } void getParagraphStart_end_contentsEnd_forRange_( @@ -32904,7 +32357,7 @@ class NSString extends NSObject { ffi.Pointer parEndPtr, ffi.Pointer contentsEndPtr, _NSRange range) { - _lib._objc_msgSend_326( + return _lib._objc_msgSend_326( _id, _lib._sel_getParagraphStart_end_contentsEnd_forRange_1, startPtr, @@ -32913,14 +32366,14 @@ class NSString extends NSObject { range); } - void paragraphRangeForRange_(ffi.Pointer<_NSRange> stret, _NSRange range) { - _lib._objc_msgSend_324( - stret, _id, _lib._sel_paragraphRangeForRange_1, range); + _NSRange paragraphRangeForRange_(_NSRange range) { + return _lib._objc_msgSend_324( + _id, _lib._sel_paragraphRangeForRange_1, range); } - void enumerateSubstringsInRange_options_usingBlock_(_NSRange range, int opts, - ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool block) { - _lib._objc_msgSend_327( + void enumerateSubstringsInRange_options_usingBlock_( + _NSRange range, int opts, ObjCBlock13 block) { + return _lib._objc_msgSend_327( _id, _lib._sel_enumerateSubstringsInRange_options_usingBlock_1, range, @@ -32928,8 +32381,8 @@ class NSString extends NSObject { block._id); } - void enumerateLinesUsingBlock_(ObjCBlock_ffiVoid_NSString_bool block) { - _lib._objc_msgSend_328( + void enumerateLinesUsingBlock_(ObjCBlock14 block) { + return _lib._objc_msgSend_328( _id, _lib._sel_enumerateLinesUsingBlock_1, block._id); } @@ -33187,9 +32640,7 @@ class NSString extends NSObject { } NSString initWithCharactersNoCopy_length_deallocator_( - ffi.Pointer chars, - int len, - ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong deallocator) { + ffi.Pointer chars, int len, ObjCBlock15 deallocator) { final _ret = _lib._objc_msgSend_345( _id, _lib._sel_initWithCharactersNoCopy_length_deallocator_1, @@ -33341,7 +32792,7 @@ class NSString extends NSObject { ffi.Pointer bytes, int len, int encoding, - ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong deallocator) { + ObjCBlock12 deallocator) { final _ret = _lib._objc_msgSend_357( _id, _lib._sel_initWithBytesNoCopy_length_encoding_deallocator_1, @@ -33571,17 +33022,17 @@ class NSString extends NSObject { } void getCString_(ffi.Pointer bytes) { - _lib._objc_msgSend_266(_id, _lib._sel_getCString_1, bytes); + return _lib._objc_msgSend_266(_id, _lib._sel_getCString_1, bytes); } void getCString_maxLength_(ffi.Pointer bytes, int maxLength) { - _lib._objc_msgSend_364( + return _lib._objc_msgSend_364( _id, _lib._sel_getCString_maxLength_1, bytes, maxLength); } void getCString_maxLength_range_remainingRange_(ffi.Pointer bytes, int maxLength, _NSRange aRange, ffi.Pointer<_NSRange> leftoverRange) { - _lib._objc_msgSend_365( + return _lib._objc_msgSend_365( _id, _lib._sel_getCString_maxLength_range_remainingRange_1, bytes, @@ -33662,7 +33113,7 @@ class NSString extends NSObject { } void getCharacters_(ffi.Pointer buffer) { - _lib._objc_msgSend_367(_id, _lib._sel_getCharacters_1, buffer); + return _lib._objc_msgSend_367(_id, _lib._sel_getCharacters_1, buffer); } NSString variantFittingPresentationWidth_(int width) { @@ -33843,8 +33294,8 @@ class NSString extends NSObject { NSString scheme, int options, NSOrthography? orthography, - ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool block) { - _lib._objc_msgSend_373( + ObjCBlock13 block) { + return _lib._objc_msgSend_373( _id, _lib._sel_enumerateLinguisticTagsInRange_scheme_options_orthography_usingBlock_1, range, @@ -33859,12 +33310,6 @@ class NSString extends NSObject { return NSString._(_ret, _lib, retain: false, release: true); } - static NSString allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSString1, _lib._sel_allocWithZone_1, zone); - return NSString._(_ret, _lib, retain: false, release: true); - } - static NSString alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_alloc1); return NSString._(_ret, _lib, retain: false, release: true); @@ -33875,7 +33320,7 @@ class NSString extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -33885,7 +33330,7 @@ class NSString extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSString1, + return _lib._objc_msgSend_15(_lib._class_NSString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -33918,7 +33363,7 @@ class NSString extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSString1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -33966,12 +33411,12 @@ class NSCoder extends NSObject { void encodeValueOfObjCType_at_( ffi.Pointer type, ffi.Pointer addr) { - _lib._objc_msgSend_18( + return _lib._objc_msgSend_18( _id, _lib._sel_encodeValueOfObjCType_at_1, type, addr); } void encodeDataObject_(NSData? data) { - _lib._objc_msgSend_263( + return _lib._objc_msgSend_263( _id, _lib._sel_encodeDataObject_1, data?._id ?? ffi.nullptr); } @@ -33982,7 +33427,7 @@ class NSCoder extends NSObject { void decodeValueOfObjCType_at_size_( ffi.Pointer type, ffi.Pointer data, int size) { - _lib._objc_msgSend_264( + return _lib._objc_msgSend_264( _id, _lib._sel_decodeValueOfObjCType_at_size_1, type, data, size); } @@ -33992,37 +33437,42 @@ class NSCoder extends NSObject { } void encodeObject_(NSObject object) { - _lib._objc_msgSend_15(_id, _lib._sel_encodeObject_1, object._id); + return _lib._objc_msgSend_15(_id, _lib._sel_encodeObject_1, object._id); } void encodeRootObject_(NSObject rootObject) { - _lib._objc_msgSend_15(_id, _lib._sel_encodeRootObject_1, rootObject._id); + return _lib._objc_msgSend_15( + _id, _lib._sel_encodeRootObject_1, rootObject._id); } void encodeBycopyObject_(NSObject anObject) { - _lib._objc_msgSend_15(_id, _lib._sel_encodeBycopyObject_1, anObject._id); + return _lib._objc_msgSend_15( + _id, _lib._sel_encodeBycopyObject_1, anObject._id); } void encodeByrefObject_(NSObject anObject) { - _lib._objc_msgSend_15(_id, _lib._sel_encodeByrefObject_1, anObject._id); + return _lib._objc_msgSend_15( + _id, _lib._sel_encodeByrefObject_1, anObject._id); } void encodeConditionalObject_(NSObject object) { - _lib._objc_msgSend_15(_id, _lib._sel_encodeConditionalObject_1, object._id); + return _lib._objc_msgSend_15( + _id, _lib._sel_encodeConditionalObject_1, object._id); } void encodeValuesOfObjCTypes_(ffi.Pointer types) { - _lib._objc_msgSend_266(_id, _lib._sel_encodeValuesOfObjCTypes_1, types); + return _lib._objc_msgSend_266( + _id, _lib._sel_encodeValuesOfObjCTypes_1, types); } void encodeArrayOfObjCType_count_at_( ffi.Pointer type, int count, ffi.Pointer array) { - _lib._objc_msgSend_267( + return _lib._objc_msgSend_267( _id, _lib._sel_encodeArrayOfObjCType_count_at_1, type, count, array); } void encodeBytes_length_(ffi.Pointer byteaddr, int length) { - _lib._objc_msgSend_21( + return _lib._objc_msgSend_21( _id, _lib._sel_encodeBytes_length_1, byteaddr, length); } @@ -34039,13 +33489,14 @@ class NSCoder extends NSObject { } void decodeValuesOfObjCTypes_(ffi.Pointer types) { - _lib._objc_msgSend_266(_id, _lib._sel_decodeValuesOfObjCTypes_1, types); + return _lib._objc_msgSend_266( + _id, _lib._sel_decodeValuesOfObjCTypes_1, types); } void decodeArrayOfObjCType_count_at_( ffi.Pointer itemType, int count, ffi.Pointer array) { - _lib._objc_msgSend_267(_id, _lib._sel_decodeArrayOfObjCType_count_at_1, - itemType, count, array); + return _lib._objc_msgSend_267(_id, + _lib._sel_decodeArrayOfObjCType_count_at_1, itemType, count, array); } ffi.Pointer decodeBytesWithReturnedLength_( @@ -34055,7 +33506,7 @@ class NSCoder extends NSObject { } void encodePropertyList_(NSObject aPropertyList) { - _lib._objc_msgSend_15( + return _lib._objc_msgSend_15( _id, _lib._sel_encodePropertyList_1, aPropertyList._id); } @@ -34065,7 +33516,7 @@ class NSCoder extends NSObject { } void setObjectZone_(ffi.Pointer<_NSZone> zone) { - _lib._objc_msgSend_270(_id, _lib._sel_setObjectZone_1, zone); + return _lib._objc_msgSend_270(_id, _lib._sel_setObjectZone_1, zone); } ffi.Pointer<_NSZone> objectZone() { @@ -34081,49 +33532,52 @@ class NSCoder extends NSObject { } void encodeObject_forKey_(NSObject object, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_encodeObject_forKey_1, object._id, - key?._id ?? ffi.nullptr); + return _lib._objc_msgSend_126(_id, _lib._sel_encodeObject_forKey_1, + object._id, key?._id ?? ffi.nullptr); } void encodeConditionalObject_forKey_(NSObject object, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_encodeConditionalObject_forKey_1, - object._id, key?._id ?? ffi.nullptr); + return _lib._objc_msgSend_126( + _id, + _lib._sel_encodeConditionalObject_forKey_1, + object._id, + key?._id ?? ffi.nullptr); } void encodeBool_forKey_(bool value, NSString? key) { - _lib._objc_msgSend_272( + return _lib._objc_msgSend_272( _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); } void encodeInt_forKey_(int value, NSString? key) { - _lib._objc_msgSend_273( + return _lib._objc_msgSend_273( _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); } void encodeInt32_forKey_(int value, NSString? key) { - _lib._objc_msgSend_274( + return _lib._objc_msgSend_274( _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); } void encodeInt64_forKey_(int value, NSString? key) { - _lib._objc_msgSend_275( + return _lib._objc_msgSend_275( _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); } void encodeFloat_forKey_(double value, NSString? key) { - _lib._objc_msgSend_276( + return _lib._objc_msgSend_276( _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); } void encodeDouble_forKey_(double value, NSString? key) { - _lib._objc_msgSend_277( + return _lib._objc_msgSend_277( _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); } 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); + return _lib._objc_msgSend_278(_id, _lib._sel_encodeBytes_length_forKey_1, + bytes, length, key?._id ?? ffi.nullptr); } bool containsValueForKey_(NSString? key) { @@ -34187,7 +33641,7 @@ class NSCoder extends NSObject { } void encodeInteger_forKey_(int value, NSString? key) { - _lib._objc_msgSend_286( + return _lib._objc_msgSend_286( _id, _lib._sel_encodeInteger_forKey_1, value, key?._id ?? ffi.nullptr); } @@ -34294,7 +33748,7 @@ class NSCoder extends NSObject { } void failWithError_(NSError? error) { - _lib._objc_msgSend_296( + return _lib._objc_msgSend_296( _id, _lib._sel_failWithError_1, error?._id ?? ffi.nullptr); } @@ -34310,7 +33764,7 @@ class NSCoder extends NSObject { } void encodeNXObject_(NSObject object) { - _lib._objc_msgSend_15(_id, _lib._sel_encodeNXObject_1, object._id); + return _lib._objc_msgSend_15(_id, _lib._sel_encodeNXObject_1, object._id); } NSObject decodeNXObject() { @@ -34320,68 +33774,62 @@ class NSCoder extends NSObject { void decodeValueOfObjCType_at_( ffi.Pointer type, ffi.Pointer data) { - _lib._objc_msgSend_18( + return _lib._objc_msgSend_18( _id, _lib._sel_decodeValueOfObjCType_at_1, type, data); } void encodePoint_(CGPoint point) { - _lib._objc_msgSend_299(_id, _lib._sel_encodePoint_1, point); + return _lib._objc_msgSend_299(_id, _lib._sel_encodePoint_1, point); } - void decodePoint(ffi.Pointer stret) { - _lib._objc_msgSend_54(stret, _id, _lib._sel_decodePoint1); + CGPoint decodePoint() { + return _lib._objc_msgSend_54(_id, _lib._sel_decodePoint1); } void encodeSize_(CGSize size) { - _lib._objc_msgSend_300(_id, _lib._sel_encodeSize_1, size); + return _lib._objc_msgSend_300(_id, _lib._sel_encodeSize_1, size); } - void decodeSize(ffi.Pointer stret) { - _lib._objc_msgSend_55(stret, _id, _lib._sel_decodeSize1); + CGSize decodeSize() { + return _lib._objc_msgSend_55(_id, _lib._sel_decodeSize1); } void encodeRect_(CGRect rect) { - _lib._objc_msgSend_301(_id, _lib._sel_encodeRect_1, rect); + return _lib._objc_msgSend_301(_id, _lib._sel_encodeRect_1, rect); } - void decodeRect(ffi.Pointer stret) { - _lib._objc_msgSend_56(stret, _id, _lib._sel_decodeRect1); + CGRect decodeRect() { + return _lib._objc_msgSend_56(_id, _lib._sel_decodeRect1); } void encodePoint_forKey_(CGPoint point, NSString? key) { - _lib._objc_msgSend_302( + return _lib._objc_msgSend_302( _id, _lib._sel_encodePoint_forKey_1, point, key?._id ?? ffi.nullptr); } void encodeSize_forKey_(CGSize size, NSString? key) { - _lib._objc_msgSend_303( + return _lib._objc_msgSend_303( _id, _lib._sel_encodeSize_forKey_1, size, key?._id ?? ffi.nullptr); } void encodeRect_forKey_(CGRect rect, NSString? key) { - _lib._objc_msgSend_304( + return _lib._objc_msgSend_304( _id, _lib._sel_encodeRect_forKey_1, rect, key?._id ?? ffi.nullptr); } - void decodePointForKey_(ffi.Pointer stret, NSString? key) { - _lib._objc_msgSend_305( - stret, _id, _lib._sel_decodePointForKey_1, key?._id ?? ffi.nullptr); - } - - void decodeSizeForKey_(ffi.Pointer stret, NSString? key) { - _lib._objc_msgSend_306( - stret, _id, _lib._sel_decodeSizeForKey_1, key?._id ?? ffi.nullptr); + CGPoint decodePointForKey_(NSString? key) { + return _lib._objc_msgSend_305( + _id, _lib._sel_decodePointForKey_1, key?._id ?? ffi.nullptr); } - void decodeRectForKey_(ffi.Pointer stret, NSString? key) { - _lib._objc_msgSend_307( - stret, _id, _lib._sel_decodeRectForKey_1, key?._id ?? ffi.nullptr); + CGSize decodeSizeForKey_(NSString? key) { + return _lib._objc_msgSend_306( + _id, _lib._sel_decodeSizeForKey_1, key?._id ?? ffi.nullptr); } - @override - NSCoder init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSCoder._(_ret, _lib, retain: true, release: true); + CGRect decodeRectForKey_(NSString? key) { + return _lib._objc_msgSend_307( + _id, _lib._sel_decodeRectForKey_1, key?._id ?? ffi.nullptr); } static NSCoder new1(SentryCocoa _lib) { @@ -34389,12 +33837,6 @@ class NSCoder extends NSObject { return NSCoder._(_ret, _lib, retain: false, release: true); } - static NSCoder allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSCoder1, _lib._sel_allocWithZone_1, zone); - return NSCoder._(_ret, _lib, retain: false, release: true); - } - static NSCoder alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSCoder1, _lib._sel_alloc1); return NSCoder._(_ret, _lib, retain: false, release: true); @@ -34405,7 +33847,7 @@ class NSCoder extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSCoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -34415,7 +33857,7 @@ class NSCoder extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSCoder1, + return _lib._objc_msgSend_15(_lib._class_NSCoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -34448,7 +33890,7 @@ class NSCoder extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSCoder1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -34506,11 +33948,13 @@ class NSData extends NSObject { } void getBytes_length_(ffi.Pointer buffer, int length) { - _lib._objc_msgSend_21(_id, _lib._sel_getBytes_length_1, buffer, length); + return _lib._objc_msgSend_21( + _id, _lib._sel_getBytes_length_1, buffer, length); } void getBytes_range_(ffi.Pointer buffer, _NSRange range) { - _lib._objc_msgSend_22(_id, _lib._sel_getBytes_range_1, buffer, range); + return _lib._objc_msgSend_22( + _id, _lib._sel_getBytes_range_1, buffer, range); } bool isEqualToData_(NSData? other) { @@ -34546,15 +33990,14 @@ class NSData extends NSObject { url?._id ?? ffi.nullptr, writeOptionsMask, errorPtr); } - void rangeOfData_options_range_(ffi.Pointer<_NSRange> stret, + _NSRange rangeOfData_options_range_( NSData? dataToFind, int mask, _NSRange searchRange) { - _lib._objc_msgSend_250(stret, _id, _lib._sel_rangeOfData_options_range_1, + return _lib._objc_msgSend_250(_id, _lib._sel_rangeOfData_options_range_1, dataToFind?._id ?? ffi.nullptr, mask, searchRange); } - void enumerateByteRangesUsingBlock_( - ObjCBlock_ffiVoid_ffiVoid_NSRange_bool block) { - _lib._objc_msgSend_251( + void enumerateByteRangesUsingBlock_(ObjCBlock11 block) { + return _lib._objc_msgSend_251( _id, _lib._sel_enumerateByteRangesUsingBlock_1, block._id); } @@ -34643,8 +34086,8 @@ class NSData extends NSObject { return NSData._(_ret, _lib, retain: false, release: true); } - NSData initWithBytesNoCopy_length_deallocator_(ffi.Pointer bytes, - int length, ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong deallocator) { + NSData initWithBytesNoCopy_length_deallocator_( + ffi.Pointer bytes, int length, ObjCBlock12 deallocator) { final _ret = _lib._objc_msgSend_256( _id, _lib._sel_initWithBytesNoCopy_length_deallocator_1, @@ -34746,7 +34189,7 @@ class NSData extends NSObject { } void getBytes_(ffi.Pointer buffer) { - _lib._objc_msgSend_47(_id, _lib._sel_getBytes_1, buffer); + return _lib._objc_msgSend_47(_id, _lib._sel_getBytes_1, buffer); } static NSObject dataWithContentsOfMappedFile_( @@ -34773,23 +34216,11 @@ class NSData extends NSObject { return NSString._(_ret, _lib, retain: true, release: true); } - @override - NSData init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSData._(_ret, _lib, retain: true, release: true); - } - static NSData new1(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_new1); return NSData._(_ret, _lib, retain: false, release: true); } - static NSData allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSData1, _lib._sel_allocWithZone_1, zone); - return NSData._(_ret, _lib, retain: false, release: true); - } - static NSData alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSData1, _lib._sel_alloc1); return NSData._(_ret, _lib, retain: false, release: true); @@ -34800,7 +34231,7 @@ class NSData extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -34810,7 +34241,7 @@ class NSData extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSData1, + return _lib._objc_msgSend_15(_lib._class_NSData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -34843,7 +34274,7 @@ class NSData extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSData1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -35265,16 +34696,16 @@ class NSURL extends NSObject { } void removeCachedResourceValueForKey_(NSString key) { - _lib._objc_msgSend_192( + return _lib._objc_msgSend_192( _id, _lib._sel_removeCachedResourceValueForKey_1, key._id); } void removeAllCachedResourceValues() { - _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResourceValues1); + return _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResourceValues1); } void setTemporaryResourceValue_forKey_(NSObject value, NSString key) { - _lib._objc_msgSend_126( + return _lib._objc_msgSend_126( _id, _lib._sel_setTemporaryResourceValue_forKey_1, value._id, key._id); } @@ -35383,7 +34814,8 @@ class NSURL extends NSObject { } void stopAccessingSecurityScopedResource() { - _lib._objc_msgSend_1(_id, _lib._sel_stopAccessingSecurityScopedResource1); + return _lib._objc_msgSend_1( + _id, _lib._sel_stopAccessingSecurityScopedResource1); } bool getPromisedItemResourceValue_forKey_error_( @@ -35507,7 +34939,7 @@ class NSURL extends NSObject { void loadResourceDataNotifyingClient_usingCache_( NSObject client, bool shouldUseCache) { - _lib._objc_msgSend_239( + return _lib._objc_msgSend_239( _id, _lib._sel_loadResourceDataNotifyingClient_usingCache_1, client._id, @@ -35536,23 +34968,11 @@ class NSURL extends NSObject { return NSURLHandle._(_ret, _lib, retain: true, release: true); } - @override - NSURL init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURL._(_ret, _lib, retain: true, release: true); - } - static NSURL new1(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_new1); return NSURL._(_ret, _lib, retain: false, release: true); } - static NSURL allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSURL1, _lib._sel_allocWithZone_1, zone); - return NSURL._(_ret, _lib, retain: false, release: true); - } - static NSURL alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURL1, _lib._sel_alloc1); return NSURL._(_ret, _lib, retain: false, release: true); @@ -35563,7 +34983,7 @@ class NSURL extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSURL1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -35573,7 +34993,7 @@ class NSURL extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURL1, + return _lib._objc_msgSend_15(_lib._class_NSURL1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -35606,7 +35026,7 @@ class NSURL extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSURL1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -35912,14 +35332,6 @@ class NSNumber extends NSValue { return NSNumber._(_ret, _lib, retain: true, release: true); } - @override - NSNumber initWithBytes_objCType_( - ffi.Pointer value, ffi.Pointer type) { - final _ret = _lib._objc_msgSend_41( - _id, _lib._sel_initWithBytes_objCType_1, value, type); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - static NSValue valueWithBytes_objCType_(SentryCocoa _lib, ffi.Pointer value, ffi.Pointer type) { final _ret = _lib._objc_msgSend_43(_lib._class_NSNumber1, @@ -35978,23 +35390,11 @@ class NSNumber extends NSValue { return NSValue._(_ret, _lib, retain: true, release: true); } - @override - NSNumber init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSNumber._(_ret, _lib, retain: true, release: true); - } - static NSNumber new1(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_new1); return NSNumber._(_ret, _lib, retain: false, release: true); } - static NSNumber allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSNumber1, _lib._sel_allocWithZone_1, zone); - return NSNumber._(_ret, _lib, retain: false, release: true); - } - static NSNumber alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSNumber1, _lib._sel_alloc1); return NSNumber._(_ret, _lib, retain: false, release: true); @@ -36005,7 +35405,7 @@ class NSNumber extends NSValue { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSNumber1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -36015,7 +35415,7 @@ class NSNumber extends NSValue { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSNumber1, + return _lib._objc_msgSend_15(_lib._class_NSNumber1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -36048,7 +35448,7 @@ class NSNumber extends NSValue { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSNumber1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -36091,7 +35491,7 @@ class NSValue extends NSObject { } void getValue_size_(ffi.Pointer value, int size) { - _lib._objc_msgSend_21(_id, _lib._sel_getValue_size_1, value, size); + return _lib._objc_msgSend_21(_id, _lib._sel_getValue_size_1, value, size); } ffi.Pointer get objCType { @@ -36154,7 +35554,7 @@ class NSValue extends NSObject { } void getValue_(ffi.Pointer value) { - _lib._objc_msgSend_47(_id, _lib._sel_getValue_1, value); + return _lib._objc_msgSend_47(_id, _lib._sel_getValue_1, value); } static NSValue valueWithRange_(SentryCocoa _lib, _NSRange range) { @@ -36163,8 +35563,8 @@ class NSValue extends NSObject { return NSValue._(_ret, _lib, retain: true, release: true); } - void getRangeValue(ffi.Pointer<_NSRange> stret) { - _lib._objc_msgSend_49(stret, _id, _lib._sel_rangeValue1); + _NSRange get rangeValue { + return _lib._objc_msgSend_49(_id, _lib._sel_rangeValue1); } static NSValue valueWithPoint_(SentryCocoa _lib, CGPoint point) { @@ -36191,26 +35591,20 @@ class NSValue extends NSObject { return NSValue._(_ret, _lib, retain: true, release: true); } - void getPointValue(ffi.Pointer stret) { - _lib._objc_msgSend_54(stret, _id, _lib._sel_pointValue1); + CGPoint get pointValue { + return _lib._objc_msgSend_54(_id, _lib._sel_pointValue1); } - void getSizeValue(ffi.Pointer stret) { - _lib._objc_msgSend_55(stret, _id, _lib._sel_sizeValue1); + CGSize get sizeValue { + return _lib._objc_msgSend_55(_id, _lib._sel_sizeValue1); } - void getRectValue(ffi.Pointer stret) { - _lib._objc_msgSend_56(stret, _id, _lib._sel_rectValue1); + CGRect get rectValue { + return _lib._objc_msgSend_56(_id, _lib._sel_rectValue1); } - void getEdgeInsetsValue(ffi.Pointer stret) { - _lib._objc_msgSend_57(stret, _id, _lib._sel_edgeInsetsValue1); - } - - @override - NSValue init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSValue._(_ret, _lib, retain: true, release: true); + NSEdgeInsets get edgeInsetsValue { + return _lib._objc_msgSend_57(_id, _lib._sel_edgeInsetsValue1); } static NSValue new1(SentryCocoa _lib) { @@ -36218,12 +35612,6 @@ class NSValue extends NSObject { return NSValue._(_ret, _lib, retain: false, release: true); } - static NSValue allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSValue1, _lib._sel_allocWithZone_1, zone); - return NSValue._(_ret, _lib, retain: false, release: true); - } - static NSValue alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSValue1, _lib._sel_alloc1); return NSValue._(_ret, _lib, retain: false, release: true); @@ -36234,7 +35622,7 @@ class NSValue extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSValue1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -36244,7 +35632,7 @@ class NSValue extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSValue1, + return _lib._objc_msgSend_15(_lib._class_NSValue1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -36277,7 +35665,7 @@ class NSValue extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSValue1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -36434,7 +35822,8 @@ class NSArray extends NSObject { void getObjects_range_( ffi.Pointer> objects, _NSRange range) { - _lib._objc_msgSend_68(_id, _lib._sel_getObjects_range_1, objects, range); + return _lib._objc_msgSend_68( + _id, _lib._sel_getObjects_range_1, objects, range); } int indexOfObject_(NSObject anObject) { @@ -36536,13 +35925,13 @@ class NSArray extends NSObject { } void makeObjectsPerformSelector_(ffi.Pointer aSelector) { - _lib._objc_msgSend_7( + return _lib._objc_msgSend_7( _id, _lib._sel_makeObjectsPerformSelector_1, aSelector); } void makeObjectsPerformSelector_withObject_( ffi.Pointer aSelector, NSObject argument) { - _lib._objc_msgSend_84( + return _lib._objc_msgSend_84( _id, _lib._sel_makeObjectsPerformSelector_withObject_1, aSelector, @@ -36561,21 +35950,19 @@ class NSArray extends NSObject { return NSObject._(_ret, _lib, retain: true, release: true); } - void enumerateObjectsUsingBlock_( - ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { - _lib._objc_msgSend_106( + void enumerateObjectsUsingBlock_(ObjCBlock4 block) { + return _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, + void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock4 block) { + return _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( + void enumerateObjectsAtIndexes_options_usingBlock_( + NSIndexSet? s, int opts, ObjCBlock4 block) { + return _lib._objc_msgSend_108( _id, _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, s?._id ?? ffi.nullptr, @@ -36583,20 +35970,18 @@ class NSArray extends NSObject { block._id); } - int indexOfObjectPassingTest_( - ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + int indexOfObjectPassingTest_(ObjCBlock5 predicate) { return _lib._objc_msgSend_109( _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); } - int indexOfObjectWithOptions_passingTest_( - int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + int indexOfObjectWithOptions_passingTest_(int opts, ObjCBlock5 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) { + int indexOfObjectAtIndexes_options_passingTest_( + NSIndexSet? s, int opts, ObjCBlock5 predicate) { return _lib._objc_msgSend_111( _id, _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, @@ -36605,15 +35990,14 @@ class NSArray extends NSObject { predicate._id); } - NSIndexSet indexesOfObjectsPassingTest_( - ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + NSIndexSet indexesOfObjectsPassingTest_(ObjCBlock5 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) { + int opts, ObjCBlock5 predicate) { final _ret = _lib._objc_msgSend_113( _id, _lib._sel_indexesOfObjectsWithOptions_passingTest_1, @@ -36622,8 +36006,8 @@ class NSArray extends NSObject { return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_(NSIndexSet? s, - int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_( + NSIndexSet? s, int opts, ObjCBlock5 predicate) { final _ret = _lib._objc_msgSend_114( _id, _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, @@ -36633,25 +36017,20 @@ class NSArray extends NSObject { return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSArray sortedArrayUsingComparator_( - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + NSArray sortedArrayUsingComparator_(ObjCBlock6 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) { + NSArray sortedArrayWithOptions_usingComparator_(int opts, ObjCBlock6 cmptr) { final _ret = _lib._objc_msgSend_116(_id, _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); return NSArray._(_ret, _lib, retain: true, release: true); } int indexOfObject_inSortedRange_options_usingComparator_( - NSObject obj, - _NSRange r, - int opts, - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmp) { + NSObject obj, _NSRange r, int opts, ObjCBlock6 cmp) { return _lib._objc_msgSend_117( _id, _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, @@ -36730,7 +36109,7 @@ class NSArray extends NSObject { } NSObject differenceFromArray_withOptions_usingEquivalenceTest_( - NSArray? other, int options, ObjCBlock_bool_ObjCObject_ObjCObject block) { + NSArray? other, int options, ObjCBlock7 block) { final _ret = _lib._objc_msgSend_120( _id, _lib._sel_differenceFromArray_withOptions_usingEquivalenceTest_1, @@ -36762,7 +36141,7 @@ class NSArray extends NSObject { } void getObjects_(ffi.Pointer> objects) { - _lib._objc_msgSend_122(_id, _lib._sel_getObjects_1, objects); + return _lib._objc_msgSend_122(_id, _lib._sel_getObjects_1, objects); } static NSArray arrayWithContentsOfFile_(SentryCocoa _lib, NSString? path) { @@ -36814,7 +36193,7 @@ class NSArray extends NSObject { @override void setValue_forKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126( + return _lib._objc_msgSend_126( _id, _lib._sel_setValue_forKey_1, value._id, key?._id ?? ffi.nullptr); } @@ -36824,7 +36203,7 @@ class NSArray extends NSObject { NSString? keyPath, int options, ffi.Pointer context) { - _lib._objc_msgSend_127( + return _lib._objc_msgSend_127( _id, _lib._sel_addObserver_toObjectsAtIndexes_forKeyPath_options_context_1, observer?._id ?? ffi.nullptr, @@ -36839,7 +36218,7 @@ class NSArray extends NSObject { NSIndexSet? indexes, NSString? keyPath, ffi.Pointer context) { - _lib._objc_msgSend_128( + return _lib._objc_msgSend_128( _id, _lib._sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_1, observer?._id ?? ffi.nullptr, @@ -36850,7 +36229,7 @@ class NSArray extends NSObject { void removeObserver_fromObjectsAtIndexes_forKeyPath_( NSObject? observer, NSIndexSet? indexes, NSString? keyPath) { - _lib._objc_msgSend_129( + return _lib._objc_msgSend_129( _id, _lib._sel_removeObserver_fromObjectsAtIndexes_forKeyPath_1, observer?._id ?? ffi.nullptr, @@ -36861,7 +36240,7 @@ class NSArray extends NSObject { @override void addObserver_forKeyPath_options_context_(NSObject? observer, NSString? keyPath, int options, ffi.Pointer context) { - _lib._objc_msgSend_130( + return _lib._objc_msgSend_130( _id, _lib._sel_addObserver_forKeyPath_options_context_1, observer?._id ?? ffi.nullptr, @@ -36873,13 +36252,17 @@ class NSArray extends NSObject { @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 _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, + return _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); } @@ -36902,12 +36285,6 @@ class NSArray extends NSObject { return NSArray._(_ret, _lib, retain: false, release: true); } - static NSArray allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSArray1, _lib._sel_allocWithZone_1, zone); - return NSArray._(_ret, _lib, retain: false, release: true); - } - static NSArray alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSArray1, _lib._sel_alloc1); return NSArray._(_ret, _lib, retain: false, release: true); @@ -36918,7 +36295,7 @@ class NSArray extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -36928,7 +36305,7 @@ class NSArray extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSArray1, + return _lib._objc_msgSend_15(_lib._class_NSArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -36961,7 +36338,7 @@ class NSArray extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSArray1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -37090,33 +36467,24 @@ class NSError extends NSObject { : NSArray._(_ret, _lib, retain: true, release: true); } - static void setUserInfoValueProviderForDomain_provider_(SentryCocoa _lib, - NSString errorDomain, ObjCBlock_ObjCObject_NSError_NSString provider) { - _lib._objc_msgSend_80( + static void setUserInfoValueProviderForDomain_provider_( + SentryCocoa _lib, NSString errorDomain, ObjCBlock provider) { + return _lib._objc_msgSend_80( _lib._class_NSError1, _lib._sel_setUserInfoValueProviderForDomain_provider_1, errorDomain._id, provider._id); } - static ObjCBlock_ObjCObject_NSError_NSString userInfoValueProviderForDomain_( - SentryCocoa _lib, - NSError? err, - NSString userInfoKey, - NSString errorDomain) { + static ObjCBlock userInfoValueProviderForDomain_(SentryCocoa _lib, + NSError? err, NSString userInfoKey, NSString errorDomain) { final _ret = _lib._objc_msgSend_81( _lib._class_NSError1, _lib._sel_userInfoValueProviderForDomain_1, err?._id ?? ffi.nullptr, userInfoKey._id, errorDomain._id); - return ObjCBlock_ObjCObject_NSError_NSString._(_ret, _lib); - } - - @override - NSError init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSError._(_ret, _lib, retain: true, release: true); + return ObjCBlock._(_ret, _lib); } static NSError new1(SentryCocoa _lib) { @@ -37124,12 +36492,6 @@ class NSError extends NSObject { return NSError._(_ret, _lib, retain: false, release: true); } - static NSError allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSError1, _lib._sel_allocWithZone_1, zone); - return NSError._(_ret, _lib, retain: false, release: true); - } - static NSError alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSError1, _lib._sel_alloc1); return NSError._(_ret, _lib, retain: false, release: true); @@ -37140,7 +36502,7 @@ class NSError extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSError1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -37150,7 +36512,7 @@ class NSError extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSError1, + return _lib._objc_msgSend_15(_lib._class_NSError1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -37183,7 +36545,7 @@ class NSError extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSError1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -37244,7 +36606,7 @@ class _ObjCBlockBase implements ffi.Finalizable { ffi.Pointer<_ObjCBlock> get pointer => _id; } -ffi.Pointer _ObjCBlock_ObjCObject_NSError_NSString_fnPtrTrampoline( +ffi.Pointer _ObjCBlock_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1) { @@ -37258,34 +36620,29 @@ ffi.Pointer _ObjCBlock_ObjCObject_NSError_NSString_fnPtrTrampoline( ffi.Pointer arg1)>()(arg0, arg1); } -final _ObjCBlock_ObjCObject_NSError_NSString_closureRegistry = - {}; -int _ObjCBlock_ObjCObject_NSError_NSString_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ObjCObject_NSError_NSString_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ObjCObject_NSError_NSString_closureRegistryIndex; - _ObjCBlock_ObjCObject_NSError_NSString_closureRegistry[id] = fn; +final _ObjCBlock_closureRegistry = {}; +int _ObjCBlock_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock_registerClosure(Function fn) { + final id = ++_ObjCBlock_closureRegistryIndex; + _ObjCBlock_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -ffi.Pointer - _ObjCBlock_ObjCObject_NSError_NSString_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_ObjCObject_NSError_NSString_closureRegistry[ - block.ref.target.address] +ffi.Pointer _ObjCBlock_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1) { + return (_ObjCBlock_closureRegistry[block.ref.target.address] as ffi.Pointer Function( ffi.Pointer, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_ObjCObject_NSError_NSString extends _ObjCBlockBase { - ObjCBlock_ObjCObject_NSError_NSString._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock extends _ObjCBlockBase { + ObjCBlock._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ObjCObject_NSError_NSString.fromFunctionPointer( + ObjCBlock.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -37299,14 +36656,14 @@ class ObjCBlock_ObjCObject_NSError_NSString extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_ObjCObject_NSError_NSString_fnPtrTrampoline) + _ObjCBlock_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ObjCObject_NSError_NSString.fromFunction( + ObjCBlock.fromFunction( SentryCocoa lib, ffi.Pointer Function( ffi.Pointer arg0, ffi.Pointer arg1) @@ -37318,9 +36675,9 @@ class ObjCBlock_ObjCObject_NSError_NSString extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_ObjCObject_NSError_NSString_closureTrampoline) + _ObjCBlock_closureTrampoline) .cast(), - _ObjCBlock_ObjCObject_NSError_NSString_registerClosure(fn)), + _ObjCBlock_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; ffi.Pointer call( @@ -37499,21 +36856,19 @@ class NSIndexSet extends NSObject { _id, _lib._sel_intersectsIndexesInRange_1, range); } - void enumerateIndexesUsingBlock_( - ObjCBlock_ffiVoid_ffiUnsignedLong_bool block) { - _lib._objc_msgSend_93( + void enumerateIndexesUsingBlock_(ObjCBlock1 block) { + return _lib._objc_msgSend_93( _id, _lib._sel_enumerateIndexesUsingBlock_1, block._id); } - void enumerateIndexesWithOptions_usingBlock_( - int opts, ObjCBlock_ffiVoid_ffiUnsignedLong_bool block) { - _lib._objc_msgSend_94(_id, + void enumerateIndexesWithOptions_usingBlock_(int opts, ObjCBlock1 block) { + return _lib._objc_msgSend_94(_id, _lib._sel_enumerateIndexesWithOptions_usingBlock_1, opts, block._id); } void enumerateIndexesInRange_options_usingBlock_( - _NSRange range, int opts, ObjCBlock_ffiVoid_ffiUnsignedLong_bool block) { - _lib._objc_msgSend_95( + _NSRange range, int opts, ObjCBlock1 block) { + return _lib._objc_msgSend_95( _id, _lib._sel_enumerateIndexesInRange_options_usingBlock_1, range, @@ -37521,19 +36876,18 @@ class NSIndexSet extends NSObject { block._id); } - int indexPassingTest_(ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + int indexPassingTest_(ObjCBlock2 predicate) { return _lib._objc_msgSend_96( _id, _lib._sel_indexPassingTest_1, predicate._id); } - int indexWithOptions_passingTest_( - int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + int indexWithOptions_passingTest_(int opts, ObjCBlock2 predicate) { return _lib._objc_msgSend_97( _id, _lib._sel_indexWithOptions_passingTest_1, opts, predicate._id); } int indexInRange_options_passingTest_( - _NSRange range, int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + _NSRange range, int opts, ObjCBlock2 predicate) { return _lib._objc_msgSend_98( _id, _lib._sel_indexInRange_options_passingTest_1, @@ -37542,22 +36896,20 @@ class NSIndexSet extends NSObject { predicate._id); } - NSIndexSet indexesPassingTest_( - ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + NSIndexSet indexesPassingTest_(ObjCBlock2 predicate) { final _ret = _lib._objc_msgSend_99( _id, _lib._sel_indexesPassingTest_1, predicate._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet indexesWithOptions_passingTest_( - int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + NSIndexSet indexesWithOptions_passingTest_(int opts, ObjCBlock2 predicate) { final _ret = _lib._objc_msgSend_100( _id, _lib._sel_indexesWithOptions_passingTest_1, opts, predicate._id); return NSIndexSet._(_ret, _lib, retain: true, release: true); } NSIndexSet indexesInRange_options_passingTest_( - _NSRange range, int opts, ObjCBlock_bool_ffiUnsignedLong_bool predicate) { + _NSRange range, int opts, ObjCBlock2 predicate) { final _ret = _lib._objc_msgSend_101( _id, _lib._sel_indexesInRange_options_passingTest_1, @@ -37567,20 +36919,19 @@ class NSIndexSet extends NSObject { return NSIndexSet._(_ret, _lib, retain: true, release: true); } - void enumerateRangesUsingBlock_(ObjCBlock_ffiVoid_NSRange_bool block) { - _lib._objc_msgSend_102( + void enumerateRangesUsingBlock_(ObjCBlock3 block) { + return _lib._objc_msgSend_102( _id, _lib._sel_enumerateRangesUsingBlock_1, block._id); } - void enumerateRangesWithOptions_usingBlock_( - int opts, ObjCBlock_ffiVoid_NSRange_bool block) { - _lib._objc_msgSend_103(_id, + void enumerateRangesWithOptions_usingBlock_(int opts, ObjCBlock3 block) { + return _lib._objc_msgSend_103(_id, _lib._sel_enumerateRangesWithOptions_usingBlock_1, opts, block._id); } void enumerateRangesInRange_options_usingBlock_( - _NSRange range, int opts, ObjCBlock_ffiVoid_NSRange_bool block) { - _lib._objc_msgSend_104( + _NSRange range, int opts, ObjCBlock3 block) { + return _lib._objc_msgSend_104( _id, _lib._sel_enumerateRangesInRange_options_usingBlock_1, range, @@ -37588,24 +36939,11 @@ class NSIndexSet extends NSObject { block._id); } - @override - NSIndexSet init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSIndexSet._(_ret, _lib, retain: true, release: true); - } - static NSIndexSet new1(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_new1); return NSIndexSet._(_ret, _lib, retain: false, release: true); } - static NSIndexSet allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSIndexSet1, _lib._sel_allocWithZone_1, zone); - return NSIndexSet._(_ret, _lib, retain: false, release: true); - } - static NSIndexSet alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexSet1, _lib._sel_alloc1); @@ -37617,7 +36955,7 @@ class NSIndexSet extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSIndexSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -37627,7 +36965,7 @@ class NSIndexSet extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSIndexSet1, + return _lib._objc_msgSend_15(_lib._class_NSIndexSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -37660,7 +36998,7 @@ class NSIndexSet extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSIndexSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -37680,7 +37018,7 @@ class NSIndexSet extends NSObject { } } -void _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_fnPtrTrampoline( +void _ObjCBlock1_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { return block.ref.target .cast< @@ -37691,52 +37029,48 @@ void _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_fnPtrTrampoline( arg0, arg1); } -final _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistry[id] = fn; +final _ObjCBlock1_closureRegistry = {}; +int _ObjCBlock1_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock1_registerClosure(Function fn) { + final id = ++_ObjCBlock1_closureRegistryIndex; + _ObjCBlock1_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureTrampoline( +void _ObjCBlock1_closureTrampoline( ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return (_ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureRegistry[block - .ref - .target - .address] as void Function(int, ffi.Pointer))(arg0, arg1); + return (_ObjCBlock1_closureRegistry[block.ref.target.address] as void + Function(int, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_ffiVoid_ffiUnsignedLong_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ffiUnsignedLong_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock1 extends _ObjCBlockBase { + ObjCBlock1._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ffiUnsignedLong_bool.fromFunctionPointer( + ObjCBlock1.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function( - ffi.UnsignedLong arg0, ffi.Pointer arg1)>> + ffi.Void Function(ffi.UnsignedLong arg0, + ffi.Pointer arg1)>> ptr) : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.UnsignedLong arg0, - ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_fnPtrTrampoline) - .cast(), - ptr.cast()), + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.UnsignedLong arg0, + ffi.Pointer arg1)>( + _ObjCBlock1_fnPtrTrampoline) + .cast(), + ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ffiUnsignedLong_bool.fromFunction( + ObjCBlock1.fromFunction( SentryCocoa lib, void Function(int arg0, ffi.Pointer arg1) fn) : this._( lib._newBlock1( @@ -37745,9 +37079,9 @@ class ObjCBlock_ffiVoid_ffiUnsignedLong_bool extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.UnsignedLong arg0, ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_closureTrampoline) + _ObjCBlock1_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_ffiUnsignedLong_bool_registerClosure(fn)), + _ObjCBlock1_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(int arg0, ffi.Pointer arg1) { @@ -37767,7 +37101,7 @@ abstract class NSEnumerationOptions { static const int NSEnumerationReverse = 2; } -bool _ObjCBlock_bool_ffiUnsignedLong_bool_fnPtrTrampoline( +bool _ObjCBlock2_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { return block.ref.target .cast< @@ -37778,28 +37112,26 @@ bool _ObjCBlock_bool_ffiUnsignedLong_bool_fnPtrTrampoline( arg0, arg1); } -final _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistry = {}; -int _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_bool_ffiUnsignedLong_bool_registerClosure( - Function fn) { - final id = ++_ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistryIndex; - _ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistry[id] = fn; +final _ObjCBlock2_closureRegistry = {}; +int _ObjCBlock2_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock2_registerClosure(Function fn) { + final id = ++_ObjCBlock2_closureRegistryIndex; + _ObjCBlock2_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock_bool_ffiUnsignedLong_bool_closureTrampoline( +bool _ObjCBlock2_closureTrampoline( ffi.Pointer<_ObjCBlock> block, int arg0, ffi.Pointer arg1) { - return (_ObjCBlock_bool_ffiUnsignedLong_bool_closureRegistry[block.ref.target - .address] as bool Function(int, ffi.Pointer))(arg0, arg1); + return (_ObjCBlock2_closureRegistry[block.ref.target.address] as bool + Function(int, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_bool_ffiUnsignedLong_bool extends _ObjCBlockBase { - ObjCBlock_bool_ffiUnsignedLong_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock2 extends _ObjCBlockBase { + ObjCBlock2._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_bool_ffiUnsignedLong_bool.fromFunctionPointer( + ObjCBlock2.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -37813,15 +37145,14 @@ class ObjCBlock_bool_ffiUnsignedLong_bool extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.UnsignedLong arg0, ffi.Pointer arg1)>( - _ObjCBlock_bool_ffiUnsignedLong_bool_fnPtrTrampoline, - false) + _ObjCBlock2_fnPtrTrampoline, false) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_bool_ffiUnsignedLong_bool.fromFunction( + ObjCBlock2.fromFunction( SentryCocoa lib, bool Function(int arg0, ffi.Pointer arg1) fn) : this._( lib._newBlock1( @@ -37830,10 +37161,9 @@ class ObjCBlock_bool_ffiUnsignedLong_bool extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.UnsignedLong arg0, ffi.Pointer arg1)>( - _ObjCBlock_bool_ffiUnsignedLong_bool_closureTrampoline, - false) + _ObjCBlock2_closureTrampoline, false) .cast(), - _ObjCBlock_bool_ffiUnsignedLong_bool_registerClosure(fn)), + _ObjCBlock2_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; bool call(int arg0, ffi.Pointer arg1) { @@ -37848,7 +37178,7 @@ class ObjCBlock_bool_ffiUnsignedLong_bool extends _ObjCBlockBase { } } -void _ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline( +void _ObjCBlock3_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, _NSRange arg0, ffi.Pointer arg1) { return block.ref.target .cast< @@ -37859,27 +37189,26 @@ void _ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline( _NSRange arg0, ffi.Pointer arg1)>()(arg0, arg1); } -final _ObjCBlock_ffiVoid_NSRange_bool_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSRange_bool_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSRange_bool_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSRange_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSRange_bool_closureRegistry[id] = fn; +final _ObjCBlock3_closureRegistry = {}; +int _ObjCBlock3_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock3_registerClosure(Function fn) { + final id = ++_ObjCBlock3_closureRegistryIndex; + _ObjCBlock3_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline( +void _ObjCBlock3_closureTrampoline( ffi.Pointer<_ObjCBlock> block, _NSRange arg0, ffi.Pointer arg1) { - return (_ObjCBlock_ffiVoid_NSRange_bool_closureRegistry[block.ref.target - .address] as void Function(_NSRange, ffi.Pointer))(arg0, arg1); + return (_ObjCBlock3_closureRegistry[block.ref.target.address] as void + Function(_NSRange, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_ffiVoid_NSRange_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSRange_bool._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock3 extends _ObjCBlockBase { + ObjCBlock3._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSRange_bool.fromFunctionPointer( + ObjCBlock3.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -37890,23 +37219,23 @@ class ObjCBlock_ffiVoid_NSRange_bool extends _ObjCBlockBase { _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block, _NSRange arg0, ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_NSRange_bool_fnPtrTrampoline) + _ObjCBlock3_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSRange_bool.fromFunction(SentryCocoa lib, + ObjCBlock3.fromFunction(SentryCocoa lib, void Function(_NSRange arg0, ffi.Pointer arg1) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block, _NSRange arg0, ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline) + _ObjCBlock3_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSRange_bool_registerClosure(fn)), + _ObjCBlock3_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(_NSRange arg0, ffi.Pointer arg1) { @@ -37921,11 +37250,8 @@ class ObjCBlock_ffiVoid_NSRange_bool extends _ObjCBlockBase { } } -void _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2) { +void _ObjCBlock4_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { return block.ref.target .cast< ffi.NativeFunction< @@ -37936,36 +37262,27 @@ void _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline( ffi.Pointer arg2)>()(arg0, arg1, arg2); } -final _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistry[id] = fn; +final _ObjCBlock4_closureRegistry = {}; +int _ObjCBlock4_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock4_registerClosure(Function fn) { + final id = ++_ObjCBlock4_closureRegistryIndex; + _ObjCBlock4_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, int, - ffi.Pointer))(arg0, arg1, arg2); +void _ObjCBlock4_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return (_ObjCBlock4_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer, int, ffi.Pointer))( + arg0, arg1, arg2); } -class ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock4 extends _ObjCBlockBase { + ObjCBlock4._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool.fromFunctionPointer( + ObjCBlock4.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -37980,14 +37297,14 @@ class ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { ffi.Pointer arg0, ffi.UnsignedLong arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline) + _ObjCBlock4_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool.fromFunction( + ObjCBlock4.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0, int arg1, ffi.Pointer arg2) @@ -38000,10 +37317,9 @@ class ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { ffi.Pointer arg0, ffi.UnsignedLong arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureTrampoline) + _ObjCBlock4_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_registerClosure( - fn)), + _ObjCBlock4_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call( @@ -38025,11 +37341,8 @@ class ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { } } -bool _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2) { +bool _ObjCBlock5_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { return block.ref.target .cast< ffi.NativeFunction< @@ -38040,40 +37353,30 @@ bool _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline( ffi.Pointer arg2)>()(arg0, arg1, arg2); } -final _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistry = - {}; -int _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex; - _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistry[id] = fn; +final _ObjCBlock5_closureRegistry = {}; +int _ObjCBlock5_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock5_registerClosure(Function fn) { + final id = ++_ObjCBlock5_closureRegistryIndex; + _ObjCBlock5_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistry[ - block.ref.target.address] - as bool Function(ffi.Pointer, int, - ffi.Pointer))(arg0, arg1, arg2); +bool _ObjCBlock5_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return (_ObjCBlock5_closureRegistry[block.ref.target.address] as bool + Function(ffi.Pointer, int, ffi.Pointer))( + arg0, arg1, arg2); } -class ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { - ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock5 extends _ObjCBlockBase { + ObjCBlock5._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool.fromFunctionPointer( + ObjCBlock5.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< - ffi - .NativeFunction< + ffi.NativeFunction< ffi.Bool Function(ffi.Pointer arg0, ffi.UnsignedLong arg1, ffi.Pointer arg2)>> ptr) @@ -38085,15 +37388,14 @@ class ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { ffi.Pointer arg0, ffi.UnsignedLong arg1, ffi.Pointer arg2)>( - _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline, - false) + _ObjCBlock5_fnPtrTrampoline, false) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool.fromFunction( + ObjCBlock5.fromFunction( SentryCocoa lib, bool Function(ffi.Pointer arg0, int arg1, ffi.Pointer arg2) @@ -38106,11 +37408,9 @@ class ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { ffi.Pointer arg0, ffi.UnsignedLong arg1, ffi.Pointer arg2)>( - _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureTrampoline, - false) + _ObjCBlock5_closureTrampoline, false) .cast(), - _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_registerClosure( - fn)), + _ObjCBlock5_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; bool call( @@ -38132,10 +37432,8 @@ class ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { } } -int _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { +int _ObjCBlock6_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { return block.ref.target .cast< ffi.NativeFunction< @@ -38146,40 +37444,30 @@ int _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_fnPtrTrampoline( ffi.Pointer arg1)>()(arg0, arg1); } -final _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistry = - {}; -int _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistryIndex = - 0; -ffi.Pointer - _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistryIndex; - _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistry[id] = fn; +final _ObjCBlock6_closureRegistry = {}; +int _ObjCBlock6_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock6_registerClosure(Function fn) { + final id = ++_ObjCBlock6_closureRegistryIndex; + _ObjCBlock6_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -int _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureRegistry[ - block.ref.target.address] - as int Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); +int _ObjCBlock6_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return (_ObjCBlock6_closureRegistry[block.ref.target.address] as int Function( + ffi.Pointer, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject - extends _ObjCBlockBase { - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock6 extends _ObjCBlockBase { + ObjCBlock6._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject.fromFunctionPointer( + ObjCBlock6.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< - ffi.NativeFunction< + ffi + .NativeFunction< ffi.Int32 Function(ffi.Pointer arg0, ffi.Pointer arg1)>> ptr) @@ -38190,15 +37478,14 @@ class ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_fnPtrTrampoline, - 0) + _ObjCBlock6_fnPtrTrampoline, 0) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject.fromFunction( + ObjCBlock6.fromFunction( SentryCocoa lib, int Function(ffi.Pointer arg0, ffi.Pointer arg1) fn) @@ -38209,11 +37496,9 @@ class ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_closureTrampoline, - 0) + _ObjCBlock6_closureTrampoline, 0) .cast(), - _ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject_registerClosure( - fn)), + _ObjCBlock6_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; int call(ffi.Pointer arg0, ffi.Pointer arg1) { @@ -38257,10 +37542,8 @@ abstract class NSOrderedCollectionDifferenceCalculationOptions { static const int NSOrderedCollectionDifferenceCalculationInferMoves = 4; } -bool _ObjCBlock_bool_ObjCObject_ObjCObject_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { +bool _ObjCBlock7_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { return block.ref.target .cast< ffi.NativeFunction< @@ -38271,32 +37554,26 @@ bool _ObjCBlock_bool_ObjCObject_ObjCObject_fnPtrTrampoline( ffi.Pointer arg1)>()(arg0, arg1); } -final _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistry = {}; -int _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_bool_ObjCObject_ObjCObject_registerClosure( - Function fn) { - final id = ++_ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistryIndex; - _ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistry[id] = fn; +final _ObjCBlock7_closureRegistry = {}; +int _ObjCBlock7_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock7_registerClosure(Function fn) { + final id = ++_ObjCBlock7_closureRegistryIndex; + _ObjCBlock7_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock_bool_ObjCObject_ObjCObject_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_bool_ObjCObject_ObjCObject_closureRegistry[ - block.ref.target.address] - as bool Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); +bool _ObjCBlock7_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return (_ObjCBlock7_closureRegistry[block.ref.target.address] as bool + Function(ffi.Pointer, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_bool_ObjCObject_ObjCObject extends _ObjCBlockBase { - ObjCBlock_bool_ObjCObject_ObjCObject._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock7 extends _ObjCBlockBase { + ObjCBlock7._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_bool_ObjCObject_ObjCObject.fromFunctionPointer( + ObjCBlock7.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -38310,15 +37587,14 @@ class ObjCBlock_bool_ObjCObject_ObjCObject extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_bool_ObjCObject_ObjCObject_fnPtrTrampoline, - false) + _ObjCBlock7_fnPtrTrampoline, false) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_bool_ObjCObject_ObjCObject.fromFunction( + ObjCBlock7.fromFunction( SentryCocoa lib, bool Function(ffi.Pointer arg0, ffi.Pointer arg1) fn) @@ -38329,10 +37605,9 @@ class ObjCBlock_bool_ObjCObject_ObjCObject extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_bool_ObjCObject_ObjCObject_closureTrampoline, - false) + _ObjCBlock7_closureTrampoline, false) .cast(), - _ObjCBlock_bool_ObjCObject_ObjCObject_registerClosure(fn)), + _ObjCBlock7_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; bool call(ffi.Pointer arg0, ffi.Pointer arg1) { @@ -38423,8 +37698,7 @@ class NSPredicate extends NSObject { return NSPredicate._(_ret, _lib, retain: true, release: true); } - static NSPredicate predicateWithBlock_( - SentryCocoa _lib, ObjCBlock_bool_ObjCObject_NSDictionary block) { + static NSPredicate predicateWithBlock_(SentryCocoa _lib, ObjCBlock8 block) { final _ret = _lib._objc_msgSend_199( _lib._class_NSPredicate1, _lib._sel_predicateWithBlock_1, block._id); return NSPredicate._(_ret, _lib, retain: true, release: true); @@ -38460,13 +37734,7 @@ class NSPredicate extends NSObject { } void allowEvaluation() { - _lib._objc_msgSend_1(_id, _lib._sel_allowEvaluation1); - } - - @override - NSPredicate init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSPredicate._(_ret, _lib, retain: true, release: true); + return _lib._objc_msgSend_1(_id, _lib._sel_allowEvaluation1); } static NSPredicate new1(SentryCocoa _lib) { @@ -38474,13 +37742,6 @@ class NSPredicate extends NSObject { return NSPredicate._(_ret, _lib, retain: false, release: true); } - static NSPredicate allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSPredicate1, _lib._sel_allocWithZone_1, zone); - return NSPredicate._(_ret, _lib, retain: false, release: true); - } - static NSPredicate alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSPredicate1, _lib._sel_alloc1); @@ -38492,7 +37753,7 @@ class NSPredicate extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSPredicate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -38502,7 +37763,7 @@ class NSPredicate extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSPredicate1, + return _lib._objc_msgSend_15(_lib._class_NSPredicate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -38535,7 +37796,7 @@ class NSPredicate extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSPredicate1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -38555,10 +37816,8 @@ class NSPredicate extends NSObject { } } -bool _ObjCBlock_bool_ObjCObject_NSDictionary_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { +bool _ObjCBlock8_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { return block.ref.target .cast< ffi.NativeFunction< @@ -38569,33 +37828,26 @@ bool _ObjCBlock_bool_ObjCObject_NSDictionary_fnPtrTrampoline( ffi.Pointer arg1)>()(arg0, arg1); } -final _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistry = - {}; -int _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_bool_ObjCObject_NSDictionary_registerClosure( - Function fn) { - final id = ++_ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistryIndex; - _ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistry[id] = fn; +final _ObjCBlock8_closureRegistry = {}; +int _ObjCBlock8_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock8_registerClosure(Function fn) { + final id = ++_ObjCBlock8_closureRegistryIndex; + _ObjCBlock8_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock_bool_ObjCObject_NSDictionary_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_bool_ObjCObject_NSDictionary_closureRegistry[ - block.ref.target.address] - as bool Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); +bool _ObjCBlock8_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return (_ObjCBlock8_closureRegistry[block.ref.target.address] as bool + Function(ffi.Pointer, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_bool_ObjCObject_NSDictionary extends _ObjCBlockBase { - ObjCBlock_bool_ObjCObject_NSDictionary._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock8 extends _ObjCBlockBase { + ObjCBlock8._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_bool_ObjCObject_NSDictionary.fromFunctionPointer( + ObjCBlock8.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -38609,15 +37861,14 @@ class ObjCBlock_bool_ObjCObject_NSDictionary extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_bool_ObjCObject_NSDictionary_fnPtrTrampoline, - false) + _ObjCBlock8_fnPtrTrampoline, false) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_bool_ObjCObject_NSDictionary.fromFunction( + ObjCBlock8.fromFunction( SentryCocoa lib, bool Function(ffi.Pointer arg0, ffi.Pointer arg1) fn) @@ -38628,10 +37879,9 @@ class ObjCBlock_bool_ObjCObject_NSDictionary extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_bool_ObjCObject_NSDictionary_closureTrampoline, - false) + _ObjCBlock8_closureTrampoline, false) .cast(), - _ObjCBlock_bool_ObjCObject_NSDictionary_registerClosure(fn)), + _ObjCBlock8_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; bool call(ffi.Pointer arg0, ffi.Pointer arg1) { @@ -38788,7 +38038,7 @@ class NSDictionary extends NSObject { void getObjects_andKeys_count_(ffi.Pointer> objects, ffi.Pointer> keys, int count) { - _lib._objc_msgSend_140( + return _lib._objc_msgSend_140( _id, _lib._sel_getObjects_andKeys_count_1, objects, keys, count); } @@ -38798,30 +38048,28 @@ class NSDictionary extends NSObject { return NSObject._(_ret, _lib, retain: true, release: true); } - void enumerateKeysAndObjectsUsingBlock_( - ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool block) { - _lib._objc_msgSend_141( + void enumerateKeysAndObjectsUsingBlock_(ObjCBlock9 block) { + return _lib._objc_msgSend_141( _id, _lib._sel_enumerateKeysAndObjectsUsingBlock_1, block._id); } void enumerateKeysAndObjectsWithOptions_usingBlock_( - int opts, ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool block) { - _lib._objc_msgSend_142( + int opts, ObjCBlock9 block) { + return _lib._objc_msgSend_142( _id, _lib._sel_enumerateKeysAndObjectsWithOptions_usingBlock_1, opts, block._id); } - NSArray keysSortedByValueUsingComparator_( - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + NSArray keysSortedByValueUsingComparator_(ObjCBlock6 cmptr) { final _ret = _lib._objc_msgSend_115( _id, _lib._sel_keysSortedByValueUsingComparator_1, cmptr._id); return NSArray._(_ret, _lib, retain: true, release: true); } NSArray keysSortedByValueWithOptions_usingComparator_( - int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + int opts, ObjCBlock6 cmptr) { final _ret = _lib._objc_msgSend_116( _id, _lib._sel_keysSortedByValueWithOptions_usingComparator_1, @@ -38830,15 +38078,14 @@ class NSDictionary extends NSObject { return NSArray._(_ret, _lib, retain: true, release: true); } - NSObject keysOfEntriesPassingTest_( - ObjCBlock_bool_ObjCObject_ObjCObject_bool predicate) { + NSObject keysOfEntriesPassingTest_(ObjCBlock10 predicate) { final _ret = _lib._objc_msgSend_143( _id, _lib._sel_keysOfEntriesPassingTest_1, predicate._id); return NSObject._(_ret, _lib, retain: true, release: true); } NSObject keysOfEntriesWithOptions_passingTest_( - int opts, ObjCBlock_bool_ObjCObject_ObjCObject_bool predicate) { + int opts, ObjCBlock10 predicate) { final _ret = _lib._objc_msgSend_144(_id, _lib._sel_keysOfEntriesWithOptions_passingTest_1, opts, predicate._id); return NSObject._(_ret, _lib, retain: true, release: true); @@ -38846,7 +38093,8 @@ class NSDictionary extends NSObject { void getObjects_andKeys_(ffi.Pointer> objects, ffi.Pointer> keys) { - _lib._objc_msgSend_145(_id, _lib._sel_getObjects_andKeys_1, objects, keys); + return _lib._objc_msgSend_145( + _id, _lib._sel_getObjects_andKeys_1, objects, keys); } static NSDictionary dictionaryWithContentsOfFile_( @@ -39090,13 +38338,6 @@ class NSDictionary extends NSObject { return NSDictionary._(_ret, _lib, retain: false, release: true); } - static NSDictionary allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSDictionary1, _lib._sel_allocWithZone_1, zone); - return NSDictionary._(_ret, _lib, retain: false, release: true); - } - static NSDictionary alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSDictionary1, _lib._sel_alloc1); @@ -39108,7 +38349,7 @@ class NSDictionary extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSDictionary1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -39118,7 +38359,7 @@ class NSDictionary extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSDictionary1, + return _lib._objc_msgSend_15(_lib._class_NSDictionary1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -39151,7 +38392,7 @@ class NSDictionary extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSDictionary1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -39171,7 +38412,7 @@ class NSDictionary extends NSObject { } } -void _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_fnPtrTrampoline( +void _ObjCBlock9_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1, @@ -39188,35 +38429,30 @@ void _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_fnPtrTrampoline( ffi.Pointer arg2)>()(arg0, arg1, arg2); } -final _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_registerClosure(Function fn) { - final id = - ++_ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistry[id] = fn; +final _ObjCBlock9_closureRegistry = {}; +int _ObjCBlock9_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock9_registerClosure(Function fn) { + final id = ++_ObjCBlock9_closureRegistryIndex; + _ObjCBlock9_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureTrampoline( +void _ObjCBlock9_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureRegistry[ - block.ref.target.address] + return (_ObjCBlock9_closureRegistry[block.ref.target.address] as void Function(ffi.Pointer, ffi.Pointer, ffi.Pointer))(arg0, arg1, arg2); } -class ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock9 extends _ObjCBlockBase { + ObjCBlock9._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool.fromFunctionPointer( + ObjCBlock9.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -39233,14 +38469,14 @@ class ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool extends _ObjCBlockBase { ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_fnPtrTrampoline) + _ObjCBlock9_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool.fromFunction( + ObjCBlock9.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) @@ -39253,10 +38489,9 @@ class ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool extends _ObjCBlockBase { ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_closureTrampoline) + _ObjCBlock9_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool_registerClosure( - fn)), + _ObjCBlock9_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0, ffi.Pointer arg1, @@ -39278,7 +38513,7 @@ class ObjCBlock_ffiVoid_ObjCObject_ObjCObject_bool extends _ObjCBlockBase { } } -bool _ObjCBlock_bool_ObjCObject_ObjCObject_bool_fnPtrTrampoline( +bool _ObjCBlock10_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1, @@ -39295,59 +38530,56 @@ bool _ObjCBlock_bool_ObjCObject_ObjCObject_bool_fnPtrTrampoline( ffi.Pointer arg2)>()(arg0, arg1, arg2); } -final _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistry = - {}; -int _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_bool_ObjCObject_ObjCObject_bool_registerClosure(Function fn) { - final id = ++_ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistryIndex; - _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistry[id] = fn; +final _ObjCBlock10_closureRegistry = {}; +int _ObjCBlock10_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock10_registerClosure(Function fn) { + final id = ++_ObjCBlock10_closureRegistryIndex; + _ObjCBlock10_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureTrampoline( +bool _ObjCBlock10_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) { - return (_ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureRegistry[ - block.ref.target.address] + return (_ObjCBlock10_closureRegistry[block.ref.target.address] as bool Function(ffi.Pointer, ffi.Pointer, ffi.Pointer))(arg0, arg1, arg2); } -class ObjCBlock_bool_ObjCObject_ObjCObject_bool extends _ObjCBlockBase { - ObjCBlock_bool_ObjCObject_ObjCObject_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock10 extends _ObjCBlockBase { + ObjCBlock10._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_bool_ObjCObject_ObjCObject_bool.fromFunctionPointer( + ObjCBlock10.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< - ffi.NativeFunction< + ffi + .NativeFunction< ffi.Bool Function( ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>> ptr) : this._( - lib._newBlock1( - _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Bool Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2)>( - _ObjCBlock_bool_ObjCObject_ObjCObject_bool_fnPtrTrampoline, - false) - .cast(), - ptr.cast()), + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Bool Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2)>( + _ObjCBlock10_fnPtrTrampoline, false) + .cast(), + ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_bool_ObjCObject_ObjCObject_bool.fromFunction( + ObjCBlock10.fromFunction( SentryCocoa lib, bool Function(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) @@ -39360,10 +38592,9 @@ class ObjCBlock_bool_ObjCObject_ObjCObject_bool extends _ObjCBlockBase { ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>( - _ObjCBlock_bool_ObjCObject_ObjCObject_bool_closureTrampoline, - false) + _ObjCBlock10_closureTrampoline, false) .cast(), - _ObjCBlock_bool_ObjCObject_ObjCObject_bool_registerClosure(fn)), + _ObjCBlock10_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; bool call(ffi.Pointer arg0, ffi.Pointer arg1, @@ -39635,12 +38866,6 @@ class NSDate extends NSObject { return NSDate._(_ret, _lib, retain: false, release: true); } - static NSDate allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSDate1, _lib._sel_allocWithZone_1, zone); - return NSDate._(_ret, _lib, retain: false, release: true); - } - static NSDate alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSDate1, _lib._sel_alloc1); return NSDate._(_ret, _lib, retain: false, release: true); @@ -39651,7 +38876,7 @@ class NSDate extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSDate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -39661,7 +38886,7 @@ class NSDate extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSDate1, + return _lib._objc_msgSend_15(_lib._class_NSDate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -39694,7 +38919,7 @@ class NSDate extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSDate1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -39919,12 +39144,12 @@ class NSCalendarDate extends NSDate { } void setCalendarFormat_(NSString? format) { - _lib._objc_msgSend_192( + return _lib._objc_msgSend_192( _id, _lib._sel_setCalendarFormat_1, format?._id ?? ffi.nullptr); } void setTimeZone_(NSTimeZone? aTimeZone) { - _lib._objc_msgSend_193( + return _lib._objc_msgSend_193( _id, _lib._sel_setTimeZone_1, aTimeZone?._id ?? ffi.nullptr); } @@ -39936,7 +39161,7 @@ class NSCalendarDate extends NSDate { ffi.Pointer mip, ffi.Pointer sp, NSCalendarDate? date) { - _lib._objc_msgSend_194( + return _lib._objc_msgSend_194( _id, _lib._sel_years_months_days_hours_minutes_seconds_sinceDate_1, yp, @@ -39964,33 +39189,6 @@ class NSCalendarDate extends NSDate { : NSDate._(_ret, _lib, retain: true, release: true); } - @override - NSCalendarDate init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - @override - NSCalendarDate initWithTimeIntervalSinceReferenceDate_(double ti) { - final _ret = _lib._objc_msgSend_156( - _id, _lib._sel_initWithTimeIntervalSinceReferenceDate_1, ti); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - @override - NSCalendarDate initWithCoder_(NSCoder? coder) { - final _ret = _lib._objc_msgSend_42( - _id, _lib._sel_initWithCoder_1, coder?._id ?? ffi.nullptr); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - @override - NSCalendarDate dateByAddingTimeInterval_(double ti) { - final _ret = - _lib._objc_msgSend_156(_id, _lib._sel_dateByAddingTimeInterval_1, ti); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - static NSCalendarDate date(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSCalendarDate1, _lib._sel_date1); @@ -40036,31 +39234,6 @@ class NSCalendarDate extends NSDate { : NSDate._(_ret, _lib, retain: true, release: true); } - @override - NSCalendarDate initWithTimeIntervalSinceNow_(double secs) { - final _ret = _lib._objc_msgSend_156( - _id, _lib._sel_initWithTimeIntervalSinceNow_1, secs); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - @override - NSCalendarDate initWithTimeIntervalSince1970_(double secs) { - final _ret = _lib._objc_msgSend_156( - _id, _lib._sel_initWithTimeIntervalSince1970_1, secs); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - - @override - NSCalendarDate initWithTimeInterval_sinceDate_( - double secsToBeAdded, NSDate? date) { - final _ret = _lib._objc_msgSend_161( - _id, - _lib._sel_initWithTimeInterval_sinceDate_1, - secsToBeAdded, - date?._id ?? ffi.nullptr); - return NSCalendarDate._(_ret, _lib, retain: true, release: true); - } - static NSObject dateWithNaturalLanguageString_locale_( SentryCocoa _lib, NSString? string, NSObject locale) { final _ret = _lib._objc_msgSend_163( @@ -40090,13 +39263,6 @@ class NSCalendarDate extends NSDate { return NSCalendarDate._(_ret, _lib, retain: false, release: true); } - static NSCalendarDate allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSCalendarDate1, _lib._sel_allocWithZone_1, zone); - return NSCalendarDate._(_ret, _lib, retain: false, release: true); - } - static NSCalendarDate alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSCalendarDate1, _lib._sel_alloc1); @@ -40108,7 +39274,7 @@ class NSCalendarDate extends NSDate { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSCalendarDate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -40118,7 +39284,7 @@ class NSCalendarDate extends NSDate { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSCalendarDate1, + return _lib._objc_msgSend_15(_lib._class_NSCalendarDate1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -40151,7 +39317,7 @@ class NSCalendarDate extends NSDate { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSCalendarDate1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -40246,7 +39412,7 @@ class NSTimeZone extends NSObject { } static void resetSystemTimeZone(SentryCocoa _lib) { - _lib._objc_msgSend_1( + return _lib._objc_msgSend_1( _lib._class_NSTimeZone1, _lib._sel_resetSystemTimeZone1); } @@ -40259,7 +39425,7 @@ class NSTimeZone extends NSObject { } static void setDefaultTimeZone(SentryCocoa _lib, NSTimeZone? value) { - return _lib._objc_msgSend_169(_lib._class_NSTimeZone1, + _lib._objc_msgSend_169(_lib._class_NSTimeZone1, _lib._sel_setDefaultTimeZone_1, value?._id ?? ffi.nullptr); } @@ -40288,7 +39454,7 @@ class NSTimeZone extends NSObject { } static void setAbbreviationDictionary(SentryCocoa _lib, NSDictionary? value) { - return _lib._objc_msgSend_171(_lib._class_NSTimeZone1, + _lib._objc_msgSend_171(_lib._class_NSTimeZone1, _lib._sel_setAbbreviationDictionary_1, value?._id ?? ffi.nullptr); } @@ -40386,24 +39552,11 @@ class NSTimeZone extends NSObject { return NSTimeZone._(_ret, _lib, retain: true, release: true); } - @override - NSTimeZone init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSTimeZone._(_ret, _lib, retain: true, release: true); - } - static NSTimeZone new1(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSTimeZone1, _lib._sel_new1); return NSTimeZone._(_ret, _lib, retain: false, release: true); } - static NSTimeZone allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSTimeZone1, _lib._sel_allocWithZone_1, zone); - return NSTimeZone._(_ret, _lib, retain: false, release: true); - } - static NSTimeZone alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSTimeZone1, _lib._sel_alloc1); @@ -40415,7 +39568,7 @@ class NSTimeZone extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSTimeZone1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -40425,7 +39578,7 @@ class NSTimeZone extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSTimeZone1, + return _lib._objc_msgSend_15(_lib._class_NSTimeZone1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -40458,7 +39611,7 @@ class NSTimeZone extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSTimeZone1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -40882,12 +40035,6 @@ class NSLocale extends NSObject { return NSLocale._(_ret, _lib, retain: false, release: true); } - static NSLocale allocWithZone_(SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSLocale1, _lib._sel_allocWithZone_1, zone); - return NSLocale._(_ret, _lib, retain: false, release: true); - } - static NSLocale alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSLocale1, _lib._sel_alloc1); return NSLocale._(_ret, _lib, retain: false, release: true); @@ -40898,7 +40045,7 @@ class NSLocale extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSLocale1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -40908,7 +40055,7 @@ class NSLocale extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSLocale1, + return _lib._objc_msgSend_15(_lib._class_NSLocale1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -40941,7 +40088,7 @@ class NSLocale extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSLocale1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -41223,25 +40370,12 @@ class NSCharacterSet extends NSObject { : NSCharacterSet._(_ret, _lib, retain: true, release: true); } - @override - NSCharacterSet init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSCharacterSet._(_ret, _lib, retain: true, release: true); - } - static NSCharacterSet new1(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_new1); return NSCharacterSet._(_ret, _lib, retain: false, release: true); } - static NSCharacterSet allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSCharacterSet1, _lib._sel_allocWithZone_1, zone); - return NSCharacterSet._(_ret, _lib, retain: false, release: true); - } - static NSCharacterSet alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSCharacterSet1, _lib._sel_alloc1); @@ -41253,7 +40387,7 @@ class NSCharacterSet extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSCharacterSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -41263,7 +40397,7 @@ class NSCharacterSet extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSCharacterSet1, + return _lib._objc_msgSend_15(_lib._class_NSCharacterSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -41296,7 +40430,7 @@ class NSCharacterSet extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSCharacterSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -41366,7 +40500,7 @@ class NSURLHandle extends NSObject { static void registerURLHandleClass_( SentryCocoa _lib, NSObject anURLHandleSubclass) { - _lib._objc_msgSend_15(_lib._class_NSURLHandle1, + return _lib._objc_msgSend_15(_lib._class_NSURLHandle1, _lib._sel_registerURLHandleClass_1, anURLHandleSubclass._id); } @@ -41386,21 +40520,21 @@ class NSURLHandle extends NSObject { } void addClient_(NSObject? client) { - _lib._objc_msgSend_15( + return _lib._objc_msgSend_15( _id, _lib._sel_addClient_1, client?._id ?? ffi.nullptr); } void removeClient_(NSObject? client) { - _lib._objc_msgSend_15( + return _lib._objc_msgSend_15( _id, _lib._sel_removeClient_1, client?._id ?? ffi.nullptr); } void loadInBackground() { - _lib._objc_msgSend_1(_id, _lib._sel_loadInBackground1); + return _lib._objc_msgSend_1(_id, _lib._sel_loadInBackground1); } void cancelLoadInBackground() { - _lib._objc_msgSend_1(_id, _lib._sel_cancelLoadInBackground1); + return _lib._objc_msgSend_1(_id, _lib._sel_cancelLoadInBackground1); } NSData resourceData() { @@ -41418,16 +40552,18 @@ class NSURLHandle extends NSObject { } void flushCachedData() { - _lib._objc_msgSend_1(_id, _lib._sel_flushCachedData1); + return _lib._objc_msgSend_1(_id, _lib._sel_flushCachedData1); } void backgroundLoadDidFailWithReason_(NSString? reason) { - _lib._objc_msgSend_192(_id, _lib._sel_backgroundLoadDidFailWithReason_1, + return _lib._objc_msgSend_192( + _id, + _lib._sel_backgroundLoadDidFailWithReason_1, reason?._id ?? ffi.nullptr); } void didLoadBytes_loadComplete_(NSData? newBytes, bool yorn) { - _lib._objc_msgSend_243(_id, _lib._sel_didLoadBytes_loadComplete_1, + return _lib._objc_msgSend_243(_id, _lib._sel_didLoadBytes_loadComplete_1, newBytes?._id ?? ffi.nullptr, yorn); } @@ -41476,17 +40612,11 @@ class NSURLHandle extends NSObject { } void beginLoadInBackground() { - _lib._objc_msgSend_1(_id, _lib._sel_beginLoadInBackground1); + return _lib._objc_msgSend_1(_id, _lib._sel_beginLoadInBackground1); } void endLoadInBackground() { - _lib._objc_msgSend_1(_id, _lib._sel_endLoadInBackground1); - } - - @override - NSURLHandle init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLHandle._(_ret, _lib, retain: true, release: true); + return _lib._objc_msgSend_1(_id, _lib._sel_endLoadInBackground1); } static NSURLHandle new1(SentryCocoa _lib) { @@ -41494,13 +40624,6 @@ class NSURLHandle extends NSObject { return NSURLHandle._(_ret, _lib, retain: false, release: true); } - static NSURLHandle allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSURLHandle1, _lib._sel_allocWithZone_1, zone); - return NSURLHandle._(_ret, _lib, retain: false, release: true); - } - static NSURLHandle alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLHandle1, _lib._sel_alloc1); @@ -41512,7 +40635,7 @@ class NSURLHandle extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSURLHandle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -41522,7 +40645,7 @@ class NSURLHandle extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLHandle1, + return _lib._objc_msgSend_15(_lib._class_NSURLHandle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -41555,7 +40678,7 @@ class NSURLHandle extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSURLHandle1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -41600,11 +40723,8 @@ abstract class NSDataSearchOptions { static const int NSDataSearchAnchored = 2; } -void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2) { +void _ObjCBlock11_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { return block.ref.target .cast< ffi.NativeFunction< @@ -41615,34 +40735,27 @@ void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline( ffi.Pointer arg2)>()(arg0, arg1, arg2); } -final _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistry[id] = fn; +final _ObjCBlock11_closureRegistry = {}; +int _ObjCBlock11_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock11_registerClosure(Function fn) { + final id = ++_ObjCBlock11_closureRegistryIndex; + _ObjCBlock11_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, _NSRange, - ffi.Pointer))(arg0, arg1, arg2); +void _ObjCBlock11_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { + return (_ObjCBlock11_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer, _NSRange, ffi.Pointer))( + arg0, arg1, arg2); } -class ObjCBlock_ffiVoid_ffiVoid_NSRange_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ffiVoid_NSRange_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock11 extends _ObjCBlockBase { + ObjCBlock11._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ffiVoid_NSRange_bool.fromFunctionPointer( + ObjCBlock11.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -41657,14 +40770,14 @@ class ObjCBlock_ffiVoid_ffiVoid_NSRange_bool extends _ObjCBlockBase { ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_fnPtrTrampoline) + _ObjCBlock11_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ffiVoid_NSRange_bool.fromFunction( + ObjCBlock11.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) @@ -41677,9 +40790,9 @@ class ObjCBlock_ffiVoid_ffiVoid_NSRange_bool extends _ObjCBlockBase { ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_closureTrampoline) + _ObjCBlock11_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_ffiVoid_NSRange_bool_registerClosure(fn)), + _ObjCBlock11_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call( @@ -41710,7 +40823,7 @@ abstract class NSDataReadingOptions { static const int NSUncachedRead = 2; } -void _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_fnPtrTrampoline( +void _ObjCBlock12_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { return block.ref.target .cast< @@ -41721,52 +40834,48 @@ void _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_fnPtrTrampoline( arg0, arg1); } -final _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistryIndex; - _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistry[id] = fn; +final _ObjCBlock12_closureRegistry = {}; +int _ObjCBlock12_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock12_registerClosure(Function fn) { + final id = ++_ObjCBlock12_closureRegistryIndex; + _ObjCBlock12_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureTrampoline( +void _ObjCBlock12_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, int arg1) { - return (_ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureRegistry[block - .ref - .target - .address] as void Function(ffi.Pointer, int))(arg0, arg1); + return (_ObjCBlock12_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer, int))(arg0, arg1); } -class ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock12 extends _ObjCBlockBase { + ObjCBlock12._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong.fromFunctionPointer( + ObjCBlock12.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer arg0, ffi.UnsignedLong arg1)>> + 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, - ffi.UnsignedLong arg1)>( - _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_fnPtrTrampoline) - .cast(), - ptr.cast()), + lib + ._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.UnsignedLong arg1)>( + _ObjCBlock12_fnPtrTrampoline) + .cast(), + ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong.fromFunction( + ObjCBlock12.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0, int arg1) fn) : this._( lib._newBlock1( @@ -41775,9 +40884,9 @@ class ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.UnsignedLong arg1)>( - _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_closureTrampoline) + _ObjCBlock12_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_ffiVoid_ffiUnsignedLong_registerClosure(fn)), + _ObjCBlock12_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0, int arg1) { @@ -41840,7 +40949,7 @@ abstract class NSStringEnumerationOptions { static const int NSStringEnumerationLocalized = 1024; } -void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline( +void _ObjCBlock13_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, _NSRange arg1, @@ -41859,37 +40968,31 @@ void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline( ffi.Pointer arg3)>()(arg0, arg1, arg2, arg3); } -final _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistry[id] = fn; +final _ObjCBlock13_closureRegistry = {}; +int _ObjCBlock13_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock13_registerClosure(Function fn) { + final id = ++_ObjCBlock13_closureRegistryIndex; + _ObjCBlock13_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline( +void _ObjCBlock13_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, ffi.Pointer arg3) { - return (_ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureRegistry[ - block.ref.target.address] + return (_ObjCBlock13_closureRegistry[block.ref.target.address] as void Function(ffi.Pointer, _NSRange, _NSRange, ffi.Pointer))(arg0, arg1, arg2, arg3); } -class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock13 extends _ObjCBlockBase { + ObjCBlock13._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool.fromFunctionPointer( + ObjCBlock13.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -41905,14 +41008,14 @@ class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool extends _ObjCBlockBase { _NSRange arg1, _NSRange arg2, ffi.Pointer arg3)>( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_fnPtrTrampoline) + _ObjCBlock13_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool.fromFunction( + ObjCBlock13.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, ffi.Pointer arg3) @@ -41926,10 +41029,9 @@ class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool extends _ObjCBlockBase { _NSRange arg1, _NSRange arg2, ffi.Pointer arg3)>( - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_closureTrampoline) + _ObjCBlock13_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool_registerClosure( - fn)), + _ObjCBlock13_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0, _NSRange arg1, _NSRange arg2, @@ -41953,10 +41055,8 @@ class ObjCBlock_ffiVoid_NSString_NSRange_NSRange_bool extends _ObjCBlockBase { } } -void _ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { +void _ObjCBlock14_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { return block.ref.target .cast< ffi.NativeFunction< @@ -41967,31 +41067,26 @@ void _ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline( ffi.Pointer arg1)>()(arg0, arg1); } -final _ObjCBlock_ffiVoid_NSString_bool_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSString_bool_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSString_bool_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSString_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSString_bool_closureRegistry[id] = fn; +final _ObjCBlock14_closureRegistry = {}; +int _ObjCBlock14_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock14_registerClosure(Function fn) { + final id = ++_ObjCBlock14_closureRegistryIndex; + _ObjCBlock14_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_ffiVoid_NSString_bool_closureRegistry[ - block.ref.target.address] - as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); +void _ObjCBlock14_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return (_ObjCBlock14_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_ffiVoid_NSString_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSString_bool._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock14 extends _ObjCBlockBase { + ObjCBlock14._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSString_bool.fromFunctionPointer( + ObjCBlock14.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -42005,14 +41100,14 @@ class ObjCBlock_ffiVoid_NSString_bool extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_NSString_bool_fnPtrTrampoline) + _ObjCBlock14_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSString_bool.fromFunction( + ObjCBlock14.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0, ffi.Pointer arg1) fn) @@ -42023,9 +41118,9 @@ class ObjCBlock_ffiVoid_NSString_bool extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline) + _ObjCBlock14_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSString_bool_registerClosure(fn)), + _ObjCBlock14_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0, ffi.Pointer arg1) { @@ -42049,10 +41144,8 @@ abstract class NSStringEncodingConversionOptions { static const int NSStringEncodingConversionExternalRepresentation = 2; } -void _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1) { +void _ObjCBlock15_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1) { return block.ref.target .cast< ffi.NativeFunction< @@ -42063,36 +41156,26 @@ void _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_fnPtrTrampoline( ffi.Pointer arg0, int arg1)>()(arg0, arg1); } -final _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistryIndex = - 0; -ffi.Pointer - _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistryIndex; - _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistry[id] = fn; +final _ObjCBlock15_closureRegistry = {}; +int _ObjCBlock15_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock15_registerClosure(Function fn) { + final id = ++_ObjCBlock15_closureRegistryIndex; + _ObjCBlock15_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1) { - return (_ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, int))(arg0, arg1); +void _ObjCBlock15_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1) { + return (_ObjCBlock15_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer, int))(arg0, arg1); } -class ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong - extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock15 extends _ObjCBlockBase { + ObjCBlock15._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong.fromFunctionPointer( + ObjCBlock15.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -42106,15 +41189,14 @@ class ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.UnsignedLong arg1)>( - _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_fnPtrTrampoline) + _ObjCBlock15_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong.fromFunction( - SentryCocoa lib, + ObjCBlock15.fromFunction(SentryCocoa lib, void Function(ffi.Pointer arg0, int arg1) fn) : this._( lib._newBlock1( @@ -42123,10 +41205,9 @@ class ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.UnsignedLong arg1)>( - _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_closureTrampoline) + _ObjCBlock15_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_ffiUnsignedShort_ffiUnsignedLong_registerClosure( - fn)), + _ObjCBlock15_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0, int arg1) { @@ -42258,25 +41339,12 @@ class NSOrthography extends NSObject { return NSOrthography._(_ret, _lib, retain: true, release: true); } - @override - NSOrthography init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSOrthography._(_ret, _lib, retain: true, release: true); - } - static NSOrthography new1(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOrthography1, _lib._sel_new1); return NSOrthography._(_ret, _lib, retain: false, release: true); } - static NSOrthography allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSOrthography1, _lib._sel_allocWithZone_1, zone); - return NSOrthography._(_ret, _lib, retain: false, release: true); - } - static NSOrthography alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOrthography1, _lib._sel_alloc1); @@ -42288,7 +41356,7 @@ class NSOrthography extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSOrthography1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -42298,7 +41366,7 @@ class NSOrthography extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSOrthography1, + return _lib._objc_msgSend_15(_lib._class_NSOrthography1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -42331,7 +41399,7 @@ class NSOrthography extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSOrthography1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -42351,10 +41419,8 @@ class NSOrthography extends NSObject { } } -void _ObjCBlock_ffiVoid_ObjCObject_bool_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { +void _ObjCBlock16_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { return block.ref.target .cast< ffi.NativeFunction< @@ -42365,32 +41431,26 @@ void _ObjCBlock_ffiVoid_ObjCObject_bool_fnPtrTrampoline( ffi.Pointer arg1)>()(arg0, arg1); } -final _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistry = {}; -int _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_ObjCObject_bool_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistryIndex; - _ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistry[id] = fn; +final _ObjCBlock16_closureRegistry = {}; +int _ObjCBlock16_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock16_registerClosure(Function fn) { + final id = ++_ObjCBlock16_closureRegistryIndex; + _ObjCBlock16_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_ObjCObject_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_ffiVoid_ObjCObject_bool_closureRegistry[ - block.ref.target.address] - as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); +void _ObjCBlock16_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return (_ObjCBlock16_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_ffiVoid_ObjCObject_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ObjCObject_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock16 extends _ObjCBlockBase { + ObjCBlock16._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ObjCObject_bool.fromFunctionPointer( + ObjCBlock16.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -42404,14 +41464,14 @@ class ObjCBlock_ffiVoid_ObjCObject_bool extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_ObjCObject_bool_fnPtrTrampoline) + _ObjCBlock16_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ObjCObject_bool.fromFunction( + ObjCBlock16.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0, ffi.Pointer arg1) fn) @@ -42422,9 +41482,9 @@ class ObjCBlock_ffiVoid_ObjCObject_bool extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_ObjCObject_bool_closureTrampoline) + _ObjCBlock16_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_ObjCObject_bool_registerClosure(fn)), + _ObjCBlock16_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0, ffi.Pointer arg1) { @@ -42443,10 +41503,8 @@ class ObjCBlock_ffiVoid_ObjCObject_bool extends _ObjCBlockBase { } } -bool _ObjCBlock_bool_ObjCObject_bool_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { +bool _ObjCBlock17_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { return block.ref.target .cast< ffi.NativeFunction< @@ -42457,34 +41515,30 @@ bool _ObjCBlock_bool_ObjCObject_bool_fnPtrTrampoline( ffi.Pointer arg1)>()(arg0, arg1); } -final _ObjCBlock_bool_ObjCObject_bool_closureRegistry = {}; -int _ObjCBlock_bool_ObjCObject_bool_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_bool_ObjCObject_bool_registerClosure( - Function fn) { - final id = ++_ObjCBlock_bool_ObjCObject_bool_closureRegistryIndex; - _ObjCBlock_bool_ObjCObject_bool_closureRegistry[id] = fn; +final _ObjCBlock17_closureRegistry = {}; +int _ObjCBlock17_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock17_registerClosure(Function fn) { + final id = ++_ObjCBlock17_closureRegistryIndex; + _ObjCBlock17_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock_bool_ObjCObject_bool_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_bool_ObjCObject_bool_closureRegistry[ - block.ref.target.address] - as bool Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); +bool _ObjCBlock17_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return (_ObjCBlock17_closureRegistry[block.ref.target.address] as bool + Function(ffi.Pointer, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_bool_ObjCObject_bool extends _ObjCBlockBase { - ObjCBlock_bool_ObjCObject_bool._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock17 extends _ObjCBlockBase { + ObjCBlock17._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_bool_ObjCObject_bool.fromFunctionPointer( + ObjCBlock17.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< - ffi.NativeFunction< + ffi + .NativeFunction< ffi.Bool Function(ffi.Pointer arg0, ffi.Pointer arg1)>> ptr) @@ -42496,15 +41550,14 @@ class ObjCBlock_bool_ObjCObject_bool extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_bool_ObjCObject_bool_fnPtrTrampoline, - false) + _ObjCBlock17_fnPtrTrampoline, false) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_bool_ObjCObject_bool.fromFunction( + ObjCBlock17.fromFunction( SentryCocoa lib, bool Function(ffi.Pointer arg0, ffi.Pointer arg1) fn) @@ -42515,10 +41568,9 @@ class ObjCBlock_bool_ObjCObject_bool extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_bool_ObjCObject_bool_closureTrampoline, - false) + _ObjCBlock17_closureTrampoline, false) .cast(), - _ObjCBlock_bool_ObjCObject_bool_registerClosure(fn)), + _ObjCBlock17_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; bool call(ffi.Pointer arg0, ffi.Pointer arg1) { @@ -42579,8 +41631,8 @@ class NSFileManager extends NSObject { } void unmountVolumeAtURL_options_completionHandler_( - NSURL? url, int mask, ObjCBlock_ffiVoid_NSError completionHandler) { - _lib._objc_msgSend_404( + NSURL? url, int mask, ObjCBlock18 completionHandler) { + return _lib._objc_msgSend_404( _id, _lib._sel_unmountVolumeAtURL_options_completionHandler_1, url?._id ?? ffi.nullptr, @@ -42688,7 +41740,7 @@ class NSFileManager extends NSObject { } set delegate(NSObject? value) { - return _lib._objc_msgSend_387( + _lib._objc_msgSend_387( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } @@ -42976,10 +42028,7 @@ class NSFileManager extends NSObject { } NSObject enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_( - NSURL? url, - NSArray? keys, - int mask, - ObjCBlock_bool_NSURL_NSError handler) { + NSURL? url, NSArray? keys, int mask, ObjCBlock19 handler) { final _ret = _lib._objc_msgSend_427( _id, _lib._sel_enumeratorAtURL_includingPropertiesForKeys_options_errorHandler_1, @@ -43106,8 +42155,8 @@ class NSFileManager extends NSObject { } void getFileProviderServicesForItemAtURL_completionHandler_( - NSURL? url, ObjCBlock_ffiVoid_NSDictionary_NSError completionHandler) { - _lib._objc_msgSend_435( + NSURL? url, ObjCBlock20 completionHandler) { + return _lib._objc_msgSend_435( _id, _lib._sel_getFileProviderServicesForItemAtURL_completionHandler_1, url?._id ?? ffi.nullptr, @@ -43144,25 +42193,12 @@ class NSFileManager extends NSObject { return NSURL._(_ret, _lib, retain: true, release: true); } - @override - NSFileManager init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSFileManager._(_ret, _lib, retain: true, release: true); - } - static NSFileManager new1(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSFileManager1, _lib._sel_new1); return NSFileManager._(_ret, _lib, retain: false, release: true); } - static NSFileManager allocWithZone_( - SentryCocoa _lib, ffi.Pointer<_NSZone> zone) { - final _ret = _lib._objc_msgSend_3( - _lib._class_NSFileManager1, _lib._sel_allocWithZone_1, zone); - return NSFileManager._(_ret, _lib, retain: false, release: true); - } - static NSFileManager alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSFileManager1, _lib._sel_alloc1); @@ -43174,7 +42210,7 @@ class NSFileManager extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSFileManager1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -43184,7 +42220,7 @@ class NSFileManager extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSFileManager1, + return _lib._objc_msgSend_15(_lib._class_NSFileManager1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -43217,7 +42253,7 @@ class NSFileManager extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSFileManager1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -43247,7 +42283,7 @@ abstract class NSFileManagerUnmountOptions { static const int NSFileManagerUnmountWithoutUI = 2; } -void _ObjCBlock_ffiVoid_NSError_fnPtrTrampoline( +void _ObjCBlock18_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { return block.ref.target .cast< @@ -43255,26 +42291,26 @@ void _ObjCBlock_ffiVoid_NSError_fnPtrTrampoline( .asFunction arg0)>()(arg0); } -final _ObjCBlock_ffiVoid_NSError_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSError_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSError_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSError_closureRegistry[id] = fn; +final _ObjCBlock18_closureRegistry = {}; +int _ObjCBlock18_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock18_registerClosure(Function fn) { + final id = ++_ObjCBlock18_closureRegistryIndex; + _ObjCBlock18_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSError_closureTrampoline( +void _ObjCBlock18_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSError_closureRegistry[block.ref.target.address] - as void Function(ffi.Pointer))(arg0); + return (_ObjCBlock18_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer))(arg0); } -class ObjCBlock_ffiVoid_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSError._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock18 extends _ObjCBlockBase { + ObjCBlock18._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSError.fromFunctionPointer( + ObjCBlock18.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi @@ -43285,23 +42321,23 @@ class ObjCBlock_ffiVoid_NSError extends _ObjCBlockBase { _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSError_fnPtrTrampoline) + _ObjCBlock18_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSError.fromFunction( + ObjCBlock18.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_NSError_closureTrampoline) + _ObjCBlock18_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSError_registerClosure(fn)), + _ObjCBlock18_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0) { @@ -43368,10 +42404,8 @@ abstract class NSURLRelationship { static const int NSURLRelationshipOther = 2; } -bool _ObjCBlock_bool_NSURL_NSError_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { +bool _ObjCBlock19_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { return block.ref.target .cast< ffi.NativeFunction< @@ -43382,31 +42416,26 @@ bool _ObjCBlock_bool_NSURL_NSError_fnPtrTrampoline( ffi.Pointer arg1)>()(arg0, arg1); } -final _ObjCBlock_bool_NSURL_NSError_closureRegistry = {}; -int _ObjCBlock_bool_NSURL_NSError_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_bool_NSURL_NSError_registerClosure( - Function fn) { - final id = ++_ObjCBlock_bool_NSURL_NSError_closureRegistryIndex; - _ObjCBlock_bool_NSURL_NSError_closureRegistry[id] = fn; +final _ObjCBlock19_closureRegistry = {}; +int _ObjCBlock19_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock19_registerClosure(Function fn) { + final id = ++_ObjCBlock19_closureRegistryIndex; + _ObjCBlock19_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -bool _ObjCBlock_bool_NSURL_NSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_bool_NSURL_NSError_closureRegistry[ - block.ref.target.address] - as bool Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); +bool _ObjCBlock19_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return (_ObjCBlock19_closureRegistry[block.ref.target.address] as bool + Function(ffi.Pointer, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_bool_NSURL_NSError extends _ObjCBlockBase { - ObjCBlock_bool_NSURL_NSError._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock19 extends _ObjCBlockBase { + ObjCBlock19._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_bool_NSURL_NSError.fromFunctionPointer( + ObjCBlock19.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -43420,14 +42449,14 @@ class ObjCBlock_bool_NSURL_NSError extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_bool_NSURL_NSError_fnPtrTrampoline, false) + _ObjCBlock19_fnPtrTrampoline, false) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_bool_NSURL_NSError.fromFunction( + ObjCBlock19.fromFunction( SentryCocoa lib, bool Function(ffi.Pointer arg0, ffi.Pointer arg1) fn) @@ -43438,9 +42467,9 @@ class ObjCBlock_bool_NSURL_NSError extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_bool_NSURL_NSError_closureTrampoline, false) + _ObjCBlock19_closureTrampoline, false) .cast(), - _ObjCBlock_bool_NSURL_NSError_registerClosure(fn)), + _ObjCBlock19_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; bool call(ffi.Pointer arg0, ffi.Pointer arg1) { @@ -43464,10 +42493,8 @@ abstract class NSFileManagerItemReplacementOptions { static const int NSFileManagerItemReplacementWithoutDeletingBackupItem = 2; } -void _ObjCBlock_ffiVoid_NSDictionary_NSError_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { +void _ObjCBlock20_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { return block.ref.target .cast< ffi.NativeFunction< @@ -43478,33 +42505,26 @@ void _ObjCBlock_ffiVoid_NSDictionary_NSError_fnPtrTrampoline( 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; +final _ObjCBlock20_closureRegistry = {}; +int _ObjCBlock20_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock20_registerClosure(Function fn) { + final id = ++_ObjCBlock20_closureRegistryIndex; + _ObjCBlock20_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); +void _ObjCBlock20_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return (_ObjCBlock20_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) +class ObjCBlock20 extends _ObjCBlockBase { + ObjCBlock20._(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( + ObjCBlock20.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -43518,14 +42538,14 @@ class ObjCBlock_ffiVoid_NSDictionary_NSError extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_NSDictionary_NSError_fnPtrTrampoline) + _ObjCBlock20_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSDictionary_NSError.fromFunction( + ObjCBlock20.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0, ffi.Pointer arg1) fn) @@ -43536,9 +42556,9 @@ class ObjCBlock_ffiVoid_NSDictionary_NSError extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_NSDictionary_NSError_closureTrampoline) + _ObjCBlock20_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSDictionary_NSError_registerClosure(fn)), + _ObjCBlock20_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0, ffi.Pointer arg1) { @@ -43581,24 +42601,24 @@ class NSMutableArray extends NSArray { } void addObject_(NSObject anObject) { - _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, anObject._id); + return _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, anObject._id); } void insertObject_atIndex_(NSObject anObject, int index) { - _lib._objc_msgSend_438( + return _lib._objc_msgSend_438( _id, _lib._sel_insertObject_atIndex_1, anObject._id, index); } void removeLastObject() { - _lib._objc_msgSend_1(_id, _lib._sel_removeLastObject1); + return _lib._objc_msgSend_1(_id, _lib._sel_removeLastObject1); } void removeObjectAtIndex_(int index) { - _lib._objc_msgSend_439(_id, _lib._sel_removeObjectAtIndex_1, index); + return _lib._objc_msgSend_439(_id, _lib._sel_removeObjectAtIndex_1, index); } void replaceObjectAtIndex_withObject_(int index, NSObject anObject) { - _lib._objc_msgSend_440( + return _lib._objc_msgSend_440( _id, _lib._sel_replaceObjectAtIndex_withObject_1, index, anObject._id); } @@ -43622,56 +42642,56 @@ class NSMutableArray extends NSArray { } void addObjectsFromArray_(NSArray? otherArray) { - _lib._objc_msgSend_441( + return _lib._objc_msgSend_441( _id, _lib._sel_addObjectsFromArray_1, otherArray?._id ?? ffi.nullptr); } void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { - _lib._objc_msgSend_442( + return _lib._objc_msgSend_442( _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); } void removeAllObjects() { - _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } void removeObject_inRange_(NSObject anObject, _NSRange range) { - _lib._objc_msgSend_443( + return _lib._objc_msgSend_443( _id, _lib._sel_removeObject_inRange_1, anObject._id, range); } void removeObject_(NSObject anObject) { - _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, anObject._id); + return _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, anObject._id); } void removeObjectIdenticalTo_inRange_(NSObject anObject, _NSRange range) { - _lib._objc_msgSend_443( + return _lib._objc_msgSend_443( _id, _lib._sel_removeObjectIdenticalTo_inRange_1, anObject._id, range); } void removeObjectIdenticalTo_(NSObject anObject) { - _lib._objc_msgSend_15( + return _lib._objc_msgSend_15( _id, _lib._sel_removeObjectIdenticalTo_1, anObject._id); } void removeObjectsFromIndices_numIndices_( ffi.Pointer indices, int cnt) { - _lib._objc_msgSend_444( + return _lib._objc_msgSend_444( _id, _lib._sel_removeObjectsFromIndices_numIndices_1, indices, cnt); } void removeObjectsInArray_(NSArray? otherArray) { - _lib._objc_msgSend_441( + return _lib._objc_msgSend_441( _id, _lib._sel_removeObjectsInArray_1, otherArray?._id ?? ffi.nullptr); } void removeObjectsInRange_(_NSRange range) { - _lib._objc_msgSend_445(_id, _lib._sel_removeObjectsInRange_1, range); + return _lib._objc_msgSend_445(_id, _lib._sel_removeObjectsInRange_1, range); } void replaceObjectsInRange_withObjectsFromArray_range_( _NSRange range, NSArray? otherArray, _NSRange otherRange) { - _lib._objc_msgSend_446( + return _lib._objc_msgSend_446( _id, _lib._sel_replaceObjectsInRange_withObjectsFromArray_range_1, range, @@ -43681,7 +42701,7 @@ class NSMutableArray extends NSArray { void replaceObjectsInRange_withObjectsFromArray_( _NSRange range, NSArray? otherArray) { - _lib._objc_msgSend_447( + return _lib._objc_msgSend_447( _id, _lib._sel_replaceObjectsInRange_withObjectsFromArray_1, range, @@ -43689,7 +42709,7 @@ class NSMutableArray extends NSArray { } void setArray_(NSArray? otherArray) { - _lib._objc_msgSend_441( + return _lib._objc_msgSend_441( _id, _lib._sel_setArray_1, otherArray?._id ?? ffi.nullptr); } @@ -43700,43 +42720,45 @@ class NSMutableArray extends NSArray { ffi.Pointer, ffi.Pointer)>> compare, ffi.Pointer context) { - _lib._objc_msgSend_448( + return _lib._objc_msgSend_448( _id, _lib._sel_sortUsingFunction_context_1, compare, context); } void sortUsingSelector_(ffi.Pointer comparator) { - _lib._objc_msgSend_7(_id, _lib._sel_sortUsingSelector_1, comparator); + return _lib._objc_msgSend_7(_id, _lib._sel_sortUsingSelector_1, comparator); } void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { - _lib._objc_msgSend_449(_id, _lib._sel_insertObjects_atIndexes_1, + return _lib._objc_msgSend_449(_id, _lib._sel_insertObjects_atIndexes_1, objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); } void removeObjectsAtIndexes_(NSIndexSet? indexes) { - _lib._objc_msgSend_450( + return _lib._objc_msgSend_450( _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); } void replaceObjectsAtIndexes_withObjects_( NSIndexSet? indexes, NSArray? objects) { - _lib._objc_msgSend_451(_id, _lib._sel_replaceObjectsAtIndexes_withObjects_1, - indexes?._id ?? ffi.nullptr, objects?._id ?? ffi.nullptr); + return _lib._objc_msgSend_451( + _id, + _lib._sel_replaceObjectsAtIndexes_withObjects_1, + indexes?._id ?? ffi.nullptr, + objects?._id ?? ffi.nullptr); } void setObject_atIndexedSubscript_(NSObject obj, int idx) { - _lib._objc_msgSend_438( + return _lib._objc_msgSend_438( _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); } - void sortUsingComparator_( - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - _lib._objc_msgSend_452(_id, _lib._sel_sortUsingComparator_1, cmptr._id); + void sortUsingComparator_(ObjCBlock6 cmptr) { + return _lib._objc_msgSend_452( + _id, _lib._sel_sortUsingComparator_1, cmptr._id); } - void sortWithOptions_usingComparator_( - int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - _lib._objc_msgSend_453( + void sortWithOptions_usingComparator_(int opts, ObjCBlock6 cmptr) { + return _lib._objc_msgSend_453( _id, _lib._sel_sortWithOptions_usingComparator_1, opts, cmptr._id); } @@ -43772,28 +42794,20 @@ class NSMutableArray extends NSArray { } void applyDifference_(NSObject? difference) { - _lib._objc_msgSend_15( + return _lib._objc_msgSend_15( _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); } void sortUsingDescriptors_(NSArray? sortDescriptors) { - _lib._objc_msgSend_441(_id, _lib._sel_sortUsingDescriptors_1, + return _lib._objc_msgSend_441(_id, _lib._sel_sortUsingDescriptors_1, sortDescriptors?._id ?? ffi.nullptr); } void filterUsingPredicate_(NSPredicate? predicate) { - _lib._objc_msgSend_456( + return _lib._objc_msgSend_456( _id, _lib._sel_filterUsingPredicate_1, predicate?._id ?? ffi.nullptr); } - @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 NSMutableArray array(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_array1); @@ -43825,27 +42839,6 @@ class NSMutableArray extends NSArray { return NSMutableArray._(_ret, _lib, retain: true, release: true); } - @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); - } - - @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); - } - - @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 NSArray arrayWithContentsOfURL_error_(SentryCocoa _lib, NSURL? url, ffi.Pointer> error) { final _ret = _lib._objc_msgSend_119( @@ -43862,13 +42855,6 @@ class NSMutableArray extends NSArray { return NSMutableArray._(_ret, _lib, retain: false, release: true); } - static NSMutableArray 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); - } - static NSMutableArray alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableArray1, _lib._sel_alloc1); @@ -43880,7 +42866,7 @@ class NSMutableArray extends NSArray { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSMutableArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -43890,7 +42876,7 @@ class NSMutableArray extends NSArray { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableArray1, + return _lib._objc_msgSend_15(_lib._class_NSMutableArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -43923,7 +42909,7 @@ class NSMutableArray extends NSArray { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSMutableArray1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -43968,16 +42954,16 @@ class NSMutableOrderedSet extends NSOrderedSet { } void insertObject_atIndex_(NSObject object, int idx) { - _lib._objc_msgSend_438( + return _lib._objc_msgSend_438( _id, _lib._sel_insertObject_atIndex_1, object._id, idx); } void removeObjectAtIndex_(int idx) { - _lib._objc_msgSend_439(_id, _lib._sel_removeObjectAtIndex_1, idx); + return _lib._objc_msgSend_439(_id, _lib._sel_removeObjectAtIndex_1, idx); } void replaceObjectAtIndex_withObject_(int idx, NSObject object) { - _lib._objc_msgSend_440( + return _lib._objc_msgSend_440( _id, _lib._sel_replaceObjectAtIndex_withObject_1, idx, object._id); } @@ -44001,46 +42987,48 @@ class NSMutableOrderedSet extends NSOrderedSet { } void addObject_(NSObject object) { - _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); + return _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); } void addObjects_count_( ffi.Pointer> objects, int count) { - _lib._objc_msgSend_467(_id, _lib._sel_addObjects_count_1, objects, count); + return _lib._objc_msgSend_467( + _id, _lib._sel_addObjects_count_1, objects, count); } void addObjectsFromArray_(NSArray? array) { - _lib._objc_msgSend_441( + return _lib._objc_msgSend_441( _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); } void exchangeObjectAtIndex_withObjectAtIndex_(int idx1, int idx2) { - _lib._objc_msgSend_442( + return _lib._objc_msgSend_442( _id, _lib._sel_exchangeObjectAtIndex_withObjectAtIndex_1, idx1, idx2); } void moveObjectsAtIndexes_toIndex_(NSIndexSet? indexes, int idx) { - _lib._objc_msgSend_468(_id, _lib._sel_moveObjectsAtIndexes_toIndex_1, + return _lib._objc_msgSend_468(_id, _lib._sel_moveObjectsAtIndexes_toIndex_1, indexes?._id ?? ffi.nullptr, idx); } void insertObjects_atIndexes_(NSArray? objects, NSIndexSet? indexes) { - _lib._objc_msgSend_449(_id, _lib._sel_insertObjects_atIndexes_1, + return _lib._objc_msgSend_449(_id, _lib._sel_insertObjects_atIndexes_1, objects?._id ?? ffi.nullptr, indexes?._id ?? ffi.nullptr); } void setObject_atIndex_(NSObject obj, int idx) { - _lib._objc_msgSend_438(_id, _lib._sel_setObject_atIndex_1, obj._id, idx); + return _lib._objc_msgSend_438( + _id, _lib._sel_setObject_atIndex_1, obj._id, idx); } void setObject_atIndexedSubscript_(NSObject obj, int idx) { - _lib._objc_msgSend_438( + return _lib._objc_msgSend_438( _id, _lib._sel_setObject_atIndexedSubscript_1, obj._id, idx); } void replaceObjectsInRange_withObjects_count_( _NSRange range, ffi.Pointer> objects, int count) { - _lib._objc_msgSend_469( + return _lib._objc_msgSend_469( _id, _lib._sel_replaceObjectsInRange_withObjects_count_1, range, @@ -44050,77 +43038,79 @@ class NSMutableOrderedSet extends NSOrderedSet { void replaceObjectsAtIndexes_withObjects_( NSIndexSet? indexes, NSArray? objects) { - _lib._objc_msgSend_451(_id, _lib._sel_replaceObjectsAtIndexes_withObjects_1, - indexes?._id ?? ffi.nullptr, objects?._id ?? ffi.nullptr); + return _lib._objc_msgSend_451( + _id, + _lib._sel_replaceObjectsAtIndexes_withObjects_1, + indexes?._id ?? ffi.nullptr, + objects?._id ?? ffi.nullptr); } void removeObjectsInRange_(_NSRange range) { - _lib._objc_msgSend_445(_id, _lib._sel_removeObjectsInRange_1, range); + return _lib._objc_msgSend_445(_id, _lib._sel_removeObjectsInRange_1, range); } void removeObjectsAtIndexes_(NSIndexSet? indexes) { - _lib._objc_msgSend_450( + return _lib._objc_msgSend_450( _id, _lib._sel_removeObjectsAtIndexes_1, indexes?._id ?? ffi.nullptr); } void removeAllObjects() { - _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } void removeObject_(NSObject object) { - _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); + return _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); } void removeObjectsInArray_(NSArray? array) { - _lib._objc_msgSend_441( + return _lib._objc_msgSend_441( _id, _lib._sel_removeObjectsInArray_1, array?._id ?? ffi.nullptr); } void intersectOrderedSet_(NSOrderedSet? other) { - _lib._objc_msgSend_470( + return _lib._objc_msgSend_470( _id, _lib._sel_intersectOrderedSet_1, other?._id ?? ffi.nullptr); } void minusOrderedSet_(NSOrderedSet? other) { - _lib._objc_msgSend_470( + return _lib._objc_msgSend_470( _id, _lib._sel_minusOrderedSet_1, other?._id ?? ffi.nullptr); } void unionOrderedSet_(NSOrderedSet? other) { - _lib._objc_msgSend_470( + return _lib._objc_msgSend_470( _id, _lib._sel_unionOrderedSet_1, other?._id ?? ffi.nullptr); } void intersectSet_(NSSet? other) { - _lib._objc_msgSend_471( + return _lib._objc_msgSend_471( _id, _lib._sel_intersectSet_1, other?._id ?? ffi.nullptr); } void minusSet_(NSSet? other) { - _lib._objc_msgSend_471( + return _lib._objc_msgSend_471( _id, _lib._sel_minusSet_1, other?._id ?? ffi.nullptr); } void unionSet_(NSSet? other) { - _lib._objc_msgSend_471( + return _lib._objc_msgSend_471( _id, _lib._sel_unionSet_1, other?._id ?? ffi.nullptr); } - void sortUsingComparator_( - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - _lib._objc_msgSend_452(_id, _lib._sel_sortUsingComparator_1, cmptr._id); + void sortUsingComparator_(ObjCBlock6 cmptr) { + return _lib._objc_msgSend_452( + _id, _lib._sel_sortUsingComparator_1, cmptr._id); } - void sortWithOptions_usingComparator_( - int opts, ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { - _lib._objc_msgSend_453( + void sortWithOptions_usingComparator_(int opts, ObjCBlock6 cmptr) { + return _lib._objc_msgSend_453( _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_472(_id, _lib._sel_sortRange_options_usingComparator_1, - range, opts, cmptr._id); + void sortRange_options_usingComparator_( + _NSRange range, int opts, ObjCBlock6 cmptr) { + return _lib._objc_msgSend_472(_id, + _lib._sel_sortRange_options_usingComparator_1, range, opts, cmptr._id); } static NSMutableOrderedSet orderedSetWithCapacity_( @@ -44131,28 +43121,20 @@ class NSMutableOrderedSet extends NSOrderedSet { } void applyDifference_(NSObject? difference) { - _lib._objc_msgSend_15( + return _lib._objc_msgSend_15( _id, _lib._sel_applyDifference_1, difference?._id ?? ffi.nullptr); } void sortUsingDescriptors_(NSArray? sortDescriptors) { - _lib._objc_msgSend_441(_id, _lib._sel_sortUsingDescriptors_1, + return _lib._objc_msgSend_441(_id, _lib._sel_sortUsingDescriptors_1, sortDescriptors?._id ?? ffi.nullptr); } void filterUsingPredicate_(NSPredicate? p) { - _lib._objc_msgSend_456( + return _lib._objc_msgSend_456( _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); @@ -44229,103 +43211,12 @@ class NSMutableOrderedSet extends NSOrderedSet { 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_459( - _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_462( - _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_460( - _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_461( - _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_382( - _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_383( - _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); @@ -44337,7 +43228,7 @@ class NSMutableOrderedSet extends NSOrderedSet { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSMutableOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -44347,7 +43238,7 @@ class NSMutableOrderedSet extends NSOrderedSet { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableOrderedSet1, + return _lib._objc_msgSend_15(_lib._class_NSMutableOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -44380,7 +43271,7 @@ class NSMutableOrderedSet extends NSOrderedSet { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSMutableOrderedSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -44457,7 +43348,8 @@ class NSOrderedSet extends NSObject { void getObjects_range_( ffi.Pointer> objects, _NSRange range) { - _lib._objc_msgSend_68(_id, _lib._sel_getObjects_range_1, objects, range); + return _lib._objc_msgSend_68( + _id, _lib._sel_getObjects_range_1, objects, range); } NSArray objectsAtIndexes_(NSIndexSet? indexes) { @@ -44542,21 +43434,19 @@ class NSOrderedSet extends NSObject { : NSSet._(_ret, _lib, retain: true, release: true); } - void enumerateObjectsUsingBlock_( - ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool block) { - _lib._objc_msgSend_106( + void enumerateObjectsUsingBlock_(ObjCBlock4 block) { + return _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, + void enumerateObjectsWithOptions_usingBlock_(int opts, ObjCBlock4 block) { + return _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( + void enumerateObjectsAtIndexes_options_usingBlock_( + NSIndexSet? s, int opts, ObjCBlock4 block) { + return _lib._objc_msgSend_108( _id, _lib._sel_enumerateObjectsAtIndexes_options_usingBlock_1, s?._id ?? ffi.nullptr, @@ -44564,20 +43454,18 @@ class NSOrderedSet extends NSObject { block._id); } - int indexOfObjectPassingTest_( - ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + int indexOfObjectPassingTest_(ObjCBlock5 predicate) { return _lib._objc_msgSend_109( _id, _lib._sel_indexOfObjectPassingTest_1, predicate._id); } - int indexOfObjectWithOptions_passingTest_( - int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + int indexOfObjectWithOptions_passingTest_(int opts, ObjCBlock5 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) { + int indexOfObjectAtIndexes_options_passingTest_( + NSIndexSet? s, int opts, ObjCBlock5 predicate) { return _lib._objc_msgSend_111( _id, _lib._sel_indexOfObjectAtIndexes_options_passingTest_1, @@ -44586,15 +43474,14 @@ class NSOrderedSet extends NSObject { predicate._id); } - NSIndexSet indexesOfObjectsPassingTest_( - ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + NSIndexSet indexesOfObjectsPassingTest_(ObjCBlock5 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) { + int opts, ObjCBlock5 predicate) { final _ret = _lib._objc_msgSend_113( _id, _lib._sel_indexesOfObjectsWithOptions_passingTest_1, @@ -44603,8 +43490,8 @@ class NSOrderedSet extends NSObject { return NSIndexSet._(_ret, _lib, retain: true, release: true); } - NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_(NSIndexSet? s, - int opts, ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool predicate) { + NSIndexSet indexesOfObjectsAtIndexes_options_passingTest_( + NSIndexSet? s, int opts, ObjCBlock5 predicate) { final _ret = _lib._objc_msgSend_114( _id, _lib._sel_indexesOfObjectsAtIndexes_options_passingTest_1, @@ -44615,10 +43502,7 @@ class NSOrderedSet extends NSObject { } int indexOfObject_inSortedRange_options_usingComparator_( - NSObject object, - _NSRange range, - int opts, - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmp) { + NSObject object, _NSRange range, int opts, ObjCBlock6 cmp) { return _lib._objc_msgSend_117( _id, _lib._sel_indexOfObject_inSortedRange_options_usingComparator_1, @@ -44628,15 +43512,13 @@ class NSOrderedSet extends NSObject { cmp._id); } - NSArray sortedArrayUsingComparator_( - ObjCBlock_NSComparisonResult_ObjCObject_ObjCObject cmptr) { + NSArray sortedArrayUsingComparator_(ObjCBlock6 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) { + NSArray sortedArrayWithOptions_usingComparator_(int opts, ObjCBlock6 cmptr) { final _ret = _lib._objc_msgSend_116(_id, _lib._sel_sortedArrayWithOptions_usingComparator_1, opts, cmptr._id); return NSArray._(_ret, _lib, retain: true, release: true); @@ -44809,9 +43691,7 @@ class NSOrderedSet extends NSObject { } NSObject differenceFromOrderedSet_withOptions_usingEquivalenceTest_( - NSOrderedSet? other, - int options, - ObjCBlock_bool_ObjCObject_ObjCObject block) { + NSOrderedSet? other, int options, ObjCBlock7 block) { final _ret = _lib._objc_msgSend_463( _id, _lib._sel_differenceFromOrderedSet_withOptions_usingEquivalenceTest_1, @@ -44854,14 +43734,14 @@ class NSOrderedSet extends NSObject { @override void setValue_forKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126( + return _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( + return _lib._objc_msgSend_130( _id, _lib._sel_addObserver_forKeyPath_options_context_1, observer?._id ?? ffi.nullptr, @@ -44873,13 +43753,17 @@ class NSOrderedSet extends NSObject { @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 _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, + return _lib._objc_msgSend_132(_id, _lib._sel_removeObserver_forKeyPath_1, observer?._id ?? ffi.nullptr, keyPath?._id ?? ffi.nullptr); } @@ -44903,13 +43787,6 @@ class NSOrderedSet extends NSObject { return NSOrderedSet._(_ret, _lib, retain: false, release: true); } - static NSOrderedSet 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); - } - static NSOrderedSet alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOrderedSet1, _lib._sel_alloc1); @@ -44921,7 +43798,7 @@ class NSOrderedSet extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -44931,7 +43808,7 @@ class NSOrderedSet extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSOrderedSet1, + return _lib._objc_msgSend_15(_lib._class_NSOrderedSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -44964,7 +43841,7 @@ class NSOrderedSet extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSOrderedSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -45008,11 +43885,11 @@ class NSMutableSet extends NSSet { } void addObject_(NSObject object) { - _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); + return _lib._objc_msgSend_15(_id, _lib._sel_addObject_1, object._id); } void removeObject_(NSObject object) { - _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); + return _lib._objc_msgSend_15(_id, _lib._sel_removeObject_1, object._id); } @override @@ -45035,31 +43912,31 @@ class NSMutableSet extends NSSet { } void addObjectsFromArray_(NSArray? array) { - _lib._objc_msgSend_441( + return _lib._objc_msgSend_441( _id, _lib._sel_addObjectsFromArray_1, array?._id ?? ffi.nullptr); } void intersectSet_(NSSet? otherSet) { - _lib._objc_msgSend_471( + return _lib._objc_msgSend_471( _id, _lib._sel_intersectSet_1, otherSet?._id ?? ffi.nullptr); } void minusSet_(NSSet? otherSet) { - _lib._objc_msgSend_471( + return _lib._objc_msgSend_471( _id, _lib._sel_minusSet_1, otherSet?._id ?? ffi.nullptr); } void removeAllObjects() { - _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } void unionSet_(NSSet? otherSet) { - _lib._objc_msgSend_471( + return _lib._objc_msgSend_471( _id, _lib._sel_unionSet_1, otherSet?._id ?? ffi.nullptr); } void setSet_(NSSet? otherSet) { - _lib._objc_msgSend_471( + return _lib._objc_msgSend_471( _id, _lib._sel_setSet_1, otherSet?._id ?? ffi.nullptr); } @@ -45070,18 +43947,10 @@ class NSMutableSet extends NSSet { } void filterUsingPredicate_(NSPredicate? predicate) { - _lib._objc_msgSend_456( + return _lib._objc_msgSend_456( _id, _lib._sel_filterUsingPredicate_1, predicate?._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); - } - static NSMutableSet set1(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_set1); @@ -45119,47 +43988,12 @@ class NSMutableSet extends NSSet { return NSMutableSet._(_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); - } - - @override - NSMutableSet initWithSet_(NSSet? set) { - final _ret = _lib._objc_msgSend_382( - _id, _lib._sel_initWithSet_1, set?._id ?? ffi.nullptr); - return NSMutableSet._(_ret, _lib, retain: true, release: true); - } - - @override - NSMutableSet initWithSet_copyItems_(NSSet? set, bool flag) { - final _ret = _lib._objc_msgSend_383( - _id, _lib._sel_initWithSet_copyItems_1, set?._id ?? ffi.nullptr, flag); - return NSMutableSet._(_ret, _lib, retain: false, 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); - } - 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 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 NSMutableSet alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMutableSet1, _lib._sel_alloc1); @@ -45171,7 +44005,7 @@ class NSMutableSet extends NSSet { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSMutableSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -45181,7 +44015,7 @@ class NSMutableSet extends NSSet { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableSet1, + return _lib._objc_msgSend_15(_lib._class_NSMutableSet1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -45214,7 +44048,7 @@ class NSMutableSet extends NSSet { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSMutableSet1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -45292,7 +44126,6 @@ class NSKeyedArchiver extends NSCoder { return NSData._(_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); @@ -45328,7 +44161,7 @@ class NSKeyedArchiver extends NSCoder { } set delegate(NSObject? value) { - return _lib._objc_msgSend_387( + _lib._objc_msgSend_387( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } @@ -45337,7 +44170,7 @@ class NSKeyedArchiver extends NSCoder { } set outputFormat(int value) { - return _lib._objc_msgSend_490(_id, _lib._sel_setOutputFormat_1, value); + _lib._objc_msgSend_490(_id, _lib._sel_setOutputFormat_1, value); } NSData? get encodedData { @@ -45348,12 +44181,12 @@ class NSKeyedArchiver extends NSCoder { } void finishEncoding() { - _lib._objc_msgSend_1(_id, _lib._sel_finishEncoding1); + return _lib._objc_msgSend_1(_id, _lib._sel_finishEncoding1); } static void setClassName_forClass_( SentryCocoa _lib, NSString? codedName, NSObject cls) { - _lib._objc_msgSend_491( + return _lib._objc_msgSend_491( _lib._class_NSKeyedArchiver1, _lib._sel_setClassName_forClass_1, codedName?._id ?? ffi.nullptr, @@ -45368,57 +44201,60 @@ class NSKeyedArchiver extends NSCoder { @override void encodeObject_forKey_(NSObject object, NSString? key) { - _lib._objc_msgSend_126(_id, _lib._sel_encodeObject_forKey_1, object._id, - key?._id ?? ffi.nullptr); + return _lib._objc_msgSend_126(_id, _lib._sel_encodeObject_forKey_1, + object._id, key?._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); + return _lib._objc_msgSend_126( + _id, + _lib._sel_encodeConditionalObject_forKey_1, + object._id, + key?._id ?? ffi.nullptr); } @override void encodeBool_forKey_(bool value, NSString? key) { - _lib._objc_msgSend_272( + return _lib._objc_msgSend_272( _id, _lib._sel_encodeBool_forKey_1, value, key?._id ?? ffi.nullptr); } @override void encodeInt_forKey_(int value, NSString? key) { - _lib._objc_msgSend_273( + return _lib._objc_msgSend_273( _id, _lib._sel_encodeInt_forKey_1, value, key?._id ?? ffi.nullptr); } @override void encodeInt32_forKey_(int value, NSString? key) { - _lib._objc_msgSend_274( + return _lib._objc_msgSend_274( _id, _lib._sel_encodeInt32_forKey_1, value, key?._id ?? ffi.nullptr); } @override void encodeInt64_forKey_(int value, NSString? key) { - _lib._objc_msgSend_275( + return _lib._objc_msgSend_275( _id, _lib._sel_encodeInt64_forKey_1, value, key?._id ?? ffi.nullptr); } @override void encodeFloat_forKey_(double value, NSString? key) { - _lib._objc_msgSend_276( + return _lib._objc_msgSend_276( _id, _lib._sel_encodeFloat_forKey_1, value, key?._id ?? ffi.nullptr); } @override void encodeDouble_forKey_(double value, NSString? key) { - _lib._objc_msgSend_277( + return _lib._objc_msgSend_277( _id, _lib._sel_encodeDouble_forKey_1, value, key?._id ?? ffi.nullptr); } @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); + return _lib._objc_msgSend_278(_id, _lib._sel_encodeBytes_length_forKey_1, + bytes, length, key?._id ?? ffi.nullptr); } @override @@ -45427,8 +44263,7 @@ class NSKeyedArchiver extends NSCoder { } set requiresSecureCoding(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setRequiresSecureCoding_1, value); + _lib._objc_msgSend_492(_id, _lib._sel_setRequiresSecureCoding_1, value); } static NSKeyedArchiver new1(SentryCocoa _lib) { @@ -45437,13 +44272,6 @@ class NSKeyedArchiver extends NSCoder { return NSKeyedArchiver._(_ret, _lib, retain: false, release: true); } - static NSKeyedArchiver 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); - } - static NSKeyedArchiver alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSKeyedArchiver1, _lib._sel_alloc1); @@ -45455,7 +44283,7 @@ class NSKeyedArchiver extends NSCoder { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSKeyedArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -45465,7 +44293,7 @@ class NSKeyedArchiver extends NSCoder { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSKeyedArchiver1, + return _lib._objc_msgSend_15(_lib._class_NSKeyedArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -45498,7 +44326,7 @@ class NSKeyedArchiver extends NSCoder { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSKeyedArchiver1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -45551,39 +44379,42 @@ class NSMutableData extends NSData { } set length(int value) { - return _lib._objc_msgSend_483(_id, _lib._sel_setLength_1, value); + _lib._objc_msgSend_483(_id, _lib._sel_setLength_1, value); } void appendBytes_length_(ffi.Pointer bytes, int length) { - _lib._objc_msgSend_21(_id, _lib._sel_appendBytes_length_1, bytes, length); + return _lib._objc_msgSend_21( + _id, _lib._sel_appendBytes_length_1, bytes, length); } void appendData_(NSData? other) { - _lib._objc_msgSend_263( + return _lib._objc_msgSend_263( _id, _lib._sel_appendData_1, other?._id ?? ffi.nullptr); } void increaseLengthBy_(int extraLength) { - _lib._objc_msgSend_439(_id, _lib._sel_increaseLengthBy_1, extraLength); + return _lib._objc_msgSend_439( + _id, _lib._sel_increaseLengthBy_1, extraLength); } void replaceBytesInRange_withBytes_( _NSRange range, ffi.Pointer bytes) { - _lib._objc_msgSend_484( + return _lib._objc_msgSend_484( _id, _lib._sel_replaceBytesInRange_withBytes_1, range, bytes); } void resetBytesInRange_(_NSRange range) { - _lib._objc_msgSend_445(_id, _lib._sel_resetBytesInRange_1, range); + return _lib._objc_msgSend_445(_id, _lib._sel_resetBytesInRange_1, range); } void setData_(NSData? data) { - _lib._objc_msgSend_263(_id, _lib._sel_setData_1, data?._id ?? ffi.nullptr); + return _lib._objc_msgSend_263( + _id, _lib._sel_setData_1, data?._id ?? ffi.nullptr); } void replaceBytesInRange_withBytes_length_(_NSRange range, ffi.Pointer replacementBytes, int replacementLength) { - _lib._objc_msgSend_485( + return _lib._objc_msgSend_485( _id, _lib._sel_replaceBytesInRange_withBytes_length_1, range, @@ -45694,132 +44525,12 @@ class NSMutableData extends NSData { return NSMutableData._(_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); - } - - @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); - } - - @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); - } - - @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); - } - - @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); - } - - @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); - } - - @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); - } - - @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); - } - - @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 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, @@ -45827,25 +44538,12 @@ class NSMutableData extends NSData { 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); @@ -45857,7 +44555,7 @@ class NSMutableData extends NSData { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSMutableData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -45867,7 +44565,7 @@ class NSMutableData extends NSData { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableData1, + return _lib._objc_msgSend_15(_lib._class_NSMutableData1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -45900,7 +44598,7 @@ class NSMutableData extends NSData { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSMutableData1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -45957,15 +44655,14 @@ class NSThread extends NSObject { : NSThread._(_ret, _lib, retain: true, release: true); } - static void detachNewThreadWithBlock_( - SentryCocoa _lib, ObjCBlock_ffiVoid block) { - _lib._objc_msgSend_497( + static void detachNewThreadWithBlock_(SentryCocoa _lib, ObjCBlock21 block) { + return _lib._objc_msgSend_497( _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_498( + return _lib._objc_msgSend_498( _lib._class_NSThread1, _lib._sel_detachNewThreadSelector_toTarget_withObject_1, selector, @@ -45986,17 +44683,17 @@ class NSThread extends NSObject { } static void sleepUntilDate_(SentryCocoa _lib, NSDate? date) { - _lib._objc_msgSend_504(_lib._class_NSThread1, _lib._sel_sleepUntilDate_1, - date?._id ?? ffi.nullptr); + return _lib._objc_msgSend_504(_lib._class_NSThread1, + _lib._sel_sleepUntilDate_1, date?._id ?? ffi.nullptr); } static void sleepForTimeInterval_(SentryCocoa _lib, double ti) { - _lib._objc_msgSend_505( + return _lib._objc_msgSend_505( _lib._class_NSThread1, _lib._sel_sleepForTimeInterval_1, ti); } static void exit(SentryCocoa _lib) { - _lib._objc_msgSend_1(_lib._class_NSThread1, _lib._sel_exit1); + return _lib._objc_msgSend_1(_lib._class_NSThread1, _lib._sel_exit1); } double get threadPriority { @@ -46004,7 +44701,7 @@ class NSThread extends NSObject { } set threadPriority(double value) { - return _lib._objc_msgSend_506(_id, _lib._sel_setThreadPriority_1, value); + _lib._objc_msgSend_506(_id, _lib._sel_setThreadPriority_1, value); } int get qualityOfService { @@ -46012,7 +44709,7 @@ class NSThread extends NSObject { } set qualityOfService(int value) { - return _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_1, value); + _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_1, value); } static NSArray? getCallStackReturnAddresses(SentryCocoa _lib) { @@ -46039,8 +44736,7 @@ class NSThread extends NSObject { } set name(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + _lib._objc_msgSend_509(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } int get stackSize { @@ -46048,7 +44744,7 @@ class NSThread extends NSObject { } set stackSize(int value) { - return _lib._objc_msgSend_483(_id, _lib._sel_setStackSize_1, value); + _lib._objc_msgSend_483(_id, _lib._sel_setStackSize_1, value); } bool get isMainThread { @@ -46080,7 +44776,7 @@ class NSThread extends NSObject { return NSThread._(_ret, _lib, retain: true, release: true); } - NSThread initWithBlock_(ObjCBlock_ffiVoid block) { + NSThread initWithBlock_(ObjCBlock21 block) { final _ret = _lib._objc_msgSend_511(_id, _lib._sel_initWithBlock_1, block._id); return NSThread._(_ret, _lib, retain: true, release: true); @@ -46099,15 +44795,15 @@ class NSThread extends NSObject { } void cancel() { - _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } void start() { - _lib._objc_msgSend_1(_id, _lib._sel_start1); + return _lib._objc_msgSend_1(_id, _lib._sel_start1); } void main() { - _lib._objc_msgSend_1(_id, _lib._sel_main1); + return _lib._objc_msgSend_1(_id, _lib._sel_main1); } static NSThread new1(SentryCocoa _lib) { @@ -46115,12 +44811,6 @@ class NSThread extends NSObject { return NSThread._(_ret, _lib, retain: false, release: true); } - static NSThread 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); - } - 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); @@ -46131,7 +44821,7 @@ class NSThread extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSThread1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -46141,7 +44831,7 @@ class NSThread extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSThread1, + return _lib._objc_msgSend_15(_lib._class_NSThread1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -46174,7 +44864,7 @@ class NSThread extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSThread1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -46194,51 +44884,51 @@ class NSThread extends NSObject { } } -void _ObjCBlock_ffiVoid_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block) { +void _ObjCBlock21_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; +final _ObjCBlock21_closureRegistry = {}; +int _ObjCBlock21_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock21_registerClosure(Function fn) { + final id = ++_ObjCBlock21_closureRegistryIndex; + _ObjCBlock21_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 +void _ObjCBlock21_closureTrampoline(ffi.Pointer<_ObjCBlock> block) { + return (_ObjCBlock21_closureRegistry[block.ref.target.address] as void Function())(); } -class ObjCBlock_ffiVoid extends _ObjCBlockBase { - ObjCBlock_ffiVoid._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock21 extends _ObjCBlockBase { + ObjCBlock21._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid.fromFunctionPointer( + ObjCBlock21.fromFunctionPointer( SentryCocoa lib, ffi.Pointer> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock_ffiVoid_fnPtrTrampoline) + _ObjCBlock21_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid.fromFunction(SentryCocoa lib, void Function() fn) + ObjCBlock21.fromFunction(SentryCocoa lib, void Function() fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block)>( - _ObjCBlock_ffiVoid_closureTrampoline) + _ObjCBlock21_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_registerClosure(fn)), + _ObjCBlock21_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call() { @@ -46275,12 +44965,12 @@ class NSMutableDictionary extends NSDictionary { } void removeObjectForKey_(NSObject aKey) { - _lib._objc_msgSend_15(_id, _lib._sel_removeObjectForKey_1, aKey._id); + return _lib._objc_msgSend_15(_id, _lib._sel_removeObjectForKey_1, aKey._id); } void setObject_forKey_(NSObject anObject, NSObject? aKey) { - _lib._objc_msgSend_499(_id, _lib._sel_setObject_forKey_1, anObject._id, - aKey?._id ?? ffi.nullptr); + return _lib._objc_msgSend_499(_id, _lib._sel_setObject_forKey_1, + anObject._id, aKey?._id ?? ffi.nullptr); } @override @@ -46303,26 +44993,26 @@ class NSMutableDictionary extends NSDictionary { } void addEntriesFromDictionary_(NSDictionary? otherDictionary) { - _lib._objc_msgSend_476(_id, _lib._sel_addEntriesFromDictionary_1, + return _lib._objc_msgSend_476(_id, _lib._sel_addEntriesFromDictionary_1, otherDictionary?._id ?? ffi.nullptr); } void removeAllObjects() { - _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); + return _lib._objc_msgSend_1(_id, _lib._sel_removeAllObjects1); } void removeObjectsForKeys_(NSArray? keyArray) { - _lib._objc_msgSend_441( + return _lib._objc_msgSend_441( _id, _lib._sel_removeObjectsForKeys_1, keyArray?._id ?? ffi.nullptr); } void setDictionary_(NSDictionary? otherDictionary) { - _lib._objc_msgSend_476( + return _lib._objc_msgSend_476( _id, _lib._sel_setDictionary_1, otherDictionary?._id ?? ffi.nullptr); } void setObject_forKeyedSubscript_(NSObject obj, NSObject? key) { - _lib._objc_msgSend_499(_id, _lib._sel_setObject_forKeyedSubscript_1, + return _lib._objc_msgSend_499(_id, _lib._sel_setObject_forKeyedSubscript_1, obj._id, key?._id ?? ffi.nullptr); } @@ -46367,20 +45057,10 @@ class NSMutableDictionary extends NSDictionary { } void setValue_forKey_(NSObject value, NSString? key) { - _lib._objc_msgSend_126( + return _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); @@ -46431,42 +45111,6 @@ class NSMutableDictionary extends NSDictionary { 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_initWithDictionary_copyItems_1, - otherDictionary?._id ?? ffi.nullptr, - flag); - return NSMutableDictionary._(_ret, _lib, retain: false, release: true); - } - - @override - 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 NSDictionary dictionaryWithContentsOfURL_error_(SentryCocoa _lib, NSURL? url, ffi.Pointer> error) { final _ret = _lib._objc_msgSend_152( @@ -46489,13 +45133,6 @@ class NSMutableDictionary extends NSDictionary { 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_NSMutableDictionary1, _lib._sel_allocWithZone_1, zone); - return NSMutableDictionary._(_ret, _lib, retain: false, release: true); - } - static NSMutableDictionary alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMutableDictionary1, _lib._sel_alloc1); @@ -46507,7 +45144,7 @@ class NSMutableDictionary extends NSDictionary { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSMutableDictionary1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -46517,7 +45154,7 @@ class NSMutableDictionary extends NSDictionary { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableDictionary1, + return _lib._objc_msgSend_15(_lib._class_NSMutableDictionary1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -46550,7 +45187,7 @@ class NSMutableDictionary extends NSDictionary { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSMutableDictionary1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -46616,12 +45253,14 @@ class NSArchiver extends NSCoder { @override void encodeRootObject_(NSObject rootObject) { - _lib._objc_msgSend_15(_id, _lib._sel_encodeRootObject_1, rootObject._id); + return _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); + return _lib._objc_msgSend_15( + _id, _lib._sel_encodeConditionalObject_1, object._id); } static NSData archivedDataWithRootObject_( @@ -46642,8 +45281,11 @@ class NSArchiver extends NSCoder { void encodeClassName_intoClassName_( NSString? trueName, NSString? inArchiveName) { - _lib._objc_msgSend_515(_id, _lib._sel_encodeClassName_intoClassName_1, - trueName?._id ?? ffi.nullptr, inArchiveName?._id ?? ffi.nullptr); + return _lib._objc_msgSend_515( + _id, + _lib._sel_encodeClassName_intoClassName_1, + trueName?._id ?? ffi.nullptr, + inArchiveName?._id ?? ffi.nullptr); } NSString classNameEncodedForTrueClassName_(NSString? trueName) { @@ -46655,28 +45297,15 @@ class NSArchiver extends NSCoder { } void replaceObject_withObject_(NSObject object, NSObject newObject) { - _lib._objc_msgSend_499( + return _lib._objc_msgSend_499( _id, _lib._sel_replaceObject_withObject_1, object._id, newObject._id); } - @override - NSArchiver init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSArchiver._(_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 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 NSArchiver alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSArchiver1, _lib._sel_alloc1); @@ -46688,7 +45317,7 @@ class NSArchiver extends NSCoder { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -46698,7 +45327,7 @@ class NSArchiver extends NSCoder { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSArchiver1, + return _lib._objc_msgSend_15(_lib._class_NSArchiver1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -46731,7 +45360,7 @@ class NSArchiver extends NSCoder { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSArchiver1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -46783,7 +45412,7 @@ class NSPortCoder extends NSCoder { } void encodePortObject_(NSPort? aport) { - _lib._objc_msgSend_552( + return _lib._objc_msgSend_552( _id, _lib._sel_encodePortObject_1, aport?._id ?? ffi.nullptr); } @@ -46820,13 +45449,7 @@ class NSPortCoder extends NSCoder { } void dispatch() { - _lib._objc_msgSend_1(_id, _lib._sel_dispatch1); - } - - @override - NSPortCoder init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSPortCoder._(_ret, _lib, retain: true, release: true); + return _lib._objc_msgSend_1(_id, _lib._sel_dispatch1); } static NSPortCoder new1(SentryCocoa _lib) { @@ -46834,13 +45457,6 @@ class NSPortCoder extends NSCoder { return NSPortCoder._(_ret, _lib, retain: false, release: true); } - static NSPortCoder 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); - } - static NSPortCoder alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSPortCoder1, _lib._sel_alloc1); @@ -46852,7 +45468,7 @@ class NSPortCoder extends NSCoder { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSPortCoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -46862,7 +45478,7 @@ class NSPortCoder extends NSCoder { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSPortCoder1, + return _lib._objc_msgSend_15(_lib._class_NSPortCoder1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -46895,7 +45511,7 @@ class NSPortCoder extends NSCoder { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSPortCoder1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -46943,7 +45559,7 @@ class NSPort extends NSObject { } void invalidate() { - _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + return _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); } bool get valid { @@ -46951,7 +45567,7 @@ class NSPort extends NSObject { } void setDelegate_(NSObject? anObject) { - _lib._objc_msgSend_15( + return _lib._objc_msgSend_15( _id, _lib._sel_setDelegate_1, anObject?._id ?? ffi.nullptr); } @@ -46961,12 +45577,12 @@ class NSPort extends NSObject { } void scheduleInRunLoop_forMode_(NSRunLoop? runLoop, NSString mode) { - _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, + return _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, runLoop?._id ?? ffi.nullptr, mode._id); } void removeFromRunLoop_forMode_(NSRunLoop? runLoop, NSString mode) { - _lib._objc_msgSend_533(_id, _lib._sel_removeFromRunLoop_forMode_1, + return _lib._objc_msgSend_533(_id, _lib._sel_removeFromRunLoop_forMode_1, runLoop?._id ?? ffi.nullptr, mode._id); } @@ -47006,13 +45622,17 @@ class NSPort extends NSObject { void addConnection_toRunLoop_forMode_( NSConnection? conn, NSRunLoop? runLoop, NSString mode) { - _lib._objc_msgSend_551(_id, _lib._sel_addConnection_toRunLoop_forMode_1, - conn?._id ?? ffi.nullptr, runLoop?._id ?? ffi.nullptr, mode._id); + return _lib._objc_msgSend_551( + _id, + _lib._sel_addConnection_toRunLoop_forMode_1, + conn?._id ?? ffi.nullptr, + runLoop?._id ?? ffi.nullptr, + mode._id); } void removeConnection_fromRunLoop_forMode_( NSConnection? conn, NSRunLoop? runLoop, NSString mode) { - _lib._objc_msgSend_551( + return _lib._objc_msgSend_551( _id, _lib._sel_removeConnection_fromRunLoop_forMode_1, conn?._id ?? ffi.nullptr, @@ -47020,23 +45640,11 @@ class NSPort extends NSObject { mode._id); } - @override - NSPort init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSPort._(_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 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); - } - 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); @@ -47047,7 +45655,7 @@ class NSPort extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSPort1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -47057,7 +45665,7 @@ class NSPort extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSPort1, + return _lib._objc_msgSend_15(_lib._class_NSPort1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -47090,7 +45698,7 @@ class NSPort extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSPort1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -47159,17 +45767,17 @@ class NSRunLoop extends NSObject { } void addTimer_forMode_(NSTimer? timer, NSString mode) { - _lib._objc_msgSend_526( + return _lib._objc_msgSend_526( _id, _lib._sel_addTimer_forMode_1, timer?._id ?? ffi.nullptr, mode._id); } void addPort_forMode_(NSPort? aPort, NSString mode) { - _lib._objc_msgSend_527( + return _lib._objc_msgSend_527( _id, _lib._sel_addPort_forMode_1, aPort?._id ?? ffi.nullptr, mode._id); } void removePort_forMode_(NSPort? aPort, NSString mode) { - _lib._objc_msgSend_527(_id, _lib._sel_removePort_forMode_1, + return _lib._objc_msgSend_527(_id, _lib._sel_removePort_forMode_1, aPort?._id ?? ffi.nullptr, mode._id); } @@ -47180,16 +45788,19 @@ class NSRunLoop extends NSObject { } void acceptInputForMode_beforeDate_(NSString mode, NSDate? limitDate) { - _lib._objc_msgSend_529(_id, _lib._sel_acceptInputForMode_beforeDate_1, - mode._id, limitDate?._id ?? ffi.nullptr); + return _lib._objc_msgSend_529( + _id, + _lib._sel_acceptInputForMode_beforeDate_1, + mode._id, + limitDate?._id ?? ffi.nullptr); } void run() { - _lib._objc_msgSend_1(_id, _lib._sel_run1); + return _lib._objc_msgSend_1(_id, _lib._sel_run1); } void runUntilDate_(NSDate? limitDate) { - _lib._objc_msgSend_504( + return _lib._objc_msgSend_504( _id, _lib._sel_runUntilDate_1, limitDate?._id ?? ffi.nullptr); } @@ -47199,16 +45810,16 @@ class NSRunLoop extends NSObject { } void configureAsServer() { - _lib._objc_msgSend_1(_id, _lib._sel_configureAsServer1); + return _lib._objc_msgSend_1(_id, _lib._sel_configureAsServer1); } - void performInModes_block_(NSArray? modes, ObjCBlock_ffiVoid block) { - _lib._objc_msgSend_531(_id, _lib._sel_performInModes_block_1, + void performInModes_block_(NSArray? modes, ObjCBlock21 block) { + return _lib._objc_msgSend_531(_id, _lib._sel_performInModes_block_1, modes?._id ?? ffi.nullptr, block._id); } - void performBlock_(ObjCBlock_ffiVoid block) { - _lib._objc_msgSend_497(_id, _lib._sel_performBlock_1, block._id); + void performBlock_(ObjCBlock21 block) { + return _lib._objc_msgSend_497(_id, _lib._sel_performBlock_1, block._id); } void performSelector_target_argument_order_modes_( @@ -47217,7 +45828,7 @@ class NSRunLoop extends NSObject { NSObject arg, int order, NSArray? modes) { - _lib._objc_msgSend_532( + return _lib._objc_msgSend_532( _id, _lib._sel_performSelector_target_argument_order_modes_1, aSelector, @@ -47229,7 +45840,7 @@ class NSRunLoop extends NSObject { void cancelPerformSelector_target_argument_( ffi.Pointer aSelector, NSObject target, NSObject arg) { - _lib._objc_msgSend_498( + return _lib._objc_msgSend_498( _id, _lib._sel_cancelPerformSelector_target_argument_1, aSelector, @@ -47238,27 +45849,15 @@ class NSRunLoop extends NSObject { } void cancelPerformSelectorsWithTarget_(NSObject target) { - _lib._objc_msgSend_15( + return _lib._objc_msgSend_15( _id, _lib._sel_cancelPerformSelectorsWithTarget_1, target._id); } - @override - NSRunLoop init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSRunLoop._(_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 NSRunLoop 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); - } - 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); @@ -47269,7 +45868,7 @@ class NSRunLoop extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSRunLoop1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -47279,7 +45878,7 @@ class NSRunLoop extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSRunLoop1, + return _lib._objc_msgSend_15(_lib._class_NSRunLoop1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -47312,7 +45911,7 @@ class NSRunLoop extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSRunLoop1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -47415,8 +46014,8 @@ class NSTimer extends NSObject { return NSTimer._(_ret, _lib, retain: true, release: true); } - static NSTimer timerWithTimeInterval_repeats_block_(SentryCocoa _lib, - double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { + static NSTimer timerWithTimeInterval_repeats_block_( + SentryCocoa _lib, double interval, bool repeats, ObjCBlock22 block) { final _ret = _lib._objc_msgSend_522( _lib._class_NSTimer1, _lib._sel_timerWithTimeInterval_repeats_block_1, @@ -47426,8 +46025,8 @@ class NSTimer extends NSObject { return NSTimer._(_ret, _lib, retain: true, release: true); } - static NSTimer scheduledTimerWithTimeInterval_repeats_block_(SentryCocoa _lib, - double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { + static NSTimer scheduledTimerWithTimeInterval_repeats_block_( + SentryCocoa _lib, double interval, bool repeats, ObjCBlock22 block) { final _ret = _lib._objc_msgSend_522( _lib._class_NSTimer1, _lib._sel_scheduledTimerWithTimeInterval_repeats_block_1, @@ -47437,8 +46036,8 @@ class NSTimer extends NSObject { return NSTimer._(_ret, _lib, retain: true, release: true); } - NSTimer initWithFireDate_interval_repeats_block_(NSDate? date, - double interval, bool repeats, ObjCBlock_ffiVoid_NSTimer block) { + NSTimer initWithFireDate_interval_repeats_block_( + NSDate? date, double interval, bool repeats, ObjCBlock22 block) { final _ret = _lib._objc_msgSend_523( _id, _lib._sel_initWithFireDate_interval_repeats_block_1, @@ -47469,7 +46068,7 @@ class NSTimer extends NSObject { } void fire() { - _lib._objc_msgSend_1(_id, _lib._sel_fire1); + return _lib._objc_msgSend_1(_id, _lib._sel_fire1); } NSDate? get fireDate { @@ -47480,7 +46079,7 @@ class NSTimer extends NSObject { } set fireDate(NSDate? value) { - return _lib._objc_msgSend_525( + _lib._objc_msgSend_525( _id, _lib._sel_setFireDate_1, value?._id ?? ffi.nullptr); } @@ -47493,11 +46092,11 @@ class NSTimer extends NSObject { } set tolerance(double value) { - return _lib._objc_msgSend_506(_id, _lib._sel_setTolerance_1, value); + _lib._objc_msgSend_506(_id, _lib._sel_setTolerance_1, value); } void invalidate() { - _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + return _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); } bool get valid { @@ -47509,23 +46108,11 @@ class NSTimer extends NSObject { return NSObject._(_ret, _lib, retain: true, release: true); } - @override - NSTimer init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSTimer._(_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 NSTimer 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); - } - 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); @@ -47536,7 +46123,7 @@ class NSTimer extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSTimer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -47546,7 +46133,7 @@ class NSTimer extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSTimer1, + return _lib._objc_msgSend_15(_lib._class_NSTimer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -47579,7 +46166,7 @@ class NSTimer extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSTimer1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -47599,7 +46186,7 @@ class NSTimer extends NSObject { } } -void _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline( +void _ObjCBlock22_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { return block.ref.target .cast< @@ -47607,26 +46194,26 @@ void _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline( .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; +final _ObjCBlock22_closureRegistry = {}; +int _ObjCBlock22_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock22_registerClosure(Function fn) { + final id = ++_ObjCBlock22_closureRegistryIndex; + _ObjCBlock22_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSTimer_closureTrampoline( +void _ObjCBlock22_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSTimer_closureRegistry[block.ref.target.address] - as void Function(ffi.Pointer))(arg0); + return (_ObjCBlock22_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) +class ObjCBlock22 extends _ObjCBlockBase { + ObjCBlock22._(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( + ObjCBlock22.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi @@ -47637,23 +46224,23 @@ class ObjCBlock_ffiVoid_NSTimer extends _ObjCBlockBase { _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline) + _ObjCBlock22_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSTimer.fromFunction( + ObjCBlock22.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) + _ObjCBlock22_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSTimer_registerClosure(fn)), + _ObjCBlock22_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0) { @@ -47788,7 +46375,7 @@ class NSConnection extends NSObject { } set requestTimeout(double value) { - return _lib._objc_msgSend_506(_id, _lib._sel_setRequestTimeout_1, value); + _lib._objc_msgSend_506(_id, _lib._sel_setRequestTimeout_1, value); } double get replyTimeout { @@ -47796,7 +46383,7 @@ class NSConnection extends NSObject { } set replyTimeout(double value) { - return _lib._objc_msgSend_506(_id, _lib._sel_setReplyTimeout_1, value); + _lib._objc_msgSend_506(_id, _lib._sel_setReplyTimeout_1, value); } NSObject get rootObject { @@ -47805,7 +46392,7 @@ class NSConnection extends NSObject { } set rootObject(NSObject value) { - return _lib._objc_msgSend_387(_id, _lib._sel_setRootObject_1, value._id); + _lib._objc_msgSend_387(_id, _lib._sel_setRootObject_1, value._id); } NSObject? get delegate { @@ -47816,7 +46403,7 @@ class NSConnection extends NSObject { } set delegate(NSObject? value) { - return _lib._objc_msgSend_387( + _lib._objc_msgSend_387( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } @@ -47826,7 +46413,7 @@ class NSConnection extends NSObject { } set independentConversationQueueing(bool value) { - return _lib._objc_msgSend_492( + _lib._objc_msgSend_492( _id, _lib._sel_setIndependentConversationQueueing_1, value); } @@ -47842,16 +46429,16 @@ class NSConnection extends NSObject { } void invalidate() { - _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); + return _lib._objc_msgSend_1(_id, _lib._sel_invalidate1); } void addRequestMode_(NSString? rmode) { - _lib._objc_msgSend_192( + return _lib._objc_msgSend_192( _id, _lib._sel_addRequestMode_1, rmode?._id ?? ffi.nullptr); } void removeRequestMode_(NSString? rmode) { - _lib._objc_msgSend_192( + return _lib._objc_msgSend_192( _id, _lib._sel_removeRequestMode_1, rmode?._id ?? ffi.nullptr); } @@ -47913,7 +46500,7 @@ class NSConnection extends NSObject { } void enableMultipleThreads() { - _lib._objc_msgSend_1(_id, _lib._sel_enableMultipleThreads1); + return _lib._objc_msgSend_1(_id, _lib._sel_enableMultipleThreads1); } bool get multipleThreadsEnabled { @@ -47921,17 +46508,17 @@ class NSConnection extends NSObject { } void addRunLoop_(NSRunLoop? runloop) { - _lib._objc_msgSend_550( + return _lib._objc_msgSend_550( _id, _lib._sel_addRunLoop_1, runloop?._id ?? ffi.nullptr); } void removeRunLoop_(NSRunLoop? runloop) { - _lib._objc_msgSend_550( + return _lib._objc_msgSend_550( _id, _lib._sel_removeRunLoop_1, runloop?._id ?? ffi.nullptr); } void runInNewThread() { - _lib._objc_msgSend_1(_id, _lib._sel_runInNewThread1); + return _lib._objc_msgSend_1(_id, _lib._sel_runInNewThread1); } NSArray? get remoteObjects { @@ -47949,29 +46536,16 @@ class NSConnection extends NSObject { } void dispatchWithComponents_(NSArray? components) { - _lib._objc_msgSend_441(_id, _lib._sel_dispatchWithComponents_1, + return _lib._objc_msgSend_441(_id, _lib._sel_dispatchWithComponents_1, components?._id ?? ffi.nullptr); } - @override - NSConnection init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSConnection._(_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 NSConnection 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); - } - static NSConnection alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSConnection1, _lib._sel_alloc1); @@ -47983,7 +46557,7 @@ class NSConnection extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -47993,7 +46567,7 @@ class NSConnection extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSConnection1, + return _lib._objc_msgSend_15(_lib._class_NSConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -48026,7 +46600,7 @@ class NSConnection extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSConnection1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -48098,25 +46672,12 @@ class NSPortNameServer extends NSObject { _id, _lib._sel_removePortForName_1, name?._id ?? ffi.nullptr); } - @override - NSPortNameServer init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSPortNameServer._(_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 NSPortNameServer 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); - } - static NSPortNameServer alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSPortNameServer1, _lib._sel_alloc1); @@ -48128,7 +46689,7 @@ class NSPortNameServer extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSPortNameServer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -48138,7 +46699,7 @@ class NSPortNameServer extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSPortNameServer1, + return _lib._objc_msgSend_15(_lib._class_NSPortNameServer1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -48171,7 +46732,7 @@ class NSPortNameServer extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSPortNameServer1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -48262,7 +46823,7 @@ class NSDistantObject extends NSProxy { } void setProtocolForProxy_(Protocol? proto) { - _lib._objc_msgSend_543( + return _lib._objc_msgSend_543( _id, _lib._sel_setProtocolForProxy_1, proto?._id ?? ffi.nullptr); } @@ -48325,7 +46886,7 @@ class NSProxy extends _ObjCWrapper { } void forwardInvocation_(NSInvocation? invocation) { - _lib._objc_msgSend_392( + return _lib._objc_msgSend_392( _id, _lib._sel_forwardInvocation_1, invocation?._id ?? ffi.nullptr); } @@ -48336,11 +46897,11 @@ class NSProxy extends _ObjCWrapper { } void dealloc() { - _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); + return _lib._objc_msgSend_1(_id, _lib._sel_dealloc1); } void finalize() { - _lib._objc_msgSend_1(_id, _lib._sel_finalize1); + return _lib._objc_msgSend_1(_id, _lib._sel_finalize1); } NSString? get description { @@ -48398,7 +46959,7 @@ class NSClassDescription extends NSObject { static void registerClassDescription_forClass_( SentryCocoa _lib, NSClassDescription? description, NSObject aClass) { - _lib._objc_msgSend_555( + return _lib._objc_msgSend_555( _lib._class_NSClassDescription1, _lib._sel_registerClassDescription_forClass_1, description?._id ?? ffi.nullptr, @@ -48406,7 +46967,7 @@ class NSClassDescription extends NSObject { } static void invalidateClassDescriptionCache(SentryCocoa _lib) { - _lib._objc_msgSend_1(_lib._class_NSClassDescription1, + return _lib._objc_msgSend_1(_lib._class_NSClassDescription1, _lib._sel_invalidateClassDescriptionCache1); } @@ -48450,25 +47011,12 @@ class NSClassDescription extends NSObject { return NSString._(_ret, _lib, retain: true, release: true); } - @override - NSClassDescription init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSClassDescription._(_ret, _lib, retain: true, 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 NSClassDescription 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); - } - static NSClassDescription alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSClassDescription1, _lib._sel_alloc1); @@ -48480,7 +47028,7 @@ class NSClassDescription extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -48490,7 +47038,7 @@ class NSClassDescription extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSClassDescription1, + return _lib._objc_msgSend_15(_lib._class_NSClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -48523,7 +47071,7 @@ class NSClassDescription extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSClassDescription1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -48615,7 +47163,7 @@ class NSScriptObjectSpecifier extends NSObject { } set childSpecifier(NSScriptObjectSpecifier? value) { - return _lib._objc_msgSend_589( + _lib._objc_msgSend_589( _id, _lib._sel_setChildSpecifier_1, value?._id ?? ffi.nullptr); } @@ -48627,7 +47175,7 @@ class NSScriptObjectSpecifier extends NSObject { } set containerSpecifier(NSScriptObjectSpecifier? value) { - return _lib._objc_msgSend_589( + _lib._objc_msgSend_589( _id, _lib._sel_setContainerSpecifier_1, value?._id ?? ffi.nullptr); } @@ -48636,7 +47184,7 @@ class NSScriptObjectSpecifier extends NSObject { } set containerIsObjectBeingTested(bool value) { - return _lib._objc_msgSend_492( + _lib._objc_msgSend_492( _id, _lib._sel_setContainerIsObjectBeingTested_1, value); } @@ -48646,7 +47194,7 @@ class NSScriptObjectSpecifier extends NSObject { } set containerIsRangeContainerObject(bool value) { - return _lib._objc_msgSend_492( + _lib._objc_msgSend_492( _id, _lib._sel_setContainerIsRangeContainerObject_1, value); } @@ -48658,8 +47206,7 @@ class NSScriptObjectSpecifier extends NSObject { } set key(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setKey_1, value?._id ?? ffi.nullptr); + _lib._objc_msgSend_509(_id, _lib._sel_setKey_1, value?._id ?? ffi.nullptr); } NSScriptClassDescription? get containerClassDescription { @@ -48671,7 +47218,7 @@ class NSScriptObjectSpecifier extends NSObject { } set containerClassDescription(NSScriptClassDescription? value) { - return _lib._objc_msgSend_599(_id, _lib._sel_setContainerClassDescription_1, + _lib._objc_msgSend_599(_id, _lib._sel_setContainerClassDescription_1, value?._id ?? ffi.nullptr); } @@ -48708,8 +47255,7 @@ class NSScriptObjectSpecifier extends NSObject { } set evaluationErrorNumber(int value) { - return _lib._objc_msgSend_590( - _id, _lib._sel_setEvaluationErrorNumber_1, value); + _lib._objc_msgSend_590(_id, _lib._sel_setEvaluationErrorNumber_1, value); } NSScriptObjectSpecifier? get evaluationErrorSpecifier { @@ -48727,25 +47273,12 @@ class NSScriptObjectSpecifier extends NSObject { : NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - @override - NSScriptObjectSpecifier init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSScriptObjectSpecifier._(_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 NSScriptObjectSpecifier 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); - } - static NSScriptObjectSpecifier alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSScriptObjectSpecifier1, _lib._sel_alloc1); @@ -48757,7 +47290,7 @@ class NSScriptObjectSpecifier extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSScriptObjectSpecifier1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -48767,7 +47300,7 @@ class NSScriptObjectSpecifier extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSScriptObjectSpecifier1, + return _lib._objc_msgSend_15(_lib._class_NSScriptObjectSpecifier1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -48800,7 +47333,7 @@ class NSScriptObjectSpecifier extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSScriptObjectSpecifier1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -49122,8 +47655,11 @@ class NSAppleEventDescriptor extends NSObject { void setParamDescriptor_forKeyword_( NSAppleEventDescriptor? descriptor, int keyword) { - _lib._objc_msgSend_574(_id, _lib._sel_setParamDescriptor_forKeyword_1, - descriptor?._id ?? ffi.nullptr, keyword); + return _lib._objc_msgSend_574( + _id, + _lib._sel_setParamDescriptor_forKeyword_1, + descriptor?._id ?? ffi.nullptr, + keyword); } NSAppleEventDescriptor paramDescriptorForKeyword_(int keyword) { @@ -49133,14 +47669,17 @@ class NSAppleEventDescriptor extends NSObject { } void removeParamDescriptorWithKeyword_(int keyword) { - _lib._objc_msgSend_575( + return _lib._objc_msgSend_575( _id, _lib._sel_removeParamDescriptorWithKeyword_1, keyword); } void setAttributeDescriptor_forKeyword_( NSAppleEventDescriptor? descriptor, int keyword) { - _lib._objc_msgSend_574(_id, _lib._sel_setAttributeDescriptor_forKeyword_1, - descriptor?._id ?? ffi.nullptr, keyword); + return _lib._objc_msgSend_574( + _id, + _lib._sel_setAttributeDescriptor_forKeyword_1, + descriptor?._id ?? ffi.nullptr, + keyword); } NSAppleEventDescriptor attributeDescriptorForKeyword_(int keyword) { @@ -49170,7 +47709,7 @@ class NSAppleEventDescriptor extends NSObject { void insertDescriptor_atIndex_( NSAppleEventDescriptor? descriptor, int index) { - _lib._objc_msgSend_577(_id, _lib._sel_insertDescriptor_atIndex_1, + return _lib._objc_msgSend_577(_id, _lib._sel_insertDescriptor_atIndex_1, descriptor?._id ?? ffi.nullptr, index); } @@ -49181,12 +47720,13 @@ class NSAppleEventDescriptor extends NSObject { } void removeDescriptorAtIndex_(int index) { - _lib._objc_msgSend_394(_id, _lib._sel_removeDescriptorAtIndex_1, index); + return _lib._objc_msgSend_394( + _id, _lib._sel_removeDescriptorAtIndex_1, index); } void setDescriptor_forKeyword_( NSAppleEventDescriptor? descriptor, int keyword) { - _lib._objc_msgSend_574(_id, _lib._sel_setDescriptor_forKeyword_1, + return _lib._objc_msgSend_574(_id, _lib._sel_setDescriptor_forKeyword_1, descriptor?._id ?? ffi.nullptr, keyword); } @@ -49197,7 +47737,7 @@ class NSAppleEventDescriptor extends NSObject { } void removeDescriptorWithKeyword_(int keyword) { - _lib._objc_msgSend_575( + return _lib._objc_msgSend_575( _id, _lib._sel_removeDescriptorWithKeyword_1, keyword); } @@ -49212,25 +47752,12 @@ class NSAppleEventDescriptor extends NSObject { return NSAppleEventDescriptor._(_ret, _lib, retain: true, release: true); } - @override - NSAppleEventDescriptor init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSAppleEventDescriptor._(_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 NSAppleEventDescriptor 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); - } - static NSAppleEventDescriptor alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSAppleEventDescriptor1, _lib._sel_alloc1); @@ -49242,7 +47769,7 @@ class NSAppleEventDescriptor extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSAppleEventDescriptor1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -49252,7 +47779,7 @@ class NSAppleEventDescriptor extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSAppleEventDescriptor1, + return _lib._objc_msgSend_15(_lib._class_NSAppleEventDescriptor1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -49285,7 +47812,7 @@ class NSAppleEventDescriptor extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSAppleEventDescriptor1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -49489,7 +48016,7 @@ class NSScriptClassDescription extends NSClassDescription { static void registerClassDescription_forClass_( SentryCocoa _lib, NSClassDescription? description, NSObject aClass) { - _lib._objc_msgSend_555( + return _lib._objc_msgSend_555( _lib._class_NSScriptClassDescription1, _lib._sel_registerClassDescription_forClass_1, description?._id ?? ffi.nullptr, @@ -49497,29 +48024,16 @@ class NSScriptClassDescription extends NSClassDescription { } static void invalidateClassDescriptionCache(SentryCocoa _lib) { - _lib._objc_msgSend_1(_lib._class_NSScriptClassDescription1, + return _lib._objc_msgSend_1(_lib._class_NSScriptClassDescription1, _lib._sel_invalidateClassDescriptionCache1); } - @override - NSScriptClassDescription init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSScriptClassDescription._(_ret, _lib, retain: true, 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 NSScriptClassDescription 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); - } - static NSScriptClassDescription alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSScriptClassDescription1, _lib._sel_alloc1); @@ -49531,7 +48045,7 @@ class NSScriptClassDescription extends NSClassDescription { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSScriptClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -49541,7 +48055,7 @@ class NSScriptClassDescription extends NSClassDescription { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSScriptClassDescription1, + return _lib._objc_msgSend_15(_lib._class_NSScriptClassDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -49574,7 +48088,7 @@ class NSScriptClassDescription extends NSClassDescription { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSScriptClassDescription1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -49729,14 +48243,6 @@ class NSScriptCommandDescription extends NSObject { retain: false, 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 NSScriptCommandDescription alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSScriptCommandDescription1, _lib._sel_alloc1); @@ -49749,7 +48255,7 @@ class NSScriptCommandDescription extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSScriptCommandDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -49759,7 +48265,7 @@ class NSScriptCommandDescription extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSScriptCommandDescription1, + return _lib._objc_msgSend_15(_lib._class_NSScriptCommandDescription1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -49792,7 +48298,7 @@ class NSScriptCommandDescription extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSScriptCommandDescription1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -49862,8 +48368,7 @@ class NSScriptCommand extends NSObject { } set directParameter(NSObject value) { - return _lib._objc_msgSend_387( - _id, _lib._sel_setDirectParameter_1, value._id); + _lib._objc_msgSend_387(_id, _lib._sel_setDirectParameter_1, value._id); } NSScriptObjectSpecifier? get receiversSpecifier { @@ -49874,7 +48379,7 @@ class NSScriptCommand extends NSObject { } set receiversSpecifier(NSScriptObjectSpecifier? value) { - return _lib._objc_msgSend_589( + _lib._objc_msgSend_589( _id, _lib._sel_setReceiversSpecifier_1, value?._id ?? ffi.nullptr); } @@ -49891,7 +48396,7 @@ class NSScriptCommand extends NSObject { } set arguments(NSDictionary? value) { - return _lib._objc_msgSend_171( + _lib._objc_msgSend_171( _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); } @@ -49922,7 +48427,7 @@ class NSScriptCommand extends NSObject { } set scriptErrorNumber(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setScriptErrorNumber_1, value); + _lib._objc_msgSend_590(_id, _lib._sel_setScriptErrorNumber_1, value); } NSAppleEventDescriptor? get scriptErrorOffendingObjectDescriptor { @@ -49934,7 +48439,7 @@ class NSScriptCommand extends NSObject { } set scriptErrorOffendingObjectDescriptor(NSAppleEventDescriptor? value) { - return _lib._objc_msgSend_591( + _lib._objc_msgSend_591( _id, _lib._sel_setScriptErrorOffendingObjectDescriptor_1, value?._id ?? ffi.nullptr); @@ -49949,7 +48454,7 @@ class NSScriptCommand extends NSObject { } set scriptErrorExpectedTypeDescriptor(NSAppleEventDescriptor? value) { - return _lib._objc_msgSend_591( + _lib._objc_msgSend_591( _id, _lib._sel_setScriptErrorExpectedTypeDescriptor_1, value?._id ?? ffi.nullptr); @@ -49963,7 +48468,7 @@ class NSScriptCommand extends NSObject { } set scriptErrorString(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setScriptErrorString_1, value?._id ?? ffi.nullptr); } @@ -49981,33 +48486,20 @@ class NSScriptCommand extends NSObject { } void suspendExecution() { - _lib._objc_msgSend_1(_id, _lib._sel_suspendExecution1); + return _lib._objc_msgSend_1(_id, _lib._sel_suspendExecution1); } void resumeExecutionWithResult_(NSObject result) { - _lib._objc_msgSend_15( + return _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); @@ -50019,7 +48511,7 @@ class NSScriptCommand extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSScriptCommand1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -50029,7 +48521,7 @@ class NSScriptCommand extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSScriptCommand1, + return _lib._objc_msgSend_15(_lib._class_NSScriptCommand1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -50062,7 +48554,7 @@ class NSScriptCommand extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSScriptCommand1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -50082,81 +48574,233 @@ class NSScriptCommand extends NSObject { } } -class NSUUID extends NSObject { - NSUUID._(ffi.Pointer id, SentryCocoa lib, +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 [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 [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 [NSUUID] that wraps the given raw object pointer. - static NSUUID castFromPointer(SentryCocoa lib, ffi.Pointer other, + /// 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 NSUUID._(other, lib, retain: retain, release: release); + return NSItemProvider._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSUUID]. + /// 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_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); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSItemProvider1); } @override - NSUUID init() { + NSItemProvider init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSUUID._(_ret, _lib, retain: true, release: true); + return NSItemProvider._(_ret, _lib, retain: true, 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 registerDataRepresentationForTypeIdentifier_visibility_loadHandler_( + NSString? typeIdentifier, int visibility, ObjCBlock23 loadHandler) { + return _lib._objc_msgSend_623( + _id, + _lib._sel_registerDataRepresentationForTypeIdentifier_visibility_loadHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + visibility, + loadHandler._id); } - NSUUID initWithUUIDBytes_(ffi.Pointer bytes) { + void + registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_( + NSString? typeIdentifier, + int fileOptions, + int visibility, + ObjCBlock26 loadHandler) { + return _lib._objc_msgSend_624( + _id, + _lib._sel_registerFileRepresentationForTypeIdentifier_fileOptions_visibility_loadHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + fileOptions, + visibility, + loadHandler._id); + } + + NSArray? get registeredTypeIdentifiers { final _ret = - _lib._objc_msgSend_609(_id, _lib._sel_initWithUUIDBytes_1, bytes); - return NSUUID._(_ret, _lib, retain: true, release: true); + _lib._objc_msgSend_79(_id, _lib._sel_registeredTypeIdentifiers1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); } - void getUUIDBytes_(ffi.Pointer uuid) { - _lib._objc_msgSend_610(_id, _lib._sel_getUUIDBytes_1, uuid); + NSArray registeredTypeIdentifiersWithFileOptions_(int fileOptions) { + final _ret = _lib._objc_msgSend_625( + _id, _lib._sel_registeredTypeIdentifiersWithFileOptions_1, fileOptions); + return NSArray._(_ret, _lib, retain: true, release: true); } - int compare_(NSUUID? otherUUID) { - return _lib._objc_msgSend_611( - _id, _lib._sel_compare_1, otherUUID?._id ?? ffi.nullptr); + bool hasItemConformingToTypeIdentifier_(NSString? typeIdentifier) { + return _lib._objc_msgSend_59( + _id, + _lib._sel_hasItemConformingToTypeIdentifier_1, + typeIdentifier?._id ?? ffi.nullptr); } - NSString? get UUIDString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_UUIDString1); + bool hasRepresentationConformingToTypeIdentifier_fileOptions_( + NSString? typeIdentifier, int fileOptions) { + return _lib._objc_msgSend_626( + _id, + _lib._sel_hasRepresentationConformingToTypeIdentifier_fileOptions_1, + typeIdentifier?._id ?? ffi.nullptr, + fileOptions); + } + + NSProgress loadDataRepresentationForTypeIdentifier_completionHandler_( + NSString? typeIdentifier, ObjCBlock25 completionHandler) { + final _ret = _lib._objc_msgSend_627( + _id, + _lib._sel_loadDataRepresentationForTypeIdentifier_completionHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + completionHandler._id); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + NSProgress loadFileRepresentationForTypeIdentifier_completionHandler_( + NSString? typeIdentifier, ObjCBlock28 completionHandler) { + final _ret = _lib._objc_msgSend_628( + _id, + _lib._sel_loadFileRepresentationForTypeIdentifier_completionHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + completionHandler._id); + return NSProgress._(_ret, _lib, retain: true, release: true); + } + + NSProgress loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_( + NSString? typeIdentifier, ObjCBlock27 completionHandler) { + final _ret = _lib._objc_msgSend_629( + _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); } - 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); + set suggestedName(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setSuggestedName_1, value?._id ?? ffi.nullptr); } - static NSUUID 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); + 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); } - 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); + void registerObject_visibility_(NSObject? object, int visibility) { + return _lib._objc_msgSend_630(_id, _lib._sel_registerObject_visibility_1, + object?._id ?? ffi.nullptr, visibility); + } + + void registerObjectOfClass_visibility_loadHandler_( + NSObject? aClass, int visibility, ObjCBlock29 loadHandler) { + return _lib._objc_msgSend_631( + _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, ObjCBlock30 completionHandler) { + final _ret = _lib._objc_msgSend_632( + _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_287( + _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, ObjCBlock31 loadHandler) { + return _lib._objc_msgSend_633( + _id, + _lib._sel_registerItemForTypeIdentifier_loadHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + loadHandler._id); + } + + void loadItemForTypeIdentifier_options_completionHandler_( + NSString? typeIdentifier, + NSDictionary? options, + ObjCBlock30 completionHandler) { + return _lib._objc_msgSend_634( + _id, + _lib._sel_loadItemForTypeIdentifier_options_completionHandler_1, + typeIdentifier?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + completionHandler._id); + } + + ObjCBlock31 get previewImageHandler { + final _ret = _lib._objc_msgSend_635(_id, _lib._sel_previewImageHandler1); + return ObjCBlock31._(_ret, _lib); + } + + set previewImageHandler(ObjCBlock31 value) { + _lib._objc_msgSend_636(_id, _lib._sel_setPreviewImageHandler_1, value._id); + } + + void loadPreviewImageWithOptions_completionHandler_( + NSDictionary? options, ObjCBlock30 completionHandler) { + return _lib._objc_msgSend_637( + _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 alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSItemProvider1, _lib._sel_alloc1); + return NSItemProvider._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -50164,8 +48808,8 @@ class NSUUID extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSUUID1, + return _lib._objc_msgSend_14( + _lib._class_NSItemProvider1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -50174,24 +48818,24 @@ class NSUUID extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSUUID1, + return _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_NSUUID1, _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_NSUUID1, _lib._sel_useStoredAccessor1); + _lib._class_NSItemProvider1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSUUID1, + _lib._class_NSItemProvider1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -50200,15 +48844,15 @@ class NSUUID extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSUUID1, + _lib._class_NSItemProvider1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSUUID1, + return _lib._objc_msgSend_82( + _lib._class_NSItemProvider1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -50216,1590 +48860,698 @@ class NSUUID extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSUUID1, _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_NSUUID1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSItemProvider1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class SentryEnvelopeItem extends _ObjCWrapper { - SentryEnvelopeItem._(ffi.Pointer id, SentryCocoa lib, +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 _ObjCBlock23_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 _ObjCBlock23_closureRegistry = {}; +int _ObjCBlock23_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock23_registerClosure(Function fn) { + final id = ++_ObjCBlock23_closureRegistryIndex; + _ObjCBlock23_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +ffi.Pointer _ObjCBlock23_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { + return (_ObjCBlock23_closureRegistry[block.ref.target.address] + as ffi.Pointer Function(ffi.Pointer<_ObjCBlock>))(arg0); +} + +class ObjCBlock23 extends _ObjCBlockBase { + ObjCBlock23._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock23.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)>( + _ObjCBlock23_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock23.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)>( + _ObjCBlock23_closureTrampoline) + .cast(), + _ObjCBlock23_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, {bool retain = false, bool release = false}) : super._(id, lib, retain: retain, release: release); - /// 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 [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 [SentryEnvelopeItem] that wraps the given raw object pointer. - static SentryEnvelopeItem castFromPointer( + /// 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 SentryEnvelopeItem._(other, lib, retain: retain, release: release); + return NSProgress._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [SentryEnvelopeItem]. + /// 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_SentryEnvelopeItem1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProgress1); } - SentryEnvelopeItem initWithEvent_(SentryEvent? event) { - final _ret = _lib._objc_msgSend_614( - _id, _lib._sel_initWithEvent_1, event?._id ?? ffi.nullptr); - return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); + static NSProgress currentProgress(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_609( + _lib._class_NSProgress1, _lib._sel_currentProgress1); + return NSProgress._(_ret, _lib, retain: true, release: true); } - SentryEnvelopeItem initWithSession_(SentrySession? session) { - final _ret = _lib._objc_msgSend_615( - _id, _lib._sel_initWithSession_1, session?._id ?? ffi.nullptr); - return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); + static NSProgress progressWithTotalUnitCount_( + SentryCocoa _lib, int unitCount) { + final _ret = _lib._objc_msgSend_610(_lib._class_NSProgress1, + _lib._sel_progressWithTotalUnitCount_1, unitCount); + return NSProgress._(_ret, _lib, retain: true, release: true); } - SentryEnvelopeItem initWithUserFeedback_(SentryUserFeedback? userFeedback) { - final _ret = _lib._objc_msgSend_616(_id, _lib._sel_initWithUserFeedback_1, - userFeedback?._id ?? ffi.nullptr); - return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); + static NSProgress discreteProgressWithTotalUnitCount_( + SentryCocoa _lib, int unitCount) { + final _ret = _lib._objc_msgSend_610(_lib._class_NSProgress1, + _lib._sel_discreteProgressWithTotalUnitCount_1, unitCount); + return NSProgress._(_ret, _lib, retain: true, release: true); } - SentryEnvelopeItem initWithAttachment_maxAttachmentSize_( - SentryAttachment? attachment, NSObject maxAttachmentSize) { - final _ret = _lib._objc_msgSend_617( - _id, - _lib._sel_initWithAttachment_maxAttachmentSize_1, - attachment?._id ?? ffi.nullptr, - maxAttachmentSize._id); - return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); + static NSProgress progressWithTotalUnitCount_parent_pendingUnitCount_( + SentryCocoa _lib, + int unitCount, + NSProgress? parent, + int portionOfParentTotalUnitCount) { + final _ret = _lib._objc_msgSend_611( + _lib._class_NSProgress1, + _lib._sel_progressWithTotalUnitCount_parent_pendingUnitCount_1, + unitCount, + parent?._id ?? ffi.nullptr, + portionOfParentTotalUnitCount); + return NSProgress._(_ret, _lib, retain: true, release: true); } - SentryEnvelopeItem initWithHeader_data_( - SentryEnvelopeItemHeader? header, NSObject data) { - final _ret = _lib._objc_msgSend_618(_id, _lib._sel_initWithHeader_data_1, - header?._id ?? ffi.nullptr, data._id); - return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); + NSProgress initWithParent_userInfo_( + NSProgress? parentProgressOrNil, NSObject? userInfoOrNil) { + final _ret = _lib._objc_msgSend_612( + _id, + _lib._sel_initWithParent_userInfo_1, + parentProgressOrNil?._id ?? ffi.nullptr, + userInfoOrNil?._id ?? ffi.nullptr); + return NSProgress._(_ret, _lib, retain: true, release: true); } - /// The envelope item header. - SentryEnvelopeItemHeader? get header { - final _ret = _lib._objc_msgSend_619(_id, _lib._sel_header1); - return _ret.address == 0 - ? null - : SentryEnvelopeItemHeader._(_ret, _lib, retain: true, release: true); + void becomeCurrentWithPendingUnitCount_(int unitCount) { + return _lib._objc_msgSend_613( + _id, _lib._sel_becomeCurrentWithPendingUnitCount_1, unitCount); } - /// The envelope payload. - ffi.Pointer get data { - return _lib._objc_msgSend_620(_id, _lib._sel_data1); + void performAsCurrentWithPendingUnitCount_usingBlock_( + int unitCount, ObjCBlock21 work) { + return _lib._objc_msgSend_614( + _id, + _lib._sel_performAsCurrentWithPendingUnitCount_usingBlock_1, + unitCount, + work._id); } -} - -class SentryEvent extends _ObjCWrapper { - SentryEvent._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - /// Returns a [SentryEvent] that points to the same underlying object as [other]. - static SentryEvent castFrom(T other) { - return SentryEvent._(other._id, other._lib, retain: true, release: true); + void resignCurrent() { + return _lib._objc_msgSend_1(_id, _lib._sel_resignCurrent1); } - /// Returns a [SentryEvent] that wraps the given raw object pointer. - static SentryEvent castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return SentryEvent._(other, lib, retain: retain, release: release); + void addChild_withPendingUnitCount_(NSProgress? child, int inUnitCount) { + return _lib._objc_msgSend_615( + _id, + _lib._sel_addChild_withPendingUnitCount_1, + child?._id ?? ffi.nullptr, + inUnitCount); } - /// Returns whether [obj] is an instance of [SentryEvent]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryEvent1); + int get totalUnitCount { + return _lib._objc_msgSend_616(_id, _lib._sel_totalUnitCount1); } -} -class SentrySession extends _ObjCWrapper { - SentrySession._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + set totalUnitCount(int value) { + _lib._objc_msgSend_617(_id, _lib._sel_setTotalUnitCount_1, value); + } - /// 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); + int get completedUnitCount { + return _lib._objc_msgSend_616(_id, _lib._sel_completedUnitCount1); } - /// 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); + set completedUnitCount(int value) { + _lib._objc_msgSend_617(_id, _lib._sel_setCompletedUnitCount_1, value); } - /// 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); + 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); } -} -class SentryUserFeedback extends _ObjCWrapper { - SentryUserFeedback._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + set localizedDescription(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setLocalizedDescription_1, value?._id ?? ffi.nullptr); + } - /// Returns a [SentryUserFeedback] that points to the same underlying object as [other]. - static SentryUserFeedback castFrom(T other) { - return SentryUserFeedback._(other._id, other._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); } - /// Returns a [SentryUserFeedback] that wraps the given raw object pointer. - static SentryUserFeedback castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return SentryUserFeedback._(other, lib, retain: retain, release: release); + set localizedAdditionalDescription(NSString? value) { + _lib._objc_msgSend_509(_id, _lib._sel_setLocalizedAdditionalDescription_1, + value?._id ?? ffi.nullptr); } - /// Returns whether [obj] is an instance of [SentryUserFeedback]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_SentryUserFeedback1); + bool get cancellable { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancellable1); } -} -class SentryAttachment extends _ObjCWrapper { - SentryAttachment._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + set cancellable(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setCancellable_1, value); + } - /// 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); + bool get pausable { + return _lib._objc_msgSend_12(_id, _lib._sel_isPausable1); } - /// 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 SentryAttachment._(other, lib, retain: retain, release: release); + set pausable(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setPausable_1, value); } - /// 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_SentryAttachment1); + bool get cancelled { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); } -} -class SentryEnvelopeItemHeader extends _ObjCWrapper { - SentryEnvelopeItemHeader._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + bool get paused { + return _lib._objc_msgSend_12(_id, _lib._sel_isPaused1); + } - /// Returns a [SentryEnvelopeItemHeader] that points to the same underlying object as [other]. - static SentryEnvelopeItemHeader castFrom(T other) { - return SentryEnvelopeItemHeader._(other._id, other._lib, - retain: true, release: true); + ObjCBlock21 get cancellationHandler { + final _ret = _lib._objc_msgSend_618(_id, _lib._sel_cancellationHandler1); + return ObjCBlock21._(_ret, _lib); } - /// Returns a [SentryEnvelopeItemHeader] that wraps the given raw object pointer. - static SentryEnvelopeItemHeader castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return SentryEnvelopeItemHeader._(other, lib, - retain: retain, release: release); + set cancellationHandler(ObjCBlock21 value) { + _lib._objc_msgSend_619(_id, _lib._sel_setCancellationHandler_1, value._id); } - /// Returns whether [obj] is an instance of [SentryEnvelopeItemHeader]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, - obj._lib._class_SentryEnvelopeItemHeader1); + ObjCBlock21 get pausingHandler { + final _ret = _lib._objc_msgSend_618(_id, _lib._sel_pausingHandler1); + return ObjCBlock21._(_ret, _lib); } -} -class SentryEnvelopeHeader extends _ObjCWrapper { - SentryEnvelopeHeader._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + set pausingHandler(ObjCBlock21 value) { + _lib._objc_msgSend_619(_id, _lib._sel_setPausingHandler_1, value._id); + } - /// 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); + ObjCBlock21 get resumingHandler { + final _ret = _lib._objc_msgSend_618(_id, _lib._sel_resumingHandler1); + return ObjCBlock21._(_ret, _lib); } - /// 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 SentryEnvelopeHeader._(other, lib, retain: retain, release: release); + set resumingHandler(ObjCBlock21 value) { + _lib._objc_msgSend_619(_id, _lib._sel_setResumingHandler_1, value._id); } - /// 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_SentryEnvelopeHeader1); + void setUserInfoObject_forKey_(NSObject objectOrNil, NSString key) { + return _lib._objc_msgSend_126( + _id, _lib._sel_setUserInfoObject_forKey_1, objectOrNil._id, key._id); } - /// Initializes an @c SentryEnvelopeHeader object with the specified eventId. - /// @note Sets the @c sdkInfo from @c SentryMeta. - /// @param eventId The identifier of the event. Can be nil if no event in the envelope or attachment - /// related to event. - SentryEnvelopeHeader initWithId_(SentryId? eventId) { - final _ret = _lib._objc_msgSend_622( - _id, _lib._sel_initWithId_1, eventId?._id ?? ffi.nullptr); - return SentryEnvelopeHeader._(_ret, _lib, retain: true, release: true); + bool get indeterminate { + return _lib._objc_msgSend_12(_id, _lib._sel_isIndeterminate1); } - /// 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_623( - _id, - _lib._sel_initWithId_traceContext_1, - eventId?._id ?? ffi.nullptr, - traceContext?._id ?? ffi.nullptr); - return SentryEnvelopeHeader._(_ret, _lib, retain: true, release: true); + double get fractionCompleted { + return _lib._objc_msgSend_155(_id, _lib._sel_fractionCompleted1); } - /// Initializes a @c SentryEnvelopeHeader object with the specified @c eventId, @c skdInfo and - /// @c traceContext. It is recommended to use @c initWithId:traceContext: because it sets the - /// @c sdkInfo for you. - /// @param eventId The identifier of the event. Can be @c nil if no event in the envelope or - /// attachment related to event. - /// @param sdkInfo Describes the Sentry SDK. Can be @c nil for backwards compatibility. New - /// instances should always provide a version. - /// @param traceContext Current trace state. - SentryEnvelopeHeader initWithId_sdkInfo_traceContext_(SentryId? eventId, - SentrySdkInfo? sdkInfo, SentryTraceContext? traceContext) { - final _ret = _lib._objc_msgSend_624( - _id, - _lib._sel_initWithId_sdkInfo_traceContext_1, - eventId?._id ?? ffi.nullptr, - sdkInfo?._id ?? ffi.nullptr, - traceContext?._id ?? ffi.nullptr); - return SentryEnvelopeHeader._(_ret, _lib, retain: true, release: true); + bool get finished { + return _lib._objc_msgSend_12(_id, _lib._sel_isFinished1); } - /// 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_613(_id, _lib._sel_eventId1); + void cancel() { + return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + } + + void pause() { + return _lib._objc_msgSend_1(_id, _lib._sel_pause1); + } + + void resume() { + return _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 - : SentryId._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - SentrySdkInfo? get sdkInfo { - final _ret = _lib._objc_msgSend_625(_id, _lib._sel_sdkInfo1); + 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) { + _lib._objc_msgSend_509(_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 - : SentrySdkInfo._(_ret, _lib, retain: true, release: true); + : NSNumber._(_ret, _lib, retain: true, release: true); } - SentryTraceContext? get traceContext { - final _ret = _lib._objc_msgSend_626(_id, _lib._sel_traceContext1); + set estimatedTimeRemaining(NSNumber? value) { + _lib._objc_msgSend_620( + _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 - : SentryTraceContext._(_ret, _lib, retain: true, release: true); + : NSNumber._(_ret, _lib, retain: true, release: true); } - /// 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. - ffi.Pointer get sentAt { - return _lib._objc_msgSend_620(_id, _lib._sel_sentAt1); + set throughput(NSNumber? value) { + _lib._objc_msgSend_620( + _id, _lib._sel_setThroughput_1, value?._id ?? ffi.nullptr); } - /// 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(ffi.Pointer value) { - return _lib._objc_msgSend_627(_id, _lib._sel_setSentAt_1, value); + NSString get fileOperationKind { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_fileOperationKind1); + return NSString._(_ret, _lib, retain: true, release: true); } -} -class SentryTraceContext extends _ObjCWrapper { - SentryTraceContext._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + set fileOperationKind(NSString value) { + _lib._objc_msgSend_509(_id, _lib._sel_setFileOperationKind_1, value._id); + } - /// 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); + 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); } - /// 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 SentryTraceContext._(other, lib, retain: retain, release: release); + set fileURL(NSURL? value) { + _lib._objc_msgSend_621( + _id, _lib._sel_setFileURL_1, value?._id ?? ffi.nullptr); } - /// 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_SentryTraceContext1); + 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); } -} -class SentrySdkInfo extends _ObjCWrapper { - SentrySdkInfo._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + set fileTotalCount(NSNumber? value) { + _lib._objc_msgSend_620( + _id, _lib._sel_setFileTotalCount_1, value?._id ?? ffi.nullptr); + } - /// Returns a [SentrySdkInfo] that points to the same underlying object as [other]. - static SentrySdkInfo castFrom(T other) { - return SentrySdkInfo._(other._id, other._lib, retain: true, release: true); + 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); } - /// Returns a [SentrySdkInfo] that wraps the given raw object pointer. - static SentrySdkInfo castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return SentrySdkInfo._(other, lib, retain: retain, release: release); + set fileCompletedCount(NSNumber? value) { + _lib._objc_msgSend_620( + _id, _lib._sel_setFileCompletedCount_1, value?._id ?? ffi.nullptr); } - /// Returns whether [obj] is an instance of [SentrySdkInfo]. - static bool isInstance(_ObjCWrapper obj) { - return obj._lib._objc_msgSend_0( - obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentrySdkInfo1); + void publish() { + return _lib._objc_msgSend_1(_id, _lib._sel_publish1); + } + + void unpublish() { + return _lib._objc_msgSend_1(_id, _lib._sel_unpublish1); + } + + static NSObject addSubscriberForFileURL_withPublishingHandler_( + SentryCocoa _lib, NSURL? url, ObjCBlock24 publishingHandler) { + final _ret = _lib._objc_msgSend_622( + _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) { + return _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); + } + + 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 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) { + return _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) { + return _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) { + return _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); } } -int _ObjCBlock_ffiInt_SentryAppStartMeasurement_fnPtrTrampoline( +ffi.Pointer<_ObjCBlock> _ObjCBlock24_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { return block.ref.target .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer arg0)>>() + .asFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer arg0)>()(arg0); } -final _ObjCBlock_ffiInt_SentryAppStartMeasurement_closureRegistry = - {}; -int _ObjCBlock_ffiInt_SentryAppStartMeasurement_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_ffiInt_SentryAppStartMeasurement_registerClosure(Function fn) { - final id = ++_ObjCBlock_ffiInt_SentryAppStartMeasurement_closureRegistryIndex; - _ObjCBlock_ffiInt_SentryAppStartMeasurement_closureRegistry[id] = fn; +final _ObjCBlock24_closureRegistry = {}; +int _ObjCBlock24_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock24_registerClosure(Function fn) { + final id = ++_ObjCBlock24_closureRegistryIndex; + _ObjCBlock24_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -int _ObjCBlock_ffiInt_SentryAppStartMeasurement_closureTrampoline( +ffi.Pointer<_ObjCBlock> _ObjCBlock24_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiInt_SentryAppStartMeasurement_closureRegistry[ - block.ref.target.address] as int Function(ffi.Pointer))(arg0); + return (_ObjCBlock24_closureRegistry[block.ref.target.address] + as ffi.Pointer<_ObjCBlock> Function(ffi.Pointer))(arg0); } -class ObjCBlock_ffiInt_SentryAppStartMeasurement extends _ObjCBlockBase { - ObjCBlock_ffiInt_SentryAppStartMeasurement._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock24 extends _ObjCBlockBase { + ObjCBlock24._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiInt_SentryAppStartMeasurement.fromFunctionPointer( + ObjCBlock24.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< - ffi - .NativeFunction arg0)>> + ffi.NativeFunction< + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer arg0)>> ptr) : this._( lib._newBlock1( _cFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Int Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>( - _ObjCBlock_ffiInt_SentryAppStartMeasurement_fnPtrTrampoline, - 0) + _ObjCBlock24_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiInt_SentryAppStartMeasurement.fromFunction( - SentryCocoa lib, int Function(ffi.Pointer arg0) fn) + ObjCBlock24.fromFunction(SentryCocoa lib, + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer arg0) fn) : this._( lib._newBlock1( _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Int Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> Function( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>( - _ObjCBlock_ffiInt_SentryAppStartMeasurement_closureTrampoline, - 0) + _ObjCBlock24_closureTrampoline) .cast(), - _ObjCBlock_ffiInt_SentryAppStartMeasurement_registerClosure( - fn)), + _ObjCBlock24_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - int call(ffi.Pointer arg0) { + ffi.Pointer<_ObjCBlock> call(ffi.Pointer arg0) { return _id.ref.invoke .cast< ffi.NativeFunction< - ffi.Int Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>>() .asFunction< - int Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>()(_id, arg0); } } -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 [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 [SentryAppStartMeasurement] that wraps the given raw object pointer. - static SentryAppStartMeasurement castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return SentryAppStartMeasurement._(other, lib, - retain: retain, release: release); - } +void _ObjCBlock25_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 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_SentryAppStartMeasurement1); - } +final _ObjCBlock25_closureRegistry = {}; +int _ObjCBlock25_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock25_registerClosure(Function fn) { + final id = ++_ObjCBlock25_closureRegistryIndex; + _ObjCBlock25_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); } -class SentryOptions extends _ObjCWrapper { - SentryOptions._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +void _ObjCBlock25_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return (_ObjCBlock25_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer, ffi.Pointer))(arg0, arg1); +} - /// 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); - } +class ObjCBlock25 extends _ObjCBlockBase { + ObjCBlock25._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, 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); - } + /// Creates a block from a C function pointer. + ObjCBlock25.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)>( + _ObjCBlock25_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; - /// 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); + /// Creates a block from a Dart function. + ObjCBlock25.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)>( + _ObjCBlock25_closureTrampoline) + .cast(), + _ObjCBlock25_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 SentryUser extends _ObjCWrapper { - SentryUser._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); - - /// 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); - } +abstract class NSItemProviderFileOptions { + static const int NSItemProviderFileOptionOpenInPlace = 1; +} - /// 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); - } +ffi.Pointer _ObjCBlock26_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); +} - /// 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); - } +final _ObjCBlock26_closureRegistry = {}; +int _ObjCBlock26_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock26_registerClosure(Function fn) { + final id = ++_ObjCBlock26_closureRegistryIndex; + _ObjCBlock26_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); } -class SentryBreadcrumb extends _ObjCWrapper { - SentryBreadcrumb._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); +ffi.Pointer _ObjCBlock26_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { + return (_ObjCBlock26_closureRegistry[block.ref.target.address] + as ffi.Pointer Function(ffi.Pointer<_ObjCBlock>))(arg0); +} - /// 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); - } - - /// 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); - } - - /// 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); - } -} - -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); - } - - /// 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 - 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_657( - _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_658( - _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_659( - _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_660( - _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_661( - _id, - _lib._sel_loadDataRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - completionHandler._id); - return NSProgress._(_ret, _lib, retain: true, release: true); - } - - NSProgress loadFileRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, - ObjCBlock_ffiVoid_NSURL_NSError completionHandler) { - final _ret = _lib._objc_msgSend_662( - _id, - _lib._sel_loadFileRepresentationForTypeIdentifier_completionHandler_1, - typeIdentifier?._id ?? ffi.nullptr, - completionHandler._id); - return NSProgress._(_ret, _lib, retain: true, release: true); - } - - NSProgress loadInPlaceFileRepresentationForTypeIdentifier_completionHandler_( - NSString? typeIdentifier, - ObjCBlock_ffiVoid_NSURL_bool_NSError completionHandler) { - final _ret = _lib._objc_msgSend_663( - _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_509( - _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_664(_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_665( - _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_666( - _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_287( - _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_667( - _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_668( - _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_669(_id, _lib._sel_previewImageHandler1); - return ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary._( - _ret, _lib); - } - - set previewImageHandler( - ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary - value) { - return _lib._objc_msgSend_670( - _id, _lib._sel_setPreviewImageHandler_1, value._id); - } - - void loadPreviewImageWithOptions_completionHandler_(NSDictionary? options, - ObjCBlock_ffiVoid_ObjCObject_NSError completionHandler) { - _lib._objc_msgSend_671( - _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_NSItemProvider1, _lib._sel_allocWithZone_1, zone); - return NSItemProvider._(_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 void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSItemProvider1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); - } - - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _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_NSItemProvider1, - _lib._sel_accessInstanceVariablesDirectly1); - } - - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSItemProvider1, _lib._sel_useStoredAccessor1); - } - - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSItemProvider1, - _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_NSItemProvider1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); - } - - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSItemProvider1, - _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); - 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); - 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, - {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_643( - _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_644(_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_644(_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_645( - _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_646( - _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_647( - _id, _lib._sel_becomeCurrentWithPendingUnitCount_1, unitCount); - } - - void performAsCurrentWithPendingUnitCount_usingBlock_( - int unitCount, ObjCBlock_ffiVoid work) { - _lib._objc_msgSend_648( - _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_649(_id, _lib._sel_addChild_withPendingUnitCount_1, - child?._id ?? ffi.nullptr, inUnitCount); - } - - int get totalUnitCount { - return _lib._objc_msgSend_650(_id, _lib._sel_totalUnitCount1); - } - - set totalUnitCount(int value) { - return _lib._objc_msgSend_651(_id, _lib._sel_setTotalUnitCount_1, value); - } - - int get completedUnitCount { - return _lib._objc_msgSend_650(_id, _lib._sel_completedUnitCount1); - } - - set completedUnitCount(int value) { - return _lib._objc_msgSend_651( - _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_509( - _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_509( - _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_492(_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_492(_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_652(_id, _lib._sel_cancellationHandler1); - return ObjCBlock_ffiVoid._(_ret, _lib); - } - - set cancellationHandler(ObjCBlock_ffiVoid value) { - return _lib._objc_msgSend_653( - _id, _lib._sel_setCancellationHandler_1, value._id); - } - - ObjCBlock_ffiVoid get pausingHandler { - final _ret = _lib._objc_msgSend_652(_id, _lib._sel_pausingHandler1); - return ObjCBlock_ffiVoid._(_ret, _lib); - } - - set pausingHandler(ObjCBlock_ffiVoid value) { - return _lib._objc_msgSend_653( - _id, _lib._sel_setPausingHandler_1, value._id); - } - - ObjCBlock_ffiVoid get resumingHandler { - final _ret = _lib._objc_msgSend_652(_id, _lib._sel_resumingHandler1); - return ObjCBlock_ffiVoid._(_ret, _lib); - } - - set resumingHandler(ObjCBlock_ffiVoid value) { - return _lib._objc_msgSend_653( - _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_509(_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_654( - _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_654( - _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_509( - _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_655( - _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_654( - _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_654( - _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_656( - _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); +class ObjCBlock26 extends _ObjCBlockBase { + ObjCBlock26._(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; -ffi.Pointer _ObjCBlock_ffiVoid_NSData_NSError_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSData_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSData_NSError_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -void _ObjCBlock_ffiVoid_NSData_NSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_ffiVoid_NSData_NSError_closureRegistry[ - block.ref.target.address] - as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); -} - -class ObjCBlock_ffiVoid_NSData_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_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_NSData_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_NSData_NSError_fnPtrTrampoline) - .cast(), - ptr.cast()), - lib); - static ffi.Pointer? _cFuncTrampoline; - - /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSData_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_NSData_NSError_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSData_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 NSItemProviderFileOptions { - static const int NSItemProviderFileOptionOpenInPlace = 1; -} - -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_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_ffiVoidNSURLboolNSError_closureRegistry = - {}; -int _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_registerClosure(Function fn) { - final id = - ++_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistryIndex; - _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistry[id] = fn; - return ffi.Pointer.fromAddress(id); -} - -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return (_ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureRegistry[ - block.ref.target.address] - as ffi.Pointer Function(ffi.Pointer<_ObjCBlock>))(arg0); -} - -class ObjCBlock_NSProgress_ffiVoidNSURLboolNSError extends _ObjCBlockBase { - ObjCBlock_NSProgress_ffiVoidNSURLboolNSError._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); - - /// Creates a block from a C function pointer. - ObjCBlock_NSProgress_ffiVoidNSURLboolNSError.fromFunctionPointer( + ObjCBlock26.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -51812,14 +49564,14 @@ class ObjCBlock_NSProgress_ffiVoidNSURLboolNSError extends _ObjCBlockBase { ffi.Pointer Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_fnPtrTrampoline) + _ObjCBlock26_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_NSProgress_ffiVoidNSURLboolNSError.fromFunction(SentryCocoa lib, + ObjCBlock26.fromFunction(SentryCocoa lib, ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) : this._( lib._newBlock1( @@ -51827,10 +49579,9 @@ class ObjCBlock_NSProgress_ffiVoidNSURLboolNSError extends _ObjCBlockBase { ffi.Pointer Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_closureTrampoline) + _ObjCBlock26_closureTrampoline) .cast(), - _ObjCBlock_NSProgress_ffiVoidNSURLboolNSError_registerClosure( - fn)), + _ObjCBlock26_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { @@ -51845,11 +49596,8 @@ class ObjCBlock_NSProgress_ffiVoidNSURLboolNSError extends _ObjCBlockBase { } } -void _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2) { +void _ObjCBlock27_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { return block.ref.target .cast< ffi.NativeFunction< @@ -51860,33 +49608,27 @@ void _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline( ffi.Pointer arg2)>()(arg0, arg1, arg2); } -final _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSURL_bool_NSError_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistry[id] = fn; +final _ObjCBlock27_closureRegistry = {}; +int _ObjCBlock27_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock27_registerClosure(Function fn) { + final id = ++_ObjCBlock27_closureRegistryIndex; + _ObjCBlock27_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_NSURL_bool_NSError_closureRegistry[ - block.ref.target.address] - as void Function(ffi.Pointer, bool, - ffi.Pointer))(arg0, arg1, arg2); +void _ObjCBlock27_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { + return (_ObjCBlock27_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer, bool, ffi.Pointer))( + arg0, arg1, arg2); } -class ObjCBlock_ffiVoid_NSURL_bool_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSURL_bool_NSError._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock27 extends _ObjCBlockBase { + ObjCBlock27._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSURL_bool_NSError.fromFunctionPointer( + ObjCBlock27.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -51901,14 +49643,14 @@ class ObjCBlock_ffiVoid_NSURL_bool_NSError extends _ObjCBlockBase { ffi.Pointer arg0, ffi.Bool arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSURL_bool_NSError_fnPtrTrampoline) + _ObjCBlock27_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSURL_bool_NSError.fromFunction( + ObjCBlock27.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) @@ -51921,9 +49663,9 @@ class ObjCBlock_ffiVoid_NSURL_bool_NSError extends _ObjCBlockBase { ffi.Pointer arg0, ffi.Bool arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSURL_bool_NSError_closureTrampoline) + _ObjCBlock27_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSURL_bool_NSError_registerClosure(fn)), + _ObjCBlock27_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call( @@ -51945,10 +49687,8 @@ class ObjCBlock_ffiVoid_NSURL_bool_NSError extends _ObjCBlockBase { } } -void _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { +void _ObjCBlock28_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { return block.ref.target .cast< ffi.NativeFunction< @@ -51959,31 +49699,26 @@ void _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline( ffi.Pointer arg1)>()(arg0, arg1); } -final _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry = {}; -int _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_NSURL_NSError_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_NSURL_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry[id] = fn; +final _ObjCBlock28_closureRegistry = {}; +int _ObjCBlock28_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock28_registerClosure(Function fn) { + final id = ++_ObjCBlock28_closureRegistryIndex; + _ObjCBlock28_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry[ - block.ref.target.address] - as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); +void _ObjCBlock28_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return (_ObjCBlock28_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_ffiVoid_NSURL_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSURL_NSError._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock28 extends _ObjCBlockBase { + ObjCBlock28._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_NSURL_NSError.fromFunctionPointer( + ObjCBlock28.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -51997,14 +49732,14 @@ class ObjCBlock_ffiVoid_NSURL_NSError extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_NSURL_NSError_fnPtrTrampoline) + _ObjCBlock28_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSURL_NSError.fromFunction( + ObjCBlock28.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0, ffi.Pointer arg1) fn) @@ -52015,9 +49750,9 @@ class ObjCBlock_ffiVoid_NSURL_NSError extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline) + _ObjCBlock28_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSURL_NSError_registerClosure(fn)), + _ObjCBlock28_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0, ffi.Pointer arg1) { @@ -52036,9 +49771,8 @@ class ObjCBlock_ffiVoid_NSURL_NSError extends _ObjCBlockBase { } } -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { +ffi.Pointer _ObjCBlock29_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { return block.ref.target .cast< ffi.NativeFunction< @@ -52048,33 +49782,26 @@ ffi.Pointer ffi.Pointer<_ObjCBlock> arg0)>()(arg0); } -final _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistry = - {}; -int _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistryIndex = 0; -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistryIndex; - _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistry[id] = fn; +final _ObjCBlock29_closureRegistry = {}; +int _ObjCBlock29_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock29_registerClosure(Function fn) { + final id = ++_ObjCBlock29_closureRegistryIndex; + _ObjCBlock29_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -ffi.Pointer - _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { - return (_ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureRegistry[ - block.ref.target.address] +ffi.Pointer _ObjCBlock29_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0) { + return (_ObjCBlock29_closureRegistry[block.ref.target.address] as ffi.Pointer Function(ffi.Pointer<_ObjCBlock>))(arg0); } -class ObjCBlock_NSProgress_ffiVoidObjCObjectNSError extends _ObjCBlockBase { - ObjCBlock_NSProgress_ffiVoidObjCObjectNSError._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock29 extends _ObjCBlockBase { + ObjCBlock29._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_NSProgress_ffiVoidObjCObjectNSError.fromFunctionPointer( + ObjCBlock29.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -52087,14 +49814,14 @@ class ObjCBlock_NSProgress_ffiVoidObjCObjectNSError extends _ObjCBlockBase { ffi.Pointer Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_fnPtrTrampoline) + _ObjCBlock29_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_NSProgress_ffiVoidObjCObjectNSError.fromFunction(SentryCocoa lib, + ObjCBlock29.fromFunction(SentryCocoa lib, ffi.Pointer Function(ffi.Pointer<_ObjCBlock> arg0) fn) : this._( lib._newBlock1( @@ -52102,10 +49829,9 @@ class ObjCBlock_NSProgress_ffiVoidObjCObjectNSError extends _ObjCBlockBase { ffi.Pointer Function( ffi.Pointer<_ObjCBlock> block, ffi.Pointer<_ObjCBlock> arg0)>( - _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_closureTrampoline) + _ObjCBlock29_closureTrampoline) .cast(), - _ObjCBlock_NSProgress_ffiVoidObjCObjectNSError_registerClosure( - fn)), + _ObjCBlock29_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; ffi.Pointer call(ffi.Pointer<_ObjCBlock> arg0) { @@ -52120,10 +49846,8 @@ class ObjCBlock_NSProgress_ffiVoidObjCObjectNSError extends _ObjCBlockBase { } } -void _ObjCBlock_ffiVoid_ObjCObject_NSError_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { +void _ObjCBlock30_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { return block.ref.target .cast< ffi.NativeFunction< @@ -52134,32 +49858,26 @@ void _ObjCBlock_ffiVoid_ObjCObject_NSError_fnPtrTrampoline( ffi.Pointer arg1)>()(arg0, arg1); } -final _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistry = {}; -int _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistryIndex = 0; -ffi.Pointer _ObjCBlock_ffiVoid_ObjCObject_NSError_registerClosure( - Function fn) { - final id = ++_ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistryIndex; - _ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistry[id] = fn; +final _ObjCBlock30_closureRegistry = {}; +int _ObjCBlock30_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock30_registerClosure(Function fn) { + final id = ++_ObjCBlock30_closureRegistryIndex; + _ObjCBlock30_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_ObjCObject_NSError_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1) { - return (_ObjCBlock_ffiVoid_ObjCObject_NSError_closureRegistry[ - block.ref.target.address] - as void Function( - ffi.Pointer, ffi.Pointer))(arg0, arg1); +void _ObjCBlock30_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return (_ObjCBlock30_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer, ffi.Pointer))(arg0, arg1); } -class ObjCBlock_ffiVoid_ObjCObject_NSError extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ObjCObject_NSError._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock30 extends _ObjCBlockBase { + ObjCBlock30._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ObjCObject_NSError.fromFunctionPointer( + ObjCBlock30.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -52173,14 +49891,14 @@ class ObjCBlock_ffiVoid_ObjCObject_NSError extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_ObjCObject_NSError_fnPtrTrampoline) + _ObjCBlock30_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ObjCObject_NSError.fromFunction( + ObjCBlock30.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0, ffi.Pointer arg1) fn) @@ -52191,9 +49909,9 @@ class ObjCBlock_ffiVoid_ObjCObject_NSError extends _ObjCBlockBase { ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1)>( - _ObjCBlock_ffiVoid_ObjCObject_NSError_closureTrampoline) + _ObjCBlock30_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_ObjCObject_NSError_registerClosure(fn)), + _ObjCBlock30_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0, ffi.Pointer arg1) { @@ -52212,12 +49930,11 @@ class ObjCBlock_ffiVoid_ObjCObject_NSError extends _ObjCBlockBase { } } -void - _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { +void _ObjCBlock31_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { return block.ref.target .cast< ffi.NativeFunction< @@ -52232,43 +49949,34 @@ void ffi.Pointer arg2)>()(arg0, arg1, arg2); } -final _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistry = - {}; -int _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistryIndex = - 0; -ffi.Pointer - _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_registerClosure( - Function fn) { - final id = - ++_ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistryIndex; - _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistry[ - id] = fn; +final _ObjCBlock31_closureRegistry = {}; +int _ObjCBlock31_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock31_registerClosure(Function fn) { + final id = ++_ObjCBlock31_closureRegistryIndex; + _ObjCBlock31_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void - _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer<_ObjCBlock> arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { - return (_ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureRegistry[ - block.ref.target.address] +void _ObjCBlock31_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer<_ObjCBlock> arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return (_ObjCBlock31_closureRegistry[block.ref.target.address] as void Function(ffi.Pointer<_ObjCBlock>, ffi.Pointer, ffi.Pointer))(arg0, arg1, arg2); } -class ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary - extends _ObjCBlockBase { - ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock31 extends _ObjCBlockBase { + ObjCBlock31._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) : super._(id, lib, retain: false, release: true); /// Creates a block from a C function pointer. - ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary.fromFunctionPointer( + ObjCBlock31.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< - ffi.NativeFunction< + ffi + .NativeFunction< ffi.Void Function( ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, @@ -52282,14 +49990,14 @@ class ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_fnPtrTrampoline) + _ObjCBlock31_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary.fromFunction( + ObjCBlock31.fromFunction( SentryCocoa lib, void Function(ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, ffi.Pointer arg2) @@ -52302,10 +50010,9 @@ class ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_closureTrampoline) + _ObjCBlock31_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary_registerClosure( - fn)), + _ObjCBlock31_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer<_ObjCBlock> arg0, ffi.Pointer arg1, @@ -52352,37 +50059,41 @@ class NSMutableString extends NSString { } void replaceCharactersInRange_withString_(_NSRange range, NSString? aString) { - _lib._objc_msgSend_672(_id, _lib._sel_replaceCharactersInRange_withString_1, - range, aString?._id ?? ffi.nullptr); + return _lib._objc_msgSend_638( + _id, + _lib._sel_replaceCharactersInRange_withString_1, + range, + aString?._id ?? ffi.nullptr); } void insertString_atIndex_(NSString? aString, int loc) { - _lib._objc_msgSend_673(_id, _lib._sel_insertString_atIndex_1, + return _lib._objc_msgSend_639(_id, _lib._sel_insertString_atIndex_1, aString?._id ?? ffi.nullptr, loc); } void deleteCharactersInRange_(_NSRange range) { - _lib._objc_msgSend_445(_id, _lib._sel_deleteCharactersInRange_1, range); + return _lib._objc_msgSend_445( + _id, _lib._sel_deleteCharactersInRange_1, range); } void appendString_(NSString? aString) { - _lib._objc_msgSend_192( + return _lib._objc_msgSend_192( _id, _lib._sel_appendString_1, aString?._id ?? ffi.nullptr); } void appendFormat_(NSString? format) { - _lib._objc_msgSend_192( + return _lib._objc_msgSend_192( _id, _lib._sel_appendFormat_1, format?._id ?? ffi.nullptr); } void setString_(NSString? aString) { - _lib._objc_msgSend_192( + return _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_674( + return _lib._objc_msgSend_640( _id, _lib._sel_replaceOccurrencesOfString_withString_options_range_1, target?._id ?? ffi.nullptr, @@ -52393,7 +50104,7 @@ class NSMutableString extends NSString { bool applyTransform_reverse_range_updatedRange_(NSString transform, bool reverse, _NSRange range, ffi.Pointer<_NSRange> resultingRange) { - return _lib._objc_msgSend_675( + return _lib._objc_msgSend_641( _id, _lib._sel_applyTransform_reverse_range_updatedRange_1, transform._id, @@ -52404,29 +50115,16 @@ class NSMutableString extends NSString { NSMutableString initWithCapacity_(int capacity) { final _ret = - _lib._objc_msgSend_676(_id, _lib._sel_initWithCapacity_1, capacity); + _lib._objc_msgSend_642(_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_676( + final _ret = _lib._objc_msgSend_642( _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_333( @@ -52445,202 +50143,6 @@ class NSMutableString extends NSString { _lib._class_NSMutableString1, _lib._sel_defaultCStringEncoding1); } - @override - NSMutableString initWithCharactersNoCopy_length_freeWhenDone_( - ffi.Pointer characters, int length, bool freeBuffer) { - final _ret = _lib._objc_msgSend_344( - _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_345( - _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_346( - _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_347( - _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_348( - _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_349( - _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_350( - _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_351( - _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_352( - _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_353( - _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_354(_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_355( - _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_356( - _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_357( - _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); @@ -52709,14 +50211,6 @@ class NSMutableString extends NSString { return NSMutableString._(_ret, _lib, retain: true, release: true); } - @override - NSMutableString initWithCString_encoding_( - ffi.Pointer nullTerminatedCString, int encoding) { - final _ret = _lib._objc_msgSend_358(_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_358(_lib._class_NSMutableString1, @@ -52724,30 +50218,6 @@ class NSMutableString extends NSString { 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_359( - _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_360( - _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, @@ -52776,34 +50246,6 @@ class NSMutableString extends NSString { 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_361( - _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_362( - _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, @@ -52886,13 +50328,6 @@ class NSMutableString extends NSString { 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); @@ -52904,7 +50339,7 @@ class NSMutableString extends NSString { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSMutableString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -52914,7 +50349,7 @@ class NSMutableString extends NSString { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableString1, + return _lib._objc_msgSend_15(_lib._class_NSMutableString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -52947,7 +50382,7 @@ class NSMutableString extends NSString { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSMutableString1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -53009,7 +50444,7 @@ class NSNotification extends NSObject { NSNotification initWithName_object_userInfo_( NSString name, NSObject object, NSDictionary? userInfo) { - final _ret = _lib._objc_msgSend_677( + final _ret = _lib._objc_msgSend_643( _id, _lib._sel_initWithName_object_userInfo_1, name._id, @@ -53033,7 +50468,7 @@ class NSNotification extends NSObject { static NSNotification notificationWithName_object_userInfo_(SentryCocoa _lib, NSString aName, NSObject anObject, NSDictionary? aUserInfo) { - final _ret = _lib._objc_msgSend_677( + final _ret = _lib._objc_msgSend_643( _lib._class_NSNotification1, _lib._sel_notificationWithName_object_userInfo_1, aName._id, @@ -53054,13 +50489,6 @@ class NSNotification extends NSObject { 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); @@ -53072,7 +50500,7 @@ class NSNotification extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSNotification1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -53082,7 +50510,7 @@ class NSNotification extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSNotification1, + return _lib._objc_msgSend_15(_lib._class_NSNotification1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -53115,7 +50543,7 @@ class NSNotification extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSNotification1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -53160,7 +50588,7 @@ class NSBundle extends NSObject { static NSBundle? getMainBundle(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_678(_lib._class_NSBundle1, _lib._sel_mainBundle1); + _lib._objc_msgSend_644(_lib._class_NSBundle1, _lib._sel_mainBundle1); return _ret.address == 0 ? null : NSBundle._(_ret, _lib, retain: true, release: true); @@ -53191,14 +50619,14 @@ class NSBundle extends NSObject { } static NSBundle bundleForClass_(SentryCocoa _lib, NSObject aClass) { - final _ret = _lib._objc_msgSend_679( + final _ret = _lib._objc_msgSend_645( _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_680(_lib._class_NSBundle1, + final _ret = _lib._objc_msgSend_646(_lib._class_NSBundle1, _lib._sel_bundleWithIdentifier_1, identifier?._id ?? ffi.nullptr); return NSBundle._(_ret, _lib, retain: true, release: true); } @@ -53367,7 +50795,7 @@ class NSBundle extends NSObject { NSString? ext, NSString? subpath, NSURL? bundleURL) { - final _ret = _lib._objc_msgSend_681( + final _ret = _lib._objc_msgSend_647( _lib._class_NSBundle1, _lib._sel_URLForResource_withExtension_subdirectory_inBundleWithURL_1, name?._id ?? ffi.nullptr, @@ -53379,7 +50807,7 @@ class NSBundle extends NSObject { static NSArray URLsForResourcesWithExtension_subdirectory_inBundleWithURL_( SentryCocoa _lib, NSString? ext, NSString? subpath, NSURL? bundleURL) { - final _ret = _lib._objc_msgSend_682( + final _ret = _lib._objc_msgSend_648( _lib._class_NSBundle1, _lib._sel_URLsForResourcesWithExtension_subdirectory_inBundleWithURL_1, ext?._id ?? ffi.nullptr, @@ -53389,7 +50817,7 @@ class NSBundle extends NSObject { } NSURL URLForResource_withExtension_(NSString? name, NSString? ext) { - final _ret = _lib._objc_msgSend_683( + final _ret = _lib._objc_msgSend_649( _id, _lib._sel_URLForResource_withExtension_1, name?._id ?? ffi.nullptr, @@ -53399,7 +50827,7 @@ class NSBundle extends NSObject { NSURL URLForResource_withExtension_subdirectory_( NSString? name, NSString? ext, NSString? subpath) { - final _ret = _lib._objc_msgSend_684( + final _ret = _lib._objc_msgSend_650( _id, _lib._sel_URLForResource_withExtension_subdirectory_1, name?._id ?? ffi.nullptr, @@ -53410,7 +50838,7 @@ class NSBundle extends NSObject { NSURL URLForResource_withExtension_subdirectory_localization_(NSString? name, NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_685( + final _ret = _lib._objc_msgSend_651( _id, _lib._sel_URLForResource_withExtension_subdirectory_localization_1, name?._id ?? ffi.nullptr, @@ -53422,7 +50850,7 @@ class NSBundle extends NSObject { NSArray URLsForResourcesWithExtension_subdirectory_( NSString? ext, NSString? subpath) { - final _ret = _lib._objc_msgSend_686( + final _ret = _lib._objc_msgSend_652( _id, _lib._sel_URLsForResourcesWithExtension_subdirectory_1, ext?._id ?? ffi.nullptr, @@ -53432,7 +50860,7 @@ class NSBundle extends NSObject { NSArray URLsForResourcesWithExtension_subdirectory_localization_( NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_687( + final _ret = _lib._objc_msgSend_653( _id, _lib._sel_URLsForResourcesWithExtension_subdirectory_localization_1, ext?._id ?? ffi.nullptr, @@ -53443,7 +50871,7 @@ class NSBundle extends NSObject { static NSString pathForResource_ofType_inDirectory_( SentryCocoa _lib, NSString? name, NSString? ext, NSString? bundlePath) { - final _ret = _lib._objc_msgSend_688( + final _ret = _lib._objc_msgSend_654( _lib._class_NSBundle1, _lib._sel_pathForResource_ofType_inDirectory_1, name?._id ?? ffi.nullptr, @@ -53454,7 +50882,7 @@ class NSBundle extends NSObject { static NSArray pathsForResourcesOfType_inDirectory_( SentryCocoa _lib, NSString? ext, NSString? bundlePath) { - final _ret = _lib._objc_msgSend_686( + final _ret = _lib._objc_msgSend_652( _lib._class_NSBundle1, _lib._sel_pathsForResourcesOfType_inDirectory_1, ext?._id ?? ffi.nullptr, @@ -53470,7 +50898,7 @@ class NSBundle extends NSObject { NSString pathForResource_ofType_inDirectory_forLocalization_(NSString? name, NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_689( + final _ret = _lib._objc_msgSend_655( _id, _lib._sel_pathForResource_ofType_inDirectory_forLocalization_1, name?._id ?? ffi.nullptr, @@ -53482,7 +50910,7 @@ class NSBundle extends NSObject { NSArray pathsForResourcesOfType_inDirectory_forLocalization_( NSString? ext, NSString? subpath, NSString? localizationName) { - final _ret = _lib._objc_msgSend_687( + final _ret = _lib._objc_msgSend_653( _id, _lib._sel_pathsForResourcesOfType_inDirectory_forLocalization_1, ext?._id ?? ffi.nullptr, @@ -53493,7 +50921,7 @@ class NSBundle extends NSObject { NSString localizedStringForKey_value_table_( NSString? key, NSString? value, NSString? tableName) { - final _ret = _lib._objc_msgSend_688( + final _ret = _lib._objc_msgSend_654( _id, _lib._sel_localizedStringForKey_value_table_1, key?._id ?? ffi.nullptr, @@ -53504,7 +50932,7 @@ class NSBundle extends NSObject { NSAttributedString localizedAttributedStringForKey_value_table_( NSString? key, NSString? value, NSString? tableName) { - final _ret = _lib._objc_msgSend_710( + final _ret = _lib._objc_msgSend_676( _id, _lib._sel_localizedAttributedStringForKey_value_table_1, key?._id ?? ffi.nullptr, @@ -53586,7 +51014,7 @@ class NSBundle extends NSObject { SentryCocoa _lib, NSArray? localizationsArray, NSArray? preferencesArray) { - final _ret = _lib._objc_msgSend_711( + final _ret = _lib._objc_msgSend_677( _lib._class_NSBundle1, _lib._sel_preferredLocalizationsFromArray_forPreferences_1, localizationsArray?._id ?? ffi.nullptr, @@ -53602,8 +51030,11 @@ class NSBundle extends NSObject { } void setPreservationPriority_forTags_(double priority, NSSet? tags) { - _lib._objc_msgSend_712(_id, _lib._sel_setPreservationPriority_forTags_1, - priority, tags?._id ?? ffi.nullptr); + return _lib._objc_msgSend_678( + _id, + _lib._sel_setPreservationPriority_forTags_1, + priority, + tags?._id ?? ffi.nullptr); } double preservationPriorityForTag_(NSString? tag) { @@ -53611,23 +51042,11 @@ class NSBundle extends NSObject { _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); @@ -53638,7 +51057,7 @@ class NSBundle extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSBundle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -53648,7 +51067,7 @@ class NSBundle extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSBundle1, + return _lib._objc_msgSend_15(_lib._class_NSBundle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -53681,7 +51100,7 @@ class NSBundle extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSBundle1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -53734,7 +51153,7 @@ class NSAttributedString extends NSObject { NSDictionary attributesAtIndex_effectiveRange_( int location, ffi.Pointer<_NSRange> range) { - final _ret = _lib._objc_msgSend_690( + final _ret = _lib._objc_msgSend_656( _id, _lib._sel_attributesAtIndex_effectiveRange_1, location, range); return NSDictionary._(_ret, _lib, retain: true, release: true); } @@ -53745,7 +51164,7 @@ class NSAttributedString extends NSObject { NSObject attribute_atIndex_effectiveRange_( NSString attrName, int location, ffi.Pointer<_NSRange> range) { - final _ret = _lib._objc_msgSend_691( + final _ret = _lib._objc_msgSend_657( _id, _lib._sel_attribute_atIndex_effectiveRange_1, attrName._id, @@ -53755,14 +51174,14 @@ class NSAttributedString extends NSObject { } NSAttributedString attributedSubstringFromRange_(_NSRange range) { - final _ret = _lib._objc_msgSend_692( + final _ret = _lib._objc_msgSend_658( _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_693( + final _ret = _lib._objc_msgSend_659( _id, _lib._sel_attributesAtIndex_longestEffectiveRange_inRange_1, location, @@ -53773,7 +51192,7 @@ class NSAttributedString extends NSObject { NSObject attribute_atIndex_longestEffectiveRange_inRange_(NSString attrName, int location, ffi.Pointer<_NSRange> range, _NSRange rangeLimit) { - final _ret = _lib._objc_msgSend_694( + final _ret = _lib._objc_msgSend_660( _id, _lib._sel_attribute_atIndex_longestEffectiveRange_inRange_1, attrName._id, @@ -53784,7 +51203,7 @@ class NSAttributedString extends NSObject { } bool isEqualToAttributedString_(NSAttributedString? other) { - return _lib._objc_msgSend_695( + return _lib._objc_msgSend_661( _id, _lib._sel_isEqualToAttributedString_1, other?._id ?? ffi.nullptr); } @@ -53805,14 +51224,14 @@ class NSAttributedString extends NSObject { } NSAttributedString initWithAttributedString_(NSAttributedString? attrStr) { - final _ret = _lib._objc_msgSend_696( + final _ret = _lib._objc_msgSend_662( _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_697( + void enumerateAttributesInRange_options_usingBlock_( + _NSRange enumerationRange, int opts, ObjCBlock32 block) { + return _lib._objc_msgSend_663( _id, _lib._sel_enumerateAttributesInRange_options_usingBlock_1, enumerationRange, @@ -53820,12 +51239,9 @@ class NSAttributedString extends NSObject { block._id); } - void enumerateAttribute_inRange_options_usingBlock_( - NSString attrName, - _NSRange enumerationRange, - int opts, - ObjCBlock_ffiVoid_ObjCObject_NSRange_bool block) { - _lib._objc_msgSend_698( + void enumerateAttribute_inRange_options_usingBlock_(NSString attrName, + _NSRange enumerationRange, int opts, ObjCBlock33 block) { + return _lib._objc_msgSend_664( _id, _lib._sel_enumerateAttribute_inRange_options_usingBlock_1, attrName._id, @@ -53839,7 +51255,7 @@ class NSAttributedString extends NSObject { NSAttributedStringMarkdownParsingOptions? options, NSURL? baseURL, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_703( + final _ret = _lib._objc_msgSend_669( _id, _lib._sel_initWithContentsOfMarkdownFileAtURL_options_baseURL_error_1, markdownFile?._id ?? ffi.nullptr, @@ -53854,7 +51270,7 @@ class NSAttributedString extends NSObject { NSAttributedStringMarkdownParsingOptions? options, NSURL? baseURL, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_704( + final _ret = _lib._objc_msgSend_670( _id, _lib._sel_initWithMarkdown_options_baseURL_error_1, markdown?._id ?? ffi.nullptr, @@ -53869,7 +51285,7 @@ class NSAttributedString extends NSObject { NSAttributedStringMarkdownParsingOptions? options, NSURL? baseURL, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_705( + final _ret = _lib._objc_msgSend_671( _id, _lib._sel_initWithMarkdownString_options_baseURL_error_1, markdownString?._id ?? ffi.nullptr, @@ -53881,7 +51297,7 @@ class NSAttributedString extends NSObject { NSAttributedString initWithFormat_options_locale_( NSAttributedString? format, int options, NSLocale? locale) { - final _ret = _lib._objc_msgSend_706( + final _ret = _lib._objc_msgSend_672( _id, _lib._sel_initWithFormat_options_locale_1, format?._id ?? ffi.nullptr, @@ -53895,7 +51311,7 @@ class NSAttributedString extends NSObject { int options, NSLocale? locale, ffi.Pointer arguments) { - final _ret = _lib._objc_msgSend_707( + final _ret = _lib._objc_msgSend_673( _id, _lib._sel_initWithFormat_options_locale_arguments_1, format?._id ?? ffi.nullptr, @@ -53907,7 +51323,7 @@ class NSAttributedString extends NSObject { static NSAttributedString localizedAttributedStringWithFormat_( SentryCocoa _lib, NSAttributedString? format) { - final _ret = _lib._objc_msgSend_696( + final _ret = _lib._objc_msgSend_662( _lib._class_NSAttributedString1, _lib._sel_localizedAttributedStringWithFormat_1, format?._id ?? ffi.nullptr); @@ -53916,7 +51332,7 @@ class NSAttributedString extends NSObject { static NSAttributedString localizedAttributedStringWithFormat_options_( SentryCocoa _lib, NSAttributedString? format, int options) { - final _ret = _lib._objc_msgSend_708( + final _ret = _lib._objc_msgSend_674( _lib._class_NSAttributedString1, _lib._sel_localizedAttributedStringWithFormat_options_1, format?._id ?? ffi.nullptr, @@ -53925,30 +51341,17 @@ class NSAttributedString extends NSObject { } NSAttributedString attributedStringByInflectingString() { - final _ret = _lib._objc_msgSend_709( + final _ret = _lib._objc_msgSend_675( _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); @@ -53960,7 +51363,7 @@ class NSAttributedString extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSAttributedString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -53970,7 +51373,7 @@ class NSAttributedString extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSAttributedString1, + return _lib._objc_msgSend_15(_lib._class_NSAttributedString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -54003,7 +51406,7 @@ class NSAttributedString extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSAttributedString1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -54029,11 +51432,8 @@ abstract class NSAttributedStringEnumerationOptions { NSAttributedStringEnumerationLongestEffectiveRangeNotRequired = 1048576; } -void _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2) { +void _ObjCBlock32_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { return block.ref.target .cast< ffi.NativeFunction< @@ -54044,35 +51444,27 @@ void _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_fnPtrTrampoline( 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; +final _ObjCBlock32_closureRegistry = {}; +int _ObjCBlock32_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock32_registerClosure(Function fn) { + final id = ++_ObjCBlock32_closureRegistryIndex; + _ObjCBlock32_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); +void _ObjCBlock32_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { + return (_ObjCBlock32_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) +class ObjCBlock32 extends _ObjCBlockBase { + ObjCBlock32._(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( + ObjCBlock32.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -54087,14 +51479,14 @@ class ObjCBlock_ffiVoid_NSDictionary_NSRange_bool extends _ObjCBlockBase { ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_fnPtrTrampoline) + _ObjCBlock32_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSDictionary_NSRange_bool.fromFunction( + ObjCBlock32.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) @@ -54107,10 +51499,9 @@ class ObjCBlock_ffiVoid_NSDictionary_NSRange_bool extends _ObjCBlockBase { ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_closureTrampoline) + _ObjCBlock32_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSDictionary_NSRange_bool_registerClosure( - fn)), + _ObjCBlock32_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call( @@ -54132,11 +51523,8 @@ class ObjCBlock_ffiVoid_NSDictionary_NSRange_bool extends _ObjCBlockBase { } } -void _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2) { +void _ObjCBlock33_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { return block.ref.target .cast< ffi.NativeFunction< @@ -54147,34 +51535,27 @@ void _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_fnPtrTrampoline( 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; +final _ObjCBlock33_closureRegistry = {}; +int _ObjCBlock33_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock33_registerClosure(Function fn) { + final id = ++_ObjCBlock33_closureRegistryIndex; + _ObjCBlock33_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 _ObjCBlock33_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) { + return (_ObjCBlock33_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) +class ObjCBlock33 extends _ObjCBlockBase { + ObjCBlock33._(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( + ObjCBlock33.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -54189,14 +51570,14 @@ class ObjCBlock_ffiVoid_ObjCObject_NSRange_bool extends _ObjCBlockBase { ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_fnPtrTrampoline) + _ObjCBlock33_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_ObjCObject_NSRange_bool.fromFunction( + ObjCBlock33.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2) @@ -54209,9 +51590,9 @@ class ObjCBlock_ffiVoid_ObjCObject_NSRange_bool extends _ObjCBlockBase { ffi.Pointer arg0, _NSRange arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_closureTrampoline) + _ObjCBlock33_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_registerClosure(fn)), + _ObjCBlock33_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call( @@ -54272,24 +51653,23 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { } set allowsExtendedAttributes(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAllowsExtendedAttributes_1, value); + _lib._objc_msgSend_492(_id, _lib._sel_setAllowsExtendedAttributes_1, value); } int get interpretedSyntax { - return _lib._objc_msgSend_699(_id, _lib._sel_interpretedSyntax1); + return _lib._objc_msgSend_665(_id, _lib._sel_interpretedSyntax1); } set interpretedSyntax(int value) { - return _lib._objc_msgSend_700(_id, _lib._sel_setInterpretedSyntax_1, value); + _lib._objc_msgSend_666(_id, _lib._sel_setInterpretedSyntax_1, value); } int get failurePolicy { - return _lib._objc_msgSend_701(_id, _lib._sel_failurePolicy1); + return _lib._objc_msgSend_667(_id, _lib._sel_failurePolicy1); } set failurePolicy(int value) { - return _lib._objc_msgSend_702(_id, _lib._sel_setFailurePolicy_1, value); + _lib._objc_msgSend_668(_id, _lib._sel_setFailurePolicy_1, value); } NSString? get languageCode { @@ -54300,7 +51680,7 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { } set languageCode(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setLanguageCode_1, value?._id ?? ffi.nullptr); } @@ -54310,7 +51690,7 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { } set appliesSourcePositionAttributes(bool value) { - return _lib._objc_msgSend_492( + _lib._objc_msgSend_492( _id, _lib._sel_setAppliesSourcePositionAttributes_1, value); } @@ -54321,16 +51701,6 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { 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, @@ -54344,7 +51714,7 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -54354,8 +51724,10 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSAttributedStringMarkdownParsingOptions1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + return _lib._objc_msgSend_15( + _lib._class_NSAttributedStringMarkdownParsingOptions1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, + aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { @@ -54389,7 +51761,7 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -54459,17 +51831,20 @@ class NSMutableAttributedString extends NSAttributedString { } void replaceCharactersInRange_withString_(_NSRange range, NSString? str) { - _lib._objc_msgSend_672(_id, _lib._sel_replaceCharactersInRange_withString_1, - range, str?._id ?? ffi.nullptr); + return _lib._objc_msgSend_638( + _id, + _lib._sel_replaceCharactersInRange_withString_1, + range, + str?._id ?? ffi.nullptr); } void setAttributes_range_(NSDictionary? attrs, _NSRange range) { - _lib._objc_msgSend_713( + return _lib._objc_msgSend_679( _id, _lib._sel_setAttributes_range_1, attrs?._id ?? ffi.nullptr, range); } NSMutableString? get mutableString { - final _ret = _lib._objc_msgSend_714(_id, _lib._sel_mutableString1); + final _ret = _lib._objc_msgSend_680(_id, _lib._sel_mutableString1); return _ret.address == 0 ? null : NSMutableString._(_ret, _lib, retain: true, release: true); @@ -54477,23 +51852,23 @@ class NSMutableAttributedString extends NSAttributedString { void addAttribute_value_range_( NSString name, NSObject value, _NSRange range) { - _lib._objc_msgSend_715( + return _lib._objc_msgSend_681( _id, _lib._sel_addAttribute_value_range_1, name._id, value._id, range); } void addAttributes_range_(NSDictionary? attrs, _NSRange range) { - _lib._objc_msgSend_713( + return _lib._objc_msgSend_679( _id, _lib._sel_addAttributes_range_1, attrs?._id ?? ffi.nullptr, range); } void removeAttribute_range_(NSString name, _NSRange range) { - _lib._objc_msgSend_716( + return _lib._objc_msgSend_682( _id, _lib._sel_removeAttribute_range_1, name._id, range); } void replaceCharactersInRange_withAttributedString_( _NSRange range, NSAttributedString? attrString) { - _lib._objc_msgSend_717( + return _lib._objc_msgSend_683( _id, _lib._sel_replaceCharactersInRange_withAttributedString_1, range, @@ -54502,143 +51877,44 @@ class NSMutableAttributedString extends NSAttributedString { void insertAttributedString_atIndex_( NSAttributedString? attrString, int loc) { - _lib._objc_msgSend_718(_id, _lib._sel_insertAttributedString_atIndex_1, - attrString?._id ?? ffi.nullptr, loc); + return _lib._objc_msgSend_684( + _id, + _lib._sel_insertAttributedString_atIndex_1, + attrString?._id ?? ffi.nullptr, + loc); } void appendAttributedString_(NSAttributedString? attrString) { - _lib._objc_msgSend_719(_id, _lib._sel_appendAttributedString_1, + return _lib._objc_msgSend_685(_id, _lib._sel_appendAttributedString_1, attrString?._id ?? ffi.nullptr); } void deleteCharactersInRange_(_NSRange range) { - _lib._objc_msgSend_445(_id, _lib._sel_deleteCharactersInRange_1, range); + return _lib._objc_msgSend_445( + _id, _lib._sel_deleteCharactersInRange_1, range); } void setAttributedString_(NSAttributedString? attrString) { - _lib._objc_msgSend_719( + return _lib._objc_msgSend_685( _id, _lib._sel_setAttributedString_1, attrString?._id ?? ffi.nullptr); } void beginEditing() { - _lib._objc_msgSend_1(_id, _lib._sel_beginEditing1); + return _lib._objc_msgSend_1(_id, _lib._sel_beginEditing1); } void endEditing() { - _lib._objc_msgSend_1(_id, _lib._sel_endEditing1); + return _lib._objc_msgSend_1(_id, _lib._sel_endEditing1); } void appendLocalizedFormat_(NSAttributedString? format) { - _lib._objc_msgSend_719( + return _lib._objc_msgSend_685( _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_371( - _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_696( - _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_703( - _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_704( - _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_705( - _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_706( - _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_707( - _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_696( + final _ret = _lib._objc_msgSend_662( _lib._class_NSMutableAttributedString1, _lib._sel_localizedAttributedStringWithFormat_1, format?._id ?? ffi.nullptr); @@ -54647,7 +51923,7 @@ class NSMutableAttributedString extends NSAttributedString { static NSMutableAttributedString localizedAttributedStringWithFormat_options_( SentryCocoa _lib, NSAttributedString? format, int options) { - final _ret = _lib._objc_msgSend_708( + final _ret = _lib._objc_msgSend_674( _lib._class_NSMutableAttributedString1, _lib._sel_localizedAttributedStringWithFormat_options_1, format?._id ?? ffi.nullptr, @@ -54655,12 +51931,6 @@ class NSMutableAttributedString extends NSAttributedString { 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); @@ -54668,14 +51938,6 @@ class NSMutableAttributedString extends NSAttributedString { 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); @@ -54688,7 +51950,7 @@ class NSMutableAttributedString extends NSAttributedString { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSMutableAttributedString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -54698,7 +51960,7 @@ class NSMutableAttributedString extends NSAttributedString { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableAttributedString1, + return _lib._objc_msgSend_15(_lib._class_NSMutableAttributedString1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -54731,7 +51993,7 @@ class NSMutableAttributedString extends NSAttributedString { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSMutableAttributedString1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -54776,11 +52038,11 @@ class NSDateFormatter extends NSFormatter { } int get formattingContext { - return _lib._objc_msgSend_724(_id, _lib._sel_formattingContext1); + return _lib._objc_msgSend_690(_id, _lib._sel_formattingContext1); } set formattingContext(int value) { - return _lib._objc_msgSend_725(_id, _lib._sel_setFormattingContext_1, value); + _lib._objc_msgSend_691(_id, _lib._sel_setFormattingContext_1, value); } bool getObjectValue_forString_range_error_( @@ -54788,7 +52050,7 @@ class NSDateFormatter extends NSFormatter { NSString? string, ffi.Pointer<_NSRange> rangep, ffi.Pointer> error) { - return _lib._objc_msgSend_726( + return _lib._objc_msgSend_692( _id, _lib._sel_getObjectValue_forString_range_error_1, obj, @@ -54811,7 +52073,7 @@ class NSDateFormatter extends NSFormatter { static NSString localizedStringFromDate_dateStyle_timeStyle_( SentryCocoa _lib, NSDate? date, int dstyle, int tstyle) { - final _ret = _lib._objc_msgSend_727( + final _ret = _lib._objc_msgSend_693( _lib._class_NSDateFormatter1, _lib._sel_localizedStringFromDate_dateStyle_timeStyle_1, date?._id ?? ffi.nullptr, @@ -54822,7 +52084,7 @@ class NSDateFormatter extends NSFormatter { static NSString dateFormatFromTemplate_options_locale_( SentryCocoa _lib, NSString? tmplate, int opts, NSLocale? locale) { - final _ret = _lib._objc_msgSend_728( + final _ret = _lib._objc_msgSend_694( _lib._class_NSDateFormatter1, _lib._sel_dateFormatFromTemplate_options_locale_1, tmplate?._id ?? ffi.nullptr, @@ -54832,17 +52094,19 @@ class NSDateFormatter extends NSFormatter { } static int getDefaultFormatterBehavior(SentryCocoa _lib) { - return _lib._objc_msgSend_729( + return _lib._objc_msgSend_695( _lib._class_NSDateFormatter1, _lib._sel_defaultFormatterBehavior1); } static void setDefaultFormatterBehavior(SentryCocoa _lib, int value) { - return _lib._objc_msgSend_730(_lib._class_NSDateFormatter1, + _lib._objc_msgSend_696(_lib._class_NSDateFormatter1, _lib._sel_setDefaultFormatterBehavior_1, value); } void setLocalizedDateFormatFromTemplate_(NSString? dateFormatTemplate) { - _lib._objc_msgSend_192(_id, _lib._sel_setLocalizedDateFormatFromTemplate_1, + return _lib._objc_msgSend_192( + _id, + _lib._sel_setLocalizedDateFormatFromTemplate_1, dateFormatTemplate?._id ?? ffi.nullptr); } @@ -54854,24 +52118,24 @@ class NSDateFormatter extends NSFormatter { } set dateFormat(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setDateFormat_1, value?._id ?? ffi.nullptr); } int get dateStyle { - return _lib._objc_msgSend_731(_id, _lib._sel_dateStyle1); + return _lib._objc_msgSend_697(_id, _lib._sel_dateStyle1); } set dateStyle(int value) { - return _lib._objc_msgSend_732(_id, _lib._sel_setDateStyle_1, value); + _lib._objc_msgSend_698(_id, _lib._sel_setDateStyle_1, value); } int get timeStyle { - return _lib._objc_msgSend_731(_id, _lib._sel_timeStyle1); + return _lib._objc_msgSend_697(_id, _lib._sel_timeStyle1); } set timeStyle(int value) { - return _lib._objc_msgSend_732(_id, _lib._sel_setTimeStyle_1, value); + _lib._objc_msgSend_698(_id, _lib._sel_setTimeStyle_1, value); } NSLocale? get locale { @@ -54882,7 +52146,7 @@ class NSDateFormatter extends NSFormatter { } set locale(NSLocale? value) { - return _lib._objc_msgSend_733( + _lib._objc_msgSend_699( _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); } @@ -54891,16 +52155,15 @@ class NSDateFormatter extends NSFormatter { } set generatesCalendarDates(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setGeneratesCalendarDates_1, value); + _lib._objc_msgSend_492(_id, _lib._sel_setGeneratesCalendarDates_1, value); } int get formatterBehavior { - return _lib._objc_msgSend_729(_id, _lib._sel_formatterBehavior1); + return _lib._objc_msgSend_695(_id, _lib._sel_formatterBehavior1); } set formatterBehavior(int value) { - return _lib._objc_msgSend_730(_id, _lib._sel_setFormatterBehavior_1, value); + _lib._objc_msgSend_696(_id, _lib._sel_setFormatterBehavior_1, value); } NSTimeZone? get timeZone { @@ -54911,19 +52174,19 @@ class NSDateFormatter extends NSFormatter { } set timeZone(NSTimeZone? value) { - return _lib._objc_msgSend_169( + _lib._objc_msgSend_169( _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); } NSCalendar? get calendar { - final _ret = _lib._objc_msgSend_734(_id, _lib._sel_calendar1); + final _ret = _lib._objc_msgSend_700(_id, _lib._sel_calendar1); return _ret.address == 0 ? null : NSCalendar._(_ret, _lib, retain: true, release: true); } set calendar(NSCalendar? value) { - return _lib._objc_msgSend_740( + _lib._objc_msgSend_706( _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); } @@ -54932,7 +52195,7 @@ class NSDateFormatter extends NSFormatter { } set lenient(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setLenient_1, value); + _lib._objc_msgSend_492(_id, _lib._sel_setLenient_1, value); } NSDate? get twoDigitStartDate { @@ -54943,7 +52206,7 @@ class NSDateFormatter extends NSFormatter { } set twoDigitStartDate(NSDate? value) { - return _lib._objc_msgSend_525( + _lib._objc_msgSend_525( _id, _lib._sel_setTwoDigitStartDate_1, value?._id ?? ffi.nullptr); } @@ -54955,7 +52218,7 @@ class NSDateFormatter extends NSFormatter { } set defaultDate(NSDate? value) { - return _lib._objc_msgSend_525( + _lib._objc_msgSend_525( _id, _lib._sel_setDefaultDate_1, value?._id ?? ffi.nullptr); } @@ -54967,7 +52230,7 @@ class NSDateFormatter extends NSFormatter { } set eraSymbols(NSArray? value) { - return _lib._objc_msgSend_765( + _lib._objc_msgSend_731( _id, _lib._sel_setEraSymbols_1, value?._id ?? ffi.nullptr); } @@ -54979,7 +52242,7 @@ class NSDateFormatter extends NSFormatter { } set monthSymbols(NSArray? value) { - return _lib._objc_msgSend_765( + _lib._objc_msgSend_731( _id, _lib._sel_setMonthSymbols_1, value?._id ?? ffi.nullptr); } @@ -54991,7 +52254,7 @@ class NSDateFormatter extends NSFormatter { } set shortMonthSymbols(NSArray? value) { - return _lib._objc_msgSend_765( + _lib._objc_msgSend_731( _id, _lib._sel_setShortMonthSymbols_1, value?._id ?? ffi.nullptr); } @@ -55003,7 +52266,7 @@ class NSDateFormatter extends NSFormatter { } set weekdaySymbols(NSArray? value) { - return _lib._objc_msgSend_765( + _lib._objc_msgSend_731( _id, _lib._sel_setWeekdaySymbols_1, value?._id ?? ffi.nullptr); } @@ -55015,7 +52278,7 @@ class NSDateFormatter extends NSFormatter { } set shortWeekdaySymbols(NSArray? value) { - return _lib._objc_msgSend_765( + _lib._objc_msgSend_731( _id, _lib._sel_setShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); } @@ -55027,7 +52290,7 @@ class NSDateFormatter extends NSFormatter { } set AMSymbol(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setAMSymbol_1, value?._id ?? ffi.nullptr); } @@ -55039,7 +52302,7 @@ class NSDateFormatter extends NSFormatter { } set PMSymbol(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setPMSymbol_1, value?._id ?? ffi.nullptr); } @@ -55051,7 +52314,7 @@ class NSDateFormatter extends NSFormatter { } set longEraSymbols(NSArray? value) { - return _lib._objc_msgSend_765( + _lib._objc_msgSend_731( _id, _lib._sel_setLongEraSymbols_1, value?._id ?? ffi.nullptr); } @@ -55063,7 +52326,7 @@ class NSDateFormatter extends NSFormatter { } set veryShortMonthSymbols(NSArray? value) { - return _lib._objc_msgSend_765( + _lib._objc_msgSend_731( _id, _lib._sel_setVeryShortMonthSymbols_1, value?._id ?? ffi.nullptr); } @@ -55075,7 +52338,7 @@ class NSDateFormatter extends NSFormatter { } set standaloneMonthSymbols(NSArray? value) { - return _lib._objc_msgSend_765( + _lib._objc_msgSend_731( _id, _lib._sel_setStandaloneMonthSymbols_1, value?._id ?? ffi.nullptr); } @@ -55088,8 +52351,8 @@ class NSDateFormatter extends NSFormatter { } set shortStandaloneMonthSymbols(NSArray? value) { - return _lib._objc_msgSend_765(_id, - _lib._sel_setShortStandaloneMonthSymbols_1, value?._id ?? ffi.nullptr); + _lib._objc_msgSend_731(_id, _lib._sel_setShortStandaloneMonthSymbols_1, + value?._id ?? ffi.nullptr); } NSArray? get veryShortStandaloneMonthSymbols { @@ -55101,9 +52364,7 @@ class NSDateFormatter extends NSFormatter { } set veryShortStandaloneMonthSymbols(NSArray? value) { - return _lib._objc_msgSend_765( - _id, - _lib._sel_setVeryShortStandaloneMonthSymbols_1, + _lib._objc_msgSend_731(_id, _lib._sel_setVeryShortStandaloneMonthSymbols_1, value?._id ?? ffi.nullptr); } @@ -55115,7 +52376,7 @@ class NSDateFormatter extends NSFormatter { } set veryShortWeekdaySymbols(NSArray? value) { - return _lib._objc_msgSend_765( + _lib._objc_msgSend_731( _id, _lib._sel_setVeryShortWeekdaySymbols_1, value?._id ?? ffi.nullptr); } @@ -55128,7 +52389,7 @@ class NSDateFormatter extends NSFormatter { } set standaloneWeekdaySymbols(NSArray? value) { - return _lib._objc_msgSend_765(_id, _lib._sel_setStandaloneWeekdaySymbols_1, + _lib._objc_msgSend_731(_id, _lib._sel_setStandaloneWeekdaySymbols_1, value?._id ?? ffi.nullptr); } @@ -55141,9 +52402,7 @@ class NSDateFormatter extends NSFormatter { } set shortStandaloneWeekdaySymbols(NSArray? value) { - return _lib._objc_msgSend_765( - _id, - _lib._sel_setShortStandaloneWeekdaySymbols_1, + _lib._objc_msgSend_731(_id, _lib._sel_setShortStandaloneWeekdaySymbols_1, value?._id ?? ffi.nullptr); } @@ -55156,7 +52415,7 @@ class NSDateFormatter extends NSFormatter { } set veryShortStandaloneWeekdaySymbols(NSArray? value) { - return _lib._objc_msgSend_765( + _lib._objc_msgSend_731( _id, _lib._sel_setVeryShortStandaloneWeekdaySymbols_1, value?._id ?? ffi.nullptr); @@ -55170,7 +52429,7 @@ class NSDateFormatter extends NSFormatter { } set quarterSymbols(NSArray? value) { - return _lib._objc_msgSend_765( + _lib._objc_msgSend_731( _id, _lib._sel_setQuarterSymbols_1, value?._id ?? ffi.nullptr); } @@ -55182,7 +52441,7 @@ class NSDateFormatter extends NSFormatter { } set shortQuarterSymbols(NSArray? value) { - return _lib._objc_msgSend_765( + _lib._objc_msgSend_731( _id, _lib._sel_setShortQuarterSymbols_1, value?._id ?? ffi.nullptr); } @@ -55195,7 +52454,7 @@ class NSDateFormatter extends NSFormatter { } set standaloneQuarterSymbols(NSArray? value) { - return _lib._objc_msgSend_765(_id, _lib._sel_setStandaloneQuarterSymbols_1, + _lib._objc_msgSend_731(_id, _lib._sel_setStandaloneQuarterSymbols_1, value?._id ?? ffi.nullptr); } @@ -55208,9 +52467,7 @@ class NSDateFormatter extends NSFormatter { } set shortStandaloneQuarterSymbols(NSArray? value) { - return _lib._objc_msgSend_765( - _id, - _lib._sel_setShortStandaloneQuarterSymbols_1, + _lib._objc_msgSend_731(_id, _lib._sel_setShortStandaloneQuarterSymbols_1, value?._id ?? ffi.nullptr); } @@ -55222,7 +52479,7 @@ class NSDateFormatter extends NSFormatter { } set gregorianStartDate(NSDate? value) { - return _lib._objc_msgSend_525( + _lib._objc_msgSend_525( _id, _lib._sel_setGregorianStartDate_1, value?._id ?? ffi.nullptr); } @@ -55231,7 +52488,7 @@ class NSDateFormatter extends NSFormatter { } set doesRelativeDateFormatting(bool value) { - return _lib._objc_msgSend_492( + _lib._objc_msgSend_492( _id, _lib._sel_setDoesRelativeDateFormatting_1, value); } @@ -55249,25 +52506,12 @@ class NSDateFormatter extends NSFormatter { 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); @@ -55279,7 +52523,7 @@ class NSDateFormatter extends NSFormatter { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSDateFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -55289,7 +52533,7 @@ class NSDateFormatter extends NSFormatter { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSDateFormatter1, + return _lib._objc_msgSend_15(_lib._class_NSDateFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -55322,7 +52566,7 @@ class NSDateFormatter extends NSFormatter { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSDateFormatter1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -55373,7 +52617,7 @@ class NSFormatter extends NSObject { NSAttributedString attributedStringForObjectValue_withDefaultAttributes_( NSObject obj, NSDictionary? attrs) { - final _ret = _lib._objc_msgSend_720( + final _ret = _lib._objc_msgSend_686( _id, _lib._sel_attributedStringForObjectValue_withDefaultAttributes_1, obj._id, @@ -55391,7 +52635,7 @@ class NSFormatter extends NSObject { ffi.Pointer> obj, NSString? string, ffi.Pointer> error) { - return _lib._objc_msgSend_721( + return _lib._objc_msgSend_687( _id, _lib._sel_getObjectValue_forString_errorDescription_1, obj, @@ -55403,7 +52647,7 @@ class NSFormatter extends NSObject { NSString? partialString, ffi.Pointer> newString, ffi.Pointer> error) { - return _lib._objc_msgSend_722( + return _lib._objc_msgSend_688( _id, _lib._sel_isPartialStringValid_newEditingString_errorDescription_1, partialString?._id ?? ffi.nullptr, @@ -55418,7 +52662,7 @@ class NSFormatter extends NSObject { NSString? origString, _NSRange origSelRange, ffi.Pointer> error) { - return _lib._objc_msgSend_723( + return _lib._objc_msgSend_689( _id, _lib._sel_isPartialStringValid_proposedSelectedRange_originalString_originalSelectedRange_errorDescription_1, partialStringPtr, @@ -55428,24 +52672,11 @@ class NSFormatter extends NSObject { 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); @@ -55457,7 +52688,7 @@ class NSFormatter extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -55467,7 +52698,7 @@ class NSFormatter extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSFormatter1, + return _lib._objc_msgSend_15(_lib._class_NSFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -55500,7 +52731,7 @@ class NSFormatter extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSFormatter1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -55567,7 +52798,7 @@ class NSCalendar extends NSObject { } static NSCalendar? getCurrentCalendar(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_734( + final _ret = _lib._objc_msgSend_700( _lib._class_NSCalendar1, _lib._sel_currentCalendar1); return _ret.address == 0 ? null @@ -55575,7 +52806,7 @@ class NSCalendar extends NSObject { } static NSCalendar? getAutoupdatingCurrentCalendar(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_734( + final _ret = _lib._objc_msgSend_700( _lib._class_NSCalendar1, _lib._sel_autoupdatingCurrentCalendar1); return _ret.address == 0 ? null @@ -55584,7 +52815,7 @@ class NSCalendar extends NSObject { static NSCalendar calendarWithIdentifier_( SentryCocoa _lib, NSString calendarIdentifierConstant) { - final _ret = _lib._objc_msgSend_735(_lib._class_NSCalendar1, + final _ret = _lib._objc_msgSend_701(_lib._class_NSCalendar1, _lib._sel_calendarWithIdentifier_1, calendarIdentifierConstant._id); return NSCalendar._(_ret, _lib, retain: true, release: true); } @@ -55614,7 +52845,7 @@ class NSCalendar extends NSObject { } set locale(NSLocale? value) { - return _lib._objc_msgSend_733( + _lib._objc_msgSend_699( _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); } @@ -55626,7 +52857,7 @@ class NSCalendar extends NSObject { } set timeZone(NSTimeZone? value) { - return _lib._objc_msgSend_169( + _lib._objc_msgSend_169( _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); } @@ -55635,7 +52866,7 @@ class NSCalendar extends NSObject { } set firstWeekday(int value) { - return _lib._objc_msgSend_483(_id, _lib._sel_setFirstWeekday_1, value); + _lib._objc_msgSend_483(_id, _lib._sel_setFirstWeekday_1, value); } int get minimumDaysInFirstWeek { @@ -55643,8 +52874,7 @@ class NSCalendar extends NSObject { } set minimumDaysInFirstWeek(int value) { - return _lib._objc_msgSend_483( - _id, _lib._sel_setMinimumDaysInFirstWeek_1, value); + _lib._objc_msgSend_483(_id, _lib._sel_setMinimumDaysInFirstWeek_1, value); } NSArray? get eraSymbols { @@ -55794,22 +53024,21 @@ class NSCalendar extends NSObject { : NSString._(_ret, _lib, retain: true, release: true); } - void minimumRangeOfUnit_(ffi.Pointer<_NSRange> stret, int unit) { - _lib._objc_msgSend_736(stret, _id, _lib._sel_minimumRangeOfUnit_1, unit); + _NSRange minimumRangeOfUnit_(int unit) { + return _lib._objc_msgSend_702(_id, _lib._sel_minimumRangeOfUnit_1, unit); } - void maximumRangeOfUnit_(ffi.Pointer<_NSRange> stret, int unit) { - _lib._objc_msgSend_736(stret, _id, _lib._sel_maximumRangeOfUnit_1, unit); + _NSRange maximumRangeOfUnit_(int unit) { + return _lib._objc_msgSend_702(_id, _lib._sel_maximumRangeOfUnit_1, unit); } - void rangeOfUnit_inUnit_forDate_( - ffi.Pointer<_NSRange> stret, int smaller, int larger, NSDate? date) { - _lib._objc_msgSend_737(stret, _id, _lib._sel_rangeOfUnit_inUnit_forDate_1, + _NSRange rangeOfUnit_inUnit_forDate_(int smaller, int larger, NSDate? date) { + return _lib._objc_msgSend_703(_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_738( + return _lib._objc_msgSend_704( _id, _lib._sel_ordinalityOfUnit_inUnit_forDate_1, smaller, @@ -55822,7 +53051,7 @@ class NSCalendar extends NSObject { ffi.Pointer> datep, ffi.Pointer tip, NSDate? date) { - return _lib._objc_msgSend_739( + return _lib._objc_msgSend_705( _id, _lib._sel_rangeOfUnit_startDate_interval_forDate_1, unit, @@ -55832,20 +53061,20 @@ class NSCalendar extends NSObject { } NSDate dateFromComponents_(NSDateComponents? comps) { - final _ret = _lib._objc_msgSend_744( + final _ret = _lib._objc_msgSend_710( _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_745(_id, _lib._sel_components_fromDate_1, + final _ret = _lib._objc_msgSend_711(_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_746( + final _ret = _lib._objc_msgSend_712( _id, _lib._sel_dateByAddingComponents_toDate_options_1, comps?._id ?? ffi.nullptr, @@ -55856,7 +53085,7 @@ class NSCalendar extends NSObject { NSDateComponents components_fromDate_toDate_options_( int unitFlags, NSDate? startingDate, NSDate? resultDate, int opts) { - final _ret = _lib._objc_msgSend_747( + final _ret = _lib._objc_msgSend_713( _id, _lib._sel_components_fromDate_toDate_options_1, unitFlags, @@ -55872,7 +53101,7 @@ class NSCalendar extends NSObject { ffi.Pointer monthValuePointer, ffi.Pointer dayValuePointer, NSDate? date) { - _lib._objc_msgSend_748( + return _lib._objc_msgSend_714( _id, _lib._sel_getEra_year_month_day_fromDate_1, eraValuePointer, @@ -55888,7 +53117,7 @@ class NSCalendar extends NSObject { ffi.Pointer weekValuePointer, ffi.Pointer weekdayValuePointer, NSDate? date) { - _lib._objc_msgSend_748( + return _lib._objc_msgSend_714( _id, _lib._sel_getEra_yearForWeekOfYear_weekOfYear_weekday_fromDate_1, eraValuePointer, @@ -55904,7 +53133,7 @@ class NSCalendar extends NSObject { ffi.Pointer secondValuePointer, ffi.Pointer nanosecondValuePointer, NSDate? date) { - _lib._objc_msgSend_748( + return _lib._objc_msgSend_714( _id, _lib._sel_getHour_minute_second_nanosecond_fromDate_1, hourValuePointer, @@ -55915,7 +53144,7 @@ class NSCalendar extends NSObject { } int component_fromDate_(int unit, NSDate? date) { - return _lib._objc_msgSend_749( + return _lib._objc_msgSend_715( _id, _lib._sel_component_fromDate_1, unit, date?._id ?? ffi.nullptr); } @@ -55928,7 +53157,7 @@ class NSCalendar extends NSObject { int minuteValue, int secondValue, int nanosecondValue) { - final _ret = _lib._objc_msgSend_750( + final _ret = _lib._objc_msgSend_716( _id, _lib._sel_dateWithEra_year_month_day_hour_minute_second_nanosecond_1, eraValue, @@ -55952,7 +53181,7 @@ class NSCalendar extends NSObject { int minuteValue, int secondValue, int nanosecondValue) { - final _ret = _lib._objc_msgSend_750( + final _ret = _lib._objc_msgSend_716( _id, _lib._sel_dateWithEra_yearForWeekOfYear_weekOfYear_weekday_hour_minute_second_nanosecond_1, eraValue, @@ -55974,7 +53203,7 @@ class NSCalendar extends NSObject { NSDateComponents componentsInTimeZone_fromDate_( NSTimeZone? timezone, NSDate? date) { - final _ret = _lib._objc_msgSend_751( + final _ret = _lib._objc_msgSend_717( _id, _lib._sel_componentsInTimeZone_fromDate_1, timezone?._id ?? ffi.nullptr, @@ -55984,7 +53213,7 @@ class NSCalendar extends NSObject { int compareDate_toDate_toUnitGranularity_( NSDate? date1, NSDate? date2, int unit) { - return _lib._objc_msgSend_752( + return _lib._objc_msgSend_718( _id, _lib._sel_compareDate_toDate_toUnitGranularity_1, date1?._id ?? ffi.nullptr, @@ -55994,7 +53223,7 @@ class NSCalendar extends NSObject { bool isDate_equalToDate_toUnitGranularity_( NSDate? date1, NSDate? date2, int unit) { - return _lib._objc_msgSend_753( + return _lib._objc_msgSend_719( _id, _lib._sel_isDate_equalToDate_toUnitGranularity_1, date1?._id ?? ffi.nullptr, @@ -56003,7 +53232,7 @@ class NSCalendar extends NSObject { } bool isDate_inSameDayAsDate_(NSDate? date1, NSDate? date2) { - return _lib._objc_msgSend_754(_id, _lib._sel_isDate_inSameDayAsDate_1, + return _lib._objc_msgSend_720(_id, _lib._sel_isDate_inSameDayAsDate_1, date1?._id ?? ffi.nullptr, date2?._id ?? ffi.nullptr); } @@ -56031,7 +53260,7 @@ class NSCalendar extends NSObject { ffi.Pointer> datep, ffi.Pointer tip, NSDate? date) { - return _lib._objc_msgSend_755( + return _lib._objc_msgSend_721( _id, _lib._sel_rangeOfWeekendStartDate_interval_containingDate_1, datep, @@ -56044,7 +53273,7 @@ class NSCalendar extends NSObject { ffi.Pointer tip, int options, NSDate? date) { - return _lib._objc_msgSend_756( + return _lib._objc_msgSend_722( _id, _lib._sel_nextWeekendStartDate_interval_options_afterDate_1, datep, @@ -56058,7 +53287,7 @@ class NSCalendar extends NSObject { NSDateComponents? startingDateComp, NSDateComponents? resultDateComp, int options) { - final _ret = _lib._objc_msgSend_757( + final _ret = _lib._objc_msgSend_723( _id, _lib._sel_components_fromDateComponents_toDateComponents_options_1, unitFlags, @@ -56070,7 +53299,7 @@ class NSCalendar extends NSObject { NSDate dateByAddingUnit_value_toDate_options_( int unit, int value, NSDate? date, int options) { - final _ret = _lib._objc_msgSend_758( + final _ret = _lib._objc_msgSend_724( _id, _lib._sel_dateByAddingUnit_value_toDate_options_1, unit, @@ -56081,11 +53310,8 @@ class NSCalendar extends NSObject { } void enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_( - NSDate? start, - NSDateComponents? comps, - int opts, - ObjCBlock_ffiVoid_NSDate_bool_bool block) { - _lib._objc_msgSend_759( + NSDate? start, NSDateComponents? comps, int opts, ObjCBlock34 block) { + return _lib._objc_msgSend_725( _id, _lib._sel_enumerateDatesStartingAfterDate_matchingComponents_options_usingBlock_1, start?._id ?? ffi.nullptr, @@ -56096,7 +53322,7 @@ class NSCalendar extends NSObject { NSDate nextDateAfterDate_matchingComponents_options_( NSDate? date, NSDateComponents? comps, int options) { - final _ret = _lib._objc_msgSend_760( + final _ret = _lib._objc_msgSend_726( _id, _lib._sel_nextDateAfterDate_matchingComponents_options_1, date?._id ?? ffi.nullptr, @@ -56107,7 +53333,7 @@ class NSCalendar extends NSObject { NSDate nextDateAfterDate_matchingUnit_value_options_( NSDate? date, int unit, int value, int options) { - final _ret = _lib._objc_msgSend_761( + final _ret = _lib._objc_msgSend_727( _id, _lib._sel_nextDateAfterDate_matchingUnit_value_options_1, date?._id ?? ffi.nullptr, @@ -56119,7 +53345,7 @@ class NSCalendar extends NSObject { NSDate nextDateAfterDate_matchingHour_minute_second_options_(NSDate? date, int hourValue, int minuteValue, int secondValue, int options) { - final _ret = _lib._objc_msgSend_762( + final _ret = _lib._objc_msgSend_728( _id, _lib._sel_nextDateAfterDate_matchingHour_minute_second_options_1, date?._id ?? ffi.nullptr, @@ -56132,7 +53358,7 @@ class NSCalendar extends NSObject { NSDate dateBySettingUnit_value_ofDate_options_( int unit, int v, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_758( + final _ret = _lib._objc_msgSend_724( _id, _lib._sel_dateBySettingUnit_value_ofDate_options_1, unit, @@ -56144,7 +53370,7 @@ class NSCalendar extends NSObject { NSDate dateBySettingHour_minute_second_ofDate_options_( int h, int m, int s, NSDate? date, int opts) { - final _ret = _lib._objc_msgSend_763( + final _ret = _lib._objc_msgSend_729( _id, _lib._sel_dateBySettingHour_minute_second_ofDate_options_1, h, @@ -56156,7 +53382,7 @@ class NSCalendar extends NSObject { } bool date_matchesComponents_(NSDate? date, NSDateComponents? components) { - return _lib._objc_msgSend_764(_id, _lib._sel_date_matchesComponents_1, + return _lib._objc_msgSend_730(_id, _lib._sel_date_matchesComponents_1, date?._id ?? ffi.nullptr, components?._id ?? ffi.nullptr); } @@ -56165,13 +53391,6 @@ class NSCalendar extends NSObject { 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); @@ -56183,7 +53402,7 @@ class NSCalendar extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSCalendar1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -56193,7 +53412,7 @@ class NSCalendar extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSCalendar1, + return _lib._objc_msgSend_15(_lib._class_NSCalendar1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -56226,7 +53445,7 @@ class NSCalendar extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSCalendar1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -56306,14 +53525,14 @@ class NSDateComponents extends NSObject { } NSCalendar? get calendar { - final _ret = _lib._objc_msgSend_734(_id, _lib._sel_calendar1); + final _ret = _lib._objc_msgSend_700(_id, _lib._sel_calendar1); return _ret.address == 0 ? null : NSCalendar._(_ret, _lib, retain: true, release: true); } set calendar(NSCalendar? value) { - return _lib._objc_msgSend_740( + _lib._objc_msgSend_706( _id, _lib._sel_setCalendar_1, value?._id ?? ffi.nullptr); } @@ -56325,7 +53544,7 @@ class NSDateComponents extends NSObject { } set timeZone(NSTimeZone? value) { - return _lib._objc_msgSend_169( + _lib._objc_msgSend_169( _id, _lib._sel_setTimeZone_1, value?._id ?? ffi.nullptr); } @@ -56334,7 +53553,7 @@ class NSDateComponents extends NSObject { } set era(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setEra_1, value); + _lib._objc_msgSend_590(_id, _lib._sel_setEra_1, value); } int get year { @@ -56342,7 +53561,7 @@ class NSDateComponents extends NSObject { } set year(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setYear_1, value); + _lib._objc_msgSend_590(_id, _lib._sel_setYear_1, value); } int get month { @@ -56350,7 +53569,7 @@ class NSDateComponents extends NSObject { } set month(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setMonth_1, value); + _lib._objc_msgSend_590(_id, _lib._sel_setMonth_1, value); } int get day { @@ -56358,7 +53577,7 @@ class NSDateComponents extends NSObject { } set day(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setDay_1, value); + _lib._objc_msgSend_590(_id, _lib._sel_setDay_1, value); } int get hour { @@ -56366,7 +53585,7 @@ class NSDateComponents extends NSObject { } set hour(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setHour_1, value); + _lib._objc_msgSend_590(_id, _lib._sel_setHour_1, value); } int get minute { @@ -56374,7 +53593,7 @@ class NSDateComponents extends NSObject { } set minute(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setMinute_1, value); + _lib._objc_msgSend_590(_id, _lib._sel_setMinute_1, value); } int get second { @@ -56382,7 +53601,7 @@ class NSDateComponents extends NSObject { } set second(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setSecond_1, value); + _lib._objc_msgSend_590(_id, _lib._sel_setSecond_1, value); } int get nanosecond { @@ -56390,7 +53609,7 @@ class NSDateComponents extends NSObject { } set nanosecond(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setNanosecond_1, value); + _lib._objc_msgSend_590(_id, _lib._sel_setNanosecond_1, value); } int get weekday { @@ -56398,7 +53617,7 @@ class NSDateComponents extends NSObject { } set weekday(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setWeekday_1, value); + _lib._objc_msgSend_590(_id, _lib._sel_setWeekday_1, value); } int get weekdayOrdinal { @@ -56406,7 +53625,7 @@ class NSDateComponents extends NSObject { } set weekdayOrdinal(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setWeekdayOrdinal_1, value); + _lib._objc_msgSend_590(_id, _lib._sel_setWeekdayOrdinal_1, value); } int get quarter { @@ -56414,7 +53633,7 @@ class NSDateComponents extends NSObject { } set quarter(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setQuarter_1, value); + _lib._objc_msgSend_590(_id, _lib._sel_setQuarter_1, value); } int get weekOfMonth { @@ -56422,7 +53641,7 @@ class NSDateComponents extends NSObject { } set weekOfMonth(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setWeekOfMonth_1, value); + _lib._objc_msgSend_590(_id, _lib._sel_setWeekOfMonth_1, value); } int get weekOfYear { @@ -56430,7 +53649,7 @@ class NSDateComponents extends NSObject { } set weekOfYear(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setWeekOfYear_1, value); + _lib._objc_msgSend_590(_id, _lib._sel_setWeekOfYear_1, value); } int get yearForWeekOfYear { @@ -56438,7 +53657,7 @@ class NSDateComponents extends NSObject { } set yearForWeekOfYear(int value) { - return _lib._objc_msgSend_590(_id, _lib._sel_setYearForWeekOfYear_1, value); + _lib._objc_msgSend_590(_id, _lib._sel_setYearForWeekOfYear_1, value); } bool get leapMonth { @@ -56446,7 +53665,7 @@ class NSDateComponents extends NSObject { } set leapMonth(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setLeapMonth_1, value); + _lib._objc_msgSend_492(_id, _lib._sel_setLeapMonth_1, value); } NSDate? get date { @@ -56461,15 +53680,16 @@ class NSDateComponents extends NSObject { } void setWeek_(int v) { - _lib._objc_msgSend_394(_id, _lib._sel_setWeek_1, v); + return _lib._objc_msgSend_394(_id, _lib._sel_setWeek_1, v); } void setValue_forComponent_(int value, int unit) { - _lib._objc_msgSend_741(_id, _lib._sel_setValue_forComponent_1, value, unit); + return _lib._objc_msgSend_707( + _id, _lib._sel_setValue_forComponent_1, value, unit); } int valueForComponent_(int unit) { - return _lib._objc_msgSend_742(_id, _lib._sel_valueForComponent_1, unit); + return _lib._objc_msgSend_708(_id, _lib._sel_valueForComponent_1, unit); } bool get validDate { @@ -56477,29 +53697,16 @@ class NSDateComponents extends NSObject { } bool isValidDateInCalendar_(NSCalendar? calendar) { - return _lib._objc_msgSend_743( + return _lib._objc_msgSend_709( _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); @@ -56511,7 +53718,7 @@ class NSDateComponents extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSDateComponents1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -56521,7 +53728,7 @@ class NSDateComponents extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSDateComponents1, + return _lib._objc_msgSend_15(_lib._class_NSDateComponents1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -56554,7 +53761,7 @@ class NSDateComponents extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSDateComponents1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -56585,11 +53792,8 @@ abstract class NSCalendarOptions { static const int NSCalendarMatchLast = 8192; } -void _ObjCBlock_ffiVoid_NSDate_bool_bool_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - bool arg1, - ffi.Pointer arg2) { +void _ObjCBlock34_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { return block.ref.target .cast< ffi.NativeFunction< @@ -56600,33 +53804,27 @@ void _ObjCBlock_ffiVoid_NSDate_bool_bool_fnPtrTrampoline( 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; +final _ObjCBlock34_closureRegistry = {}; +int _ObjCBlock34_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock34_registerClosure(Function fn) { + final id = ++_ObjCBlock34_closureRegistryIndex; + _ObjCBlock34_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); +void _ObjCBlock34_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { + return (_ObjCBlock34_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) +class ObjCBlock34 extends _ObjCBlockBase { + ObjCBlock34._(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( + ObjCBlock34.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi.NativeFunction< @@ -56641,14 +53839,14 @@ class ObjCBlock_ffiVoid_NSDate_bool_bool extends _ObjCBlockBase { ffi.Pointer arg0, ffi.Bool arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSDate_bool_bool_fnPtrTrampoline) + _ObjCBlock34_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSDate_bool_bool.fromFunction( + ObjCBlock34.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) @@ -56661,9 +53859,9 @@ class ObjCBlock_ffiVoid_NSDate_bool_bool extends _ObjCBlockBase { ffi.Pointer arg0, ffi.Bool arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSDate_bool_bool_closureTrampoline) + _ObjCBlock34_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSDate_bool_bool_registerClosure(fn)), + _ObjCBlock34_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call( @@ -56710,11 +53908,11 @@ class NSNumberFormatter extends NSFormatter { } int get formattingContext { - return _lib._objc_msgSend_724(_id, _lib._sel_formattingContext1); + return _lib._objc_msgSend_690(_id, _lib._sel_formattingContext1); } set formattingContext(int value) { - return _lib._objc_msgSend_725(_id, _lib._sel_setFormattingContext_1, value); + _lib._objc_msgSend_691(_id, _lib._sel_setFormattingContext_1, value); } bool getObjectValue_forString_range_error_( @@ -56722,7 +53920,7 @@ class NSNumberFormatter extends NSFormatter { NSString? string, ffi.Pointer<_NSRange> rangep, ffi.Pointer> error) { - return _lib._objc_msgSend_726( + return _lib._objc_msgSend_692( _id, _lib._sel_getObjectValue_forString_range_error_1, obj, @@ -56732,20 +53930,20 @@ class NSNumberFormatter extends NSFormatter { } NSString stringFromNumber_(NSNumber? number) { - final _ret = _lib._objc_msgSend_766( + final _ret = _lib._objc_msgSend_732( _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_767( + final _ret = _lib._objc_msgSend_733( _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_768( + final _ret = _lib._objc_msgSend_734( _lib._class_NSNumberFormatter1, _lib._sel_localizedStringFromNumber_numberStyle_1, num?._id ?? ffi.nullptr, @@ -56754,21 +53952,21 @@ class NSNumberFormatter extends NSFormatter { } static int defaultFormatterBehavior(SentryCocoa _lib) { - return _lib._objc_msgSend_769( + return _lib._objc_msgSend_735( _lib._class_NSNumberFormatter1, _lib._sel_defaultFormatterBehavior1); } static void setDefaultFormatterBehavior_(SentryCocoa _lib, int behavior) { - _lib._objc_msgSend_770(_lib._class_NSNumberFormatter1, + return _lib._objc_msgSend_736(_lib._class_NSNumberFormatter1, _lib._sel_setDefaultFormatterBehavior_1, behavior); } int get numberStyle { - return _lib._objc_msgSend_771(_id, _lib._sel_numberStyle1); + return _lib._objc_msgSend_737(_id, _lib._sel_numberStyle1); } set numberStyle(int value) { - return _lib._objc_msgSend_772(_id, _lib._sel_setNumberStyle_1, value); + _lib._objc_msgSend_738(_id, _lib._sel_setNumberStyle_1, value); } NSLocale? get locale { @@ -56779,7 +53977,7 @@ class NSNumberFormatter extends NSFormatter { } set locale(NSLocale? value) { - return _lib._objc_msgSend_733( + _lib._objc_msgSend_699( _id, _lib._sel_setLocale_1, value?._id ?? ffi.nullptr); } @@ -56788,16 +53986,15 @@ class NSNumberFormatter extends NSFormatter { } set generatesDecimalNumbers(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setGeneratesDecimalNumbers_1, value); + _lib._objc_msgSend_492(_id, _lib._sel_setGeneratesDecimalNumbers_1, value); } int get formatterBehavior { - return _lib._objc_msgSend_769(_id, _lib._sel_formatterBehavior1); + return _lib._objc_msgSend_735(_id, _lib._sel_formatterBehavior1); } set formatterBehavior(int value) { - return _lib._objc_msgSend_773(_id, _lib._sel_setFormatterBehavior_1, value); + _lib._objc_msgSend_739(_id, _lib._sel_setFormatterBehavior_1, value); } NSString? get negativeFormat { @@ -56808,7 +54005,7 @@ class NSNumberFormatter extends NSFormatter { } set negativeFormat(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setNegativeFormat_1, value?._id ?? ffi.nullptr); } @@ -56821,9 +54018,7 @@ class NSNumberFormatter extends NSFormatter { } set textAttributesForNegativeValues(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, - _lib._sel_setTextAttributesForNegativeValues_1, + _lib._objc_msgSend_171(_id, _lib._sel_setTextAttributesForNegativeValues_1, value?._id ?? ffi.nullptr); } @@ -56835,7 +54030,7 @@ class NSNumberFormatter extends NSFormatter { } set positiveFormat(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setPositiveFormat_1, value?._id ?? ffi.nullptr); } @@ -56848,9 +54043,7 @@ class NSNumberFormatter extends NSFormatter { } set textAttributesForPositiveValues(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, - _lib._sel_setTextAttributesForPositiveValues_1, + _lib._objc_msgSend_171(_id, _lib._sel_setTextAttributesForPositiveValues_1, value?._id ?? ffi.nullptr); } @@ -56859,7 +54052,7 @@ class NSNumberFormatter extends NSFormatter { } set allowsFloats(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setAllowsFloats_1, value); + _lib._objc_msgSend_492(_id, _lib._sel_setAllowsFloats_1, value); } NSString? get decimalSeparator { @@ -56870,7 +54063,7 @@ class NSNumberFormatter extends NSFormatter { } set decimalSeparator(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setDecimalSeparator_1, value?._id ?? ffi.nullptr); } @@ -56879,7 +54072,7 @@ class NSNumberFormatter extends NSFormatter { } set alwaysShowsDecimalSeparator(bool value) { - return _lib._objc_msgSend_492( + _lib._objc_msgSend_492( _id, _lib._sel_setAlwaysShowsDecimalSeparator_1, value); } @@ -56892,7 +54085,7 @@ class NSNumberFormatter extends NSFormatter { } set currencyDecimalSeparator(NSString? value) { - return _lib._objc_msgSend_509(_id, _lib._sel_setCurrencyDecimalSeparator_1, + _lib._objc_msgSend_509(_id, _lib._sel_setCurrencyDecimalSeparator_1, value?._id ?? ffi.nullptr); } @@ -56901,8 +54094,7 @@ class NSNumberFormatter extends NSFormatter { } set usesGroupingSeparator(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setUsesGroupingSeparator_1, value); + _lib._objc_msgSend_492(_id, _lib._sel_setUsesGroupingSeparator_1, value); } NSString? get groupingSeparator { @@ -56913,7 +54105,7 @@ class NSNumberFormatter extends NSFormatter { } set groupingSeparator(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setGroupingSeparator_1, value?._id ?? ffi.nullptr); } @@ -56925,7 +54117,7 @@ class NSNumberFormatter extends NSFormatter { } set zeroSymbol(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setZeroSymbol_1, value?._id ?? ffi.nullptr); } @@ -56937,7 +54129,7 @@ class NSNumberFormatter extends NSFormatter { } set textAttributesForZero(NSDictionary? value) { - return _lib._objc_msgSend_171( + _lib._objc_msgSend_171( _id, _lib._sel_setTextAttributesForZero_1, value?._id ?? ffi.nullptr); } @@ -56949,7 +54141,7 @@ class NSNumberFormatter extends NSFormatter { } set nilSymbol(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setNilSymbol_1, value?._id ?? ffi.nullptr); } @@ -56961,7 +54153,7 @@ class NSNumberFormatter extends NSFormatter { } set textAttributesForNil(NSDictionary? value) { - return _lib._objc_msgSend_171( + _lib._objc_msgSend_171( _id, _lib._sel_setTextAttributesForNil_1, value?._id ?? ffi.nullptr); } @@ -56973,7 +54165,7 @@ class NSNumberFormatter extends NSFormatter { } set notANumberSymbol(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setNotANumberSymbol_1, value?._id ?? ffi.nullptr); } @@ -56986,8 +54178,8 @@ class NSNumberFormatter extends NSFormatter { } set textAttributesForNotANumber(NSDictionary? value) { - return _lib._objc_msgSend_171(_id, - _lib._sel_setTextAttributesForNotANumber_1, value?._id ?? ffi.nullptr); + _lib._objc_msgSend_171(_id, _lib._sel_setTextAttributesForNotANumber_1, + value?._id ?? ffi.nullptr); } NSString? get positiveInfinitySymbol { @@ -56998,7 +54190,7 @@ class NSNumberFormatter extends NSFormatter { } set positiveInfinitySymbol(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setPositiveInfinitySymbol_1, value?._id ?? ffi.nullptr); } @@ -57011,7 +54203,7 @@ class NSNumberFormatter extends NSFormatter { } set textAttributesForPositiveInfinity(NSDictionary? value) { - return _lib._objc_msgSend_171( + _lib._objc_msgSend_171( _id, _lib._sel_setTextAttributesForPositiveInfinity_1, value?._id ?? ffi.nullptr); @@ -57025,7 +54217,7 @@ class NSNumberFormatter extends NSFormatter { } set negativeInfinitySymbol(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setNegativeInfinitySymbol_1, value?._id ?? ffi.nullptr); } @@ -57038,7 +54230,7 @@ class NSNumberFormatter extends NSFormatter { } set textAttributesForNegativeInfinity(NSDictionary? value) { - return _lib._objc_msgSend_171( + _lib._objc_msgSend_171( _id, _lib._sel_setTextAttributesForNegativeInfinity_1, value?._id ?? ffi.nullptr); @@ -57052,7 +54244,7 @@ class NSNumberFormatter extends NSFormatter { } set positivePrefix(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setPositivePrefix_1, value?._id ?? ffi.nullptr); } @@ -57064,7 +54256,7 @@ class NSNumberFormatter extends NSFormatter { } set positiveSuffix(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setPositiveSuffix_1, value?._id ?? ffi.nullptr); } @@ -57076,7 +54268,7 @@ class NSNumberFormatter extends NSFormatter { } set negativePrefix(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setNegativePrefix_1, value?._id ?? ffi.nullptr); } @@ -57088,7 +54280,7 @@ class NSNumberFormatter extends NSFormatter { } set negativeSuffix(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setNegativeSuffix_1, value?._id ?? ffi.nullptr); } @@ -57100,7 +54292,7 @@ class NSNumberFormatter extends NSFormatter { } set currencyCode(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setCurrencyCode_1, value?._id ?? ffi.nullptr); } @@ -57112,7 +54304,7 @@ class NSNumberFormatter extends NSFormatter { } set currencySymbol(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setCurrencySymbol_1, value?._id ?? ffi.nullptr); } @@ -57125,8 +54317,8 @@ class NSNumberFormatter extends NSFormatter { } set internationalCurrencySymbol(NSString? value) { - return _lib._objc_msgSend_509(_id, - _lib._sel_setInternationalCurrencySymbol_1, value?._id ?? ffi.nullptr); + _lib._objc_msgSend_509(_id, _lib._sel_setInternationalCurrencySymbol_1, + value?._id ?? ffi.nullptr); } NSString? get percentSymbol { @@ -57137,7 +54329,7 @@ class NSNumberFormatter extends NSFormatter { } set percentSymbol(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setPercentSymbol_1, value?._id ?? ffi.nullptr); } @@ -57149,7 +54341,7 @@ class NSNumberFormatter extends NSFormatter { } set perMillSymbol(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setPerMillSymbol_1, value?._id ?? ffi.nullptr); } @@ -57161,7 +54353,7 @@ class NSNumberFormatter extends NSFormatter { } set minusSign(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setMinusSign_1, value?._id ?? ffi.nullptr); } @@ -57173,7 +54365,7 @@ class NSNumberFormatter extends NSFormatter { } set plusSign(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setPlusSign_1, value?._id ?? ffi.nullptr); } @@ -57185,7 +54377,7 @@ class NSNumberFormatter extends NSFormatter { } set exponentSymbol(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setExponentSymbol_1, value?._id ?? ffi.nullptr); } @@ -57194,7 +54386,7 @@ class NSNumberFormatter extends NSFormatter { } set groupingSize(int value) { - return _lib._objc_msgSend_483(_id, _lib._sel_setGroupingSize_1, value); + _lib._objc_msgSend_483(_id, _lib._sel_setGroupingSize_1, value); } int get secondaryGroupingSize { @@ -57202,8 +54394,7 @@ class NSNumberFormatter extends NSFormatter { } set secondaryGroupingSize(int value) { - return _lib._objc_msgSend_483( - _id, _lib._sel_setSecondaryGroupingSize_1, value); + _lib._objc_msgSend_483(_id, _lib._sel_setSecondaryGroupingSize_1, value); } NSNumber? get multiplier { @@ -57214,7 +54405,7 @@ class NSNumberFormatter extends NSFormatter { } set multiplier(NSNumber? value) { - return _lib._objc_msgSend_654( + _lib._objc_msgSend_620( _id, _lib._sel_setMultiplier_1, value?._id ?? ffi.nullptr); } @@ -57223,7 +54414,7 @@ class NSNumberFormatter extends NSFormatter { } set formatWidth(int value) { - return _lib._objc_msgSend_483(_id, _lib._sel_setFormatWidth_1, value); + _lib._objc_msgSend_483(_id, _lib._sel_setFormatWidth_1, value); } NSString? get paddingCharacter { @@ -57234,24 +54425,24 @@ class NSNumberFormatter extends NSFormatter { } set paddingCharacter(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setPaddingCharacter_1, value?._id ?? ffi.nullptr); } int get paddingPosition { - return _lib._objc_msgSend_774(_id, _lib._sel_paddingPosition1); + return _lib._objc_msgSend_740(_id, _lib._sel_paddingPosition1); } set paddingPosition(int value) { - return _lib._objc_msgSend_775(_id, _lib._sel_setPaddingPosition_1, value); + _lib._objc_msgSend_741(_id, _lib._sel_setPaddingPosition_1, value); } int get roundingMode { - return _lib._objc_msgSend_776(_id, _lib._sel_roundingMode1); + return _lib._objc_msgSend_742(_id, _lib._sel_roundingMode1); } set roundingMode(int value) { - return _lib._objc_msgSend_777(_id, _lib._sel_setRoundingMode_1, value); + _lib._objc_msgSend_743(_id, _lib._sel_setRoundingMode_1, value); } NSNumber? get roundingIncrement { @@ -57262,7 +54453,7 @@ class NSNumberFormatter extends NSFormatter { } set roundingIncrement(NSNumber? value) { - return _lib._objc_msgSend_654( + _lib._objc_msgSend_620( _id, _lib._sel_setRoundingIncrement_1, value?._id ?? ffi.nullptr); } @@ -57271,8 +54462,7 @@ class NSNumberFormatter extends NSFormatter { } set minimumIntegerDigits(int value) { - return _lib._objc_msgSend_483( - _id, _lib._sel_setMinimumIntegerDigits_1, value); + _lib._objc_msgSend_483(_id, _lib._sel_setMinimumIntegerDigits_1, value); } int get maximumIntegerDigits { @@ -57280,8 +54470,7 @@ class NSNumberFormatter extends NSFormatter { } set maximumIntegerDigits(int value) { - return _lib._objc_msgSend_483( - _id, _lib._sel_setMaximumIntegerDigits_1, value); + _lib._objc_msgSend_483(_id, _lib._sel_setMaximumIntegerDigits_1, value); } int get minimumFractionDigits { @@ -57289,8 +54478,7 @@ class NSNumberFormatter extends NSFormatter { } set minimumFractionDigits(int value) { - return _lib._objc_msgSend_483( - _id, _lib._sel_setMinimumFractionDigits_1, value); + _lib._objc_msgSend_483(_id, _lib._sel_setMinimumFractionDigits_1, value); } int get maximumFractionDigits { @@ -57298,8 +54486,7 @@ class NSNumberFormatter extends NSFormatter { } set maximumFractionDigits(int value) { - return _lib._objc_msgSend_483( - _id, _lib._sel_setMaximumFractionDigits_1, value); + _lib._objc_msgSend_483(_id, _lib._sel_setMaximumFractionDigits_1, value); } NSNumber? get minimum { @@ -57310,7 +54497,7 @@ class NSNumberFormatter extends NSFormatter { } set minimum(NSNumber? value) { - return _lib._objc_msgSend_654( + _lib._objc_msgSend_620( _id, _lib._sel_setMinimum_1, value?._id ?? ffi.nullptr); } @@ -57322,7 +54509,7 @@ class NSNumberFormatter extends NSFormatter { } set maximum(NSNumber? value) { - return _lib._objc_msgSend_654( + _lib._objc_msgSend_620( _id, _lib._sel_setMaximum_1, value?._id ?? ffi.nullptr); } @@ -57335,7 +54522,7 @@ class NSNumberFormatter extends NSFormatter { } set currencyGroupingSeparator(NSString? value) { - return _lib._objc_msgSend_509(_id, _lib._sel_setCurrencyGroupingSeparator_1, + _lib._objc_msgSend_509(_id, _lib._sel_setCurrencyGroupingSeparator_1, value?._id ?? ffi.nullptr); } @@ -57344,7 +54531,7 @@ class NSNumberFormatter extends NSFormatter { } set lenient(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setLenient_1, value); + _lib._objc_msgSend_492(_id, _lib._sel_setLenient_1, value); } bool get usesSignificantDigits { @@ -57352,8 +54539,7 @@ class NSNumberFormatter extends NSFormatter { } set usesSignificantDigits(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setUsesSignificantDigits_1, value); + _lib._objc_msgSend_492(_id, _lib._sel_setUsesSignificantDigits_1, value); } int get minimumSignificantDigits { @@ -57361,8 +54547,7 @@ class NSNumberFormatter extends NSFormatter { } set minimumSignificantDigits(int value) { - return _lib._objc_msgSend_483( - _id, _lib._sel_setMinimumSignificantDigits_1, value); + _lib._objc_msgSend_483(_id, _lib._sel_setMinimumSignificantDigits_1, value); } int get maximumSignificantDigits { @@ -57370,8 +54555,7 @@ class NSNumberFormatter extends NSFormatter { } set maximumSignificantDigits(int value) { - return _lib._objc_msgSend_483( - _id, _lib._sel_setMaximumSignificantDigits_1, value); + _lib._objc_msgSend_483(_id, _lib._sel_setMaximumSignificantDigits_1, value); } bool get partialStringValidationEnabled { @@ -57380,7 +54564,7 @@ class NSNumberFormatter extends NSFormatter { } set partialStringValidationEnabled(bool value) { - return _lib._objc_msgSend_492( + _lib._objc_msgSend_492( _id, _lib._sel_setPartialStringValidationEnabled_1, value); } @@ -57389,8 +54573,7 @@ class NSNumberFormatter extends NSFormatter { } set hasThousandSeparators(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setHasThousandSeparators_1, value); + _lib._objc_msgSend_492(_id, _lib._sel_setHasThousandSeparators_1, value); } NSString? get thousandSeparator { @@ -57401,7 +54584,7 @@ class NSNumberFormatter extends NSFormatter { } set thousandSeparator(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setThousandSeparator_1, value?._id ?? ffi.nullptr); } @@ -57410,7 +54593,7 @@ class NSNumberFormatter extends NSFormatter { } set localizesFormat(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setLocalizesFormat_1, value); + _lib._objc_msgSend_492(_id, _lib._sel_setLocalizesFormat_1, value); } NSString? get format { @@ -57421,81 +54604,66 @@ class NSNumberFormatter extends NSFormatter { } set format(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setFormat_1, value?._id ?? ffi.nullptr); } NSAttributedString? get attributedStringForZero { final _ret = - _lib._objc_msgSend_709(_id, _lib._sel_attributedStringForZero1); + _lib._objc_msgSend_675(_id, _lib._sel_attributedStringForZero1); return _ret.address == 0 ? null : NSAttributedString._(_ret, _lib, retain: true, release: true); } set attributedStringForZero(NSAttributedString? value) { - return _lib._objc_msgSend_778( + _lib._objc_msgSend_744( _id, _lib._sel_setAttributedStringForZero_1, value?._id ?? ffi.nullptr); } NSAttributedString? get attributedStringForNil { - final _ret = _lib._objc_msgSend_709(_id, _lib._sel_attributedStringForNil1); + final _ret = _lib._objc_msgSend_675(_id, _lib._sel_attributedStringForNil1); return _ret.address == 0 ? null : NSAttributedString._(_ret, _lib, retain: true, release: true); } set attributedStringForNil(NSAttributedString? value) { - return _lib._objc_msgSend_778( + _lib._objc_msgSend_744( _id, _lib._sel_setAttributedStringForNil_1, value?._id ?? ffi.nullptr); } NSAttributedString? get attributedStringForNotANumber { final _ret = - _lib._objc_msgSend_709(_id, _lib._sel_attributedStringForNotANumber1); + _lib._objc_msgSend_675(_id, _lib._sel_attributedStringForNotANumber1); return _ret.address == 0 ? null : NSAttributedString._(_ret, _lib, retain: true, release: true); } set attributedStringForNotANumber(NSAttributedString? value) { - return _lib._objc_msgSend_778( - _id, - _lib._sel_setAttributedStringForNotANumber_1, + _lib._objc_msgSend_744(_id, _lib._sel_setAttributedStringForNotANumber_1, value?._id ?? ffi.nullptr); } NSDecimalNumberHandler? get roundingBehavior { - final _ret = _lib._objc_msgSend_779(_id, _lib._sel_roundingBehavior1); + final _ret = _lib._objc_msgSend_745(_id, _lib._sel_roundingBehavior1); return _ret.address == 0 ? null : NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); } set roundingBehavior(NSDecimalNumberHandler? value) { - return _lib._objc_msgSend_781( + _lib._objc_msgSend_747( _id, _lib._sel_setRoundingBehavior_1, value?._id ?? ffi.nullptr); } - @override - NSNumberFormatter init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSNumberFormatter._(_ret, _lib, retain: true, release: true); - } - static NSNumberFormatter new1(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSNumberFormatter1, _lib._sel_new1); return NSNumberFormatter._(_ret, _lib, retain: false, release: true); } - static NSNumberFormatter 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); - } - static NSNumberFormatter alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSNumberFormatter1, _lib._sel_alloc1); @@ -57507,7 +54675,7 @@ class NSNumberFormatter extends NSFormatter { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSNumberFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -57517,7 +54685,7 @@ class NSNumberFormatter extends NSFormatter { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSNumberFormatter1, + return _lib._objc_msgSend_15(_lib._class_NSNumberFormatter1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -57550,7 +54718,7 @@ class NSNumberFormatter extends NSFormatter { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSNumberFormatter1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -57633,7 +54801,7 @@ class NSDecimalNumberHandler extends NSObject { static NSDecimalNumberHandler? getDefaultDecimalNumberHandler( SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_779(_lib._class_NSDecimalNumberHandler1, + final _ret = _lib._objc_msgSend_745(_lib._class_NSDecimalNumberHandler1, _lib._sel_defaultDecimalNumberHandler1); return _ret.address == 0 ? null @@ -57648,7 +54816,7 @@ class NSDecimalNumberHandler extends NSObject { bool overflow, bool underflow, bool divideByZero) { - final _ret = _lib._objc_msgSend_780( + final _ret = _lib._objc_msgSend_746( _id, _lib._sel_initWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1, roundingMode, @@ -57669,7 +54837,7 @@ class NSDecimalNumberHandler extends NSObject { bool overflow, bool underflow, bool divideByZero) { - final _ret = _lib._objc_msgSend_780( + final _ret = _lib._objc_msgSend_746( _lib._class_NSDecimalNumberHandler1, _lib._sel_decimalNumberHandlerWithRoundingMode_scale_raiseOnExactness_raiseOnOverflow_raiseOnUnderflow_raiseOnDivideByZero_1, roundingMode, @@ -57681,25 +54849,12 @@ class NSDecimalNumberHandler extends NSObject { return NSDecimalNumberHandler._(_ret, _lib, retain: true, release: true); } - @override - NSDecimalNumberHandler init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSDecimalNumberHandler._(_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 NSDecimalNumberHandler 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); - } - static NSDecimalNumberHandler alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSDecimalNumberHandler1, _lib._sel_alloc1); @@ -57711,7 +54866,7 @@ class NSDecimalNumberHandler extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSDecimalNumberHandler1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -57721,7 +54876,7 @@ class NSDecimalNumberHandler extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSDecimalNumberHandler1, + return _lib._objc_msgSend_15(_lib._class_NSDecimalNumberHandler1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -57754,7 +54909,7 @@ class NSDecimalNumberHandler extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSDecimalNumberHandler1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -57816,7 +54971,7 @@ class NSScanner extends NSObject { } set scanLocation(int value) { - return _lib._objc_msgSend_483(_id, _lib._sel_setScanLocation_1, value); + _lib._objc_msgSend_483(_id, _lib._sel_setScanLocation_1, value); } NSCharacterSet? get charactersToBeSkipped { @@ -57827,7 +54982,7 @@ class NSScanner extends NSObject { } set charactersToBeSkipped(NSCharacterSet? value) { - return _lib._objc_msgSend_782( + _lib._objc_msgSend_748( _id, _lib._sel_setCharactersToBeSkipped_1, value?._id ?? ffi.nullptr); } @@ -57836,7 +54991,7 @@ class NSScanner extends NSObject { } set caseSensitive(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setCaseSensitive_1, value); + _lib._objc_msgSend_492(_id, _lib._sel_setCaseSensitive_1, value); } NSObject get locale { @@ -57845,7 +55000,7 @@ class NSScanner extends NSObject { } set locale(NSObject value) { - return _lib._objc_msgSend_387(_id, _lib._sel_setLocale_1, value._id); + _lib._objc_msgSend_387(_id, _lib._sel_setLocale_1, value._id); } NSScanner initWithString_(NSString? string) { @@ -57855,55 +55010,55 @@ class NSScanner extends NSObject { } bool scanInt_(ffi.Pointer result) { - return _lib._objc_msgSend_783(_id, _lib._sel_scanInt_1, result); + return _lib._objc_msgSend_749(_id, _lib._sel_scanInt_1, result); } bool scanInteger_(ffi.Pointer result) { - return _lib._objc_msgSend_784(_id, _lib._sel_scanInteger_1, result); + return _lib._objc_msgSend_750(_id, _lib._sel_scanInteger_1, result); } bool scanLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_785(_id, _lib._sel_scanLongLong_1, result); + return _lib._objc_msgSend_751(_id, _lib._sel_scanLongLong_1, result); } bool scanUnsignedLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_786( + return _lib._objc_msgSend_752( _id, _lib._sel_scanUnsignedLongLong_1, result); } bool scanFloat_(ffi.Pointer result) { - return _lib._objc_msgSend_787(_id, _lib._sel_scanFloat_1, result); + return _lib._objc_msgSend_753(_id, _lib._sel_scanFloat_1, result); } bool scanDouble_(ffi.Pointer result) { - return _lib._objc_msgSend_788(_id, _lib._sel_scanDouble_1, result); + return _lib._objc_msgSend_754(_id, _lib._sel_scanDouble_1, result); } bool scanHexInt_(ffi.Pointer result) { - return _lib._objc_msgSend_789(_id, _lib._sel_scanHexInt_1, result); + return _lib._objc_msgSend_755(_id, _lib._sel_scanHexInt_1, result); } bool scanHexLongLong_(ffi.Pointer result) { - return _lib._objc_msgSend_786(_id, _lib._sel_scanHexLongLong_1, result); + return _lib._objc_msgSend_752(_id, _lib._sel_scanHexLongLong_1, result); } bool scanHexFloat_(ffi.Pointer result) { - return _lib._objc_msgSend_787(_id, _lib._sel_scanHexFloat_1, result); + return _lib._objc_msgSend_753(_id, _lib._sel_scanHexFloat_1, result); } bool scanHexDouble_(ffi.Pointer result) { - return _lib._objc_msgSend_788(_id, _lib._sel_scanHexDouble_1, result); + return _lib._objc_msgSend_754(_id, _lib._sel_scanHexDouble_1, result); } bool scanString_intoString_( NSString? string, ffi.Pointer> result) { - return _lib._objc_msgSend_790(_id, _lib._sel_scanString_intoString_1, + return _lib._objc_msgSend_756(_id, _lib._sel_scanString_intoString_1, string?._id ?? ffi.nullptr, result); } bool scanCharactersFromSet_intoString_( NSCharacterSet? set, ffi.Pointer> result) { - return _lib._objc_msgSend_791( + return _lib._objc_msgSend_757( _id, _lib._sel_scanCharactersFromSet_intoString_1, set?._id ?? ffi.nullptr, @@ -57912,13 +55067,13 @@ class NSScanner extends NSObject { bool scanUpToString_intoString_( NSString? string, ffi.Pointer> result) { - return _lib._objc_msgSend_790(_id, _lib._sel_scanUpToString_intoString_1, + return _lib._objc_msgSend_756(_id, _lib._sel_scanUpToString_intoString_1, string?._id ?? ffi.nullptr, result); } bool scanUpToCharactersFromSet_intoString_( NSCharacterSet? set, ffi.Pointer> result) { - return _lib._objc_msgSend_791( + return _lib._objc_msgSend_757( _id, _lib._sel_scanUpToCharactersFromSet_intoString_1, set?._id ?? ffi.nullptr, @@ -57943,13 +55098,7 @@ class NSScanner extends NSObject { } bool scanDecimal_(ffi.Pointer dcm) { - return _lib._objc_msgSend_792(_id, _lib._sel_scanDecimal_1, dcm); - } - - @override - NSScanner init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSScanner._(_ret, _lib, retain: true, release: true); + return _lib._objc_msgSend_758(_id, _lib._sel_scanDecimal_1, dcm); } static NSScanner new1(SentryCocoa _lib) { @@ -57957,12 +55106,6 @@ class NSScanner extends NSObject { return NSScanner._(_ret, _lib, retain: false, 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); - } - 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); @@ -57973,7 +55116,7 @@ class NSScanner extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSScanner1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -57983,7 +55126,7 @@ class NSScanner extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSScanner1, + return _lib._objc_msgSend_15(_lib._class_NSScanner1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -58016,7 +55159,7 @@ class NSScanner extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSScanner1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -58063,7 +55206,7 @@ class NSException extends NSObject { static NSException exceptionWithName_reason_userInfo_(SentryCocoa _lib, NSString name, NSString? reason, NSDictionary? userInfo) { - final _ret = _lib._objc_msgSend_793( + final _ret = _lib._objc_msgSend_759( _lib._class_NSException1, _lib._sel_exceptionWithName_reason_userInfo_1, name._id, @@ -58118,17 +55261,17 @@ class NSException extends NSObject { } void raise() { - _lib._objc_msgSend_1(_id, _lib._sel_raise1); + return _lib._objc_msgSend_1(_id, _lib._sel_raise1); } static void raise_format_(SentryCocoa _lib, NSString name, NSString? format) { - _lib._objc_msgSend_515(_lib._class_NSException1, _lib._sel_raise_format_1, - name._id, format?._id ?? ffi.nullptr); + return _lib._objc_msgSend_515(_lib._class_NSException1, + _lib._sel_raise_format_1, name._id, format?._id ?? ffi.nullptr); } static void raise_format_arguments_(SentryCocoa _lib, NSString name, NSString? format, ffi.Pointer argList) { - _lib._objc_msgSend_794( + return _lib._objc_msgSend_760( _lib._class_NSException1, _lib._sel_raise_format_arguments_1, name._id, @@ -58136,24 +55279,11 @@ class NSException extends NSObject { argList); } - @override - NSException init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSException._(_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 NSException 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); - } - static NSException alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_alloc1); @@ -58165,7 +55295,7 @@ class NSException extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSException1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -58175,7 +55305,7 @@ class NSException extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSException1, + return _lib._objc_msgSend_15(_lib._class_NSException1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -58208,7 +55338,7 @@ class NSException extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSException1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -58259,7 +55389,7 @@ class NSFileHandle extends NSObject { } NSFileHandle initWithFileDescriptor_closeOnDealloc_(int fd, bool closeopt) { - final _ret = _lib._objc_msgSend_795( + final _ret = _lib._objc_msgSend_761( _id, _lib._sel_initWithFileDescriptor_closeOnDealloc_1, fd, closeopt); return NSFileHandle._(_ret, _lib, retain: true, release: true); } @@ -58272,46 +55402,46 @@ class NSFileHandle extends NSObject { NSData readDataToEndOfFileAndReturnError_( ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_796( + final _ret = _lib._objc_msgSend_762( _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_797( + final _ret = _lib._objc_msgSend_763( _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_798( + return _lib._objc_msgSend_764( _id, _lib._sel_writeData_error_1, data?._id ?? ffi.nullptr, error); } bool getOffset_error_(ffi.Pointer offsetInFile, ffi.Pointer> error) { - return _lib._objc_msgSend_799( + return _lib._objc_msgSend_765( _id, _lib._sel_getOffset_error_1, offsetInFile, error); } bool seekToEndReturningOffset_error_( ffi.Pointer offsetInFile, ffi.Pointer> error) { - return _lib._objc_msgSend_799( + return _lib._objc_msgSend_765( _id, _lib._sel_seekToEndReturningOffset_error_1, offsetInFile, error); } bool seekToOffset_error_( int offset, ffi.Pointer> error) { - return _lib._objc_msgSend_800( + return _lib._objc_msgSend_766( _id, _lib._sel_seekToOffset_error_1, offset, error); } bool truncateAtOffset_error_( int offset, ffi.Pointer> error) { - return _lib._objc_msgSend_800( + return _lib._objc_msgSend_766( _id, _lib._sel_truncateAtOffset_error_1, offset, error); } @@ -58325,7 +55455,7 @@ class NSFileHandle extends NSObject { } static NSFileHandle? getFileHandleWithStandardInput(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_801( + final _ret = _lib._objc_msgSend_767( _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardInput1); return _ret.address == 0 ? null @@ -58333,7 +55463,7 @@ class NSFileHandle extends NSObject { } static NSFileHandle? getFileHandleWithStandardOutput(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_801( + final _ret = _lib._objc_msgSend_767( _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardOutput1); return _ret.address == 0 ? null @@ -58341,7 +55471,7 @@ class NSFileHandle extends NSObject { } static NSFileHandle? getFileHandleWithStandardError(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_801( + final _ret = _lib._objc_msgSend_767( _lib._class_NSFileHandle1, _lib._sel_fileHandleWithStandardError1); return _ret.address == 0 ? null @@ -58349,7 +55479,7 @@ class NSFileHandle extends NSObject { } static NSFileHandle? getFileHandleWithNullDevice(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_801( + final _ret = _lib._objc_msgSend_767( _lib._class_NSFileHandle1, _lib._sel_fileHandleWithNullDevice1); return _ret.address == 0 ? null @@ -58379,7 +55509,7 @@ class NSFileHandle extends NSObject { static NSFileHandle fileHandleForReadingFromURL_error_(SentryCocoa _lib, NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_802( + final _ret = _lib._objc_msgSend_768( _lib._class_NSFileHandle1, _lib._sel_fileHandleForReadingFromURL_error_1, url?._id ?? ffi.nullptr, @@ -58389,7 +55519,7 @@ class NSFileHandle extends NSObject { static NSFileHandle fileHandleForWritingToURL_error_(SentryCocoa _lib, NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_802( + final _ret = _lib._objc_msgSend_768( _lib._class_NSFileHandle1, _lib._sel_fileHandleForWritingToURL_error_1, url?._id ?? ffi.nullptr, @@ -58399,7 +55529,7 @@ class NSFileHandle extends NSObject { static NSFileHandle fileHandleForUpdatingURL_error_(SentryCocoa _lib, NSURL? url, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_802( + final _ret = _lib._objc_msgSend_768( _lib._class_NSFileHandle1, _lib._sel_fileHandleForUpdatingURL_error_1, url?._id ?? ffi.nullptr, @@ -58408,70 +55538,73 @@ class NSFileHandle extends NSObject { } void readInBackgroundAndNotifyForModes_(NSArray? modes) { - _lib._objc_msgSend_441(_id, _lib._sel_readInBackgroundAndNotifyForModes_1, + return _lib._objc_msgSend_441( + _id, + _lib._sel_readInBackgroundAndNotifyForModes_1, modes?._id ?? ffi.nullptr); } void readInBackgroundAndNotify() { - _lib._objc_msgSend_1(_id, _lib._sel_readInBackgroundAndNotify1); + return _lib._objc_msgSend_1(_id, _lib._sel_readInBackgroundAndNotify1); } void readToEndOfFileInBackgroundAndNotifyForModes_(NSArray? modes) { - _lib._objc_msgSend_441( + return _lib._objc_msgSend_441( _id, _lib._sel_readToEndOfFileInBackgroundAndNotifyForModes_1, modes?._id ?? ffi.nullptr); } void readToEndOfFileInBackgroundAndNotify() { - _lib._objc_msgSend_1(_id, _lib._sel_readToEndOfFileInBackgroundAndNotify1); + return _lib._objc_msgSend_1( + _id, _lib._sel_readToEndOfFileInBackgroundAndNotify1); } void acceptConnectionInBackgroundAndNotifyForModes_(NSArray? modes) { - _lib._objc_msgSend_441( + return _lib._objc_msgSend_441( _id, _lib._sel_acceptConnectionInBackgroundAndNotifyForModes_1, modes?._id ?? ffi.nullptr); } void acceptConnectionInBackgroundAndNotify() { - _lib._objc_msgSend_1(_id, _lib._sel_acceptConnectionInBackgroundAndNotify1); + return _lib._objc_msgSend_1( + _id, _lib._sel_acceptConnectionInBackgroundAndNotify1); } void waitForDataInBackgroundAndNotifyForModes_(NSArray? modes) { - _lib._objc_msgSend_441( + return _lib._objc_msgSend_441( _id, _lib._sel_waitForDataInBackgroundAndNotifyForModes_1, modes?._id ?? ffi.nullptr); } void waitForDataInBackgroundAndNotify() { - _lib._objc_msgSend_1(_id, _lib._sel_waitForDataInBackgroundAndNotify1); + return _lib._objc_msgSend_1( + _id, _lib._sel_waitForDataInBackgroundAndNotify1); } - ObjCBlock_ffiVoid_NSFileHandle get readabilityHandler { - final _ret = _lib._objc_msgSend_803(_id, _lib._sel_readabilityHandler1); - return ObjCBlock_ffiVoid_NSFileHandle._(_ret, _lib); + ObjCBlock35 get readabilityHandler { + final _ret = _lib._objc_msgSend_769(_id, _lib._sel_readabilityHandler1); + return ObjCBlock35._(_ret, _lib); } - set readabilityHandler(ObjCBlock_ffiVoid_NSFileHandle value) { - return _lib._objc_msgSend_804( - _id, _lib._sel_setReadabilityHandler_1, value._id); + set readabilityHandler(ObjCBlock35 value) { + _lib._objc_msgSend_770(_id, _lib._sel_setReadabilityHandler_1, value._id); } - ObjCBlock_ffiVoid_NSFileHandle get writeabilityHandler { - final _ret = _lib._objc_msgSend_803(_id, _lib._sel_writeabilityHandler1); - return ObjCBlock_ffiVoid_NSFileHandle._(_ret, _lib); + ObjCBlock35 get writeabilityHandler { + final _ret = _lib._objc_msgSend_769(_id, _lib._sel_writeabilityHandler1); + return ObjCBlock35._(_ret, _lib); } - set writeabilityHandler(ObjCBlock_ffiVoid_NSFileHandle value) { - return _lib._objc_msgSend_804( - _id, _lib._sel_setWriteabilityHandler_1, value._id); + set writeabilityHandler(ObjCBlock35 value) { + _lib._objc_msgSend_770(_id, _lib._sel_setWriteabilityHandler_1, value._id); } NSFileHandle initWithFileDescriptor_(int fd) { final _ret = - _lib._objc_msgSend_805(_id, _lib._sel_initWithFileDescriptor_1, fd); + _lib._objc_msgSend_771(_id, _lib._sel_initWithFileDescriptor_1, fd); return NSFileHandle._(_ret, _lib, retain: true, release: true); } @@ -58491,7 +55624,7 @@ class NSFileHandle extends NSObject { } void writeData_(NSData? data) { - _lib._objc_msgSend_263( + return _lib._objc_msgSend_263( _id, _lib._sel_writeData_1, data?._id ?? ffi.nullptr); } @@ -58504,25 +55637,20 @@ class NSFileHandle extends NSObject { } void seekToFileOffset_(int offset) { - _lib._objc_msgSend_806(_id, _lib._sel_seekToFileOffset_1, offset); + return _lib._objc_msgSend_772(_id, _lib._sel_seekToFileOffset_1, offset); } void truncateFileAtOffset_(int offset) { - _lib._objc_msgSend_806(_id, _lib._sel_truncateFileAtOffset_1, offset); + return _lib._objc_msgSend_772( + _id, _lib._sel_truncateFileAtOffset_1, offset); } void synchronizeFile() { - _lib._objc_msgSend_1(_id, _lib._sel_synchronizeFile1); + return _lib._objc_msgSend_1(_id, _lib._sel_synchronizeFile1); } void closeFile() { - _lib._objc_msgSend_1(_id, _lib._sel_closeFile1); - } - - @override - NSFileHandle init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSFileHandle._(_ret, _lib, retain: true, release: true); + return _lib._objc_msgSend_1(_id, _lib._sel_closeFile1); } static NSFileHandle new1(SentryCocoa _lib) { @@ -58531,13 +55659,6 @@ class NSFileHandle extends NSObject { return NSFileHandle._(_ret, _lib, retain: false, release: true); } - static NSFileHandle 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); - } - static NSFileHandle alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSFileHandle1, _lib._sel_alloc1); @@ -58549,7 +55670,7 @@ class NSFileHandle extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSFileHandle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -58559,7 +55680,7 @@ class NSFileHandle extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSFileHandle1, + return _lib._objc_msgSend_15(_lib._class_NSFileHandle1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -58592,7 +55713,7 @@ class NSFileHandle extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSFileHandle1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -58612,7 +55733,7 @@ class NSFileHandle extends NSObject { } } -void _ObjCBlock_ffiVoid_NSFileHandle_fnPtrTrampoline( +void _ObjCBlock35_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { return block.ref.target .cast< @@ -58620,27 +55741,26 @@ void _ObjCBlock_ffiVoid_NSFileHandle_fnPtrTrampoline( .asFunction arg0)>()(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 _ObjCBlock35_closureRegistry = {}; +int _ObjCBlock35_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock35_registerClosure(Function fn) { + final id = ++_ObjCBlock35_closureRegistryIndex; + _ObjCBlock35_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline( +void _ObjCBlock35_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSFileHandle_closureRegistry[block - .ref.target.address] as void Function(ffi.Pointer))(arg0); + return (_ObjCBlock35_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer))(arg0); } -class ObjCBlock_ffiVoid_NSFileHandle extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSFileHandle._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock35 extends _ObjCBlockBase { + ObjCBlock35._(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( + ObjCBlock35.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi @@ -58651,23 +55771,23 @@ class ObjCBlock_ffiVoid_NSFileHandle extends _ObjCBlockBase { _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSFileHandle_fnPtrTrampoline) + _ObjCBlock35_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSFileHandle.fromFunction( + ObjCBlock35.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) + _ObjCBlock35_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSFileHandle_registerClosure(fn)), + _ObjCBlock35_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0) { @@ -58707,7 +55827,7 @@ class NSHTTPCookieStorage extends NSObject { } static NSHTTPCookieStorage? getSharedHTTPCookieStorage(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_807( + final _ret = _lib._objc_msgSend_773( _lib._class_NSHTTPCookieStorage1, _lib._sel_sharedHTTPCookieStorage1); return _ret.address == 0 ? null @@ -58716,7 +55836,7 @@ class NSHTTPCookieStorage extends NSObject { static NSHTTPCookieStorage sharedCookieStorageForGroupContainerIdentifier_( SentryCocoa _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_808( + final _ret = _lib._objc_msgSend_774( _lib._class_NSHTTPCookieStorage1, _lib._sel_sharedCookieStorageForGroupContainerIdentifier_1, identifier?._id ?? ffi.nullptr); @@ -58731,17 +55851,17 @@ class NSHTTPCookieStorage extends NSObject { } void setCookie_(NSHTTPCookie? cookie) { - _lib._objc_msgSend_811( + return _lib._objc_msgSend_777( _id, _lib._sel_setCookie_1, cookie?._id ?? ffi.nullptr); } void deleteCookie_(NSHTTPCookie? cookie) { - _lib._objc_msgSend_811( + return _lib._objc_msgSend_777( _id, _lib._sel_deleteCookie_1, cookie?._id ?? ffi.nullptr); } void removeCookiesSinceDate_(NSDate? date) { - _lib._objc_msgSend_504( + return _lib._objc_msgSend_504( _id, _lib._sel_removeCookiesSinceDate_1, date?._id ?? ffi.nullptr); } @@ -58753,7 +55873,7 @@ class NSHTTPCookieStorage extends NSObject { void setCookies_forURL_mainDocumentURL_( NSArray? cookies, NSURL? URL, NSURL? mainDocumentURL) { - _lib._objc_msgSend_812( + return _lib._objc_msgSend_778( _id, _lib._sel_setCookies_forURL_mainDocumentURL_1, cookies?._id ?? ffi.nullptr, @@ -58762,12 +55882,11 @@ class NSHTTPCookieStorage extends NSObject { } int get cookieAcceptPolicy { - return _lib._objc_msgSend_813(_id, _lib._sel_cookieAcceptPolicy1); + return _lib._objc_msgSend_779(_id, _lib._sel_cookieAcceptPolicy1); } set cookieAcceptPolicy(int value) { - return _lib._objc_msgSend_814( - _id, _lib._sel_setCookieAcceptPolicy_1, value); + _lib._objc_msgSend_780(_id, _lib._sel_setCookieAcceptPolicy_1, value); } NSArray sortedCookiesUsingDescriptors_(NSArray? sortOrder) { @@ -58779,20 +55898,17 @@ class NSHTTPCookieStorage extends NSObject { } void storeCookies_forTask_(NSArray? cookies, NSURLSessionTask? task) { - _lib._objc_msgSend_834(_id, _lib._sel_storeCookies_forTask_1, + return _lib._objc_msgSend_800(_id, _lib._sel_storeCookies_forTask_1, cookies?._id ?? ffi.nullptr, task?._id ?? ffi.nullptr); } void getCookiesForTask_completionHandler_( - NSURLSessionTask? task, ObjCBlock_ffiVoid_NSArray completionHandler) { - _lib._objc_msgSend_835(_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); + NSURLSessionTask? task, ObjCBlock36 completionHandler) { + return _lib._objc_msgSend_801( + _id, + _lib._sel_getCookiesForTask_completionHandler_1, + task?._id ?? ffi.nullptr, + completionHandler._id); } static NSHTTPCookieStorage new1(SentryCocoa _lib) { @@ -58801,13 +55917,6 @@ class NSHTTPCookieStorage extends NSObject { 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_NSHTTPCookieStorage1, _lib._sel_allocWithZone_1, zone); - return NSHTTPCookieStorage._(_ret, _lib, retain: false, release: true); - } - static NSHTTPCookieStorage alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSHTTPCookieStorage1, _lib._sel_alloc1); @@ -58819,7 +55928,7 @@ class NSHTTPCookieStorage extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSHTTPCookieStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -58829,7 +55938,7 @@ class NSHTTPCookieStorage extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSHTTPCookieStorage1, + return _lib._objc_msgSend_15(_lib._class_NSHTTPCookieStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -58862,7 +55971,7 @@ class NSHTTPCookieStorage extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSHTTPCookieStorage1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -58913,7 +56022,7 @@ class NSHTTPCookie extends NSObject { static NSHTTPCookie cookieWithProperties_( SentryCocoa _lib, NSDictionary? properties) { - final _ret = _lib._objc_msgSend_809(_lib._class_NSHTTPCookie1, + final _ret = _lib._objc_msgSend_775(_lib._class_NSHTTPCookie1, _lib._sel_cookieWithProperties_1, properties?._id ?? ffi.nullptr); return NSHTTPCookie._(_ret, _lib, retain: true, release: true); } @@ -58929,7 +56038,7 @@ class NSHTTPCookie extends NSObject { static NSArray cookiesWithResponseHeaderFields_forURL_( SentryCocoa _lib, NSDictionary? headerFields, NSURL? URL) { - final _ret = _lib._objc_msgSend_810( + final _ret = _lib._objc_msgSend_776( _lib._class_NSHTTPCookie1, _lib._sel_cookiesWithResponseHeaderFields_forURL_1, headerFields?._id ?? ffi.nullptr, @@ -59021,25 +56130,12 @@ class NSHTTPCookie extends NSObject { return NSString._(_ret, _lib, retain: true, release: true); } - @override - NSHTTPCookie init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSHTTPCookie._(_ret, _lib, retain: true, 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 NSHTTPCookie 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); - } - static NSHTTPCookie alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSHTTPCookie1, _lib._sel_alloc1); @@ -59051,7 +56147,7 @@ class NSHTTPCookie extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSHTTPCookie1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -59061,7 +56157,7 @@ class NSHTTPCookie extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSHTTPCookie1, + return _lib._objc_msgSend_15(_lib._class_NSHTTPCookie1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -59094,7 +56190,7 @@ class NSHTTPCookie extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSHTTPCookie1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -59149,21 +56245,21 @@ class NSURLSessionTask extends NSObject { } NSURLRequest? get originalRequest { - final _ret = _lib._objc_msgSend_829(_id, _lib._sel_originalRequest1); + final _ret = _lib._objc_msgSend_795(_id, _lib._sel_originalRequest1); return _ret.address == 0 ? null : NSURLRequest._(_ret, _lib, retain: true, release: true); } NSURLRequest? get currentRequest { - final _ret = _lib._objc_msgSend_829(_id, _lib._sel_currentRequest1); + final _ret = _lib._objc_msgSend_795(_id, _lib._sel_currentRequest1); return _ret.address == 0 ? null : NSURLRequest._(_ret, _lib, retain: true, release: true); } NSURLResponse? get response { - final _ret = _lib._objc_msgSend_831(_id, _lib._sel_response1); + final _ret = _lib._objc_msgSend_797(_id, _lib._sel_response1); return _ret.address == 0 ? null : NSURLResponse._(_ret, _lib, retain: true, release: true); @@ -59177,12 +56273,12 @@ class NSURLSessionTask extends NSObject { } set delegate(NSObject? value) { - return _lib._objc_msgSend_387( + _lib._objc_msgSend_387( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } NSProgress? get progress { - final _ret = _lib._objc_msgSend_643(_id, _lib._sel_progress1); + final _ret = _lib._objc_msgSend_609(_id, _lib._sel_progress1); return _ret.address == 0 ? null : NSProgress._(_ret, _lib, retain: true, release: true); @@ -59196,44 +56292,44 @@ class NSURLSessionTask extends NSObject { } set earliestBeginDate(NSDate? value) { - return _lib._objc_msgSend_525( + _lib._objc_msgSend_525( _id, _lib._sel_setEarliestBeginDate_1, value?._id ?? ffi.nullptr); } int get countOfBytesClientExpectsToSend { - return _lib._objc_msgSend_650( + return _lib._objc_msgSend_616( _id, _lib._sel_countOfBytesClientExpectsToSend1); } set countOfBytesClientExpectsToSend(int value) { - return _lib._objc_msgSend_651( + _lib._objc_msgSend_617( _id, _lib._sel_setCountOfBytesClientExpectsToSend_1, value); } int get countOfBytesClientExpectsToReceive { - return _lib._objc_msgSend_650( + return _lib._objc_msgSend_616( _id, _lib._sel_countOfBytesClientExpectsToReceive1); } set countOfBytesClientExpectsToReceive(int value) { - return _lib._objc_msgSend_651( + _lib._objc_msgSend_617( _id, _lib._sel_setCountOfBytesClientExpectsToReceive_1, value); } int get countOfBytesSent { - return _lib._objc_msgSend_650(_id, _lib._sel_countOfBytesSent1); + return _lib._objc_msgSend_616(_id, _lib._sel_countOfBytesSent1); } int get countOfBytesReceived { - return _lib._objc_msgSend_650(_id, _lib._sel_countOfBytesReceived1); + return _lib._objc_msgSend_616(_id, _lib._sel_countOfBytesReceived1); } int get countOfBytesExpectedToSend { - return _lib._objc_msgSend_650(_id, _lib._sel_countOfBytesExpectedToSend1); + return _lib._objc_msgSend_616(_id, _lib._sel_countOfBytesExpectedToSend1); } int get countOfBytesExpectedToReceive { - return _lib._objc_msgSend_650( + return _lib._objc_msgSend_616( _id, _lib._sel_countOfBytesExpectedToReceive1); } @@ -59245,16 +56341,16 @@ class NSURLSessionTask extends NSObject { } set taskDescription(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setTaskDescription_1, value?._id ?? ffi.nullptr); } void cancel() { - _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } int get state { - return _lib._objc_msgSend_832(_id, _lib._sel_state1); + return _lib._objc_msgSend_798(_id, _lib._sel_state1); } NSError? get error { @@ -59265,11 +56361,11 @@ class NSURLSessionTask extends NSObject { } void suspend() { - _lib._objc_msgSend_1(_id, _lib._sel_suspend1); + return _lib._objc_msgSend_1(_id, _lib._sel_suspend1); } void resume() { - _lib._objc_msgSend_1(_id, _lib._sel_resume1); + return _lib._objc_msgSend_1(_id, _lib._sel_resume1); } double get priority { @@ -59277,7 +56373,7 @@ class NSURLSessionTask extends NSObject { } set priority(double value) { - return _lib._objc_msgSend_833(_id, _lib._sel_setPriority_1, value); + _lib._objc_msgSend_799(_id, _lib._sel_setPriority_1, value); } bool get prefersIncrementalDelivery { @@ -59285,7 +56381,7 @@ class NSURLSessionTask extends NSObject { } set prefersIncrementalDelivery(bool value) { - return _lib._objc_msgSend_492( + _lib._objc_msgSend_492( _id, _lib._sel_setPrefersIncrementalDelivery_1, value); } @@ -59301,13 +56397,6 @@ class NSURLSessionTask extends NSObject { return NSURLSessionTask._(_ret, _lib, retain: false, release: true); } - 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); - } - static NSURLSessionTask alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionTask1, _lib._sel_alloc1); @@ -59319,7 +56408,7 @@ class NSURLSessionTask extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSURLSessionTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -59329,7 +56418,7 @@ class NSURLSessionTask extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionTask1, + return _lib._objc_msgSend_15(_lib._class_NSURLSessionTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -59362,7 +56451,7 @@ class NSURLSessionTask extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSURLSessionTask1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -59418,7 +56507,7 @@ class NSURLRequest extends NSObject { static NSURLRequest requestWithURL_cachePolicy_timeoutInterval_( SentryCocoa _lib, NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_815( + final _ret = _lib._objc_msgSend_781( _lib._class_NSURLRequest1, _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, URL?._id ?? ffi.nullptr, @@ -59435,7 +56524,7 @@ class NSURLRequest extends NSObject { NSURLRequest initWithURL_cachePolicy_timeoutInterval_( NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_815( + final _ret = _lib._objc_msgSend_781( _id, _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, URL?._id ?? ffi.nullptr, @@ -59452,7 +56541,7 @@ class NSURLRequest extends NSObject { } int get cachePolicy { - return _lib._objc_msgSend_816(_id, _lib._sel_cachePolicy1); + return _lib._objc_msgSend_782(_id, _lib._sel_cachePolicy1); } double get timeoutInterval { @@ -59467,7 +56556,7 @@ class NSURLRequest extends NSObject { } int get networkServiceType { - return _lib._objc_msgSend_817(_id, _lib._sel_networkServiceType1); + return _lib._objc_msgSend_783(_id, _lib._sel_networkServiceType1); } bool get allowsCellularAccess { @@ -59488,7 +56577,7 @@ class NSURLRequest extends NSObject { } int get attribution { - return _lib._objc_msgSend_818(_id, _lib._sel_attribution1); + return _lib._objc_msgSend_784(_id, _lib._sel_attribution1); } bool get requiresDNSSECValidation { @@ -59523,7 +56612,7 @@ class NSURLRequest extends NSObject { } NSInputStream? get HTTPBodyStream { - final _ret = _lib._objc_msgSend_828(_id, _lib._sel_HTTPBodyStream1); + final _ret = _lib._objc_msgSend_794(_id, _lib._sel_HTTPBodyStream1); return _ret.address == 0 ? null : NSInputStream._(_ret, _lib, retain: true, release: true); @@ -59537,25 +56626,12 @@ class NSURLRequest extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); } - @override - NSURLRequest init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLRequest._(_ret, _lib, retain: true, release: true); - } - static NSURLRequest new1(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_new1); return NSURLRequest._(_ret, _lib, retain: false, release: true); } - static NSURLRequest 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); - } - static NSURLRequest alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLRequest1, _lib._sel_alloc1); @@ -59567,7 +56643,7 @@ class NSURLRequest extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -59577,7 +56653,7 @@ class NSURLRequest extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLRequest1, + return _lib._objc_msgSend_15(_lib._class_NSURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -59610,7 +56686,7 @@ class NSURLRequest extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSURLRequest1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -59681,12 +56757,12 @@ class NSInputStream extends NSStream { } int read_maxLength_(ffi.Pointer buffer, int len) { - return _lib._objc_msgSend_820(_id, _lib._sel_read_maxLength_1, buffer, len); + return _lib._objc_msgSend_786(_id, _lib._sel_read_maxLength_1, buffer, len); } bool getBuffer_length_(ffi.Pointer> buffer, ffi.Pointer len) { - return _lib._objc_msgSend_827( + return _lib._objc_msgSend_793( _id, _lib._sel_getBuffer_length_1, buffer, len); } @@ -59737,7 +56813,7 @@ class NSInputStream extends NSStream { int port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - _lib._objc_msgSend_822( + return _lib._objc_msgSend_788( _lib._class_NSInputStream1, _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, hostname?._id ?? ffi.nullptr, @@ -59752,7 +56828,7 @@ class NSInputStream extends NSStream { int port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - _lib._objc_msgSend_825( + return _lib._objc_msgSend_791( _lib._class_NSInputStream1, _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, host?._id ?? ffi.nullptr, @@ -59766,7 +56842,7 @@ class NSInputStream extends NSStream { int bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - _lib._objc_msgSend_826( + return _lib._objc_msgSend_792( _lib._class_NSInputStream1, _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, bufferSize, @@ -59774,25 +56850,12 @@ class NSInputStream extends NSStream { outputStream); } - @override - NSInputStream init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSInputStream._(_ret, _lib, retain: true, 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 NSInputStream 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); - } - static NSInputStream alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSInputStream1, _lib._sel_alloc1); @@ -59804,7 +56867,7 @@ class NSInputStream extends NSStream { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSInputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -59814,7 +56877,7 @@ class NSInputStream extends NSStream { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSInputStream1, + return _lib._objc_msgSend_15(_lib._class_NSInputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -59847,7 +56910,7 @@ class NSInputStream extends NSStream { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSInputStream1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -59891,11 +56954,11 @@ class NSStream extends NSObject { } void open() { - _lib._objc_msgSend_1(_id, _lib._sel_open1); + return _lib._objc_msgSend_1(_id, _lib._sel_open1); } void close() { - _lib._objc_msgSend_1(_id, _lib._sel_close1); + return _lib._objc_msgSend_1(_id, _lib._sel_close1); } NSObject? get delegate { @@ -59906,7 +56969,7 @@ class NSStream extends NSObject { } set delegate(NSObject? value) { - return _lib._objc_msgSend_387( + _lib._objc_msgSend_387( _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } @@ -59922,17 +56985,17 @@ class NSStream extends NSObject { } void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, + return _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, aRunLoop?._id ?? ffi.nullptr, mode._id); } void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - _lib._objc_msgSend_533(_id, _lib._sel_removeFromRunLoop_forMode_1, + return _lib._objc_msgSend_533(_id, _lib._sel_removeFromRunLoop_forMode_1, aRunLoop?._id ?? ffi.nullptr, mode._id); } int get streamStatus { - return _lib._objc_msgSend_819(_id, _lib._sel_streamStatus1); + return _lib._objc_msgSend_785(_id, _lib._sel_streamStatus1); } NSError? get streamError { @@ -59948,7 +57011,7 @@ class NSStream extends NSObject { int port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - _lib._objc_msgSend_822( + return _lib._objc_msgSend_788( _lib._class_NSStream1, _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, hostname?._id ?? ffi.nullptr, @@ -59963,7 +57026,7 @@ class NSStream extends NSObject { int port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - _lib._objc_msgSend_825( + return _lib._objc_msgSend_791( _lib._class_NSStream1, _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, host?._id ?? ffi.nullptr, @@ -59977,7 +57040,7 @@ class NSStream extends NSObject { int bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - _lib._objc_msgSend_826( + return _lib._objc_msgSend_792( _lib._class_NSStream1, _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, bufferSize, @@ -59985,23 +57048,11 @@ class NSStream extends NSObject { outputStream); } - @override - NSStream init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSStream._(_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 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); - } - 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); @@ -60012,7 +57063,7 @@ class NSStream extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -60022,7 +57073,7 @@ class NSStream extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSStream1, + return _lib._objc_msgSend_15(_lib._class_NSStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -60055,7 +57106,7 @@ class NSStream extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSStream1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -60110,7 +57161,7 @@ class NSOutputStream extends NSStream { } int write_maxLength_(ffi.Pointer buffer, int len) { - return _lib._objc_msgSend_820( + return _lib._objc_msgSend_786( _id, _lib._sel_write_maxLength_1, buffer, len); } @@ -60125,7 +57176,7 @@ class NSOutputStream extends NSStream { NSOutputStream initToBuffer_capacity_( ffi.Pointer buffer, int capacity) { - final _ret = _lib._objc_msgSend_821( + final _ret = _lib._objc_msgSend_787( _id, _lib._sel_initToBuffer_capacity_1, buffer, capacity); return NSOutputStream._(_ret, _lib, retain: true, release: true); } @@ -60150,7 +57201,7 @@ class NSOutputStream extends NSStream { static NSOutputStream outputStreamToBuffer_capacity_( SentryCocoa _lib, ffi.Pointer buffer, int capacity) { - final _ret = _lib._objc_msgSend_821(_lib._class_NSOutputStream1, + final _ret = _lib._objc_msgSend_787(_lib._class_NSOutputStream1, _lib._sel_outputStreamToBuffer_capacity_1, buffer, capacity); return NSOutputStream._(_ret, _lib, retain: true, release: true); } @@ -60181,7 +57232,7 @@ class NSOutputStream extends NSStream { int port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - _lib._objc_msgSend_822( + return _lib._objc_msgSend_788( _lib._class_NSOutputStream1, _lib._sel_getStreamsToHostWithName_port_inputStream_outputStream_1, hostname?._id ?? ffi.nullptr, @@ -60196,7 +57247,7 @@ class NSOutputStream extends NSStream { int port, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - _lib._objc_msgSend_825( + return _lib._objc_msgSend_791( _lib._class_NSOutputStream1, _lib._sel_getStreamsToHost_port_inputStream_outputStream_1, host?._id ?? ffi.nullptr, @@ -60210,7 +57261,7 @@ class NSOutputStream extends NSStream { int bufferSize, ffi.Pointer> inputStream, ffi.Pointer> outputStream) { - _lib._objc_msgSend_826( + return _lib._objc_msgSend_792( _lib._class_NSOutputStream1, _lib._sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1, bufferSize, @@ -60218,25 +57269,12 @@ class NSOutputStream extends NSStream { outputStream); } - @override - NSOutputStream init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSOutputStream._(_ret, _lib, retain: true, release: true); - } - 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_NSOutputStream1, _lib._sel_allocWithZone_1, zone); - return NSOutputStream._(_ret, _lib, retain: false, release: true); - } - static NSOutputStream alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSOutputStream1, _lib._sel_alloc1); @@ -60248,7 +57286,7 @@ class NSOutputStream extends NSStream { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSOutputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -60258,7 +57296,7 @@ class NSOutputStream extends NSStream { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSOutputStream1, + return _lib._objc_msgSend_15(_lib._class_NSOutputStream1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -60291,7 +57329,7 @@ class NSOutputStream extends NSStream { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSOutputStream1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -60352,7 +57390,7 @@ class NSHost extends NSObject { } bool isEqualToHost_(NSHost? aHost) { - return _lib._objc_msgSend_823( + return _lib._objc_msgSend_789( _id, _lib._sel_isEqualToHost_1, aHost?._id ?? ffi.nullptr); } @@ -60392,7 +57430,7 @@ class NSHost extends NSObject { } static void setHostCacheEnabled_(SentryCocoa _lib, bool flag) { - _lib._objc_msgSend_824( + return _lib._objc_msgSend_790( _lib._class_NSHost1, _lib._sel_setHostCacheEnabled_1, flag); } @@ -60402,13 +57440,7 @@ class NSHost extends NSObject { } static void flushHostCache(SentryCocoa _lib) { - _lib._objc_msgSend_1(_lib._class_NSHost1, _lib._sel_flushHostCache1); - } - - @override - NSHost init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSHost._(_ret, _lib, retain: true, release: true); + return _lib._objc_msgSend_1(_lib._class_NSHost1, _lib._sel_flushHostCache1); } static NSHost new1(SentryCocoa _lib) { @@ -60416,12 +57448,6 @@ class NSHost extends NSObject { return NSHost._(_ret, _lib, retain: false, release: true); } - 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); - } - 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); @@ -60432,7 +57458,7 @@ class NSHost extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSHost1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -60442,7 +57468,7 @@ class NSHost extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSHost1, + return _lib._objc_msgSend_15(_lib._class_NSHost1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -60475,7 +57501,7 @@ class NSHost extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSHost1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -60520,7 +57546,7 @@ class NSURLResponse extends NSObject { NSURLResponse initWithURL_MIMEType_expectedContentLength_textEncodingName_( NSURL? URL, NSString? MIMEType, int length, NSString? name) { - final _ret = _lib._objc_msgSend_830( + final _ret = _lib._objc_msgSend_796( _id, _lib._sel_initWithURL_MIMEType_expectedContentLength_textEncodingName_1, URL?._id ?? ffi.nullptr, @@ -60562,25 +57588,12 @@ class NSURLResponse extends NSObject { : NSString._(_ret, _lib, retain: true, release: true); } - @override - NSURLResponse init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLResponse._(_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 NSURLResponse 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); - } - static NSURLResponse alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSURLResponse1, _lib._sel_alloc1); @@ -60592,7 +57605,7 @@ class NSURLResponse extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -60602,7 +57615,7 @@ class NSURLResponse extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLResponse1, + return _lib._objc_msgSend_15(_lib._class_NSURLResponse1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -60635,7 +57648,7 @@ class NSURLResponse extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSURLResponse1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -60662,7 +57675,7 @@ abstract class NSURLSessionTaskState { static const int NSURLSessionTaskStateCompleted = 3; } -void _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline( +void _ObjCBlock36_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { return block.ref.target .cast< @@ -60670,26 +57683,26 @@ 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 _ObjCBlock36_closureRegistry = {}; +int _ObjCBlock36_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock36_registerClosure(Function fn) { + final id = ++_ObjCBlock36_closureRegistryIndex; + _ObjCBlock36_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSArray_closureTrampoline( +void _ObjCBlock36_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSArray_closureRegistry[block.ref.target.address] - as void Function(ffi.Pointer))(arg0); + return (_ObjCBlock36_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 ObjCBlock36 extends _ObjCBlockBase { + ObjCBlock36._(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( + ObjCBlock36.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi @@ -60700,23 +57713,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) + _ObjCBlock36_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSArray.fromFunction( + ObjCBlock36.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) + _ObjCBlock36_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSArray_registerClosure(fn)), + _ObjCBlock36_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0) { @@ -60762,14 +57775,14 @@ class NSIndexPath extends NSObject { static NSIndexPath indexPathWithIndexes_length_( SentryCocoa _lib, ffi.Pointer indexes, int length) { - final _ret = _lib._objc_msgSend_836(_lib._class_NSIndexPath1, + final _ret = _lib._objc_msgSend_802(_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_836( + final _ret = _lib._objc_msgSend_802( _id, _lib._sel_initWithIndexes_length_1, indexes, length); return NSIndexPath._(_ret, _lib, retain: true, release: true); } @@ -60781,13 +57794,13 @@ class NSIndexPath extends NSObject { NSIndexPath indexPathByAddingIndex_(int index) { final _ret = - _lib._objc_msgSend_837(_id, _lib._sel_indexPathByAddingIndex_1, index); + _lib._objc_msgSend_803(_id, _lib._sel_indexPathByAddingIndex_1, index); return NSIndexPath._(_ret, _lib, retain: true, release: true); } NSIndexPath indexPathByRemovingLastIndex() { final _ret = - _lib._objc_msgSend_838(_id, _lib._sel_indexPathByRemovingLastIndex1); + _lib._objc_msgSend_804(_id, _lib._sel_indexPathByRemovingLastIndex1); return NSIndexPath._(_ret, _lib, retain: true, release: true); } @@ -60801,23 +57814,17 @@ class NSIndexPath extends NSObject { void getIndexes_range_( ffi.Pointer indexes, _NSRange positionRange) { - _lib._objc_msgSend_839( + return _lib._objc_msgSend_805( _id, _lib._sel_getIndexes_range_1, indexes, positionRange); } int compare_(NSIndexPath? otherObject) { - return _lib._objc_msgSend_840( + return _lib._objc_msgSend_806( _id, _lib._sel_compare_1, otherObject?._id ?? ffi.nullptr); } void getIndexes_(ffi.Pointer indexes) { - _lib._objc_msgSend_841(_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); + return _lib._objc_msgSend_807(_id, _lib._sel_getIndexes_1, indexes); } static NSIndexPath new1(SentryCocoa _lib) { @@ -60825,13 +57832,6 @@ class NSIndexPath extends NSObject { return NSIndexPath._(_ret, _lib, retain: false, 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); - } - static NSIndexPath alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_alloc1); @@ -60843,7 +57843,7 @@ class NSIndexPath extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSIndexPath1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -60853,7 +57853,7 @@ class NSIndexPath extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSIndexPath1, + return _lib._objc_msgSend_15(_lib._class_NSIndexPath1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -60886,7 +57886,7 @@ class NSIndexPath extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSIndexPath1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -60937,7 +57937,7 @@ class NSInflectionRule extends NSObject { } static NSInflectionRule? getAutomaticRule(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_842( + final _ret = _lib._objc_msgSend_808( _lib._class_NSInflectionRule1, _lib._sel_automaticRule1); return _ret.address == 0 ? null @@ -60960,13 +57960,6 @@ class NSInflectionRule extends NSObject { return NSInflectionRule._(_ret, _lib, retain: false, release: true); } - 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); - } - static NSInflectionRule alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSInflectionRule1, _lib._sel_alloc1); @@ -60978,7 +57971,7 @@ class NSInflectionRule extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSInflectionRule1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -60988,7 +57981,7 @@ class NSInflectionRule extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSInflectionRule1, + return _lib._objc_msgSend_15(_lib._class_NSInflectionRule1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -61021,7 +58014,7 @@ class NSInflectionRule extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSInflectionRule1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -61065,38 +58058,38 @@ class NSMorphology extends NSObject { } int get grammaticalGender { - return _lib._objc_msgSend_843(_id, _lib._sel_grammaticalGender1); + return _lib._objc_msgSend_809(_id, _lib._sel_grammaticalGender1); } set grammaticalGender(int value) { - return _lib._objc_msgSend_844(_id, _lib._sel_setGrammaticalGender_1, value); + _lib._objc_msgSend_810(_id, _lib._sel_setGrammaticalGender_1, value); } int get partOfSpeech { - return _lib._objc_msgSend_845(_id, _lib._sel_partOfSpeech1); + return _lib._objc_msgSend_811(_id, _lib._sel_partOfSpeech1); } set partOfSpeech(int value) { - return _lib._objc_msgSend_846(_id, _lib._sel_setPartOfSpeech_1, value); + _lib._objc_msgSend_812(_id, _lib._sel_setPartOfSpeech_1, value); } int get number { - return _lib._objc_msgSend_847(_id, _lib._sel_number1); + return _lib._objc_msgSend_813(_id, _lib._sel_number1); } set number(int value) { - return _lib._objc_msgSend_848(_id, _lib._sel_setNumber_1, value); + _lib._objc_msgSend_814(_id, _lib._sel_setNumber_1, value); } NSMorphologyCustomPronoun customPronounForLanguage_(NSString? language) { - final _ret = _lib._objc_msgSend_849(_id, + final _ret = _lib._objc_msgSend_815(_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_850( + return _lib._objc_msgSend_816( _id, _lib._sel_setCustomPronoun_forLanguage_error_1, features?._id ?? ffi.nullptr, @@ -61109,32 +58102,19 @@ class NSMorphology extends NSObject { } static NSMorphology? getUserMorphology(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_851( + final _ret = _lib._objc_msgSend_817( _lib._class_NSMorphology1, _lib._sel_userMorphology1); 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); - } - 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); } - 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); - } - static NSMorphology alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2(_lib._class_NSMorphology1, _lib._sel_alloc1); @@ -61146,7 +58126,7 @@ class NSMorphology extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSMorphology1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -61156,7 +58136,7 @@ class NSMorphology extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMorphology1, + return _lib._objc_msgSend_15(_lib._class_NSMorphology1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -61189,7 +58169,7 @@ class NSMorphology extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSMorphology1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -61289,7 +58269,7 @@ class NSMorphologyCustomPronoun extends NSObject { } set subjectForm(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setSubjectForm_1, value?._id ?? ffi.nullptr); } @@ -61301,7 +58281,7 @@ class NSMorphologyCustomPronoun extends NSObject { } set objectForm(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setObjectForm_1, value?._id ?? ffi.nullptr); } @@ -61313,7 +58293,7 @@ class NSMorphologyCustomPronoun extends NSObject { } set possessiveForm(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setPossessiveForm_1, value?._id ?? ffi.nullptr); } @@ -61325,7 +58305,7 @@ class NSMorphologyCustomPronoun extends NSObject { } set possessiveAdjectiveForm(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setPossessiveAdjectiveForm_1, value?._id ?? ffi.nullptr); } @@ -61337,16 +58317,10 @@ class NSMorphologyCustomPronoun extends NSObject { } set reflexiveForm(NSString? value) { - return _lib._objc_msgSend_509( + _lib._objc_msgSend_509( _id, _lib._sel_setReflexiveForm_1, value?._id ?? ffi.nullptr); } - @override - NSMorphologyCustomPronoun init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); - } - static NSMorphologyCustomPronoun new1(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMorphologyCustomPronoun1, _lib._sel_new1); @@ -61354,14 +58328,6 @@ class NSMorphologyCustomPronoun extends NSObject { retain: false, release: true); } - 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); - } - static NSMorphologyCustomPronoun alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( _lib._class_NSMorphologyCustomPronoun1, _lib._sel_alloc1); @@ -61374,7 +58340,7 @@ class NSMorphologyCustomPronoun extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( + return _lib._objc_msgSend_14( _lib._class_NSMorphologyCustomPronoun1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, @@ -61384,7 +58350,7 @@ class NSMorphologyCustomPronoun extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMorphologyCustomPronoun1, + return _lib._objc_msgSend_15(_lib._class_NSMorphologyCustomPronoun1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } @@ -61417,7 +58383,7 @@ class NSMorphologyCustomPronoun extends NSObject { static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( + return _lib._objc_msgSend_82( _lib._class_NSMorphologyCustomPronoun1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, @@ -61462,28 +58428,33 @@ class NSOperationQueue extends NSObject { } NSProgress? get progress { - final _ret = _lib._objc_msgSend_643(_id, _lib._sel_progress1); + final _ret = _lib._objc_msgSend_609(_id, _lib._sel_progress1); return _ret.address == 0 ? null : NSProgress._(_ret, _lib, retain: true, release: true); } void addOperation_(NSOperation? op) { - _lib._objc_msgSend_852( + return _lib._objc_msgSend_818( _id, _lib._sel_addOperation_1, op?._id ?? ffi.nullptr); } void addOperations_waitUntilFinished_(NSArray? ops, bool wait) { - _lib._objc_msgSend_855(_id, _lib._sel_addOperations_waitUntilFinished_1, - ops?._id ?? ffi.nullptr, wait); + return _lib._objc_msgSend_821( + _id, + _lib._sel_addOperations_waitUntilFinished_1, + ops?._id ?? ffi.nullptr, + wait); } - void addOperationWithBlock_(ObjCBlock_ffiVoid block) { - _lib._objc_msgSend_497(_id, _lib._sel_addOperationWithBlock_1, block._id); + void addOperationWithBlock_(ObjCBlock21 block) { + return _lib._objc_msgSend_497( + _id, _lib._sel_addOperationWithBlock_1, block._id); } - void addBarrierBlock_(ObjCBlock_ffiVoid barrier) { - _lib._objc_msgSend_497(_id, _lib._sel_addBarrierBlock_1, barrier._id); + void addBarrierBlock_(ObjCBlock21 barrier) { + return _lib._objc_msgSend_497( + _id, _lib._sel_addBarrierBlock_1, barrier._id); } int get maxConcurrentOperationCount { @@ -61491,106 +58462,507 @@ class NSOperationQueue extends NSObject { } set maxConcurrentOperationCount(int value) { - return _lib._objc_msgSend_590( + _lib._objc_msgSend_590( _id, _lib._sel_setMaxConcurrentOperationCount_1, value); } - bool get suspended { - return _lib._objc_msgSend_12(_id, _lib._sel_isSuspended1); + bool get suspended { + return _lib._objc_msgSend_12(_id, _lib._sel_isSuspended1); + } + + set suspended(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setSuspended_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) { + _lib._objc_msgSend_509(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + } + + int get qualityOfService { + return _lib._objc_msgSend_507(_id, _lib._sel_qualityOfService1); + } + + set qualityOfService(int value) { + _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_1, value); + } + + NSObject get underlyingQueue { + final _ret = _lib._objc_msgSend_822(_id, _lib._sel_underlyingQueue1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + set underlyingQueue(NSObject value) { + _lib._objc_msgSend_823(_id, _lib._sel_setUnderlyingQueue_1, value._id); + } + + void cancelAllOperations() { + return _lib._objc_msgSend_1(_id, _lib._sel_cancelAllOperations1); + } + + void waitUntilAllOperationsAreFinished() { + return _lib._objc_msgSend_1( + _id, _lib._sel_waitUntilAllOperationsAreFinished1); + } + + static NSOperationQueue? getCurrentQueue(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_824( + _lib._class_NSOperationQueue1, _lib._sel_currentQueue1); + return _ret.address == 0 + ? null + : NSOperationQueue._(_ret, _lib, retain: true, release: true); + } + + static NSOperationQueue? getMainQueue(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_824( + _lib._class_NSOperationQueue1, _lib._sel_mainQueue1); + return _ret.address == 0 + ? null + : NSOperationQueue._(_ret, _lib, retain: true, release: true); + } + + NSArray? get operations { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_operations1); + return _ret.address == 0 + ? null + : NSArray._(_ret, _lib, retain: true, release: true); + } + + int get operationCount { + return _lib._objc_msgSend_10(_id, _lib._sel_operationCount1); + } + + 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 NSOperationQueue alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSOperationQueue1, _lib._sel_alloc1); + return NSOperationQueue._(_ret, _lib, retain: false, release: true); + } + + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSOperationQueue1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + return _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_NSOperationQueue1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSOperationQueue1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSOperationQueue1, + _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_NSOperationQueue1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _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_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_NSOperationQueue1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +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 [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 [NSOperation] that wraps the given raw object pointer. + static NSOperation castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSOperation._(other, lib, retain: retain, release: release); + } + + /// 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_NSOperation1); + } + + void start() { + return _lib._objc_msgSend_1(_id, _lib._sel_start1); + } + + void main() { + return _lib._objc_msgSend_1(_id, _lib._sel_main1); + } + + bool get cancelled { + return _lib._objc_msgSend_12(_id, _lib._sel_isCancelled1); + } + + void cancel() { + return _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) { + return _lib._objc_msgSend_818( + _id, _lib._sel_addDependency_1, op?._id ?? ffi.nullptr); + } + + void removeDependency_(NSOperation? op) { + return _lib._objc_msgSend_818( + _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 + : NSArray._(_ret, _lib, retain: true, release: true); + } + + int get queuePriority { + return _lib._objc_msgSend_819(_id, _lib._sel_queuePriority1); + } + + set queuePriority(int value) { + _lib._objc_msgSend_820(_id, _lib._sel_setQueuePriority_1, value); + } + + ObjCBlock21 get completionBlock { + final _ret = _lib._objc_msgSend_618(_id, _lib._sel_completionBlock1); + return ObjCBlock21._(_ret, _lib); + } + + set completionBlock(ObjCBlock21 value) { + _lib._objc_msgSend_619(_id, _lib._sel_setCompletionBlock_1, value._id); + } + + void waitUntilFinished() { + return _lib._objc_msgSend_1(_id, _lib._sel_waitUntilFinished1); + } + + double get threadPriority { + return _lib._objc_msgSend_155(_id, _lib._sel_threadPriority1); + } + + set threadPriority(double value) { + _lib._objc_msgSend_506(_id, _lib._sel_setThreadPriority_1, value); + } + + int get qualityOfService { + return _lib._objc_msgSend_507(_id, _lib._sel_qualityOfService1); + } + + set qualityOfService(int value) { + _lib._objc_msgSend_508(_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) { + _lib._objc_msgSend_509(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + } + + 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 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_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSOperation1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); + } + + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + return _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_NSOperation1, _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSOperation1, _lib._sel_useStoredAccessor1); + } + + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSOperation1, + _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_NSOperation1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _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_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_NSOperation1, _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; +} + +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 [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 [NSPointerArray] that wraps the given raw object pointer. + static NSPointerArray castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSPointerArray._(other, lib, retain: retain, release: release); + } + + /// 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_NSPointerArray1); + } + + NSPointerArray initWithOptions_(int options) { + final _ret = + _lib._objc_msgSend_825(_id, _lib._sel_initWithOptions_1, options); + return NSPointerArray._(_ret, _lib, retain: true, release: true); + } + + NSPointerArray initWithPointerFunctions_(NSPointerFunctions? functions) { + final _ret = _lib._objc_msgSend_839(_id, + _lib._sel_initWithPointerFunctions_1, functions?._id ?? ffi.nullptr); + return NSPointerArray._(_ret, _lib, retain: true, release: true); + } + + static NSPointerArray pointerArrayWithOptions_( + SentryCocoa _lib, int options) { + final _ret = _lib._objc_msgSend_840(_lib._class_NSPointerArray1, + _lib._sel_pointerArrayWithOptions_1, options); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - set suspended(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setSuspended_1, value); + static NSPointerArray pointerArrayWithPointerFunctions_( + SentryCocoa _lib, NSPointerFunctions? functions) { + final _ret = _lib._objc_msgSend_841( + _lib._class_NSPointerArray1, + _lib._sel_pointerArrayWithPointerFunctions_1, + functions?._id ?? ffi.nullptr); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - NSString? get name { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); + NSPointerFunctions? get pointerFunctions { + final _ret = _lib._objc_msgSend_842(_id, _lib._sel_pointerFunctions1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSPointerFunctions._(_ret, _lib, retain: true, release: true); } - set name(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + ffi.Pointer pointerAtIndex_(int index) { + return _lib._objc_msgSend_843(_id, _lib._sel_pointerAtIndex_1, index); } - int get qualityOfService { - return _lib._objc_msgSend_507(_id, _lib._sel_qualityOfService1); + void addPointer_(ffi.Pointer pointer) { + return _lib._objc_msgSend_47(_id, _lib._sel_addPointer_1, pointer); } - set qualityOfService(int value) { - return _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_1, value); + void removePointerAtIndex_(int index) { + return _lib._objc_msgSend_439(_id, _lib._sel_removePointerAtIndex_1, index); } - NSObject get underlyingQueue { - final _ret = _lib._objc_msgSend_856(_id, _lib._sel_underlyingQueue1); - return NSObject._(_ret, _lib, retain: true, release: true); + void insertPointer_atIndex_(ffi.Pointer item, int index) { + return _lib._objc_msgSend_21( + _id, _lib._sel_insertPointer_atIndex_1, item, index); } - set underlyingQueue(NSObject value) { - return _lib._objc_msgSend_857( - _id, _lib._sel_setUnderlyingQueue_1, value._id); + void replacePointerAtIndex_withPointer_( + int index, ffi.Pointer item) { + return _lib._objc_msgSend_844( + _id, _lib._sel_replacePointerAtIndex_withPointer_1, index, item); } - void cancelAllOperations() { - _lib._objc_msgSend_1(_id, _lib._sel_cancelAllOperations1); + void compact() { + return _lib._objc_msgSend_1(_id, _lib._sel_compact1); } - void waitUntilAllOperationsAreFinished() { - _lib._objc_msgSend_1(_id, _lib._sel_waitUntilAllOperationsAreFinished1); + int get count { + return _lib._objc_msgSend_10(_id, _lib._sel_count1); } - static NSOperationQueue? getCurrentQueue(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_858( - _lib._class_NSOperationQueue1, _lib._sel_currentQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); + set count(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setCount_1, value); } - static NSOperationQueue? getMainQueue(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_858( - _lib._class_NSOperationQueue1, _lib._sel_mainQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_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); } - NSArray? get operations { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_operations1); - return _ret.address == 0 - ? null - : NSArray._(_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); } - int get operationCount { - return _lib._objc_msgSend_10(_id, _lib._sel_operationCount1); + static NSPointerArray strongObjectsPointerArray(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_845( + _lib._class_NSPointerArray1, _lib._sel_strongObjectsPointerArray1); + return NSPointerArray._(_ret, _lib, retain: true, release: true); } - @override - NSOperationQueue init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSOperationQueue._(_ret, _lib, retain: true, release: true); + static NSPointerArray weakObjectsPointerArray(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_845( + _lib._class_NSPointerArray1, _lib._sel_weakObjectsPointerArray1); + return NSPointerArray._(_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); + 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); } - static NSOperationQueue 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); + 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 NSOperationQueue alloc(SentryCocoa _lib) { + static NSPointerArray 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_NSPointerArray1, _lib._sel_alloc1); + return NSPointerArray._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -61598,8 +58970,8 @@ class NSOperationQueue extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSOperationQueue1, + return _lib._objc_msgSend_14( + _lib._class_NSPointerArray1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -61608,24 +58980,24 @@ class NSOperationQueue extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSOperationQueue1, + return _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_NSOperationQueue1, + return _lib._objc_msgSend_12(_lib._class_NSPointerArray1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSOperationQueue1, _lib._sel_useStoredAccessor1); + _lib._class_NSPointerArray1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSOperationQueue1, + _lib._class_NSPointerArray1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -61634,181 +59006,241 @@ class NSOperationQueue extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSOperationQueue1, + _lib._class_NSPointerArray1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSOperationQueue1, + return _lib._objc_msgSend_82( + _lib._class_NSPointerArray1, _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_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_NSOperationQueue1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSPointerArray1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSOperation extends NSObject { - NSOperation._(ffi.Pointer id, SentryCocoa lib, +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, {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 [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 [NSOperation] that wraps the given raw object pointer. - static NSOperation 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 NSOperation._(other, lib, retain: retain, release: release); + return NSPointerFunctions._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSOperation]. + /// 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_NSOperation1); - } - - 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); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSPointerFunctions1); } - bool get asynchronous { - return _lib._objc_msgSend_12(_id, _lib._sel_isAsynchronous1); + NSPointerFunctions initWithOptions_(int options) { + final _ret = + _lib._objc_msgSend_825(_id, _lib._sel_initWithOptions_1, options); + return NSPointerFunctions._(_ret, _lib, retain: true, release: true); } - bool get ready { - return _lib._objc_msgSend_12(_id, _lib._sel_isReady1); + static NSPointerFunctions pointerFunctionsWithOptions_( + SentryCocoa _lib, int options) { + final _ret = _lib._objc_msgSend_826(_lib._class_NSPointerFunctions1, + _lib._sel_pointerFunctionsWithOptions_1, options); + return NSPointerFunctions._(_ret, _lib, retain: true, release: true); } - void addDependency_(NSOperation? op) { - _lib._objc_msgSend_852( - _id, _lib._sel_addDependency_1, op?._id ?? ffi.nullptr); + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + get hashFunction { + return _lib._objc_msgSend_827(_id, _lib._sel_hashFunction1); } - void removeDependency_(NSOperation? op) { - _lib._objc_msgSend_852( - _id, _lib._sel_removeDependency_1, op?._id ?? ffi.nullptr); + set hashFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + value) { + _lib._objc_msgSend_828(_id, _lib._sel_setHashFunction_1, value); } - NSArray? get dependencies { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_dependencies1); - return _ret.address == 0 - ? null - : NSArray._(_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_829(_id, _lib._sel_isEqualFunction1); } - int get queuePriority { - return _lib._objc_msgSend_853(_id, _lib._sel_queuePriority1); + set isEqualFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Bool Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + value) { + _lib._objc_msgSend_830(_id, _lib._sel_setIsEqualFunction_1, value); } - set queuePriority(int value) { - return _lib._objc_msgSend_854(_id, _lib._sel_setQueuePriority_1, value); + ffi.Pointer< + ffi.NativeFunction)>> + get sizeFunction { + return _lib._objc_msgSend_831(_id, _lib._sel_sizeFunction1); } - ObjCBlock_ffiVoid get completionBlock { - final _ret = _lib._objc_msgSend_652(_id, _lib._sel_completionBlock1); - return ObjCBlock_ffiVoid._(_ret, _lib); + set sizeFunction( + ffi.Pointer< + ffi + .NativeFunction)>> + value) { + _lib._objc_msgSend_832(_id, _lib._sel_setSizeFunction_1, value); } - set completionBlock(ObjCBlock_ffiVoid value) { - return _lib._objc_msgSend_653( - _id, _lib._sel_setCompletionBlock_1, value._id); + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>> + get descriptionFunction { + return _lib._objc_msgSend_833(_id, _lib._sel_descriptionFunction1); } - void waitUntilFinished() { - _lib._objc_msgSend_1(_id, _lib._sel_waitUntilFinished1); + set descriptionFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer)>> + value) { + _lib._objc_msgSend_834(_id, _lib._sel_setDescriptionFunction_1, value); } - double get threadPriority { - return _lib._objc_msgSend_155(_id, _lib._sel_threadPriority1); + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer)>>)>> + get relinquishFunction { + return _lib._objc_msgSend_835(_id, _lib._sel_relinquishFunction1); } - set threadPriority(double value) { - return _lib._objc_msgSend_506(_id, _lib._sel_setThreadPriority_1, value); + set relinquishFunction( + ffi.Pointer< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer, + ffi.Pointer< + ffi.NativeFunction< + ffi.UnsignedLong Function( + ffi.Pointer)>>)>> + value) { + _lib._objc_msgSend_836(_id, _lib._sel_setRelinquishFunction_1, value); } - int get qualityOfService { - return _lib._objc_msgSend_507(_id, _lib._sel_qualityOfService1); + 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_837(_id, _lib._sel_acquireFunction1); } - set qualityOfService(int value) { - return _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_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) { + _lib._objc_msgSend_838(_id, _lib._sel_setAcquireFunction_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); + bool get usesStrongWriteBarrier { + return _lib._objc_msgSend_12(_id, _lib._sel_usesStrongWriteBarrier1); } - set name(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + set usesStrongWriteBarrier(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setUsesStrongWriteBarrier_1, value); } - @override - NSOperation init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSOperation._(_ret, _lib, retain: true, release: true); + bool get usesWeakReadAndWriteBarriers { + return _lib._objc_msgSend_12(_id, _lib._sel_usesWeakReadAndWriteBarriers1); } - 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); + set usesWeakReadAndWriteBarriers(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setUsesWeakReadAndWriteBarriers_1, value); } - static NSOperation 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); + 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 NSOperation alloc(SentryCocoa _lib) { + static NSPointerFunctions 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_NSPointerFunctions1, _lib._sel_alloc1); + return NSPointerFunctions._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -61816,8 +59248,8 @@ class NSOperation extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSOperation1, + return _lib._objc_msgSend_14( + _lib._class_NSPointerFunctions1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -61826,24 +59258,24 @@ class NSOperation extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSOperation1, + return _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_NSOperation1, _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_NSOperation1, _lib._sel_useStoredAccessor1); + _lib._class_NSPointerFunctions1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSOperation1, + _lib._class_NSPointerFunctions1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -61852,187 +59284,251 @@ class NSOperation extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSOperation1, + _lib._class_NSPointerFunctions1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSOperation1, + return _lib._objc_msgSend_82( + _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_NSOperation1, _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_NSOperation1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSPointerFunctions1, _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; -} - -class NSPointerArray extends NSObject { - NSPointerArray._(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 [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 [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 [NSPointerArray] that wraps the given raw object pointer. - static NSPointerArray 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 NSPointerArray._(other, lib, retain: retain, release: release); + return NSProcessInfo._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSPointerArray]. + /// 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_NSPointerArray1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSProcessInfo1); } - NSPointerArray initWithOptions_(int options) { - final _ret = - _lib._objc_msgSend_859(_id, _lib._sel_initWithOptions_1, options); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + static NSProcessInfo? getProcessInfo(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_846( + _lib._class_NSProcessInfo1, _lib._sel_processInfo1); + return _ret.address == 0 + ? null + : NSProcessInfo._(_ret, _lib, retain: true, release: true); } - NSPointerArray initWithPointerFunctions_(NSPointerFunctions? functions) { - final _ret = _lib._objc_msgSend_873(_id, - _lib._sel_initWithPointerFunctions_1, functions?._id ?? ffi.nullptr); - return NSPointerArray._(_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); } - static NSPointerArray pointerArrayWithOptions_( - SentryCocoa _lib, int options) { - final _ret = _lib._objc_msgSend_874(_lib._class_NSPointerArray1, - _lib._sel_pointerArrayWithOptions_1, options); - return NSPointerArray._(_ret, _lib, retain: true, 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 NSPointerArray pointerArrayWithPointerFunctions_( - SentryCocoa _lib, NSPointerFunctions? functions) { - final _ret = _lib._objc_msgSend_875( - _lib._class_NSPointerArray1, - _lib._sel_pointerArrayWithPointerFunctions_1, - functions?._id ?? ffi.nullptr); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + 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); } - NSPointerFunctions? get pointerFunctions { - final _ret = _lib._objc_msgSend_876(_id, _lib._sel_pointerFunctions1); + NSString? get processName { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_processName1); return _ret.address == 0 ? null - : NSPointerFunctions._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - ffi.Pointer pointerAtIndex_(int index) { - return _lib._objc_msgSend_877(_id, _lib._sel_pointerAtIndex_1, index); + set processName(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setProcessName_1, value?._id ?? ffi.nullptr); } - void addPointer_(ffi.Pointer pointer) { - _lib._objc_msgSend_47(_id, _lib._sel_addPointer_1, pointer); + int get processIdentifier { + return _lib._objc_msgSend_219(_id, _lib._sel_processIdentifier1); } - void removePointerAtIndex_(int index) { - _lib._objc_msgSend_439(_id, _lib._sel_removePointerAtIndex_1, index); + 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); } - void insertPointer_atIndex_(ffi.Pointer item, int index) { - _lib._objc_msgSend_21(_id, _lib._sel_insertPointer_atIndex_1, item, index); + int operatingSystem() { + return _lib._objc_msgSend_10(_id, _lib._sel_operatingSystem1); } - void replacePointerAtIndex_withPointer_( - int index, ffi.Pointer item) { - _lib._objc_msgSend_878( - _id, _lib._sel_replacePointerAtIndex_withPointer_1, index, item); + NSString operatingSystemName() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemName1); + return NSString._(_ret, _lib, retain: true, release: true); } - void compact() { - _lib._objc_msgSend_1(_id, _lib._sel_compact1); + 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); } - int get count { - return _lib._objc_msgSend_10(_id, _lib._sel_count1); + NSOperatingSystemVersion get operatingSystemVersion { + return _lib._objc_msgSend_847(_id, _lib._sel_operatingSystemVersion1); + } + + int get processorCount { + return _lib._objc_msgSend_10(_id, _lib._sel_processorCount1); + } + + int get activeProcessorCount { + return _lib._objc_msgSend_10(_id, _lib._sel_activeProcessorCount1); + } + + int get physicalMemory { + return _lib._objc_msgSend_154(_id, _lib._sel_physicalMemory1); + } + + bool isOperatingSystemAtLeastVersion_(NSOperatingSystemVersion version) { + return _lib._objc_msgSend_848( + _id, _lib._sel_isOperatingSystemAtLeastVersion_1, version); + } + + double get systemUptime { + return _lib._objc_msgSend_155(_id, _lib._sel_systemUptime1); + } + + void disableSuddenTermination() { + return _lib._objc_msgSend_1(_id, _lib._sel_disableSuddenTermination1); + } + + void enableSuddenTermination() { + return _lib._objc_msgSend_1(_id, _lib._sel_enableSuddenTermination1); + } + + void disableAutomaticTermination_(NSString? reason) { + return _lib._objc_msgSend_192(_id, _lib._sel_disableAutomaticTermination_1, + reason?._id ?? ffi.nullptr); + } + + void enableAutomaticTermination_(NSString? reason) { + return _lib._objc_msgSend_192(_id, _lib._sel_enableAutomaticTermination_1, + reason?._id ?? ffi.nullptr); + } + + bool get automaticTerminationSupportEnabled { + return _lib._objc_msgSend_12( + _id, _lib._sel_automaticTerminationSupportEnabled1); + } + + set automaticTerminationSupportEnabled(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setAutomaticTerminationSupportEnabled_1, value); + } + + NSObject beginActivityWithOptions_reason_(int options, NSString? reason) { + final _ret = _lib._objc_msgSend_849( + _id, + _lib._sel_beginActivityWithOptions_reason_1, + options, + reason?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + void endActivity_(NSObject? activity) { + return _lib._objc_msgSend_15( + _id, _lib._sel_endActivity_1, activity?._id ?? ffi.nullptr); + } + + void performActivityWithOptions_reason_usingBlock_( + int options, NSString? reason, ObjCBlock21 block) { + return _lib._objc_msgSend_850( + _id, + _lib._sel_performActivityWithOptions_reason_usingBlock_1, + options, + reason?._id ?? ffi.nullptr, + block._id); } - set count(int value) { - return _lib._objc_msgSend_483(_id, _lib._sel_setCount_1, value); + void performExpiringActivityWithReason_usingBlock_( + NSString? reason, ObjCBlock37 block) { + return _lib._objc_msgSend_851( + _id, + _lib._sel_performExpiringActivityWithReason_usingBlock_1, + reason?._id ?? ffi.nullptr, + block._id); } - 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); + 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); } - 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); + 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); } - static NSPointerArray strongObjectsPointerArray(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_879( - _lib._class_NSPointerArray1, _lib._sel_strongObjectsPointerArray1); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + int get thermalState { + return _lib._objc_msgSend_852(_id, _lib._sel_thermalState1); } - static NSPointerArray weakObjectsPointerArray(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_879( - _lib._class_NSPointerArray1, _lib._sel_weakObjectsPointerArray1); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + bool get lowPowerModeEnabled { + return _lib._objc_msgSend_12(_id, _lib._sel_isLowPowerModeEnabled1); } - 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); + bool get macCatalystApp { + return _lib._objc_msgSend_12(_id, _lib._sel_isMacCatalystApp1); } - @override - NSPointerArray init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSPointerArray._(_ret, _lib, retain: true, release: true); + bool get iOSAppOnMac { + return _lib._objc_msgSend_12(_id, _lib._sel_isiOSAppOnMac1); } - static NSPointerArray new1(SentryCocoa _lib) { + static NSProcessInfo new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSPointerArray1, _lib._sel_new1); - return NSPointerArray._(_ret, _lib, retain: false, release: true); - } - - static NSPointerArray 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._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_new1); + return NSProcessInfo._(_ret, _lib, retain: false, release: true); } - static NSPointerArray alloc(SentryCocoa _lib) { + static NSProcessInfo 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_NSProcessInfo1, _lib._sel_alloc1); + return NSProcessInfo._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -62040,8 +59536,8 @@ class NSPointerArray extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSPointerArray1, + return _lib._objc_msgSend_14( + _lib._class_NSProcessInfo1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -62050,24 +59546,24 @@ class NSPointerArray extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSPointerArray1, + return _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_NSPointerArray1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSProcessInfo1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSPointerArray1, _lib._sel_useStoredAccessor1); + _lib._class_NSProcessInfo1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSPointerArray1, + _lib._class_NSProcessInfo1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -62076,15 +59572,15 @@ class NSPointerArray extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSPointerArray1, + _lib._class_NSProcessInfo1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSPointerArray1, + return _lib._objc_msgSend_82( + _lib._class_NSProcessInfo1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -62092,241 +59588,413 @@ class NSPointerArray extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSPointerArray1, _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_NSPointerArray1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSProcessInfo1, _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 NSOperatingSystemVersion extends ffi.Struct { + @ffi.Long() + external int majorVersion; + + @ffi.Long() + external int minorVersion; + + @ffi.Long() + external int patchVersion; } -class NSPointerFunctions extends NSObject { - NSPointerFunctions._(ffi.Pointer id, SentryCocoa lib, +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 _ObjCBlock37_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, bool arg0) { + return block.ref.target + .cast>() + .asFunction()(arg0); +} + +final _ObjCBlock37_closureRegistry = {}; +int _ObjCBlock37_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock37_registerClosure(Function fn) { + final id = ++_ObjCBlock37_closureRegistryIndex; + _ObjCBlock37_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock37_closureTrampoline(ffi.Pointer<_ObjCBlock> block, bool arg0) { + return (_ObjCBlock37_closureRegistry[block.ref.target.address] as void + Function(bool))(arg0); +} + +class ObjCBlock37 extends _ObjCBlockBase { + ObjCBlock37._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock37.fromFunctionPointer(SentryCocoa lib, + ffi.Pointer> ptr) + : this._( + lib._newBlock1( + _cFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Bool arg0)>(_ObjCBlock37_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock37.fromFunction(SentryCocoa lib, void Function(bool arg0) fn) + : this._( + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Bool arg0)>(_ObjCBlock37_closureTrampoline) + .cast(), + _ObjCBlock37_registerClosure(fn)), + lib); + static ffi.Pointer? _dartFuncTrampoline; + void call(bool arg0) { + return _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>>() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock> block, bool arg0)>()(_id, arg0); + } +} + +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 [NSPointerFunctions] that points to the same underlying object as [other]. - static NSPointerFunctions castFrom(T other) { - return NSPointerFunctions._(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 [NSPointerFunctions] that wraps the given raw object pointer. - static NSPointerFunctions 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 NSPointerFunctions._(other, lib, retain: retain, release: release); + return NSTextCheckingResult._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSPointerFunctions]. + /// 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_NSPointerFunctions1); + obj._lib._class_NSTextCheckingResult1); } - NSPointerFunctions initWithOptions_(int options) { - final _ret = - _lib._objc_msgSend_859(_id, _lib._sel_initWithOptions_1, options); - return NSPointerFunctions._(_ret, _lib, retain: true, release: true); + int get resultType { + return _lib._objc_msgSend_853(_id, _lib._sel_resultType1); } - static NSPointerFunctions pointerFunctionsWithOptions_( - SentryCocoa _lib, int options) { - final _ret = _lib._objc_msgSend_860(_lib._class_NSPointerFunctions1, - _lib._sel_pointerFunctionsWithOptions_1, options); - return NSPointerFunctions._(_ret, _lib, retain: true, release: true); + _NSRange get range { + return _lib._objc_msgSend_49(_id, _lib._sel_range1); } - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>> - get hashFunction { - return _lib._objc_msgSend_861(_id, _lib._sel_hashFunction1); + NSOrthography? get orthography { + final _ret = _lib._objc_msgSend_854(_id, _lib._sel_orthography1); + return _ret.address == 0 + ? null + : NSOrthography._(_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_862(_id, _lib._sel_setHashFunction_1, value); + 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); } - 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_863(_id, _lib._sel_isEqualFunction1); + 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); } - 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_864(_id, _lib._sel_setIsEqualFunction_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); } - ffi.Pointer< - ffi.NativeFunction)>> - get sizeFunction { - return _lib._objc_msgSend_865(_id, _lib._sel_sizeFunction1); + double get duration { + return _lib._objc_msgSend_155(_id, _lib._sel_duration1); } - set sizeFunction( - ffi.Pointer< - ffi - .NativeFunction)>> - value) { - return _lib._objc_msgSend_866(_id, _lib._sel_setSizeFunction_1, value); + 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); } - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> - get descriptionFunction { - return _lib._objc_msgSend_867(_id, _lib._sel_descriptionFunction1); + 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 descriptionFunction( - ffi.Pointer< - ffi.NativeFunction< - ffi.Pointer Function(ffi.Pointer)>> - value) { - return _lib._objc_msgSend_868( - _id, _lib._sel_setDescriptionFunction_1, value); + 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); } - ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer, - ffi.Pointer< - ffi.NativeFunction< - ffi.UnsignedLong Function(ffi.Pointer)>>)>> - get relinquishFunction { - return _lib._objc_msgSend_869(_id, _lib._sel_relinquishFunction1); + 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); } - 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_870( - _id, _lib._sel_setRelinquishFunction_1, value); + NSRegularExpression? get regularExpression { + final _ret = _lib._objc_msgSend_866(_id, _lib._sel_regularExpression1); + return _ret.address == 0 + ? null + : NSRegularExpression._(_ret, _lib, retain: true, release: true); } - 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_871(_id, _lib._sel_acquireFunction1); + 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); } - 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_872(_id, _lib._sel_setAcquireFunction_1, value); + int get numberOfRanges { + return _lib._objc_msgSend_10(_id, _lib._sel_numberOfRanges1); } - bool get usesStrongWriteBarrier { - return _lib._objc_msgSend_12(_id, _lib._sel_usesStrongWriteBarrier1); + _NSRange rangeAtIndex_(int idx) { + return _lib._objc_msgSend_323(_id, _lib._sel_rangeAtIndex_1, idx); } - set usesStrongWriteBarrier(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setUsesStrongWriteBarrier_1, value); + _NSRange rangeWithName_(NSString? name) { + return _lib._objc_msgSend_316( + _id, _lib._sel_rangeWithName_1, name?._id ?? ffi.nullptr); } - bool get usesWeakReadAndWriteBarriers { - return _lib._objc_msgSend_12(_id, _lib._sel_usesWeakReadAndWriteBarriers1); + NSTextCheckingResult resultByAdjustingRangesWithOffset_(int offset) { + final _ret = _lib._objc_msgSend_867( + _id, _lib._sel_resultByAdjustingRangesWithOffset_1, offset); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - set usesWeakReadAndWriteBarriers(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setUsesWeakReadAndWriteBarriers_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); } - @override - NSPointerFunctions init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSPointerFunctions._(_ret, _lib, retain: true, release: true); + static NSTextCheckingResult orthographyCheckingResultWithRange_orthography_( + SentryCocoa _lib, _NSRange range, NSOrthography? orthography) { + final _ret = _lib._objc_msgSend_868( + _lib._class_NSTextCheckingResult1, + _lib._sel_orthographyCheckingResultWithRange_orthography_1, + range, + orthography?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, 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 NSTextCheckingResult spellCheckingResultWithRange_( + SentryCocoa _lib, _NSRange range) { + final _ret = _lib._objc_msgSend_869(_lib._class_NSTextCheckingResult1, + _lib._sel_spellCheckingResultWithRange_1, range); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + } + + static NSTextCheckingResult grammarCheckingResultWithRange_details_( + SentryCocoa _lib, _NSRange range, NSArray? details) { + final _ret = _lib._objc_msgSend_870( + _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_871( + _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_872( + _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_873( + _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_874( + _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_875( + _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_875( + _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_875( + _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_875( + _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_876( + _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_877( + _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_875( + _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_873( + _lib._class_NSTextCheckingResult1, + _lib._sel_transitInformationCheckingResultWithRange_components_1, + range, + components?._id ?? ffi.nullptr); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - 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); + 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 NSPointerFunctions alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSPointerFunctions1, _lib._sel_alloc1); - return NSPointerFunctions._(_ret, _lib, retain: false, release: true); + static NSTextCheckingResult alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSTextCheckingResult1, _lib._sel_alloc1); + return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -62334,8 +60002,8 @@ class NSPointerFunctions extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSPointerFunctions1, + return _lib._objc_msgSend_14( + _lib._class_NSTextCheckingResult1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -62344,24 +60012,24 @@ class NSPointerFunctions extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSPointerFunctions1, + return _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_NSPointerFunctions1, + return _lib._objc_msgSend_12(_lib._class_NSTextCheckingResult1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSPointerFunctions1, _lib._sel_useStoredAccessor1); + _lib._class_NSTextCheckingResult1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSPointerFunctions1, + _lib._class_NSTextCheckingResult1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -62370,264 +60038,227 @@ class NSPointerFunctions extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSPointerFunctions1, + _lib._class_NSTextCheckingResult1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSPointerFunctions1, + return _lib._objc_msgSend_82( + _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_NSPointerFunctions1, + 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_NSPointerFunctions1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSTextCheckingResult1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSProcessInfo extends NSObject { - NSProcessInfo._(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 [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 [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 [NSProcessInfo] that wraps the given raw object pointer. - static NSProcessInfo 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 NSProcessInfo._(other, lib, retain: retain, release: release); + return NSRegularExpression._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSProcessInfo]. + /// 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_NSProcessInfo1); - } - - static NSProcessInfo? getProcessInfo(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_880( - _lib._class_NSProcessInfo1, _lib._sel_processInfo1); - return _ret.address == 0 - ? null - : NSProcessInfo._(_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); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSRegularExpression1); } - 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 NSRegularExpression regularExpressionWithPattern_options_error_( + SentryCocoa _lib, + NSString? pattern, + int options, + ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_855( + _lib._class_NSRegularExpression1, + _lib._sel_regularExpressionWithPattern_options_error_1, + pattern?._id ?? ffi.nullptr, + options, + error); + return NSRegularExpression._(_ret, _lib, retain: true, release: true); } - 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); + NSRegularExpression initWithPattern_options_error_(NSString? pattern, + int options, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_856( + _id, + _lib._sel_initWithPattern_options_error_1, + pattern?._id ?? ffi.nullptr, + options, + error); + return NSRegularExpression._(_ret, _lib, retain: true, release: true); } - NSString? get processName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_processName1); + 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); } - set processName(NSString? value) { - return _lib._objc_msgSend_509( - _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 - : NSString._(_ret, _lib, retain: true, release: true); + int get options { + return _lib._objc_msgSend_857(_id, _lib._sel_options1); } - int operatingSystem() { - return _lib._objc_msgSend_10(_id, _lib._sel_operatingSystem1); + int get numberOfCaptureGroups { + return _lib._objc_msgSend_10(_id, _lib._sel_numberOfCaptureGroups1); } - NSString operatingSystemName() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_operatingSystemName1); + 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); } - 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); - } - - void getOperatingSystemVersion(ffi.Pointer stret) { - _lib._objc_msgSend_881(stret, _id, _lib._sel_operatingSystemVersion1); - } - - int get processorCount { - return _lib._objc_msgSend_10(_id, _lib._sel_processorCount1); - } - - int get activeProcessorCount { - return _lib._objc_msgSend_10(_id, _lib._sel_activeProcessorCount1); - } - - int get physicalMemory { - return _lib._objc_msgSend_154(_id, _lib._sel_physicalMemory1); - } - - bool isOperatingSystemAtLeastVersion_(NSOperatingSystemVersion version) { - return _lib._objc_msgSend_882( - _id, _lib._sel_isOperatingSystemAtLeastVersion_1, version); - } - - double get systemUptime { - return _lib._objc_msgSend_155(_id, _lib._sel_systemUptime1); - } - - void disableSuddenTermination() { - _lib._objc_msgSend_1(_id, _lib._sel_disableSuddenTermination1); - } - - void enableSuddenTermination() { - _lib._objc_msgSend_1(_id, _lib._sel_enableSuddenTermination1); - } - - void disableAutomaticTermination_(NSString? reason) { - _lib._objc_msgSend_192(_id, _lib._sel_disableAutomaticTermination_1, - reason?._id ?? ffi.nullptr); - } - - void enableAutomaticTermination_(NSString? reason) { - _lib._objc_msgSend_192(_id, _lib._sel_enableAutomaticTermination_1, - reason?._id ?? ffi.nullptr); - } - - bool get automaticTerminationSupportEnabled { - return _lib._objc_msgSend_12( - _id, _lib._sel_automaticTerminationSupportEnabled1); - } - - set automaticTerminationSupportEnabled(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAutomaticTerminationSupportEnabled_1, value); - } - - NSObject beginActivityWithOptions_reason_(int options, NSString? reason) { - final _ret = _lib._objc_msgSend_883( + void enumerateMatchesInString_options_range_usingBlock_( + NSString? string, int options, _NSRange range, ObjCBlock38 block) { + return _lib._objc_msgSend_858( _id, - _lib._sel_beginActivityWithOptions_reason_1, + _lib._sel_enumerateMatchesInString_options_range_usingBlock_1, + string?._id ?? ffi.nullptr, options, - reason?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } - - void endActivity_(NSObject? activity) { - _lib._objc_msgSend_15( - _id, _lib._sel_endActivity_1, activity?._id ?? ffi.nullptr); + range, + block._id); } - void performActivityWithOptions_reason_usingBlock_( - int options, NSString? reason, ObjCBlock_ffiVoid block) { - _lib._objc_msgSend_884( + NSArray matchesInString_options_range_( + NSString? string, int options, _NSRange range) { + final _ret = _lib._objc_msgSend_859( _id, - _lib._sel_performActivityWithOptions_reason_usingBlock_1, + _lib._sel_matchesInString_options_range_1, + string?._id ?? ffi.nullptr, options, - reason?._id ?? ffi.nullptr, - block._id); + range); + return NSArray._(_ret, _lib, retain: true, release: true); } - void performExpiringActivityWithReason_usingBlock_( - NSString? reason, ObjCBlock_ffiVoid_bool block) { - _lib._objc_msgSend_885( + int numberOfMatchesInString_options_range_( + NSString? string, int options, _NSRange range) { + return _lib._objc_msgSend_860( _id, - _lib._sel_performExpiringActivityWithReason_usingBlock_1, - reason?._id ?? ffi.nullptr, - block._id); - } - - 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); + _lib._sel_numberOfMatchesInString_options_range_1, + string?._id ?? ffi.nullptr, + options, + range); } - 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); + NSTextCheckingResult firstMatchInString_options_range_( + NSString? string, int options, _NSRange range) { + final _ret = _lib._objc_msgSend_861( + _id, + _lib._sel_firstMatchInString_options_range_1, + string?._id ?? ffi.nullptr, + options, + range); + return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); } - int get thermalState { - return _lib._objc_msgSend_886(_id, _lib._sel_thermalState1); + _NSRange rangeOfFirstMatchInString_options_range_( + NSString? string, int options, _NSRange range) { + return _lib._objc_msgSend_862( + _id, + _lib._sel_rangeOfFirstMatchInString_options_range_1, + string?._id ?? ffi.nullptr, + options, + range); } - bool get lowPowerModeEnabled { - return _lib._objc_msgSend_12(_id, _lib._sel_isLowPowerModeEnabled1); + NSString stringByReplacingMatchesInString_options_range_withTemplate_( + NSString? string, int options, _NSRange range, NSString? templ) { + final _ret = _lib._objc_msgSend_863( + _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); } - bool get macCatalystApp { - return _lib._objc_msgSend_12(_id, _lib._sel_isMacCatalystApp1); + int replaceMatchesInString_options_range_withTemplate_( + NSMutableString? string, int options, _NSRange range, NSString? templ) { + return _lib._objc_msgSend_864( + _id, + _lib._sel_replaceMatchesInString_options_range_withTemplate_1, + string?._id ?? ffi.nullptr, + options, + range, + templ?._id ?? ffi.nullptr); } - bool get iOSAppOnMac { - return _lib._objc_msgSend_12(_id, _lib._sel_isiOSAppOnMac1); + NSString replacementStringForResult_inString_offset_template_( + NSTextCheckingResult? result, + NSString? string, + int offset, + NSString? templ) { + final _ret = _lib._objc_msgSend_865( + _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); } - @override - NSProcessInfo init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSProcessInfo._(_ret, _lib, retain: true, release: true); + 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); } - static NSProcessInfo new1(SentryCocoa _lib) { + static NSRegularExpression new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSProcessInfo1, _lib._sel_new1); - return NSProcessInfo._(_ret, _lib, retain: false, release: true); - } - - static NSProcessInfo 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); + _lib._objc_msgSend_2(_lib._class_NSRegularExpression1, _lib._sel_new1); + return NSRegularExpression._(_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 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_( @@ -62635,8 +60266,8 @@ class NSProcessInfo extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSProcessInfo1, + return _lib._objc_msgSend_14( + _lib._class_NSRegularExpression1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -62645,24 +60276,24 @@ class NSProcessInfo extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSProcessInfo1, + return _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_NSProcessInfo1, _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_NSProcessInfo1, _lib._sel_useStoredAccessor1); + _lib._class_NSRegularExpression1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSProcessInfo1, + _lib._class_NSRegularExpression1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -62671,447 +60302,297 @@ class NSProcessInfo extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSProcessInfo1, + _lib._class_NSRegularExpression1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSProcessInfo1, + return _lib._objc_msgSend_82( + _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_NSProcessInfo1, _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_NSProcessInfo1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSRegularExpression1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSOperatingSystemVersion extends ffi.Struct { - @ffi.Long() - external int majorVersion; - - @ffi.Long() - external int minorVersion; - - @ffi.Long() - external int patchVersion; +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 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 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_bool_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, bool arg0) { +void _ObjCBlock38_fnPtrTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { return block.ref.target - .cast>() - .asFunction()(arg0); + .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); } -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 _ObjCBlock38_closureRegistry = {}; +int _ObjCBlock38_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock38_registerClosure(Function fn) { + final id = ++_ObjCBlock38_closureRegistryIndex; + _ObjCBlock38_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 _ObjCBlock38_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, int arg1, ffi.Pointer arg2) { + return (_ObjCBlock38_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer, int, ffi.Pointer))( + arg0, arg1, arg2); } -class ObjCBlock_ffiVoid_bool extends _ObjCBlockBase { - ObjCBlock_ffiVoid_bool._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock38 extends _ObjCBlockBase { + ObjCBlock38._(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) + ObjCBlock38.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.Bool arg0)>( - _ObjCBlock_ffiVoid_bool_fnPtrTrampoline) + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Int32 arg1, + ffi.Pointer arg2)>( + _ObjCBlock38_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) + ObjCBlock38.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.Bool arg0)>( - _ObjCBlock_ffiVoid_bool_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_bool_registerClosure(fn)), - lib); - static ffi.Pointer? _dartFuncTrampoline; - void call(bool arg0) { - return _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, ffi.Bool arg0)>>() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, bool arg0)>()(_id, arg0); - } -} - -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 [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 [NSTextCheckingResult] that wraps the given raw object pointer. - static NSTextCheckingResult castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSTextCheckingResult._(other, lib, retain: retain, release: release); - } - - /// 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_NSTextCheckingResult1); - } - - int get resultType { - return _lib._objc_msgSend_887(_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_888(_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); - } - - 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); - } - - NSRegularExpression? get regularExpression { - final _ret = _lib._objc_msgSend_900(_id, _lib._sel_regularExpression1); - return _ret.address == 0 - ? null - : NSRegularExpression._(_ret, _lib, retain: true, release: true); + lib._newBlock1( + _dartFuncTrampoline ??= ffi.Pointer.fromFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Int32 arg1, + ffi.Pointer arg2)>( + _ObjCBlock38_closureTrampoline) + .cast(), + _ObjCBlock38_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); } +} - 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); - } +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; +} - int get numberOfRanges { - return _lib._objc_msgSend_10(_id, _lib._sel_numberOfRanges1); - } +class NSURLCache extends NSObject { + NSURLCache._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - void rangeAtIndex_(ffi.Pointer<_NSRange> stret, int idx) { - _lib._objc_msgSend_323(stret, _id, _lib._sel_rangeAtIndex_1, idx); + /// 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); } - void rangeWithName_(ffi.Pointer<_NSRange> stret, NSString? name) { - _lib._objc_msgSend_316( - stret, _id, _lib._sel_rangeWithName_1, name?._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); } - NSTextCheckingResult resultByAdjustingRangesWithOffset_(int offset) { - final _ret = _lib._objc_msgSend_901( - _id, _lib._sel_resultByAdjustingRangesWithOffset_1, offset); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + /// 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); } - NSDictionary? get addressComponents { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_addressComponents1); + static NSURLCache? getSharedURLCache(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_878( + _lib._class_NSURLCache1, _lib._sel_sharedURLCache1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSURLCache._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult orthographyCheckingResultWithRange_orthography_( - SentryCocoa _lib, _NSRange range, NSOrthography? orthography) { - final _ret = _lib._objc_msgSend_902( - _lib._class_NSTextCheckingResult1, - _lib._sel_orthographyCheckingResultWithRange_orthography_1, - range, - orthography?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + static void setSharedURLCache(SentryCocoa _lib, NSURLCache? value) { + _lib._objc_msgSend_879(_lib._class_NSURLCache1, + _lib._sel_setSharedURLCache_1, value?._id ?? ffi.nullptr); } - static NSTextCheckingResult spellCheckingResultWithRange_( - SentryCocoa _lib, _NSRange range) { - final _ret = _lib._objc_msgSend_903(_lib._class_NSTextCheckingResult1, - _lib._sel_spellCheckingResultWithRange_1, range); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + NSURLCache initWithMemoryCapacity_diskCapacity_diskPath_( + int memoryCapacity, int diskCapacity, NSString? path) { + final _ret = _lib._objc_msgSend_880( + _id, + _lib._sel_initWithMemoryCapacity_diskCapacity_diskPath_1, + memoryCapacity, + diskCapacity, + path?._id ?? ffi.nullptr); + return NSURLCache._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult grammarCheckingResultWithRange_details_( - SentryCocoa _lib, _NSRange range, NSArray? details) { - final _ret = _lib._objc_msgSend_904( - _lib._class_NSTextCheckingResult1, - _lib._sel_grammarCheckingResultWithRange_details_1, - range, - details?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + NSURLCache initWithMemoryCapacity_diskCapacity_directoryURL_( + int memoryCapacity, int diskCapacity, NSURL? directoryURL) { + final _ret = _lib._objc_msgSend_881( + _id, + _lib._sel_initWithMemoryCapacity_diskCapacity_directoryURL_1, + memoryCapacity, + diskCapacity, + directoryURL?._id ?? ffi.nullptr); + return NSURLCache._(_ret, _lib, retain: true, release: true); } - static NSTextCheckingResult dateCheckingResultWithRange_date_( - SentryCocoa _lib, _NSRange range, NSDate? date) { - final _ret = _lib._objc_msgSend_905( - _lib._class_NSTextCheckingResult1, - _lib._sel_dateCheckingResultWithRange_date_1, - range, - date?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + NSCachedURLResponse cachedResponseForRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_885( + _id, _lib._sel_cachedResponseForRequest_1, request?._id ?? ffi.nullptr); + return NSCachedURLResponse._(_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_906( - _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 storeCachedResponse_forRequest_( + NSCachedURLResponse? cachedResponse, NSURLRequest? request) { + return _lib._objc_msgSend_886( + _id, + _lib._sel_storeCachedResponse_forRequest_1, + cachedResponse?._id ?? ffi.nullptr, + request?._id ?? ffi.nullptr); } - static NSTextCheckingResult addressCheckingResultWithRange_components_( - SentryCocoa _lib, _NSRange range, NSDictionary? components) { - final _ret = _lib._objc_msgSend_907( - _lib._class_NSTextCheckingResult1, - _lib._sel_addressCheckingResultWithRange_components_1, - range, - components?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + void removeCachedResponseForRequest_(NSURLRequest? request) { + return _lib._objc_msgSend_887( + _id, + _lib._sel_removeCachedResponseForRequest_1, + request?._id ?? ffi.nullptr); } - static NSTextCheckingResult linkCheckingResultWithRange_URL_( - SentryCocoa _lib, _NSRange range, NSURL? url) { - final _ret = _lib._objc_msgSend_908( - _lib._class_NSTextCheckingResult1, - _lib._sel_linkCheckingResultWithRange_URL_1, - range, - url?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + void removeAllCachedResponses() { + return _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResponses1); } - static NSTextCheckingResult quoteCheckingResultWithRange_replacementString_( - SentryCocoa _lib, _NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_909( - _lib._class_NSTextCheckingResult1, - _lib._sel_quoteCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + void removeCachedResponsesSinceDate_(NSDate? date) { + return _lib._objc_msgSend_504(_id, + _lib._sel_removeCachedResponsesSinceDate_1, date?._id ?? ffi.nullptr); } - static NSTextCheckingResult dashCheckingResultWithRange_replacementString_( - SentryCocoa _lib, _NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_909( - _lib._class_NSTextCheckingResult1, - _lib._sel_dashCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + int get memoryCapacity { + return _lib._objc_msgSend_10(_id, _lib._sel_memoryCapacity1); } - static NSTextCheckingResult - replacementCheckingResultWithRange_replacementString_( - SentryCocoa _lib, _NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_909( - _lib._class_NSTextCheckingResult1, - _lib._sel_replacementCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + set memoryCapacity(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setMemoryCapacity_1, value); } - static NSTextCheckingResult - correctionCheckingResultWithRange_replacementString_( - SentryCocoa _lib, _NSRange range, NSString? replacementString) { - final _ret = _lib._objc_msgSend_909( - _lib._class_NSTextCheckingResult1, - _lib._sel_correctionCheckingResultWithRange_replacementString_1, - range, - replacementString?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + int get diskCapacity { + return _lib._objc_msgSend_10(_id, _lib._sel_diskCapacity1); } - static NSTextCheckingResult - correctionCheckingResultWithRange_replacementString_alternativeStrings_( - SentryCocoa _lib, - _NSRange range, - NSString? replacementString, - NSArray? alternativeStrings) { - final _ret = _lib._objc_msgSend_910( - _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); + set diskCapacity(int value) { + _lib._objc_msgSend_483(_id, _lib._sel_setDiskCapacity_1, value); } - static NSTextCheckingResult - regularExpressionCheckingResultWithRanges_count_regularExpression_( - SentryCocoa _lib, - ffi.Pointer<_NSRange> ranges, - int count, - NSRegularExpression? regularExpression) { - final _ret = _lib._objc_msgSend_911( - _lib._class_NSTextCheckingResult1, - _lib._sel_regularExpressionCheckingResultWithRanges_count_regularExpression_1, - ranges, - count, - regularExpression?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + int get currentMemoryUsage { + return _lib._objc_msgSend_10(_id, _lib._sel_currentMemoryUsage1); } - static NSTextCheckingResult phoneNumberCheckingResultWithRange_phoneNumber_( - SentryCocoa _lib, _NSRange range, NSString? phoneNumber) { - final _ret = _lib._objc_msgSend_909( - _lib._class_NSTextCheckingResult1, - _lib._sel_phoneNumberCheckingResultWithRange_phoneNumber_1, - range, - phoneNumber?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + int get currentDiskUsage { + return _lib._objc_msgSend_10(_id, _lib._sel_currentDiskUsage1); } - static NSTextCheckingResult - transitInformationCheckingResultWithRange_components_( - SentryCocoa _lib, _NSRange range, NSDictionary? components) { - final _ret = _lib._objc_msgSend_907( - _lib._class_NSTextCheckingResult1, - _lib._sel_transitInformationCheckingResultWithRange_components_1, - range, - components?._id ?? ffi.nullptr); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + void storeCachedResponse_forDataTask_( + NSCachedURLResponse? cachedResponse, NSURLSessionDataTask? dataTask) { + return _lib._objc_msgSend_888( + _id, + _lib._sel_storeCachedResponse_forDataTask_1, + cachedResponse?._id ?? ffi.nullptr, + dataTask?._id ?? ffi.nullptr); } - @override - NSTextCheckingResult init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + void getCachedResponseForDataTask_completionHandler_( + NSURLSessionDataTask? dataTask, ObjCBlock39 completionHandler) { + return _lib._objc_msgSend_889( + _id, + _lib._sel_getCachedResponseForDataTask_completionHandler_1, + dataTask?._id ?? ffi.nullptr, + completionHandler._id); } - 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); + void removeCachedResponseForDataTask_(NSURLSessionDataTask? dataTask) { + return _lib._objc_msgSend_890( + _id, + _lib._sel_removeCachedResponseForDataTask_1, + dataTask?._id ?? ffi.nullptr); } - static NSTextCheckingResult 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); + 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 NSTextCheckingResult alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSTextCheckingResult1, _lib._sel_alloc1); - return NSTextCheckingResult._(_ret, _lib, retain: false, release: true); + static NSURLCache alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLCache1, _lib._sel_alloc1); + return NSURLCache._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -63119,8 +60600,8 @@ class NSTextCheckingResult extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSTextCheckingResult1, + return _lib._objc_msgSend_14( + _lib._class_NSURLCache1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -63129,24 +60610,24 @@ class NSTextCheckingResult extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSTextCheckingResult1, + return _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_NSTextCheckingResult1, - _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_NSTextCheckingResult1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLCache1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSTextCheckingResult1, + _lib._class_NSURLCache1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -63155,244 +60636,230 @@ class NSTextCheckingResult extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSTextCheckingResult1, + _lib._class_NSURLCache1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSTextCheckingResult1, + return _lib._objc_msgSend_82( + _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_NSTextCheckingResult1, - _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_NSTextCheckingResult1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLCache1, _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 NSCachedURLResponse extends NSObject { + NSCachedURLResponse._(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 [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 [NSRegularExpression] that wraps the given raw object pointer. - static NSRegularExpression 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 NSRegularExpression._(other, lib, retain: retain, release: release); + return NSCachedURLResponse._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSRegularExpression]. + /// 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_NSRegularExpression1); + obj._lib._class_NSCachedURLResponse1); } - static NSRegularExpression regularExpressionWithPattern_options_error_( - SentryCocoa _lib, - NSString? pattern, - int options, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_889( - _lib._class_NSRegularExpression1, - _lib._sel_regularExpressionWithPattern_options_error_1, - pattern?._id ?? ffi.nullptr, - options, - error); - return NSRegularExpression._(_ret, _lib, retain: true, release: true); + NSCachedURLResponse initWithResponse_data_( + NSURLResponse? response, NSData? data) { + final _ret = _lib._objc_msgSend_882(_id, _lib._sel_initWithResponse_data_1, + response?._id ?? ffi.nullptr, data?._id ?? ffi.nullptr); + return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - NSRegularExpression initWithPattern_options_error_(NSString? pattern, - int options, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_890( + NSCachedURLResponse initWithResponse_data_userInfo_storagePolicy_( + NSURLResponse? response, + NSData? data, + NSDictionary? userInfo, + int storagePolicy) { + final _ret = _lib._objc_msgSend_883( _id, - _lib._sel_initWithPattern_options_error_1, - pattern?._id ?? ffi.nullptr, - options, - error); - return NSRegularExpression._(_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); } - NSString? get pattern { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_pattern1); + NSURLResponse? get response { + final _ret = _lib._objc_msgSend_797(_id, _lib._sel_response1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSURLResponse._(_ret, _lib, retain: true, release: true); } - int get options { - return _lib._objc_msgSend_891(_id, _lib._sel_options1); + 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); } - int get numberOfCaptureGroups { - return _lib._objc_msgSend_10(_id, _lib._sel_numberOfCaptureGroups1); + 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); } - 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); + int get storagePolicy { + return _lib._objc_msgSend_884(_id, _lib._sel_storagePolicy1); } - void enumerateMatchesInString_options_range_usingBlock_( - NSString? string, - int options, - _NSRange range, - ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool block) { - _lib._objc_msgSend_892( - _id, - _lib._sel_enumerateMatchesInString_options_range_usingBlock_1, - string?._id ?? ffi.nullptr, - options, - range, - block._id); + 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); } - NSArray matchesInString_options_range_( - NSString? string, int options, _NSRange range) { - final _ret = _lib._objc_msgSend_893( - _id, - _lib._sel_matchesInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); - return NSArray._(_ret, _lib, retain: true, 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); } - int numberOfMatchesInString_options_range_( - NSString? string, int options, _NSRange range) { - return _lib._objc_msgSend_894( - _id, - _lib._sel_numberOfMatchesInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSCachedURLResponse1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - NSTextCheckingResult firstMatchInString_options_range_( - NSString? string, int options, _NSRange range) { - final _ret = _lib._objc_msgSend_895( - _id, - _lib._sel_firstMatchInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); - return NSTextCheckingResult._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSCachedURLResponse1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void rangeOfFirstMatchInString_options_range_(ffi.Pointer<_NSRange> stret, - NSString? string, int options, _NSRange range) { - _lib._objc_msgSend_896( - stret, - _id, - _lib._sel_rangeOfFirstMatchInString_options_range_1, - string?._id ?? ffi.nullptr, - options, - range); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSCachedURLResponse1, + _lib._sel_accessInstanceVariablesDirectly1); } - NSString stringByReplacingMatchesInString_options_range_withTemplate_( - NSString? string, int options, _NSRange range, NSString? templ) { - final _ret = _lib._objc_msgSend_897( - _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); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSCachedURLResponse1, _lib._sel_useStoredAccessor1); } - int replaceMatchesInString_options_range_withTemplate_( - NSMutableString? string, int options, _NSRange range, NSString? templ) { - return _lib._objc_msgSend_898( - _id, - _lib._sel_replaceMatchesInString_options_range_withTemplate_1, - string?._id ?? ffi.nullptr, - options, - range, - templ?._id ?? ffi.nullptr); + 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); + } + + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSCachedURLResponse1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); + } + + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _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_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_NSCachedURLResponse1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +abstract class NSURLCacheStoragePolicy { + static const int NSURLCacheStorageAllowed = 0; + static const int NSURLCacheStorageAllowedInMemoryOnly = 1; + static const int NSURLCacheStorageNotAllowed = 2; +} + +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 [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); } - NSString replacementStringForResult_inString_offset_template_( - NSTextCheckingResult? result, - NSString? string, - int offset, - NSString? templ) { - final _ret = _lib._objc_msgSend_899( - _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); + /// 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 NSURLSessionDataTask._(other, lib, retain: retain, release: release); } - 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); + /// 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_NSURLSessionDataTask1); } @override - NSRegularExpression init() { + NSURLSessionDataTask init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSRegularExpression._(_ret, _lib, retain: true, release: true); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - static NSRegularExpression new1(SentryCocoa _lib) { + static NSURLSessionDataTask new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSRegularExpression1, _lib._sel_new1); - return NSRegularExpression._(_ret, _lib, retain: false, release: true); - } - - static NSRegularExpression 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._objc_msgSend_2(_lib._class_NSURLSessionDataTask1, _lib._sel_new1); + return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); } - static NSRegularExpression alloc(SentryCocoa _lib) { + static NSURLSessionDataTask 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_NSURLSessionDataTask1, _lib._sel_alloc1); + return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -63400,8 +60867,8 @@ class NSRegularExpression extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSRegularExpression1, + return _lib._objc_msgSend_14( + _lib._class_NSURLSessionDataTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -63410,24 +60877,24 @@ class NSRegularExpression extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSRegularExpression1, + return _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_NSRegularExpression1, + return _lib._objc_msgSend_12(_lib._class_NSURLSessionDataTask1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSRegularExpression1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionDataTask1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSRegularExpression1, + _lib._class_NSURLSessionDataTask1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -63436,319 +60903,236 @@ class NSRegularExpression extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSRegularExpression1, + _lib._class_NSURLSessionDataTask1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSRegularExpression1, + return _lib._objc_msgSend_82( + _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_NSRegularExpression1, + 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_NSRegularExpression1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLSessionDataTask1, _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 _ObjCBlock39_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { 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); + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); } -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; +final _ObjCBlock39_closureRegistry = {}; +int _ObjCBlock39_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock39_registerClosure(Function fn) { + final id = ++_ObjCBlock39_closureRegistryIndex; + _ObjCBlock39_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[ - block.ref.target.address] - as void Function(ffi.Pointer, int, - ffi.Pointer))(arg0, arg1, arg2); +void _ObjCBlock39_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock39_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer))(arg0); } -class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool - extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) +class ObjCBlock39 extends _ObjCBlockBase { + ObjCBlock39._(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( + ObjCBlock39.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< - ffi.NativeFunction< - ffi.Void Function(ffi.Pointer arg0, - ffi.Int32 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.Int32 arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_fnPtrTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock39_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// 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) + ObjCBlock39.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.Int32 arg1, - ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureTrampoline) + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>( + _ObjCBlock39_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_registerClosure( - fn)), + _ObjCBlock39_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; - void call( - ffi.Pointer arg0, int 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.Int32 arg1, - ffi.Pointer arg2)>>() + ffi.Void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>>() .asFunction< - void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - int arg1, - ffi.Pointer arg2)>()(_id, arg0, arg1, arg2); + void Function(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0)>()(_id, arg0); } } -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 NSURLConnection extends NSObject { + NSURLConnection._(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 [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 [NSURLCache] that wraps the given raw object pointer. - static NSURLCache 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 NSURLCache._(other, lib, retain: retain, release: release); + return NSURLConnection._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLCache]. + /// 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_NSURLCache1); - } - - static NSURLCache? getSharedURLCache(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_912( - _lib._class_NSURLCache1, _lib._sel_sharedURLCache1); - return _ret.address == 0 - ? null - : NSURLCache._(_ret, _lib, retain: true, release: true); - } - - static void setSharedURLCache(SentryCocoa _lib, NSURLCache? value) { - return _lib._objc_msgSend_913(_lib._class_NSURLCache1, - _lib._sel_setSharedURLCache_1, value?._id ?? ffi.nullptr); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLConnection1); } - NSURLCache initWithMemoryCapacity_diskCapacity_diskPath_( - int memoryCapacity, int diskCapacity, NSString? path) { - final _ret = _lib._objc_msgSend_914( + NSURLConnection initWithRequest_delegate_startImmediately_( + NSURLRequest? request, NSObject delegate, bool startImmediately) { + final _ret = _lib._objc_msgSend_891( _id, - _lib._sel_initWithMemoryCapacity_diskCapacity_diskPath_1, - memoryCapacity, - diskCapacity, - path?._id ?? ffi.nullptr); - return NSURLCache._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithRequest_delegate_startImmediately_1, + request?._id ?? ffi.nullptr, + delegate._id, + startImmediately); + return NSURLConnection._(_ret, _lib, retain: true, release: true); } - NSURLCache initWithMemoryCapacity_diskCapacity_directoryURL_( - int memoryCapacity, int diskCapacity, NSURL? directoryURL) { - final _ret = _lib._objc_msgSend_915( + NSURLConnection initWithRequest_delegate_( + NSURLRequest? request, NSObject delegate) { + final _ret = _lib._objc_msgSend_892( _id, - _lib._sel_initWithMemoryCapacity_diskCapacity_directoryURL_1, - memoryCapacity, - diskCapacity, - directoryURL?._id ?? ffi.nullptr); - return NSURLCache._(_ret, _lib, retain: true, release: true); - } - - NSCachedURLResponse cachedResponseForRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_919( - _id, _lib._sel_cachedResponseForRequest_1, request?._id ?? ffi.nullptr); - return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); - } - - void storeCachedResponse_forRequest_( - NSCachedURLResponse? cachedResponse, NSURLRequest? request) { - _lib._objc_msgSend_920(_id, _lib._sel_storeCachedResponse_forRequest_1, - cachedResponse?._id ?? ffi.nullptr, request?._id ?? ffi.nullptr); - } - - void removeCachedResponseForRequest_(NSURLRequest? request) { - _lib._objc_msgSend_921(_id, _lib._sel_removeCachedResponseForRequest_1, - request?._id ?? ffi.nullptr); - } - - void removeAllCachedResponses() { - _lib._objc_msgSend_1(_id, _lib._sel_removeAllCachedResponses1); - } - - void removeCachedResponsesSinceDate_(NSDate? date) { - _lib._objc_msgSend_504(_id, _lib._sel_removeCachedResponsesSinceDate_1, - date?._id ?? ffi.nullptr); + _lib._sel_initWithRequest_delegate_1, + request?._id ?? ffi.nullptr, + delegate._id); + return NSURLConnection._(_ret, _lib, retain: true, release: true); } - int get memoryCapacity { - return _lib._objc_msgSend_10(_id, _lib._sel_memoryCapacity1); + static NSURLConnection connectionWithRequest_delegate_( + SentryCocoa _lib, NSURLRequest? request, NSObject delegate) { + final _ret = _lib._objc_msgSend_893( + _lib._class_NSURLConnection1, + _lib._sel_connectionWithRequest_delegate_1, + request?._id ?? ffi.nullptr, + delegate._id); + return NSURLConnection._(_ret, _lib, retain: true, release: true); } - set memoryCapacity(int value) { - return _lib._objc_msgSend_483(_id, _lib._sel_setMemoryCapacity_1, value); + NSURLRequest? get originalRequest { + final _ret = _lib._objc_msgSend_795(_id, _lib._sel_originalRequest1); + return _ret.address == 0 + ? null + : NSURLRequest._(_ret, _lib, retain: true, release: true); } - int get diskCapacity { - return _lib._objc_msgSend_10(_id, _lib._sel_diskCapacity1); + NSURLRequest? get currentRequest { + final _ret = _lib._objc_msgSend_795(_id, _lib._sel_currentRequest1); + return _ret.address == 0 + ? null + : NSURLRequest._(_ret, _lib, retain: true, release: true); } - set diskCapacity(int value) { - return _lib._objc_msgSend_483(_id, _lib._sel_setDiskCapacity_1, value); + void start() { + return _lib._objc_msgSend_1(_id, _lib._sel_start1); } - int get currentMemoryUsage { - return _lib._objc_msgSend_10(_id, _lib._sel_currentMemoryUsage1); + void cancel() { + return _lib._objc_msgSend_1(_id, _lib._sel_cancel1); } - int get currentDiskUsage { - return _lib._objc_msgSend_10(_id, _lib._sel_currentDiskUsage1); + void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + return _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, mode._id); } - void storeCachedResponse_forDataTask_( - NSCachedURLResponse? cachedResponse, NSURLSessionDataTask? dataTask) { - _lib._objc_msgSend_922(_id, _lib._sel_storeCachedResponse_forDataTask_1, - cachedResponse?._id ?? ffi.nullptr, dataTask?._id ?? ffi.nullptr); + void unscheduleFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + return _lib._objc_msgSend_533( + _id, + _lib._sel_unscheduleFromRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, + mode._id); } - void getCachedResponseForDataTask_completionHandler_( - NSURLSessionDataTask? dataTask, - ObjCBlock_ffiVoid_NSCachedURLResponse completionHandler) { - _lib._objc_msgSend_923( - _id, - _lib._sel_getCachedResponseForDataTask_completionHandler_1, - dataTask?._id ?? ffi.nullptr, - completionHandler._id); + void setDelegateQueue_(NSOperationQueue? queue) { + return _lib._objc_msgSend_894( + _id, _lib._sel_setDelegateQueue_1, queue?._id ?? ffi.nullptr); } - void removeCachedResponseForDataTask_(NSURLSessionDataTask? dataTask) { - _lib._objc_msgSend_924(_id, _lib._sel_removeCachedResponseForDataTask_1, - dataTask?._id ?? ffi.nullptr); + static bool canHandleRequest_(SentryCocoa _lib, NSURLRequest? request) { + return _lib._objc_msgSend_895(_lib._class_NSURLConnection1, + _lib._sel_canHandleRequest_1, request?._id ?? ffi.nullptr); } - @override - NSURLCache init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLCache._(_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_896( + _lib._class_NSURLConnection1, + _lib._sel_sendSynchronousRequest_returningResponse_error_1, + request?._id ?? ffi.nullptr, + response, + error); + return NSData._(_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 void sendAsynchronousRequest_queue_completionHandler_(SentryCocoa _lib, + NSURLRequest? request, NSOperationQueue? queue, ObjCBlock40 handler) { + return _lib._objc_msgSend_897( + _lib._class_NSURLConnection1, + _lib._sel_sendAsynchronousRequest_queue_completionHandler_1, + request?._id ?? ffi.nullptr, + queue?._id ?? ffi.nullptr, + handler._id); } - static NSURLCache 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); + 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 NSURLCache alloc(SentryCocoa _lib) { + static NSURLConnection 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_NSURLConnection1, _lib._sel_alloc1); + return NSURLConnection._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -63756,8 +61140,8 @@ class NSURLCache extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLCache1, + return _lib._objc_msgSend_14( + _lib._class_NSURLConnection1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -63766,24 +61150,24 @@ class NSURLCache extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLCache1, + return _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_NSURLCache1, _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_NSURLCache1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLConnection1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLCache1, + _lib._class_NSURLConnection1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -63792,127 +61176,265 @@ class NSURLCache extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLCache1, + _lib._class_NSURLConnection1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSURLCache1, + return _lib._objc_msgSend_82( + _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_NSURLCache1, _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_NSURLCache1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLConnection1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSCachedURLResponse extends NSObject { - NSCachedURLResponse._(ffi.Pointer id, SentryCocoa lib, +void _ObjCBlock40_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 _ObjCBlock40_closureRegistry = {}; +int _ObjCBlock40_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock40_registerClosure(Function fn) { + final id = ++_ObjCBlock40_closureRegistryIndex; + _ObjCBlock40_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock40_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return (_ObjCBlock40_closureRegistry[block.ref.target.address] + as void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock40 extends _ObjCBlockBase { + ObjCBlock40._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock40.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)>( + _ObjCBlock40_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock40.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)>( + _ObjCBlock40_closureTrampoline) + .cast(), + _ObjCBlock40_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 [NSCachedURLResponse] that points to the same underlying object as [other]. - static NSCachedURLResponse castFrom(T other) { - return NSCachedURLResponse._(other._id, other._lib, + /// 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 [NSCachedURLResponse] that wraps the given raw object pointer. - static NSCachedURLResponse 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 NSCachedURLResponse._(other, lib, retain: retain, release: release); + return NSURLCredential._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSCachedURLResponse]. + /// 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_NSCachedURLResponse1); + obj._lib._class_NSURLCredential1); } - NSCachedURLResponse initWithResponse_data_( - NSURLResponse? response, NSData? data) { - final _ret = _lib._objc_msgSend_916(_id, _lib._sel_initWithResponse_data_1, - response?._id ?? ffi.nullptr, data?._id ?? ffi.nullptr); - return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + int get persistence { + return _lib._objc_msgSend_898(_id, _lib._sel_persistence1); } - NSCachedURLResponse initWithResponse_data_userInfo_storagePolicy_( - NSURLResponse? response, - NSData? data, - NSDictionary? userInfo, - int storagePolicy) { - final _ret = _lib._objc_msgSend_917( + NSURLCredential initWithUser_password_persistence_( + NSString? user, NSString? password, int persistence) { + final _ret = _lib._objc_msgSend_899( _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); + _lib._sel_initWithUser_password_persistence_1, + user?._id ?? ffi.nullptr, + password?._id ?? ffi.nullptr, + persistence); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - NSURLResponse? get response { - final _ret = _lib._objc_msgSend_831(_id, _lib._sel_response1); + static NSURLCredential credentialWithUser_password_persistence_( + SentryCocoa _lib, NSString? user, NSString? password, int persistence) { + final _ret = _lib._objc_msgSend_900( + _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); + } + + NSString? get user { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_user1); return _ret.address == 0 ? null - : NSURLResponse._(_ret, _lib, retain: true, release: true); + : NSString._(_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); + } + + bool get hasPassword { + return _lib._objc_msgSend_12(_id, _lib._sel_hasPassword1); + } + + NSURLCredential initWithIdentity_certificates_persistence_( + ffi.Pointer<__SecIdentity> identity, + NSArray? certArray, + int persistence) { + final _ret = _lib._objc_msgSend_901( + _id, + _lib._sel_initWithIdentity_certificates_persistence_1, + identity, + certArray?._id ?? ffi.nullptr, + persistence); + return NSURLCredential._(_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_902( + _lib._class_NSURLCredential1, + _lib._sel_credentialWithIdentity_certificates_persistence_1, + identity, + certArray?._id ?? ffi.nullptr, + persistence); + return NSURLCredential._(_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); + ffi.Pointer<__SecIdentity> get identity { + return _lib._objc_msgSend_903(_id, _lib._sel_identity1); } - NSDictionary? get userInfo { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_userInfo1); + NSArray? get certificates { + final _ret = _lib._objc_msgSend_79(_id, _lib._sel_certificates1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSArray._(_ret, _lib, retain: true, release: true); } - int get storagePolicy { - return _lib._objc_msgSend_918(_id, _lib._sel_storagePolicy1); + NSURLCredential initWithTrust_(ffi.Pointer<__SecTrust> trust) { + final _ret = _lib._objc_msgSend_904(_id, _lib._sel_initWithTrust_1, trust); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - @override - NSCachedURLResponse init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + static NSURLCredential credentialForTrust_( + SentryCocoa _lib, ffi.Pointer<__SecTrust> trust) { + final _ret = _lib._objc_msgSend_905( + _lib._class_NSURLCredential1, _lib._sel_credentialForTrust_1, trust); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - static NSCachedURLResponse new1(SentryCocoa _lib) { + static NSURLCredential new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSCachedURLResponse1, _lib._sel_new1); - return NSCachedURLResponse._(_ret, _lib, retain: false, release: true); - } - - static NSCachedURLResponse 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); + _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_new1); + return NSURLCredential._(_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 NSURLCredential alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_alloc1); + return NSURLCredential._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -63920,8 +61442,8 @@ class NSCachedURLResponse extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSCachedURLResponse1, + return _lib._objc_msgSend_14( + _lib._class_NSURLCredential1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -63930,24 +61452,24 @@ class NSCachedURLResponse extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSCachedURLResponse1, + return _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_NSCachedURLResponse1, + return _lib._objc_msgSend_12(_lib._class_NSURLCredential1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSCachedURLResponse1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLCredential1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSCachedURLResponse1, + _lib._class_NSURLCredential1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -63956,86 +61478,170 @@ class NSCachedURLResponse extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSCachedURLResponse1, + _lib._class_NSURLCredential1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSCachedURLResponse1, + return _lib._objc_msgSend_82( + _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_NSCachedURLResponse1, + 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_NSCachedURLResponse1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLCredential1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSURLCacheStoragePolicy { - static const int NSURLCacheStorageAllowed = 0; - static const int NSURLCacheStorageAllowedInMemoryOnly = 1; - static const int NSURLCacheStorageNotAllowed = 2; +abstract class NSURLCredentialPersistence { + static const int NSURLCredentialPersistenceNone = 0; + static const int NSURLCredentialPersistenceForSession = 1; + static const int NSURLCredentialPersistencePermanent = 2; + static const int NSURLCredentialPersistenceSynchronizable = 3; } -class NSURLSessionDataTask extends NSURLSessionTask { - NSURLSessionDataTask._(ffi.Pointer id, SentryCocoa lib, +class __SecIdentity extends ffi.Opaque {} + +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 [NSURLSessionDataTask] that points to the same underlying object as [other]. - static NSURLSessionDataTask castFrom(T other) { - return NSURLSessionDataTask._(other._id, other._lib, + /// 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 [NSURLSessionDataTask] that wraps the given raw object pointer. - static NSURLSessionDataTask castFromPointer( + /// 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 NSURLSessionDataTask._(other, lib, retain: retain, release: release); + return NSURLProtectionSpace._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionDataTask]. + /// 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_NSURLSessionDataTask1); + obj._lib._class_NSURLProtectionSpace1); } - @override - NSURLSessionDataTask init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionDataTask._(_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_906( + _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 NSURLSessionDataTask new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSessionDataTask1, _lib._sel_new1); - return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); + NSURLProtectionSpace initWithProxyHost_port_type_realm_authenticationMethod_( + NSString? host, + int port, + NSString? type, + NSString? realm, + NSString? authenticationMethod) { + final _ret = _lib._objc_msgSend_906( + _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 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); + 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 NSURLSessionDataTask alloc(SentryCocoa _lib) { + bool get receivesCredentialSecurely { + return _lib._objc_msgSend_12(_id, _lib._sel_receivesCredentialSecurely1); + } + + 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); + } + + int get port { + return _lib._objc_msgSend_78(_id, _lib._sel_port1); + } + + 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); + } + + 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); + } + + 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); + } + + 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); + } + + ffi.Pointer<__SecTrust> get serverTrust { + return _lib._objc_msgSend_907(_id, _lib._sel_serverTrust1); + } + + 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 NSURLProtectionSpace alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionDataTask1, _lib._sel_alloc1); - return NSURLSessionDataTask._(_ret, _lib, retain: false, release: true); + _lib._class_NSURLProtectionSpace1, _lib._sel_alloc1); + return NSURLProtectionSpace._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -64043,8 +61649,8 @@ class NSURLSessionDataTask extends NSURLSessionTask { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLSessionDataTask1, + return _lib._objc_msgSend_14( + _lib._class_NSURLProtectionSpace1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -64053,24 +61659,24 @@ class NSURLSessionDataTask extends NSURLSessionTask { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionDataTask1, + return _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_NSURLSessionDataTask1, + return _lib._objc_msgSend_12(_lib._class_NSURLProtectionSpace1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSessionDataTask1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLProtectionSpace1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionDataTask1, + _lib._class_NSURLProtectionSpace1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -64079,252 +61685,195 @@ class NSURLSessionDataTask extends NSURLSessionTask { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSessionDataTask1, + _lib._class_NSURLProtectionSpace1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSURLSessionDataTask1, + return _lib._objc_msgSend_82( + _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_NSURLSessionDataTask1, + 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_NSURLSessionDataTask1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLProtectionSpace1, _lib._sel_classForKeyedUnarchiver1); 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); -} - -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, +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 [NSURLConnection] that points to the same underlying object as [other]. - static NSURLConnection castFrom(T other) { - return NSURLConnection._(other._id, other._lib, + /// 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 [NSURLConnection] that wraps the given raw object pointer. - static NSURLConnection 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 NSURLConnection._(other, lib, retain: retain, release: release); + return NSURLCredentialStorage._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLConnection]. + /// 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_NSURLConnection1); - } - - NSURLConnection initWithRequest_delegate_startImmediately_( - NSURLRequest? request, NSObject delegate, bool startImmediately) { - final _ret = _lib._objc_msgSend_925( - _id, - _lib._sel_initWithRequest_delegate_startImmediately_1, - request?._id ?? ffi.nullptr, - delegate._id, - startImmediately); - return NSURLConnection._(_ret, _lib, retain: true, release: true); - } - - NSURLConnection initWithRequest_delegate_( - NSURLRequest? request, NSObject delegate) { - final _ret = _lib._objc_msgSend_926( - _id, - _lib._sel_initWithRequest_delegate_1, - request?._id ?? ffi.nullptr, - delegate._id); - return NSURLConnection._(_ret, _lib, retain: true, release: true); - } - - static NSURLConnection connectionWithRequest_delegate_( - SentryCocoa _lib, NSURLRequest? request, NSObject delegate) { - final _ret = _lib._objc_msgSend_927( - _lib._class_NSURLConnection1, - _lib._sel_connectionWithRequest_delegate_1, - request?._id ?? ffi.nullptr, - delegate._id); - return NSURLConnection._(_ret, _lib, retain: true, release: true); + obj._lib._class_NSURLCredentialStorage1); } - NSURLRequest? get originalRequest { - final _ret = _lib._objc_msgSend_829(_id, _lib._sel_originalRequest1); + static NSURLCredentialStorage? getSharedCredentialStorage(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_908(_lib._class_NSURLCredentialStorage1, + _lib._sel_sharedCredentialStorage1); return _ret.address == 0 ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); } - NSURLRequest? get currentRequest { - final _ret = _lib._objc_msgSend_829(_id, _lib._sel_currentRequest1); + NSDictionary credentialsForProtectionSpace_(NSURLProtectionSpace? space) { + final _ret = _lib._objc_msgSend_909(_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 - : NSURLRequest._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - void start() { - _lib._objc_msgSend_1(_id, _lib._sel_start1); + void setCredential_forProtectionSpace_( + NSURLCredential? credential, NSURLProtectionSpace? space) { + return _lib._objc_msgSend_910( + _id, + _lib._sel_setCredential_forProtectionSpace_1, + credential?._id ?? ffi.nullptr, + space?._id ?? ffi.nullptr); } - void cancel() { - _lib._objc_msgSend_1(_id, _lib._sel_cancel1); + void removeCredential_forProtectionSpace_( + NSURLCredential? credential, NSURLProtectionSpace? space) { + return _lib._objc_msgSend_910( + _id, + _lib._sel_removeCredential_forProtectionSpace_1, + credential?._id ?? ffi.nullptr, + space?._id ?? ffi.nullptr); } - void scheduleInRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); + void removeCredential_forProtectionSpace_options_(NSURLCredential? credential, + NSURLProtectionSpace? space, NSDictionary? options) { + return _lib._objc_msgSend_911( + _id, + _lib._sel_removeCredential_forProtectionSpace_options_1, + credential?._id ?? ffi.nullptr, + space?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr); } - void unscheduleFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - _lib._objc_msgSend_533(_id, _lib._sel_unscheduleFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); + NSURLCredential defaultCredentialForProtectionSpace_( + NSURLProtectionSpace? space) { + final _ret = _lib._objc_msgSend_912( + _id, + _lib._sel_defaultCredentialForProtectionSpace_1, + space?._id ?? ffi.nullptr); + return NSURLCredential._(_ret, _lib, retain: true, release: true); } - void setDelegateQueue_(NSOperationQueue? queue) { - _lib._objc_msgSend_928( - _id, _lib._sel_setDelegateQueue_1, queue?._id ?? ffi.nullptr); + void setDefaultCredential_forProtectionSpace_( + NSURLCredential? credential, NSURLProtectionSpace? space) { + return _lib._objc_msgSend_910( + _id, + _lib._sel_setDefaultCredential_forProtectionSpace_1, + credential?._id ?? ffi.nullptr, + space?._id ?? ffi.nullptr); } - static bool canHandleRequest_(SentryCocoa _lib, NSURLRequest? request) { - return _lib._objc_msgSend_929(_lib._class_NSURLConnection1, - _lib._sel_canHandleRequest_1, request?._id ?? ffi.nullptr); + void getCredentialsForProtectionSpace_task_completionHandler_( + NSURLProtectionSpace? protectionSpace, + NSURLSessionTask? task, + ObjCBlock41 completionHandler) { + return _lib._objc_msgSend_913( + _id, + _lib._sel_getCredentialsForProtectionSpace_task_completionHandler_1, + protectionSpace?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr, + completionHandler._id); } - static NSData sendSynchronousRequest_returningResponse_error_( - SentryCocoa _lib, - NSURLRequest? request, - ffi.Pointer> response, - ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_930( - _lib._class_NSURLConnection1, - _lib._sel_sendSynchronousRequest_returningResponse_error_1, - request?._id ?? ffi.nullptr, - response, - error); - return NSData._(_ret, _lib, retain: true, release: true); + void setCredential_forProtectionSpace_task_(NSURLCredential? credential, + NSURLProtectionSpace? protectionSpace, NSURLSessionTask? task) { + return _lib._objc_msgSend_914( + _id, + _lib._sel_setCredential_forProtectionSpace_task_1, + credential?._id ?? ffi.nullptr, + protectionSpace?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr); } - static void sendAsynchronousRequest_queue_completionHandler_( - SentryCocoa _lib, - NSURLRequest? request, - NSOperationQueue? queue, - ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError handler) { - _lib._objc_msgSend_931( - _lib._class_NSURLConnection1, - _lib._sel_sendAsynchronousRequest_queue_completionHandler_1, - request?._id ?? ffi.nullptr, - queue?._id ?? ffi.nullptr, - handler._id); + void removeCredential_forProtectionSpace_options_task_( + NSURLCredential? credential, + NSURLProtectionSpace? protectionSpace, + NSDictionary? options, + NSURLSessionTask? task) { + return _lib._objc_msgSend_915( + _id, + _lib._sel_removeCredential_forProtectionSpace_options_task_1, + credential?._id ?? ffi.nullptr, + protectionSpace?._id ?? ffi.nullptr, + options?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr); } - @override - NSURLConnection init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLConnection._(_ret, _lib, retain: true, release: true); + void getDefaultCredentialForProtectionSpace_task_completionHandler_( + NSURLProtectionSpace? space, + NSURLSessionTask? task, + ObjCBlock42 completionHandler) { + return _lib._objc_msgSend_916( + _id, + _lib._sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1, + space?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr, + completionHandler._id); } - 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); + void setDefaultCredential_forProtectionSpace_task_( + NSURLCredential? credential, + NSURLProtectionSpace? protectionSpace, + NSURLSessionTask? task) { + return _lib._objc_msgSend_914( + _id, + _lib._sel_setDefaultCredential_forProtectionSpace_task_1, + credential?._id ?? ffi.nullptr, + protectionSpace?._id ?? ffi.nullptr, + task?._id ?? ffi.nullptr); } - static NSURLConnection 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); + 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 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 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_( @@ -64332,8 +61881,8 @@ class NSURLConnection extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLConnection1, + return _lib._objc_msgSend_14( + _lib._class_NSURLCredentialStorage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -64342,24 +61891,24 @@ class NSURLConnection extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLConnection1, + return _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_NSURLConnection1, + return _lib._objc_msgSend_12(_lib._class_NSURLCredentialStorage1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLConnection1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLCredentialStorage1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLConnection1, + _lib._class_NSURLCredentialStorage1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -64368,284 +61917,327 @@ class NSURLConnection extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLConnection1, + _lib._class_NSURLCredentialStorage1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSURLConnection1, + return _lib._objc_msgSend_82( + _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_NSURLConnection1, + 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_NSURLConnection1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLCredentialStorage1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); + } +} + +void _ObjCBlock41_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock41_closureRegistry = {}; +int _ObjCBlock41_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock41_registerClosure(Function fn) { + final id = ++_ObjCBlock41_closureRegistryIndex; + _ObjCBlock41_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock41_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock41_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer))(arg0); +} + +class ObjCBlock41 extends _ObjCBlockBase { + ObjCBlock41._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock41.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)>( + _ObjCBlock41_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock41.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)>( + _ObjCBlock41_closureTrampoline) + .cast(), + _ObjCBlock41_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_NSURLResponse_NSData_NSError_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Pointer arg1, - ffi.Pointer arg2) { +void _ObjCBlock42_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 _ObjCBlock42_closureRegistry = {}; +int _ObjCBlock42_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock42_registerClosure(Function fn) { + final id = ++_ObjCBlock42_closureRegistryIndex; + _ObjCBlock42_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 _ObjCBlock42_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock42_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 ObjCBlock42 extends _ObjCBlockBase { + ObjCBlock42._(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( + ObjCBlock42.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)>( + _ObjCBlock42_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) + ObjCBlock42.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)>( + _ObjCBlock42_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSURLResponse_NSData_NSError_registerClosure( - fn)), + _ObjCBlock42_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 NSURLProtocol extends NSObject { + NSURLProtocol._(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 [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 [NSURLCredential] that wraps the given raw object pointer. - static NSURLCredential 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 NSURLCredential._(other, lib, retain: retain, release: release); + return NSURLProtocol._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLCredential]. + /// 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_NSURLCredential1); - } - - int get persistence { - return _lib._objc_msgSend_932(_id, _lib._sel_persistence1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLProtocol1); } - NSURLCredential initWithUser_password_persistence_( - NSString? user, NSString? password, int persistence) { - final _ret = _lib._objc_msgSend_933( + NSURLProtocol initWithRequest_cachedResponse_client_(NSURLRequest? request, + NSCachedURLResponse? cachedResponse, NSObject? client) { + final _ret = _lib._objc_msgSend_917( _id, - _lib._sel_initWithUser_password_persistence_1, - user?._id ?? ffi.nullptr, - password?._id ?? ffi.nullptr, - persistence); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + _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 NSURLCredential credentialWithUser_password_persistence_( - SentryCocoa _lib, NSString? user, NSString? password, int persistence) { - final _ret = _lib._objc_msgSend_934( - _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); + 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); } - NSString? get user { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_user1); + NSURLRequest? get request { + final _ret = _lib._objc_msgSend_795(_id, _lib._sel_request1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSURLRequest._(_ret, _lib, retain: true, release: true); } - NSString? get password { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_password1); + NSCachedURLResponse? get cachedResponse { + final _ret = _lib._objc_msgSend_918(_id, _lib._sel_cachedResponse1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSCachedURLResponse._(_ret, _lib, retain: true, release: true); } - bool get hasPassword { - return _lib._objc_msgSend_12(_id, _lib._sel_hasPassword1); + static bool canInitWithRequest_(SentryCocoa _lib, NSURLRequest? request) { + return _lib._objc_msgSend_895(_lib._class_NSURLProtocol1, + _lib._sel_canInitWithRequest_1, request?._id ?? ffi.nullptr); } - NSURLCredential initWithIdentity_certificates_persistence_( - ffi.Pointer<__SecIdentity> identity, - NSArray? certArray, - int persistence) { - final _ret = _lib._objc_msgSend_935( - _id, - _lib._sel_initWithIdentity_certificates_persistence_1, - identity, - certArray?._id ?? ffi.nullptr, - persistence); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + static NSURLRequest canonicalRequestForRequest_( + SentryCocoa _lib, NSURLRequest? request) { + final _ret = _lib._objc_msgSend_919(_lib._class_NSURLProtocol1, + _lib._sel_canonicalRequestForRequest_1, request?._id ?? ffi.nullptr); + return NSURLRequest._(_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_936( - _lib._class_NSURLCredential1, - _lib._sel_credentialWithIdentity_certificates_persistence_1, - identity, - certArray?._id ?? ffi.nullptr, - persistence); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + static bool requestIsCacheEquivalent_toRequest_( + SentryCocoa _lib, NSURLRequest? a, NSURLRequest? b) { + return _lib._objc_msgSend_920( + _lib._class_NSURLProtocol1, + _lib._sel_requestIsCacheEquivalent_toRequest_1, + a?._id ?? ffi.nullptr, + b?._id ?? ffi.nullptr); } - ffi.Pointer<__SecIdentity> get identity { - return _lib._objc_msgSend_937(_id, _lib._sel_identity1); + void startLoading() { + return _lib._objc_msgSend_1(_id, _lib._sel_startLoading1); } - 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); + void stopLoading() { + return _lib._objc_msgSend_1(_id, _lib._sel_stopLoading1); } - NSURLCredential initWithTrust_(ffi.Pointer<__SecTrust> trust) { - final _ret = _lib._objc_msgSend_938(_id, _lib._sel_initWithTrust_1, trust); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + static NSObject propertyForKey_inRequest_( + SentryCocoa _lib, NSString? key, NSURLRequest? request) { + final _ret = _lib._objc_msgSend_921( + _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 NSURLCredential credentialForTrust_( - SentryCocoa _lib, ffi.Pointer<__SecTrust> trust) { - final _ret = _lib._objc_msgSend_939( - _lib._class_NSURLCredential1, _lib._sel_credentialForTrust_1, trust); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + static void setProperty_forKey_inRequest_(SentryCocoa _lib, NSObject value, + NSString? key, NSMutableURLRequest? request) { + return _lib._objc_msgSend_927( + _lib._class_NSURLProtocol1, + _lib._sel_setProperty_forKey_inRequest_1, + value._id, + key?._id ?? ffi.nullptr, + request?._id ?? ffi.nullptr); } - @override - NSURLCredential init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + static void removePropertyForKey_inRequest_( + SentryCocoa _lib, NSString? key, NSMutableURLRequest? request) { + return _lib._objc_msgSend_928( + _lib._class_NSURLProtocol1, + _lib._sel_removePropertyForKey_inRequest_1, + key?._id ?? ffi.nullptr, + request?._id ?? ffi.nullptr); } - 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); + static bool registerClass_(SentryCocoa _lib, NSObject protocolClass) { + return _lib._objc_msgSend_0(_lib._class_NSURLProtocol1, + _lib._sel_registerClass_1, protocolClass._id); } - 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); + static void unregisterClass_(SentryCocoa _lib, NSObject protocolClass) { + return _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, + _lib._sel_unregisterClass_1, protocolClass._id); } - static NSURLCredential alloc(SentryCocoa _lib) { + static bool canInitWithTask_(SentryCocoa _lib, NSURLSessionTask? task) { + return _lib._objc_msgSend_929(_lib._class_NSURLProtocol1, + _lib._sel_canInitWithTask_1, task?._id ?? ffi.nullptr); + } + + NSURLProtocol initWithTask_cachedResponse_client_(NSURLSessionTask? task, + NSCachedURLResponse? cachedResponse, NSObject? client) { + final _ret = _lib._objc_msgSend_930( + _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); + } + + NSURLSessionTask? get task { + final _ret = _lib._objc_msgSend_931(_id, _lib._sel_task1); + return _ret.address == 0 + ? null + : NSURLSessionTask._(_ret, _lib, retain: true, release: true); + } + + static NSURLProtocol new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLCredential1, _lib._sel_alloc1); - return NSURLCredential._(_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 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 void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -64653,8 +62245,8 @@ class NSURLCredential extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLCredential1, + return _lib._objc_msgSend_14( + _lib._class_NSURLProtocol1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -64663,24 +62255,24 @@ class NSURLCredential extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLCredential1, + return _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_NSURLCredential1, - _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_NSURLCredential1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLProtocol1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLCredential1, + _lib._class_NSURLProtocol1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -64689,183 +62281,278 @@ class NSURLCredential extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLCredential1, + _lib._class_NSURLProtocol1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSURLCredential1, + return _lib._objc_msgSend_82( + _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_NSURLCredential1, - _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_NSURLCredential1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLProtocol1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSURLCredentialPersistence { - static const int NSURLCredentialPersistenceNone = 0; - static const int NSURLCredentialPersistenceForSession = 1; - static const int NSURLCredentialPersistencePermanent = 2; - static const int NSURLCredentialPersistenceSynchronizable = 3; -} - -class __SecIdentity extends ffi.Opaque {} - -class __SecTrust extends ffi.Opaque {} - -class NSURLProtectionSpace extends NSObject { - NSURLProtectionSpace._(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 [NSURLProtectionSpace] that points to the same underlying object as [other]. - static NSURLProtectionSpace castFrom(T other) { - return NSURLProtectionSpace._(other._id, other._lib, + /// 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 [NSURLProtectionSpace] that wraps the given raw object pointer. - static NSURLProtectionSpace 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 NSURLProtectionSpace._(other, lib, retain: retain, release: release); + return NSMutableURLRequest._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLProtectionSpace]. + /// 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_NSURLProtectionSpace1); + obj._lib._class_NSMutableURLRequest1); } - NSURLProtectionSpace initWithHost_port_protocol_realm_authenticationMethod_( - NSString? host, - int port, - NSString? protocol, - NSString? realm, - NSString? authenticationMethod) { - final _ret = _lib._objc_msgSend_940( - _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); + @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); } - NSURLProtectionSpace initWithProxyHost_port_type_realm_authenticationMethod_( - NSString? host, - int port, - NSString? type, - NSString? realm, - NSString? authenticationMethod) { - final _ret = _lib._objc_msgSend_940( - _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); + set URL(NSURL? value) { + _lib._objc_msgSend_621(_id, _lib._sel_setURL_1, value?._id ?? ffi.nullptr); } - 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); + @override + int get cachePolicy { + return _lib._objc_msgSend_782(_id, _lib._sel_cachePolicy1); } - bool get receivesCredentialSecurely { - return _lib._objc_msgSend_12(_id, _lib._sel_receivesCredentialSecurely1); + set cachePolicy(int value) { + _lib._objc_msgSend_922(_id, _lib._sel_setCachePolicy_1, value); } - bool get isProxy { - return _lib._objc_msgSend_12(_id, _lib._sel_isProxy1); + @override + double get timeoutInterval { + return _lib._objc_msgSend_155(_id, _lib._sel_timeoutInterval1); } - NSString? get host { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_host1); + set timeoutInterval(double value) { + _lib._objc_msgSend_506(_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 - : NSString._(_ret, _lib, retain: true, release: true); + : NSURL._(_ret, _lib, retain: true, release: true); } - int get port { - return _lib._objc_msgSend_78(_id, _lib._sel_port1); + set mainDocumentURL(NSURL? value) { + _lib._objc_msgSend_621( + _id, _lib._sel_setMainDocumentURL_1, value?._id ?? ffi.nullptr); } - NSString? get proxyType { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_proxyType1); + @override + int get networkServiceType { + return _lib._objc_msgSend_783(_id, _lib._sel_networkServiceType1); + } + + set networkServiceType(int value) { + _lib._objc_msgSend_923(_id, _lib._sel_setNetworkServiceType_1, value); + } + + @override + bool get allowsCellularAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); + } + + set allowsCellularAccess(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setAllowsCellularAccess_1, value); + } + + @override + bool get allowsExpensiveNetworkAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); + } + + set allowsExpensiveNetworkAccess(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); + } + + @override + bool get allowsConstrainedNetworkAccess { + return _lib._objc_msgSend_12( + _id, _lib._sel_allowsConstrainedNetworkAccess1); + } + + set allowsConstrainedNetworkAccess(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); + } + + @override + bool get assumesHTTP3Capable { + return _lib._objc_msgSend_12(_id, _lib._sel_assumesHTTP3Capable1); + } + + set assumesHTTP3Capable(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setAssumesHTTP3Capable_1, value); + } + + @override + int get attribution { + return _lib._objc_msgSend_784(_id, _lib._sel_attribution1); + } + + set attribution(int value) { + _lib._objc_msgSend_924(_id, _lib._sel_setAttribution_1, value); + } + + @override + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); + } + + set requiresDNSSECValidation(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setRequiresDNSSECValidation_1, value); + } + + @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); } - NSString? get protocol { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_protocol1); + set HTTPMethod(NSString? value) { + _lib._objc_msgSend_509( + _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 - : NSString._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSString? get authenticationMethod { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_authenticationMethod1); + set allHTTPHeaderFields(NSDictionary? value) { + _lib._objc_msgSend_171( + _id, _lib._sel_setAllHTTPHeaderFields_1, value?._id ?? ffi.nullptr); + } + + void setValue_forHTTPHeaderField_(NSString? value, NSString? field) { + return _lib._objc_msgSend_515(_id, _lib._sel_setValue_forHTTPHeaderField_1, + value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); + } + + void addValue_forHTTPHeaderField_(NSString? value, NSString? field) { + return _lib._objc_msgSend_515(_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); } - NSArray? get distinguishedNames { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_distinguishedNames1); + set HTTPBody(NSData? value) { + _lib._objc_msgSend_925( + _id, _lib._sel_setHTTPBody_1, value?._id ?? ffi.nullptr); + } + + @override + NSInputStream? get HTTPBodyStream { + final _ret = _lib._objc_msgSend_794(_id, _lib._sel_HTTPBodyStream1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); + : NSInputStream._(_ret, _lib, retain: true, release: true); + } + + set HTTPBodyStream(NSInputStream? value) { + _lib._objc_msgSend_926( + _id, _lib._sel_setHTTPBodyStream_1, value?._id ?? ffi.nullptr); + } + + @override + bool get HTTPShouldHandleCookies { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldHandleCookies1); + } + + set HTTPShouldHandleCookies(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setHTTPShouldHandleCookies_1, value); + } + + @override + bool get HTTPShouldUsePipelining { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); } - ffi.Pointer<__SecTrust> get serverTrust { - return _lib._objc_msgSend_941(_id, _lib._sel_serverTrust1); + set HTTPShouldUsePipelining(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setHTTPShouldUsePipelining_1, value); } - @override - NSURLProtectionSpace init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLProtectionSpace._(_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); } - 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 bool getSupportsSecureCoding(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSMutableURLRequest1, _lib._sel_supportsSecureCoding1); } - static NSURLProtectionSpace 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); + static NSMutableURLRequest requestWithURL_cachePolicy_timeoutInterval_( + SentryCocoa _lib, NSURL? URL, int cachePolicy, double timeoutInterval) { + final _ret = _lib._objc_msgSend_781( + _lib._class_NSMutableURLRequest1, + _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, + URL?._id ?? ffi.nullptr, + cachePolicy, + timeoutInterval); + return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); } - static NSURLProtectionSpace alloc(SentryCocoa _lib) { + 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 NSMutableURLRequest alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLProtectionSpace1, _lib._sel_alloc1); - return NSURLProtectionSpace._(_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_( @@ -64873,8 +62560,8 @@ class NSURLProtectionSpace extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLProtectionSpace1, + return _lib._objc_msgSend_14( + _lib._class_NSMutableURLRequest1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -64883,24 +62570,24 @@ class NSURLProtectionSpace extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLProtectionSpace1, + return _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_NSURLProtectionSpace1, + return _lib._objc_msgSend_12(_lib._class_NSMutableURLRequest1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLProtectionSpace1, _lib._sel_useStoredAccessor1); + _lib._class_NSMutableURLRequest1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLProtectionSpace1, + _lib._class_NSMutableURLRequest1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -64909,202 +62596,181 @@ class NSURLProtectionSpace extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLProtectionSpace1, + _lib._class_NSMutableURLRequest1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSURLProtectionSpace1, + return _lib._objc_msgSend_82( + _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_NSURLProtectionSpace1, + 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_NSURLProtectionSpace1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSMutableURLRequest1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSURLCredentialStorage extends NSObject { - NSURLCredentialStorage._(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 [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 [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 [NSURLCredentialStorage] that wraps the given raw object pointer. - static NSURLCredentialStorage 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 NSURLCredentialStorage._(other, lib, - retain: retain, release: release); + return NSXMLParser._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLCredentialStorage]. + /// 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_NSURLCredentialStorage1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLParser1); } - static NSURLCredentialStorage? getSharedCredentialStorage(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_942(_lib._class_NSURLCredentialStorage1, - _lib._sel_sharedCredentialStorage1); - return _ret.address == 0 - ? null - : NSURLCredentialStorage._(_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); } - NSDictionary credentialsForProtectionSpace_(NSURLProtectionSpace? space) { - final _ret = _lib._objc_msgSend_943(_id, - _lib._sel_credentialsForProtectionSpace_1, space?._id ?? ffi.nullptr); - return NSDictionary._(_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); } - NSDictionary? get allCredentials { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_allCredentials1); + NSXMLParser initWithStream_(NSInputStream? stream) { + final _ret = _lib._objc_msgSend_932( + _id, _lib._sel_initWithStream_1, stream?._id ?? ffi.nullptr); + return NSXMLParser._(_ret, _lib, retain: true, release: true); + } + + NSObject? get delegate { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - void setCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - _lib._objc_msgSend_944(_id, _lib._sel_setCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, space?._id ?? ffi.nullptr); + set delegate(NSObject? value) { + _lib._objc_msgSend_387( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); } - void removeCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - _lib._objc_msgSend_944(_id, _lib._sel_removeCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, space?._id ?? ffi.nullptr); + bool get shouldProcessNamespaces { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldProcessNamespaces1); } - void removeCredential_forProtectionSpace_options_(NSURLCredential? credential, - NSURLProtectionSpace? space, NSDictionary? options) { - _lib._objc_msgSend_945( - _id, - _lib._sel_removeCredential_forProtectionSpace_options_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr); + set shouldProcessNamespaces(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setShouldProcessNamespaces_1, value); } - NSURLCredential defaultCredentialForProtectionSpace_( - NSURLProtectionSpace? space) { - final _ret = _lib._objc_msgSend_946( - _id, - _lib._sel_defaultCredentialForProtectionSpace_1, - space?._id ?? ffi.nullptr); - return NSURLCredential._(_ret, _lib, retain: true, release: true); + bool get shouldReportNamespacePrefixes { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldReportNamespacePrefixes1); } - void setDefaultCredential_forProtectionSpace_( - NSURLCredential? credential, NSURLProtectionSpace? space) { - _lib._objc_msgSend_944( - _id, - _lib._sel_setDefaultCredential_forProtectionSpace_1, - credential?._id ?? ffi.nullptr, - space?._id ?? ffi.nullptr); + set shouldReportNamespacePrefixes(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setShouldReportNamespacePrefixes_1, value); } - void getCredentialsForProtectionSpace_task_completionHandler_( - NSURLProtectionSpace? protectionSpace, - NSURLSessionTask? task, - ObjCBlock_ffiVoid_NSDictionary completionHandler) { - _lib._objc_msgSend_947( - _id, - _lib._sel_getCredentialsForProtectionSpace_task_completionHandler_1, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, - completionHandler._id); + int get externalEntityResolvingPolicy { + return _lib._objc_msgSend_933( + _id, _lib._sel_externalEntityResolvingPolicy1); } - void setCredential_forProtectionSpace_task_(NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, NSURLSessionTask? task) { - _lib._objc_msgSend_948( - _id, - _lib._sel_setCredential_forProtectionSpace_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); + set externalEntityResolvingPolicy(int value) { + _lib._objc_msgSend_934( + _id, _lib._sel_setExternalEntityResolvingPolicy_1, value); } - void removeCredential_forProtectionSpace_options_task_( - NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, - NSDictionary? options, - NSURLSessionTask? task) { - _lib._objc_msgSend_949( - _id, - _lib._sel_removeCredential_forProtectionSpace_options_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - options?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); + NSSet? get allowedExternalEntityURLs { + final _ret = + _lib._objc_msgSend_295(_id, _lib._sel_allowedExternalEntityURLs1); + return _ret.address == 0 + ? null + : NSSet._(_ret, _lib, retain: true, release: true); } - void getDefaultCredentialForProtectionSpace_task_completionHandler_( - NSURLProtectionSpace? space, - NSURLSessionTask? task, - ObjCBlock_ffiVoid_NSURLCredential completionHandler) { - _lib._objc_msgSend_950( - _id, - _lib._sel_getDefaultCredentialForProtectionSpace_task_completionHandler_1, - space?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr, - completionHandler._id); + set allowedExternalEntityURLs(NSSet? value) { + _lib._objc_msgSend_935(_id, _lib._sel_setAllowedExternalEntityURLs_1, + value?._id ?? ffi.nullptr); } - void setDefaultCredential_forProtectionSpace_task_( - NSURLCredential? credential, - NSURLProtectionSpace? protectionSpace, - NSURLSessionTask? task) { - _lib._objc_msgSend_948( - _id, - _lib._sel_setDefaultCredential_forProtectionSpace_task_1, - credential?._id ?? ffi.nullptr, - protectionSpace?._id ?? ffi.nullptr, - task?._id ?? ffi.nullptr); + bool parse() { + return _lib._objc_msgSend_12(_id, _lib._sel_parse1); } - @override - NSURLCredentialStorage init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); + void abortParsing() { + return _lib._objc_msgSend_1(_id, _lib._sel_abortParsing1); } - 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); + NSError? get parserError { + final _ret = _lib._objc_msgSend_298(_id, _lib._sel_parserError1); + return _ret.address == 0 + ? null + : NSError._(_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); + bool get shouldResolveExternalEntities { + return _lib._objc_msgSend_12(_id, _lib._sel_shouldResolveExternalEntities1); } - 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); + set shouldResolveExternalEntities(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setShouldResolveExternalEntities_1, value); + } + + 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); + } + + 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); + } + + int get lineNumber { + return _lib._objc_msgSend_78(_id, _lib._sel_lineNumber1); + } + + int get columnNumber { + return _lib._objc_msgSend_78(_id, _lib._sel_columnNumber1); + } + + 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 NSXMLParser alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_alloc1); + return NSXMLParser._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -65112,8 +62778,8 @@ class NSURLCredentialStorage extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLCredentialStorage1, + return _lib._objc_msgSend_14( + _lib._class_NSXMLParser1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -65122,24 +62788,24 @@ class NSURLCredentialStorage extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLCredentialStorage1, + return _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_NSURLCredentialStorage1, - _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_NSURLCredentialStorage1, _lib._sel_useStoredAccessor1); + _lib._class_NSXMLParser1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLCredentialStorage1, + _lib._class_NSXMLParser1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -65148,343 +62814,305 @@ class NSURLCredentialStorage extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLCredentialStorage1, + _lib._class_NSXMLParser1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSURLCredentialStorage1, + return _lib._objc_msgSend_82( + _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_NSURLCredentialStorage1, - _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_NSURLCredentialStorage1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSXMLParser1, _lib._sel_classForKeyedUnarchiver1); 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); +abstract class NSXMLParserExternalEntityResolvingPolicy { + static const int NSXMLParserResolveExternalEntitiesNever = 0; + static const int NSXMLParserResolveExternalEntitiesNoNetwork = 1; + static const int NSXMLParserResolveExternalEntitiesSameOriginOnly = 2; + static const int NSXMLParserResolveExternalEntitiesAlways = 3; } -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); -} +class NSFileWrapper extends NSObject { + NSFileWrapper._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); -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); -} + /// 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); + } -class ObjCBlock_ffiVoid_NSDictionary extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSDictionary._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, release: true); + /// 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 NSFileWrapper._(other, lib, retain: retain, release: release); + } - /// 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; + /// 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_NSFileWrapper1); + } - /// 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); + NSFileWrapper initWithURL_options_error_( + NSURL? url, int options, ffi.Pointer> outError) { + final _ret = _lib._objc_msgSend_936( + _id, + _lib._sel_initWithURL_options_error_1, + url?._id ?? ffi.nullptr, + options, + outError); + return NSFileWrapper._(_ret, _lib, retain: true, release: true); } -} -void _ObjCBlock_ffiVoid_NSURLCredential_fnPtrTrampoline( - ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} + 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); + } -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); -} + 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 _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); -} + 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); + } -class ObjCBlock_ffiVoid_NSURLCredential extends _ObjCBlockBase { - ObjCBlock_ffiVoid_NSURLCredential._( - ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) - : super._(id, lib, retain: false, 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); + } - /// 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; + 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); + } - /// 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); + bool get directory { + return _lib._objc_msgSend_12(_id, _lib._sel_isDirectory1); } -} -class NSURLProtocol extends NSObject { - NSURLProtocol._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + bool get regularFile { + return _lib._objc_msgSend_12(_id, _lib._sel_isRegularFile1); + } - /// 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); + bool get symbolicLink { + return _lib._objc_msgSend_12(_id, _lib._sel_isSymbolicLink1); } - /// 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); + 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); } - /// 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); + set preferredFilename(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setPreferredFilename_1, value?._id ?? ffi.nullptr); } - NSURLProtocol initWithRequest_cachedResponse_client_(NSURLRequest? request, - NSCachedURLResponse? cachedResponse, NSObject? client) { - final _ret = _lib._objc_msgSend_951( + NSString? get filename { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_filename1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + set filename(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setFilename_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); + } + + set fileAttributes(NSDictionary? value) { + _lib._objc_msgSend_171( + _id, _lib._sel_setFileAttributes_1, value?._id ?? ffi.nullptr); + } + + bool matchesContentsOfURL_(NSURL? url) { + return _lib._objc_msgSend_244( + _id, _lib._sel_matchesContentsOfURL_1, url?._id ?? ffi.nullptr); + } + + bool readFromURL_options_error_( + NSURL? url, int options, ffi.Pointer> outError) { + return _lib._objc_msgSend_937(_id, _lib._sel_readFromURL_options_error_1, + url?._id ?? ffi.nullptr, options, outError); + } + + bool writeToURL_options_originalContentsURL_error_( + NSURL? url, + int options, + NSURL? originalContentsURL, + ffi.Pointer> outError) { + return _lib._objc_msgSend_938( _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); + _lib._sel_writeToURL_options_originalContentsURL_error_1, + url?._id ?? ffi.nullptr, + options, + originalContentsURL?._id ?? ffi.nullptr, + outError); } - NSObject? get client { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_client1); + NSData? get serializedRepresentation { + final _ret = + _lib._objc_msgSend_39(_id, _lib._sel_serializedRepresentation1); return _ret.address == 0 ? null - : NSObject._(_ret, _lib, retain: true, release: true); + : NSData._(_ret, _lib, retain: true, release: true); } - NSURLRequest? get request { - final _ret = _lib._objc_msgSend_829(_id, _lib._sel_request1); - return _ret.address == 0 - ? null - : NSURLRequest._(_ret, _lib, retain: true, release: true); + NSString addFileWrapper_(NSFileWrapper? child) { + final _ret = _lib._objc_msgSend_939( + _id, _lib._sel_addFileWrapper_1, child?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - NSCachedURLResponse? get cachedResponse { - final _ret = _lib._objc_msgSend_952(_id, _lib._sel_cachedResponse1); - return _ret.address == 0 - ? null - : NSCachedURLResponse._(_ret, _lib, retain: true, release: true); + NSString addRegularFileWithContents_preferredFilename_( + NSData? data, NSString? fileName) { + final _ret = _lib._objc_msgSend_940( + _id, + _lib._sel_addRegularFileWithContents_preferredFilename_1, + data?._id ?? ffi.nullptr, + fileName?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - static bool canInitWithRequest_(SentryCocoa _lib, NSURLRequest? request) { - return _lib._objc_msgSend_929(_lib._class_NSURLProtocol1, - _lib._sel_canInitWithRequest_1, request?._id ?? ffi.nullptr); + void removeFileWrapper_(NSFileWrapper? child) { + return _lib._objc_msgSend_941( + _id, _lib._sel_removeFileWrapper_1, child?._id ?? ffi.nullptr); } - static NSURLRequest canonicalRequestForRequest_( - SentryCocoa _lib, NSURLRequest? request) { - final _ret = _lib._objc_msgSend_953(_lib._class_NSURLProtocol1, - _lib._sel_canonicalRequestForRequest_1, request?._id ?? ffi.nullptr); - return NSURLRequest._(_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); } - static bool requestIsCacheEquivalent_toRequest_( - SentryCocoa _lib, NSURLRequest? a, NSURLRequest? b) { - return _lib._objc_msgSend_954( - _lib._class_NSURLProtocol1, - _lib._sel_requestIsCacheEquivalent_toRequest_1, - a?._id ?? ffi.nullptr, - b?._id ?? ffi.nullptr); + NSString keyForFileWrapper_(NSFileWrapper? child) { + final _ret = _lib._objc_msgSend_939( + _id, _lib._sel_keyForFileWrapper_1, child?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - void startLoading() { - _lib._objc_msgSend_1(_id, _lib._sel_startLoading1); + 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); } - void stopLoading() { - _lib._objc_msgSend_1(_id, _lib._sel_stopLoading1); + 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); } - static NSObject propertyForKey_inRequest_( - SentryCocoa _lib, NSString? key, NSURLRequest? request) { - final _ret = _lib._objc_msgSend_955( - _lib._class_NSURLProtocol1, - _lib._sel_propertyForKey_inRequest_1, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + 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); } - static void setProperty_forKey_inRequest_(SentryCocoa _lib, NSObject value, - NSString? key, NSMutableURLRequest? request) { - _lib._objc_msgSend_961( - _lib._class_NSURLProtocol1, - _lib._sel_setProperty_forKey_inRequest_1, - value._id, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + 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); } - static void removePropertyForKey_inRequest_( - SentryCocoa _lib, NSString? key, NSMutableURLRequest? request) { - _lib._objc_msgSend_962( - _lib._class_NSURLProtocol1, - _lib._sel_removePropertyForKey_inRequest_1, - key?._id ?? ffi.nullptr, - request?._id ?? ffi.nullptr); + bool needsToBeUpdatedFromPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_needsToBeUpdatedFromPath_1, path?._id ?? ffi.nullptr); } - static bool registerClass_(SentryCocoa _lib, NSObject protocolClass) { - return _lib._objc_msgSend_0(_lib._class_NSURLProtocol1, - _lib._sel_registerClass_1, protocolClass._id); + bool updateFromPath_(NSString? path) { + return _lib._objc_msgSend_59( + _id, _lib._sel_updateFromPath_1, path?._id ?? ffi.nullptr); } - static void unregisterClass_(SentryCocoa _lib, NSObject protocolClass) { - _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, - _lib._sel_unregisterClass_1, protocolClass._id); + bool writeToFile_atomically_updateFilenames_( + NSString? path, bool atomicFlag, bool updateFilenamesFlag) { + return _lib._objc_msgSend_942( + _id, + _lib._sel_writeToFile_atomically_updateFilenames_1, + path?._id ?? ffi.nullptr, + atomicFlag, + updateFilenamesFlag); } - static bool canInitWithTask_(SentryCocoa _lib, NSURLSessionTask? task) { - return _lib._objc_msgSend_963(_lib._class_NSURLProtocol1, - _lib._sel_canInitWithTask_1, task?._id ?? ffi.nullptr); + 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); } - NSURLProtocol initWithTask_cachedResponse_client_(NSURLSessionTask? task, - NSCachedURLResponse? cachedResponse, NSObject? client) { - final _ret = _lib._objc_msgSend_964( + NSString addSymbolicLinkWithDestination_preferredFilename_( + NSString? path, NSString? filename) { + final _ret = _lib._objc_msgSend_339( _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); - } - - NSURLSessionTask? get task { - final _ret = _lib._objc_msgSend_965(_id, _lib._sel_task1); - return _ret.address == 0 - ? null - : NSURLSessionTask._(_ret, _lib, retain: true, release: true); + _lib._sel_addSymbolicLinkWithDestination_preferredFilename_1, + path?._id ?? ffi.nullptr, + filename?._id ?? ffi.nullptr); + return 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 symbolicLinkDestination() { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_symbolicLinkDestination1); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSURLProtocol new1(SentryCocoa _lib) { + static NSFileWrapper new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_new1); - return NSURLProtocol._(_ret, _lib, retain: false, release: true); - } - - static NSURLProtocol 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._objc_msgSend_2(_lib._class_NSFileWrapper1, _lib._sel_new1); + return NSFileWrapper._(_ret, _lib, retain: false, release: true); } - static NSURLProtocol alloc(SentryCocoa _lib) { + static NSFileWrapper alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLProtocol1, _lib._sel_alloc1); - return NSURLProtocol._(_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_( @@ -65492,8 +63120,8 @@ class NSURLProtocol extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLProtocol1, + return _lib._objc_msgSend_14( + _lib._class_NSFileWrapper1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -65502,24 +63130,24 @@ class NSURLProtocol extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLProtocol1, + return _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_NSURLProtocol1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSFileWrapper1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLProtocol1, _lib._sel_useStoredAccessor1); + _lib._class_NSFileWrapper1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLProtocol1, + _lib._class_NSFileWrapper1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -65528,15 +63156,15 @@ class NSURLProtocol extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLProtocol1, + _lib._class_NSFileWrapper1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSURLProtocol1, + return _lib._objc_msgSend_82( + _lib._class_NSFileWrapper1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -65544,301 +63172,324 @@ class NSURLProtocol extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLProtocol1, _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_NSURLProtocol1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSFileWrapper1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSMutableURLRequest extends NSURLRequest { - NSMutableURLRequest._(ffi.Pointer id, SentryCocoa lib, +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, {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 [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 [NSMutableURLRequest] that wraps the given raw object pointer. - static NSMutableURLRequest 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 NSMutableURLRequest._(other, lib, retain: retain, release: release); + return NSURLSession._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSMutableURLRequest]. + /// 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_NSMutableURLRequest1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSURLSession1); } - @override - NSURL? get URL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_URL1); + static NSURLSession? getSharedSession(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_943( + _lib._class_NSURLSession1, _lib._sel_sharedSession1); return _ret.address == 0 ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - set URL(NSURL? value) { - return _lib._objc_msgSend_655( - _id, _lib._sel_setURL_1, value?._id ?? ffi.nullptr); - } - - @override - int get cachePolicy { - return _lib._objc_msgSend_816(_id, _lib._sel_cachePolicy1); - } - - set cachePolicy(int value) { - return _lib._objc_msgSend_956(_id, _lib._sel_setCachePolicy_1, value); + : NSURLSession._(_ret, _lib, retain: true, release: true); } - @override - double get timeoutInterval { - return _lib._objc_msgSend_155(_id, _lib._sel_timeoutInterval1); + static NSURLSession sessionWithConfiguration_( + SentryCocoa _lib, NSURLSessionConfiguration? configuration) { + final _ret = _lib._objc_msgSend_954( + _lib._class_NSURLSession1, + _lib._sel_sessionWithConfiguration_1, + configuration?._id ?? ffi.nullptr); + return NSURLSession._(_ret, _lib, retain: true, release: true); } - set timeoutInterval(double value) { - return _lib._objc_msgSend_506(_id, _lib._sel_setTimeoutInterval_1, value); + static NSURLSession sessionWithConfiguration_delegate_delegateQueue_( + SentryCocoa _lib, + NSURLSessionConfiguration? configuration, + NSObject? delegate, + NSOperationQueue? queue) { + final _ret = _lib._objc_msgSend_955( + _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 - NSURL? get mainDocumentURL { - final _ret = _lib._objc_msgSend_40(_id, _lib._sel_mainDocumentURL1); + NSOperationQueue? get delegateQueue { + final _ret = _lib._objc_msgSend_824(_id, _lib._sel_delegateQueue1); return _ret.address == 0 ? null - : NSURL._(_ret, _lib, retain: true, release: true); - } - - set mainDocumentURL(NSURL? value) { - return _lib._objc_msgSend_655( - _id, _lib._sel_setMainDocumentURL_1, value?._id ?? ffi.nullptr); - } - - @override - int get networkServiceType { - return _lib._objc_msgSend_817(_id, _lib._sel_networkServiceType1); + : NSOperationQueue._(_ret, _lib, retain: true, release: true); } - set networkServiceType(int value) { - return _lib._objc_msgSend_957( - _id, _lib._sel_setNetworkServiceType_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); } - @override - bool get allowsCellularAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); + NSURLSessionConfiguration? get configuration { + final _ret = _lib._objc_msgSend_944(_id, _lib._sel_configuration1); + return _ret.address == 0 + ? null + : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - set allowsCellularAccess(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAllowsCellularAccess_1, value); + 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); } - @override - bool get allowsExpensiveNetworkAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); + set sessionDescription(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setSessionDescription_1, value?._id ?? ffi.nullptr); } - set allowsExpensiveNetworkAccess(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); + void finishTasksAndInvalidate() { + return _lib._objc_msgSend_1(_id, _lib._sel_finishTasksAndInvalidate1); } - @override - bool get allowsConstrainedNetworkAccess { - return _lib._objc_msgSend_12( - _id, _lib._sel_allowsConstrainedNetworkAccess1); + void invalidateAndCancel() { + return _lib._objc_msgSend_1(_id, _lib._sel_invalidateAndCancel1); } - set allowsConstrainedNetworkAccess(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); + void resetWithCompletionHandler_(ObjCBlock21 completionHandler) { + return _lib._objc_msgSend_497( + _id, _lib._sel_resetWithCompletionHandler_1, completionHandler._id); } - @override - bool get assumesHTTP3Capable { - return _lib._objc_msgSend_12(_id, _lib._sel_assumesHTTP3Capable1); + void flushWithCompletionHandler_(ObjCBlock21 completionHandler) { + return _lib._objc_msgSend_497( + _id, _lib._sel_flushWithCompletionHandler_1, completionHandler._id); } - set assumesHTTP3Capable(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAssumesHTTP3Capable_1, value); + void getTasksWithCompletionHandler_(ObjCBlock43 completionHandler) { + return _lib._objc_msgSend_956( + _id, _lib._sel_getTasksWithCompletionHandler_1, completionHandler._id); } - @override - int get attribution { - return _lib._objc_msgSend_818(_id, _lib._sel_attribution1); + void getAllTasksWithCompletionHandler_(ObjCBlock36 completionHandler) { + return _lib._objc_msgSend_957(_id, + _lib._sel_getAllTasksWithCompletionHandler_1, completionHandler._id); } - set attribution(int value) { - return _lib._objc_msgSend_958(_id, _lib._sel_setAttribution_1, value); + NSURLSessionDataTask dataTaskWithRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_958( + _id, _lib._sel_dataTaskWithRequest_1, request?._id ?? ffi.nullptr); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - @override - bool get requiresDNSSECValidation { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); + NSURLSessionDataTask dataTaskWithURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_959( + _id, _lib._sel_dataTaskWithURL_1, url?._id ?? ffi.nullptr); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - set requiresDNSSECValidation(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setRequiresDNSSECValidation_1, value); + NSURLSessionUploadTask uploadTaskWithRequest_fromFile_( + NSURLRequest? request, NSURL? fileURL) { + final _ret = _lib._objc_msgSend_960( + _id, + _lib._sel_uploadTaskWithRequest_fromFile_1, + request?._id ?? ffi.nullptr, + fileURL?._id ?? ffi.nullptr); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - @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); + NSURLSessionUploadTask uploadTaskWithRequest_fromData_( + NSURLRequest? request, NSData? bodyData) { + final _ret = _lib._objc_msgSend_961( + _id, + _lib._sel_uploadTaskWithRequest_fromData_1, + request?._id ?? ffi.nullptr, + bodyData?._id ?? ffi.nullptr); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - set HTTPMethod(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setHTTPMethod_1, value?._id ?? ffi.nullptr); + NSURLSessionUploadTask uploadTaskWithStreamedRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_962(_id, + _lib._sel_uploadTaskWithStreamedRequest_1, request?._id ?? ffi.nullptr); + return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); } - @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); + NSURLSessionDownloadTask downloadTaskWithRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_964( + _id, _lib._sel_downloadTaskWithRequest_1, request?._id ?? ffi.nullptr); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - set allHTTPHeaderFields(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setAllHTTPHeaderFields_1, value?._id ?? ffi.nullptr); + NSURLSessionDownloadTask downloadTaskWithURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_965( + _id, _lib._sel_downloadTaskWithURL_1, url?._id ?? ffi.nullptr); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - void setValue_forHTTPHeaderField_(NSString? value, NSString? field) { - _lib._objc_msgSend_515(_id, _lib._sel_setValue_forHTTPHeaderField_1, - value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); + NSURLSessionDownloadTask downloadTaskWithResumeData_(NSData? resumeData) { + final _ret = _lib._objc_msgSend_966(_id, + _lib._sel_downloadTaskWithResumeData_1, resumeData?._id ?? ffi.nullptr); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - void addValue_forHTTPHeaderField_(NSString? value, NSString? field) { - _lib._objc_msgSend_515(_id, _lib._sel_addValue_forHTTPHeaderField_1, - value?._id ?? ffi.nullptr, field?._id ?? ffi.nullptr); + NSURLSessionStreamTask streamTaskWithHostName_port_( + NSString? hostname, int port) { + final _ret = _lib._objc_msgSend_969( + _id, + _lib._sel_streamTaskWithHostName_port_1, + hostname?._id ?? ffi.nullptr, + port); + return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); } - @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); + NSURLSessionStreamTask streamTaskWithNetService_(NSNetService? service) { + final _ret = _lib._objc_msgSend_975( + _id, _lib._sel_streamTaskWithNetService_1, service?._id ?? ffi.nullptr); + return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); } - set HTTPBody(NSData? value) { - return _lib._objc_msgSend_959( - _id, _lib._sel_setHTTPBody_1, value?._id ?? ffi.nullptr); + NSURLSessionWebSocketTask webSocketTaskWithURL_(NSURL? url) { + final _ret = _lib._objc_msgSend_982( + _id, _lib._sel_webSocketTaskWithURL_1, url?._id ?? ffi.nullptr); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } - @override - NSInputStream? get HTTPBodyStream { - final _ret = _lib._objc_msgSend_828(_id, _lib._sel_HTTPBodyStream1); - return _ret.address == 0 - ? null - : NSInputStream._(_ret, _lib, retain: true, release: true); + NSURLSessionWebSocketTask webSocketTaskWithURL_protocols_( + NSURL? url, NSArray? protocols) { + final _ret = _lib._objc_msgSend_983( + _id, + _lib._sel_webSocketTaskWithURL_protocols_1, + url?._id ?? ffi.nullptr, + protocols?._id ?? ffi.nullptr); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } - set HTTPBodyStream(NSInputStream? value) { - return _lib._objc_msgSend_960( - _id, _lib._sel_setHTTPBodyStream_1, value?._id ?? ffi.nullptr); + NSURLSessionWebSocketTask webSocketTaskWithRequest_(NSURLRequest? request) { + final _ret = _lib._objc_msgSend_984( + _id, _lib._sel_webSocketTaskWithRequest_1, request?._id ?? ffi.nullptr); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } @override - bool get HTTPShouldHandleCookies { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldHandleCookies1); - } - - set HTTPShouldHandleCookies(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setHTTPShouldHandleCookies_1, value); + NSURLSession init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSession._(_ret, _lib, retain: true, release: true); } - @override - bool get HTTPShouldUsePipelining { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + 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 HTTPShouldUsePipelining(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setHTTPShouldUsePipelining_1, value); + NSURLSessionDataTask dataTaskWithRequest_completionHandler_( + NSURLRequest? request, ObjCBlock47 completionHandler) { + final _ret = _lib._objc_msgSend_985( + _id, + _lib._sel_dataTaskWithRequest_completionHandler_1, + request?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDataTask._(_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); + NSURLSessionDataTask dataTaskWithURL_completionHandler_( + NSURL? url, ObjCBlock47 completionHandler) { + final _ret = _lib._objc_msgSend_986( + _id, + _lib._sel_dataTaskWithURL_completionHandler_1, + url?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - static bool getSupportsSecureCoding(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSMutableURLRequest1, _lib._sel_supportsSecureCoding1); + NSURLSessionUploadTask uploadTaskWithRequest_fromFile_completionHandler_( + NSURLRequest? request, NSURL? fileURL, ObjCBlock47 completionHandler) { + final _ret = _lib._objc_msgSend_987( + _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 NSMutableURLRequest requestWithURL_cachePolicy_timeoutInterval_( - SentryCocoa _lib, NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_815( - _lib._class_NSMutableURLRequest1, - _lib._sel_requestWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + NSURLSessionUploadTask uploadTaskWithRequest_fromData_completionHandler_( + NSURLRequest? request, NSData? bodyData, ObjCBlock47 completionHandler) { + final _ret = _lib._objc_msgSend_988( + _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); } - @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); + NSURLSessionDownloadTask downloadTaskWithRequest_completionHandler_( + NSURLRequest? request, ObjCBlock48 completionHandler) { + final _ret = _lib._objc_msgSend_989( + _id, + _lib._sel_downloadTaskWithRequest_completionHandler_1, + request?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - @override - NSMutableURLRequest initWithURL_cachePolicy_timeoutInterval_( - NSURL? URL, int cachePolicy, double timeoutInterval) { - final _ret = _lib._objc_msgSend_815( + NSURLSessionDownloadTask downloadTaskWithURL_completionHandler_( + NSURL? url, ObjCBlock48 completionHandler) { + final _ret = _lib._objc_msgSend_990( _id, - _lib._sel_initWithURL_cachePolicy_timeoutInterval_1, - URL?._id ?? ffi.nullptr, - cachePolicy, - timeoutInterval); - return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + _lib._sel_downloadTaskWithURL_completionHandler_1, + url?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - @override - NSMutableURLRequest init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableURLRequest._(_ret, _lib, retain: true, release: true); + NSURLSessionDownloadTask downloadTaskWithResumeData_completionHandler_( + NSData? resumeData, ObjCBlock48 completionHandler) { + final _ret = _lib._objc_msgSend_991( + _id, + _lib._sel_downloadTaskWithResumeData_completionHandler_1, + resumeData?._id ?? ffi.nullptr, + completionHandler._id); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - static NSMutableURLRequest new1(SentryCocoa _lib) { + static NSURLSession alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSMutableURLRequest1, _lib._sel_new1); - return NSMutableURLRequest._(_ret, _lib, retain: false, release: true); - } - - 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); - } - - 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); + _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_alloc1); + return NSURLSession._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -65846,8 +63497,8 @@ class NSMutableURLRequest extends NSURLRequest { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSMutableURLRequest1, + return _lib._objc_msgSend_14( + _lib._class_NSURLSession1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -65856,24 +63507,24 @@ class NSMutableURLRequest extends NSURLRequest { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSMutableURLRequest1, + return _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_NSMutableURLRequest1, - _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_NSMutableURLRequest1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSession1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSMutableURLRequest1, + _lib._class_NSURLSession1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -65882,550 +63533,388 @@ class NSMutableURLRequest extends NSURLRequest { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSMutableURLRequest1, + _lib._class_NSURLSession1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSMutableURLRequest1, + return _lib._objc_msgSend_82( + _lib._class_NSURLSession1, _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_NSMutableURLRequest1, - _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79( + _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_NSMutableURLRequest1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSURLSession1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSXMLParser extends NSObject { - NSXMLParser._(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 [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 [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 [NSXMLParser] that wraps the given raw object pointer. - static NSXMLParser 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 NSXMLParser._(other, lib, retain: retain, release: release); + return NSURLSessionConfiguration._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSXMLParser]. + /// 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_NSXMLParser1); - } - - 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); - } - - 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); - } - - NSXMLParser initWithStream_(NSInputStream? stream) { - final _ret = _lib._objc_msgSend_966( - _id, _lib._sel_initWithStream_1, stream?._id ?? ffi.nullptr); - return NSXMLParser._(_ret, _lib, retain: true, release: true); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLSessionConfiguration1); } - NSObject? get delegate { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_delegate1); + static NSURLSessionConfiguration? getDefaultSessionConfiguration( + SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_944(_lib._class_NSURLSessionConfiguration1, + _lib._sel_defaultSessionConfiguration1); return _ret.address == 0 ? null - : NSObject._(_ret, _lib, retain: true, release: true); - } - - set delegate(NSObject? value) { - return _lib._objc_msgSend_387( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); - } - - bool get shouldProcessNamespaces { - return _lib._objc_msgSend_12(_id, _lib._sel_shouldProcessNamespaces1); - } - - set shouldProcessNamespaces(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setShouldProcessNamespaces_1, value); - } - - bool get shouldReportNamespacePrefixes { - return _lib._objc_msgSend_12(_id, _lib._sel_shouldReportNamespacePrefixes1); - } - - set shouldReportNamespacePrefixes(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setShouldReportNamespacePrefixes_1, value); - } - - int get externalEntityResolvingPolicy { - return _lib._objc_msgSend_967( - _id, _lib._sel_externalEntityResolvingPolicy1); - } - - set externalEntityResolvingPolicy(int value) { - return _lib._objc_msgSend_968( - _id, _lib._sel_setExternalEntityResolvingPolicy_1, value); + : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - NSSet? get allowedExternalEntityURLs { - final _ret = - _lib._objc_msgSend_295(_id, _lib._sel_allowedExternalEntityURLs1); + static NSURLSessionConfiguration? getEphemeralSessionConfiguration( + SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_944(_lib._class_NSURLSessionConfiguration1, + _lib._sel_ephemeralSessionConfiguration1); return _ret.address == 0 ? null - : NSSet._(_ret, _lib, retain: true, release: true); - } - - set allowedExternalEntityURLs(NSSet? value) { - return _lib._objc_msgSend_969(_id, _lib._sel_setAllowedExternalEntityURLs_1, - value?._id ?? ffi.nullptr); - } - - bool parse() { - return _lib._objc_msgSend_12(_id, _lib._sel_parse1); + : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - void abortParsing() { - _lib._objc_msgSend_1(_id, _lib._sel_abortParsing1); + static NSURLSessionConfiguration + backgroundSessionConfigurationWithIdentifier_( + SentryCocoa _lib, NSString? identifier) { + final _ret = _lib._objc_msgSend_945( + _lib._class_NSURLSessionConfiguration1, + _lib._sel_backgroundSessionConfigurationWithIdentifier_1, + identifier?._id ?? ffi.nullptr); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); } - NSError? get parserError { - final _ret = _lib._objc_msgSend_298(_id, _lib._sel_parserError1); + NSString? get identifier { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_identifier1); return _ret.address == 0 ? null - : NSError._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - bool get shouldResolveExternalEntities { - return _lib._objc_msgSend_12(_id, _lib._sel_shouldResolveExternalEntities1); + int get requestCachePolicy { + return _lib._objc_msgSend_782(_id, _lib._sel_requestCachePolicy1); } - set shouldResolveExternalEntities(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setShouldResolveExternalEntities_1, value); + set requestCachePolicy(int value) { + _lib._objc_msgSend_922(_id, _lib._sel_setRequestCachePolicy_1, value); } - 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); + double get timeoutIntervalForRequest { + return _lib._objc_msgSend_155(_id, _lib._sel_timeoutIntervalForRequest1); } - 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 timeoutIntervalForRequest(double value) { + _lib._objc_msgSend_506( + _id, _lib._sel_setTimeoutIntervalForRequest_1, value); } - int get lineNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_lineNumber1); + double get timeoutIntervalForResource { + return _lib._objc_msgSend_155(_id, _lib._sel_timeoutIntervalForResource1); } - int get columnNumber { - return _lib._objc_msgSend_78(_id, _lib._sel_columnNumber1); + set timeoutIntervalForResource(double value) { + _lib._objc_msgSend_506( + _id, _lib._sel_setTimeoutIntervalForResource_1, value); } - @override - NSXMLParser init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLParser._(_ret, _lib, retain: true, release: true); + int get networkServiceType { + return _lib._objc_msgSend_783(_id, _lib._sel_networkServiceType1); } - 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); + set networkServiceType(int value) { + _lib._objc_msgSend_923(_id, _lib._sel_setNetworkServiceType_1, value); } - static NSXMLParser 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); + bool get allowsCellularAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); } - static NSXMLParser alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_alloc1); - return NSXMLParser._(_ret, _lib, retain: false, release: true); + set allowsCellularAccess(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setAllowsCellularAccess_1, value); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSXMLParser1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + bool get allowsExpensiveNetworkAccess { + return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSXMLParser1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + set allowsExpensiveNetworkAccess(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + bool get allowsConstrainedNetworkAccess { return _lib._objc_msgSend_12( - _lib._class_NSXMLParser1, _lib._sel_accessInstanceVariablesDirectly1); + _id, _lib._sel_allowsConstrainedNetworkAccess1); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLParser1, _lib._sel_useStoredAccessor1); + set allowsConstrainedNetworkAccess(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLParser1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + bool get requiresDNSSECValidation { + return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLParser1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + set requiresDNSSECValidation(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setRequiresDNSSECValidation_1, value); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSXMLParser1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + bool get waitsForConnectivity { + return _lib._objc_msgSend_12(_id, _lib._sel_waitsForConnectivity1); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLParser1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + set waitsForConnectivity(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setWaitsForConnectivity_1, value); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLParser1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + bool get discretionary { + return _lib._objc_msgSend_12(_id, _lib._sel_isDiscretionary1); } -} - -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 [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); + set discretionary(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setDiscretionary_1, value); } - /// 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 NSFileWrapper._(other, lib, retain: retain, release: release); + NSString? get sharedContainerIdentifier { + final _ret = + _lib._objc_msgSend_20(_id, _lib._sel_sharedContainerIdentifier1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); } - /// 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_NSFileWrapper1); + set sharedContainerIdentifier(NSString? value) { + _lib._objc_msgSend_509(_id, _lib._sel_setSharedContainerIdentifier_1, + value?._id ?? ffi.nullptr); } - NSFileWrapper initWithURL_options_error_( - NSURL? url, int options, ffi.Pointer> outError) { - final _ret = _lib._objc_msgSend_970( - _id, - _lib._sel_initWithURL_options_error_1, - url?._id ?? ffi.nullptr, - options, - outError); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); + bool get sessionSendsLaunchEvents { + return _lib._objc_msgSend_12(_id, _lib._sel_sessionSendsLaunchEvents1); } - 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); + set sessionSendsLaunchEvents(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setSessionSendsLaunchEvents_1, value); } - 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); + NSDictionary? get connectionProxyDictionary { + final _ret = + _lib._objc_msgSend_170(_id, _lib._sel_connectionProxyDictionary1); + return _ret.address == 0 + ? null + : NSDictionary._(_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); + set connectionProxyDictionary(NSDictionary? value) { + _lib._objc_msgSend_171(_id, _lib._sel_setConnectionProxyDictionary_1, + value?._id ?? ffi.nullptr); } - 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); + int get TLSMinimumSupportedProtocol { + return _lib._objc_msgSend_946(_id, _lib._sel_TLSMinimumSupportedProtocol1); } - 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); + set TLSMinimumSupportedProtocol(int value) { + _lib._objc_msgSend_947( + _id, _lib._sel_setTLSMinimumSupportedProtocol_1, value); } - bool get directory { - return _lib._objc_msgSend_12(_id, _lib._sel_isDirectory1); + int get TLSMaximumSupportedProtocol { + return _lib._objc_msgSend_946(_id, _lib._sel_TLSMaximumSupportedProtocol1); } - bool get regularFile { - return _lib._objc_msgSend_12(_id, _lib._sel_isRegularFile1); + set TLSMaximumSupportedProtocol(int value) { + _lib._objc_msgSend_947( + _id, _lib._sel_setTLSMaximumSupportedProtocol_1, value); } - bool get symbolicLink { - return _lib._objc_msgSend_12(_id, _lib._sel_isSymbolicLink1); + int get TLSMinimumSupportedProtocolVersion { + return _lib._objc_msgSend_948( + _id, _lib._sel_TLSMinimumSupportedProtocolVersion1); } - 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); + set TLSMinimumSupportedProtocolVersion(int value) { + _lib._objc_msgSend_949( + _id, _lib._sel_setTLSMinimumSupportedProtocolVersion_1, value); } - set preferredFilename(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setPreferredFilename_1, value?._id ?? ffi.nullptr); + int get TLSMaximumSupportedProtocolVersion { + return _lib._objc_msgSend_948( + _id, _lib._sel_TLSMaximumSupportedProtocolVersion1); } - NSString? get filename { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_filename1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + set TLSMaximumSupportedProtocolVersion(int value) { + _lib._objc_msgSend_949( + _id, _lib._sel_setTLSMaximumSupportedProtocolVersion_1, value); } - set filename(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setFilename_1, value?._id ?? ffi.nullptr); + bool get HTTPShouldUsePipelining { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); } - 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); + set HTTPShouldUsePipelining(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setHTTPShouldUsePipelining_1, value); } - set fileAttributes(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setFileAttributes_1, value?._id ?? ffi.nullptr); + bool get HTTPShouldSetCookies { + return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldSetCookies1); } - bool matchesContentsOfURL_(NSURL? url) { - return _lib._objc_msgSend_244( - _id, _lib._sel_matchesContentsOfURL_1, url?._id ?? ffi.nullptr); + set HTTPShouldSetCookies(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setHTTPShouldSetCookies_1, value); } - bool readFromURL_options_error_( - NSURL? url, int options, ffi.Pointer> outError) { - return _lib._objc_msgSend_971(_id, _lib._sel_readFromURL_options_error_1, - url?._id ?? ffi.nullptr, options, outError); + int get HTTPCookieAcceptPolicy { + return _lib._objc_msgSend_779(_id, _lib._sel_HTTPCookieAcceptPolicy1); } - bool writeToURL_options_originalContentsURL_error_( - NSURL? url, - int options, - NSURL? originalContentsURL, - ffi.Pointer> outError) { - return _lib._objc_msgSend_972( - _id, - _lib._sel_writeToURL_options_originalContentsURL_error_1, - url?._id ?? ffi.nullptr, - options, - originalContentsURL?._id ?? ffi.nullptr, - outError); + set HTTPCookieAcceptPolicy(int value) { + _lib._objc_msgSend_780(_id, _lib._sel_setHTTPCookieAcceptPolicy_1, value); } - NSData? get serializedRepresentation { - final _ret = - _lib._objc_msgSend_39(_id, _lib._sel_serializedRepresentation1); + NSDictionary? get HTTPAdditionalHeaders { + final _ret = _lib._objc_msgSend_170(_id, _lib._sel_HTTPAdditionalHeaders1); return _ret.address == 0 ? null - : NSData._(_ret, _lib, retain: true, release: true); + : NSDictionary._(_ret, _lib, retain: true, release: true); } - NSString addFileWrapper_(NSFileWrapper? child) { - final _ret = _lib._objc_msgSend_973( - _id, _lib._sel_addFileWrapper_1, child?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + set HTTPAdditionalHeaders(NSDictionary? value) { + _lib._objc_msgSend_171( + _id, _lib._sel_setHTTPAdditionalHeaders_1, value?._id ?? ffi.nullptr); } - NSString addRegularFileWithContents_preferredFilename_( - NSData? data, NSString? fileName) { - final _ret = _lib._objc_msgSend_974( - _id, - _lib._sel_addRegularFileWithContents_preferredFilename_1, - data?._id ?? ffi.nullptr, - fileName?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + int get HTTPMaximumConnectionsPerHost { + return _lib._objc_msgSend_78(_id, _lib._sel_HTTPMaximumConnectionsPerHost1); } - void removeFileWrapper_(NSFileWrapper? child) { - _lib._objc_msgSend_975( - _id, _lib._sel_removeFileWrapper_1, child?._id ?? ffi.nullptr); + set HTTPMaximumConnectionsPerHost(int value) { + _lib._objc_msgSend_590( + _id, _lib._sel_setHTTPMaximumConnectionsPerHost_1, value); } - NSDictionary? get fileWrappers { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_fileWrappers1); + NSHTTPCookieStorage? get HTTPCookieStorage { + final _ret = _lib._objc_msgSend_773(_id, _lib._sel_HTTPCookieStorage1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); } - NSString keyForFileWrapper_(NSFileWrapper? child) { - final _ret = _lib._objc_msgSend_973( - _id, _lib._sel_keyForFileWrapper_1, child?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + set HTTPCookieStorage(NSHTTPCookieStorage? value) { + _lib._objc_msgSend_950( + _id, _lib._sel_setHTTPCookieStorage_1, value?._id ?? ffi.nullptr); } - NSData? get regularFileContents { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_regularFileContents1); + NSURLCredentialStorage? get URLCredentialStorage { + final _ret = _lib._objc_msgSend_908(_id, _lib._sel_URLCredentialStorage1); return _ret.address == 0 ? null - : NSData._(_ret, _lib, retain: true, release: true); + : NSURLCredentialStorage._(_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); + set URLCredentialStorage(NSURLCredentialStorage? value) { + _lib._objc_msgSend_951( + _id, _lib._sel_setURLCredentialStorage_1, value?._id ?? ffi.nullptr); } - 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); + NSURLCache? get URLCache { + final _ret = _lib._objc_msgSend_878(_id, _lib._sel_URLCache1); + return _ret.address == 0 + ? null + : NSURLCache._(_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); + set URLCache(NSURLCache? value) { + _lib._objc_msgSend_879( + _id, _lib._sel_setURLCache_1, value?._id ?? ffi.nullptr); } - bool needsToBeUpdatedFromPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_needsToBeUpdatedFromPath_1, path?._id ?? ffi.nullptr); + bool get shouldUseExtendedBackgroundIdleMode { + return _lib._objc_msgSend_12( + _id, _lib._sel_shouldUseExtendedBackgroundIdleMode1); } - bool updateFromPath_(NSString? path) { - return _lib._objc_msgSend_59( - _id, _lib._sel_updateFromPath_1, path?._id ?? ffi.nullptr); + set shouldUseExtendedBackgroundIdleMode(bool value) { + _lib._objc_msgSend_492( + _id, _lib._sel_setShouldUseExtendedBackgroundIdleMode_1, value); } - bool writeToFile_atomically_updateFilenames_( - NSString? path, bool atomicFlag, bool updateFilenamesFlag) { - return _lib._objc_msgSend_976( - _id, - _lib._sel_writeToFile_atomically_updateFilenames_1, - path?._id ?? ffi.nullptr, - atomicFlag, - updateFilenamesFlag); + 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); } - 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); + set protocolClasses(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setProtocolClasses_1, value?._id ?? ffi.nullptr); } - NSString addSymbolicLinkWithDestination_preferredFilename_( - NSString? path, NSString? filename) { - final _ret = _lib._objc_msgSend_339( - _id, - _lib._sel_addSymbolicLinkWithDestination_preferredFilename_1, - path?._id ?? ffi.nullptr, - filename?._id ?? ffi.nullptr); - return NSString._(_ret, _lib, retain: true, release: true); + int get multipathServiceType { + return _lib._objc_msgSend_952(_id, _lib._sel_multipathServiceType1); } - NSString symbolicLinkDestination() { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_symbolicLinkDestination1); - return NSString._(_ret, _lib, retain: true, release: true); + set multipathServiceType(int value) { + _lib._objc_msgSend_953(_id, _lib._sel_setMultipathServiceType_1, value); } @override - NSFileWrapper init() { + NSURLSessionConfiguration init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSFileWrapper._(_ret, _lib, retain: true, release: true); + return NSURLSessionConfiguration._(_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 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 NSFileWrapper 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); + static NSURLSessionConfiguration backgroundSessionConfiguration_( + SentryCocoa _lib, NSString? identifier) { + final _ret = _lib._objc_msgSend_945( + _lib._class_NSURLSessionConfiguration1, + _lib._sel_backgroundSessionConfiguration_1, + identifier?._id ?? ffi.nullptr); + return NSURLSessionConfiguration._(_ret, _lib, retain: true, 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 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_( @@ -66433,8 +63922,8 @@ class NSFileWrapper extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSFileWrapper1, + return _lib._objc_msgSend_14( + _lib._class_NSURLSessionConfiguration1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -66443,24 +63932,24 @@ class NSFileWrapper extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSFileWrapper1, + return _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_NSFileWrapper1, _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_NSFileWrapper1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionConfiguration1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSFileWrapper1, + _lib._class_NSURLSessionConfiguration1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -66469,356 +63958,547 @@ class NSFileWrapper extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSFileWrapper1, + _lib._class_NSURLSessionConfiguration1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSFileWrapper1, + return _lib._objc_msgSend_82( + _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_NSFileWrapper1, _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_NSFileWrapper1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionConfiguration1, + _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 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 NSFileWrapperWritingOptions { - static const int NSFileWrapperWritingAtomic = 1; - static const int NSFileWrapperWritingWithNameUpdating = 2; +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; } -class NSURLSession extends NSObject { - NSURLSession._(ffi.Pointer id, SentryCocoa lib, +abstract class NSURLSessionMultipathServiceType { + static const int NSURLSessionMultipathServiceTypeNone = 0; + static const int NSURLSessionMultipathServiceTypeHandover = 1; + static const int NSURLSessionMultipathServiceTypeInteractive = 2; + static const int NSURLSessionMultipathServiceTypeAggregate = 3; +} + +void _ObjCBlock43_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 _ObjCBlock43_closureRegistry = {}; +int _ObjCBlock43_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock43_registerClosure(Function fn) { + final id = ++_ObjCBlock43_closureRegistryIndex; + _ObjCBlock43_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock43_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return (_ObjCBlock43_closureRegistry[block.ref.target.address] + as void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock43 extends _ObjCBlockBase { + ObjCBlock43._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock43.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)>( + _ObjCBlock43_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock43.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)>( + _ObjCBlock43_closureTrampoline) + .cast(), + _ObjCBlock43_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, {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 [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 [NSURLSession] that wraps the given raw object pointer. - static NSURLSession 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 NSURLSession._(other, lib, retain: retain, release: release); + return NSURLSessionUploadTask._(other, lib, + retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSession]. + /// 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_NSURLSession1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_NSURLSessionUploadTask1); } - static NSURLSession? getSharedSession(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_977( - _lib._class_NSURLSession1, _lib._sel_sharedSession1); - return _ret.address == 0 - ? null - : NSURLSession._(_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); } - static NSURLSession sessionWithConfiguration_( - SentryCocoa _lib, NSURLSessionConfiguration? configuration) { - final _ret = _lib._objc_msgSend_988( - _lib._class_NSURLSession1, - _lib._sel_sessionWithConfiguration_1, - configuration?._id ?? ffi.nullptr); - return NSURLSession._(_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); } - static NSURLSession sessionWithConfiguration_delegate_delegateQueue_( + 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 void cancelPreviousPerformRequestsWithTarget_selector_object_( SentryCocoa _lib, - NSURLSessionConfiguration? configuration, - NSObject? delegate, - NSOperationQueue? queue) { - final _ret = _lib._objc_msgSend_989( - _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); + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLSessionUploadTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - NSOperationQueue? get delegateQueue { - final _ret = _lib._objc_msgSend_858(_id, _lib._sel_delegateQueue1); - return _ret.address == 0 - ? null - : NSOperationQueue._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLSessionUploadTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._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); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLSessionUploadTask1, + _lib._sel_accessInstanceVariablesDirectly1); } - NSURLSessionConfiguration? get configuration { - final _ret = _lib._objc_msgSend_978(_id, _lib._sel_configuration1); - return _ret.address == 0 - ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLSessionUploadTask1, _lib._sel_useStoredAccessor1); } - 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); + 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); } - set sessionDescription(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setSessionDescription_1, value?._id ?? ffi.nullptr); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLSessionUploadTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - void finishTasksAndInvalidate() { - _lib._objc_msgSend_1(_id, _lib._sel_finishTasksAndInvalidate1); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLSessionUploadTask1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - void invalidateAndCancel() { - _lib._objc_msgSend_1(_id, _lib._sel_invalidateAndCancel1); + 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); } - void resetWithCompletionHandler_(ObjCBlock_ffiVoid completionHandler) { - _lib._objc_msgSend_497( - _id, _lib._sel_resetWithCompletionHandler_1, completionHandler._id); + 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); } +} - void flushWithCompletionHandler_(ObjCBlock_ffiVoid completionHandler) { - _lib._objc_msgSend_497( - _id, _lib._sel_flushWithCompletionHandler_1, completionHandler._id); +class NSURLSessionDownloadTask extends NSURLSessionTask { + NSURLSessionDownloadTask._(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, + retain: true, release: true); } - void getTasksWithCompletionHandler_( - ObjCBlock_ffiVoid_NSArray_NSArray_NSArray completionHandler) { - _lib._objc_msgSend_990( - _id, _lib._sel_getTasksWithCompletionHandler_1, completionHandler._id); + /// 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); } - void getAllTasksWithCompletionHandler_( - ObjCBlock_ffiVoid_NSArray completionHandler) { - _lib._objc_msgSend_991(_id, _lib._sel_getAllTasksWithCompletionHandler_1, - completionHandler._id); + /// 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); } - NSURLSessionDataTask dataTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_992( - _id, _lib._sel_dataTaskWithRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + void cancelByProducingResumeData_(ObjCBlock44 completionHandler) { + return _lib._objc_msgSend_963( + _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); } - NSURLSessionDataTask dataTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_993( - _id, _lib._sel_dataTaskWithURL_1, url?._id ?? ffi.nullptr); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); + @override + NSURLSessionDownloadTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionUploadTask uploadTaskWithRequest_fromFile_( - NSURLRequest? request, NSURL? fileURL) { - final _ret = _lib._objc_msgSend_994( - _id, - _lib._sel_uploadTaskWithRequest_fromFile_1, - request?._id ?? ffi.nullptr, - fileURL?._id ?? ffi.nullptr); - return NSURLSessionUploadTask._(_ret, _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); } - NSURLSessionUploadTask uploadTaskWithRequest_fromData_( - NSURLRequest? request, NSData? bodyData) { - final _ret = _lib._objc_msgSend_995( - _id, - _lib._sel_uploadTaskWithRequest_fromData_1, - request?._id ?? ffi.nullptr, - bodyData?._id ?? ffi.nullptr); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + 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); } - NSURLSessionUploadTask uploadTaskWithStreamedRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_996(_id, - _lib._sel_uploadTaskWithStreamedRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLSessionDownloadTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - NSURLSessionDownloadTask downloadTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_998( - _id, _lib._sel_downloadTaskWithRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSURLSessionDownloadTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - NSURLSessionDownloadTask downloadTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_999( - _id, _lib._sel_downloadTaskWithURL_1, url?._id ?? ffi.nullptr); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_NSURLSessionDownloadTask1, + _lib._sel_accessInstanceVariablesDirectly1); } - NSURLSessionDownloadTask downloadTaskWithResumeData_(NSData? resumeData) { - final _ret = _lib._objc_msgSend_1000(_id, - _lib._sel_downloadTaskWithResumeData_1, resumeData?._id ?? ffi.nullptr); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLSessionDownloadTask1, _lib._sel_useStoredAccessor1); } - NSURLSessionStreamTask streamTaskWithHostName_port_( - NSString? hostname, int port) { - final _ret = _lib._objc_msgSend_1003( - _id, - _lib._sel_streamTaskWithHostName_port_1, - hostname?._id ?? ffi.nullptr, - port); - return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); + 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); } - NSURLSessionStreamTask streamTaskWithNetService_(NSNetService? service) { - final _ret = _lib._objc_msgSend_1009( - _id, _lib._sel_streamTaskWithNetService_1, service?._id ?? ffi.nullptr); - return NSURLSessionStreamTask._(_ret, _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); } - NSURLSessionWebSocketTask webSocketTaskWithURL_(NSURL? url) { - final _ret = _lib._objc_msgSend_1016( - _id, _lib._sel_webSocketTaskWithURL_1, url?._id ?? ffi.nullptr); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLSessionDownloadTask1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - NSURLSessionWebSocketTask webSocketTaskWithURL_protocols_( - NSURL? url, NSArray? protocols) { - final _ret = _lib._objc_msgSend_1017( - _id, - _lib._sel_webSocketTaskWithURL_protocols_1, - url?._id ?? ffi.nullptr, - protocols?._id ?? ffi.nullptr); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + 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); } - NSURLSessionWebSocketTask webSocketTaskWithRequest_(NSURLRequest? request) { - final _ret = _lib._objc_msgSend_1018( - _id, _lib._sel_webSocketTaskWithRequest_1, request?._id ?? ffi.nullptr); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + 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); } +} - @override - NSURLSession init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSession._(_ret, _lib, retain: true, release: true); +void _ObjCBlock44_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock44_closureRegistry = {}; +int _ObjCBlock44_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock44_registerClosure(Function fn) { + final id = ++_ObjCBlock44_closureRegistryIndex; + _ObjCBlock44_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock44_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock44_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer))(arg0); +} + +class ObjCBlock44 extends _ObjCBlockBase { + ObjCBlock44._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock44.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)>( + _ObjCBlock44_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock44.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)>( + _ObjCBlock44_closureTrampoline) + .cast(), + _ObjCBlock44_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 NSURLSession new1(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_new1); - return NSURLSession._(_ret, _lib, retain: false, release: true); +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 [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); } - NSURLSessionDataTask dataTaskWithRequest_completionHandler_( - NSURLRequest? request, - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1019( + /// 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 NSURLSessionStreamTask._(other, lib, + retain: retain, release: release); + } + + /// 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_NSURLSessionStreamTask1); + } + + void readDataOfMinLength_maxLength_timeout_completionHandler_(int minBytes, + int maxBytes, double timeout, ObjCBlock45 completionHandler) { + return _lib._objc_msgSend_967( _id, - _lib._sel_dataTaskWithRequest_completionHandler_1, - request?._id ?? ffi.nullptr, + _lib._sel_readDataOfMinLength_maxLength_timeout_completionHandler_1, + minBytes, + maxBytes, + timeout, completionHandler._id); - return NSURLSessionDataTask._(_ret, _lib, retain: true, release: true); } - NSURLSessionDataTask dataTaskWithURL_completionHandler_(NSURL? url, - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1020( + void writeData_timeout_completionHandler_( + NSData? data, double timeout, ObjCBlock18 completionHandler) { + return _lib._objc_msgSend_968( _id, - _lib._sel_dataTaskWithURL_completionHandler_1, - url?._id ?? ffi.nullptr, + _lib._sel_writeData_timeout_completionHandler_1, + data?._id ?? ffi.nullptr, + timeout, completionHandler._id); - return NSURLSessionDataTask._(_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_1021( - _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); + void captureStreams() { + return _lib._objc_msgSend_1(_id, _lib._sel_captureStreams1); } - NSURLSessionUploadTask uploadTaskWithRequest_fromData_completionHandler_( - NSURLRequest? request, - NSData? bodyData, - ObjCBlock_ffiVoid_NSData_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1022( - _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); + void closeWrite() { + return _lib._objc_msgSend_1(_id, _lib._sel_closeWrite1); } - NSURLSessionDownloadTask downloadTaskWithRequest_completionHandler_( - NSURLRequest? request, - ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1023( - _id, - _lib._sel_downloadTaskWithRequest_completionHandler_1, - request?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + void closeRead() { + return _lib._objc_msgSend_1(_id, _lib._sel_closeRead1); } - NSURLSessionDownloadTask downloadTaskWithURL_completionHandler_(NSURL? url, - ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1024( - _id, - _lib._sel_downloadTaskWithURL_completionHandler_1, - url?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + void startSecureConnection() { + return _lib._objc_msgSend_1(_id, _lib._sel_startSecureConnection1); } - NSURLSessionDownloadTask downloadTaskWithResumeData_completionHandler_( - NSData? resumeData, - ObjCBlock_ffiVoid_NSURL_NSURLResponse_NSError completionHandler) { - final _ret = _lib._objc_msgSend_1025( - _id, - _lib._sel_downloadTaskWithResumeData_completionHandler_1, - resumeData?._id ?? ffi.nullptr, - completionHandler._id); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + void stopSecureConnection() { + return _lib._objc_msgSend_1(_id, _lib._sel_stopSecureConnection1); } - static NSURLSession 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); + @override + NSURLSessionStreamTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionStreamTask._(_ret, _lib, retain: true, release: true); } - static NSURLSession alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSURLSession1, _lib._sel_alloc1); - return NSURLSession._(_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 NSURLSessionStreamTask alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSURLSessionStreamTask1, _lib._sel_alloc1); + return NSURLSessionStreamTask._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -66826,8 +64506,8 @@ class NSURLSession extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLSession1, + return _lib._objc_msgSend_14( + _lib._class_NSURLSessionStreamTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -66836,24 +64516,24 @@ class NSURLSession extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSession1, + return _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_NSURLSession1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_NSURLSessionStreamTask1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSURLSession1, _lib._sel_useStoredAccessor1); + _lib._class_NSURLSessionStreamTask1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSession1, + _lib._class_NSURLSessionStreamTask1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -66862,405 +64542,617 @@ class NSURLSession extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSession1, + _lib._class_NSURLSessionStreamTask1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSURLSession1, + return _lib._objc_msgSend_82( + _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_NSURLSession1, _lib._sel_classFallbacksForKeyedArchiver1); + 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_NSURLSession1, _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionStreamTask1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSURLSessionConfiguration extends NSObject { - NSURLSessionConfiguration._(ffi.Pointer id, SentryCocoa lib, +void _ObjCBlock45_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 _ObjCBlock45_closureRegistry = {}; +int _ObjCBlock45_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock45_registerClosure(Function fn) { + final id = ++_ObjCBlock45_closureRegistryIndex; + _ObjCBlock45_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock45_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, bool arg1, ffi.Pointer arg2) { + return (_ObjCBlock45_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer, bool, ffi.Pointer))( + arg0, arg1, arg2); +} + +class ObjCBlock45 extends _ObjCBlockBase { + ObjCBlock45._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock45.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)>( + _ObjCBlock45_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock45.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)>( + _ObjCBlock45_closureTrampoline) + .cast(), + _ObjCBlock45_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 NSNetService extends NSObject { + NSNetService._(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, - 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 [NSURLSessionConfiguration] that wraps the given raw object pointer. - static NSURLSessionConfiguration 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 NSURLSessionConfiguration._(other, lib, - retain: retain, release: release); + return NSNetService._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionConfiguration]. + /// 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_NSURLSessionConfiguration1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSNetService1); } - static NSURLSessionConfiguration? getDefaultSessionConfiguration( - SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_978(_lib._class_NSURLSessionConfiguration1, - _lib._sel_defaultSessionConfiguration1); + NSNetService initWithDomain_type_name_port_( + NSString? domain, NSString? type, NSString? name, int port) { + final _ret = _lib._objc_msgSend_970( + _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) { + return _lib._objc_msgSend_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, + aRunLoop?._id ?? ffi.nullptr, mode._id); + } + + void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { + return _lib._objc_msgSend_533(_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 - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + : NSObject._(_ret, _lib, retain: true, release: true); } - static NSURLSessionConfiguration? getEphemeralSessionConfiguration( - SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_978(_lib._class_NSURLSessionConfiguration1, - _lib._sel_ephemeralSessionConfiguration1); + set delegate(NSObject? value) { + _lib._objc_msgSend_387( + _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + } + + bool get includesPeerToPeer { + return _lib._objc_msgSend_12(_id, _lib._sel_includesPeerToPeer1); + } + + set includesPeerToPeer(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setIncludesPeerToPeer_1, value); + } + + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); return _ret.address == 0 ? null - : NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + : NSString._(_ret, _lib, retain: true, release: true); } - static NSURLSessionConfiguration - backgroundSessionConfigurationWithIdentifier_( - SentryCocoa _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_979( - _lib._class_NSURLSessionConfiguration1, - _lib._sel_backgroundSessionConfigurationWithIdentifier_1, - identifier?._id ?? ffi.nullptr); - return NSURLSessionConfiguration._(_ret, _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); } - NSString? get identifier { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_identifier1); + 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); } - int get requestCachePolicy { - return _lib._objc_msgSend_816(_id, _lib._sel_requestCachePolicy1); + 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 requestCachePolicy(int value) { - return _lib._objc_msgSend_956( - _id, _lib._sel_setRequestCachePolicy_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); } - double get timeoutIntervalForRequest { - return _lib._objc_msgSend_155(_id, _lib._sel_timeoutIntervalForRequest1); + int get port { + return _lib._objc_msgSend_78(_id, _lib._sel_port1); } - set timeoutIntervalForRequest(double value) { - return _lib._objc_msgSend_506( - _id, _lib._sel_setTimeoutIntervalForRequest_1, value); + void publish() { + return _lib._objc_msgSend_1(_id, _lib._sel_publish1); } - double get timeoutIntervalForResource { - return _lib._objc_msgSend_155(_id, _lib._sel_timeoutIntervalForResource1); + void publishWithOptions_(int options) { + return _lib._objc_msgSend_971(_id, _lib._sel_publishWithOptions_1, options); } - set timeoutIntervalForResource(double value) { - return _lib._objc_msgSend_506( - _id, _lib._sel_setTimeoutIntervalForResource_1, value); + void resolve() { + return _lib._objc_msgSend_1(_id, _lib._sel_resolve1); } - int get networkServiceType { - return _lib._objc_msgSend_817(_id, _lib._sel_networkServiceType1); + void stop() { + return _lib._objc_msgSend_1(_id, _lib._sel_stop1); } - set networkServiceType(int value) { - return _lib._objc_msgSend_957( - _id, _lib._sel_setNetworkServiceType_1, value); + static NSDictionary dictionaryFromTXTRecordData_( + SentryCocoa _lib, NSData? txtData) { + final _ret = _lib._objc_msgSend_972(_lib._class_NSNetService1, + _lib._sel_dictionaryFromTXTRecordData_1, txtData?._id ?? ffi.nullptr); + return NSDictionary._(_ret, _lib, retain: true, release: true); } - bool get allowsCellularAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsCellularAccess1); + static NSData dataFromTXTRecordDictionary_( + SentryCocoa _lib, NSDictionary? txtDictionary) { + final _ret = _lib._objc_msgSend_973( + _lib._class_NSNetService1, + _lib._sel_dataFromTXTRecordDictionary_1, + txtDictionary?._id ?? ffi.nullptr); + return NSData._(_ret, _lib, retain: true, release: true); } - set allowsCellularAccess(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAllowsCellularAccess_1, value); + void resolveWithTimeout_(double timeout) { + return _lib._objc_msgSend_505(_id, _lib._sel_resolveWithTimeout_1, timeout); } - bool get allowsExpensiveNetworkAccess { - return _lib._objc_msgSend_12(_id, _lib._sel_allowsExpensiveNetworkAccess1); + bool getInputStream_outputStream_( + ffi.Pointer> inputStream, + ffi.Pointer> outputStream) { + return _lib._objc_msgSend_974(_id, _lib._sel_getInputStream_outputStream_1, + inputStream, outputStream); } - set allowsExpensiveNetworkAccess(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAllowsExpensiveNetworkAccess_1, value); + bool setTXTRecordData_(NSData? recordData) { + return _lib._objc_msgSend_23( + _id, _lib._sel_setTXTRecordData_1, recordData?._id ?? ffi.nullptr); } - bool get allowsConstrainedNetworkAccess { - return _lib._objc_msgSend_12( - _id, _lib._sel_allowsConstrainedNetworkAccess1); + NSData TXTRecordData() { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_TXTRecordData1); + return NSData._(_ret, _lib, retain: true, release: true); } - set allowsConstrainedNetworkAccess(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setAllowsConstrainedNetworkAccess_1, value); + void startMonitoring() { + return _lib._objc_msgSend_1(_id, _lib._sel_startMonitoring1); } - bool get requiresDNSSECValidation { - return _lib._objc_msgSend_12(_id, _lib._sel_requiresDNSSECValidation1); + void stopMonitoring() { + return _lib._objc_msgSend_1(_id, _lib._sel_stopMonitoring1); } - set requiresDNSSECValidation(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setRequiresDNSSECValidation_1, value); + 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); } - bool get waitsForConnectivity { - return _lib._objc_msgSend_12(_id, _lib._sel_waitsForConnectivity1); + 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); } - set waitsForConnectivity(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setWaitsForConnectivity_1, value); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSNetService1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - bool get discretionary { - return _lib._objc_msgSend_12(_id, _lib._sel_isDiscretionary1); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSNetService1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - set discretionary(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setDiscretionary_1, value); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSNetService1, _lib._sel_accessInstanceVariablesDirectly1); } - NSString? get sharedContainerIdentifier { - final _ret = - _lib._objc_msgSend_20(_id, _lib._sel_sharedContainerIdentifier1); - return _ret.address == 0 - ? null - : NSString._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSNetService1, _lib._sel_useStoredAccessor1); } - set sharedContainerIdentifier(NSString? value) { - return _lib._objc_msgSend_509(_id, _lib._sel_setSharedContainerIdentifier_1, - value?._id ?? ffi.nullptr); + 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); } - bool get sessionSendsLaunchEvents { - return _lib._objc_msgSend_12(_id, _lib._sel_sessionSendsLaunchEvents1); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSNetService1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - set sessionSendsLaunchEvents(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setSessionSendsLaunchEvents_1, value); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSNetService1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - NSDictionary? get connectionProxyDictionary { - final _ret = - _lib._objc_msgSend_170(_id, _lib._sel_connectionProxyDictionary1); - return _ret.address == 0 - ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + 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); } - set connectionProxyDictionary(NSDictionary? value) { - return _lib._objc_msgSend_171(_id, _lib._sel_setConnectionProxyDictionary_1, - value?._id ?? ffi.nullptr); + 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); } +} - int get TLSMinimumSupportedProtocol { - return _lib._objc_msgSend_980(_id, _lib._sel_TLSMinimumSupportedProtocol1); +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); } - set TLSMinimumSupportedProtocol(int value) { - return _lib._objc_msgSend_981( - _id, _lib._sel_setTLSMinimumSupportedProtocol_1, value); + /// 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); } - int get TLSMaximumSupportedProtocol { - return _lib._objc_msgSend_980(_id, _lib._sel_TLSMaximumSupportedProtocol1); + /// 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); } - set TLSMaximumSupportedProtocol(int value) { - return _lib._objc_msgSend_981( - _id, _lib._sel_setTLSMaximumSupportedProtocol_1, value); + void sendMessage_completionHandler_( + NSURLSessionWebSocketMessage? message, ObjCBlock18 completionHandler) { + return _lib._objc_msgSend_977( + _id, + _lib._sel_sendMessage_completionHandler_1, + message?._id ?? ffi.nullptr, + completionHandler._id); } - int get TLSMinimumSupportedProtocolVersion { - return _lib._objc_msgSend_982( - _id, _lib._sel_TLSMinimumSupportedProtocolVersion1); + void receiveMessageWithCompletionHandler_(ObjCBlock46 completionHandler) { + return _lib._objc_msgSend_978(_id, + _lib._sel_receiveMessageWithCompletionHandler_1, completionHandler._id); } - set TLSMinimumSupportedProtocolVersion(int value) { - return _lib._objc_msgSend_983( - _id, _lib._sel_setTLSMinimumSupportedProtocolVersion_1, value); + void sendPingWithPongReceiveHandler_(ObjCBlock18 pongReceiveHandler) { + return _lib._objc_msgSend_979(_id, + _lib._sel_sendPingWithPongReceiveHandler_1, pongReceiveHandler._id); } - int get TLSMaximumSupportedProtocolVersion { - return _lib._objc_msgSend_982( - _id, _lib._sel_TLSMaximumSupportedProtocolVersion1); + void cancelWithCloseCode_reason_(int closeCode, NSData? reason) { + return _lib._objc_msgSend_980(_id, _lib._sel_cancelWithCloseCode_reason_1, + closeCode, reason?._id ?? ffi.nullptr); } - set TLSMaximumSupportedProtocolVersion(int value) { - return _lib._objc_msgSend_983( - _id, _lib._sel_setTLSMaximumSupportedProtocolVersion_1, value); + int get maximumMessageSize { + return _lib._objc_msgSend_78(_id, _lib._sel_maximumMessageSize1); } - bool get HTTPShouldUsePipelining { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldUsePipelining1); + set maximumMessageSize(int value) { + _lib._objc_msgSend_590(_id, _lib._sel_setMaximumMessageSize_1, value); } - set HTTPShouldUsePipelining(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setHTTPShouldUsePipelining_1, value); + int get closeCode { + return _lib._objc_msgSend_981(_id, _lib._sel_closeCode1); } - bool get HTTPShouldSetCookies { - return _lib._objc_msgSend_12(_id, _lib._sel_HTTPShouldSetCookies1); + 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); } - set HTTPShouldSetCookies(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setHTTPShouldSetCookies_1, value); + @override + NSURLSessionWebSocketTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); } - int get HTTPCookieAcceptPolicy { - return _lib._objc_msgSend_813(_id, _lib._sel_HTTPCookieAcceptPolicy1); + 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); } - set HTTPCookieAcceptPolicy(int value) { - return _lib._objc_msgSend_814( - _id, _lib._sel_setHTTPCookieAcceptPolicy_1, value); + 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); } - 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 void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSURLSessionWebSocketTask1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - set HTTPAdditionalHeaders(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setHTTPAdditionalHeaders_1, value?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + return _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_NSURLSessionWebSocketTask1, + _lib._sel_accessInstanceVariablesDirectly1); + } + + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSURLSessionWebSocketTask1, _lib._sel_useStoredAccessor1); } - int get HTTPMaximumConnectionsPerHost { - return _lib._objc_msgSend_78(_id, _lib._sel_HTTPMaximumConnectionsPerHost1); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSURLSessionWebSocketTask1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - set HTTPMaximumConnectionsPerHost(int value) { - return _lib._objc_msgSend_590( - _id, _lib._sel_setHTTPMaximumConnectionsPerHost_1, value); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSURLSessionWebSocketTask1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - NSHTTPCookieStorage? get HTTPCookieStorage { - final _ret = _lib._objc_msgSend_807(_id, _lib._sel_HTTPCookieStorage1); - return _ret.address == 0 - ? null - : NSHTTPCookieStorage._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSURLSessionWebSocketTask1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - set HTTPCookieStorage(NSHTTPCookieStorage? value) { - return _lib._objc_msgSend_984( - _id, _lib._sel_setHTTPCookieStorage_1, value?._id ?? ffi.nullptr); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - NSURLCredentialStorage? get URLCredentialStorage { - final _ret = _lib._objc_msgSend_942(_id, _lib._sel_URLCredentialStorage1); - return _ret.address == 0 - ? null - : NSURLCredentialStorage._(_ret, _lib, retain: true, release: true); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketTask1, + _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - set URLCredentialStorage(NSURLCredentialStorage? value) { - return _lib._objc_msgSend_985( - _id, _lib._sel_setURLCredentialStorage_1, value?._id ?? ffi.nullptr); - } +class NSURLSessionWebSocketMessage extends NSObject { + NSURLSessionWebSocketMessage._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - NSURLCache? get URLCache { - final _ret = _lib._objc_msgSend_912(_id, _lib._sel_URLCache1); - return _ret.address == 0 - ? null - : NSURLCache._(_ret, _lib, retain: true, release: true); + /// 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); } - set URLCache(NSURLCache? value) { - return _lib._objc_msgSend_913( - _id, _lib._sel_setURLCache_1, value?._id ?? ffi.nullptr); + /// 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 NSURLSessionWebSocketMessage._(other, lib, + retain: retain, release: release); } - bool get shouldUseExtendedBackgroundIdleMode { - return _lib._objc_msgSend_12( - _id, _lib._sel_shouldUseExtendedBackgroundIdleMode1); + /// 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_NSURLSessionWebSocketMessage1); } - set shouldUseExtendedBackgroundIdleMode(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setShouldUseExtendedBackgroundIdleMode_1, value); + 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); } - 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); + 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); } - set protocolClasses(NSArray? value) { - return _lib._objc_msgSend_765( - _id, _lib._sel_setProtocolClasses_1, value?._id ?? ffi.nullptr); + int get type { + return _lib._objc_msgSend_976(_id, _lib._sel_type1); } - int get multipathServiceType { - return _lib._objc_msgSend_986(_id, _lib._sel_multipathServiceType1); + 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); } - set multipathServiceType(int value) { - return _lib._objc_msgSend_987( - _id, _lib._sel_setMultipathServiceType_1, value); + 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); } @override - NSURLSessionConfiguration init() { + NSURLSessionWebSocketMessage init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + return NSURLSessionWebSocketMessage._(_ret, _lib, + retain: true, release: true); } - static NSURLSessionConfiguration new1(SentryCocoa _lib) { + static NSURLSessionWebSocketMessage new1(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionConfiguration1, _lib._sel_new1); - return NSURLSessionConfiguration._(_ret, _lib, - retain: false, release: true); - } - - static NSURLSessionConfiguration backgroundSessionConfiguration_( - SentryCocoa _lib, NSString? identifier) { - final _ret = _lib._objc_msgSend_979( - _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_NSURLSessionConfiguration1, - _lib._sel_allocWithZone_1, zone); - return NSURLSessionConfiguration._(_ret, _lib, + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_new1); + return NSURLSessionWebSocketMessage._(_ret, _lib, retain: false, release: true); } - static NSURLSessionConfiguration alloc(SentryCocoa _lib) { + static NSURLSessionWebSocketMessage alloc(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionConfiguration1, _lib._sel_alloc1); - return NSURLSessionConfiguration._(_ret, _lib, + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_alloc1); + return NSURLSessionWebSocketMessage._(_ret, _lib, retain: false, release: true); } @@ -67269,8 +65161,8 @@ class NSURLSessionConfiguration extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLSessionConfiguration1, + return _lib._objc_msgSend_14( + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -67279,24 +65171,24 @@ class NSURLSessionConfiguration extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionConfiguration1, + return _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_NSURLSessionConfiguration1, + return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketMessage1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLSessionConfiguration1, _lib._sel_useStoredAccessor1); + 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_NSURLSessionConfiguration1, + _lib._class_NSURLSessionWebSocketMessage1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -67305,66 +65197,141 @@ class NSURLSessionConfiguration extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSessionConfiguration1, + _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_NSURLSessionConfiguration1, + return _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_NSURLSessionConfiguration1, + 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_NSURLSessionConfiguration1, + final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketMessage1, _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 NSURLSessionWebSocketMessageType { + static const int NSURLSessionWebSocketMessageTypeData = 0; + static const int NSURLSessionWebSocketMessageTypeString = 1; } -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; +void _ObjCBlock46_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); } -abstract class NSURLSessionMultipathServiceType { - static const int NSURLSessionMultipathServiceTypeNone = 0; - static const int NSURLSessionMultipathServiceTypeHandover = 1; - static const int NSURLSessionMultipathServiceTypeInteractive = 2; - static const int NSURLSessionMultipathServiceTypeAggregate = 3; +final _ObjCBlock46_closureRegistry = {}; +int _ObjCBlock46_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock46_registerClosure(Function fn) { + final id = ++_ObjCBlock46_closureRegistryIndex; + _ObjCBlock46_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock46_closureTrampoline(ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, ffi.Pointer arg1) { + return (_ObjCBlock46_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer, ffi.Pointer))(arg0, arg1); +} + +class ObjCBlock46 extends _ObjCBlockBase { + ObjCBlock46._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock46.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)>( + _ObjCBlock46_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock46.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)>( + _ObjCBlock46_closureTrampoline) + .cast(), + _ObjCBlock46_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_NSArray_NSArray_NSArray_fnPtrTrampoline( +void _ObjCBlock47_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1, @@ -67383,37 +65350,34 @@ void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline( 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; +final _ObjCBlock47_closureRegistry = {}; +int _ObjCBlock47_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock47_registerClosure(Function fn) { + final id = ++_ObjCBlock47_closureRegistryIndex; + _ObjCBlock47_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline( +void _ObjCBlock47_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] + return (_ObjCBlock47_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) +class ObjCBlock47 extends _ObjCBlockBase { + ObjCBlock47._(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( + ObjCBlock47.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< - ffi.NativeFunction< + ffi + .NativeFunction< ffi.Void Function( ffi.Pointer arg0, ffi.Pointer arg1, @@ -67427,14 +65391,14 @@ class ObjCBlock_ffiVoid_NSArray_NSArray_NSArray extends _ObjCBlockBase { ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_fnPtrTrampoline) + _ObjCBlock47_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSArray_NSArray_NSArray.fromFunction( + ObjCBlock47.fromFunction( SentryCocoa lib, void Function(ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2) @@ -67447,9 +65411,9 @@ class ObjCBlock_ffiVoid_NSArray_NSArray_NSArray extends _ObjCBlockBase { ffi.Pointer arg0, ffi.Pointer arg1, ffi.Pointer arg2)>( - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_closureTrampoline) + _ObjCBlock47_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSArray_NSArray_NSArray_registerClosure(fn)), + _ObjCBlock47_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0, ffi.Pointer arg1, @@ -67471,178 +65435,404 @@ class ObjCBlock_ffiVoid_NSArray_NSArray_NSArray extends _ObjCBlockBase { } } -class NSURLSessionUploadTask extends NSURLSessionDataTask { - NSURLSessionUploadTask._(ffi.Pointer id, SentryCocoa lib, +void _ObjCBlock48_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 _ObjCBlock48_closureRegistry = {}; +int _ObjCBlock48_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock48_registerClosure(Function fn) { + final id = ++_ObjCBlock48_closureRegistryIndex; + _ObjCBlock48_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock48_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Pointer arg1, + ffi.Pointer arg2) { + return (_ObjCBlock48_closureRegistry[block.ref.target.address] + as void Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer))(arg0, arg1, arg2); +} + +class ObjCBlock48 extends _ObjCBlockBase { + ObjCBlock48._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock48.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)>( + _ObjCBlock48_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock48.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)>( + _ObjCBlock48_closureTrampoline) + .cast(), + _ObjCBlock48_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 [NSURLSessionUploadTask] that points to the same underlying object as [other]. - static NSURLSessionUploadTask castFrom(T other) { - return NSURLSessionUploadTask._(other._id, other._lib, + /// 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 [NSURLSessionUploadTask] that wraps the given raw object pointer. - static NSURLSessionUploadTask castFromPointer( - SentryCocoa lib, ffi.Pointer other, - {bool retain = false, bool release = false}) { - return NSURLSessionUploadTask._(other, lib, - retain: retain, release: release); + /// 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); + } + + /// 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); + } + + Protocol? get protocol { + final _ret = _lib._objc_msgSend_992(_id, _lib._sel_protocol1); + return _ret.address == 0 + ? null + : Protocol._(_ret, _lib, retain: true, release: true); + } + + NSObject? get target { + final _ret = _lib._objc_msgSend_822(_id, _lib._sel_target1); + return _ret.address == 0 + ? null + : NSObject._(_ret, _lib, retain: true, release: true); + } + + static NSProtocolChecker protocolCheckerWithTarget_protocol_( + SentryCocoa _lib, NSObject? anObject, Protocol? aProtocol) { + final _ret = _lib._objc_msgSend_993( + _lib._class_NSProtocolChecker1, + _lib._sel_protocolCheckerWithTarget_protocol_1, + anObject?._id ?? ffi.nullptr, + aProtocol?._id ?? ffi.nullptr); + return NSProtocolChecker._(_ret, _lib, retain: true, release: true); + } + + NSProtocolChecker initWithTarget_protocol_( + NSObject? anObject, Protocol? aProtocol) { + final _ret = _lib._objc_msgSend_993( + _id, + _lib._sel_initWithTarget_protocol_1, + anObject?._id ?? ffi.nullptr, + aProtocol?._id ?? ffi.nullptr); + return NSProtocolChecker._(_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); + } + + static bool respondsToSelector_( + SentryCocoa _lib, ffi.Pointer aSelector) { + return _lib._objc_msgSend_4(_lib._class_NSProtocolChecker1, + _lib._sel_respondsToSelector_1, aSelector); + } +} + +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 [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 [NSTask] that wraps the given raw object pointer. + static NSTask castFromPointer(SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return NSTask._(other, lib, retain: retain, release: release); + } + + /// 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_NSTask1); + } + + @override + NSTask init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSTask._(_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); + } + + set executableURL(NSURL? value) { + _lib._objc_msgSend_621( + _id, _lib._sel_setExecutableURL_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); + } + + set arguments(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); + } + + 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 environment(NSDictionary? value) { + _lib._objc_msgSend_171( + _id, _lib._sel_setEnvironment_1, value?._id ?? ffi.nullptr); + } + + 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); + } + + set currentDirectoryURL(NSURL? value) { + _lib._objc_msgSend_621( + _id, _lib._sel_setCurrentDirectoryURL_1, value?._id ?? ffi.nullptr); + } + + NSObject get standardInput { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardInput1); + return NSObject._(_ret, _lib, retain: true, release: true); + } + + set standardInput(NSObject value) { + _lib._objc_msgSend_387(_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); + } + + set standardOutput(NSObject value) { + _lib._objc_msgSend_387(_id, _lib._sel_setStandardOutput_1, value._id); + } + + NSObject get standardError { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardError1); + return NSObject._(_ret, _lib, retain: true, release: true); } - /// 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_NSURLSessionUploadTask1); + set standardError(NSObject value) { + _lib._objc_msgSend_387(_id, _lib._sel_setStandardError_1, value._id); } - @override - NSURLSessionUploadTask init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionUploadTask._(_ret, _lib, retain: true, release: true); + bool launchAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_225(_id, _lib._sel_launchAndReturnError_1, error); } - 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); + void interrupt() { + return _lib._objc_msgSend_1(_id, _lib._sel_interrupt1); } - 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); + void terminate() { + return _lib._objc_msgSend_1(_id, _lib._sel_terminate1); } - 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); + bool suspend() { + return _lib._objc_msgSend_12(_id, _lib._sel_suspend1); } - 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); + bool resume() { + return _lib._objc_msgSend_12(_id, _lib._sel_resume1); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionUploadTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + int get processIdentifier { + return _lib._objc_msgSend_219(_id, _lib._sel_processIdentifier1); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionUploadTask1, - _lib._sel_accessInstanceVariablesDirectly1); + bool get running { + return _lib._objc_msgSend_12(_id, _lib._sel_isRunning1); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLSessionUploadTask1, _lib._sel_useStoredAccessor1); + int get terminationStatus { + return _lib._objc_msgSend_219(_id, _lib._sel_terminationStatus1); } - 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); + int get terminationReason { + return _lib._objc_msgSend_994(_id, _lib._sel_terminationReason1); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionUploadTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + ObjCBlock49 get terminationHandler { + final _ret = _lib._objc_msgSend_995(_id, _lib._sel_terminationHandler1); + return ObjCBlock49._(_ret, _lib); } - 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); + set terminationHandler(ObjCBlock49 value) { + _lib._objc_msgSend_996(_id, _lib._sel_setTerminationHandler_1, value._id); } - 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); + int get qualityOfService { + return _lib._objc_msgSend_507(_id, _lib._sel_qualityOfService1); } - 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); + set qualityOfService(int value) { + _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_1, value); } -} -class NSURLSessionDownloadTask extends NSURLSessionTask { - NSURLSessionDownloadTask._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + static NSTask + launchedTaskWithExecutableURL_arguments_error_terminationHandler_( + SentryCocoa _lib, + NSURL? url, + NSArray? arguments, + ffi.Pointer> error, + ObjCBlock49 terminationHandler) { + final _ret = _lib._objc_msgSend_997( + _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); + } - /// 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); + void waitUntilExit() { + return _lib._objc_msgSend_1(_id, _lib._sel_waitUntilExit1); } - /// 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); + 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); } - /// 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); + set launchPath(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setLaunchPath_1, value?._id ?? ffi.nullptr); } - void cancelByProducingResumeData_( - ObjCBlock_ffiVoid_NSData completionHandler) { - _lib._objc_msgSend_997( - _id, _lib._sel_cancelByProducingResumeData_1, completionHandler._id); + 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); } - @override - NSURLSessionDownloadTask init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionDownloadTask._(_ret, _lib, retain: true, release: true); + set currentDirectoryPath(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setCurrentDirectoryPath_1, value?._id ?? ffi.nullptr); } - 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); + void launch() { + return _lib._objc_msgSend_1(_id, _lib._sel_launch1); } - 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); + static NSTask launchedTaskWithLaunchPath_arguments_( + SentryCocoa _lib, NSString? path, NSArray? arguments) { + final _ret = _lib._objc_msgSend_998( + _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 NSURLSessionDownloadTask alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionDownloadTask1, _lib._sel_alloc1); - return NSURLSessionDownloadTask._(_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 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_( @@ -67650,8 +65840,8 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLSessionDownloadTask1, + return _lib._objc_msgSend_14( + _lib._class_NSTask1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -67660,24 +65850,24 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionDownloadTask1, + return _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_NSURLSessionDownloadTask1, - _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_NSURLSessionDownloadTask1, _lib._sel_useStoredAccessor1); + _lib._class_NSTask1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionDownloadTask1, + _lib._class_NSTask1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -67686,34 +65876,39 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSessionDownloadTask1, + _lib._class_NSTask1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSURLSessionDownloadTask1, + return _lib._objc_msgSend_82( + _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_NSURLSessionDownloadTask1, - _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_NSURLSessionDownloadTask1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSTask1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -void _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline( +abstract class NSTaskTerminationReason { + static const int NSTaskTerminationReasonExit = 1; + static const int NSTaskTerminationReasonUncaughtSignal = 2; +} + +void _ObjCBlock49_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { return block.ref.target .cast< @@ -67721,26 +65916,26 @@ 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 _ObjCBlock49_closureRegistry = {}; +int _ObjCBlock49_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock49_registerClosure(Function fn) { + final id = ++_ObjCBlock49_closureRegistryIndex; + _ObjCBlock49_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } -void _ObjCBlock_ffiVoid_NSData_closureTrampoline( +void _ObjCBlock49_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { - return (_ObjCBlock_ffiVoid_NSData_closureRegistry[block.ref.target.address] - as void Function(ffi.Pointer))(arg0); + return (_ObjCBlock49_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 ObjCBlock49 extends _ObjCBlockBase { + ObjCBlock49._(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( + ObjCBlock49.fromFunctionPointer( SentryCocoa lib, ffi.Pointer< ffi @@ -67751,23 +65946,23 @@ class ObjCBlock_ffiVoid_NSData extends _ObjCBlockBase { _cFuncTrampoline ??= ffi.Pointer.fromFunction< ffi.Void Function(ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline) + _ObjCBlock49_fnPtrTrampoline) .cast(), ptr.cast()), lib); static ffi.Pointer? _cFuncTrampoline; /// Creates a block from a Dart function. - ObjCBlock_ffiVoid_NSData.fromFunction( + ObjCBlock49.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) + _ObjCBlock49_closureTrampoline) .cast(), - _ObjCBlock_ffiVoid_NSData_registerClosure(fn)), + _ObjCBlock49_registerClosure(fn)), lib); static ffi.Pointer? _dartFuncTrampoline; void call(ffi.Pointer arg0) { @@ -67782,469 +65977,345 @@ class ObjCBlock_ffiVoid_NSData extends _ObjCBlockBase { } } -class NSURLSessionStreamTask extends NSURLSessionTask { - NSURLSessionStreamTask._(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 [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 [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 [NSURLSessionStreamTask] that wraps the given raw object pointer. - static NSURLSessionStreamTask 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 NSURLSessionStreamTask._(other, lib, - retain: retain, release: release); + return NSXMLElement._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionStreamTask]. + /// 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_NSURLSessionStreamTask1); - } - - void readDataOfMinLength_maxLength_timeout_completionHandler_( - int minBytes, - int maxBytes, - double timeout, - ObjCBlock_ffiVoid_NSData_bool_NSError completionHandler) { - _lib._objc_msgSend_1001( - _id, - _lib._sel_readDataOfMinLength_maxLength_timeout_completionHandler_1, - minBytes, - maxBytes, - timeout, - completionHandler._id); - } - - void writeData_timeout_completionHandler_(NSData? data, double timeout, - ObjCBlock_ffiVoid_NSError completionHandler) { - _lib._objc_msgSend_1002( - _id, - _lib._sel_writeData_timeout_completionHandler_1, - data?._id ?? ffi.nullptr, - timeout, - completionHandler._id); - } - - void captureStreams() { - _lib._objc_msgSend_1(_id, _lib._sel_captureStreams1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLElement1); } - void closeWrite() { - _lib._objc_msgSend_1(_id, _lib._sel_closeWrite1); + 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); } - void closeRead() { - _lib._objc_msgSend_1(_id, _lib._sel_closeRead1); + 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); } - void startSecureConnection() { - _lib._objc_msgSend_1(_id, _lib._sel_startSecureConnection1); + 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); } - void stopSecureConnection() { - _lib._objc_msgSend_1(_id, _lib._sel_stopSecureConnection1); + 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); } @override - NSURLSessionStreamTask init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionStreamTask._(_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 NSURLSessionStreamTask 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); + NSXMLElement initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1000( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLElement._(_ret, _lib, retain: true, release: true); } - static NSURLSessionStreamTask alloc(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSURLSessionStreamTask1, _lib._sel_alloc1); - return NSURLSessionStreamTask._(_ret, _lib, retain: false, 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); } - static void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLSessionStreamTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + NSArray elementsForLocalName_URI_(NSString? localName, NSString? URI) { + final _ret = _lib._objc_msgSend_652( + _id, + _lib._sel_elementsForLocalName_URI_1, + localName?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSArray._(_ret, _lib, retain: true, release: true); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionStreamTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + void addAttribute_(NSXMLNode? attribute) { + return _lib._objc_msgSend_1012( + _id, _lib._sel_addAttribute_1, attribute?._id ?? ffi.nullptr); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionStreamTask1, - _lib._sel_accessInstanceVariablesDirectly1); + void removeAttributeForName_(NSString? name) { + return _lib._objc_msgSend_192( + _id, _lib._sel_removeAttributeForName_1, name?._id ?? ffi.nullptr); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLSessionStreamTask1, _lib._sel_useStoredAccessor1); + 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 NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionStreamTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + set attributes(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setAttributes_1, value?._id ?? ffi.nullptr); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionStreamTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + void setAttributesWithDictionary_(NSDictionary? attributes) { + return _lib._objc_msgSend_476(_id, _lib._sel_setAttributesWithDictionary_1, + attributes?._id ?? ffi.nullptr); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSURLSessionStreamTask1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + NSXMLNode attributeForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1016( + _id, _lib._sel_attributeForName_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_NSURLSessionStreamTask1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, release: true); + NSXMLNode attributeForLocalName_URI_(NSString? localName, NSString? URI) { + final _ret = _lib._objc_msgSend_1033( + _id, + _lib._sel_attributeForLocalName_URI_1, + localName?._id ?? ffi.nullptr, + URI?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionStreamTask1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + void addNamespace_(NSXMLNode? aNamespace) { + return _lib._objc_msgSend_1012( + _id, _lib._sel_addNamespace_1, aNamespace?._id ?? ffi.nullptr); } -} - -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.Bool arg1, - ffi.Pointer arg2)>>() - .asFunction< - void Function(ffi.Pointer arg0, bool arg1, - ffi.Pointer arg2)>()(arg0, arg1, arg2); -} -final _ObjCBlock_ffiVoid_NSData_bool_NSError_closureRegistry = - {}; -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_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); -} - -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_NSData_bool_NSError.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_NSData_bool_NSError_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) - : 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) - .cast(), - _ObjCBlock_ffiVoid_NSData_bool_NSError_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); + void removeNamespaceForPrefix_(NSString? name) { + return _lib._objc_msgSend_192( + _id, _lib._sel_removeNamespaceForPrefix_1, name?._id ?? ffi.nullptr); } -} - -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 [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); + 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); } - /// 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 NSNetService._(other, lib, retain: retain, release: release); + set namespaces(NSArray? value) { + _lib._objc_msgSend_731( + _id, _lib._sel_setNamespaces_1, value?._id ?? ffi.nullptr); } - /// 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_NSNetService1); + NSXMLNode namespaceForPrefix_(NSString? name) { + final _ret = _lib._objc_msgSend_1016( + _id, _lib._sel_namespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - NSNetService initWithDomain_type_name_port_( - NSString? domain, NSString? type, NSString? name, int port) { - final _ret = _lib._objc_msgSend_1004( - _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); + NSXMLNode resolveNamespaceForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1016( + _id, _lib._sel_resolveNamespaceForName_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - NSNetService initWithDomain_type_name_( - NSString? domain, NSString? type, NSString? name) { - final _ret = _lib._objc_msgSend_26( + NSString resolvePrefixForNamespaceURI_(NSString? namespaceURI) { + final _ret = _lib._objc_msgSend_64( _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_533(_id, _lib._sel_scheduleInRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); + _lib._sel_resolvePrefixForNamespaceURI_1, + namespaceURI?._id ?? ffi.nullptr); + return NSString._(_ret, _lib, retain: true, release: true); } - void removeFromRunLoop_forMode_(NSRunLoop? aRunLoop, NSString mode) { - _lib._objc_msgSend_533(_id, _lib._sel_removeFromRunLoop_forMode_1, - aRunLoop?._id ?? ffi.nullptr, mode._id); + void insertChild_atIndex_(NSXMLNode? child, int index) { + return _lib._objc_msgSend_1010( + _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); } - 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 insertChildren_atIndex_(NSArray? children, int index) { + return _lib._objc_msgSend_1011(_id, _lib._sel_insertChildren_atIndex_1, + children?._id ?? ffi.nullptr, index); } - set delegate(NSObject? value) { - return _lib._objc_msgSend_387( - _id, _lib._sel_setDelegate_1, value?._id ?? ffi.nullptr); + void removeChildAtIndex_(int index) { + return _lib._objc_msgSend_439(_id, _lib._sel_removeChildAtIndex_1, index); } - bool get includesPeerToPeer { - return _lib._objc_msgSend_12(_id, _lib._sel_includesPeerToPeer1); + void setChildren_(NSArray? children) { + return _lib._objc_msgSend_441( + _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); } - set includesPeerToPeer(bool value) { - return _lib._objc_msgSend_492( - _id, _lib._sel_setIncludesPeerToPeer_1, value); + void addChild_(NSXMLNode? child) { + return _lib._objc_msgSend_1012( + _id, _lib._sel_addChild_1, child?._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); + void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { + return _lib._objc_msgSend_1013( + _id, + _lib._sel_replaceChildAtIndex_withNode_1, + index, + node?._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 normalizeAdjacentTextNodesPreservingCDATA_(bool preserve) { + return _lib._objc_msgSend_790( + _id, _lib._sel_normalizeAdjacentTextNodesPreservingCDATA_1, preserve); } - 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 setAttributesAsDictionary_(NSDictionary? attributes) { + return _lib._objc_msgSend_476(_id, _lib._sel_setAttributesAsDictionary_1, + attributes?._id ?? ffi.nullptr); } - 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); + 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); } - 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); + static NSObject documentWithRootElement_( + SentryCocoa _lib, NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1001(_lib._class_NSXMLElement1, + _lib._sel_documentWithRootElement_1, element?._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 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); } - void publish() { - _lib._objc_msgSend_1(_id, _lib._sel_publish1); + 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); } - void publishWithOptions_(int options) { - _lib._objc_msgSend_1005(_id, _lib._sel_publishWithOptions_1, options); + 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); } - void resolve() { - _lib._objc_msgSend_1(_id, _lib._sel_resolve1); + static NSObject elementWithName_children_attributes_(SentryCocoa _lib, + NSString? name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1002( + _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); } - void stop() { - _lib._objc_msgSend_1(_id, _lib._sel_stop1); + 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); } - static NSDictionary dictionaryFromTXTRecordData_( - SentryCocoa _lib, NSData? txtData) { - final _ret = _lib._objc_msgSend_1006(_lib._class_NSNetService1, - _lib._sel_dictionaryFromTXTRecordData_1, txtData?._id ?? ffi.nullptr); - return NSDictionary._(_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_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); } - static NSData dataFromTXTRecordDictionary_( - SentryCocoa _lib, NSDictionary? txtDictionary) { - final _ret = _lib._objc_msgSend_1007( - _lib._class_NSNetService1, - _lib._sel_dataFromTXTRecordDictionary_1, - txtDictionary?._id ?? ffi.nullptr); - return NSData._(_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); } - void resolveWithTimeout_(double timeout) { - _lib._objc_msgSend_505(_id, _lib._sel_resolveWithTimeout_1, timeout); + 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); } - bool getInputStream_outputStream_( - ffi.Pointer> inputStream, - ffi.Pointer> outputStream) { - return _lib._objc_msgSend_1008(_id, _lib._sel_getInputStream_outputStream_1, - inputStream, outputStream); + 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); } - bool setTXTRecordData_(NSData? recordData) { - return _lib._objc_msgSend_23( - _id, _lib._sel_setTXTRecordData_1, recordData?._id ?? ffi.nullptr); + 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); } - NSData TXTRecordData() { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_TXTRecordData1); - return NSData._(_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); } - void startMonitoring() { - _lib._objc_msgSend_1(_id, _lib._sel_startMonitoring1); + 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); } - void stopMonitoring() { - _lib._objc_msgSend_1(_id, _lib._sel_stopMonitoring1); + 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); } - @override - NSNetService init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSNetService._(_ret, _lib, retain: true, release: true); + static NSXMLNode predefinedNamespaceForPrefix_( + SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1016(_lib._class_NSXMLElement1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - static NSNetService new1(SentryCocoa _lib) { + static NSXMLElement new1(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_new1); - return NSNetService._(_ret, _lib, retain: false, release: true); - } - - static NSNetService 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); + _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_new1); + return NSXMLElement._(_ret, _lib, retain: false, release: true); } - static NSNetService alloc(SentryCocoa _lib) { + static NSXMLElement alloc(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSNetService1, _lib._sel_alloc1); - return NSNetService._(_ret, _lib, retain: false, release: true); + _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_alloc1); + return NSXMLElement._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -68252,8 +66323,8 @@ class NSNetService extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSNetService1, + return _lib._objc_msgSend_14( + _lib._class_NSXMLElement1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -68262,24 +66333,24 @@ class NSNetService extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSNetService1, + return _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_NSNetService1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSXMLElement1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSNetService1, _lib._sel_useStoredAccessor1); + _lib._class_NSXMLElement1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSNetService1, + _lib._class_NSXMLElement1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -68288,15 +66359,15 @@ class NSNetService extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSNetService1, + _lib._class_NSXMLElement1, _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, + return _lib._objc_msgSend_82( + _lib._class_NSXMLElement1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -68304,272 +66375,392 @@ class NSNetService extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSNetService1, _lib._sel_classFallbacksForKeyedArchiver1); + _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_NSNetService1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSXMLElement1, _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, +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 [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 [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 [NSURLSessionWebSocketTask] that wraps the given raw object pointer. - static NSURLSessionWebSocketTask 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 NSURLSessionWebSocketTask._(other, lib, - retain: retain, release: release); + return NSXMLNode._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSURLSessionWebSocketTask]. + /// 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_NSURLSessionWebSocketTask1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLNode1); } - void sendMessage_completionHandler_(NSURLSessionWebSocketMessage? message, - ObjCBlock_ffiVoid_NSError completionHandler) { - _lib._objc_msgSend_1011(_id, _lib._sel_sendMessage_completionHandler_1, - message?._id ?? ffi.nullptr, completionHandler._id); + @override + NSXMLNode init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - void receiveMessageWithCompletionHandler_( - ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError - completionHandler) { - _lib._objc_msgSend_1012(_id, - _lib._sel_receiveMessageWithCompletionHandler_1, completionHandler._id); + NSXMLNode initWithKind_(int kind) { + final _ret = _lib._objc_msgSend_999(_id, _lib._sel_initWithKind_1, kind); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - void sendPingWithPongReceiveHandler_( - ObjCBlock_ffiVoid_NSError pongReceiveHandler) { - _lib._objc_msgSend_1013(_id, _lib._sel_sendPingWithPongReceiveHandler_1, - pongReceiveHandler._id); + NSXMLNode initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1000( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - void cancelWithCloseCode_reason_(int closeCode, NSData? reason) { - _lib._objc_msgSend_1014(_id, _lib._sel_cancelWithCloseCode_reason_1, - closeCode, reason?._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); } - int get maximumMessageSize { - return _lib._objc_msgSend_78(_id, _lib._sel_maximumMessageSize1); + static NSObject documentWithRootElement_( + SentryCocoa _lib, NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1001(_lib._class_NSXMLNode1, + _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - set maximumMessageSize(int value) { - return _lib._objc_msgSend_590( - _id, _lib._sel_setMaximumMessageSize_1, value); + 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); } - int get closeCode { - return _lib._objc_msgSend_1015(_id, _lib._sel_closeCode1); + 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); } - NSData? get closeReason { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_closeReason1); + 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 NSObject elementWithName_children_attributes_(SentryCocoa _lib, + NSString? name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1002( + _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 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 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 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 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 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 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 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 kind { + return _lib._objc_msgSend_1003(_id, _lib._sel_kind1); + } + + NSString? get name { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_name1); return _ret.address == 0 ? null - : NSData._(_ret, _lib, retain: true, release: true); + : NSString._(_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); + set name(NSString? value) { + _lib._objc_msgSend_509(_id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); } - 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); + NSObject get objectValue { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_objectValue1); + return NSObject._(_ret, _lib, retain: true, 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); + set objectValue(NSObject value) { + _lib._objc_msgSend_387(_id, _lib._sel_setObjectValue_1, value._id); } - 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); + 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 void cancelPreviousPerformRequestsWithTarget_selector_object_( - SentryCocoa _lib, - NSObject aTarget, - ffi.Pointer aSelector, - NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLSessionWebSocketTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + set stringValue(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setStringValue_1, value?._id ?? ffi.nullptr); } - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketTask1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); + void setStringValue_resolvingEntities_(NSString? string, bool resolve) { + return _lib._objc_msgSend_1004( + _id, + _lib._sel_setStringValue_resolvingEntities_1, + string?._id ?? ffi.nullptr, + resolve); } - static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12(_lib._class_NSURLSessionWebSocketTask1, - _lib._sel_accessInstanceVariablesDirectly1); + int get index { + return _lib._objc_msgSend_10(_id, _lib._sel_index1); } - static bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSURLSessionWebSocketTask1, _lib._sel_useStoredAccessor1); + int get level { + return _lib._objc_msgSend_10(_id, _lib._sel_level1); } - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionWebSocketTask1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, release: true); + NSXMLDocument? get rootDocument { + final _ret = _lib._objc_msgSend_1027(_id, _lib._sel_rootDocument1); + return _ret.address == 0 + ? null + : NSXMLDocument._(_ret, _lib, retain: true, release: true); } - static bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSURLSessionWebSocketTask1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + NSXMLNode? get parent { + final _ret = _lib._objc_msgSend_1028(_id, _lib._sel_parent1); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); } - static void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSURLSessionWebSocketTask1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + int get childCount { + return _lib._objc_msgSend_10(_id, _lib._sel_childCount1); } - static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79(_lib._class_NSURLSessionWebSocketTask1, - _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_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 NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSURLSessionWebSocketTask1, - _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, release: true); + NSXMLNode childAtIndex_(int index) { + final _ret = _lib._objc_msgSend_1029(_id, _lib._sel_childAtIndex_1, index); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } -} -class NSURLSessionWebSocketMessage extends NSObject { - NSURLSessionWebSocketMessage._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + NSXMLNode? get previousSibling { + final _ret = _lib._objc_msgSend_1028(_id, _lib._sel_previousSibling1); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); + } - /// 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); + NSXMLNode? get nextSibling { + final _ret = _lib._objc_msgSend_1028(_id, _lib._sel_nextSibling1); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + NSXMLNode? get previousNode { + final _ret = _lib._objc_msgSend_1028(_id, _lib._sel_previousNode1); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + NSXMLNode? get nextNode { + final _ret = _lib._objc_msgSend_1028(_id, _lib._sel_nextNode1); + return _ret.address == 0 + ? null + : NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + void detach() { + return _lib._objc_msgSend_1(_id, _lib._sel_detach1); + } + + 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); + } + + 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); } - /// 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 NSURLSessionWebSocketMessage._(other, lib, - retain: retain, release: release); + 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); } - /// 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_NSURLSessionWebSocketMessage1); + 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); } - 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); + set URI(NSString? value) { + _lib._objc_msgSend_509(_id, _lib._sel_setURI_1, value?._id ?? ffi.nullptr); } - 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); + 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); } - int get type { - return _lib._objc_msgSend_1010(_id, _lib._sel_type1); + 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); } - NSData? get data { - final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); + static NSXMLNode predefinedNamespaceForPrefix_( + SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1016(_lib._class_NSXMLNode1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); + } + + NSString? get description { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); 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); + 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); } - @override - NSURLSessionWebSocketMessage init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionWebSocketMessage._(_ret, _lib, - retain: true, release: true); + NSString XMLStringWithOptions_(int options) { + final _ret = + _lib._objc_msgSend_1030(_id, _lib._sel_XMLStringWithOptions_1, options); + return NSString._(_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); + NSString canonicalXMLStringPreservingComments_(bool comments) { + final _ret = _lib._objc_msgSend_1031( + _id, _lib._sel_canonicalXMLStringPreservingComments_1, comments); + return NSString._(_ret, _lib, retain: true, release: true); } - static NSURLSessionWebSocketMessage 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); + NSArray nodesForXPath_error_( + NSString? xpath, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_414( + _id, _lib._sel_nodesForXPath_error_1, xpath?._id ?? ffi.nullptr, error); + return NSArray._(_ret, _lib, retain: true, 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); + NSArray objectsForXQuery_constants_error_(NSString? xquery, + NSDictionary? constants, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1032( + _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_414(_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 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_( @@ -68577,8 +66768,8 @@ class NSURLSessionWebSocketMessage extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSURLSessionWebSocketMessage1, + return _lib._objc_msgSend_14( + _lib._class_NSXMLNode1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -68587,24 +66778,24 @@ class NSURLSessionWebSocketMessage extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSURLSessionWebSocketMessage1, + return _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_NSURLSessionWebSocketMessage1, - _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12( + _lib._class_NSXMLNode1, _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_NSXMLNode1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSURLSessionWebSocketMessage1, + _lib._class_NSXMLNode1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -68613,15 +66804,15 @@ class NSURLSessionWebSocketMessage extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSURLSessionWebSocketMessage1, + _lib._class_NSXMLNode1, _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, + return _lib._objc_msgSend_82( + _lib._class_NSXMLNode1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -68629,661 +66820,434 @@ class NSURLSessionWebSocketMessage extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSURLSessionWebSocketMessage1, - _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_NSURLSessionWebSocketMessage1, - _lib._sel_classForKeyedUnarchiver1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSXMLNode1, _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); +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; } -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); - } +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 NSProtocolChecker extends NSProxy { - NSProtocolChecker._(ffi.Pointer id, SentryCocoa lib, +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 [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 [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 [NSProtocolChecker] that wraps the given raw object pointer. - static NSProtocolChecker 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 NSProtocolChecker._(other, lib, retain: retain, release: release); + return NSXMLDocument._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSProtocolChecker]. + /// 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_NSProtocolChecker1); + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDocument1); } - Protocol? get protocol { - final _ret = _lib._objc_msgSend_1026(_id, _lib._sel_protocol1); - return _ret.address == 0 - ? null - : Protocol._(_ret, _lib, retain: true, release: true); + @override + NSXMLDocument init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); } - NSObject? get target { - final _ret = _lib._objc_msgSend_856(_id, _lib._sel_target1); - return _ret.address == 0 - ? null - : NSObject._(_ret, _lib, retain: true, release: true); + NSXMLDocument initWithXMLString_options_error_( + NSString? string, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1005( + _id, + _lib._sel_initWithXMLString_options_error_1, + string?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); } - static NSProtocolChecker protocolCheckerWithTarget_protocol_( - SentryCocoa _lib, NSObject? anObject, Protocol? aProtocol) { - final _ret = _lib._objc_msgSend_1027( - _lib._class_NSProtocolChecker1, - _lib._sel_protocolCheckerWithTarget_protocol_1, - anObject?._id ?? ffi.nullptr, - aProtocol?._id ?? ffi.nullptr); - return NSProtocolChecker._(_ret, _lib, retain: true, release: true); + NSXMLDocument initWithContentsOfURL_options_error_( + NSURL? url, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1006( + _id, + _lib._sel_initWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); + } + + NSXMLDocument initWithData_options_error_( + NSData? data, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1007( + _id, + _lib._sel_initWithData_options_error_1, + data?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDocument._(_ret, _lib, retain: true, release: true); } - NSProtocolChecker initWithTarget_protocol_( - NSObject? anObject, Protocol? aProtocol) { - final _ret = _lib._objc_msgSend_1027( - _id, - _lib._sel_initWithTarget_protocol_1, - anObject?._id ?? ffi.nullptr, - aProtocol?._id ?? ffi.nullptr); - return NSProtocolChecker._(_ret, _lib, retain: true, release: true); + NSXMLDocument initWithRootElement_(NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1001( + _id, _lib._sel_initWithRootElement_1, element?._id ?? ffi.nullptr); + return NSXMLDocument._(_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); + 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 bool respondsToSelector_( - SentryCocoa _lib, ffi.Pointer aSelector) { - return _lib._objc_msgSend_4(_lib._class_NSProtocolChecker1, - _lib._sel_respondsToSelector_1, aSelector); + 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); } -} -class NSTask extends NSObject { - NSTask._(ffi.Pointer id, SentryCocoa lib, - {bool retain = false, bool release = false}) - : super._(id, lib, retain: retain, release: release); + set characterEncoding(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setCharacterEncoding_1, value?._id ?? ffi.nullptr); + } - /// 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); + 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); } - /// 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 NSTask._(other, lib, retain: retain, release: release); + set version(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setVersion_1, value?._id ?? ffi.nullptr); } - /// 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_NSTask1); + bool get standalone { + return _lib._objc_msgSend_12(_id, _lib._sel_isStandalone1); } - @override - NSTask init() { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSTask._(_ret, _lib, retain: true, release: true); + set standalone(bool value) { + _lib._objc_msgSend_492(_id, _lib._sel_setStandalone_1, value); } - 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); + int get documentContentKind { + return _lib._objc_msgSend_1008(_id, _lib._sel_documentContentKind1); } - set executableURL(NSURL? value) { - return _lib._objc_msgSend_655( - _id, _lib._sel_setExecutableURL_1, value?._id ?? ffi.nullptr); + set documentContentKind(int value) { + _lib._objc_msgSend_1009(_id, _lib._sel_setDocumentContentKind_1, value); } - NSArray? get arguments { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_arguments1); + NSString? get MIMEType { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_MIMEType1); 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_765( - _id, _lib._sel_setArguments_1, value?._id ?? ffi.nullptr); + set MIMEType(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setMIMEType_1, value?._id ?? ffi.nullptr); } - NSDictionary? get environment { - final _ret = _lib._objc_msgSend_170(_id, _lib._sel_environment1); + NSXMLDTD? get DTD { + final _ret = _lib._objc_msgSend_1019(_id, _lib._sel_DTD1); return _ret.address == 0 ? null - : NSDictionary._(_ret, _lib, retain: true, release: true); + : NSXMLDTD._(_ret, _lib, retain: true, release: true); } - set environment(NSDictionary? value) { - return _lib._objc_msgSend_171( - _id, _lib._sel_setEnvironment_1, value?._id ?? ffi.nullptr); + set DTD(NSXMLDTD? value) { + _lib._objc_msgSend_1020(_id, _lib._sel_setDTD_1, value?._id ?? ffi.nullptr); } - 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); + void setRootElement_(NSXMLElement? root) { + return _lib._objc_msgSend_1021( + _id, _lib._sel_setRootElement_1, root?._id ?? ffi.nullptr); } - set currentDirectoryURL(NSURL? value) { - return _lib._objc_msgSend_655( - _id, _lib._sel_setCurrentDirectoryURL_1, value?._id ?? ffi.nullptr); + NSXMLElement rootElement() { + final _ret = _lib._objc_msgSend_1022(_id, _lib._sel_rootElement1); + return NSXMLElement._(_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); + void insertChild_atIndex_(NSXMLNode? child, int index) { + return _lib._objc_msgSend_1010( + _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); } - set standardInput(NSObject value) { - return _lib._objc_msgSend_387(_id, _lib._sel_setStandardInput_1, value._id); + void insertChildren_atIndex_(NSArray? children, int index) { + return _lib._objc_msgSend_1011(_id, _lib._sel_insertChildren_atIndex_1, + children?._id ?? ffi.nullptr, index); } - NSObject get standardOutput { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardOutput1); - return NSObject._(_ret, _lib, retain: true, release: true); + void removeChildAtIndex_(int index) { + return _lib._objc_msgSend_439(_id, _lib._sel_removeChildAtIndex_1, index); } - set standardOutput(NSObject value) { - return _lib._objc_msgSend_387( - _id, _lib._sel_setStandardOutput_1, value._id); + void setChildren_(NSArray? children) { + return _lib._objc_msgSend_441( + _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); } - NSObject get standardError { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_standardError1); - return NSObject._(_ret, _lib, retain: true, release: true); + void addChild_(NSXMLNode? child) { + return _lib._objc_msgSend_1012( + _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); } - set standardError(NSObject value) { - return _lib._objc_msgSend_387(_id, _lib._sel_setStandardError_1, value._id); + void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { + return _lib._objc_msgSend_1013( + _id, + _lib._sel_replaceChildAtIndex_withNode_1, + index, + node?._id ?? ffi.nullptr); } - bool launchAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_225(_id, _lib._sel_launchAndReturnError_1, error); + 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); } - void interrupt() { - _lib._objc_msgSend_1(_id, _lib._sel_interrupt1); + NSData XMLDataWithOptions_(int options) { + final _ret = + _lib._objc_msgSend_1023(_id, _lib._sel_XMLDataWithOptions_1, options); + return NSData._(_ret, _lib, retain: true, release: true); } - void terminate() { - _lib._objc_msgSend_1(_id, _lib._sel_terminate1); + NSObject objectByApplyingXSLT_arguments_error_(NSData? xslt, + NSDictionary? arguments, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1024( + _id, + _lib._sel_objectByApplyingXSLT_arguments_error_1, + xslt?._id ?? ffi.nullptr, + arguments?._id ?? ffi.nullptr, + error); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool suspend() { - return _lib._objc_msgSend_12(_id, _lib._sel_suspend1); + NSObject objectByApplyingXSLTString_arguments_error_(NSString? xslt, + NSDictionary? arguments, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1025( + _id, + _lib._sel_objectByApplyingXSLTString_arguments_error_1, + xslt?._id ?? ffi.nullptr, + arguments?._id ?? ffi.nullptr, + error); + return NSObject._(_ret, _lib, retain: true, release: true); } - bool resume() { - return _lib._objc_msgSend_12(_id, _lib._sel_resume1); + NSObject objectByApplyingXSLTAtURL_arguments_error_(NSURL? xsltURL, + NSDictionary? argument, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1026( + _id, + _lib._sel_objectByApplyingXSLTAtURL_arguments_error_1, + xsltURL?._id ?? ffi.nullptr, + argument?._id ?? ffi.nullptr, + error); + return NSObject._(_ret, _lib, retain: true, release: true); } - int get processIdentifier { - return _lib._objc_msgSend_219(_id, _lib._sel_processIdentifier1); + bool validateAndReturnError_(ffi.Pointer> error) { + return _lib._objc_msgSend_225( + _id, _lib._sel_validateAndReturnError_1, error); } - bool get running { - return _lib._objc_msgSend_12(_id, _lib._sel_isRunning1); + 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); } - int get terminationStatus { - return _lib._objc_msgSend_219(_id, _lib._sel_terminationStatus1); + static NSObject documentWithRootElement_( + SentryCocoa _lib, NSXMLElement? element) { + final _ret = _lib._objc_msgSend_1001(_lib._class_NSXMLDocument1, + _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); + return NSObject._(_ret, _lib, retain: true, release: true); } - int get terminationReason { - return _lib._objc_msgSend_1028(_id, _lib._sel_terminationReason1); + 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); } - ObjCBlock_ffiVoid_NSTask get terminationHandler { - final _ret = _lib._objc_msgSend_1029(_id, _lib._sel_terminationHandler1); - return ObjCBlock_ffiVoid_NSTask._(_ret, _lib); + 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); } - set terminationHandler(ObjCBlock_ffiVoid_NSTask value) { - return _lib._objc_msgSend_1030( - _id, _lib._sel_setTerminationHandler_1, value._id); + 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); } - int get qualityOfService { - return _lib._objc_msgSend_507(_id, _lib._sel_qualityOfService1); + static NSObject elementWithName_children_attributes_(SentryCocoa _lib, + NSString? name, NSArray? children, NSArray? attributes) { + final _ret = _lib._objc_msgSend_1002( + _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); } - set qualityOfService(int value) { - return _lib._objc_msgSend_508(_id, _lib._sel_setQualityOfService_1, value); + 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); } - static NSTask - launchedTaskWithExecutableURL_arguments_error_terminationHandler_( - SentryCocoa _lib, - NSURL? url, - NSArray? arguments, - ffi.Pointer> error, - ObjCBlock_ffiVoid_NSTask terminationHandler) { - final _ret = _lib._objc_msgSend_1031( - _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); + 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); } - void waitUntilExit() { - _lib._objc_msgSend_1(_id, _lib._sel_waitUntilExit1); + 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); } - 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); + 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 launchPath(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setLaunchPath_1, value?._id ?? ffi.nullptr); + 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 currentDirectoryPath { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_currentDirectoryPath1); - 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); } - set currentDirectoryPath(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setCurrentDirectoryPath_1, value?._id ?? ffi.nullptr); + 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); } - void launch() { - _lib._objc_msgSend_1(_id, _lib._sel_launch1); + 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); } - static NSTask launchedTaskWithLaunchPath_arguments_( - SentryCocoa _lib, NSString? path, NSArray? arguments) { - final _ret = _lib._objc_msgSend_1032( - _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 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); } - 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 NSXMLNode predefinedNamespaceForPrefix_( + SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1016(_lib._class_NSXMLDocument1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - static NSTask 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); + 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 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 NSXMLDocument alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_alloc1); + return NSXMLDocument._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -69291,8 +67255,8 @@ class NSTask extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSTask1, + return _lib._objc_msgSend_14( + _lib._class_NSXMLDocument1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -69301,24 +67265,24 @@ class NSTask extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSTask1, + return _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_NSTask1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSXMLDocument1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSTask1, _lib._sel_useStoredAccessor1); + _lib._class_NSXMLDocument1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSTask1, + _lib._class_NSXMLDocument1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -69327,15 +67291,15 @@ class NSTask extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSTask1, + _lib._class_NSXMLDocument1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSTask1, + return _lib._objc_msgSend_82( + _lib._class_NSXMLDocument1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -69343,314 +67307,190 @@ class NSTask extends NSObject { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSTask1, _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_NSTask1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSXMLDocument1, _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) { - return block.ref.target - .cast< - ffi.NativeFunction arg0)>>() - .asFunction arg0)>()(arg0); -} - -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_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_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_NSTask.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_NSTask_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) - : this._( - lib._newBlock1( - _dartFuncTrampoline ??= ffi.Pointer.fromFunction< - ffi.Void Function(ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0)>( - _ObjCBlock_ffiVoid_NSTask_closureTrampoline) - .cast(), - _ObjCBlock_ffiVoid_NSTask_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); - } +abstract class NSXMLDocumentContentKind { + static const int NSXMLDocumentXMLKind = 0; + static const int NSXMLDocumentXHTMLKind = 1; + static const int NSXMLDocumentHTMLKind = 2; + static const int NSXMLDocumentTextKind = 3; } -class NSXMLElement extends NSXMLNode { - NSXMLElement._(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 [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 [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 [NSXMLElement] that wraps the given raw object pointer. - static NSXMLElement 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 NSXMLElement._(other, lib, retain: retain, release: release); + return NSXMLDTD._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSXMLElement]. + /// 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_NSXMLElement1); - } - - 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); - } - - 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); - } - - 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); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDTD1); } - 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); + @override + NSXMLDTD init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); } @override - NSXMLElement initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1034( + NSXMLDTD initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1000( _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLElement._(_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); - } - - NSArray elementsForLocalName_URI_(NSString? localName, NSString? URI) { - final _ret = _lib._objc_msgSend_686( - _id, - _lib._sel_elementsForLocalName_URI_1, - localName?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSArray._(_ret, _lib, retain: true, release: true); - } - - void addAttribute_(NSXMLNode? attribute) { - _lib._objc_msgSend_1046( - _id, _lib._sel_addAttribute_1, attribute?._id ?? ffi.nullptr); - } - - void removeAttributeForName_(NSString? name) { - _lib._objc_msgSend_192( - _id, _lib._sel_removeAttributeForName_1, name?._id ?? ffi.nullptr); - } - - 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); - } - - set attributes(NSArray? value) { - return _lib._objc_msgSend_765( - _id, _lib._sel_setAttributes_1, value?._id ?? ffi.nullptr); - } - - void setAttributesWithDictionary_(NSDictionary? attributes) { - _lib._objc_msgSend_476(_id, _lib._sel_setAttributesWithDictionary_1, - attributes?._id ?? ffi.nullptr); - } - - NSXMLNode attributeForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1050( - _id, _lib._sel_attributeForName_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); - } - - NSXMLNode attributeForLocalName_URI_(NSString? localName, NSString? URI) { - final _ret = _lib._objc_msgSend_1067( - _id, - _lib._sel_attributeForLocalName_URI_1, - localName?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); } - void addNamespace_(NSXMLNode? aNamespace) { - _lib._objc_msgSend_1046( - _id, _lib._sel_addNamespace_1, aNamespace?._id ?? ffi.nullptr); + NSXMLDTD initWithContentsOfURL_options_error_( + NSURL? url, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1006( + _id, + _lib._sel_initWithContentsOfURL_options_error_1, + url?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); } - void removeNamespaceForPrefix_(NSString? name) { - _lib._objc_msgSend_192( - _id, _lib._sel_removeNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + NSXMLDTD initWithData_options_error_( + NSData? data, int mask, ffi.Pointer> error) { + final _ret = _lib._objc_msgSend_1007( + _id, + _lib._sel_initWithData_options_error_1, + data?._id ?? ffi.nullptr, + mask, + error); + return NSXMLDTD._(_ret, _lib, retain: true, release: true); } - NSArray? get namespaces { - final _ret = _lib._objc_msgSend_79(_id, _lib._sel_namespaces1); + NSString? get publicID { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); return _ret.address == 0 ? null - : NSArray._(_ret, _lib, retain: true, release: true); - } - - set namespaces(NSArray? value) { - return _lib._objc_msgSend_765( - _id, _lib._sel_setNamespaces_1, value?._id ?? ffi.nullptr); + : NSString._(_ret, _lib, retain: true, release: true); } - NSXMLNode namespaceForPrefix_(NSString? name) { - final _ret = _lib._objc_msgSend_1050( - _id, _lib._sel_namespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + set publicID(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); } - NSXMLNode resolveNamespaceForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1050( - _id, _lib._sel_resolveNamespaceForName_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_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); } - 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); + set systemID(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); } void insertChild_atIndex_(NSXMLNode? child, int index) { - _lib._objc_msgSend_1044( + return _lib._objc_msgSend_1010( _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); } void insertChildren_atIndex_(NSArray? children, int index) { - _lib._objc_msgSend_1045(_id, _lib._sel_insertChildren_atIndex_1, + return _lib._objc_msgSend_1011(_id, _lib._sel_insertChildren_atIndex_1, children?._id ?? ffi.nullptr, index); } void removeChildAtIndex_(int index) { - _lib._objc_msgSend_439(_id, _lib._sel_removeChildAtIndex_1, index); + return _lib._objc_msgSend_439(_id, _lib._sel_removeChildAtIndex_1, index); } void setChildren_(NSArray? children) { - _lib._objc_msgSend_441( + return _lib._objc_msgSend_441( _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); } void addChild_(NSXMLNode? child) { - _lib._objc_msgSend_1046( + return _lib._objc_msgSend_1012( _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); } void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { - _lib._objc_msgSend_1047(_id, _lib._sel_replaceChildAtIndex_withNode_1, - index, node?._id ?? ffi.nullptr); + return _lib._objc_msgSend_1013( + _id, + _lib._sel_replaceChildAtIndex_withNode_1, + index, + node?._id ?? ffi.nullptr); } - void normalizeAdjacentTextNodesPreservingCDATA_(bool preserve) { - _lib._objc_msgSend_824( - _id, _lib._sel_normalizeAdjacentTextNodesPreservingCDATA_1, preserve); + NSXMLDTDNode entityDeclarationForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1017( + _id, _lib._sel_entityDeclarationForName_1, name?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - void setAttributesAsDictionary_(NSDictionary? attributes) { - _lib._objc_msgSend_476(_id, _lib._sel_setAttributesAsDictionary_1, - attributes?._id ?? ffi.nullptr); + NSXMLDTDNode notationDeclarationForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1017( + _id, _lib._sel_notationDeclarationForName_1, name?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _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); + NSXMLDTDNode elementDeclarationForName_(NSString? name) { + final _ret = _lib._objc_msgSend_1017( + _id, _lib._sel_elementDeclarationForName_1, name?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - @override - NSXMLElement initWithKind_(int kind) { - final _ret = _lib._objc_msgSend_1033(_id, _lib._sel_initWithKind_1, kind); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + NSXMLDTDNode attributeDeclarationForName_elementName_( + NSString? name, NSString? elementName) { + final _ret = _lib._objc_msgSend_1018( + _id, + _lib._sel_attributeDeclarationForName_elementName_1, + name?._id ?? ffi.nullptr, + elementName?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + } + + static NSXMLDTDNode predefinedEntityDeclarationForName_( + SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1017( + _lib._class_NSXMLDTD1, + _lib._sel_predefinedEntityDeclarationForName_1, + name?._id ?? ffi.nullptr); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } static NSObject document(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLElement1, _lib._sel_document1); + _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_document1); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject documentWithRootElement_( SentryCocoa _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1035(_lib._class_NSXMLElement1, + final _ret = _lib._objc_msgSend_1001(_lib._class_NSXMLDTD1, _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, + 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); } @@ -69658,7 +67498,7 @@ class NSXMLElement extends NSXMLNode { static NSObject elementWithName_URI_( SentryCocoa _lib, NSString? name, NSString? URI) { final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, + _lib._class_NSXMLDTD1, _lib._sel_elementWithName_URI_1, name?._id ?? ffi.nullptr, URI?._id ?? ffi.nullptr); @@ -69668,7 +67508,7 @@ class NSXMLElement extends NSXMLNode { static NSObject elementWithName_stringValue_( SentryCocoa _lib, NSString? name, NSString? string) { final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, + _lib._class_NSXMLDTD1, _lib._sel_elementWithName_stringValue_1, name?._id ?? ffi.nullptr, string?._id ?? ffi.nullptr); @@ -69677,8 +67517,8 @@ class NSXMLElement extends NSXMLNode { static NSObject elementWithName_children_attributes_(SentryCocoa _lib, NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_1036( - _lib._class_NSXMLElement1, + final _ret = _lib._objc_msgSend_1002( + _lib._class_NSXMLDTD1, _lib._sel_elementWithName_children_attributes_1, name?._id ?? ffi.nullptr, children?._id ?? ffi.nullptr, @@ -69689,7 +67529,7 @@ class NSXMLElement extends NSXMLNode { static NSObject attributeWithName_stringValue_( SentryCocoa _lib, NSString? name, NSString? stringValue) { final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, + _lib._class_NSXMLDTD1, _lib._sel_attributeWithName_stringValue_1, name?._id ?? ffi.nullptr, stringValue?._id ?? ffi.nullptr); @@ -69699,7 +67539,7 @@ class NSXMLElement extends NSXMLNode { static NSObject attributeWithName_URI_stringValue_( SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { final _ret = _lib._objc_msgSend_26( - _lib._class_NSXMLElement1, + _lib._class_NSXMLDTD1, _lib._sel_attributeWithName_URI_stringValue_1, name?._id ?? ffi.nullptr, URI?._id ?? ffi.nullptr, @@ -69710,7 +67550,7 @@ class NSXMLElement extends NSXMLNode { static NSObject namespaceWithName_stringValue_( SentryCocoa _lib, NSString? name, NSString? stringValue) { final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, + _lib._class_NSXMLDTD1, _lib._sel_namespaceWithName_stringValue_1, name?._id ?? ffi.nullptr, stringValue?._id ?? ffi.nullptr); @@ -69720,7 +67560,7 @@ class NSXMLElement extends NSXMLNode { static NSObject processingInstructionWithName_stringValue_( SentryCocoa _lib, NSString? name, NSString? stringValue) { final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLElement1, + _lib._class_NSXMLDTD1, _lib._sel_processingInstructionWithName_stringValue_1, name?._id ?? ffi.nullptr, stringValue?._id ?? ffi.nullptr); @@ -69729,60 +67569,51 @@ class NSXMLElement extends NSXMLNode { static NSObject commentWithStringValue_( SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLElement1, + 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_NSXMLElement1, + 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_NSXMLElement1, + 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_NSXMLElement1, + 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); } static NSString prefixForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLElement1, + 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); } static NSXMLNode predefinedNamespaceForPrefix_( SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1050(_lib._class_NSXMLElement1, + final _ret = _lib._objc_msgSend_1016(_lib._class_NSXMLDTD1, _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_NSXMLElement1, _lib._sel_new1); - return NSXMLElement._(_ret, _lib, retain: false, release: true); - } - - static NSXMLElement 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); + 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 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 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_( @@ -69790,8 +67621,8 @@ class NSXMLElement extends NSXMLNode { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSXMLElement1, + return _lib._objc_msgSend_14( + _lib._class_NSXMLDTD1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -69800,24 +67631,24 @@ class NSXMLElement extends NSXMLNode { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSXMLElement1, + return _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_NSXMLElement1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSXMLDTD1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLElement1, _lib._sel_useStoredAccessor1); + _lib._class_NSXMLDTD1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLElement1, + _lib._class_NSXMLDTD1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -69826,15 +67657,15 @@ class NSXMLElement extends NSXMLNode { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSXMLElement1, + _lib._class_NSXMLDTD1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSXMLElement1, + return _lib._objc_msgSend_82( + _lib._class_NSXMLDTD1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -69842,72 +67673,122 @@ class NSXMLElement extends NSXMLNode { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLElement1, _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_NSXMLElement1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSXMLDTD1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSXMLNode extends NSObject { - NSXMLNode._(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 [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 [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 [NSXMLNode] that wraps the given raw object pointer. - static NSXMLNode 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 NSXMLNode._(other, lib, retain: retain, release: release); + return NSXMLDTDNode._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSXMLNode]. + /// 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_NSXMLNode1); + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_NSXMLDTDNode1); + } + + 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); } @override - NSXMLNode init() { + NSXMLDTDNode initWithKind_options_(int kind, int options) { + final _ret = _lib._objc_msgSend_1000( + _id, _lib._sel_initWithKind_options_1, kind, options); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + } + + @override + NSXMLDTDNode init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); } - NSXMLNode initWithKind_(int kind) { - final _ret = _lib._objc_msgSend_1033(_id, _lib._sel_initWithKind_1, kind); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + int get DTDKind { + return _lib._objc_msgSend_1014(_id, _lib._sel_DTDKind1); } - NSXMLNode initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1034( - _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + set DTDKind(int value) { + _lib._objc_msgSend_1015(_id, _lib._sel_setDTDKind_1, value); + } + + bool get external1 { + return _lib._objc_msgSend_12(_id, _lib._sel_isExternal1); + } + + 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 publicID(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); + } + + 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 systemID(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); + } + + 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); + } + + set notationName(NSString? value) { + _lib._objc_msgSend_509( + _id, _lib._sel_setNotationName_1, value?._id ?? ffi.nullptr); } static NSObject document(SentryCocoa _lib) { final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLNode1, _lib._sel_document1); + _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_1035(_lib._class_NSXMLNode1, + final _ret = _lib._objc_msgSend_1001(_lib._class_NSXMLDTDNode1, _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); return NSObject._(_ret, _lib, retain: true, release: true); } static NSObject elementWithName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, + 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); } @@ -69915,7 +67796,7 @@ class NSXMLNode extends NSObject { static NSObject elementWithName_URI_( SentryCocoa _lib, NSString? name, NSString? URI) { final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, + _lib._class_NSXMLDTDNode1, _lib._sel_elementWithName_URI_1, name?._id ?? ffi.nullptr, URI?._id ?? ffi.nullptr); @@ -69925,7 +67806,7 @@ class NSXMLNode extends NSObject { static NSObject elementWithName_stringValue_( SentryCocoa _lib, NSString? name, NSString? string) { final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, + _lib._class_NSXMLDTDNode1, _lib._sel_elementWithName_stringValue_1, name?._id ?? ffi.nullptr, string?._id ?? ffi.nullptr); @@ -69934,8 +67815,8 @@ class NSXMLNode extends NSObject { static NSObject elementWithName_children_attributes_(SentryCocoa _lib, NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_1036( - _lib._class_NSXMLNode1, + final _ret = _lib._objc_msgSend_1002( + _lib._class_NSXMLDTDNode1, _lib._sel_elementWithName_children_attributes_1, name?._id ?? ffi.nullptr, children?._id ?? ffi.nullptr, @@ -69946,7 +67827,7 @@ class NSXMLNode extends NSObject { static NSObject attributeWithName_stringValue_( SentryCocoa _lib, NSString? name, NSString? stringValue) { final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, + _lib._class_NSXMLDTDNode1, _lib._sel_attributeWithName_stringValue_1, name?._id ?? ffi.nullptr, stringValue?._id ?? ffi.nullptr); @@ -69956,7 +67837,7 @@ class NSXMLNode extends NSObject { static NSObject attributeWithName_URI_stringValue_( SentryCocoa _lib, NSString? name, NSString? URI, NSString? stringValue) { final _ret = _lib._objc_msgSend_26( - _lib._class_NSXMLNode1, + _lib._class_NSXMLDTDNode1, _lib._sel_attributeWithName_URI_stringValue_1, name?._id ?? ffi.nullptr, URI?._id ?? ffi.nullptr, @@ -69967,7 +67848,7 @@ class NSXMLNode extends NSObject { static NSObject namespaceWithName_stringValue_( SentryCocoa _lib, NSString? name, NSString? stringValue) { final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, + _lib._class_NSXMLDTDNode1, _lib._sel_namespaceWithName_stringValue_1, name?._id ?? ffi.nullptr, stringValue?._id ?? ffi.nullptr); @@ -69977,7 +67858,7 @@ class NSXMLNode extends NSObject { static NSObject processingInstructionWithName_stringValue_( SentryCocoa _lib, NSString? name, NSString? stringValue) { final _ret = _lib._objc_msgSend_165( - _lib._class_NSXMLNode1, + _lib._class_NSXMLDTDNode1, _lib._sel_processingInstructionWithName_stringValue_1, name?._id ?? ffi.nullptr, stringValue?._id ?? ffi.nullptr); @@ -69986,253 +67867,365 @@ class NSXMLNode extends NSObject { static NSObject commentWithStringValue_( SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, + 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); } static NSObject textWithStringValue_( SentryCocoa _lib, NSString? stringValue) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, + 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); } static NSObject DTDNodeWithXMLString_(SentryCocoa _lib, NSString? string) { - final _ret = _lib._objc_msgSend_30(_lib._class_NSXMLNode1, + 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); } - int get kind { - return _lib._objc_msgSend_1037(_id, _lib._sel_kind1); + 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); } - 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 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); } - set name(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setName_1, value?._id ?? ffi.nullptr); + static NSXMLNode predefinedNamespaceForPrefix_( + SentryCocoa _lib, NSString? name) { + final _ret = _lib._objc_msgSend_1016(_lib._class_NSXMLDTDNode1, + _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); + return NSXMLNode._(_ret, _lib, retain: true, release: true); } - NSObject get objectValue { - final _ret = _lib._objc_msgSend_2(_id, _lib._sel_objectValue1); - return NSObject._(_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); } - set objectValue(NSObject value) { - return _lib._objc_msgSend_387(_id, _lib._sel_setObjectValue_1, value._id); + 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); } - 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 void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_NSXMLDTDNode1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - set stringValue(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setStringValue_1, value?._id ?? ffi.nullptr); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_NSXMLDTDNode1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void setStringValue_resolvingEntities_(NSString? string, bool resolve) { - _lib._objc_msgSend_1038(_id, _lib._sel_setStringValue_resolvingEntities_1, - string?._id ?? ffi.nullptr, resolve); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSXMLDTDNode1, _lib._sel_accessInstanceVariablesDirectly1); } - int get index { - return _lib._objc_msgSend_10(_id, _lib._sel_index1); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_NSXMLDTDNode1, _lib._sel_useStoredAccessor1); } - int get level { - return _lib._objc_msgSend_10(_id, _lib._sel_level1); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_NSXMLDTDNode1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - NSXMLDocument? get rootDocument { - final _ret = _lib._objc_msgSend_1061(_id, _lib._sel_rootDocument1); - return _ret.address == 0 - ? null - : NSXMLDocument._(_ret, _lib, retain: true, release: true); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_NSXMLDTDNode1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - NSXMLNode? get parent { - final _ret = _lib._objc_msgSend_1062(_id, _lib._sel_parent1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_NSXMLDTDNode1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - int get childCount { - return _lib._objc_msgSend_10(_id, _lib._sel_childCount1); + 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); } - 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 NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_NSXMLDTDNode1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - NSXMLNode childAtIndex_(int index) { - final _ret = _lib._objc_msgSend_1063(_id, _lib._sel_childAtIndex_1, index); - return NSXMLNode._(_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); } - NSXMLNode? get previousSibling { - final _ret = _lib._objc_msgSend_1062(_id, _lib._sel_previousSibling1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _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); } - NSXMLNode? get nextSibling { - final _ret = _lib._objc_msgSend_1062(_id, _lib._sel_nextSibling1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); + /// 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); } - NSXMLNode? get previousNode { - final _ret = _lib._objc_msgSend_1062(_id, _lib._sel_previousNode1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); + /// For storing an envelope synchronously to disk. + static void storeEnvelope_(SentryCocoa _lib, SentryEnvelope? envelope) { + return _lib._objc_msgSend_1057(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_storeEnvelope_1, envelope?._id ?? ffi.nullptr); } - NSXMLNode? get nextNode { - final _ret = _lib._objc_msgSend_1062(_id, _lib._sel_nextNode1); - return _ret.address == 0 - ? null - : NSXMLNode._(_ret, _lib, retain: true, release: true); + static void captureEnvelope_(SentryCocoa _lib, SentryEnvelope? envelope) { + return _lib._objc_msgSend_1057(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_captureEnvelope_1, envelope?._id ?? ffi.nullptr); } - void detach() { - _lib._objc_msgSend_1(_id, _lib._sel_detach1); + /// Create an envelope from @c NSData. Needed for example by Flutter. + static SentryEnvelope envelopeWithData_(SentryCocoa _lib, NSData? data) { + final _ret = _lib._objc_msgSend_1058(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_envelopeWithData_1, data?._id ?? ffi.nullptr); + return SentryEnvelope._(_ret, _lib, retain: true, release: true); } - 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); + /// 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); } - 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); + /// 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_1059(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_getDebugImagesCrashed_1, isCrash); + return NSArray._(_ret, _lib, retain: true, release: true); } - 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); + /// Override SDK information. + static void setSdkName_andVersionString_( + SentryCocoa _lib, NSString? sdkName, NSString? versionString) { + return _lib._objc_msgSend_515( + _lib._class_PrivateSentrySDKOnly1, + _lib._sel_setSdkName_andVersionString_1, + sdkName?._id ?? ffi.nullptr, + versionString?._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); + /// Override SDK information. + static void setSdkName_(SentryCocoa _lib, NSString? sdkName) { + return _lib._objc_msgSend_192(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_setSdkName_1, sdkName?._id ?? ffi.nullptr); } - set URI(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setURI_1, value?._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 NSString localNameForName_(SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_64(_lib._class_NSXMLNode1, - _lib._sel_localNameForName_1, name?._id ?? ffi.nullptr); + /// 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 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); + /// 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); + } + + /// 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_1060(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_startProfilerForTrace_1, traceId?._id ?? ffi.nullptr); + } + + /// Collect a profiler session data associated with the given @c SentryId. + /// This also discards the profiler. + static NSDictionary collectProfileBetween_and_forTrace_(SentryCocoa _lib, + int startSystemTime, int endSystemTime, SentryId? traceId) { + final _ret = _lib._objc_msgSend_1061( + _lib._class_PrivateSentrySDKOnly1, + _lib._sel_collectProfileBetween_and_forTrace_1, + startSystemTime, + endSystemTime, + traceId?._id ?? ffi.nullptr); + return NSDictionary._(_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) { + return _lib._objc_msgSend_1062(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_discardProfilerForTrace_1, traceId?._id ?? ffi.nullptr); + } + + static ObjCBlock50 getOnAppStartMeasurementAvailable(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_1063(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_onAppStartMeasurementAvailable1); + return ObjCBlock50._(_ret, _lib); } - static NSXMLNode predefinedNamespaceForPrefix_( - SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1050(_lib._class_NSXMLNode1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + static void setOnAppStartMeasurementAvailable( + SentryCocoa _lib, ObjCBlock50 value) { + _lib._objc_msgSend_1064(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_setOnAppStartMeasurementAvailable_1, value._id); } - NSString? get description { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_description1); + static SentryAppStartMeasurement? getAppStartMeasurement(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_1065( + _lib._class_PrivateSentrySDKOnly1, _lib._sel_appStartMeasurement1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : SentryAppStartMeasurement._(_ret, _lib, retain: true, release: true); } - NSString? get XMLString { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_XMLString1); + 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); } - NSString XMLStringWithOptions_(int options) { - final _ret = - _lib._objc_msgSend_1064(_id, _lib._sel_XMLStringWithOptions_1, options); - return NSString._(_ret, _lib, retain: true, release: true); - } - - NSString canonicalXMLStringPreservingComments_(bool comments) { - final _ret = _lib._objc_msgSend_1065( - _id, _lib._sel_canonicalXMLStringPreservingComments_1, comments); - return NSString._(_ret, _lib, retain: true, release: true); + static SentryOptions? getOptions(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_1066( + _lib._class_PrivateSentrySDKOnly1, _lib._sel_options1); + return _ret.address == 0 + ? null + : SentryOptions._(_ret, _lib, retain: true, release: true); } - NSArray nodesForXPath_error_( - NSString? xpath, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_414( - _id, _lib._sel_nodesForXPath_error_1, xpath?._id ?? ffi.nullptr, error); - return NSArray._(_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); } - NSArray objectsForXQuery_constants_error_(NSString? xquery, - NSDictionary? constants, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1066( - _id, - _lib._sel_objectsForXQuery_constants_error_1, - xquery?._id ?? ffi.nullptr, - constants?._id ?? ffi.nullptr, - error); - return NSArray._(_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) { + _lib._objc_msgSend_492(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_setAppStartMeasurementHybridSDKMode_1, value); } - NSArray objectsForXQuery_error_( - NSString? xquery, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_414(_id, _lib._sel_objectsForXQuery_error_1, - xquery?._id ?? ffi.nullptr, error); - return NSArray._(_ret, _lib, retain: true, release: true); + static SentryUser userWithDictionary_( + SentryCocoa _lib, NSDictionary? dictionary) { + final _ret = _lib._objc_msgSend_1067(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_userWithDictionary_1, dictionary?._id ?? ffi.nullptr); + return SentryUser._(_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 SentryBreadcrumb breadcrumbWithDictionary_( + SentryCocoa _lib, NSDictionary? dictionary) { + final _ret = _lib._objc_msgSend_1068(_lib._class_PrivateSentrySDKOnly1, + _lib._sel_breadcrumbWithDictionary_1, dictionary?._id ?? ffi.nullptr); + return SentryBreadcrumb._(_ret, _lib, retain: true, release: true); } - static NSXMLNode 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); + 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); } - 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 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 void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -70240,8 +68233,8 @@ class NSXMLNode extends NSObject { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSXMLNode1, + return _lib._objc_msgSend_14( + _lib._class_PrivateSentrySDKOnly1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -70250,24 +68243,24 @@ class NSXMLNode extends NSObject { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSXMLNode1, + return _lib._objc_msgSend_15(_lib._class_PrivateSentrySDKOnly1, _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_PrivateSentrySDKOnly1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLNode1, _lib._sel_useStoredAccessor1); + _lib._class_PrivateSentrySDKOnly1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLNode1, + _lib._class_PrivateSentrySDKOnly1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -70276,469 +68269,430 @@ class NSXMLNode extends NSObject { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSXMLNode1, + _lib._class_PrivateSentrySDKOnly1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSXMLNode1, + return _lib._objc_msgSend_82( + _lib._class_PrivateSentrySDKOnly1, _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_PrivateSentrySDKOnly1, + _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_PrivateSentrySDKOnly1, _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, +class SentryEnvelope extends NSObject { + SentryEnvelope._(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 [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); } - /// Returns a [NSXMLDocument] that wraps the given raw object pointer. - static NSXMLDocument castFromPointer( + /// 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 NSXMLDocument._(other, lib, retain: retain, release: release); + return SentryEnvelope._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSXMLDocument]. + /// 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_NSXMLDocument1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryEnvelope1); } @override - NSXMLDocument init() { + SentryEnvelope init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + return SentryEnvelope._(_ret, _lib, retain: true, release: true); } - NSXMLDocument initWithXMLString_options_error_( - NSString? string, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1039( - _id, - _lib._sel_initWithXMLString_options_error_1, - string?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + static SentryEnvelope new1(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryEnvelope1, _lib._sel_new1); + return SentryEnvelope._(_ret, _lib, retain: false, release: true); } - NSXMLDocument initWithContentsOfURL_options_error_( - NSURL? url, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1040( - _id, - _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + SentryEnvelope initWithId_singleItem_( + SentryId? id, SentryEnvelopeItem? item) { + final _ret = _lib._objc_msgSend_1047(_id, _lib._sel_initWithId_singleItem_1, + id?._id ?? ffi.nullptr, item?._id ?? ffi.nullptr); + return SentryEnvelope._(_ret, _lib, retain: true, release: true); } - NSXMLDocument initWithData_options_error_( - NSData? data, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1041( + SentryEnvelope initWithHeader_singleItem_( + SentryEnvelopeHeader? header, SentryEnvelopeItem? item) { + final _ret = _lib._objc_msgSend_1053( _id, - _lib._sel_initWithData_options_error_1, - data?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithHeader_singleItem_1, + header?._id ?? ffi.nullptr, + item?._id ?? ffi.nullptr); + return SentryEnvelope._(_ret, _lib, retain: true, release: true); } - NSXMLDocument initWithRootElement_(NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1035( - _id, _lib._sel_initWithRootElement_1, element?._id ?? ffi.nullptr); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + SentryEnvelope initWithId_items_(SentryId? id, NSArray? items) { + final _ret = _lib._objc_msgSend_1054(_id, _lib._sel_initWithId_items_1, + id?._id ?? ffi.nullptr, items?._id ?? ffi.nullptr); + return SentryEnvelope._(_ret, _lib, retain: true, release: true); } - 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); + /// Initializes a @c SentryEnvelope with a single session. + /// @param session to init the envelope with. + SentryEnvelope initWithSession_(SentrySession? session) { + final _ret = _lib._objc_msgSend_1040( + _id, _lib._sel_initWithSession_1, session?._id ?? ffi.nullptr); + return SentryEnvelope._(_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); + /// Initializes a @c SentryEnvelope with a list of sessions. + /// Can be used when an operation that starts a session closes an ongoing session. + /// @param sessions to init the envelope with. + SentryEnvelope initWithSessions_(NSArray? sessions) { + final _ret = _lib._objc_msgSend_67( + _id, _lib._sel_initWithSessions_1, sessions?._id ?? ffi.nullptr); + return SentryEnvelope._(_ret, _lib, retain: true, release: true); } - set characterEncoding(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setCharacterEncoding_1, value?._id ?? ffi.nullptr); + SentryEnvelope initWithHeader_items_( + SentryEnvelopeHeader? header, NSArray? items) { + final _ret = _lib._objc_msgSend_1055(_id, _lib._sel_initWithHeader_items_1, + header?._id ?? ffi.nullptr, items?._id ?? ffi.nullptr); + return SentryEnvelope._(_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); + /// Convenience init for a single event. + SentryEnvelope initWithEvent_(SentryEvent? event) { + final _ret = _lib._objc_msgSend_1039( + _id, _lib._sel_initWithEvent_1, event?._id ?? ffi.nullptr); + return SentryEnvelope._(_ret, _lib, retain: true, release: true); } - set version(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setVersion_1, value?._id ?? ffi.nullptr); + SentryEnvelope initWithUserFeedback_(SentryUserFeedback? userFeedback) { + final _ret = _lib._objc_msgSend_1041(_id, _lib._sel_initWithUserFeedback_1, + userFeedback?._id ?? ffi.nullptr); + return SentryEnvelope._(_ret, _lib, retain: true, release: true); } - bool get standalone { - return _lib._objc_msgSend_12(_id, _lib._sel_isStandalone1); + /// The envelope header. + SentryEnvelopeHeader? get header { + final _ret = _lib._objc_msgSend_1056(_id, _lib._sel_header1); + return _ret.address == 0 + ? null + : SentryEnvelopeHeader._(_ret, _lib, retain: true, release: true); } - set standalone(bool value) { - return _lib._objc_msgSend_492(_id, _lib._sel_setStandalone_1, value); + /// The envelope items. + 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); } - int get documentContentKind { - return _lib._objc_msgSend_1042(_id, _lib._sel_documentContentKind1); + static SentryEnvelope alloc(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_2(_lib._class_SentryEnvelope1, _lib._sel_alloc1); + return SentryEnvelope._(_ret, _lib, retain: false, release: true); } - set documentContentKind(int value) { - return _lib._objc_msgSend_1043( - _id, _lib._sel_setDocumentContentKind_1, value); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_SentryEnvelope1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - 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_( + SentryCocoa _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_SentryEnvelope1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - set MIMEType(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setMIMEType_1, value?._id ?? ffi.nullptr); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryEnvelope1, + _lib._sel_accessInstanceVariablesDirectly1); } - NSXMLDTD? get DTD { - final _ret = _lib._objc_msgSend_1053(_id, _lib._sel_DTD1); - return _ret.address == 0 - ? null - : NSXMLDTD._(_ret, _lib, retain: true, release: true); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryEnvelope1, _lib._sel_useStoredAccessor1); } - set DTD(NSXMLDTD? value) { - return _lib._objc_msgSend_1054( - _id, _lib._sel_setDTD_1, value?._id ?? ffi.nullptr); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryEnvelope1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - void setRootElement_(NSXMLElement? root) { - _lib._objc_msgSend_1055( - _id, _lib._sel_setRootElement_1, root?._id ?? ffi.nullptr); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryEnvelope1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - NSXMLElement rootElement() { - final _ret = _lib._objc_msgSend_1056(_id, _lib._sel_rootElement1); - return NSXMLElement._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_SentryEnvelope1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - void insertChild_atIndex_(NSXMLNode? child, int index) { - _lib._objc_msgSend_1044( - _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_SentryEnvelope1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_ret, _lib, retain: true, release: true); } - void insertChildren_atIndex_(NSArray? children, int index) { - _lib._objc_msgSend_1045(_id, _lib._sel_insertChildren_atIndex_1, - children?._id ?? ffi.nullptr, index); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryEnvelope1, _lib._sel_classForKeyedUnarchiver1); + return NSObject._(_ret, _lib, retain: true, release: true); } +} - void removeChildAtIndex_(int index) { - _lib._objc_msgSend_439(_id, _lib._sel_removeChildAtIndex_1, index); - } +class SentryId extends NSObject { + SentryId._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - void setChildren_(NSArray? children) { - _lib._objc_msgSend_441( - _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); + /// 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); } - void addChild_(NSXMLNode? child) { - _lib._objc_msgSend_1046( - _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + /// 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); } - void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { - _lib._objc_msgSend_1047(_id, _lib._sel_replaceChildAtIndex_withNode_1, - index, node?._id ?? ffi.nullptr); + /// 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); } - 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); + /// Creates a @c SentryId with a random UUID. + @override + SentryId init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryId._(_ret, _lib, retain: true, release: true); } - NSData XMLDataWithOptions_(int options) { - final _ret = - _lib._objc_msgSend_1057(_id, _lib._sel_XMLDataWithOptions_1, options); - return NSData._(_ret, _lib, retain: true, release: true); + /// Creates a SentryId with the given UUID. + SentryId initWithUUID_(NSUUID? uuid) { + final _ret = _lib._objc_msgSend_1037( + _id, _lib._sel_initWithUUID_1, uuid?._id ?? ffi.nullptr); + return SentryId._(_ret, _lib, retain: true, release: true); } - NSObject objectByApplyingXSLT_arguments_error_(NSData? xslt, - NSDictionary? arguments, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1058( - _id, - _lib._sel_objectByApplyingXSLT_arguments_error_1, - xslt?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr, - error); - return NSObject._(_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? string) { + final _ret = _lib._objc_msgSend_30( + _id, _lib._sel_initWithUUIDString_1, string?._id ?? ffi.nullptr); + return SentryId._(_ret, _lib, retain: true, release: true); } - NSObject objectByApplyingXSLTString_arguments_error_(NSString? xslt, - NSDictionary? arguments, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1059( - _id, - _lib._sel_objectByApplyingXSLTString_arguments_error_1, - xslt?._id ?? ffi.nullptr, - arguments?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); + /// 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); } - NSObject objectByApplyingXSLTAtURL_arguments_error_(NSURL? xsltURL, - NSDictionary? argument, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1060( - _id, - _lib._sel_objectByApplyingXSLTAtURL_arguments_error_1, - xsltURL?._id ?? ffi.nullptr, - argument?._id ?? ffi.nullptr, - error); - return NSObject._(_ret, _lib, retain: true, release: true); + /// A @c SentryId with an empty UUID "00000000000000000000000000000000". + static SentryId? getEmpty(SentryCocoa _lib) { + final _ret = + _lib._objc_msgSend_1038(_lib._class_SentryId1, _lib._sel_empty1); + return _ret.address == 0 + ? null + : SentryId._(_ret, _lib, retain: true, release: true); } - bool validateAndReturnError_(ffi.Pointer> error) { - return _lib._objc_msgSend_225( - _id, _lib._sel_validateAndReturnError_1, error); + 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); } - @override - NSXMLDocument initWithKind_(int kind) { - final _ret = _lib._objc_msgSend_1033(_id, _lib._sel_initWithKind_1, kind); - return NSXMLDocument._(_ret, _lib, retain: true, 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); } - @override - NSXMLDocument initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1034( - _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLDocument._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_SentryId1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - 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); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_SentryId1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - static NSObject documentWithRootElement_( - SentryCocoa _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1035(_lib._class_NSXMLDocument1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryId1, _lib._sel_accessInstanceVariablesDirectly1); } - 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); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryId1, _lib._sel_useStoredAccessor1); } - 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); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryId1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return 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); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryId1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - static NSObject elementWithName_children_attributes_(SentryCocoa _lib, - NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_1036( - _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); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_SentryId1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - 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); + static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79( + _lib._class_SentryId1, _lib._sel_classFallbacksForKeyedArchiver1); + return NSArray._(_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_NSXMLDocument1, - _lib._sel_attributeWithName_URI_stringValue_1, - name?._id ?? ffi.nullptr, - URI?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); + static NSObject classForKeyedUnarchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryId1, _lib._sel_classForKeyedUnarchiver1); 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_NSXMLDocument1, - _lib._sel_namespaceWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); +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 [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); } - 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); + /// 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 NSUUID._(other, lib, retain: retain, release: release); } - 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); + /// 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_NSUUID1); } - 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); + 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); } - 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); + @override + NSUUID init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return NSUUID._(_ret, _lib, retain: true, release: true); } - 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); + 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); } - 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); + NSUUID initWithUUIDBytes_(ffi.Pointer bytes) { + final _ret = + _lib._objc_msgSend_1034(_id, _lib._sel_initWithUUIDBytes_1, bytes); + return NSUUID._(_ret, _lib, retain: true, release: true); } - static NSXMLNode predefinedNamespaceForPrefix_( - SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1050(_lib._class_NSXMLDocument1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + void getUUIDBytes_(ffi.Pointer uuid) { + return _lib._objc_msgSend_1035(_id, _lib._sel_getUUIDBytes_1, uuid); } - 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); + int compare_(NSUUID? otherUUID) { + return _lib._objc_msgSend_1036( + _id, _lib._sel_compare_1, otherUUID?._id ?? ffi.nullptr); } - 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); + 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 NSXMLDocument alloc(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDocument1, _lib._sel_alloc1); - return NSXMLDocument._(_ret, _lib, retain: false, 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 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_( @@ -70746,8 +68700,8 @@ class NSXMLDocument extends NSXMLNode { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSXMLDocument1, + return _lib._objc_msgSend_14( + _lib._class_NSUUID1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -70756,24 +68710,24 @@ class NSXMLDocument extends NSXMLNode { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSXMLDocument1, + return _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_NSXMLDocument1, _lib._sel_accessInstanceVariablesDirectly1); + _lib._class_NSUUID1, _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLDocument1, _lib._sel_useStoredAccessor1); + _lib._class_NSUUID1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLDocument1, + _lib._class_NSUUID1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -70782,15 +68736,15 @@ class NSXMLDocument extends NSXMLNode { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSXMLDocument1, + _lib._class_NSUUID1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSXMLDocument1, + return _lib._objc_msgSend_82( + _lib._class_NSUUID1, _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, keys?._id ?? ffi.nullptr, dependentKey?._id ?? ffi.nullptr); @@ -70798,322 +68752,361 @@ class NSXMLDocument extends NSXMLNode { static NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLDocument1, _lib._sel_classFallbacksForKeyedArchiver1); + _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_NSXMLDocument1, _lib._sel_classForKeyedUnarchiver1); + _lib._class_NSUUID1, _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -abstract class NSXMLDocumentContentKind { - static const int NSXMLDocumentXMLKind = 0; - static const int NSXMLDocumentXHTMLKind = 1; - static const int NSXMLDocumentHTMLKind = 2; - static const int NSXMLDocumentTextKind = 3; -} - -class NSXMLDTD extends NSXMLNode { - NSXMLDTD._(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 [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 [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 [NSXMLDTD] that wraps the given raw object pointer. - static NSXMLDTD 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 NSXMLDTD._(other, lib, retain: retain, release: release); + return SentryEnvelopeItem._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSXMLDTD]. + /// 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_NSXMLDTD1); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryEnvelopeItem1); } @override - NSXMLDTD init() { + SentryEnvelopeItem init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); } - @override - NSXMLDTD initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1034( - _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLDTD._(_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); } - NSXMLDTD initWithContentsOfURL_options_error_( - NSURL? url, int mask, ffi.Pointer> error) { + SentryEnvelopeItem initWithEvent_(SentryEvent? event) { + final _ret = _lib._objc_msgSend_1039( + _id, _lib._sel_initWithEvent_1, event?._id ?? ffi.nullptr); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); + } + + SentryEnvelopeItem initWithSession_(SentrySession? session) { final _ret = _lib._objc_msgSend_1040( - _id, - _lib._sel_initWithContentsOfURL_options_error_1, - url?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); + _id, _lib._sel_initWithSession_1, session?._id ?? ffi.nullptr); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); } - NSXMLDTD initWithData_options_error_( - NSData? data, int mask, ffi.Pointer> error) { - final _ret = _lib._objc_msgSend_1041( + SentryEnvelopeItem initWithUserFeedback_(SentryUserFeedback? userFeedback) { + final _ret = _lib._objc_msgSend_1041(_id, _lib._sel_initWithUserFeedback_1, + userFeedback?._id ?? ffi.nullptr); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); + } + + SentryEnvelopeItem initWithAttachment_maxAttachmentSize_( + SentryAttachment? attachment, int maxAttachmentSize) { + final _ret = _lib._objc_msgSend_1042( _id, - _lib._sel_initWithData_options_error_1, - data?._id ?? ffi.nullptr, - mask, - error); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); + _lib._sel_initWithAttachment_maxAttachmentSize_1, + attachment?._id ?? ffi.nullptr, + maxAttachmentSize); + return SentryEnvelopeItem._(_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); + SentryEnvelopeItem initWithHeader_data_( + SentryEnvelopeItemHeader? header, NSData? data) { + final _ret = _lib._objc_msgSend_1045(_id, _lib._sel_initWithHeader_data_1, + header?._id ?? ffi.nullptr, data?._id ?? ffi.nullptr); + return SentryEnvelopeItem._(_ret, _lib, retain: true, release: true); } - set publicID(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); + /// The envelope item header. + SentryEnvelopeItemHeader? get header { + final _ret = _lib._objc_msgSend_1046(_id, _lib._sel_header1); + return _ret.address == 0 + ? null + : SentryEnvelopeItemHeader._(_ret, _lib, retain: true, release: true); } - NSString? get systemID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); + /// The envelope payload. + NSData? get data { + final _ret = _lib._objc_msgSend_39(_id, _lib._sel_data1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : NSData._(_ret, _lib, retain: true, release: true); } - set systemID(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setSystemID_1, value?._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); } - void insertChild_atIndex_(NSXMLNode? child, int index) { - _lib._objc_msgSend_1044( - _id, _lib._sel_insertChild_atIndex_1, child?._id ?? ffi.nullptr, index); + static void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_SentryEnvelopeItem1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - void insertChildren_atIndex_(NSArray? children, int index) { - _lib._objc_msgSend_1045(_id, _lib._sel_insertChildren_atIndex_1, - children?._id ?? ffi.nullptr, index); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_SentryEnvelopeItem1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - void removeChildAtIndex_(int index) { - _lib._objc_msgSend_439(_id, _lib._sel_removeChildAtIndex_1, index); + static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryEnvelopeItem1, + _lib._sel_accessInstanceVariablesDirectly1); } - void setChildren_(NSArray? children) { - _lib._objc_msgSend_441( - _id, _lib._sel_setChildren_1, children?._id ?? ffi.nullptr); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryEnvelopeItem1, _lib._sel_useStoredAccessor1); } - void addChild_(NSXMLNode? child) { - _lib._objc_msgSend_1046( - _id, _lib._sel_addChild_1, child?._id ?? ffi.nullptr); + 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); } - void replaceChildAtIndex_withNode_(int index, NSXMLNode? node) { - _lib._objc_msgSend_1047(_id, _lib._sel_replaceChildAtIndex_withNode_1, - index, node?._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); } - NSXMLDTDNode entityDeclarationForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1051( - _id, _lib._sel_entityDeclarationForName_1, name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_SentryEnvelopeItem1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - NSXMLDTDNode notationDeclarationForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1051( - _id, _lib._sel_notationDeclarationForName_1, name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_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); } - NSXMLDTDNode elementDeclarationForName_(NSString? name) { - final _ret = _lib._objc_msgSend_1051( - _id, _lib._sel_elementDeclarationForName_1, name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_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); } +} - NSXMLDTDNode attributeDeclarationForName_elementName_( - NSString? name, NSString? elementName) { - final _ret = _lib._objc_msgSend_1052( - _id, - _lib._sel_attributeDeclarationForName_elementName_1, - name?._id ?? ffi.nullptr, - elementName?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); +class SentryEvent extends _ObjCWrapper { + SentryEvent._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryEvent] that points to the same underlying object as [other]. + static SentryEvent castFrom(T other) { + return SentryEvent._(other._id, other._lib, retain: true, release: true); } - static NSXMLDTDNode predefinedEntityDeclarationForName_( - SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1051( - _lib._class_NSXMLDTD1, - _lib._sel_predefinedEntityDeclarationForName_1, - name?._id ?? ffi.nullptr); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + /// Returns a [SentryEvent] that wraps the given raw object pointer. + static SentryEvent castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryEvent._(other, lib, retain: retain, release: release); } - @override - NSXMLDTD initWithKind_(int kind) { - final _ret = _lib._objc_msgSend_1033(_id, _lib._sel_initWithKind_1, kind); - return NSXMLDTD._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [SentryEvent]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentryEvent1); } +} - static NSObject document(SentryCocoa _lib) { - final _ret = - _lib._objc_msgSend_2(_lib._class_NSXMLDTD1, _lib._sel_document1); - return NSObject._(_ret, _lib, retain: true, release: true); +class SentrySession extends _ObjCWrapper { + 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); } - static NSObject documentWithRootElement_( - SentryCocoa _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1035(_lib._class_NSXMLDTD1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + /// 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); } - 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); + /// 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); } +} - 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); +class SentryUserFeedback extends _ObjCWrapper { + SentryUserFeedback._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryUserFeedback] that points to the same underlying object as [other]. + static SentryUserFeedback castFrom(T other) { + return SentryUserFeedback._(other._id, other._lib, + retain: true, release: true); } - 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); + /// Returns a [SentryUserFeedback] that wraps the given raw object pointer. + static SentryUserFeedback castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryUserFeedback._(other, lib, retain: retain, release: release); } - static NSObject elementWithName_children_attributes_(SentryCocoa _lib, - NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_1036( - _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); + /// Returns whether [obj] is an instance of [SentryUserFeedback]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryUserFeedback1); } +} - 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); +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 [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); } - 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); + /// 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 SentryAttachment._(other, lib, retain: retain, release: release); } - 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); + /// 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_SentryAttachment1); } +} - 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); +class SentryEnvelopeItemHeader extends NSObject { + SentryEnvelopeItemHeader._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentryEnvelopeItemHeader] that points to the same underlying object as [other]. + static SentryEnvelopeItemHeader castFrom(T other) { + return SentryEnvelopeItemHeader._(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 [SentryEnvelopeItemHeader] that wraps the given raw object pointer. + static SentryEnvelopeItemHeader castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentryEnvelopeItemHeader._(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 [SentryEnvelopeItemHeader]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryEnvelopeItemHeader1); } - 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); + @override + SentryEnvelopeItemHeader init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryEnvelopeItemHeader._(_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); + static SentryEnvelopeItemHeader new1(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryEnvelopeItemHeader1, _lib._sel_new1); + return SentryEnvelopeItemHeader._(_ret, _lib, retain: false, 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); - return NSString._(_ret, _lib, retain: true, release: true); + SentryEnvelopeItemHeader initWithType_length_(NSString? type, int length) { + final _ret = _lib._objc_msgSend_1043( + _id, _lib._sel_initWithType_length_1, type?._id ?? ffi.nullptr, length); + return SentryEnvelopeItemHeader._(_ret, _lib, retain: true, release: true); } - static NSXMLNode predefinedNamespaceForPrefix_( - SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1050(_lib._class_NSXMLDTD1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + SentryEnvelopeItemHeader initWithType_length_filenname_contentType_( + NSString? type, int length, NSString? filename, NSString? contentType) { + final _ret = _lib._objc_msgSend_1044( + _id, + _lib._sel_initWithType_length_filenname_contentType_1, + type?._id ?? ffi.nullptr, + length, + filename?._id ?? ffi.nullptr, + contentType?._id ?? ffi.nullptr); + return SentryEnvelopeItemHeader._(_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); + /// The type of the envelope item. + 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); } - static NSXMLDTD 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); + int get length { + return _lib._objc_msgSend_10(_id, _lib._sel_length1); } - 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); + NSString? get filename { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_filename1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + NSString? get contentType { + final _ret = _lib._objc_msgSend_20(_id, _lib._sel_contentType1); + return _ret.address == 0 + ? null + : NSString._(_ret, _lib, retain: true, release: true); + } + + static SentryEnvelopeItemHeader alloc(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_2( + _lib._class_SentryEnvelopeItemHeader1, _lib._sel_alloc1); + return SentryEnvelopeItemHeader._(_ret, _lib, retain: false, release: true); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -71121,8 +69114,8 @@ class NSXMLDTD extends NSXMLNode { NSObject aTarget, ffi.Pointer aSelector, NSObject anArgument) { - _lib._objc_msgSend_14( - _lib._class_NSXMLDTD1, + return _lib._objc_msgSend_14( + _lib._class_SentryEnvelopeItemHeader1, _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, aTarget._id, aSelector, @@ -71131,24 +69124,24 @@ class NSXMLDTD extends NSXMLNode { static void cancelPreviousPerformRequestsWithTarget_( SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSXMLDTD1, + return _lib._objc_msgSend_15(_lib._class_SentryEnvelopeItemHeader1, _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } static bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLDTD1, _lib._sel_accessInstanceVariablesDirectly1); + return _lib._objc_msgSend_12(_lib._class_SentryEnvelopeItemHeader1, + _lib._sel_accessInstanceVariablesDirectly1); } static bool useStoredAccessor(SentryCocoa _lib) { return _lib._objc_msgSend_12( - _lib._class_NSXMLDTD1, _lib._sel_useStoredAccessor1); + _lib._class_SentryEnvelopeItemHeader1, _lib._sel_useStoredAccessor1); } static NSSet keyPathsForValuesAffectingValueForKey_( SentryCocoa _lib, NSString? key) { final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLDTD1, + _lib._class_SentryEnvelopeItemHeader1, _lib._sel_keyPathsForValuesAffectingValueForKey_1, key?._id ?? ffi.nullptr); return NSSet._(_ret, _lib, retain: true, release: true); @@ -71157,365 +69150,447 @@ class NSXMLDTD extends NSXMLNode { static bool automaticallyNotifiesObserversForKey_( SentryCocoa _lib, NSString? key) { return _lib._objc_msgSend_59( - _lib._class_NSXMLDTD1, + _lib._class_SentryEnvelopeItemHeader1, _lib._sel_automaticallyNotifiesObserversForKey_1, key?._id ?? ffi.nullptr); } static void setKeys_triggerChangeNotificationsForDependentKey_( SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSXMLDTD1, + return _lib._objc_msgSend_82( + _lib._class_SentryEnvelopeItemHeader1, _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_NSXMLDTD1, _lib._sel_classFallbacksForKeyedArchiver1); + final _ret = _lib._objc_msgSend_79(_lib._class_SentryEnvelopeItemHeader1, + _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); + final _ret = _lib._objc_msgSend_2(_lib._class_SentryEnvelopeItemHeader1, + _lib._sel_classForKeyedUnarchiver1); return NSObject._(_ret, _lib, retain: true, release: true); } } -class NSXMLDTDNode extends NSXMLNode { - NSXMLDTDNode._(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 [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 [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 [NSXMLDTDNode] that wraps the given raw object pointer. - static NSXMLDTDNode 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 NSXMLDTDNode._(other, lib, retain: retain, release: release); + return SentryEnvelopeHeader._(other, lib, retain: retain, release: release); } - /// Returns whether [obj] is an instance of [NSXMLDTDNode]. + /// 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_NSXMLDTDNode1); - } - - 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); + return obj._lib._objc_msgSend_0(obj._id, obj._lib._sel_isKindOfClass_1, + obj._lib._class_SentryEnvelopeHeader1); } @override - NSXMLDTDNode initWithKind_options_(int kind, int options) { - final _ret = _lib._objc_msgSend_1034( - _id, _lib._sel_initWithKind_options_1, kind, options); - return NSXMLDTDNode._(_ret, _lib, retain: true, release: true); + SentryEnvelopeHeader init() { + final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); + return SentryEnvelopeHeader._(_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); + 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); } - int get DTDKind { - return _lib._objc_msgSend_1048(_id, _lib._sel_DTDKind1); + /// Initializes an @c SentryEnvelopeHeader object with the specified eventId. + /// @note Sets the @c sdkInfo from @c SentryMeta. + /// @param eventId The identifier of the event. Can be nil if no event in the envelope or attachment + /// related to event. + SentryEnvelopeHeader initWithId_(SentryId? eventId) { + final _ret = _lib._objc_msgSend_1048( + _id, _lib._sel_initWithId_1, eventId?._id ?? ffi.nullptr); + return SentryEnvelopeHeader._(_ret, _lib, retain: true, release: true); } - set DTDKind(int value) { - return _lib._objc_msgSend_1049(_id, _lib._sel_setDTDKind_1, value); + /// 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_1049( + _id, + _lib._sel_initWithId_traceContext_1, + eventId?._id ?? ffi.nullptr, + traceContext?._id ?? ffi.nullptr); + return SentryEnvelopeHeader._(_ret, _lib, retain: true, release: true); } - bool get external1 { - return _lib._objc_msgSend_12(_id, _lib._sel_isExternal1); + /// Initializes a @c SentryEnvelopeHeader object with the specified @c eventId, @c skdInfo and + /// @c traceContext. It is recommended to use @c initWithId:traceContext: because it sets the + /// @c sdkInfo for you. + /// @param eventId The identifier of the event. Can be @c nil if no event in the envelope or + /// attachment related to event. + /// @param sdkInfo Describes the Sentry SDK. Can be @c nil for backwards compatibility. New + /// instances should always provide a version. + /// @param traceContext Current trace state. + SentryEnvelopeHeader initWithId_sdkInfo_traceContext_(SentryId? eventId, + SentrySdkInfo? sdkInfo, SentryTraceContext? traceContext) { + final _ret = _lib._objc_msgSend_1050( + _id, + _lib._sel_initWithId_sdkInfo_traceContext_1, + eventId?._id ?? ffi.nullptr, + sdkInfo?._id ?? ffi.nullptr, + traceContext?._id ?? ffi.nullptr); + return SentryEnvelopeHeader._(_ret, _lib, retain: true, release: true); } - NSString? get publicID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_publicID1); + /// 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_1038(_id, _lib._sel_eventId1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); - } - - set publicID(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setPublicID_1, value?._id ?? ffi.nullptr); + : SentryId._(_ret, _lib, retain: true, release: true); } - NSString? get systemID { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_systemID1); + SentrySdkInfo? get sdkInfo { + final _ret = _lib._objc_msgSend_1051(_id, _lib._sel_sdkInfo1); return _ret.address == 0 ? null - : NSString._(_ret, _lib, retain: true, release: true); + : SentrySdkInfo._(_ret, _lib, retain: true, release: true); } - set systemID(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setSystemID_1, value?._id ?? ffi.nullptr); + SentryTraceContext? get traceContext { + final _ret = _lib._objc_msgSend_1052(_id, _lib._sel_traceContext1); + return _ret.address == 0 + ? null + : SentryTraceContext._(_ret, _lib, retain: true, release: true); } - NSString? get notationName { - final _ret = _lib._objc_msgSend_20(_id, _lib._sel_notationName1); + /// 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); } - set notationName(NSString? value) { - return _lib._objc_msgSend_509( - _id, _lib._sel_setNotationName_1, value?._id ?? ffi.nullptr); + /// 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) { + _lib._objc_msgSend_525( + _id, _lib._sel_setSentAt_1, value?._id ?? ffi.nullptr); } - @override - NSXMLDTDNode initWithKind_(int kind) { - final _ret = _lib._objc_msgSend_1033(_id, _lib._sel_initWithKind_1, kind); - return NSXMLDTDNode._(_ret, _lib, retain: true, 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 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 void cancelPreviousPerformRequestsWithTarget_selector_object_( + SentryCocoa _lib, + NSObject aTarget, + ffi.Pointer aSelector, + NSObject anArgument) { + return _lib._objc_msgSend_14( + _lib._class_SentryEnvelopeHeader1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, + aTarget._id, + aSelector, + anArgument._id); } - static NSObject documentWithRootElement_( - SentryCocoa _lib, NSXMLElement? element) { - final _ret = _lib._objc_msgSend_1035(_lib._class_NSXMLDTDNode1, - _lib._sel_documentWithRootElement_1, element?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); + static void cancelPreviousPerformRequestsWithTarget_( + SentryCocoa _lib, NSObject aTarget) { + return _lib._objc_msgSend_15(_lib._class_SentryEnvelopeHeader1, + _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); } - 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 bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { + return _lib._objc_msgSend_12(_lib._class_SentryEnvelopeHeader1, + _lib._sel_accessInstanceVariablesDirectly1); } - 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); + static bool useStoredAccessor(SentryCocoa _lib) { + return _lib._objc_msgSend_12( + _lib._class_SentryEnvelopeHeader1, _lib._sel_useStoredAccessor1); } - 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); + static NSSet keyPathsForValuesAffectingValueForKey_( + SentryCocoa _lib, NSString? key) { + final _ret = _lib._objc_msgSend_58( + _lib._class_SentryEnvelopeHeader1, + _lib._sel_keyPathsForValuesAffectingValueForKey_1, + key?._id ?? ffi.nullptr); + return NSSet._(_ret, _lib, retain: true, release: true); } - static NSObject elementWithName_children_attributes_(SentryCocoa _lib, - NSString? name, NSArray? children, NSArray? attributes) { - final _ret = _lib._objc_msgSend_1036( - _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); + static bool automaticallyNotifiesObserversForKey_( + SentryCocoa _lib, NSString? key) { + return _lib._objc_msgSend_59( + _lib._class_SentryEnvelopeHeader1, + _lib._sel_automaticallyNotifiesObserversForKey_1, + key?._id ?? ffi.nullptr); } - 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); + static void setKeys_triggerChangeNotificationsForDependentKey_( + SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { + return _lib._objc_msgSend_82( + _lib._class_SentryEnvelopeHeader1, + _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, + keys?._id ?? ffi.nullptr, + dependentKey?._id ?? ffi.nullptr); } - 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 NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { + final _ret = _lib._objc_msgSend_79(_lib._class_SentryEnvelopeHeader1, + _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_NSXMLDTDNode1, - _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_SentryEnvelopeHeader1, _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_NSXMLDTDNode1, - _lib._sel_processingInstructionWithName_stringValue_1, - name?._id ?? ffi.nullptr, - stringValue?._id ?? ffi.nullptr); - return NSObject._(_ret, _lib, retain: true, release: true); - } +class SentryTraceContext extends _ObjCWrapper { + SentryTraceContext._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); - 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); + /// 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); } - 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); + /// 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 SentryTraceContext._(other, lib, retain: retain, release: release); } - 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); + /// 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_SentryTraceContext1); } +} - 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); +class SentrySdkInfo extends _ObjCWrapper { + SentrySdkInfo._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// Returns a [SentrySdkInfo] that points to the same underlying object as [other]. + static SentrySdkInfo castFrom(T other) { + return SentrySdkInfo._(other._id, other._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); + /// Returns a [SentrySdkInfo] that wraps the given raw object pointer. + static SentrySdkInfo castFromPointer( + SentryCocoa lib, ffi.Pointer other, + {bool retain = false, bool release = false}) { + return SentrySdkInfo._(other, lib, retain: retain, release: release); } - static NSXMLNode predefinedNamespaceForPrefix_( - SentryCocoa _lib, NSString? name) { - final _ret = _lib._objc_msgSend_1050(_lib._class_NSXMLDTDNode1, - _lib._sel_predefinedNamespaceForPrefix_1, name?._id ?? ffi.nullptr); - return NSXMLNode._(_ret, _lib, retain: true, release: true); + /// Returns whether [obj] is an instance of [SentrySdkInfo]. + static bool isInstance(_ObjCWrapper obj) { + return obj._lib._objc_msgSend_0( + obj._id, obj._lib._sel_isKindOfClass_1, obj._lib._class_SentrySdkInfo1); } +} - 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); +void _ObjCBlock50_fnPtrTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return block.ref.target + .cast< + ffi.NativeFunction arg0)>>() + .asFunction arg0)>()(arg0); +} + +final _ObjCBlock50_closureRegistry = {}; +int _ObjCBlock50_closureRegistryIndex = 0; +ffi.Pointer _ObjCBlock50_registerClosure(Function fn) { + final id = ++_ObjCBlock50_closureRegistryIndex; + _ObjCBlock50_closureRegistry[id] = fn; + return ffi.Pointer.fromAddress(id); +} + +void _ObjCBlock50_closureTrampoline( + ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0) { + return (_ObjCBlock50_closureRegistry[block.ref.target.address] as void + Function(ffi.Pointer))(arg0); +} + +class ObjCBlock50 extends _ObjCBlockBase { + ObjCBlock50._(ffi.Pointer<_ObjCBlock> id, SentryCocoa lib) + : super._(id, lib, retain: false, release: true); + + /// Creates a block from a C function pointer. + ObjCBlock50.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)>( + _ObjCBlock50_fnPtrTrampoline) + .cast(), + ptr.cast()), + lib); + static ffi.Pointer? _cFuncTrampoline; + + /// Creates a block from a Dart function. + ObjCBlock50.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)>( + _ObjCBlock50_closureTrampoline) + .cast(), + _ObjCBlock50_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 NSXMLDTDNode 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); +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 [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); } - 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); + /// 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 SentryAppStartMeasurement._(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_NSXMLDTDNode1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_selector_object_1, - aTarget._id, - aSelector, - anArgument._id); + /// 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_SentryAppStartMeasurement1); } +} - static void cancelPreviousPerformRequestsWithTarget_( - SentryCocoa _lib, NSObject aTarget) { - _lib._objc_msgSend_15(_lib._class_NSXMLDTDNode1, - _lib._sel_cancelPreviousPerformRequestsWithTarget_1, aTarget._id); +class SentryOptions extends _ObjCWrapper { + SentryOptions._(ffi.Pointer id, SentryCocoa lib, + {bool retain = false, bool release = false}) + : super._(id, lib, retain: retain, release: release); + + /// 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 bool getAccessInstanceVariablesDirectly(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLDTDNode1, _lib._sel_accessInstanceVariablesDirectly1); + /// 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 bool useStoredAccessor(SentryCocoa _lib) { - return _lib._objc_msgSend_12( - _lib._class_NSXMLDTDNode1, _lib._sel_useStoredAccessor1); + /// 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); } +} - static NSSet keyPathsForValuesAffectingValueForKey_( - SentryCocoa _lib, NSString? key) { - final _ret = _lib._objc_msgSend_58( - _lib._class_NSXMLDTDNode1, - _lib._sel_keyPathsForValuesAffectingValueForKey_1, - key?._id ?? ffi.nullptr); - return NSSet._(_ret, _lib, retain: true, 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); + + /// 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 bool automaticallyNotifiesObserversForKey_( - SentryCocoa _lib, NSString? key) { - return _lib._objc_msgSend_59( - _lib._class_NSXMLDTDNode1, - _lib._sel_automaticallyNotifiesObserversForKey_1, - key?._id ?? ffi.nullptr); + /// 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 void setKeys_triggerChangeNotificationsForDependentKey_( - SentryCocoa _lib, NSArray? keys, NSString? dependentKey) { - _lib._objc_msgSend_82( - _lib._class_NSXMLDTDNode1, - _lib._sel_setKeys_triggerChangeNotificationsForDependentKey_1, - keys?._id ?? ffi.nullptr, - dependentKey?._id ?? ffi.nullptr); + /// 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 NSArray classFallbacksForKeyedArchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_79( - _lib._class_NSXMLDTDNode1, _lib._sel_classFallbacksForKeyedArchiver1); - return NSArray._(_ret, _lib, retain: true, 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); + + /// 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 NSObject classForKeyedUnarchiver(SentryCocoa _lib) { - final _ret = _lib._objc_msgSend_2( - _lib._class_NSXMLDTDNode1, _lib._sel_classForKeyedUnarchiver1); - return NSObject._(_ret, _lib, retain: true, 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); } -} -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; + /// 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); + } } diff --git a/flutter/lib/src/native/cocoa/sentry_native_cocoa.dart b/flutter/lib/src/native/cocoa/sentry_native_cocoa.dart new file mode 100644 index 0000000000..0e6817cb48 --- /dev/null +++ b/flutter/lib/src/native/cocoa/sentry_native_cocoa.dart @@ -0,0 +1,23 @@ +import 'dart:ffi'; + +import 'package:meta/meta.dart'; + +import '../../../sentry_flutter.dart'; +import '../sentry_native_channel.dart'; +import 'binding.dart' as cocoa; + +@internal +class SentryNativeCocoa extends SentryNativeChannel { + late final _lib = cocoa.SentryCocoa(DynamicLibrary.process()); + + SentryNativeCocoa(super.channel); + + @override + int? startProfiler(SentryId traceId) { + final cSentryId = cocoa.SentryId.alloc(_lib) + ..initWithUUIDString_(cocoa.NSString(_lib, traceId.toString())); + final startTime = + cocoa.PrivateSentrySDKOnly.startProfilerForTrace_(_lib, cSentryId); + return startTime; + } +} diff --git a/flutter/lib/src/profiling.dart b/flutter/lib/src/profiling.dart index aa06800cb4..da7b09b005 100644 --- a/flutter/lib/src/profiling.dart +++ b/flutter/lib/src/profiling.dart @@ -44,15 +44,10 @@ class NativeProfilerFactory implements ProfilerFactory { } final startTime = _native.startProfiler(context.traceId); - - // TODO we cannot await the future returned by a method channel because - // startTransaction() is synchronous. In order to make this code fully - // synchronous and actually start the profiler, we need synchronous FFI - // calls, see https://github.com/getsentry/sentry-dart/issues/1444 - // For now, return immediately even though the profiler may not have started yet... - // XXX fixme future.value - return NativeProfiler( - _native, Future.value(startTime), context.traceId, _clock); + if (startTime == null) { + return null; + } + return NativeProfiler(_native, startTime, context.traceId, _clock); } } @@ -61,18 +56,18 @@ class NativeProfilerFactory implements ProfilerFactory { // ignore: invalid_use_of_internal_member class NativeProfiler implements Profiler { final SentryNative _native; - final Future _startTime; + final int _starTimeNs; final SentryId _traceId; bool _finished = false; final ClockProvider _clock; - NativeProfiler(this._native, this._startTime, this._traceId, this._clock); + NativeProfiler(this._native, this._starTimeNs, this._traceId, this._clock); @override void dispose() { if (!_finished) { _finished = true; - _startTime.then((_) => _native.discardProfiler(_traceId)); + _native.discardProfiler(_traceId); } } @@ -83,18 +78,13 @@ class NativeProfiler implements Profiler { } _finished = true; - final starTimeNs = await _startTime; - if (starTimeNs == null) { - return null; - } - // ignore: invalid_use_of_internal_member final transactionEndTime = transaction.timestamp ?? _clock(); final duration = transactionEndTime.difference(transaction.startTimestamp); - final endTimeNs = starTimeNs + (duration.inMicroseconds * 1000); + final endTimeNs = _starTimeNs + (duration.inMicroseconds * 1000); final payload = - await _native.collectProfile(_traceId, starTimeNs, endTimeNs); + await _native.collectProfile(_traceId, _starTimeNs, endTimeNs); if (payload == null) { return null; } @@ -104,13 +94,6 @@ class NativeProfiler implements Profiler { payload["transaction"]["name"] = transaction.transaction; payload["timestamp"] = transaction.startTimestamp.toIso8601String(); return NativeProfileInfo(payload); - // final cSentryId = c.SentryId.alloc(_ffi) - // ..initWithUUIDString_(c.NSString(_ffi, context.traceId.toString())); - // final startTime = - // c.PrivateSentrySDKOnly.startProfilerForTrace_(_ffi, cSentryId); - - // return NativeProfiler( - // _native, Future.value(startTime), context.traceId, _clock); } } diff --git a/flutter/lib/src/sentry_flutter.dart b/flutter/lib/src/sentry_flutter.dart index 34d10f01fa..e11537c4ee 100644 --- a/flutter/lib/src/sentry_flutter.dart +++ b/flutter/lib/src/sentry_flutter.dart @@ -10,6 +10,7 @@ import 'event_processor/android_platform_exception_event_processor.dart'; import 'event_processor/flutter_exception_event_processor.dart'; import 'event_processor/platform_exception_event_processor.dart'; import 'integrations/screenshot_integration.dart'; +import 'native/cocoa/sentry_native_cocoa.dart'; import 'native/native_scope_observer.dart'; import 'native/sentry_native_channel.dart'; import 'profiling.dart'; @@ -55,8 +56,7 @@ mixin SentryFlutter { // Set a default native channel to the singleton SentryNative instance. if (flutterOptions.platformChecker.platform.isIOS || flutterOptions.platformChecker.platform.isMacOS) { - // TODO SentryNativeCocoa(channel); - binding = SentryNativeChannel(channel); + binding = SentryNativeCocoa(channel); } else { binding = SentryNativeChannel(channel); } From dccb853194a404464f31723063b469e06efa720e Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Tue, 12 Sep 2023 21:04:11 +0200 Subject: [PATCH 17/32] tmp: findPrimeNumber in example --- flutter/example/lib/main.dart | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/flutter/example/lib/main.dart b/flutter/example/lib/main.dart index bb4b58a01a..876fdd2baf 100644 --- a/flutter/example/lib/main.dart +++ b/flutter/example/lib/main.dart @@ -328,7 +328,7 @@ class MainScaffold extends StatelessWidget { status: const SpanStatus.internalError()); await Future.delayed(const Duration(milliseconds: 50)); - + findPrimeNumber(1000000); // xxx remove - just for testing await transaction.finish(status: const SpanStatus.ok()); }, child: const Text('Capture transaction'), @@ -856,3 +856,24 @@ class ThemeProvider extends ChangeNotifier { Future execute(String method) async { await _channel.invokeMethod(method); } + +int findPrimeNumber(int n) { + int count = 0; + int a = 2; + while (count < n) { + int b = 2; + bool prime = true; // to check if found a prime + while (b * b <= a) { + if (a % b == 0) { + prime = false; + break; + } + b++; + } + if (prime) { + count++; + } + a++; + } + return a - 1; +} From 61198123ef82fef2f4a9ee53f3fa3ca51a8862ba Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Mon, 18 Sep 2023 10:11:33 +0200 Subject: [PATCH 18/32] fix: make FFI dependency conditional (web/vm) --- flutter/lib/src/native/factory.dart | 1 + flutter/lib/src/native/factory_real.dart | 14 ++++++++++++++ flutter/lib/src/native/factory_web.dart | 9 +++++++++ flutter/lib/src/sentry_flutter.dart | 15 ++------------- 4 files changed, 26 insertions(+), 13 deletions(-) create mode 100644 flutter/lib/src/native/factory.dart create mode 100644 flutter/lib/src/native/factory_real.dart create mode 100644 flutter/lib/src/native/factory_web.dart diff --git a/flutter/lib/src/native/factory.dart b/flutter/lib/src/native/factory.dart new file mode 100644 index 0000000000..981e1d6ead --- /dev/null +++ b/flutter/lib/src/native/factory.dart @@ -0,0 +1 @@ +export 'factory_real.dart' if (dart.library.html) 'factory_web.dart'; diff --git a/flutter/lib/src/native/factory_real.dart b/flutter/lib/src/native/factory_real.dart new file mode 100644 index 0000000000..3c918b7be7 --- /dev/null +++ b/flutter/lib/src/native/factory_real.dart @@ -0,0 +1,14 @@ +import 'package:flutter/services.dart'; + +import '../../sentry_flutter.dart'; +import 'cocoa/sentry_native_cocoa.dart'; +import 'sentry_native_binding.dart'; +import 'sentry_native_channel.dart'; + +SentryNativeBinding createBinding(PlatformChecker pc, MethodChannel channel) { + if (pc.platform.isIOS || pc.platform.isMacOS) { + return SentryNativeCocoa(channel); + } else { + return SentryNativeChannel(channel); + } +} diff --git a/flutter/lib/src/native/factory_web.dart b/flutter/lib/src/native/factory_web.dart new file mode 100644 index 0000000000..8038ea9780 --- /dev/null +++ b/flutter/lib/src/native/factory_web.dart @@ -0,0 +1,9 @@ +import 'package:flutter/services.dart'; + +import '../../sentry_flutter.dart'; +import 'sentry_native_binding.dart'; + +// This isn't actually called, see SentryFlutter.init() +SentryNativeBinding createBinding(PlatformChecker pc, MethodChannel channel) { + throw UnsupportedError("Native binding is not supported on this platform."); +} diff --git a/flutter/lib/src/sentry_flutter.dart b/flutter/lib/src/sentry_flutter.dart index e11537c4ee..59b42266c7 100644 --- a/flutter/lib/src/sentry_flutter.dart +++ b/flutter/lib/src/sentry_flutter.dart @@ -10,13 +10,11 @@ import 'event_processor/android_platform_exception_event_processor.dart'; import 'event_processor/flutter_exception_event_processor.dart'; import 'event_processor/platform_exception_event_processor.dart'; import 'integrations/screenshot_integration.dart'; -import 'native/cocoa/sentry_native_cocoa.dart'; +import 'native/factory.dart'; import 'native/native_scope_observer.dart'; -import 'native/sentry_native_channel.dart'; import 'profiling.dart'; import 'renderer/renderer.dart'; import 'native/sentry_native.dart'; -import 'native/sentry_native_binding.dart'; import 'integrations/integrations.dart'; import 'event_processor/flutter_enricher_event_processor.dart'; @@ -51,16 +49,7 @@ mixin SentryFlutter { } if (flutterOptions.platformChecker.hasNativeIntegration) { - late final SentryNativeBinding binding; - - // Set a default native channel to the singleton SentryNative instance. - if (flutterOptions.platformChecker.platform.isIOS || - flutterOptions.platformChecker.platform.isMacOS) { - binding = SentryNativeCocoa(channel); - } else { - binding = SentryNativeChannel(channel); - } - + final binding = createBinding(flutterOptions.platformChecker, channel); _native = SentryNative(flutterOptions, binding); } From 5218efa288d739dd5de741902071945b4d07c06e Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Mon, 18 Sep 2023 10:31:40 +0200 Subject: [PATCH 19/32] exclude generated binding code from code coverage --- .github/workflows/flutter.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/flutter.yml b/.github/workflows/flutter.yml index cb05fac65d..970ab3979f 100644 --- a/.github/workflows/flutter.yml +++ b/.github/workflows/flutter.yml @@ -115,6 +115,7 @@ jobs: with: path: "./flutter/coverage/lcov.info" min_coverage: 90 + exclude: "lib/src/native/cocoa/binding.dart" - name: Build ${{ matrix.target }} run: | From 4c8f2bf1f56e1549802b93c646066cb4d340e820 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Mon, 18 Sep 2023 17:03:05 +0200 Subject: [PATCH 20/32] test: profiler integration test --- .../integration_test/profiling_test.dart | 64 +++++++++++++++++++ flutter/example/pubspec.yaml | 1 + flutter/lib/src/profiling.dart | 3 - 3 files changed, 65 insertions(+), 3 deletions(-) create mode 100644 flutter/example/integration_test/profiling_test.dart diff --git a/flutter/example/integration_test/profiling_test.dart b/flutter/example/integration_test/profiling_test.dart new file mode 100644 index 0000000000..daa15861dc --- /dev/null +++ b/flutter/example/integration_test/profiling_test.dart @@ -0,0 +1,64 @@ +import 'dart:convert'; + +import 'package:flutter_test/flutter_test.dart'; +import 'package:sentry_flutter/sentry_flutter.dart'; +import '../../../dart/test/mocks/mock_transport.dart'; + +void main() { + TestWidgetsFlutterBinding.ensureInitialized(); + + final transport = MockTransport(); + + setUp(() async { + await SentryFlutter.init((options) { + // ignore: invalid_use_of_internal_member + options.devMode = true; + options.dsn = 'https://abc@def.ingest.sentry.io/1234567'; + options.debug = true; + options.transport = transport; + options.tracesSampleRate = 1.0; + options.profilesSampleRate = 1.0; + }); + }); + + tearDown(() async { + await Sentry.close(); + transport.reset(); + }); + + test('native binding is initialized', () async { + // ignore: invalid_use_of_internal_member + expect(SentryFlutter.native, isNotNull); + }); + + test('profile is captured', () async { + final tx = Sentry.startTransaction("name", "op"); + await Future.delayed(const Duration(milliseconds: 1000)); + await tx.finish(); + expect(transport.calls, 1); + + final envelope = transport.envelopes.first; + expect(envelope.items.length, 2); + expect(envelope.items[0].header.type, "transaction"); + expect(await envelope.items[0].header.length(), greaterThan(0)); + expect(envelope.items[1].header.type, "profile"); + expect(await envelope.items[1].header.length(), greaterThan(0)); + + final txJson = utf8.decode(await envelope.items[0].dataFactory()); + final txData = json.decode(txJson) as Map; + + final profileJson = utf8.decode(await envelope.items[1].dataFactory()); + final profileData = json.decode(profileJson) as Map; + + expect(txData["event_id"], isNotNull); + expect(txData["event_id"], profileData["transaction"]["id"]); + expect(txData["contexts"]["trace"]["trace_id"], isNotNull); + expect(txData["contexts"]["trace"]["trace_id"], + profileData["transaction"]["trace_id"]); + expect(profileData["debug_meta"]["images"], isNotEmpty); + expect(profileData["profile"]["thread_metadata"], isNotEmpty); + expect(profileData["profile"]["samples"], isNotEmpty); + expect(profileData["profile"]["stacks"], isNotEmpty); + expect(profileData["profile"]["frames"], isNotEmpty); + }); +} diff --git a/flutter/example/pubspec.yaml b/flutter/example/pubspec.yaml index c4596f70b8..cf63be629c 100644 --- a/flutter/example/pubspec.yaml +++ b/flutter/example/pubspec.yaml @@ -36,6 +36,7 @@ dev_dependencies: sdk: flutter flutter_test: sdk: flutter + test: ^1.21.1 flutter: uses-material-design: true diff --git a/flutter/lib/src/profiling.dart b/flutter/lib/src/profiling.dart index da7b09b005..8a0d3f7def 100644 --- a/flutter/lib/src/profiling.dart +++ b/flutter/lib/src/profiling.dart @@ -50,9 +50,6 @@ class NativeProfilerFactory implements ProfilerFactory { return NativeProfiler(_native, startTime, context.traceId, _clock); } } - -// TODO this may move to the native code in the future - instead of unit-testing, -// do an integration test once https://github.com/getsentry/sentry-dart/issues/1605 is done. // ignore: invalid_use_of_internal_member class NativeProfiler implements Profiler { final SentryNative _native; From e0bb3ab8adbe3200cb4905b9a214ea752b13237e Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Mon, 18 Sep 2023 21:22:03 +0200 Subject: [PATCH 21/32] workaround for the integration test issue --- .github/workflows/flutter_test.yml | 4 ++-- flutter/example/integration_test/all.dart | 8 ++++++++ flutter/example/integration_test/profiling_test.dart | 8 +++++--- 3 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 flutter/example/integration_test/all.dart diff --git a/.github/workflows/flutter_test.yml b/.github/workflows/flutter_test.yml index 3bfda0de36..d17f591452 100644 --- a/.github/workflows/flutter_test.yml +++ b/.github/workflows/flutter_test.yml @@ -103,7 +103,7 @@ jobs: avd-name: macOS-avd-x86_64-31 emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none disable-animations: true - script: flutter test integration_test --verbose + script: flutter test integration_test/all.dart --verbose cocoa: name: "${{ matrix.target }} | ${{ matrix.sdk }}" @@ -154,7 +154,7 @@ jobs: - name: run integration test # Disable flutter integration tests for iOS for now (https://github.com/getsentry/sentry-dart/issues/1605#issuecomment-1695809346) if: ${{ matrix.target != 'ios' }} - run: flutter test -d "${{ steps.device.outputs.name }}" integration_test --verbose + run: flutter test -d "${{ steps.device.outputs.name }}" integration_test/all.dart --verbose - name: run native test # We only have the native unit test package in the iOS xcodeproj at the moment. diff --git a/flutter/example/integration_test/all.dart b/flutter/example/integration_test/all.dart new file mode 100644 index 0000000000..69cc5a6641 --- /dev/null +++ b/flutter/example/integration_test/all.dart @@ -0,0 +1,8 @@ +// Workaround for https://github.com/flutter/flutter/issues/101031 +import 'integration_test.dart' as a; +import 'profiling_test.dart' as b; + +void main() { + a.main(); + b.main(); +} diff --git a/flutter/example/integration_test/profiling_test.dart b/flutter/example/integration_test/profiling_test.dart index daa15861dc..fd0eac12f9 100644 --- a/flutter/example/integration_test/profiling_test.dart +++ b/flutter/example/integration_test/profiling_test.dart @@ -1,12 +1,11 @@ import 'dart:convert'; +import 'dart:io'; import 'package:flutter_test/flutter_test.dart'; import 'package:sentry_flutter/sentry_flutter.dart'; import '../../../dart/test/mocks/mock_transport.dart'; void main() { - TestWidgetsFlutterBinding.ensureInitialized(); - final transport = MockTransport(); setUp(() async { @@ -60,5 +59,8 @@ void main() { expect(profileData["profile"]["samples"], isNotEmpty); expect(profileData["profile"]["stacks"], isNotEmpty); expect(profileData["profile"]["frames"], isNotEmpty); - }); + }, + skip: (Platform.isMacOS || Platform.isIOS) + ? false + : "Profiling is not supported on this platform"); } From 8a4fed7410805d5c811c53e672d48bd95a7614fd Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Tue, 19 Sep 2023 09:50:26 +0200 Subject: [PATCH 22/32] chore: formatting --- flutter/lib/src/profiling.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/flutter/lib/src/profiling.dart b/flutter/lib/src/profiling.dart index 8a0d3f7def..e88bcec1e4 100644 --- a/flutter/lib/src/profiling.dart +++ b/flutter/lib/src/profiling.dart @@ -50,6 +50,7 @@ class NativeProfilerFactory implements ProfilerFactory { return NativeProfiler(_native, startTime, context.traceId, _clock); } } + // ignore: invalid_use_of_internal_member class NativeProfiler implements Profiler { final SentryNative _native; From 39d1187a934675f7fe36ab2dcba448aad4515b77 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Mon, 25 Sep 2023 08:57:20 +0200 Subject: [PATCH 23/32] chore: remove obsolete code --- flutter/ios/Classes/SentryFlutterPluginApple.swift | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/flutter/ios/Classes/SentryFlutterPluginApple.swift b/flutter/ios/Classes/SentryFlutterPluginApple.swift index b4691b063a..be5e301791 100644 --- a/flutter/ios/Classes/SentryFlutterPluginApple.swift +++ b/flutter/ios/Classes/SentryFlutterPluginApple.swift @@ -153,9 +153,6 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin { removeTag(key: key, result: result) #if !os(tvOS) && !os(watchOS) - case "startProfiler": - startProfiler(call, result) - case "discardProfiler": discardProfiler(call, result) @@ -562,17 +559,6 @@ public class SentryFlutterPluginApple: NSObject, FlutterPlugin { } } - private func startProfiler(_ call: FlutterMethodCall, _ result: @escaping FlutterResult) { - guard let traceId = call.arguments as? String else { - print("Cannot start profiling: trace ID missing") - result(FlutterError(code: "5", message: "Cannot start profiling: trace ID missing", details: nil)) - return - } - - let startTime = PrivateSentrySDKOnly.startProfiler(forTrace: SentryId(uuidString: traceId)) - result(startTime) - } - private func collectProfile(_ call: FlutterMethodCall, _ result: @escaping FlutterResult) { guard let arguments = call.arguments as? [String: Any], let traceId = arguments["traceId"] as? String else { From 50994d45dbc3a5f93a38930aad346d5e28356519 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos <6349682+vaind@users.noreply.github.com> Date: Tue, 3 Oct 2023 21:16:13 +0200 Subject: [PATCH 24/32] Update flutter/example/lib/main.dart Co-authored-by: Bruno Garcia --- flutter/example/lib/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter/example/lib/main.dart b/flutter/example/lib/main.dart index 876fdd2baf..442f06f2bc 100644 --- a/flutter/example/lib/main.dart +++ b/flutter/example/lib/main.dart @@ -328,7 +328,7 @@ class MainScaffold extends StatelessWidget { status: const SpanStatus.internalError()); await Future.delayed(const Duration(milliseconds: 50)); - findPrimeNumber(1000000); // xxx remove - just for testing + // findPrimeNumber(1000000); // Uncomment to see it with profiling await transaction.finish(status: const SpanStatus.ok()); }, child: const Text('Capture transaction'), From 6e599fb0f5a965f2724ca3cd630312d2def9a27d Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Tue, 3 Oct 2023 21:23:37 +0200 Subject: [PATCH 25/32] renames --- dart/lib/src/hub.dart | 8 ++++---- dart/lib/src/hub_adapter.dart | 5 +++-- dart/lib/src/noop_hub.dart | 4 ++-- dart/lib/src/profiling.dart | 10 +++++----- dart/lib/src/sentry_tracer.dart | 4 ++-- dart/test/mocks.dart | 6 +++--- dart/test/mocks.mocks.dart | 30 ++++++++++++++++-------------- flutter/lib/src/profiling.dart | 6 +++--- flutter/test/mocks.mocks.dart | 6 +++--- 9 files changed, 41 insertions(+), 38 deletions(-) diff --git a/dart/lib/src/hub.dart b/dart/lib/src/hub.dart index 2812dfca1e..8c90d4e5cc 100644 --- a/dart/lib/src/hub.dart +++ b/dart/lib/src/hub.dart @@ -452,7 +452,7 @@ class Hub { ); } - Profiler? profiler; + SentryProfiler? profiler; if (_profilerFactory != null && _tracesSampler.sampleProfiling(samplingDecision)) { profiler = _profilerFactory?.startProfiler(transactionContext); @@ -563,12 +563,12 @@ class Hub { _throwableToSpan.add(throwable, span, transaction); @internal - ProfilerFactory? get profilerFactory => _profilerFactory; + SentryProfilerFactory? get profilerFactory => _profilerFactory; @internal - set profilerFactory(ProfilerFactory? value) => _profilerFactory = value; + set profilerFactory(SentryProfilerFactory? value) => _profilerFactory = value; - ProfilerFactory? _profilerFactory; + SentryProfilerFactory? _profilerFactory; SentryEvent _assignTraceContext(SentryEvent event) { // assign trace context diff --git a/dart/lib/src/hub_adapter.dart b/dart/lib/src/hub_adapter.dart index 3fad3b2839..8a9107ae54 100644 --- a/dart/lib/src/hub_adapter.dart +++ b/dart/lib/src/hub_adapter.dart @@ -171,12 +171,13 @@ class HubAdapter implements Hub { @internal @override - set profilerFactory(ProfilerFactory? value) => + set profilerFactory(SentryProfilerFactory? value) => Sentry.currentHub.profilerFactory = value; @internal @override - ProfilerFactory? get profilerFactory => Sentry.currentHub.profilerFactory; + SentryProfilerFactory? get profilerFactory => + Sentry.currentHub.profilerFactory; @override Scope get scope => Sentry.currentHub.scope; diff --git a/dart/lib/src/noop_hub.dart b/dart/lib/src/noop_hub.dart index fa7bbe84a8..06d31e7da2 100644 --- a/dart/lib/src/noop_hub.dart +++ b/dart/lib/src/noop_hub.dart @@ -123,11 +123,11 @@ class NoOpHub implements Hub { @internal @override - set profilerFactory(ProfilerFactory? value) {} + set profilerFactory(SentryProfilerFactory? value) {} @internal @override - ProfilerFactory? get profilerFactory => null; + SentryProfilerFactory? get profilerFactory => null; @override Scope get scope => Scope(_options); diff --git a/dart/lib/src/profiling.dart b/dart/lib/src/profiling.dart index 9bce57ffd7..d0ed997313 100644 --- a/dart/lib/src/profiling.dart +++ b/dart/lib/src/profiling.dart @@ -5,18 +5,18 @@ import 'package:meta/meta.dart'; import '../sentry.dart'; @internal -abstract class ProfilerFactory { - Profiler? startProfiler(SentryTransactionContext context); +abstract class SentryProfilerFactory { + SentryProfiler? startProfiler(SentryTransactionContext context); } @internal -abstract class Profiler { - Future finishFor(SentryTransaction transaction); +abstract class SentryProfiler { + Future finishFor(SentryTransaction transaction); void dispose(); } // See https://develop.sentry.dev/sdk/profiles/ @internal -abstract class ProfileInfo { +abstract class SentryProfileInfo { SentryEnvelopeItem asEnvelopeItem(); } diff --git a/dart/lib/src/sentry_tracer.dart b/dart/lib/src/sentry_tracer.dart index 80f1554225..6012a13bfb 100644 --- a/dart/lib/src/sentry_tracer.dart +++ b/dart/lib/src/sentry_tracer.dart @@ -33,11 +33,11 @@ class SentryTracer extends ISentrySpan { SentryTraceContextHeader? _sentryTraceContextHeader; // Profiler attached to this tracer. - late final Profiler? profiler; + late final SentryProfiler? profiler; // Resulting profile, after it has been collected. This is later used by // SentryClient to attach as an envelope item when sending the transaction. - ProfileInfo? profileInfo; + SentryProfileInfo? profileInfo; /// If [waitForChildren] is true, this transaction will not finish until all /// its children are finished. diff --git a/dart/test/mocks.dart b/dart/test/mocks.dart index edc3edb211..b5fdd59aa9 100644 --- a/dart/test/mocks.dart +++ b/dart/test/mocks.dart @@ -153,8 +153,8 @@ class MockRateLimiter implements RateLimiter { } @GenerateMocks([ - ProfilerFactory, - Profiler, - ProfileInfo, + SentryProfilerFactory, + SentryProfiler, + SentryProfileInfo, ]) void main() {} diff --git a/dart/test/mocks.mocks.dart b/dart/test/mocks.mocks.dart index 44a1236747..5f2556400e 100644 --- a/dart/test/mocks.mocks.dart +++ b/dart/test/mocks.mocks.dart @@ -31,39 +31,41 @@ class _FakeSentryEnvelopeItem_0 extends _i1.SmartFake ); } -/// A class which mocks [ProfilerFactory]. +/// A class which mocks [SentryProfilerFactory]. /// /// See the documentation for Mockito's code generation for more information. -class MockProfilerFactory extends _i1.Mock implements _i3.ProfilerFactory { - MockProfilerFactory() { +class MockSentryProfilerFactory extends _i1.Mock + implements _i3.SentryProfilerFactory { + MockSentryProfilerFactory() { _i1.throwOnMissingStub(this); } @override - _i3.Profiler? startProfiler(_i2.SentryTransactionContext? context) => + _i3.SentryProfiler? startProfiler(_i2.SentryTransactionContext? context) => (super.noSuchMethod(Invocation.method( #startProfiler, [context], - )) as _i3.Profiler?); + )) as _i3.SentryProfiler?); } -/// A class which mocks [Profiler]. +/// A class which mocks [SentryProfiler]. /// /// See the documentation for Mockito's code generation for more information. -class MockProfiler extends _i1.Mock implements _i3.Profiler { - MockProfiler() { +class MockSentryProfiler extends _i1.Mock implements _i3.SentryProfiler { + MockSentryProfiler() { _i1.throwOnMissingStub(this); } @override - _i4.Future<_i3.ProfileInfo?> finishFor(_i2.SentryTransaction? transaction) => + _i4.Future<_i3.SentryProfileInfo?> finishFor( + _i2.SentryTransaction? transaction) => (super.noSuchMethod( Invocation.method( #finishFor, [transaction], ), - returnValue: _i4.Future<_i3.ProfileInfo?>.value(), - ) as _i4.Future<_i3.ProfileInfo?>); + returnValue: _i4.Future<_i3.SentryProfileInfo?>.value(), + ) as _i4.Future<_i3.SentryProfileInfo?>); @override void dispose() => super.noSuchMethod( Invocation.method( @@ -74,11 +76,11 @@ class MockProfiler extends _i1.Mock implements _i3.Profiler { ); } -/// A class which mocks [ProfileInfo]. +/// A class which mocks [SentryProfileInfo]. /// /// See the documentation for Mockito's code generation for more information. -class MockProfileInfo extends _i1.Mock implements _i3.ProfileInfo { - MockProfileInfo() { +class MockSentryProfileInfo extends _i1.Mock implements _i3.SentryProfileInfo { + MockSentryProfileInfo() { _i1.throwOnMissingStub(this); } diff --git a/flutter/lib/src/profiling.dart b/flutter/lib/src/profiling.dart index e88bcec1e4..2480fb000b 100644 --- a/flutter/lib/src/profiling.dart +++ b/flutter/lib/src/profiling.dart @@ -11,7 +11,7 @@ import '../sentry_flutter.dart'; import 'native/sentry_native.dart'; // ignore: invalid_use_of_internal_member -class NativeProfilerFactory implements ProfilerFactory { +class NativeProfilerFactory implements SentryProfilerFactory { final SentryNative _native; final ClockProvider _clock; @@ -52,7 +52,7 @@ class NativeProfilerFactory implements ProfilerFactory { } // ignore: invalid_use_of_internal_member -class NativeProfiler implements Profiler { +class NativeProfiler implements SentryProfiler { final SentryNative _native; final int _starTimeNs; final SentryId _traceId; @@ -96,7 +96,7 @@ class NativeProfiler implements Profiler { } // ignore: invalid_use_of_internal_member -class NativeProfileInfo implements ProfileInfo { +class NativeProfileInfo implements SentryProfileInfo { final Map _payload; // ignore: invalid_use_of_internal_member late final List _data = utf8JsonEncoder.convert(_payload); diff --git a/flutter/test/mocks.mocks.dart b/flutter/test/mocks.mocks.dart index ebfc095fda..7e8b1c28ef 100644 --- a/flutter/test/mocks.mocks.dart +++ b/flutter/test/mocks.mocks.dart @@ -219,7 +219,7 @@ class MockSentryTracer extends _i1.Mock implements _i4.SentryTracer { returnValueForMissingStub: null, ); @override - set profiler(_i9.Profiler? _profiler) => super.noSuchMethod( + set profiler(_i9.SentryProfiler? _profiler) => super.noSuchMethod( Invocation.setter( #profiler, _profiler, @@ -227,7 +227,7 @@ class MockSentryTracer extends _i1.Mock implements _i4.SentryTracer { returnValueForMissingStub: null, ); @override - set profileInfo(_i9.ProfileInfo? _profileInfo) => super.noSuchMethod( + set profileInfo(_i9.SentryProfileInfo? _profileInfo) => super.noSuchMethod( Invocation.setter( #profileInfo, _profileInfo, @@ -797,7 +797,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { ), ) as _i2.Scope); @override - set profilerFactory(_i9.ProfilerFactory? value) => super.noSuchMethod( + set profilerFactory(_i9.SentryProfilerFactory? value) => super.noSuchMethod( Invocation.setter( #profilerFactory, value, From e7582d79f4fc33f287bff2d740947b6199630cc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Andra=C5=A1ec?= Date: Mon, 25 Sep 2023 10:44:55 +0000 Subject: [PATCH 26/32] Breadcrumbs for file I/O operations (#1649) --- CHANGELOG.md | 4 ++ file/lib/src/sentry_file.dart | 32 ++++++++- file/test/mock_sentry_client.dart | 5 +- file/test/sentry_file_test.dart | 109 ++++++++++++++++++++++++++++++ 4 files changed, 146 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c3e79e483..40d3b04f3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Features + +- Breadcrumbs for file I/O operations ([#1649](https://github.com/getsentry/sentry-dart/pull/1649)) + ### Dependencies - Enable compatibility with uuid v4 ([#1647](https://github.com/getsentry/sentry-dart/pull/1647)) diff --git a/file/lib/src/sentry_file.dart b/file/lib/src/sentry_file.dart index 4b7659dc0c..de0004c938 100644 --- a/file/lib/src/sentry_file.dart +++ b/file/lib/src/sentry_file.dart @@ -215,7 +215,8 @@ import 'version.dart'; typedef Callback = FutureOr Function(); /// The Sentry wrapper for the File IO implementation that creates a span -/// out of the active transaction in the scope. +/// out of the active transaction in the scope and a breadcrumb, which gets +/// added to the hub. /// The span is started before the operation is executed and finished after. /// The File tracing isn't available for Web. /// @@ -228,7 +229,7 @@ typedef Callback = FutureOr Function(); /// final sentryFile = SentryFile(file); /// // span starts /// await sentryFile.writeAsString('Hello World'); -/// // span finishes +/// // span finishes, adds breadcrumb /// ``` /// /// All the copy, create, delete, open, rename, read, and write operations are @@ -425,8 +426,13 @@ class SentryFile implements File { span?.origin = SentryTraceOrigins.autoFile; span?.setData('file.async', true); + + final Map breadcrumbData = {}; + breadcrumbData['file.async'] = true; + if (_hub.options.sendDefaultPii) { span?.setData('file.path', absolute.path); + breadcrumbData['file.path'] = absolute.path; } T data; try { @@ -453,6 +459,7 @@ class SentryFile implements File { if (length != null) { span?.setData('file.size', length); + breadcrumbData['file.size'] = length; } span?.status = SpanStatus.ok(); @@ -462,6 +469,14 @@ class SentryFile implements File { rethrow; } finally { await span?.finish(); + + await _hub.addBreadcrumb( + Breadcrumb( + message: desc, + data: breadcrumbData, + category: operation, + ), + ); } return data; } @@ -475,8 +490,12 @@ class SentryFile implements File { span?.origin = SentryTraceOrigins.autoFile; span?.setData('file.async', false); + final Map breadcrumbData = {}; + breadcrumbData['file.async'] = false; + if (_hub.options.sendDefaultPii) { span?.setData('file.path', absolute.path); + breadcrumbData['file.path'] = absolute.path; } T data; @@ -504,6 +523,7 @@ class SentryFile implements File { if (length != null) { span?.setData('file.size', length); + breadcrumbData['file.size'] = length; } span?.status = SpanStatus.ok(); @@ -513,6 +533,14 @@ class SentryFile implements File { rethrow; } finally { span?.finish(); + + _hub.addBreadcrumb( + Breadcrumb( + message: desc, + data: breadcrumbData, + category: operation, + ), + ); } return data; } diff --git a/file/test/mock_sentry_client.dart b/file/test/mock_sentry_client.dart index c68fde9b47..4a4a28142d 100644 --- a/file/test/mock_sentry_client.dart +++ b/file/test/mock_sentry_client.dart @@ -14,7 +14,7 @@ class MockSentryClient with NoSuchMethodProvider implements SentryClient { SentryTraceContextHeader? traceContext, }) async { captureTransactionCalls - .add(CaptureTransactionCall(transaction, traceContext)); + .add(CaptureTransactionCall(transaction, traceContext, scope)); return transaction.eventId; } } @@ -22,6 +22,7 @@ class MockSentryClient with NoSuchMethodProvider implements SentryClient { class CaptureTransactionCall { final SentryTransaction transaction; final SentryTraceContextHeader? traceContext; + final Scope? scope; - CaptureTransactionCall(this.transaction, this.traceContext); + CaptureTransactionCall(this.transaction, this.traceContext, this.scope); } diff --git a/file/test/sentry_file_test.dart b/file/test/sentry_file_test.dart index a3fc47f670..3f7135de54 100644 --- a/file/test/sentry_file_test.dart +++ b/file/test/sentry_file_test.dart @@ -36,6 +36,20 @@ void main() { expect(span.origin, SentryTraceOrigins.autoFile); } + void _asserBreadcrumb(bool async) { + final call = fixture.client.captureTransactionCalls.first; + final breadcrumb = call.scope?.breadcrumbs.first; + + expect(breadcrumb?.category, 'file.copy'); + expect(breadcrumb?.data?['file.size'], 7); + expect(breadcrumb?.data?['file.async'], async); + expect(breadcrumb?.message, 'testfile.txt'); + expect( + (breadcrumb?.data?['file.path'] as String) + .endsWith('test_resources/testfile.txt'), + true); + } + test('async', () async { final file = File('test_resources/testfile.txt'); @@ -56,6 +70,7 @@ void main() { expect(sut.uri.toFilePath(), isNot(newFile.uri.toFilePath())); _assertSpan(true); + _asserBreadcrumb(true); await newFile.delete(); }); @@ -80,6 +95,7 @@ void main() { expect(sut.uri.toFilePath(), isNot(newFile.uri.toFilePath())); _assertSpan(false); + _asserBreadcrumb(false); newFile.deleteSync(); }); @@ -107,6 +123,20 @@ void main() { expect(span.origin, SentryTraceOrigins.autoFile); } + void _assertBreadcrumb(bool async, {int? size = 0}) { + final call = fixture.client.captureTransactionCalls.first; + final breadcrumb = call.scope?.breadcrumbs.first; + + expect(breadcrumb?.category, 'file.write'); + expect(breadcrumb?.data?['file.size'], size); + expect(breadcrumb?.data?['file.async'], async); + expect(breadcrumb?.message, 'testfile_create.txt'); + expect( + (breadcrumb?.data?['file.path'] as String) + .endsWith('test_resources/testfile_create.txt'), + true); + } + test('async', () async { final file = File('test_resources/testfile_create.txt'); expect(await file.exists(), false); @@ -126,6 +156,7 @@ void main() { expect(await newFile.exists(), true); _assertSpan(true); + _assertBreadcrumb(true); await newFile.delete(); }); @@ -149,6 +180,7 @@ void main() { expect(sut.existsSync(), true); _assertSpan(false); + _assertBreadcrumb(false); sut.deleteSync(); }); @@ -176,6 +208,20 @@ void main() { expect(span.origin, SentryTraceOrigins.autoFile); } + void _assertBreadcrumb(bool async, {int? size = 0}) { + final call = fixture.client.captureTransactionCalls.first; + final breadcrumb = call.scope?.breadcrumbs.first; + + expect(breadcrumb?.category, 'file.delete'); + expect(breadcrumb?.data?['file.size'], size); + expect(breadcrumb?.data?['file.async'], async); + expect(breadcrumb?.message, 'testfile_delete.txt'); + expect( + (breadcrumb?.data?['file.path'] as String) + .endsWith('test_resources/testfile_delete.txt'), + true); + } + test('async', () async { final file = File('test_resources/testfile_delete.txt'); await file.create(); @@ -196,6 +242,7 @@ void main() { expect(await newFile.exists(), false); _assertSpan(true); + _assertBreadcrumb(true); }); test('sync', () async { @@ -218,6 +265,7 @@ void main() { expect(sut.existsSync(), false); _assertSpan(false); + _assertBreadcrumb(false); }); }); @@ -243,6 +291,20 @@ void main() { expect(span.origin, SentryTraceOrigins.autoFile); } + void _assertBreadcrumb() { + final call = fixture.client.captureTransactionCalls.first; + final breadcrumb = call.scope?.breadcrumbs.first; + + expect(breadcrumb?.category, 'file.open'); + expect(breadcrumb?.data?['file.size'], 3535); + expect(breadcrumb?.data?['file.async'], true); + expect(breadcrumb?.message, 'sentry.png'); + expect( + (breadcrumb?.data?['file.path'] as String) + .endsWith('test_resources/sentry.png'), + true); + } + test('async', () async { final file = File('test_resources/sentry.png'); @@ -261,6 +323,7 @@ void main() { await newFile.close(); _assertSpan(); + _assertBreadcrumb(); }); }); @@ -286,6 +349,20 @@ void main() { expect(span.origin, SentryTraceOrigins.autoFile); } + void _assertBreadcrumb(String fileName, bool async, {int? size = 0}) { + final call = fixture.client.captureTransactionCalls.first; + final breadcrumb = call.scope?.breadcrumbs.first; + + expect(breadcrumb?.category, 'file.read'); + expect(breadcrumb?.data?['file.size'], size); + expect(breadcrumb?.data?['file.async'], async); + expect(breadcrumb?.message, fileName); + expect( + (breadcrumb?.data?['file.path'] as String) + .endsWith('test_resources/$fileName'), + true); + } + test('as bytes async', () async { final file = File('test_resources/sentry.png'); @@ -302,6 +379,7 @@ void main() { await tr.finish(); _assertSpan('sentry.png', true, size: 3535); + _assertBreadcrumb('sentry.png', true, size: 3535); }); test('as bytes sync', () async { @@ -320,6 +398,7 @@ void main() { await tr.finish(); _assertSpan('sentry.png', false, size: 3535); + _assertBreadcrumb('sentry.png', false, size: 3535); }); test('lines async', () async { @@ -338,6 +417,7 @@ void main() { await tr.finish(); _assertSpan('testfile.txt', true, size: 7); + _assertBreadcrumb('testfile.txt', true, size: 7); }); test('lines sync', () async { @@ -356,6 +436,7 @@ void main() { await tr.finish(); _assertSpan('testfile.txt', false, size: 7); + _assertBreadcrumb('testfile.txt', false, size: 7); }); test('string async', () async { @@ -374,6 +455,7 @@ void main() { await tr.finish(); _assertSpan('testfile.txt', true, size: 7); + _assertBreadcrumb('testfile.txt', true, size: 7); }); test('string sync', () async { @@ -392,6 +474,7 @@ void main() { await tr.finish(); _assertSpan('testfile.txt', false, size: 7); + _assertBreadcrumb('testfile.txt', false, size: 7); }); }); @@ -416,6 +499,20 @@ void main() { expect(span.origin, SentryTraceOrigins.autoFile); } + void _assertBreadcrumb(bool async, String name) { + final call = fixture.client.captureTransactionCalls.first; + final breadcrumb = call.scope?.breadcrumbs.first; + + expect(breadcrumb?.category, 'file.rename'); + expect(breadcrumb?.data?['file.size'], 0); + expect(breadcrumb?.data?['file.async'], async); + expect(breadcrumb?.message, name); + expect( + (breadcrumb?.data?['file.path'] as String) + .endsWith('test_resources/$name'), + true); + } + test('async', () async { final file = File('test_resources/old_name.txt'); await file.create(); @@ -438,6 +535,7 @@ void main() { expect(sut.uri.toFilePath(), isNot(newFile.uri.toFilePath())); _assertSpan(true, 'old_name.txt'); + _assertBreadcrumb(true, 'old_name.txt'); await newFile.delete(); }); @@ -464,6 +562,7 @@ void main() { expect(sut.uri.toFilePath(), isNot(newFile.uri.toFilePath())); _assertSpan(false, 'old_name.txt'); + _assertBreadcrumb(false, 'old_name.txt'); newFile.deleteSync(); }); @@ -485,6 +584,14 @@ void main() { expect(span.origin, SentryTraceOrigins.autoFile); } + void _assertBreadcrumb(bool async) { + final call = fixture.client.captureTransactionCalls.first; + final breadcrumb = call.scope?.breadcrumbs.first; + + expect(breadcrumb?.data?['file.async'], async); + expect(breadcrumb?.data?['file.path'], null); + } + test('does not add file path if sendDefaultPii is disabled async', () async { final file = File('test_resources/testfile.txt'); @@ -501,6 +608,7 @@ void main() { await tr.finish(); _assertSpan(true); + _assertBreadcrumb(true); }); test('does not add file path if sendDefaultPii is disabled sync', () async { @@ -518,6 +626,7 @@ void main() { await tr.finish(); _assertSpan(false); + _assertBreadcrumb(false); }); test('add SentryFileTracing integration', () async { From 36b052e9ef54cdaa4e0148091f7347dea3296791 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos <6349682+vaind@users.noreply.github.com> Date: Mon, 25 Sep 2023 15:35:14 +0200 Subject: [PATCH 27/32] ci: don't run CI on markdown updates (#1651) --- .github/workflows/dart.yml | 1 + .github/workflows/dio.yml | 1 + .github/workflows/e2e_dart.yml | 13 +++++++------ .github/workflows/file.yml | 1 + .github/workflows/flutter.yml | 1 + .github/workflows/flutter_test.yml | 1 + .github/workflows/logging.yml | 1 + .github/workflows/metrics.yml | 7 ++++--- .github/workflows/min_version_test.yml | 15 ++++++++------- .github/workflows/sqflite.yml | 1 + 10 files changed, 26 insertions(+), 16 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 8dbd66da01..3971ee75bb 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -6,6 +6,7 @@ on: - release/** pull_request: paths-ignore: + - "**/*.md" - "logging/**" - "dio/**" - "file/**" diff --git a/.github/workflows/dio.yml b/.github/workflows/dio.yml index 647d0e8a21..b501067224 100644 --- a/.github/workflows/dio.yml +++ b/.github/workflows/dio.yml @@ -6,6 +6,7 @@ on: - release/** pull_request: paths-ignore: + - "**/*.md" - "logging/**" - "flutter/**" - "file/**" diff --git a/.github/workflows/e2e_dart.yml b/.github/workflows/e2e_dart.yml index 06d4eaae17..7909dc2fb0 100644 --- a/.github/workflows/e2e_dart.yml +++ b/.github/workflows/e2e_dart.yml @@ -6,11 +6,12 @@ on: - release/** pull_request: paths-ignore: - - 'logging/**' - - 'dio/**' - - 'flutter/**' - - 'file/**' - - 'sqflite/**' + - "**/*.md" + - "logging/**" + - "dio/**" + - "flutter/**" + - "file/**" + - "sqflite/**" env: SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} @@ -27,7 +28,7 @@ jobs: build: name: E2E - runs-on: 'ubuntu-latest' + runs-on: "ubuntu-latest" timeout-minutes: 30 defaults: run: diff --git a/.github/workflows/file.yml b/.github/workflows/file.yml index 4ecfb3c28e..81a6e5abec 100644 --- a/.github/workflows/file.yml +++ b/.github/workflows/file.yml @@ -6,6 +6,7 @@ on: - release/** pull_request: paths-ignore: + - "**/*.md" - "logging/**" - "flutter/**" - "dio/**" diff --git a/.github/workflows/flutter.yml b/.github/workflows/flutter.yml index 970ab3979f..0ce2669fba 100644 --- a/.github/workflows/flutter.yml +++ b/.github/workflows/flutter.yml @@ -6,6 +6,7 @@ on: - release/** pull_request: paths-ignore: + - "**/*.md" - "logging/**" - "dio/**" - "file/**" diff --git a/.github/workflows/flutter_test.yml b/.github/workflows/flutter_test.yml index d17f591452..d0875a8604 100644 --- a/.github/workflows/flutter_test.yml +++ b/.github/workflows/flutter_test.yml @@ -6,6 +6,7 @@ on: - release/** pull_request: paths-ignore: + - "**/*.md" - "file/**" env: diff --git a/.github/workflows/logging.yml b/.github/workflows/logging.yml index 04d595e269..a393dfe570 100644 --- a/.github/workflows/logging.yml +++ b/.github/workflows/logging.yml @@ -6,6 +6,7 @@ on: - release/** pull_request: paths-ignore: + - "**/*.md" - "dio/**" - "flutter/**" - "file/**" diff --git a/.github/workflows/metrics.yml b/.github/workflows/metrics.yml index 9603300200..601c365a39 100644 --- a/.github/workflows/metrics.yml +++ b/.github/workflows/metrics.yml @@ -7,10 +7,11 @@ on: - dart/** - flutter/** - metrics/** + - "!**/*.md" branches-ignore: - deps/** - dependabot/** - tags-ignore: ['**'] + tags-ignore: ["**"] jobs: cancel-previous-workflow: @@ -59,8 +60,8 @@ jobs: - uses: actions/setup-java@v3 if: ${{ matrix.platform == 'android' }} with: - java-version: '11' - distribution: 'adopt' + java-version: "11" + distribution: "adopt" - run: ./metrics/prepare.sh diff --git a/.github/workflows/min_version_test.yml b/.github/workflows/min_version_test.yml index 86287d14ed..a3b26d593f 100644 --- a/.github/workflows/min_version_test.yml +++ b/.github/workflows/min_version_test.yml @@ -6,8 +6,9 @@ on: - release/** pull_request: paths-ignore: - - 'file/**' - - 'sqflite/**' + - "**/*.md" + - "file/**" + - "sqflite/**" jobs: cancel-previous-workflow: @@ -27,12 +28,12 @@ jobs: - uses: actions/setup-java@v3 with: - distribution: 'adopt' - java-version: '11' + distribution: "adopt" + java-version: "11" - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # pin@v2.10.0 with: - flutter-version: '3.0.0' + flutter-version: "3.0.0" - name: Build Android run: | @@ -49,7 +50,7 @@ jobs: - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # pin@v2.10.0 with: - flutter-version: '3.0.0' + flutter-version: "3.0.0" - name: Build iOS run: | @@ -66,7 +67,7 @@ jobs: - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # pin@v2.10.0 with: - flutter-version: '3.0.0' + flutter-version: "3.0.0" - name: Build web run: | diff --git a/.github/workflows/sqflite.yml b/.github/workflows/sqflite.yml index e8619fd44d..5bfd63c666 100644 --- a/.github/workflows/sqflite.yml +++ b/.github/workflows/sqflite.yml @@ -6,6 +6,7 @@ on: - release/** pull_request: paths-ignore: + - "**/*.md" - "logging/**" - "flutter/**" - "dio/**" From 813b9475f6613b6b456de74467381e011f9492fa Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Tue, 3 Oct 2023 21:28:19 +0200 Subject: [PATCH 28/32] fixup mock names after renames --- dart/test/hub_test.dart | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/dart/test/hub_test.dart b/dart/test/hub_test.dart index d2f1232b65..37122d43b6 100644 --- a/dart/test/hub_test.dart +++ b/dart/test/hub_test.dart @@ -386,8 +386,9 @@ void main() { test('profiler is started according to the sampling rate', () async { final hub = fixture.getSut(); - final factory = MockProfilerFactory(); - when(factory.startProfiler(fixture._context)).thenReturn(MockProfiler()); + final factory = MockSentryProfilerFactory(); + when(factory.startProfiler(fixture._context)) + .thenReturn(MockSentryProfiler()); hub.profilerFactory = factory; var tr = hub.startTransactionWithContext(fixture._context); @@ -402,9 +403,9 @@ void main() { test('profiler.finish() is called', () async { final hub = fixture.getSut(); - final factory = MockProfilerFactory(); - final profiler = MockProfiler(); - final expected = MockProfileInfo(); + final factory = MockSentryProfilerFactory(); + final profiler = MockSentryProfiler(); + final expected = MockSentryProfileInfo(); when(factory.startProfiler(fixture._context)).thenReturn(profiler); when(profiler.finishFor(any)).thenAnswer((_) async => expected); @@ -418,9 +419,9 @@ void main() { test('profiler.dispose() is called even if not captured', () async { final hub = fixture.getSut(); - final factory = MockProfilerFactory(); - final profiler = MockProfiler(); - final expected = MockProfileInfo(); + final factory = MockSentryProfilerFactory(); + final profiler = MockSentryProfiler(); + final expected = MockSentryProfileInfo(); when(factory.startProfiler(fixture._context)).thenReturn(profiler); when(profiler.finishFor(any)).thenAnswer((_) async => expected); From e13e7de78e8c0b2705bbe2aa4d4d4c5f65229100 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Wed, 4 Oct 2023 16:03:36 +0200 Subject: [PATCH 29/32] more renames (Sentry prefix) --- flutter/lib/src/profiling.dart | 24 ++++--- flutter/lib/src/sentry_flutter.dart | 2 +- flutter/test/mocks.mocks.dart | 98 ++++++++++----------------- flutter/test/profiling_test.dart | 14 ++-- flutter/test/sentry_flutter_test.dart | 4 +- 5 files changed, 59 insertions(+), 83 deletions(-) diff --git a/flutter/lib/src/profiling.dart b/flutter/lib/src/profiling.dart index 2480fb000b..a4332d77e7 100644 --- a/flutter/lib/src/profiling.dart +++ b/flutter/lib/src/profiling.dart @@ -11,11 +11,11 @@ import '../sentry_flutter.dart'; import 'native/sentry_native.dart'; // ignore: invalid_use_of_internal_member -class NativeProfilerFactory implements SentryProfilerFactory { +class SentryNativeProfilerFactory implements SentryProfilerFactory { final SentryNative _native; final ClockProvider _clock; - NativeProfilerFactory(this._native, this._clock); + SentryNativeProfilerFactory(this._native, this._clock); static void attachTo(Hub hub, SentryNative native) { // ignore: invalid_use_of_internal_member @@ -33,12 +33,12 @@ class NativeProfilerFactory implements SentryProfilerFactory { if (options.platformChecker.platform.isMacOS || options.platformChecker.platform.isIOS) { // ignore: invalid_use_of_internal_member - hub.profilerFactory = NativeProfilerFactory(native, options.clock); + hub.profilerFactory = SentryNativeProfilerFactory(native, options.clock); } } @override - NativeProfiler? startProfiler(SentryTransactionContext context) { + SentryNativeProfiler? startProfiler(SentryTransactionContext context) { if (context.traceId == SentryId.empty()) { return null; } @@ -47,19 +47,20 @@ class NativeProfilerFactory implements SentryProfilerFactory { if (startTime == null) { return null; } - return NativeProfiler(_native, startTime, context.traceId, _clock); + return SentryNativeProfiler(_native, startTime, context.traceId, _clock); } } // ignore: invalid_use_of_internal_member -class NativeProfiler implements SentryProfiler { +class SentryNativeProfiler implements SentryProfiler { final SentryNative _native; final int _starTimeNs; final SentryId _traceId; bool _finished = false; final ClockProvider _clock; - NativeProfiler(this._native, this._starTimeNs, this._traceId, this._clock); + SentryNativeProfiler( + this._native, this._starTimeNs, this._traceId, this._clock); @override void dispose() { @@ -70,7 +71,8 @@ class NativeProfiler implements SentryProfiler { } @override - Future finishFor(SentryTransaction transaction) async { + Future finishFor( + SentryTransaction transaction) async { if (_finished) { return null; } @@ -91,17 +93,17 @@ class NativeProfiler implements SentryProfiler { payload["transaction"]["trace_id"] = _traceId.toString(); payload["transaction"]["name"] = transaction.transaction; payload["timestamp"] = transaction.startTimestamp.toIso8601String(); - return NativeProfileInfo(payload); + return SentryNativeProfileInfo(payload); } } // ignore: invalid_use_of_internal_member -class NativeProfileInfo implements SentryProfileInfo { +class SentryNativeProfileInfo implements SentryProfileInfo { final Map _payload; // ignore: invalid_use_of_internal_member late final List _data = utf8JsonEncoder.convert(_payload); - NativeProfileInfo(this._payload); + SentryNativeProfileInfo(this._payload); @override SentryEnvelopeItem asEnvelopeItem() { diff --git a/flutter/lib/src/sentry_flutter.dart b/flutter/lib/src/sentry_flutter.dart index 59b42266c7..d1fd8ef1c2 100644 --- a/flutter/lib/src/sentry_flutter.dart +++ b/flutter/lib/src/sentry_flutter.dart @@ -93,7 +93,7 @@ mixin SentryFlutter { if (_native != null) { // ignore: invalid_use_of_internal_member - NativeProfilerFactory.attachTo(Sentry.currentHub, _native!); + SentryNativeProfilerFactory.attachTo(Sentry.currentHub, _native!); } } diff --git a/flutter/test/mocks.mocks.dart b/flutter/test/mocks.mocks.dart index 7e8b1c28ef..45a91b1b0f 100644 --- a/flutter/test/mocks.mocks.dart +++ b/flutter/test/mocks.mocks.dart @@ -80,18 +80,9 @@ class _FakeSentryTracer_4 extends _i1.SmartFake implements _i4.SentryTracer { ); } -class _FakeSentryId_5 extends _i1.SmartFake implements _i3.SentryId { - _FakeSentryId_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeContexts_6 extends _i1.SmartFake implements _i3.Contexts { - _FakeContexts_6( +class _FakeSentryTransaction_5 extends _i1.SmartFake + implements _i3.SentryTransaction { + _FakeSentryTransaction_5( Object parent, Invocation parentInvocation, ) : super( @@ -100,9 +91,8 @@ class _FakeContexts_6 extends _i1.SmartFake implements _i3.Contexts { ); } -class _FakeSentryTransaction_7 extends _i1.SmartFake - implements _i3.SentryTransaction { - _FakeSentryTransaction_7( +class _FakeMethodCodec_6 extends _i1.SmartFake implements _i5.MethodCodec { + _FakeMethodCodec_6( Object parent, Invocation parentInvocation, ) : super( @@ -111,8 +101,9 @@ class _FakeSentryTransaction_7 extends _i1.SmartFake ); } -class _FakeMethodCodec_8 extends _i1.SmartFake implements _i5.MethodCodec { - _FakeMethodCodec_8( +class _FakeBinaryMessenger_7 extends _i1.SmartFake + implements _i6.BinaryMessenger { + _FakeBinaryMessenger_7( Object parent, Invocation parentInvocation, ) : super( @@ -121,9 +112,8 @@ class _FakeMethodCodec_8 extends _i1.SmartFake implements _i5.MethodCodec { ); } -class _FakeBinaryMessenger_9 extends _i1.SmartFake - implements _i6.BinaryMessenger { - _FakeBinaryMessenger_9( +class _FakeSentryOptions_8 extends _i1.SmartFake implements _i2.SentryOptions { + _FakeSentryOptions_8( Object parent, Invocation parentInvocation, ) : super( @@ -132,8 +122,8 @@ class _FakeBinaryMessenger_9 extends _i1.SmartFake ); } -class _FakeSentryOptions_10 extends _i1.SmartFake implements _i2.SentryOptions { - _FakeSentryOptions_10( +class _FakeSentryId_9 extends _i1.SmartFake implements _i3.SentryId { + _FakeSentryId_9( Object parent, Invocation parentInvocation, ) : super( @@ -142,8 +132,8 @@ class _FakeSentryOptions_10 extends _i1.SmartFake implements _i2.SentryOptions { ); } -class _FakeScope_11 extends _i1.SmartFake implements _i2.Scope { - _FakeScope_11( +class _FakeScope_10 extends _i1.SmartFake implements _i2.Scope { + _FakeScope_10( Object parent, Invocation parentInvocation, ) : super( @@ -152,8 +142,8 @@ class _FakeScope_11 extends _i1.SmartFake implements _i2.Scope { ); } -class _FakeHub_12 extends _i1.SmartFake implements _i2.Hub { - _FakeHub_12( +class _FakeHub_11 extends _i1.SmartFake implements _i2.Hub { + _FakeHub_11( Object parent, Invocation parentInvocation, ) : super( @@ -282,7 +272,7 @@ class MockSentryTracer extends _i1.Mock implements _i4.SentryTracer { returnValueForMissingStub: null, ); @override - set status(_i3.SpanStatus? status) => super.noSuchMethod( + set status(dynamic status) => super.noSuchMethod( Invocation.setter( #status, status, @@ -301,7 +291,7 @@ class MockSentryTracer extends _i1.Mock implements _i4.SentryTracer { ) as Map); @override _i7.Future finish({ - _i3.SpanStatus? status, + dynamic status, DateTime? endTimestamp, }) => (super.noSuchMethod( @@ -391,7 +381,7 @@ class MockSentryTracer extends _i1.Mock implements _i4.SentryTracer { ) as _i2.ISentrySpan); @override _i2.ISentrySpan startChildWithParentSpanId( - _i3.SpanId? parentSpanId, + dynamic parentSpanId, String? operation, { String? description, DateTime? startTimestamp, @@ -544,22 +534,6 @@ class MockSentryTransaction extends _i1.Mock implements _i3.SentryTransaction { returnValue: false, ) as bool); @override - _i3.SentryId get eventId => (super.noSuchMethod( - Invocation.getter(#eventId), - returnValue: _FakeSentryId_5( - this, - Invocation.getter(#eventId), - ), - ) as _i3.SentryId); - @override - _i3.Contexts get contexts => (super.noSuchMethod( - Invocation.getter(#contexts), - returnValue: _FakeContexts_6( - this, - Invocation.getter(#contexts), - ), - ) as _i3.Contexts); - @override Map toJson() => (super.noSuchMethod( Invocation.method( #toJson, @@ -578,7 +552,7 @@ class MockSentryTransaction extends _i1.Mock implements _i3.SentryTransaction { String? dist, String? environment, Map? modules, - _i3.SentryMessage? message, + dynamic message, String? transaction, dynamic throwable, _i3.SentryLevel? level, @@ -587,13 +561,13 @@ class MockSentryTransaction extends _i1.Mock implements _i3.SentryTransaction { Map? extra, List? fingerprint, _i3.SentryUser? user, - _i3.Contexts? contexts, + dynamic contexts, List<_i3.Breadcrumb>? breadcrumbs, _i3.SdkVersion? sdk, - _i3.SentryRequest? request, - _i3.DebugMeta? debugMeta, + dynamic request, + dynamic debugMeta, List<_i3.SentryException>? exceptions, - List<_i3.SentryThread>? threads, + List? threads, String? type, Map? measurements, _i3.SentryTransactionInfo? transactionInfo, @@ -633,7 +607,7 @@ class MockSentryTransaction extends _i1.Mock implements _i3.SentryTransaction { #transactionInfo: transactionInfo, }, ), - returnValue: _FakeSentryTransaction_7( + returnValue: _FakeSentryTransaction_5( this, Invocation.method( #copyWith, @@ -689,7 +663,7 @@ class MockMethodChannel extends _i1.Mock implements _i10.MethodChannel { @override _i5.MethodCodec get codec => (super.noSuchMethod( Invocation.getter(#codec), - returnValue: _FakeMethodCodec_8( + returnValue: _FakeMethodCodec_6( this, Invocation.getter(#codec), ), @@ -697,7 +671,7 @@ class MockMethodChannel extends _i1.Mock implements _i10.MethodChannel { @override _i6.BinaryMessenger get binaryMessenger => (super.noSuchMethod( Invocation.getter(#binaryMessenger), - returnValue: _FakeBinaryMessenger_9( + returnValue: _FakeBinaryMessenger_7( this, Invocation.getter(#binaryMessenger), ), @@ -770,7 +744,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { @override _i2.SentryOptions get options => (super.noSuchMethod( Invocation.getter(#options), - returnValue: _FakeSentryOptions_10( + returnValue: _FakeSentryOptions_8( this, Invocation.getter(#options), ), @@ -783,7 +757,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { @override _i3.SentryId get lastEventId => (super.noSuchMethod( Invocation.getter(#lastEventId), - returnValue: _FakeSentryId_5( + returnValue: _FakeSentryId_9( this, Invocation.getter(#lastEventId), ), @@ -791,7 +765,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { @override _i2.Scope get scope => (super.noSuchMethod( Invocation.getter(#scope), - returnValue: _FakeScope_11( + returnValue: _FakeScope_10( this, Invocation.getter(#scope), ), @@ -806,7 +780,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { ); @override _i7.Future<_i3.SentryId> captureEvent( - _i3.SentryEvent? event, { + dynamic event, { dynamic stackTrace, _i2.Hint? hint, _i2.ScopeCallback? withScope, @@ -821,7 +795,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { #withScope: withScope, }, ), - returnValue: _i7.Future<_i3.SentryId>.value(_FakeSentryId_5( + returnValue: _i7.Future<_i3.SentryId>.value(_FakeSentryId_9( this, Invocation.method( #captureEvent, @@ -851,7 +825,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { #withScope: withScope, }, ), - returnValue: _i7.Future<_i3.SentryId>.value(_FakeSentryId_5( + returnValue: _i7.Future<_i3.SentryId>.value(_FakeSentryId_9( this, Invocation.method( #captureException, @@ -885,7 +859,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { #withScope: withScope, }, ), - returnValue: _i7.Future<_i3.SentryId>.value(_FakeSentryId_5( + returnValue: _i7.Future<_i3.SentryId>.value(_FakeSentryId_9( this, Invocation.method( #captureMessage, @@ -938,7 +912,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { #clone, [], ), - returnValue: _FakeHub_12( + returnValue: _FakeHub_11( this, Invocation.method( #clone, @@ -1058,7 +1032,7 @@ class MockHub extends _i1.Mock implements _i2.Hub { [transaction], {#traceContext: traceContext}, ), - returnValue: _i7.Future<_i3.SentryId>.value(_FakeSentryId_5( + returnValue: _i7.Future<_i3.SentryId>.value(_FakeSentryId_9( this, Invocation.method( #captureTransaction, diff --git a/flutter/test/profiling_test.dart b/flutter/test/profiling_test.dart index 78c43708a5..eddb391313 100644 --- a/flutter/test/profiling_test.dart +++ b/flutter/test/profiling_test.dart @@ -9,7 +9,7 @@ import 'mocks.mocks.dart'; import 'sentry_flutter_test.dart'; void main() { - group('$NativeProfilerFactory', () { + group('$SentryNativeProfilerFactory', () { Hub hubWithSampleRate(double profilesSampleRate) { final o = SentryFlutterOptions(dsn: fakeDsn); o.platformChecker = getPlatformChecker(platform: MockPlatform.iOs()); @@ -22,12 +22,12 @@ void main() { test('attachTo() respects sampling rate', () async { var hub = hubWithSampleRate(0.0); - NativeProfilerFactory.attachTo(hub, TestMockSentryNative()); + SentryNativeProfilerFactory.attachTo(hub, TestMockSentryNative()); // ignore: invalid_use_of_internal_member verifyNever(hub.profilerFactory = any); hub = hubWithSampleRate(0.1); - NativeProfilerFactory.attachTo(hub, TestMockSentryNative()); + SentryNativeProfilerFactory.attachTo(hub, TestMockSentryNative()); // ignore: invalid_use_of_internal_member verify(hub.profilerFactory = any); }); @@ -35,7 +35,7 @@ void main() { test('creates a profiler', () async { final nativeMock = TestMockSentryNative(); // ignore: invalid_use_of_internal_member - final sut = NativeProfilerFactory(nativeMock, getUtcDateTime); + final sut = SentryNativeProfilerFactory(nativeMock, getUtcDateTime); final profiler = sut.startProfiler(SentryTransactionContext( 'name', 'op', @@ -45,14 +45,14 @@ void main() { }); }); - group('$NativeProfiler', () { + group('$SentryNativeProfiler', () { late TestMockSentryNative nativeMock; - late NativeProfiler sut; + late SentryNativeProfiler sut; setUp(() { nativeMock = TestMockSentryNative(); // ignore: invalid_use_of_internal_member - final factory = NativeProfilerFactory(nativeMock, getUtcDateTime); + final factory = SentryNativeProfilerFactory(nativeMock, getUtcDateTime); final profiler = factory.startProfiler(SentryTransactionContext( 'name', 'op', diff --git a/flutter/test/sentry_flutter_test.dart b/flutter/test/sentry_flutter_test.dart index 53f61d154e..6a408b6bac 100644 --- a/flutter/test/sentry_flutter_test.dart +++ b/flutter/test/sentry_flutter_test.dart @@ -148,7 +148,7 @@ void main() { expect(SentryFlutter.native, isNotNull); expect(Sentry.currentHub.profilerFactory, - isInstanceOf()); + isInstanceOf()); await Sentry.close(); }, testOn: 'vm'); @@ -197,7 +197,7 @@ void main() { expect(SentryFlutter.native, isNotNull); expect(Sentry.currentHub.profilerFactory, - isInstanceOf()); + isInstanceOf()); await Sentry.close(); }, testOn: 'vm'); From 8e6bd13324b4d74f85f0c418e7678ead7deb21ac Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Wed, 4 Oct 2023 16:09:49 +0200 Subject: [PATCH 30/32] chore: update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40d3b04f3a..98dc1f11e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Features +- Initial (alpha) support for profiling on iOS and macOS ([#1611](https://github.com/getsentry/sentry-dart/pull/1611)) - Breadcrumbs for file I/O operations ([#1649](https://github.com/getsentry/sentry-dart/pull/1649)) ### Dependencies From defdfa6fbffdc7de3e26b87ba23520bbe4e19791 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Fri, 27 Oct 2023 08:34:25 +0200 Subject: [PATCH 31/32] don't inline findPrimeNumber profiler-test function --- flutter/example/lib/main.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flutter/example/lib/main.dart b/flutter/example/lib/main.dart index 442f06f2bc..3d044c155d 100644 --- a/flutter/example/lib/main.dart +++ b/flutter/example/lib/main.dart @@ -857,6 +857,8 @@ Future execute(String method) async { await _channel.invokeMethod(method); } +// Don't inline this one or it shows up as an anonymous closure in profiles. +@pragma("vm:never-inline") int findPrimeNumber(int n) { int count = 0; int a = 2; From 4074f01c129d909813677d0e2cf5902e61a57744 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Fri, 27 Oct 2023 08:35:01 +0200 Subject: [PATCH 32/32] fixup changelog --- CHANGELOG.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c01672f6e..e5d88dea03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +### Features + +- Initial (alpha) support for profiling on iOS and macOS ([#1611](https://github.com/getsentry/sentry-dart/pull/1611)) + ## 7.11.0 ### Fixes @@ -8,7 +14,6 @@ ### Features -- Initial (alpha) support for profiling on iOS and macOS ([#1611](https://github.com/getsentry/sentry-dart/pull/1611)) - Breadcrumbs for file I/O operations ([#1649](https://github.com/getsentry/sentry-dart/pull/1649)) ### Dependencies