omnipay-reactnative-sdk 1.2.3-beta.5 → 1.2.3-beta.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.
|
@@ -20,6 +20,7 @@ import com.facebook.react.bridge.ReadableArray;
|
|
|
20
20
|
import com.facebook.react.bridge.ReadableMap;
|
|
21
21
|
import com.facebook.react.modules.core.DeviceEventManagerModule;
|
|
22
22
|
import com.facebook.react.bridge.WritableMap;
|
|
23
|
+
import com.mrousavy.camera.frameprocessor.FrameProcessorPluginRegistry;
|
|
23
24
|
|
|
24
25
|
public class OmnipayActivityModule extends ReactContextBaseJavaModule {
|
|
25
26
|
private static final String ERROR = "ERROR";
|
|
@@ -38,6 +39,13 @@ public class OmnipayActivityModule extends ReactContextBaseJavaModule {
|
|
|
38
39
|
super(reactContext);
|
|
39
40
|
this.reactContext = reactContext;
|
|
40
41
|
this.reactContext.addActivityEventListener(mActivityEventListener);
|
|
42
|
+
|
|
43
|
+
// Ensure frame processor plugin is registered
|
|
44
|
+
try {
|
|
45
|
+
FrameProcessorPluginRegistry.addFrameProcessorPlugin("detectFaces", FaceVerificationFrameProcessor::new);
|
|
46
|
+
} catch (Exception e) {
|
|
47
|
+
e.printStackTrace();
|
|
48
|
+
}
|
|
41
49
|
}
|
|
42
50
|
|
|
43
51
|
@Override
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
#import "omnipay_reactnative_sdk-Swift.h"
|
|
5
|
-
|
|
6
|
-
VISION_EXPORT_SWIFT_FRAME_PROCESSOR(FaceVerificationFrameProcessor, detectFaces)
|
|
1
|
+
// Frame processor registration is now handled in OmnipayReactnativeSdk.m
|
|
2
|
+
// This file is kept for potential future use
|
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
#import <React/RCTBridgeModule.h>
|
|
2
2
|
|
|
3
|
+
// Import the frame processor plugin registration
|
|
4
|
+
#if __has_include("VisionCamera/FrameProcessorPlugin.h")
|
|
5
|
+
#import <VisionCamera/FrameProcessorPlugin.h>
|
|
6
|
+
#import <VisionCamera/FrameProcessorPluginRegistry.h>
|
|
7
|
+
|
|
8
|
+
#if __has_include("omnipay_reactnative_sdk/omnipay_reactnative_sdk-Swift.h")
|
|
9
|
+
#import "omnipay_reactnative_sdk/omnipay_reactnative_sdk-Swift.h"
|
|
10
|
+
#else
|
|
11
|
+
#import "omnipay_reactnative_sdk-Swift.h"
|
|
12
|
+
#endif
|
|
13
|
+
#endif
|
|
14
|
+
|
|
3
15
|
@interface RCT_EXTERN_MODULE(OmnipayReactnativeSdk, NSObject)
|
|
4
16
|
|
|
5
|
-
@end
|
|
17
|
+
@end
|
|
18
|
+
|
|
19
|
+
// Ensure frame processor is registered when module loads
|
|
20
|
+
#if __has_include("VisionCamera/FrameProcessorPlugin.h")
|
|
21
|
+
@implementation OmnipayReactnativeSdk
|
|
22
|
+
|
|
23
|
+
+ (void)load {
|
|
24
|
+
[FrameProcessorPluginRegistry addFrameProcessorPlugin:@"detectFaces"
|
|
25
|
+
withInitializer:^FrameProcessorPlugin*(VisionCameraProxyHolder* proxy, NSDictionary* options) {
|
|
26
|
+
return [[FaceVerificationFrameProcessor alloc] initWithProxy:proxy options:options];
|
|
27
|
+
}];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@end
|
|
31
|
+
#endif
|
|
@@ -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 = "
|
|
6
|
+
s.name = "omnipay_reactnative_sdk"
|
|
7
7
|
s.version = package["version"]
|
|
8
8
|
s.summary = package["description"]
|
|
9
9
|
s.description = <<-DESC
|
|
@@ -17,11 +17,14 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
s.source = { :git => "https://github.com/engrtitus/omnipay-reactnative-sdk.git", :tag => "#{s.version}" }
|
|
18
18
|
|
|
19
19
|
s.source_files = "ios/**/*.{h,c,cc,cpp,m,mm,swift}"
|
|
20
|
-
s.public_header_files = "ios/*.h"
|
|
20
|
+
s.public_header_files = "ios/*.h"
|
|
21
21
|
s.requires_arc = true
|
|
22
22
|
|
|
23
|
-
#
|
|
24
|
-
s.
|
|
23
|
+
# Standard React Native SDK configuration
|
|
24
|
+
s.pod_target_xcconfig = {
|
|
25
|
+
'DEFINES_MODULE' => 'YES',
|
|
26
|
+
'SWIFT_COMPILATION_MODE' => 'wholemodule'
|
|
27
|
+
}
|
|
25
28
|
|
|
26
29
|
# Essential dependencies only
|
|
27
30
|
s.dependency "React-Core"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnipay-reactnative-sdk",
|
|
3
|
-
"version": "1.2.3-beta.
|
|
3
|
+
"version": "1.2.3-beta.7",
|
|
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": "./
|
|
176
|
+
"podspecPath": "./omnipay_reactnative_sdk.podspec"
|
|
177
177
|
}
|
|
178
178
|
},
|
|
179
179
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|