omnipay-reactnative-sdk 1.2.3-beta.12 → 1.2.3-beta.3

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,16 +1,6 @@
1
1
  #import <VisionCamera/FrameProcessorPlugin.h>
2
2
  #import <VisionCamera/FrameProcessorPluginRegistry.h>
3
- #import "omnipay_reactnative_sdk-Swift.h"
4
-
5
- @interface FaceVerificationFrameProcessorPlugin : NSObject
6
- @end
7
3
 
8
- @implementation FaceVerificationFrameProcessorPlugin
9
-
10
- + (void)load {
11
- [FrameProcessorPluginRegistry addFrameProcessorPlugin:@"detectFaces" withInitializer:^FrameProcessorPlugin*(VisionCameraProxyHolder* proxy, NSDictionary* options) {
12
- return [[FaceVerificationFrameProcessor alloc] initWithProxy:proxy options:options];
13
- }];
14
- }
4
+ #import "omnipay_reactnative_sdk-Swift.h"
15
5
 
16
- @end
6
+ VISION_EXPORT_SWIFT_FRAME_PROCESSOR(FaceVerificationFrameProcessor, detectFaces)
@@ -0,0 +1,8 @@
1
+ //
2
+ // Use this file to import your target's public headers that you would like to expose to Swift.
3
+ //
4
+
5
+ #import <React/RCTBridgeModule.h>
6
+ #import <VisionCamera/FrameProcessorPlugin.h>
7
+ #import <VisionCamera/FrameProcessorPluginRegistry.h>
8
+ #import <VisionCamera/Frame.h>
@@ -3,7 +3,7 @@ require "json"
3
3
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
4
 
5
5
  Pod::Spec.new do |s|
6
- s.name = "omnipay_reactnative_sdk"
6
+ s.name = "omnipay-reactnative-sdk"
7
7
  s.version = package["version"]
8
8
  s.summary = package["description"]
9
9
  s.description = <<-DESC
@@ -19,16 +19,22 @@ Pod::Spec.new do |s|
19
19
  s.source_files = "ios/**/*.{h,c,cc,cpp,m,mm,swift}"
20
20
  s.requires_arc = true
21
21
 
22
- # Standard React Native SDK configuration
23
- s.swift_version = '5.0'
24
-
25
- # Essential dependencies only
22
+ # React Native and Vision Camera dependencies
26
23
  s.dependency "React-Core"
27
24
  s.dependency "VisionCamera"
28
25
 
29
26
  # iOS Vision Framework for face detection
30
27
  s.framework = "Vision"
31
28
 
29
+ # Install all React Native dependencies listed in dependencies and peerDependencies:
30
+ # See https://github.com/react-native-community/cli/blob/master/docs/dependencies.md#linking-dependencies-with-podspec
31
+
32
+ s.dependency "React"
33
+ s.dependency "React-RCTText"
34
+ s.dependency "React-RCTImage"
35
+ s.dependency "React-RCTNetwork"
36
+ # React-RCTWebSocket was removed in newer React Native versions
37
+
32
38
  # New Architecture support
33
39
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
34
40
  s.compiler_flags = "-DRCT_NEW_ARCH_ENABLED=1"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnipay-reactnative-sdk",
3
- "version": "1.2.3-beta.12",
3
+ "version": "1.2.3-beta.3",
4
4
  "description": "Omnipay react native sdk",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -173,7 +173,7 @@
173
173
  "packageImportPath": "import com.omniretail.omnipay.OmnipayActivityPackage;"
174
174
  },
175
175
  "ios": {
176
- "podspecPath": "./omnipay_reactnative_sdk.podspec"
176
+ "podspecPath": "./omnipay-reactnative-sdk.podspec"
177
177
  }
178
178
  },
179
179
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
@@ -1,6 +0,0 @@
1
- #ifndef omnipay_reactnative_sdk_h
2
- #define omnipay_reactnative_sdk_h
3
-
4
- #import <React/RCTBridgeModule.h>
5
-
6
- #endif /* omnipay_reactnative_sdk_h */