@digiotech/react-native 2.0.13 → 2.0.15

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/README.md CHANGED
@@ -316,5 +316,37 @@ It is required to test the release build for possible proguard exceptions before
316
316
  -keep public class * extends androidx.**
317
317
  -keep public class com.google.android.material.** { *; }
318
318
  -keep public class androidx.** { public *; }
319
+
320
+
321
+ #emudhra
322
+ -keep class com.emudhra.** { *; }
323
+ -keep interface com.emudhra.** { *; }
324
+ -keepclassmembers class com.emudhra.** {
325
+ native <methods>;
326
+ }
327
+ -dontwarn com.emudhra.**
328
+
329
+ # Jackson dataformat XML (used by emudhra at runtime via XmlMapper)
330
+ -keep class com.fasterxml.jackson.** { *; }
331
+ -keepnames class com.fasterxml.jackson.** { *; }
332
+ -dontwarn com.fasterxml.jackson.**
333
+
334
+ # Woodstox - StAX implementation backing jackson-dataformat-xml.
335
+ # FactoryFinder uses Class.forName via META-INF/services lookup; the impl
336
+ # classes must not be obfuscated or shrunk away.
337
+ -keep class com.ctc.wstx.** { *; }
338
+ -keep class org.codehaus.stax2.** { *; }
339
+ -dontwarn com.ctc.wstx.**
340
+ -dontwarn org.codehaus.stax2.**
341
+
342
+ # StAX API surfaces referenced via reflection
343
+ -keep class javax.xml.stream.** { *; }
344
+ -dontwarn javax.xml.stream.**
345
+ -keep class * implements javax.xml.stream.XMLInputFactory
346
+ -keep class * implements javax.xml.stream.XMLOutputFactory
347
+ -keep class * implements javax.xml.stream.XMLEventFactory
348
+
349
+ -keepattributes Signature, *Annotation*, EnclosingMethod, InnerClasses
350
+
319
351
  ```
320
352
 
@@ -97,6 +97,12 @@ repositories {
97
97
  google()
98
98
  }
99
99
 
100
+ rootProject.allprojects {
101
+ repositories {
102
+ maven { url 'https://pkgs.dev.azure.com/eMudhraTrustService/b81ae285-cb60-4000-8c39-394db16f2a75/_packaging/eMudhraEsignAAR/maven/v1' }
103
+ }
104
+ }
105
+
100
106
 
101
107
  dependencies {
102
108
  // For < 0.71, this will be from the local maven repo
@@ -104,7 +110,7 @@ dependencies {
104
110
  //noinspection GradleDynamicVersion
105
111
  implementation "com.facebook.react:react-native:+"
106
112
  // core dependencies
107
- implementation(platform("com.github.digio-tech:digio-bom:v1.0.59"))
113
+ implementation(platform("com.github.digio-tech:digio-bom:v1.0.75"))
108
114
  implementation("androidx.appcompat:appcompat")
109
115
  implementation("com.google.android.material:material")
110
116
  implementation("androidx.navigation:navigation-fragment-ktx")
@@ -120,7 +126,6 @@ dependencies {
120
126
  implementation("com.github.digio-tech:digio_permissions")
121
127
  implementation("com.google.android.gms:play-services-location")
122
128
 
123
- implementation("com.github.digio-tech:sdk_offlinekyc")
124
129
 
125
130
 
126
131
  compileOnly("com.github.digio-tech:protean-esign")
@@ -164,5 +169,18 @@ dependencies {
164
169
  implementation ("com.airbnb.android:lottie:6.6.6")
165
170
  implementation("androidx.core:core-animation:1.0.0")
166
171
 
172
+ implementation('com.emudhra:esign:1.0.0-SNAPSHOT') {
173
+ changing = true
174
+ }
175
+
176
+ implementation("org.bouncycastle:bcprov-jdk16:1.45")
177
+
178
+ // Required by eMudhra at runtime; Jitpack esign_biometrics POM doesn't propagate it
179
+ implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.15.1") {
180
+ exclude group: "xpp3", module: "xpp3"
181
+ exclude group: "org.xmlpull", module: "xmlpull"
182
+ exclude group: "javax.xml.stream", module: "stax-api"
183
+ }
184
+
167
185
  }
168
186
 
@@ -47,7 +47,7 @@ import in.digio.sdk.gateway.model.DigioTheme;
47
47
  public class DigioReactNativeModule extends ReactContextBaseJavaModule implements LifecycleEventListener {
48
48
  public static final String NAME = "DigioReactNative";
49
49
 
50
- public static final String AAR_VERSION = "5.1.22";
50
+ public static final String AAR_VERSION = "5.1.23";
51
51
  public static final int DIGIO_ACTIVITY = 73457843;
52
52
  private Promise resultPromise;
53
53
  private boolean isReceiverRegistered = false;
@@ -55,11 +55,12 @@ class DigioReactNative: RCTEventEmitter, DigioKycResponseDelegate,DigioEsignDele
55
55
  // reject: reject
56
56
  // )else { return }
57
57
 
58
- guard let clientToken = self.requiredString( "token",
59
- from: config,
60
- reject: reject
61
- )else{return}
58
+ // guard let clientToken = self.requiredString( "token",
59
+ // from: config,
60
+ // reject: reject
61
+ // )else{return}
62
62
 
63
+ let clientToken = self.optionalString("token", from: config) ?? ""
63
64
  // let clientSecretKey = self.optionalString("clientSecretKey", from: config)
64
65
  let clientSecretKey = self.optionalString("clientSecretKey", from: config) ?? ""
65
66
  // let clientToken = optionalString("token", from: config)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digiotech/react-native",
3
- "version": "2.0.13",
3
+ "version": "2.0.15",
4
4
  "description": "SDK for invoking client side journey for any of Digio request",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",