Skip to content

Commit

Permalink
fix: get benchmark to work on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
savv committed Dec 21, 2020
1 parent 93521ce commit f09b512
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions android/cpp-adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Java_com_reactnativeleveldb_LeveldbModule_initialize(JNIEnv* env, jclass clazz,
installLeveldb(*reinterpret_cast<facebook::jsi::Runtime*>(jsiPtr), std::string(str));
}

extern "C"
JNIEXPORT void JNICALL
Java_com_reactnativeleveldb_LeveldbModule_destruct(JNIEnv* env, jclass clazz) {
cleanupLeveldb();
}
1 change: 1 addition & 0 deletions example/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
android.useAndroidX=true
android.enableJetifier=true
FLIPPER_VERSION=0.54.0
AsyncStorage_db_size_in_MB=25
File renamed without changes.

0 comments on commit f09b512

Please sign in to comment.