ReviewOS

also looking at this

craft-native/craft

feat(android): the reply channel, so async actions become reachable

#152
Merged chris wants to merge feat/android-reply-channel into main
5 files +464 -0
packages/zig/src/jni_runtime.zigmodified+7-0
Changes to packages/zig/src/jni_runtime.zig
@@ -775,6 +775,13 @@ pub const Jni = struct {
775775 return result;
776776 }
777777
778 pub fn callStaticVoidMethodA(self: Self, cls: jclass, id: jmethodID, args: []const jvalue) JniError!void {
779 const call: *const fn (JNIEnv, jclass, jmethodID, [*]const jvalue) callconv(.c) void =
780 @ptrCast(self.table().CallStaticVoidMethodA orelse return JniError.NotFound);
781 call(self.env, cls, id, args.ptr);
782 try self.check();
783 }
784
778785 pub fn callStaticIntMethodA(self: Self, cls: jclass, id: jmethodID, args: []const jvalue) JniError!jint {
779786 const call: *const fn (JNIEnv, jclass, jmethodID, [*]const jvalue) callconv(.c) jint =
780787 @ptrCast(self.table().CallStaticIntMethodA orelse return JniError.NotFound);