node-sword-interface 1.0.117 → 1.0.119

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.117",
3
+ "version": "1.0.119",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",
@@ -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
@@ -224,15 +224,15 @@ vector<string> RepositoryInterface::getRepoNames()
224
224
  if (source != "STEP Bible") {
225
225
  #endif
226
226
 
227
- #if TARGET_OS_IOS
228
- // eBible.org repository is excluded on iOS / iPadOS, because we could not reliably
227
+ #if TARGET_OS_IOS || defined(__ANDROID__)
228
+ // eBible.org repository is excluded on iOS / iPadOS and Android, because we could not reliably
229
229
  // get it to a working state on these platforms (as of 2026-04-03).
230
230
  if (source != "eBible.org") {
231
231
  #endif
232
232
 
233
233
  sourceNames.push_back(source);
234
234
 
235
- #if TARGET_OS_IOS
235
+ #if TARGET_OS_IOS || defined(__ANDROID__)
236
236
  }
237
237
  #endif
238
238