@yeomessagingcom/react-native-yeofr 0.1.6 → 0.1.8
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/ios/react-native-yeofr.podspec +10 -25
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Pod::Spec.new do |s|
|
|
2
2
|
s.name = "react-native-yeofr"
|
|
3
|
-
s.version = "0.1.
|
|
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
|
-
#
|
|
12
|
-
s.
|
|
11
|
+
# RN shim only
|
|
12
|
+
s.source_files = "ios/YEOFRModule.m", "ios/YEOFRModule.swift"
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
url = ENV['YEOFR_XCFRAMEWORK_URL'] || "#{repo}/releases/download/#{bin_ver}/#{asset}"
|
|
20
|
-
|
|
21
|
-
s.prepare_command = <<-CMD
|
|
22
|
-
set -e
|
|
23
|
-
rm -rf Vendor && mkdir -p Vendor
|
|
24
|
-
echo "YEOFR: downloading #{url}"
|
|
25
|
-
if [ -n "$YEOFR_GITHUB_TOKEN" ]; then
|
|
26
|
-
curl -fL -H "Authorization: Bearer $YEOFR_GITHUB_TOKEN" -o "#{asset}" "#{url}"
|
|
27
|
-
else
|
|
28
|
-
curl -fL -o "#{asset}" "#{url}"
|
|
29
|
-
end
|
|
30
|
-
if [ -n "$YEOFR_SHA256" ]; then
|
|
31
|
-
echo "$YEOFR_SHA256 #{asset}" | shasum -a 256 -c -
|
|
32
|
-
fi
|
|
33
|
-
unzip -o "#{asset}" -d Vendor >/dev/null
|
|
34
|
-
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 => "42311f41302ea706ccfa4b1db5a2d354bf3e1631a4172802f34cb8e9679b5da4"
|
|
18
|
+
}
|
|
35
19
|
|
|
36
|
-
s.vendored_frameworks = "
|
|
20
|
+
s.vendored_frameworks = "YEOFR.xcframework"
|
|
37
21
|
s.dependency "React-Core"
|
|
38
22
|
|
|
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'
|