@op-engineering/op-sqlite 11.2.5 → 11.2.6

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.
@@ -2,16 +2,12 @@ project(OPSQLite)
2
2
  cmake_minimum_required(VERSION 3.9.0)
3
3
 
4
4
  set (PACKAGE_NAME "op-sqlite")
5
- set (CMAKE_VERBOSE_MAKEFILE ON)
6
- set (CMAKE_CXX_STANDARD 20)
7
- set (BUILD_DIR ${CMAKE_SOURCE_DIR}/build)
8
5
 
9
- include_directories(
10
- ../cpp
11
- ../cpp/sqlcipher
12
- ../cpp/libsql
13
- # ../example/c_sources
14
- )
6
+ include_directories(
7
+ ../cpp
8
+ ../cpp/sqlcipher
9
+ ../cpp/libsql
10
+ )
15
11
 
16
12
  add_definitions(
17
13
  ${SQLITE_FLAGS}
@@ -62,13 +58,6 @@ if (USE_SQLITE_VEC)
62
58
  )
63
59
  endif()
64
60
 
65
- set_target_properties(
66
- ${PACKAGE_NAME} PROPERTIES
67
- CXX_STANDARD 20
68
- CXX_EXTENSIONS OFF
69
- POSITION_INDEPENDENT_CODE ON
70
- )
71
-
72
61
  find_package(ReactAndroid REQUIRED CONFIG)
73
62
  find_package(fbjni REQUIRED CONFIG)
74
63
  find_library(LOG_LIB log)
@@ -177,7 +177,7 @@ android {
177
177
  tokenizersHeaderPath = "../c_sources/tokenizers.h"
178
178
  }
179
179
 
180
- cppFlags "-O2", "-fexceptions", "-DONANDROID"
180
+ cppFlags "-O2 -frtti -fexceptions -Wall -fstack-protector-all"
181
181
  abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
182
182
  arguments "-DANDROID_STL=c++_shared",
183
183
  "-DSQLITE_FLAGS='$sqliteFlags'",
@@ -37,7 +37,7 @@ private:
37
37
  }
38
38
 
39
39
  static void clearStateNativeJsi(jni::alias_ref<jni::JObject> thiz) {
40
- opsqlite::clearState();
40
+ opsqlite::invalidate();
41
41
  }
42
42
  };
43
43
 
@@ -27,7 +27,7 @@ class OPSQLiteBridge {
27
27
  )
28
28
  }
29
29
 
30
- fun clearState() {
30
+ fun invalidate() {
31
31
  clearStateNativeJsi()
32
32
  }
33
33
 
@@ -106,7 +106,7 @@ internal class OPSQLiteModule(context: ReactApplicationContext?) : ReactContextB
106
106
 
107
107
  override fun invalidate() {
108
108
  super.invalidate()
109
- OPSQLiteBridge.instance.clearState()
109
+ OPSQLiteBridge.instance.invalidate()
110
110
  }
111
111
 
112
112
  companion object {