Skip to content

Commit aacf1ff

Browse files
committed
Update
1 parent 5abe802 commit aacf1ff

File tree

3 files changed

+14
-17
lines changed

3 files changed

+14
-17
lines changed

packages/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ class SentryFlutterPlugin :
290290

291291
@Suppress("unused") // Used by native/jni bindings
292292
@JvmStatic
293-
fun nativeCrash() {
293+
fun crash() {
294294
val exception = RuntimeException("FlutterSentry Native Integration: Sample RuntimeException")
295295
val mainThread = Looper.getMainLooper().thread
296296
mainThread.uncaughtExceptionHandler?.uncaughtException(mainThread, exception)

packages/flutter/lib/src/native/java/binding.dart

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,12 +1305,12 @@ class SentryFlutterPlugin$Companion extends jni$_.JObject {
13051305
.object<ReplayIntegration?>(const $ReplayIntegration$NullableType());
13061306
}
13071307

1308-
static final _id_nativeCrash = _class.instanceMethodId(
1309-
r'nativeCrash',
1308+
static final _id_crash = _class.instanceMethodId(
1309+
r'crash',
13101310
r'()V',
13111311
);
13121312

1313-
static final _nativeCrash = jni$_.ProtectedJniExtensions.lookup<
1313+
static final _crash = jni$_.ProtectedJniExtensions.lookup<
13141314
jni$_.NativeFunction<
13151315
jni$_.JThrowablePtr Function(
13161316
jni$_.Pointer<jni$_.Void>,
@@ -1322,10 +1322,9 @@ class SentryFlutterPlugin$Companion extends jni$_.JObject {
13221322
jni$_.JMethodIDPtr,
13231323
)>();
13241324

1325-
/// from: `public final void nativeCrash()`
1326-
void nativeCrash() {
1327-
_nativeCrash(reference.pointer, _id_nativeCrash as jni$_.JMethodIDPtr)
1328-
.check();
1325+
/// from: `public final void crash()`
1326+
void crash() {
1327+
_crash(reference.pointer, _id_crash as jni$_.JMethodIDPtr).check();
13291328
}
13301329

13311330
static final _id_getDisplayRefreshRate = _class.instanceMethodId(
@@ -1839,12 +1838,12 @@ class SentryFlutterPlugin extends jni$_.JObject {
18391838
.object<ReplayIntegration?>(const $ReplayIntegration$NullableType());
18401839
}
18411840

1842-
static final _id_nativeCrash = _class.staticMethodId(
1843-
r'nativeCrash',
1841+
static final _id_crash = _class.staticMethodId(
1842+
r'crash',
18441843
r'()V',
18451844
);
18461845

1847-
static final _nativeCrash = jni$_.ProtectedJniExtensions.lookup<
1846+
static final _crash = jni$_.ProtectedJniExtensions.lookup<
18481847
jni$_.NativeFunction<
18491848
jni$_.JThrowablePtr Function(
18501849
jni$_.Pointer<jni$_.Void>,
@@ -1856,11 +1855,9 @@ class SentryFlutterPlugin extends jni$_.JObject {
18561855
jni$_.JMethodIDPtr,
18571856
)>();
18581857

1859-
/// from: `static public final void nativeCrash()`
1860-
static void nativeCrash() {
1861-
_nativeCrash(
1862-
_class.reference.pointer, _id_nativeCrash as jni$_.JMethodIDPtr)
1863-
.check();
1858+
/// from: `static public final void crash()`
1859+
static void crash() {
1860+
_crash(_class.reference.pointer, _id_crash as jni$_.JMethodIDPtr).check();
18641861
}
18651862

18661863
static final _id_getDisplayRefreshRate = _class.staticMethodId(

packages/flutter/lib/src/native/java/sentry_native_java.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class SentryNativeJava extends SentryNativeChannel {
201201

202202
@override
203203
void nativeCrash() {
204-
native.SentryFlutterPlugin.Companion.nativeCrash();
204+
native.SentryFlutterPlugin.Companion.crash();
205205
}
206206

207207
@override

0 commit comments

Comments
 (0)