node-sword-interface 1.0.116 → 1.0.118

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/binding.gyp CHANGED
@@ -100,12 +100,6 @@
100
100
  "conditions":[
101
101
  ["is_ios==1", {
102
102
  "type": "shared_library",
103
- # Exclude unzip sources from iOS build, because these symbols otherwise
104
- # get duplicated with the unzip symbols in the static libsword.a.
105
- "sources!": [
106
- "src/lib/unzip/unzip.c",
107
- "src/lib/unzip/ioapi.c"
108
- ],
109
103
  'include_dirs': [
110
104
  "<(module_root_dir)/src/sword_backend",
111
105
  "<(module_root_dir)/src/lib",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-sword-interface",
3
- "version": "1.0.116",
3
+ "version": "1.0.118",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",
@@ -31,7 +31,7 @@ fi
31
31
 
32
32
  # CLONE SWORD
33
33
  git clone https://github.com/ezra-bible-app/crosswire-sword-mirror sword
34
- git -C sword checkout 1.9.0-2026-04-03
34
+ git -C sword checkout 1.9.0-2025-12-30
35
35
  patch --batch --forward -d sword -p 0 < patch/sword_globconf.patch
36
36
 
37
37
  # PATCHES
@@ -133,3 +133,12 @@ else
133
133
  fi
134
134
 
135
135
  make -j8 sword_static
136
+
137
+ # For iOS: remove SWORD's bundled minizip objects from libsword.a to avoid
138
+ # duplicate symbols when -all_load is used in the dylib link step.
139
+ if [ "$1" = "--ios" ] ; then
140
+ echo "-- Stripping SWORD's bundled minizip objects from libsword.a"
141
+ ar -t libsword.a | grep -iE 'unzip|ioapi' | while IFS= read -r obj; do
142
+ ar -d libsword.a "$obj"
143
+ done
144
+ fi
@@ -29,6 +29,10 @@
29
29
  #include <fstream>
30
30
  #endif
31
31
 
32
+ #if defined(__APPLE__)
33
+ #include <TargetConditionals.h>
34
+ #endif
35
+
32
36
  #include <regex>
33
37
 
34
38
  // Own includes
@@ -220,8 +224,18 @@ vector<string> RepositoryInterface::getRepoNames()
220
224
  if (source != "STEP Bible") {
221
225
  #endif
222
226
 
227
+ #if TARGET_OS_IOS
228
+ // eBible.org repository is excluded on iOS / iPadOS, because we could not reliably
229
+ // get it to a working state on these platforms (as of 2026-04-03).
230
+ if (source != "eBible.org") {
231
+ #endif
232
+
223
233
  sourceNames.push_back(source);
224
234
 
235
+ #if TARGET_OS_IOS
236
+ }
237
+ #endif
238
+
225
239
  #if defined(__ANDROID__) || defined(__APPLE__)
226
240
  }
227
241
  #endif