Skip to content

Commit 13e9577

Browse files
authored
fix: Fix clearStateNativeJsi (#24)
1 parent 489016d commit 13e9577

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

android/cpp-adapter.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ struct QuickSQLiteBridge : jni::JavaClass<QuickSQLiteBridge> {
1414
javaClassStatic()->registerNatives(
1515
{// initialization for JSI
1616
makeNativeMethod("installNativeJsi",
17-
QuickSQLiteBridge::installNativeJsi)});
17+
QuickSQLiteBridge::installNativeJsi),
18+
makeNativeMethod("clearStateNativeJsi",
19+
QuickSQLiteBridge::clearStateNativeJsi)
20+
});
1821
}
1922

2023
private:
@@ -29,7 +32,7 @@ struct QuickSQLiteBridge : jni::JavaClass<QuickSQLiteBridge> {
2932
osp::install(*jsiRuntime, jsCallInvoker, docPathString.c_str());
3033
}
3134

32-
static void clearStateNativeJsi() {
35+
static void clearStateNativeJsi(jni::alias_ref<jni::JObject> thiz) {
3336
osp::clearState();
3437
}
3538
};

0 commit comments

Comments
 (0)