dojah-kyc-sdk-react_native 0.1.2 → 0.1.4

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.
@@ -69,12 +69,12 @@ android {
69
69
  defaultConfig {
70
70
  minSdkVersion getExtOrIntegerDefault("minSdkVersion")
71
71
  targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
72
-
72
+ consumerProguardFiles "consumer-rules.pro"
73
73
  }
74
74
 
75
75
  buildTypes {
76
76
  release {
77
- minifyEnabled true
77
+ minifyEnabled false
78
78
  }
79
79
  }
80
80
 
@@ -106,7 +106,7 @@ dependencies {
106
106
 
107
107
  // implementation 'com.github.dojah-inc:sdk-kotlin:v0.0.1-dev'
108
108
  // implementation 'com.github.dojah-inc:sdk-kotlin:v0.0.4-dev'
109
- implementation 'com.github.dojah-inc:sdk-kotlin:v0.2.0'
109
+ implementation 'com.github.dojah-inc:sdk-kotlin:v0.2.3'
110
110
 
111
111
  }
112
112
 
@@ -0,0 +1,25 @@
1
+ # Keep DojahKyc SDK classes from being removed by R8/ProGuard
2
+ -keep class com.dojahkyc.** { *; }
3
+ -keep class com.dojah.** { *; }
4
+
5
+ # Keep React Native native module classes
6
+ -keepclassmembers class * {
7
+ @com.facebook.react.bridge.ReactMethod <methods>;
8
+ }
9
+
10
+ # Keep annotations
11
+ -keepattributes *Annotation*
12
+
13
+ # Keep Kotlin metadata
14
+ -keepattributes RuntimeVisibleAnnotations,RuntimeVisibleParameterAnnotations
15
+ -keepattributes EnclosingMethod
16
+ -keepattributes InnerClasses
17
+
18
+ # Keep native methods
19
+ -keepclasseswithmembernames class * {
20
+ native <methods>;
21
+ }
22
+
23
+ # Keep React Native bridge classes
24
+ -keep class com.facebook.react.bridge.** { *; }
25
+ -keep class com.facebook.react.** { *; }
@@ -49,7 +49,7 @@ class DojahKycModule(private val reactContext: ReactApplicationContext) :
49
49
  extraData: ReadableMap? = null,
50
50
  promise: Promise
51
51
  ) {
52
- val activity = currentActivity
52
+ val activity = reactApplicationContext.currentActivity
53
53
 
54
54
  if (activity == null) {
55
55
  promise.reject("D_ACTIVITY_DOES_NOT_EXIST", "Activity doesn't exist")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dojah-kyc-sdk-react_native",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Dojah SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",