From df8db6d138793fe0c5cd83a0d9c765688a800581 Mon Sep 17 00:00:00 2001 From: GitHub Date: Fri, 17 Apr 2026 04:09:56 +0000 Subject: [PATCH] chore: update packages/flutter/scripts/update-android.sh to 8.39.0 --- CHANGELOG.md | 6 + packages/flutter/android/build.gradle | 4 +- .../flutter/lib/src/native/java/binding.dart | 1511 ++++++++++++----- 3 files changed, 1138 insertions(+), 383 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd8d610f31..b7c7a1ad91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ - Stop re-triggering hitTest in SentryUserInteractionWidget on pointerUp ([#3540](https://github.com/getsentry/sentry-dart/pull/3540)) +### Dependencies + +- Bump Android SDK from v8.33.0 to v8.39.0 ([#6](https://github.com/glemartret/sentry-dart/pull/6)) + - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8390) + - [diff](https://github.com/getsentry/sentry-java/compare/8.33.0...8.39.0) + ## 9.14.0 ### Features diff --git a/packages/flutter/android/build.gradle b/packages/flutter/android/build.gradle index df383b8f3a..c39212611f 100644 --- a/packages/flutter/android/build.gradle +++ b/packages/flutter/android/build.gradle @@ -62,8 +62,8 @@ android { } dependencies { - api 'io.sentry:sentry-android:8.33.0' - debugImplementation 'io.sentry:sentry-spotlight:8.33.0' + api 'io.sentry:sentry-android:8.39.0' + debugImplementation 'io.sentry:sentry-spotlight:8.39.0' implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" // Required -- JUnit 4 framework diff --git a/packages/flutter/lib/src/native/java/binding.dart b/packages/flutter/lib/src/native/java/binding.dart index 5c4753254f..a2d3b6b935 100644 --- a/packages/flutter/lib/src/native/java/binding.dart +++ b/packages/flutter/lib/src/native/java/binding.dart @@ -2171,6 +2171,156 @@ class SentryAndroidOptions extends SentryOptions { z ? 1 : 0) .check(); } + + static final _id_getScreenshot = _class.instanceMethodId( + r'getScreenshot', + r'()Lio/sentry/android/core/SentryScreenshotOptions;', + ); + + static final _getScreenshot = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public io.sentry.android.core.SentryScreenshotOptions getScreenshot()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JObject getScreenshot() { + return _getScreenshot( + reference.pointer, _id_getScreenshot as jni$_.JMethodIDPtr) + .object(const jni$_.JObjectType()); + } + + static final _id_getAnrProfilingSampleRate = _class.instanceMethodId( + r'getAnrProfilingSampleRate', + r'()Ljava/lang/Double;', + ); + + static final _getAnrProfilingSampleRate = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public java.lang.Double getAnrProfilingSampleRate()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JDouble? getAnrProfilingSampleRate() { + return _getAnrProfilingSampleRate(reference.pointer, + _id_getAnrProfilingSampleRate as jni$_.JMethodIDPtr) + .object(const jni$_.JDoubleNullableType()); + } + + static final _id_setAnrProfilingSampleRate = _class.instanceMethodId( + r'setAnrProfilingSampleRate', + r'(Ljava/lang/Double;)V', + ); + + static final _setAnrProfilingSampleRate = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public void setAnrProfilingSampleRate(java.lang.Double double)` + void setAnrProfilingSampleRate( + jni$_.JDouble? double, + ) { + final _$double = double?.reference ?? jni$_.jNullReference; + _setAnrProfilingSampleRate( + reference.pointer, + _id_setAnrProfilingSampleRate as jni$_.JMethodIDPtr, + _$double.pointer) + .check(); + } + + static final _id_isAnrProfilingEnabled = _class.instanceMethodId( + r'isAnrProfilingEnabled', + r'()Z', + ); + + static final _isAnrProfilingEnabled = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public boolean isAnrProfilingEnabled()` + bool isAnrProfilingEnabled() { + return _isAnrProfilingEnabled( + reference.pointer, _id_isAnrProfilingEnabled as jni$_.JMethodIDPtr) + .boolean; + } + + static final _id_isEnableAnrFingerprinting = _class.instanceMethodId( + r'isEnableAnrFingerprinting', + r'()Z', + ); + + static final _isEnableAnrFingerprinting = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public boolean isEnableAnrFingerprinting()` + bool isEnableAnrFingerprinting() { + return _isEnableAnrFingerprinting(reference.pointer, + _id_isEnableAnrFingerprinting as jni$_.JMethodIDPtr) + .boolean; + } + + static final _id_setEnableAnrFingerprinting = _class.instanceMethodId( + r'setEnableAnrFingerprinting', + r'(Z)V', + ); + + static final _setEnableAnrFingerprinting = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + + /// from: `public void setEnableAnrFingerprinting(boolean z)` + void setEnableAnrFingerprinting( + bool z, + ) { + _setEnableAnrFingerprinting(reference.pointer, + _id_setEnableAnrFingerprinting as jni$_.JMethodIDPtr, z ? 1 : 0) + .check(); + } } final class $SentryAndroidOptions$NullableType @@ -8427,6 +8577,123 @@ class Sentry extends jni$_.JObject { .check(); } + static final _id_setAttribute = _class.staticMethodId( + r'setAttribute', + r'(Ljava/lang/String;Ljava/lang/Object;)V', + ); + + static final _setAttribute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `static public void setAttribute(java.lang.String string, java.lang.Object object)` + static void setAttribute( + jni$_.JString? string, + jni$_.JObject? object, + ) { + final _$string = string?.reference ?? jni$_.jNullReference; + final _$object = object?.reference ?? jni$_.jNullReference; + _setAttribute( + _class.reference.pointer, + _id_setAttribute as jni$_.JMethodIDPtr, + _$string.pointer, + _$object.pointer) + .check(); + } + + static final _id_setAttribute$1 = _class.staticMethodId( + r'setAttribute', + r'(Lio/sentry/SentryAttribute;)V', + ); + + static final _setAttribute$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public void setAttribute(io.sentry.SentryAttribute sentryAttribute)` + static void setAttribute$1( + jni$_.JObject? sentryAttribute, + ) { + final _$sentryAttribute = + sentryAttribute?.reference ?? jni$_.jNullReference; + _setAttribute$1(_class.reference.pointer, + _id_setAttribute$1 as jni$_.JMethodIDPtr, _$sentryAttribute.pointer) + .check(); + } + + static final _id_setAttributes = _class.staticMethodId( + r'setAttributes', + r'(Lio/sentry/SentryAttributes;)V', + ); + + static final _setAttributes = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public void setAttributes(io.sentry.SentryAttributes sentryAttributes)` + static void setAttributes( + jni$_.JObject? sentryAttributes, + ) { + final _$sentryAttributes = + sentryAttributes?.reference ?? jni$_.jNullReference; + _setAttributes(_class.reference.pointer, + _id_setAttributes as jni$_.JMethodIDPtr, _$sentryAttributes.pointer) + .check(); + } + + static final _id_removeAttribute = _class.staticMethodId( + r'removeAttribute', + r'(Ljava/lang/String;)V', + ); + + static final _removeAttribute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallStaticVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `static public void removeAttribute(java.lang.String string)` + static void removeAttribute( + jni$_.JString? string, + ) { + final _$string = string?.reference ?? jni$_.jNullReference; + _removeAttribute(_class.reference.pointer, + _id_removeAttribute as jni$_.JMethodIDPtr, _$string.pointer) + .check(); + } + static final _id_addFeatureFlag = _class.staticMethodId( r'addFeatureFlag', r'(Ljava/lang/String;Ljava/lang/Boolean;)V', @@ -17305,12 +17572,60 @@ class SentryOptions extends jni$_.JObject { .check(); } - static final _id_getProguardUuid = _class.instanceMethodId( - r'getProguardUuid', + static final _id_isStrictTraceContinuation = _class.instanceMethodId( + r'isStrictTraceContinuation', + r'()Z', + ); + + static final _isStrictTraceContinuation = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public boolean isStrictTraceContinuation()` + bool isStrictTraceContinuation() { + return _isStrictTraceContinuation(reference.pointer, + _id_isStrictTraceContinuation as jni$_.JMethodIDPtr) + .boolean; + } + + static final _id_setStrictTraceContinuation = _class.instanceMethodId( + r'setStrictTraceContinuation', + r'(Z)V', + ); + + static final _setStrictTraceContinuation = + jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.VarArgs<(jni$_.Int32,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + + /// from: `public void setStrictTraceContinuation(boolean z)` + void setStrictTraceContinuation( + bool z, + ) { + _setStrictTraceContinuation(reference.pointer, + _id_setStrictTraceContinuation as jni$_.JMethodIDPtr, z ? 1 : 0) + .check(); + } + + static final _id_getOrgId = _class.instanceMethodId( + r'getOrgId', r'()Ljava/lang/String;', ); - static final _getProguardUuid = jni$_.ProtectedJniExtensions.lookup< + static final _getOrgId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, @@ -17322,20 +17637,19 @@ class SentryOptions extends jni$_.JObject { jni$_.JMethodIDPtr, )>(); - /// from: `public java.lang.String getProguardUuid()` + /// from: `public java.lang.String getOrgId()` /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getProguardUuid() { - return _getProguardUuid( - reference.pointer, _id_getProguardUuid as jni$_.JMethodIDPtr) + jni$_.JString? getOrgId() { + return _getOrgId(reference.pointer, _id_getOrgId as jni$_.JMethodIDPtr) .object(const jni$_.JStringNullableType()); } - static final _id_setProguardUuid = _class.instanceMethodId( - r'setProguardUuid', + static final _id_setOrgId = _class.instanceMethodId( + r'setOrgId', r'(Ljava/lang/String;)V', ); - static final _setProguardUuid = jni$_.ProtectedJniExtensions.lookup< + static final _setOrgId = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JThrowablePtr Function( jni$_.Pointer, @@ -17346,31 +17660,107 @@ class SentryOptions extends jni$_.JObject { jni$_.JThrowablePtr Function(jni$_.Pointer, jni$_.JMethodIDPtr, jni$_.Pointer)>(); - /// from: `public void setProguardUuid(java.lang.String string)` - void setProguardUuid( + /// from: `public void setOrgId(java.lang.String string)` + void setOrgId( jni$_.JString? string, ) { final _$string = string?.reference ?? jni$_.jNullReference; - _setProguardUuid(reference.pointer, - _id_setProguardUuid as jni$_.JMethodIDPtr, _$string.pointer) + _setOrgId(reference.pointer, _id_setOrgId as jni$_.JMethodIDPtr, + _$string.pointer) .check(); } - static final _id_addBundleId = _class.instanceMethodId( - r'addBundleId', - r'(Ljava/lang/String;)V', + static final _id_getEffectiveOrgId = _class.instanceMethodId( + r'getEffectiveOrgId', + r'()Ljava/lang/String;', ); - static final _addBundleId = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); + static final _getEffectiveOrgId = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public java.lang.String getEffectiveOrgId()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? getEffectiveOrgId() { + return _getEffectiveOrgId( + reference.pointer, _id_getEffectiveOrgId as jni$_.JMethodIDPtr) + .object(const jni$_.JStringNullableType()); + } + + static final _id_getProguardUuid = _class.instanceMethodId( + r'getProguardUuid', + r'()Ljava/lang/String;', + ); + + static final _getProguardUuid = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public java.lang.String getProguardUuid()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JString? getProguardUuid() { + return _getProguardUuid( + reference.pointer, _id_getProguardUuid as jni$_.JMethodIDPtr) + .object(const jni$_.JStringNullableType()); + } + + static final _id_setProguardUuid = _class.instanceMethodId( + r'setProguardUuid', + r'(Ljava/lang/String;)V', + ); + + static final _setProguardUuid = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public void setProguardUuid(java.lang.String string)` + void setProguardUuid( + jni$_.JString? string, + ) { + final _$string = string?.reference ?? jni$_.jNullReference; + _setProguardUuid(reference.pointer, + _id_setProguardUuid as jni$_.JMethodIDPtr, _$string.pointer) + .check(); + } + + static final _id_addBundleId = _class.instanceMethodId( + r'addBundleId', + r'(Ljava/lang/String;)V', + ); + + static final _addBundleId = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); /// from: `public void addBundleId(java.lang.String string)` void addBundleId( @@ -18263,6 +18653,54 @@ class SentryOptions extends jni$_.JObject { .check(); } + static final _id_isEnableCacheTracing = _class.instanceMethodId( + r'isEnableCacheTracing', + r'()Z', + ); + + static final _isEnableCacheTracing = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public boolean isEnableCacheTracing()` + bool isEnableCacheTracing() { + return _isEnableCacheTracing( + reference.pointer, _id_isEnableCacheTracing as jni$_.JMethodIDPtr) + .boolean; + } + + static final _id_setEnableCacheTracing = _class.instanceMethodId( + r'setEnableCacheTracing', + r'(Z)V', + ); + + static final _setEnableCacheTracing = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Int32,)>)>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, jni$_.JMethodIDPtr, int)>(); + + /// from: `public void setEnableCacheTracing(boolean z)` + void setEnableCacheTracing( + bool z, + ) { + _setEnableCacheTracing(reference.pointer, + _id_setEnableCacheTracing as jni$_.JMethodIDPtr, z ? 1 : 0) + .check(); + } + static final _id_isEnabled = _class.instanceMethodId( r'isEnabled', r'()Z', @@ -20003,59 +20441,6 @@ class SentryOptions extends jni$_.JObject { .check(); } - static final _id_getRuntimeManager = _class.instanceMethodId( - r'getRuntimeManager', - r'()Lio/sentry/util/runtime/IRuntimeManager;', - ); - - static final _getRuntimeManager = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public io.sentry.util.runtime.IRuntimeManager getRuntimeManager()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JObject getRuntimeManager() { - return _getRuntimeManager( - reference.pointer, _id_getRuntimeManager as jni$_.JMethodIDPtr) - .object(const jni$_.JObjectType()); - } - - static final _id_setRuntimeManager = _class.instanceMethodId( - r'setRuntimeManager', - r'(Lio/sentry/util/runtime/IRuntimeManager;)V', - ); - - static final _setRuntimeManager = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public void setRuntimeManager(io.sentry.util.runtime.IRuntimeManager iRuntimeManager)` - void setRuntimeManager( - jni$_.JObject iRuntimeManager, - ) { - final _$iRuntimeManager = iRuntimeManager.reference; - _setRuntimeManager( - reference.pointer, - _id_setRuntimeManager as jni$_.JMethodIDPtr, - _$iRuntimeManager.pointer) - .check(); - } - static final _id_empty = _class.staticMethodId( r'empty', r'()Lio/sentry/SentryOptions;', @@ -20181,6 +20566,60 @@ class SentryOptions extends jni$_.JObject { .check(); } + static final _id_getScopesStorageFactory = _class.instanceMethodId( + r'getScopesStorageFactory', + r'()Lio/sentry/IScopesStorageFactory;', + ); + + static final _getScopesStorageFactory = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public io.sentry.IScopesStorageFactory getScopesStorageFactory()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JObject? getScopesStorageFactory() { + return _getScopesStorageFactory(reference.pointer, + _id_getScopesStorageFactory as jni$_.JMethodIDPtr) + .object(const jni$_.JObjectNullableType()); + } + + static final _id_setScopesStorageFactory = _class.instanceMethodId( + r'setScopesStorageFactory', + r'(Lio/sentry/IScopesStorageFactory;)V', + ); + + static final _setScopesStorageFactory = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public void setScopesStorageFactory(io.sentry.IScopesStorageFactory iScopesStorageFactory)` + void setScopesStorageFactory( + jni$_.JObject? iScopesStorageFactory, + ) { + final _$iScopesStorageFactory = + iScopesStorageFactory?.reference ?? jni$_.jNullReference; + _setScopesStorageFactory( + reference.pointer, + _id_setScopesStorageFactory as jni$_.JMethodIDPtr, + _$iScopesStorageFactory.pointer) + .check(); + } + static final _id_getLogs = _class.instanceMethodId( r'getLogs', r'()Lio/sentry/SentryOptions$Logs;', @@ -20410,52 +20849,293 @@ final class $SentryOptions$Type extends jni$_.JObjType { } } -/// from: `io.sentry.SentryReplayOptions$SentryReplayQuality` -class SentryReplayOptions$SentryReplayQuality extends jni$_.JObject { +/// from: `io.sentry.SentryReplayOptions$BeforeErrorSamplingCallback` +class SentryReplayOptions$BeforeErrorSamplingCallback extends jni$_.JObject { @jni$_.internal @core$_.override - final jni$_.JObjType $type; + final jni$_.JObjType $type; @jni$_.internal - SentryReplayOptions$SentryReplayQuality.fromReference( + SentryReplayOptions$BeforeErrorSamplingCallback.fromReference( jni$_.JReference reference, ) : $type = type, super.fromReference(reference); static final _class = jni$_.JClass.forName( - r'io/sentry/SentryReplayOptions$SentryReplayQuality'); + r'io/sentry/SentryReplayOptions$BeforeErrorSamplingCallback'); /// The type which includes information such as the signature of this class. static const nullableType = - $SentryReplayOptions$SentryReplayQuality$NullableType(); - static const type = $SentryReplayOptions$SentryReplayQuality$Type(); - static final _id_LOW = _class.staticFieldId( - r'LOW', - r'Lio/sentry/SentryReplayOptions$SentryReplayQuality;', + $SentryReplayOptions$BeforeErrorSamplingCallback$NullableType(); + static const type = $SentryReplayOptions$BeforeErrorSamplingCallback$Type(); + static final _id_execute = _class.instanceMethodId( + r'execute', + r'(Lio/sentry/SentryEvent;Lio/sentry/Hint;)Z', ); - /// from: `static public final io.sentry.SentryReplayOptions$SentryReplayQuality LOW` - /// The returned object must be released after use, by calling the [release] method. - static SentryReplayOptions$SentryReplayQuality get LOW => _id_LOW.get( - _class, const $SentryReplayOptions$SentryReplayQuality$Type()); - - static final _id_MEDIUM = _class.staticFieldId( - r'MEDIUM', - r'Lio/sentry/SentryReplayOptions$SentryReplayQuality;', - ); + static final _execute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallBooleanMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); - /// from: `static public final io.sentry.SentryReplayOptions$SentryReplayQuality MEDIUM` - /// The returned object must be released after use, by calling the [release] method. - static SentryReplayOptions$SentryReplayQuality get MEDIUM => _id_MEDIUM.get( - _class, const $SentryReplayOptions$SentryReplayQuality$Type()); + /// from: `public abstract boolean execute(io.sentry.SentryEvent sentryEvent, io.sentry.Hint hint)` + bool execute( + SentryEvent sentryEvent, + Hint hint, + ) { + final _$sentryEvent = sentryEvent.reference; + final _$hint = hint.reference; + return _execute(reference.pointer, _id_execute as jni$_.JMethodIDPtr, + _$sentryEvent.pointer, _$hint.pointer) + .boolean; + } - static final _id_HIGH = _class.staticFieldId( - r'HIGH', - r'Lio/sentry/SentryReplayOptions$SentryReplayQuality;', - ); + /// Maps a specific port to the implemented interface. + static final core$_.Map + _$impls = {}; + static jni$_.JObjectPtr _$invoke( + int port, + jni$_.JObjectPtr descriptor, + jni$_.JObjectPtr args, + ) { + return _$invokeMethod( + port, + jni$_.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); + } - /// from: `static public final io.sentry.SentryReplayOptions$SentryReplayQuality HIGH` - /// The returned object must be released after use, by calling the [release] method. + static final jni$_.Pointer< + jni$_.NativeFunction< + jni$_.JObjectPtr Function( + jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)>> + _$invokePointer = jni$_.Pointer.fromFunction(_$invoke); + + static jni$_.Pointer _$invokeMethod( + int $p, + jni$_.MethodInvocation $i, + ) { + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + if ($d == r'execute(Lio/sentry/SentryEvent;Lio/sentry/Hint;)Z') { + final $r = _$impls[$p]!.execute( + $a![0]!.as(const $SentryEvent$Type(), releaseOriginal: true), + $a![1]!.as(const $Hint$Type(), releaseOriginal: true), + ); + return jni$_.JBoolean($r).reference.toPointer(); + } + } catch (e) { + return jni$_.ProtectedJniExtensions.newDartException(e); + } + return jni$_.nullptr; + } + + static void implementIn( + jni$_.JImplementer implementer, + $SentryReplayOptions$BeforeErrorSamplingCallback $impl, + ) { + late final jni$_.RawReceivePort $p; + $p = jni$_.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = jni$_.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + jni$_.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'io.sentry.SentryReplayOptions$BeforeErrorSamplingCallback', + $p, + _$invokePointer, + [], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; + } + + factory SentryReplayOptions$BeforeErrorSamplingCallback.implement( + $SentryReplayOptions$BeforeErrorSamplingCallback $impl, + ) { + final $i = jni$_.JImplementer(); + implementIn($i, $impl); + return SentryReplayOptions$BeforeErrorSamplingCallback.fromReference( + $i.implementReference(), + ); + } +} + +abstract base mixin class $SentryReplayOptions$BeforeErrorSamplingCallback { + factory $SentryReplayOptions$BeforeErrorSamplingCallback({ + required bool Function(SentryEvent sentryEvent, Hint hint) execute, + }) = _$SentryReplayOptions$BeforeErrorSamplingCallback; + + bool execute(SentryEvent sentryEvent, Hint hint); +} + +final class _$SentryReplayOptions$BeforeErrorSamplingCallback + with $SentryReplayOptions$BeforeErrorSamplingCallback { + _$SentryReplayOptions$BeforeErrorSamplingCallback({ + required bool Function(SentryEvent sentryEvent, Hint hint) execute, + }) : _execute = execute; + + final bool Function(SentryEvent sentryEvent, Hint hint) _execute; + + bool execute(SentryEvent sentryEvent, Hint hint) { + return _execute(sentryEvent, hint); + } +} + +final class $SentryReplayOptions$BeforeErrorSamplingCallback$NullableType + extends jni$_.JObjType { + @jni$_.internal + const $SentryReplayOptions$BeforeErrorSamplingCallback$NullableType(); + + @jni$_.internal + @core$_.override + String get signature => + r'Lio/sentry/SentryReplayOptions$BeforeErrorSamplingCallback;'; + + @jni$_.internal + @core$_.override + SentryReplayOptions$BeforeErrorSamplingCallback? fromReference( + jni$_.JReference reference) => + reference.isNull + ? null + : SentryReplayOptions$BeforeErrorSamplingCallback.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType + get nullableType => this; + + @jni$_.internal + @core$_.override + final superCount = 1; + + @core$_.override + int get hashCode => + ($SentryReplayOptions$BeforeErrorSamplingCallback$NullableType).hashCode; + + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == + ($SentryReplayOptions$BeforeErrorSamplingCallback$NullableType) && + other is $SentryReplayOptions$BeforeErrorSamplingCallback$NullableType; + } +} + +final class $SentryReplayOptions$BeforeErrorSamplingCallback$Type + extends jni$_.JObjType { + @jni$_.internal + const $SentryReplayOptions$BeforeErrorSamplingCallback$Type(); + + @jni$_.internal + @core$_.override + String get signature => + r'Lio/sentry/SentryReplayOptions$BeforeErrorSamplingCallback;'; + + @jni$_.internal + @core$_.override + SentryReplayOptions$BeforeErrorSamplingCallback fromReference( + jni$_.JReference reference) => + SentryReplayOptions$BeforeErrorSamplingCallback.fromReference( + reference, + ); + @jni$_.internal + @core$_.override + jni$_.JObjType get superType => const jni$_.JObjectNullableType(); + + @jni$_.internal + @core$_.override + jni$_.JObjType + get nullableType => + const $SentryReplayOptions$BeforeErrorSamplingCallback$NullableType(); + + @jni$_.internal + @core$_.override + final superCount = 1; + + @core$_.override + int get hashCode => + ($SentryReplayOptions$BeforeErrorSamplingCallback$Type).hashCode; + + @core$_.override + bool operator ==(Object other) { + return other.runtimeType == + ($SentryReplayOptions$BeforeErrorSamplingCallback$Type) && + other is $SentryReplayOptions$BeforeErrorSamplingCallback$Type; + } +} + +/// from: `io.sentry.SentryReplayOptions$SentryReplayQuality` +class SentryReplayOptions$SentryReplayQuality extends jni$_.JObject { + @jni$_.internal + @core$_.override + final jni$_.JObjType $type; + + @jni$_.internal + SentryReplayOptions$SentryReplayQuality.fromReference( + jni$_.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = jni$_.JClass.forName( + r'io/sentry/SentryReplayOptions$SentryReplayQuality'); + + /// The type which includes information such as the signature of this class. + static const nullableType = + $SentryReplayOptions$SentryReplayQuality$NullableType(); + static const type = $SentryReplayOptions$SentryReplayQuality$Type(); + static final _id_LOW = _class.staticFieldId( + r'LOW', + r'Lio/sentry/SentryReplayOptions$SentryReplayQuality;', + ); + + /// from: `static public final io.sentry.SentryReplayOptions$SentryReplayQuality LOW` + /// The returned object must be released after use, by calling the [release] method. + static SentryReplayOptions$SentryReplayQuality get LOW => _id_LOW.get( + _class, const $SentryReplayOptions$SentryReplayQuality$Type()); + + static final _id_MEDIUM = _class.staticFieldId( + r'MEDIUM', + r'Lio/sentry/SentryReplayOptions$SentryReplayQuality;', + ); + + /// from: `static public final io.sentry.SentryReplayOptions$SentryReplayQuality MEDIUM` + /// The returned object must be released after use, by calling the [release] method. + static SentryReplayOptions$SentryReplayQuality get MEDIUM => _id_MEDIUM.get( + _class, const $SentryReplayOptions$SentryReplayQuality$Type()); + + static final _id_HIGH = _class.staticFieldId( + r'HIGH', + r'Lio/sentry/SentryReplayOptions$SentryReplayQuality;', + ); + + /// from: `static public final io.sentry.SentryReplayOptions$SentryReplayQuality HIGH` + /// The returned object must be released after use, by calling the [release] method. static SentryReplayOptions$SentryReplayQuality get HIGH => _id_HIGH.get( _class, const $SentryReplayOptions$SentryReplayQuality$Type()); @@ -20667,88 +21347,6 @@ class SentryReplayOptions extends jni$_.JObject { /// The type which includes information such as the signature of this class. static const nullableType = $SentryReplayOptions$NullableType(); static const type = $SentryReplayOptions$Type(); - static final _id_TEXT_VIEW_CLASS_NAME = _class.staticFieldId( - r'TEXT_VIEW_CLASS_NAME', - r'Ljava/lang/String;', - ); - - /// from: `static public final java.lang.String TEXT_VIEW_CLASS_NAME` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? get TEXT_VIEW_CLASS_NAME => - _id_TEXT_VIEW_CLASS_NAME.get(_class, const jni$_.JStringNullableType()); - - static final _id_IMAGE_VIEW_CLASS_NAME = _class.staticFieldId( - r'IMAGE_VIEW_CLASS_NAME', - r'Ljava/lang/String;', - ); - - /// from: `static public final java.lang.String IMAGE_VIEW_CLASS_NAME` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? get IMAGE_VIEW_CLASS_NAME => - _id_IMAGE_VIEW_CLASS_NAME.get(_class, const jni$_.JStringNullableType()); - - static final _id_WEB_VIEW_CLASS_NAME = _class.staticFieldId( - r'WEB_VIEW_CLASS_NAME', - r'Ljava/lang/String;', - ); - - /// from: `static public final java.lang.String WEB_VIEW_CLASS_NAME` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? get WEB_VIEW_CLASS_NAME => - _id_WEB_VIEW_CLASS_NAME.get(_class, const jni$_.JStringNullableType()); - - static final _id_VIDEO_VIEW_CLASS_NAME = _class.staticFieldId( - r'VIDEO_VIEW_CLASS_NAME', - r'Ljava/lang/String;', - ); - - /// from: `static public final java.lang.String VIDEO_VIEW_CLASS_NAME` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? get VIDEO_VIEW_CLASS_NAME => - _id_VIDEO_VIEW_CLASS_NAME.get(_class, const jni$_.JStringNullableType()); - - static final _id_CAMERAX_PREVIEW_VIEW_CLASS_NAME = _class.staticFieldId( - r'CAMERAX_PREVIEW_VIEW_CLASS_NAME', - r'Ljava/lang/String;', - ); - - /// from: `static public final java.lang.String CAMERAX_PREVIEW_VIEW_CLASS_NAME` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? get CAMERAX_PREVIEW_VIEW_CLASS_NAME => - _id_CAMERAX_PREVIEW_VIEW_CLASS_NAME.get( - _class, const jni$_.JStringNullableType()); - - static final _id_ANDROIDX_MEDIA_VIEW_CLASS_NAME = _class.staticFieldId( - r'ANDROIDX_MEDIA_VIEW_CLASS_NAME', - r'Ljava/lang/String;', - ); - - /// from: `static public final java.lang.String ANDROIDX_MEDIA_VIEW_CLASS_NAME` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? get ANDROIDX_MEDIA_VIEW_CLASS_NAME => - _id_ANDROIDX_MEDIA_VIEW_CLASS_NAME.get( - _class, const jni$_.JStringNullableType()); - - static final _id_EXOPLAYER_CLASS_NAME = _class.staticFieldId( - r'EXOPLAYER_CLASS_NAME', - r'Ljava/lang/String;', - ); - - /// from: `static public final java.lang.String EXOPLAYER_CLASS_NAME` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? get EXOPLAYER_CLASS_NAME => - _id_EXOPLAYER_CLASS_NAME.get(_class, const jni$_.JStringNullableType()); - - static final _id_EXOPLAYER_STYLED_CLASS_NAME = _class.staticFieldId( - r'EXOPLAYER_STYLED_CLASS_NAME', - r'Ljava/lang/String;', - ); - - /// from: `static public final java.lang.String EXOPLAYER_STYLED_CLASS_NAME` - /// The returned object must be released after use, by calling the [release] method. - static jni$_.JString? get EXOPLAYER_STYLED_CLASS_NAME => - _id_EXOPLAYER_STYLED_CLASS_NAME.get( - _class, const jni$_.JStringNullableType()); /// from: `static public final int MAX_NETWORK_BODY_SIZE` static const MAX_NETWORK_BODY_SIZE = 153600; @@ -21048,32 +21646,6 @@ class SentryReplayOptions extends jni$_.JObject { .check(); } - static final _id_getMaskViewClasses = _class.instanceMethodId( - r'getMaskViewClasses', - r'()Ljava/util/Set;', - ); - - static final _getMaskViewClasses = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public java.util.Set getMaskViewClasses()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JSet getMaskViewClasses() { - return _getMaskViewClasses( - reference.pointer, _id_getMaskViewClasses as jni$_.JMethodIDPtr) - .object>( - const jni$_.JSetType(jni$_.JStringNullableType())); - } - static final _id_addMaskViewClass = _class.instanceMethodId( r'addMaskViewClass', r'(Ljava/lang/String;)V', @@ -21100,32 +21672,6 @@ class SentryReplayOptions extends jni$_.JObject { .check(); } - static final _id_getUnmaskViewClasses = _class.instanceMethodId( - r'getUnmaskViewClasses', - r'()Ljava/util/Set;', - ); - - static final _getUnmaskViewClasses = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public java.util.Set getUnmaskViewClasses()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JSet getUnmaskViewClasses() { - return _getUnmaskViewClasses( - reference.pointer, _id_getUnmaskViewClasses as jni$_.JMethodIDPtr) - .object>( - const jni$_.JSetType(jni$_.JStringNullableType())); - } - static final _id_addUnmaskViewClass = _class.instanceMethodId( r'addUnmaskViewClass', r'(Ljava/lang/String;)V', @@ -21245,166 +21791,58 @@ class SentryReplayOptions extends jni$_.JObject { )>(); /// from: `public long getErrorReplayDuration()` - int getErrorReplayDuration() { - return _getErrorReplayDuration( - reference.pointer, _id_getErrorReplayDuration as jni$_.JMethodIDPtr) - .long; - } - - static final _id_getSessionSegmentDuration = _class.instanceMethodId( - r'getSessionSegmentDuration', - r'()J', - ); - - static final _getSessionSegmentDuration = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public long getSessionSegmentDuration()` - int getSessionSegmentDuration() { - return _getSessionSegmentDuration(reference.pointer, - _id_getSessionSegmentDuration as jni$_.JMethodIDPtr) - .long; - } - - static final _id_getSessionDuration = _class.instanceMethodId( - r'getSessionDuration', - r'()J', - ); - - static final _getSessionDuration = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>(); - - /// from: `public long getSessionDuration()` - int getSessionDuration() { - return _getSessionDuration( - reference.pointer, _id_getSessionDuration as jni$_.JMethodIDPtr) - .long; - } - - static final _id_setMaskViewContainerClass = _class.instanceMethodId( - r'setMaskViewContainerClass', - r'(Ljava/lang/String;)V', - ); - - static final _setMaskViewContainerClass = jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public void setMaskViewContainerClass(java.lang.String string)` - void setMaskViewContainerClass( - jni$_.JString string, - ) { - final _$string = string.reference; - _setMaskViewContainerClass( - reference.pointer, - _id_setMaskViewContainerClass as jni$_.JMethodIDPtr, - _$string.pointer) - .check(); - } - - static final _id_setUnmaskViewContainerClass = _class.instanceMethodId( - r'setUnmaskViewContainerClass', - r'(Ljava/lang/String;)V', - ); - - static final _setUnmaskViewContainerClass = - jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JThrowablePtr Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - jni$_.VarArgs<(jni$_.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni$_.JThrowablePtr Function(jni$_.Pointer, - jni$_.JMethodIDPtr, jni$_.Pointer)>(); - - /// from: `public void setUnmaskViewContainerClass(java.lang.String string)` - void setUnmaskViewContainerClass( - jni$_.JString string, - ) { - final _$string = string.reference; - _setUnmaskViewContainerClass( - reference.pointer, - _id_setUnmaskViewContainerClass as jni$_.JMethodIDPtr, - _$string.pointer) - .check(); + int getErrorReplayDuration() { + return _getErrorReplayDuration( + reference.pointer, _id_getErrorReplayDuration as jni$_.JMethodIDPtr) + .long; } - static final _id_getMaskViewContainerClass = _class.instanceMethodId( - r'getMaskViewContainerClass', - r'()Ljava/lang/String;', + static final _id_getSessionSegmentDuration = _class.instanceMethodId( + r'getSessionSegmentDuration', + r'()J', ); - static final _getMaskViewContainerClass = jni$_.ProtectedJniExtensions.lookup< + static final _getSessionSegmentDuration = jni$_.ProtectedJniExtensions.lookup< jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') + )>>('globalEnv_CallLongMethod') .asFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, )>(); - /// from: `public java.lang.String getMaskViewContainerClass()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getMaskViewContainerClass() { - return _getMaskViewContainerClass(reference.pointer, - _id_getMaskViewContainerClass as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + /// from: `public long getSessionSegmentDuration()` + int getSessionSegmentDuration() { + return _getSessionSegmentDuration(reference.pointer, + _id_getSessionSegmentDuration as jni$_.JMethodIDPtr) + .long; } - static final _id_getUnmaskViewContainerClass = _class.instanceMethodId( - r'getUnmaskViewContainerClass', - r'()Ljava/lang/String;', + static final _id_getSessionDuration = _class.instanceMethodId( + r'getSessionDuration', + r'()J', ); - static final _getUnmaskViewContainerClass = - jni$_.ProtectedJniExtensions.lookup< - jni$_.NativeFunction< - jni$_.JniResult Function( - jni$_.Pointer, - jni$_.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< + static final _getSessionDuration = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< jni$_.JniResult Function( jni$_.Pointer, jni$_.JMethodIDPtr, - )>(); + )>>('globalEnv_CallLongMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); - /// from: `public java.lang.String getUnmaskViewContainerClass()` - /// The returned object must be released after use, by calling the [release] method. - jni$_.JString? getUnmaskViewContainerClass() { - return _getUnmaskViewContainerClass(reference.pointer, - _id_getUnmaskViewContainerClass as jni$_.JMethodIDPtr) - .object(const jni$_.JStringNullableType()); + /// from: `public long getSessionDuration()` + int getSessionDuration() { + return _getSessionDuration( + reference.pointer, _id_getSessionDuration as jni$_.JMethodIDPtr) + .long; } static final _id_trackCustomMasking = _class.instanceMethodId( @@ -21884,6 +22322,62 @@ class SentryReplayOptions extends jni$_.JObject { _id_setNetworkResponseHeaders as jni$_.JMethodIDPtr, _$list.pointer) .check(); } + + static final _id_getBeforeErrorSampling = _class.instanceMethodId( + r'getBeforeErrorSampling', + r'()Lio/sentry/SentryReplayOptions$BeforeErrorSamplingCallback;', + ); + + static final _getBeforeErrorSampling = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public io.sentry.SentryReplayOptions$BeforeErrorSamplingCallback getBeforeErrorSampling()` + /// The returned object must be released after use, by calling the [release] method. + SentryReplayOptions$BeforeErrorSamplingCallback? getBeforeErrorSampling() { + return _getBeforeErrorSampling( + reference.pointer, _id_getBeforeErrorSampling as jni$_.JMethodIDPtr) + .object( + const $SentryReplayOptions$BeforeErrorSamplingCallback$NullableType()); + } + + static final _id_setBeforeErrorSampling = _class.instanceMethodId( + r'setBeforeErrorSampling', + r'(Lio/sentry/SentryReplayOptions$BeforeErrorSamplingCallback;)V', + ); + + static final _setBeforeErrorSampling = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public void setBeforeErrorSampling(io.sentry.SentryReplayOptions$BeforeErrorSamplingCallback beforeErrorSamplingCallback)` + void setBeforeErrorSampling( + SentryReplayOptions$BeforeErrorSamplingCallback? + beforeErrorSamplingCallback, + ) { + final _$beforeErrorSamplingCallback = + beforeErrorSamplingCallback?.reference ?? jni$_.jNullReference; + _setBeforeErrorSampling( + reference.pointer, + _id_setBeforeErrorSampling as jni$_.JMethodIDPtr, + _$beforeErrorSamplingCallback.pointer) + .check(); + } } final class $SentryReplayOptions$NullableType @@ -31757,6 +32251,120 @@ class ScopesAdapter extends jni$_.JObject { .object(const jni$_.JObjectType()); } + static final _id_setAttribute = _class.instanceMethodId( + r'setAttribute', + r'(Ljava/lang/String;Ljava/lang/Object;)V', + ); + + static final _setAttribute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `public void setAttribute(java.lang.String string, java.lang.Object object)` + void setAttribute( + jni$_.JString? string, + jni$_.JObject? object, + ) { + final _$string = string?.reference ?? jni$_.jNullReference; + final _$object = object?.reference ?? jni$_.jNullReference; + _setAttribute(reference.pointer, _id_setAttribute as jni$_.JMethodIDPtr, + _$string.pointer, _$object.pointer) + .check(); + } + + static final _id_setAttribute$1 = _class.instanceMethodId( + r'setAttribute', + r'(Lio/sentry/SentryAttribute;)V', + ); + + static final _setAttribute$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public void setAttribute(io.sentry.SentryAttribute sentryAttribute)` + void setAttribute$1( + jni$_.JObject? sentryAttribute, + ) { + final _$sentryAttribute = + sentryAttribute?.reference ?? jni$_.jNullReference; + _setAttribute$1(reference.pointer, _id_setAttribute$1 as jni$_.JMethodIDPtr, + _$sentryAttribute.pointer) + .check(); + } + + static final _id_setAttributes = _class.instanceMethodId( + r'setAttributes', + r'(Lio/sentry/SentryAttributes;)V', + ); + + static final _setAttributes = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public void setAttributes(io.sentry.SentryAttributes sentryAttributes)` + void setAttributes( + jni$_.JObject? sentryAttributes, + ) { + final _$sentryAttributes = + sentryAttributes?.reference ?? jni$_.jNullReference; + _setAttributes(reference.pointer, _id_setAttributes as jni$_.JMethodIDPtr, + _$sentryAttributes.pointer) + .check(); + } + + static final _id_removeAttribute = _class.instanceMethodId( + r'removeAttribute', + r'(Ljava/lang/String;)V', + ); + + static final _removeAttribute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public void removeAttribute(java.lang.String string)` + void removeAttribute( + jni$_.JString? string, + ) { + final _$string = string?.reference ?? jni$_.jNullReference; + _removeAttribute(reference.pointer, + _id_removeAttribute as jni$_.JMethodIDPtr, _$string.pointer) + .check(); + } + static final _id_addFeatureFlag = _class.instanceMethodId( r'addFeatureFlag', r'(Ljava/lang/String;Ljava/lang/Boolean;)V', @@ -33056,6 +33664,147 @@ class Scope extends jni$_.JObject { .check(); } + static final _id_getAttributes = _class.instanceMethodId( + r'getAttributes', + r'()Ljava/util/Map;', + ); + + static final _getAttributes = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + jni$_.JniResult Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + )>(); + + /// from: `public java.util.Map getAttributes()` + /// The returned object must be released after use, by calling the [release] method. + jni$_.JMap getAttributes() { + return _getAttributes( + reference.pointer, _id_getAttributes as jni$_.JMethodIDPtr) + .object>( + const jni$_.JMapType( + jni$_.JStringNullableType(), jni$_.JObjectNullableType())); + } + + static final _id_setAttribute = _class.instanceMethodId( + r'setAttribute', + r'(Ljava/lang/String;Ljava/lang/Object;)V', + ); + + static final _setAttribute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs< + ( + jni$_.Pointer, + jni$_.Pointer + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.Pointer, + jni$_.Pointer)>(); + + /// from: `public void setAttribute(java.lang.String string, java.lang.Object object)` + void setAttribute( + jni$_.JString? string, + jni$_.JObject? object, + ) { + final _$string = string?.reference ?? jni$_.jNullReference; + final _$object = object?.reference ?? jni$_.jNullReference; + _setAttribute(reference.pointer, _id_setAttribute as jni$_.JMethodIDPtr, + _$string.pointer, _$object.pointer) + .check(); + } + + static final _id_setAttribute$1 = _class.instanceMethodId( + r'setAttribute', + r'(Lio/sentry/SentryAttribute;)V', + ); + + static final _setAttribute$1 = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public void setAttribute(io.sentry.SentryAttribute sentryAttribute)` + void setAttribute$1( + jni$_.JObject? sentryAttribute, + ) { + final _$sentryAttribute = + sentryAttribute?.reference ?? jni$_.jNullReference; + _setAttribute$1(reference.pointer, _id_setAttribute$1 as jni$_.JMethodIDPtr, + _$sentryAttribute.pointer) + .check(); + } + + static final _id_setAttributes = _class.instanceMethodId( + r'setAttributes', + r'(Lio/sentry/SentryAttributes;)V', + ); + + static final _setAttributes = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public void setAttributes(io.sentry.SentryAttributes sentryAttributes)` + void setAttributes( + jni$_.JObject? sentryAttributes, + ) { + final _$sentryAttributes = + sentryAttributes?.reference ?? jni$_.jNullReference; + _setAttributes(reference.pointer, _id_setAttributes as jni$_.JMethodIDPtr, + _$sentryAttributes.pointer) + .check(); + } + + static final _id_removeAttribute = _class.instanceMethodId( + r'removeAttribute', + r'(Ljava/lang/String;)V', + ); + + static final _removeAttribute = jni$_.ProtectedJniExtensions.lookup< + jni$_.NativeFunction< + jni$_.JThrowablePtr Function( + jni$_.Pointer, + jni$_.JMethodIDPtr, + jni$_.VarArgs<(jni$_.Pointer,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + jni$_.JThrowablePtr Function(jni$_.Pointer, + jni$_.JMethodIDPtr, jni$_.Pointer)>(); + + /// from: `public void removeAttribute(java.lang.String string)` + void removeAttribute( + jni$_.JString? string, + ) { + final _$string = string?.reference ?? jni$_.jNullReference; + _removeAttribute(reference.pointer, + _id_removeAttribute as jni$_.JMethodIDPtr, _$string.pointer) + .check(); + } + static final _id_getExtras = _class.instanceMethodId( r'getExtras', r'()Ljava/util/Map;',