@op-engineering/op-sqlite 9.2.4 → 9.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.
@@ -73,39 +73,72 @@ find_package(fbjni REQUIRED CONFIG)
73
73
  find_library(LOG_LIB log)
74
74
 
75
75
  if (USE_SQLCIPHER)
76
- target_link_libraries(
77
- ${PACKAGE_NAME}
78
- ${LOG_LIB}
79
- fbjni::fbjni
80
- ReactAndroid::jsi
81
- ReactAndroid::turbomodulejsijni
82
- ReactAndroid::react_nativemodule_core
83
- android
84
- openssl::crypto
85
- )
76
+ if (ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
77
+ target_link_libraries(
78
+ ${PACKAGE_NAME}
79
+ ${LOG_LIB}
80
+ ReactAndroid::reactnative
81
+ ReactAndroid::jsi
82
+ fbjni::fbjni
83
+ openssl::crypto
84
+ )
85
+ else()
86
+ target_link_libraries(
87
+ ${PACKAGE_NAME}
88
+ ${LOG_LIB}
89
+ fbjni::fbjni
90
+ ReactAndroid::jsi
91
+ ReactAndroid::turbomodulejsijni
92
+ ReactAndroid::react_nativemodule_core
93
+ android
94
+ openssl::crypto
95
+ )
96
+ endif()
86
97
  elseif (USE_LIBSQL)
87
98
  cmake_path(SET LIBSQL ${CMAKE_CURRENT_SOURCE_DIR}/jniLibs/${ANDROID_ABI}/libsql_experimental.a NORMALIZE)
88
99
  add_library(libsql STATIC IMPORTED)
89
100
  set_target_properties(libsql PROPERTIES IMPORTED_LOCATION ${LIBSQL})
90
101
 
91
- target_link_libraries(
92
- ${PACKAGE_NAME}
93
- ${LOG_LIB}
94
- fbjni::fbjni
95
- ReactAndroid::jsi
96
- ReactAndroid::turbomodulejsijni
97
- ReactAndroid::react_nativemodule_core
98
- android
99
- libsql
100
- )
102
+ if (ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
103
+ target_link_libraries(
104
+ ${PACKAGE_NAME}
105
+ ${LOG_LIB}
106
+ ReactAndroid::reactnative
107
+ ReactAndroid::jsi
108
+ fbjni::fbjni
109
+ libsql
110
+ )
111
+ else()
112
+ target_link_libraries(
113
+ ${PACKAGE_NAME}
114
+ ${LOG_LIB}
115
+ fbjni::fbjni
116
+ ReactAndroid::jsi
117
+ ReactAndroid::turbomodulejsijni
118
+ ReactAndroid::react_nativemodule_core
119
+ android
120
+ libsql
121
+ )
122
+ endif()
101
123
  else ()
102
- target_link_libraries(
103
- ${PACKAGE_NAME}
104
- ${LOG_LIB}
105
- fbjni::fbjni
106
- ReactAndroid::jsi
107
- ReactAndroid::turbomodulejsijni
108
- ReactAndroid::react_nativemodule_core
109
- android
110
- )
124
+ # if (REACTNATIVE_MERGED_SO)
125
+ if (ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
126
+ target_link_libraries(
127
+ ${PACKAGE_NAME}
128
+ ${LOG_LIB}
129
+ ReactAndroid::reactnative
130
+ ReactAndroid::jsi
131
+ fbjni::fbjni
132
+ )
133
+ else()
134
+ target_link_libraries(
135
+ ${PACKAGE_NAME}
136
+ ${LOG_LIB}
137
+ fbjni::fbjni
138
+ ReactAndroid::jsi
139
+ ReactAndroid::turbomodulejsijni
140
+ ReactAndroid::react_nativemodule_core
141
+ android
142
+ )
143
+ endif()
111
144
  endif()
@@ -111,8 +111,8 @@ android {
111
111
  }
112
112
 
113
113
  defaultConfig {
114
- minSdkVersion safeExtGet("minSdkVersion", 23)
115
- targetSdkVersion safeExtGet('targetSdkVersion', 34)
114
+ minSdkVersion safeExtGet("minSdkVersion", 24)
115
+ targetSdkVersion safeExtGet('targetSdkVersion', 35)
116
116
  versionCode 1
117
117
  versionName "1.0"
118
118
 
@@ -164,7 +164,8 @@ android {
164
164
  "**/libreact_nativemodule_core.so",
165
165
  "**/libturbomodulejsijni.so",
166
166
  "**/libc++_shared.so",
167
- "**/libfbjni.so"
167
+ "**/libfbjni.so",
168
+ "**/libreactnative.so",
168
169
  ]
169
170
  }
170
171
 
@@ -227,4 +228,4 @@ if (isNewArchitectureEnabled()) {
227
228
  libraryName = "opsqlite"
228
229
  codegenJavaPackageName = "com.op.sqlite.example"
229
230
  }
230
- }
231
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@op-engineering/op-sqlite",
3
- "version": "9.2.4",
3
+ "version": "9.2.6",
4
4
  "description": "Next generation SQLite for React Native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -47,8 +47,8 @@
47
47
  "devDependencies": {
48
48
  "clang-format": "^1.8.0",
49
49
  "lefthook": "^1.5.5",
50
- "react": "18.2.0",
51
- "react-native": "0.74.0",
50
+ "react": "18.3.1",
51
+ "react-native": "0.76.0",
52
52
  "react-native-builder-bob": "^0.23.2",
53
53
  "turbo": "^1.12.4",
54
54
  "typescript": "5.0.4"