@yeomessagingcom/react-native-yeofr 0.1.5 → 0.1.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.
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = "react-native-yeofr"
3
- s.version = "0.1.5" # npm package version
3
+ s.version = "0.1.7" # 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,34 +8,19 @@ Pod::Spec.new do |s|
8
8
  s.platform = :ios, "15.1"
9
9
  s.swift_version = "5.9"
10
10
 
11
- # Build the RN shim from local files
12
- s.source_files = "YEOFRModule.m", "YEOFRModule.swift"
11
+ # RN shim only
12
+ s.source_files = "ios/YEOFRModule.m", "ios/YEOFRModule.swift"
13
13
 
14
- # Download the binary xcframework (default to SPM 0.1.3; can override via env)
15
- bin_ver = ENV['YEOFR_BINARY_VERSION'] || "0.1.3"
16
- repo = "https://github.com/YEOMessaging/YEOFR-SPM"
17
- asset = "YEOFR.xcframework.zip"
18
- url = ENV['YEOFR_XCFRAMEWORK_URL'] || "#{repo}/releases/download/#{bin_ver}/#{asset}"
19
-
20
- s.prepare_command = <<-CMD
21
- set -e
22
- rm -rf Vendor && mkdir -p Vendor
23
- echo "YEOFR: downloading #{url}"
24
- if [ -n "$YEOFR_GITHUB_TOKEN" ]; then
25
- curl -fL -H "Authorization: Bearer $YEOFR_GITHUB_TOKEN" -o "#{asset}" "#{url}"
26
- else
27
- curl -fL -o "#{asset}" "#{url}"
28
- end
29
- if [ -n "$YEOFR_SHA256" ]; then
30
- echo "$YEOFR_SHA256 #{asset}" | shasum -a 256 -c -
31
- fi
32
- unzip -o "#{asset}" -d Vendor >/dev/null
33
- CMD
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 => "sha256:42311f41302ea706ccfa4b1db5a2d354bf3e1631a4172802f34cb8e9679b5da4"
18
+ }
34
19
 
35
- s.vendored_frameworks = "Vendor/YEOFR.xcframework"
20
+ s.vendored_frameworks = "YEOFR.xcframework"
36
21
  s.dependency "React-Core"
37
22
 
38
- # Device-only
23
+ # Device-only (exclude simulator slices)
39
24
  s.pod_target_xcconfig = {
40
25
  'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386 x86_64 arm64',
41
26
  'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeomessagingcom/react-native-yeofr",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "React Native iOS integration for YEO Face Recognition (device-only).",
5
5
  "main": "index.ts",
6
6
  "react-native": "index.ts",