Skip to content

Commit

Permalink
Formating
Browse files Browse the repository at this point in the history
  • Loading branch information
ospfranco committed Feb 22, 2024
1 parent 295773f commit c5f492b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions android/cpp-adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,13 @@
#include <typeinfo>

struct OPSQLiteBridge : jni::JavaClass<OPSQLiteBridge> {
static constexpr auto kJavaDescriptor =
"Lcom/op/sqlite/OPSQLiteBridge;";
static constexpr auto kJavaDescriptor = "Lcom/op/sqlite/OPSQLiteBridge;";

static void registerNatives() {
javaClassStatic()->registerNatives(
{
makeNativeMethod("installNativeJsi",
OPSQLiteBridge::installNativeJsi),
{makeNativeMethod("installNativeJsi", OPSQLiteBridge::installNativeJsi),
makeNativeMethod("clearStateNativeJsi",
OPSQLiteBridge::clearStateNativeJsi)
});
OPSQLiteBridge::clearStateNativeJsi)});
}

private:
Expand All @@ -31,7 +27,7 @@ struct OPSQLiteBridge : jni::JavaClass<OPSQLiteBridge> {

opsqlite::install(*jsiRuntime, jsCallInvoker, dbPathStr.c_str());
}

static void clearStateNativeJsi(jni::alias_ref<jni::JObject> thiz) {
opsqlite::clearState();
}
Expand Down

0 comments on commit c5f492b

Please sign in to comment.