@taladb/react-native 0.7.8 → 0.7.10

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.
@@ -11,22 +11,18 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
11
11
  # Root of the taladb-react-native package
12
12
  get_filename_component(PACKAGE_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/.." ABSOLUTE)
13
13
 
14
- # Pre-built Rust static library (built by cargo ndk, copied by build.gradle)
15
- set(TALADB_FFI_LIB
16
- "${CMAKE_CURRENT_SOURCE_DIR}/src/main/jniLibs/${ANDROID_ABI}/libtaladb_ffi.so")
17
-
18
14
  # ---------------------------------------------------------------------------
19
15
  # React Native JSI headers
20
- # React Native ships jsi/ headers inside node_modules — resolve from package root.
21
16
  # ---------------------------------------------------------------------------
22
17
  find_package(ReactAndroid REQUIRED CONFIG)
23
18
 
24
19
  # ---------------------------------------------------------------------------
25
- # taladb_ffi shared library (Rust pre-built, imported target)
20
+ # taladb_ffi shared library (Rust pre-built)
26
21
  # ---------------------------------------------------------------------------
27
- add_library(taladb_ffi SHARED IMPORTED)
28
- set_target_properties(taladb_ffi PROPERTIES
29
- IMPORTED_LOCATION "${TALADB_FFI_LIB}")
22
+
23
+ # Add the directory containing libtaladb_ffi.so to the linker search path.
24
+ # This ensures we link by name (soname) rather than embedding a relative path.
25
+ link_directories("${CMAKE_CURRENT_SOURCE_DIR}/src/main/jniLibs/${ANDROID_ABI}")
30
26
 
31
27
  # ---------------------------------------------------------------------------
32
28
  # taladb_jsi — C++ JSI HostObject, compiled into a thin shared library that
@@ -6,6 +6,7 @@ buildscript {
6
6
  }
7
7
 
8
8
  apply plugin: "com.android.library"
9
+ apply plugin: "kotlin-android"
9
10
  apply plugin: "com.facebook.react"
10
11
 
11
12
  react {
@@ -63,4 +64,5 @@ repositories {
63
64
 
64
65
  dependencies {
65
66
  implementation "com.facebook.react:react-android"
67
+ implementation "org.jetbrains.kotlin:kotlin-stdlib:2.1.20"
66
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taladb/react-native",
3
- "version": "0.7.8",
3
+ "version": "0.7.10",
4
4
  "description": "TalaDB React Native module — document and vector database via JSI HostObject",
5
5
  "main": "src/index",
6
6
  "types": "src/index.tsx",