Skip to content

Commit c41f808

Browse files
isaacrowntreeclaude
andcommitted
fix(android): use registerNatives() instead of deprecated initialize()
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3a9374b commit c41f808

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#include <jni.h>
2+
#include <fbjni/fbjni.h>
23
#include "NitroUnzipOnLoad.hpp"
34

45
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void*) {
5-
return margelo::nitro::unzip::initialize(vm);
6+
return facebook::jni::initialize(vm, [] {
7+
margelo::nitro::unzip::registerAllNatives();
8+
});
69
}

0 commit comments

Comments
 (0)