@op-engineering/op-sqlite 2.0.18 → 2.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/cpp-adapter.cpp +4 -8
- package/package.json +1 -1
package/android/cpp-adapter.cpp
CHANGED
|
@@ -7,17 +7,13 @@
|
|
|
7
7
|
#include <typeinfo>
|
|
8
8
|
|
|
9
9
|
struct OPSQLiteBridge : jni::JavaClass<OPSQLiteBridge> {
|
|
10
|
-
static constexpr auto kJavaDescriptor =
|
|
11
|
-
"Lcom/op/sqlite/OPSQLiteBridge;";
|
|
10
|
+
static constexpr auto kJavaDescriptor = "Lcom/op/sqlite/OPSQLiteBridge;";
|
|
12
11
|
|
|
13
12
|
static void registerNatives() {
|
|
14
13
|
javaClassStatic()->registerNatives(
|
|
15
|
-
{
|
|
16
|
-
makeNativeMethod("installNativeJsi",
|
|
17
|
-
OPSQLiteBridge::installNativeJsi),
|
|
14
|
+
{makeNativeMethod("installNativeJsi", OPSQLiteBridge::installNativeJsi),
|
|
18
15
|
makeNativeMethod("clearStateNativeJsi",
|
|
19
|
-
OPSQLiteBridge::clearStateNativeJsi)
|
|
20
|
-
});
|
|
16
|
+
OPSQLiteBridge::clearStateNativeJsi)});
|
|
21
17
|
}
|
|
22
18
|
|
|
23
19
|
private:
|
|
@@ -31,7 +27,7 @@ private:
|
|
|
31
27
|
|
|
32
28
|
opsqlite::install(*jsiRuntime, jsCallInvoker, dbPathStr.c_str());
|
|
33
29
|
}
|
|
34
|
-
|
|
30
|
+
|
|
35
31
|
static void clearStateNativeJsi(jni::alias_ref<jni::JObject> thiz) {
|
|
36
32
|
opsqlite::clearState();
|
|
37
33
|
}
|