@op-engineering/op-sqlite 14.0.4 → 14.1.1
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/build.gradle +20 -6
- package/cpp/DBHostObject.h +4 -0
- package/cpp/PreparedStatementHostObject.h +4 -0
- package/cpp/bridge.h +4 -0
- package/cpp/utils.h +4 -0
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -115,10 +115,9 @@ def reactNativeArchitectures() {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
android {
|
|
118
|
-
|
|
118
|
+
|
|
119
119
|
compileSdkVersion safeExtGet("compileSdkVersion", 35)
|
|
120
120
|
namespace "com.op.sqlite"
|
|
121
|
-
|
|
122
121
|
// Used to override the NDK path/version on internal CI or by allowing
|
|
123
122
|
// users to customize the NDK path/version from their root project (e.g. for M1 support)
|
|
124
123
|
if (rootProject.hasProperty("ndkPath")) {
|
|
@@ -130,6 +129,13 @@ android {
|
|
|
130
129
|
|
|
131
130
|
buildFeatures {
|
|
132
131
|
prefab true
|
|
132
|
+
prefabPublishing true
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
prefab {
|
|
136
|
+
"op-sqlite" {
|
|
137
|
+
headers "${project.buildDir}/headers/op-sqlite/"
|
|
138
|
+
}
|
|
133
139
|
}
|
|
134
140
|
|
|
135
141
|
defaultConfig {
|
|
@@ -137,7 +143,7 @@ android {
|
|
|
137
143
|
targetSdkVersion safeExtGet('targetSdkVersion', 35)
|
|
138
144
|
versionCode 1
|
|
139
145
|
versionName "1.0"
|
|
140
|
-
|
|
146
|
+
|
|
141
147
|
externalNativeBuild {
|
|
142
148
|
cmake {
|
|
143
149
|
if(useSQLCipher) {
|
|
@@ -179,7 +185,7 @@ android {
|
|
|
179
185
|
include "**/*.cpp", "**/*.h"
|
|
180
186
|
}
|
|
181
187
|
sourceFiles = fileTree(dir: destDir, include: ["**/*.cpp", "**/*.h"]).files.join(";")
|
|
182
|
-
tokenizersHeaderPath = "../c_sources/tokenizers.h"
|
|
188
|
+
tokenizersHeaderPath = "../c_sources/tokenizers.h"
|
|
183
189
|
}
|
|
184
190
|
|
|
185
191
|
cppFlags "-O2 -frtti -fexceptions -Wall -fstack-protector-all"
|
|
@@ -209,9 +215,8 @@ android {
|
|
|
209
215
|
"**/libreactnative.so",
|
|
210
216
|
]
|
|
211
217
|
}
|
|
212
|
-
|
|
213
218
|
}
|
|
214
|
-
|
|
219
|
+
|
|
215
220
|
compileOptions {
|
|
216
221
|
sourceCompatibility JavaVersion.VERSION_17
|
|
217
222
|
targetCompatibility JavaVersion.VERSION_17
|
|
@@ -248,6 +253,15 @@ dependencies {
|
|
|
248
253
|
}
|
|
249
254
|
}
|
|
250
255
|
|
|
256
|
+
task prepareHeaders(type: Copy) {
|
|
257
|
+
from('../cpp')
|
|
258
|
+
include "**/*.h"
|
|
259
|
+
into "${project.buildDir}/headers/op-sqlite/op-engineering_op-sqlite/"
|
|
260
|
+
includeEmptyDirs = false
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
preBuild.dependsOn(prepareHeaders)
|
|
264
|
+
|
|
251
265
|
// Resolves "LOCAL_SRC_FILES points to a missing file, Check that libfb.so exists or that its path is correct".
|
|
252
266
|
tasks.whenTaskAdded { task ->
|
|
253
267
|
if (task.name.contains("configureCMakeDebug")) {
|
package/cpp/DBHostObject.h
CHANGED
package/cpp/bridge.h
CHANGED
package/cpp/utils.h
CHANGED