@taladb/react-native 0.11.5 → 0.11.7

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.
@@ -43,3 +43,15 @@ target_link_libraries(taladb_jsi
43
43
  android
44
44
  log
45
45
  )
46
+
47
+ # ---------------------------------------------------------------------------
48
+ # 16 KB page size (Android 15+)
49
+ #
50
+ # A device with 16 KB pages cannot load a shared library whose LOAD segments are
51
+ # aligned to 4 KB, and Google Play requires 16 KB support of every app targeting
52
+ # Android 15 or later. NDK r28+ links with a 16 KB max-page-size by default, but
53
+ # r27 and earlier do not — so set it here rather than inheriting whatever the
54
+ # consuming app's NDK happens to default to. The prebuilt Rust libraries are
55
+ # already aligned; this is the one object we link ourselves.
56
+ # ---------------------------------------------------------------------------
57
+ target_link_options(taladb_jsi PRIVATE "-Wl,-z,max-page-size=16384")
@@ -17,7 +17,11 @@ react {
17
17
 
18
18
  android {
19
19
  compileSdkVersion 36
20
- ndkVersion "27.1.12297006"
20
+ // Honour the consuming app's NDK when it declares one — the React Native
21
+ // template sets `ext.ndkVersion` in its root build.gradle. Pinning this
22
+ // unconditionally forced every consumer onto r27 regardless of what the rest
23
+ // of their app was built with.
24
+ ndkVersion rootProject.ext.has("ndkVersion") ? rootProject.ext.get("ndkVersion") : "27.1.12297006"
21
25
  namespace "com.taladb"
22
26
 
23
27
  buildFeatures {
@@ -1,3 +1,15 @@
1
1
  <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
- <uses-permission android:name="android.permission.INTERNET" />
2
+ <!--
3
+ Deliberately empty.
4
+
5
+ This manifest used to declare android.permission.INTERNET, which the
6
+ manifest merger then granted to every application embedding the binding.
7
+ TalaDB is an embedded local database: it opens no socket, and the sync
8
+ feature that once justified the permission was removed in 0.11.0.
9
+
10
+ A library that silently adds INTERNET to its consumers is a problem for
11
+ any app whose selling point is that it works offline — the permission is
12
+ visible on the store listing and in the APK, and the app author cannot
13
+ explain it. Consumers who do need it can declare it themselves.
14
+ -->
3
15
  </manifest>
@@ -6,38 +6,38 @@
6
6
  <array>
7
7
  <dict>
8
8
  <key>BinaryPath</key>
9
- <string>libtaladb_ffi.a</string>
9
+ <string>libtaladb_ffi_sim.a</string>
10
10
  <key>HeadersPath</key>
11
11
  <string>Headers</string>
12
12
  <key>LibraryIdentifier</key>
13
- <string>ios-arm64</string>
13
+ <string>ios-arm64_x86_64-simulator</string>
14
14
  <key>LibraryPath</key>
15
- <string>libtaladb_ffi.a</string>
15
+ <string>libtaladb_ffi_sim.a</string>
16
16
  <key>SupportedArchitectures</key>
17
17
  <array>
18
18
  <string>arm64</string>
19
+ <string>x86_64</string>
19
20
  </array>
20
21
  <key>SupportedPlatform</key>
21
22
  <string>ios</string>
23
+ <key>SupportedPlatformVariant</key>
24
+ <string>simulator</string>
22
25
  </dict>
23
26
  <dict>
24
27
  <key>BinaryPath</key>
25
- <string>libtaladb_ffi_sim.a</string>
28
+ <string>libtaladb_ffi.a</string>
26
29
  <key>HeadersPath</key>
27
30
  <string>Headers</string>
28
31
  <key>LibraryIdentifier</key>
29
- <string>ios-arm64_x86_64-simulator</string>
32
+ <string>ios-arm64</string>
30
33
  <key>LibraryPath</key>
31
- <string>libtaladb_ffi_sim.a</string>
34
+ <string>libtaladb_ffi.a</string>
32
35
  <key>SupportedArchitectures</key>
33
36
  <array>
34
37
  <string>arm64</string>
35
- <string>x86_64</string>
36
38
  </array>
37
39
  <key>SupportedPlatform</key>
38
40
  <string>ios</string>
39
- <key>SupportedPlatformVariant</key>
40
- <string>simulator</string>
41
41
  </dict>
42
42
  </array>
43
43
  <key>CFBundlePackageType</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taladb/react-native",
3
- "version": "0.11.5",
3
+ "version": "0.11.7",
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",
@@ -49,7 +49,7 @@
49
49
  "react-native": "^0.83.0"
50
50
  },
51
51
  "dependencies": {
52
- "taladb": "0.11.5"
52
+ "taladb": "0.11.7"
53
53
  },
54
54
  "scripts": {
55
55
  "typecheck": "tsc --noEmit",