react-native-okaycam 3.0.2 → 3.0.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.
@@ -43,8 +43,8 @@ repositories {
43
43
  }
44
44
 
45
45
  dependencies {
46
- implementation "com.facebook.react:react-android"
47
- implementation('com.innov8tif.okaycam:OkayCam:3.0.3@aar') {
46
+ compileOnly "com.facebook.react:react-android"
47
+ implementation('com.innov8tif.okaycam:OkayCam:3.0.6@aar') {
48
48
  transitive = true
49
49
  exclude group: "junit", module: "junit"
50
50
  exclude group: "org.hamcrest", module: "hamcrest-core"
@@ -1,3 +1,70 @@
1
+ ##---------------Begin: proguard configuration for Gson ----------
2
+ # Gson uses generic type information stored in a class file when working with
3
+ #fields. Proguard removes such information by default, so configure it to keep
4
+ #all of it.
5
+ -keepattributes Signature
6
+
7
+ # For using GSON @Expose annotation
8
+ -keepattributes *Annotation*
9
+
10
+ # Gson specific classes
11
+ -keep class sun.misc.Unsafe { *; }
12
+ #-keep class com.google.gson.stream.** { *; }
13
+
14
+ # Application classes that will be serialized/deserialized over Gson
15
+ -keep class com.xendity.util.models.** { *; }
16
+ -keep class com.xendity.util.R$drawable { *; }
17
+ -keep class com.xendity.util.R$raw { *; }
18
+ -keep class com.xendity.util.R$style { *; }
19
+ -keep class com.xendity.util.R { *; }
20
+
21
+ ##---------------End: proguard configuration for Gson ----------
22
+
23
+ # region XScannerConfig
24
+ -keep class com.xendity.util.models.XScannerConfig {
25
+ *;
26
+ }
27
+ -keepclassmembers class com.xendity.util.models.XScannerConfig {
28
+ *;
29
+ }
30
+ -keepnames class com.xendity.util.models.XScannerConfig {
31
+ *;
32
+ }
33
+ -keepclassmembernames class com.xendity.util.models.XScannerConfig {
34
+ *;
35
+ }
36
+ # endregion
37
+
38
+ # region XenUtil
39
+ -keep class com.xendity.util.XenUtil {
40
+ public static *;
41
+ }
42
+ -keepclassmembers class com.xendity.util.XenUtil {
43
+ public static *;
44
+ }
45
+ -keepnames class com.xendity.util.XenUtil {
46
+ public static *;
47
+ }
48
+ -keepclassmembernames class com.xendity.util.XenUtil {
49
+ public static *;
50
+ }
51
+ # endregion
52
+
53
+ # region XenLoadingUtil
54
+ -keep class com.xendity.util.misc.XenLoadingUtil {
55
+ *;
56
+ }
57
+ -keepclassmembers class com.xendity.util.misc.XenLoadingUtil {
58
+ *;
59
+ }
60
+ -keepnames class com.xendity.util.misc.XenLoadingUtil {
61
+ *;
62
+ }
63
+ -keepclassmembernames class com.xendity.util.misc.XenLoadingUtil {
64
+ *;
65
+ }
66
+ # endregion
67
+
1
68
  # This is a configuration file for ProGuard.
2
69
  # http://proguard.sourceforge.net/index.html#manual/usage.html
3
70
  #
@@ -118,6 +185,7 @@
118
185
  -keepclassmembers class * extends com.google.protobuf.GeneratedMessageLite { *; }
119
186
  -keep class com.google.common.flogger.** { *; }
120
187
 
188
+
121
189
  # These classes are duplicated between android.jar and org.apache.http.legacy.jar.
122
190
  -dontnote org.apache.http.**
123
191
  -dontnote android.net.http.**
@@ -130,3 +198,19 @@
130
198
  -dontwarn com.google.errorprone.annotations.CanIgnoreReturnValue
131
199
  -dontwarn com.google.errorprone.annotations.CheckReturnValue
132
200
  -dontwarn com.google.errorprone.annotations.MustBeClosed
201
+
202
+ # Preserve MediaPipe task vision classes
203
+ -keep class com.google.mediapipe.tasks.** { *; }
204
+
205
+ # Preserve protocol buffer internals
206
+ -keep class com.google.protobuf.** { *; }
207
+
208
+ # Specifically preserve fields for generated proto messages
209
+ # MediaPipe needs these fields (like length_) for reflection
210
+ -keepclassmembers class * extends com.google.protobuf.GeneratedMessageLite {
211
+ <fields>;
212
+ }
213
+
214
+ # Ignore warnings
215
+ -dontwarn com.google.mediapipe.**
216
+ -dontwarn com.google.protobuf.**
@@ -399,9 +399,6 @@ class RNOkayCam: NSObject {
399
399
  case .cameraPermission:
400
400
  reject("camera permission denied", "camera permission denied", nil)
401
401
  return
402
- case .failedToCreateIADBundle:
403
- reject("failed to create IAD bundle", "failed to create IAD bundle", nil)
404
- return
405
402
  @unknown default:
406
403
  reject("no error", "no error", nil)
407
404
  return
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-okaycam",
3
3
  "title": "React Native OkayCam",
4
- "version": "3.0.2",
4
+ "version": "3.0.3",
5
5
  "description": "React-Native version of OkayCam",
6
6
  "main": "index.ts",
7
7
  "files": [
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
10
10
  s.homepage = "https://gitlab.com/innov8tif-ekyc-product/okaycam/mobile/react-native-okaycam.git"
11
11
  s.license = "MIT"
12
12
  s.authors = { "Innov8tif" => "ekyc.team@innov8tif.com" }
13
- s.platforms = { :ios => "15.0" }
13
+ s.platforms = { :ios => "15.6" }
14
14
  s.source = { :git => "https://gitlab.com/innov8tif-ekyc-product/okaycam/mobile/react-native-okaycam.git", :tag => "#{s.version}" }
15
15
 
16
16
  s.source_files = "ios/**/*.{h,m,swift}"
@@ -26,7 +26,7 @@ Pod::Spec.new do |s|
26
26
  s.dependency "React-RCTFabric"
27
27
 
28
28
  # OkayCam CocoaPod dependency
29
- s.dependency "OkayCam", "3.0.5"
29
+ s.dependency "OkayCam", "3.0.12"
30
30
  s.dependency "CryptoSwift", "1.8.2"
31
31
 
32
32
  s.pod_target_xcconfig = {
package/setup_podfile.js CHANGED
@@ -50,7 +50,7 @@ post_install do |installer|
50
50
  script = <<~SCRIPT
51
51
  echo "Re-signing embedded frameworks..."
52
52
  set -e
53
- APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"
53
+ APP_PATH="\${TARGET_BUILD_DIR}/\${WRAPPER_NAME}"
54
54
  find "$APP_PATH/Frameworks" -type d -name "*.framework" | while read framework
55
55
  do
56
56
  echo "Re-signing $framework"
@@ -67,7 +67,7 @@ end
67
67
 
68
68
  if (podfile.includes("post_install do |installer|")) {
69
69
  console.log(
70
- "🔧 Detected existing post_install block — injecting after react_native_post_install"
70
+ "🔧 Detected existing post_install block — injecting after react_native_post_install",
71
71
  );
72
72
 
73
73
  const innerHook = `
@@ -80,7 +80,7 @@ if (podfile.includes("post_install do |installer|")) {
80
80
  script = <<~SCRIPT
81
81
  echo "Re-signing embedded frameworks..."
82
82
  set -e
83
- APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"
83
+ APP_PATH="\${TARGET_BUILD_DIR}/\${WRAPPER_NAME}"
84
84
  find "$APP_PATH/Frameworks" -type d -name "*.framework" | while read framework
85
85
  do
86
86
  echo "Re-signing $framework"
@@ -97,12 +97,12 @@ if (podfile.includes("post_install do |installer|")) {
97
97
  if (podfile.includes("react_native_post_install")) {
98
98
  podfile = podfile.replace(
99
99
  /(react_native_post_install\s*\(.*\)\s*)/,
100
- `$1\n${innerHook}`
100
+ `$1\n${innerHook}`,
101
101
  );
102
102
  console.log("✨ Injected OkayCam hook after react_native_post_install.");
103
103
  } else {
104
104
  console.log(
105
- "⚠️ react_native_post_install not found, appending before end of post_install."
105
+ "⚠️ react_native_post_install not found, appending before end of post_install.",
106
106
  );
107
107
  podfile = podfile.replace(/end\s*$/, `${innerHook}\nend`);
108
108
  }