@veriff/react-native-sdk 2.4.0 → 2.5.0
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
|
@@ -78,7 +78,7 @@ repositories {
|
|
|
78
78
|
dependencies {
|
|
79
79
|
//noinspection GradleDynamicVersion
|
|
80
80
|
implementation 'com.facebook.react:react-native:+' // From node_modules
|
|
81
|
-
implementation 'com.veriff:veriff-library:3.+'
|
|
81
|
+
implementation 'com.veriff:veriff-library:3.21.+'
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
def configureReactNativePom(def pom) {
|
|
@@ -83,6 +83,7 @@ public class VeriffSdkModule extends ReactContextBaseJavaModule {
|
|
|
83
83
|
public static final String KEY_STATUS_BAR_COLOR = "statusBarColor";
|
|
84
84
|
public static final String KEY_PRIMARY_TEXT_COLOR = "primaryTextColor";
|
|
85
85
|
public static final String KEY_SECONDARY_TEXT_COLOR = "secondaryTextColor";
|
|
86
|
+
public static final String KEY_PRIMARY_BUTTON_BACKGROUND_COLOR = "primaryButtonBackgroundColor";
|
|
86
87
|
public static final String KEY_BUTTON_CORNER_RADIUS = "buttonCornerRadius";
|
|
87
88
|
private static final String KEY_CUSTOM_INTRO_SCREEN = "customIntroScreen";
|
|
88
89
|
private static final String KEY_RN_IMAGE_URI = "uri";
|
|
@@ -250,6 +251,9 @@ public class VeriffSdkModule extends ReactContextBaseJavaModule {
|
|
|
250
251
|
if (brandConfig.hasKey(KEY_SECONDARY_TEXT_COLOR)) {
|
|
251
252
|
branding.secondaryTextColor(parseColor(brandConfig.getString(KEY_SECONDARY_TEXT_COLOR)));
|
|
252
253
|
}
|
|
254
|
+
if (brandConfig.hasKey(KEY_PRIMARY_BUTTON_BACKGROUND_COLOR)) {
|
|
255
|
+
branding.primaryButtonBackgroundColor(parseColor(brandConfig.getString(KEY_PRIMARY_BUTTON_BACKGROUND_COLOR)));
|
|
256
|
+
}
|
|
253
257
|
if (brandConfig.hasKey(KEY_BUTTON_CORNER_RADIUS)) {
|
|
254
258
|
branding.buttonCornerRadius((float)brandConfig.getDouble(KEY_BUTTON_CORNER_RADIUS));
|
|
255
259
|
}
|
package/ios/VeriffSdk.swift
CHANGED
|
@@ -34,6 +34,7 @@ class VeriffSdk: NSObject {
|
|
|
34
34
|
private static let STATUS_BAR_COLOR = "statusBarColor"
|
|
35
35
|
private static let PRIMARY_TEXT_COLOR = "primaryTextColor"
|
|
36
36
|
private static let SECONDARY_TEXT_COLOR = "secondaryTextColor"
|
|
37
|
+
private static let PRIMARY_BUTTON_BACKGROUND_COLOR = "primaryButtonBackgroundColor"
|
|
37
38
|
private static let BUTTON_CORNER_RADIUS = "buttonCornerRadius"
|
|
38
39
|
private static let USE_CUSTOM_INTRO_SCREEN = "customIntroScreen"
|
|
39
40
|
|
|
@@ -94,6 +95,7 @@ class VeriffSdk: NSObject {
|
|
|
94
95
|
branding?.statusBarColor = (brandingConfig[VeriffSdk.STATUS_BAR_COLOR] as? String).map { VeriffSdk.parseColor(hexcolor: $0) }
|
|
95
96
|
branding?.primaryTextColor = (brandingConfig[VeriffSdk.PRIMARY_TEXT_COLOR] as? String).map { VeriffSdk.parseColor(hexcolor: $0) }
|
|
96
97
|
branding?.secondaryTextColor = (brandingConfig[VeriffSdk.SECONDARY_TEXT_COLOR] as? String).map { VeriffSdk.parseColor(hexcolor: $0) }
|
|
98
|
+
branding?.primaryButtonBackgroundColor = (brandingConfig[VeriffSdk.PRIMARY_BUTTON_BACKGROUND_COLOR] as? String).map { VeriffSdk.parseColor(hexcolor: $0) }
|
|
97
99
|
branding?.buttonCornerRadius = (brandingConfig[VeriffSdk.BUTTON_CORNER_RADIUS] as? Double).map { CGFloat($0) }
|
|
98
100
|
}
|
|
99
101
|
|
package/package.json
CHANGED
package/react-native-sdk.podspec
CHANGED