dojah-kyc-sdk-react_native 0.1.3 → 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.
package/android/build.gradle
CHANGED
|
@@ -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
|
|
77
|
+
minifyEnabled false
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -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")
|