Skip to content

Commit 32914d8

Browse files
authored
Update jni and jnigen to 0.14.2 (#3075)
* Update jni and jnigen to 0.14.2 * Update * Update * Update build.gradle * Update CHANGELOG
1 parent 200cceb commit 32914d8

File tree

9 files changed

+97
-16
lines changed

9 files changed

+97
-16
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
### Dependencies
1414

15+
- Bump JNI from v0.14.1 to v0.14.2 ([#3075](https://github.com/getsentry/sentry-dart/pull/3075))
1516
- Bump Android SDK from v8.13.2 to v8.17.0 ([#2977](https://github.com/getsentry/sentry-dart/pull/2977))
1617
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#8170)
1718
- [diff](https://github.com/getsentry/sentry-java/compare/8.13.2...8.17.0)

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

Lines changed: 79 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
// Autogenerated by jnigen. DO NOT EDIT!
1+
// AUTO GENERATED BY JNIGEN 0.14.2. DO NOT EDIT!
22

33
// ignore_for_file: annotate_overrides
44
// ignore_for_file: argument_type_not_assignable
55
// ignore_for_file: camel_case_extensions
66
// ignore_for_file: camel_case_types
77
// ignore_for_file: constant_identifier_names
8+
// ignore_for_file: comment_references
89
// ignore_for_file: doc_directive_unknown
910
// ignore_for_file: file_names
1011
// ignore_for_file: inference_failure_on_untyped_parameter
@@ -80,7 +81,7 @@ class ReplayIntegration extends jni$_.JObject {
8081
jni$_.Pointer<jni$_.Void>,
8182
jni$_.Pointer<jni$_.Void>)>();
8283

83-
/// from: `public void <init>(android.content.Context context, io.sentry.transport.ICurrentDateProvider iCurrentDateProvider, kotlin.jvm.functions.Function0 function0, kotlin.jvm.functions.Function1 function1, kotlin.jvm.functions.Function1 function11)`
84+
/// from: `public void <init>(android.content.Context context, io.sentry.transport.ICurrentDateProvider iCurrentDateProvider, kotlin.jvm.functions.Function0<? extends io.sentry.android.replay.Recorder> function0, kotlin.jvm.functions.Function1<? super java.lang.Boolean, io.sentry.android.replay.ScreenshotRecorderConfig> function1, kotlin.jvm.functions.Function1<? super io.sentry.protocol.SentryId, io.sentry.android.replay.ReplayCache> function11)`
8485
/// The returned object must be released after use, by calling the [release] method.
8586
factory ReplayIntegration(
8687
jni$_.JObject context,
@@ -238,7 +239,7 @@ class ReplayIntegration extends jni$_.JObject {
238239
jni$_.Pointer<jni$_.Void>,
239240
jni$_.Pointer<jni$_.Void>)>();
240241

241-
/// from: `public void <init>(android.content.Context context, io.sentry.transport.ICurrentDateProvider iCurrentDateProvider, kotlin.jvm.functions.Function0 function0, kotlin.jvm.functions.Function1 function1, kotlin.jvm.functions.Function1 function11, kotlin.jvm.functions.Function1 function12, io.sentry.android.replay.util.MainLooperHandler mainLooperHandler, kotlin.jvm.functions.Function0 function01)`
242+
/// from: `public void <init>(android.content.Context context, io.sentry.transport.ICurrentDateProvider iCurrentDateProvider, kotlin.jvm.functions.Function0<? extends io.sentry.android.replay.Recorder> function0, kotlin.jvm.functions.Function1<? super java.lang.Boolean, io.sentry.android.replay.ScreenshotRecorderConfig> function1, kotlin.jvm.functions.Function1<? super io.sentry.protocol.SentryId, io.sentry.android.replay.ReplayCache> function11, kotlin.jvm.functions.Function1<? super java.lang.Boolean, ? extends io.sentry.android.replay.capture.CaptureStrategy> function12, io.sentry.android.replay.util.MainLooperHandler mainLooperHandler, kotlin.jvm.functions.Function0<io.sentry.android.replay.gestures.GestureRecorder> function01)`
242243
/// The returned object must be released after use, by calling the [release] method.
243244
factory ReplayIntegration.new$3(
244245
jni$_.JObject context,
@@ -605,6 +606,80 @@ class ReplayIntegration extends jni$_.JObject {
605606
_pause(reference.pointer, _id_pause as jni$_.JMethodIDPtr).check();
606607
}
607608

609+
static final _id_enableDebugMaskingOverlay = _class.instanceMethodId(
610+
r'enableDebugMaskingOverlay',
611+
r'()V',
612+
);
613+
614+
static final _enableDebugMaskingOverlay = jni$_.ProtectedJniExtensions.lookup<
615+
jni$_.NativeFunction<
616+
jni$_.JThrowablePtr Function(
617+
jni$_.Pointer<jni$_.Void>,
618+
jni$_.JMethodIDPtr,
619+
)>>('globalEnv_CallVoidMethod')
620+
.asFunction<
621+
jni$_.JThrowablePtr Function(
622+
jni$_.Pointer<jni$_.Void>,
623+
jni$_.JMethodIDPtr,
624+
)>();
625+
626+
/// from: `public void enableDebugMaskingOverlay()`
627+
void enableDebugMaskingOverlay() {
628+
_enableDebugMaskingOverlay(reference.pointer,
629+
_id_enableDebugMaskingOverlay as jni$_.JMethodIDPtr)
630+
.check();
631+
}
632+
633+
static final _id_disableDebugMaskingOverlay = _class.instanceMethodId(
634+
r'disableDebugMaskingOverlay',
635+
r'()V',
636+
);
637+
638+
static final _disableDebugMaskingOverlay =
639+
jni$_.ProtectedJniExtensions.lookup<
640+
jni$_.NativeFunction<
641+
jni$_.JThrowablePtr Function(
642+
jni$_.Pointer<jni$_.Void>,
643+
jni$_.JMethodIDPtr,
644+
)>>('globalEnv_CallVoidMethod')
645+
.asFunction<
646+
jni$_.JThrowablePtr Function(
647+
jni$_.Pointer<jni$_.Void>,
648+
jni$_.JMethodIDPtr,
649+
)>();
650+
651+
/// from: `public void disableDebugMaskingOverlay()`
652+
void disableDebugMaskingOverlay() {
653+
_disableDebugMaskingOverlay(reference.pointer,
654+
_id_disableDebugMaskingOverlay as jni$_.JMethodIDPtr)
655+
.check();
656+
}
657+
658+
static final _id_isDebugMaskingOverlayEnabled = _class.instanceMethodId(
659+
r'isDebugMaskingOverlayEnabled',
660+
r'()Z',
661+
);
662+
663+
static final _isDebugMaskingOverlayEnabled =
664+
jni$_.ProtectedJniExtensions.lookup<
665+
jni$_.NativeFunction<
666+
jni$_.JniResult Function(
667+
jni$_.Pointer<jni$_.Void>,
668+
jni$_.JMethodIDPtr,
669+
)>>('globalEnv_CallBooleanMethod')
670+
.asFunction<
671+
jni$_.JniResult Function(
672+
jni$_.Pointer<jni$_.Void>,
673+
jni$_.JMethodIDPtr,
674+
)>();
675+
676+
/// from: `public boolean isDebugMaskingOverlayEnabled()`
677+
bool isDebugMaskingOverlayEnabled() {
678+
return _isDebugMaskingOverlayEnabled(reference.pointer,
679+
_id_isDebugMaskingOverlayEnabled as jni$_.JMethodIDPtr)
680+
.boolean;
681+
}
682+
608683
static final _id_stop = _class.instanceMethodId(
609684
r'stop',
610685
r'()V',
@@ -1853,7 +1928,7 @@ class Bitmap extends jni$_.JObject {
18531928
r'Landroid/os/Parcelable$Creator;',
18541929
);
18551930

1856-
/// from: `static public final android.os.Parcelable$Creator CREATOR`
1931+
/// from: `static public final android.os.Parcelable$Creator<android.graphics.Bitmap> CREATOR`
18571932
/// The returned object must be released after use, by calling the [release] method.
18581933
static jni$_.JObject? get CREATOR =>
18591934
_id_CREATOR.get(_class, const jni$_.JObjectNullableType());

flutter/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ dependencies:
2929
ffi: ^2.0.0
3030
collection: ^1.16.0
3131
web: ^1.1.0
32-
jni: 0.14.1
32+
jni: 0.14.2
3333

3434
dev_dependencies:
3535
build_runner: ^2.4.2
@@ -46,7 +46,7 @@ dev_dependencies:
4646
git:
4747
url: https://github.com/getsentry/ffigen
4848
ref: 6aa2c2642f507eab3df83373189170797a9fa5e7
49-
jnigen: 0.14.1
49+
jnigen: 0.14.2
5050

5151
platform: any
5252
flutter:

min_version_test/android/app/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion 34
29+
namespace 'com.example.minversiontest'
30+
31+
compileSdkVersion 35
3032
ndkVersion '21.4.7075529'
3133

3234
compileOptions {
@@ -49,7 +51,7 @@ android {
4951
// You can update the following values to match your application needs.
5052
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
5153
minSdkVersion flutter.minSdkVersion
52-
targetSdkVersion 34
54+
targetSdkVersion 35
5355
versionCode flutterVersionCode.toInteger()
5456
versionName flutterVersionName
5557

min_version_test/android/app/src/debug/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.minversiontest">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- The INTERNET permission is required for development. Specifically,
43
the Flutter tool needs it to communicate with the running application
54
to allow setting breakpoints, to provide hot reload, etc.

min_version_test/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.minversiontest">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<application
43
android:label="minversiontest"
54
android:icon="@mipmap/ic_launcher">

min_version_test/android/app/src/profile/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.minversiontest">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- The INTERNET permission is required for development. Specifically,
43
the Flutter tool needs it to communicate with the running application
54
to allow setting breakpoints, to provide hot reload, etc.

min_version_test/android/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
ext {
2+
flutter = [
3+
ndkVersion : '21.4.7075529',
4+
]
5+
}
6+
17
buildscript {
28
ext.kotlin_version = '1.8.0'
39
repositories {
@@ -6,7 +12,7 @@ buildscript {
612
}
713

814
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.4.2'
15+
classpath 'com.android.tools.build:gradle:8.1.4'
1016
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1117
}
1218
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)