@yeomessagingcom/react-native-yeofr 0.1.8 → 0.1.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.
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = "react-native-yeofr"
3
- s.version = "0.1.7" # keep this in sync with your npm version
3
+ s.version = "0.1.10" # keep this in sync with your npm version
4
4
  s.summary = "React Native iOS integration for YEO Face Recognition (device-only)."
5
5
  s.homepage = "https://github.com/yeomessaging/react-native-yeofr"
6
6
  s.license = { :type => "Commercial", :file => "../LICENSE" }
@@ -8,16 +8,33 @@ Pod::Spec.new do |s|
8
8
  s.platform = :ios, "15.1"
9
9
  s.swift_version = "5.9"
10
10
 
11
- # RN shim only
11
+ # RN shim source files live in the repo (autolink-friendly)
12
+ s.source = { :git => "https://github.com/yeomessaging/react-native-yeofr.git",
13
+ :tag => s.version.to_s }
14
+
15
+ # Paths are from the repo root after CocoaPods clones it
12
16
  s.source_files = "ios/YEOFRModule.m", "ios/YEOFRModule.swift"
13
17
 
14
- # Public SPM release zip (for now)
15
- s.source = {
16
- :http => "https://github.com/YEOMessaging/YEOFR-SPM/releases/download/0.1.3/YEOFR.xcframework.zip",
17
- :sha256 => "42311f41302ea706ccfa4b1db5a2d354bf3e1631a4172802f34cb8e9679b5da4"
18
- }
18
+ # Download the binary xcframework (public SPM zip for now)
19
+ bin_ver = ENV['YEOFR_BINARY_VERSION'] || "0.1.3"
20
+ repo = "https://github.com/YEOMessaging/YEOFR-SPM"
21
+ asset = "YEOFR.xcframework.zip"
22
+ url = ENV['YEOFR_XCFRAMEWORK_URL'] || "#{repo}/releases/download/#{bin_ver}/#{asset}"
23
+ sha256 = ENV['YEOFR_SHA256'] || "42311f41302ea706ccfa4b1db5a2d354bf3e1631a4172802f34cb8e9679b5da4"
24
+
25
+ s.prepare_command = <<-CMD
26
+ set -e
27
+ cd ios
28
+ rm -rf Vendor && mkdir -p Vendor
29
+ echo "YEOFR: downloading #{url}"
30
+ curl -fL -o "#{asset}" "#{url}"
31
+ echo "#{sha256} #{asset}" | shasum -a 256 -c -
32
+ unzip -o "#{asset}" -d Vendor >/dev/null
33
+ CMD
34
+
35
+ # Vendored framework lives under ios/ after prepare_command
36
+ s.vendored_frameworks = "ios/Vendor/YEOFR.xcframework"
19
37
 
20
- s.vendored_frameworks = "YEOFR.xcframework"
21
38
  s.dependency "React-Core"
22
39
 
23
40
  # Device-only (exclude simulator slices)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeomessagingcom/react-native-yeofr",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "React Native iOS integration for YEO Face Recognition (device-only).",
5
5
  "main": "index.ts",
6
6
  "react-native": "index.ts",