Skip to content

Commit

Permalink
[jnigen] Fix CI (#1012)
Browse files Browse the repository at this point in the history
  • Loading branch information
HosseinYousefi authored Mar 14, 2024
1 parent 4fc6a33 commit 7e1e2b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions pkgs/jnigen/example/in_app_java/lib/android_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2542,19 +2542,19 @@ class Build_Partition extends jni.JObject {
return _getBuildTimeMillis(reference.pointer).long;
}

static final _equals1 = jniLookup<
static final _equals = jniLookup<
ffi.NativeFunction<
jni.JniResult Function(ffi.Pointer<ffi.Void>,
ffi.Pointer<ffi.Void>)>>("Build_Partition__equals1")
ffi.Pointer<ffi.Void>)>>("Build_Partition__equals")
.asFunction<
jni.JniResult Function(
ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>)>();

/// from: public boolean equals(java.lang.Object object)
bool equals1(
bool equals(
jni.JObject object,
) {
return _equals1(reference.pointer, object.reference.pointer).boolean;
return _equals(reference.pointer, object.reference.pointer).boolean;
}

static final _hashCode1 = jniLookup<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1419,19 +1419,19 @@ JniResult Build_Partition__getBuildTimeMillis(jobject self_) {
return (JniResult){.value = {.j = _result}, .exception = check_exception()};
}

jmethodID _m_Build_Partition__equals1 = NULL;
jmethodID _m_Build_Partition__equals = NULL;
FFI_PLUGIN_EXPORT
JniResult Build_Partition__equals1(jobject self_, jobject object) {
JniResult Build_Partition__equals(jobject self_, jobject object) {
load_env();
load_class_global_ref(&_c_Build_Partition, "android/os/Build$Partition");
if (_c_Build_Partition == NULL)
return (JniResult){.value = {.j = 0}, .exception = check_exception()};
load_method(_c_Build_Partition, &_m_Build_Partition__equals1, "equals",
load_method(_c_Build_Partition, &_m_Build_Partition__equals, "equals",
"(Ljava/lang/Object;)Z");
if (_m_Build_Partition__equals1 == NULL)
if (_m_Build_Partition__equals == NULL)
return (JniResult){.value = {.j = 0}, .exception = check_exception()};
uint8_t _result = (*jniEnv)->CallBooleanMethod(
jniEnv, self_, _m_Build_Partition__equals1, object);
jniEnv, self_, _m_Build_Partition__equals, object);
return (JniResult){.value = {.z = _result}, .exception = check_exception()};
}

Expand Down

0 comments on commit 7e1e2b7

Please sign in to comment.