[MWA-5506] Update Pcat Dependency to 22.02
{update dependency to 22.0.4}
This commit is contained in:
parent
fa8bcd543e
commit
3f77f4b9a8
@ -70,26 +70,25 @@ dependencies {
|
|||||||
//noinspection GradleDynamicVersion
|
//noinspection GradleDynamicVersion
|
||||||
implementation "com.google.code.gson:gson:2.10.1"
|
implementation "com.google.code.gson:gson:2.10.1"
|
||||||
|
|
||||||
|
implementation('de.webid-solutions:android_document_scanner:21.1.0')
|
||||||
|
|
||||||
implementation("com.facebook.react:react-android")
|
implementation("com.facebook.react:react-android")
|
||||||
def product_catalog_version = "15.3.0"
|
def product_catalog_version = "22.0.4"
|
||||||
|
|
||||||
implementation ("de.webid-solutions:android_meta_plugin:$product_catalog_version") {
|
implementation ("de.webid-solutions:android_meta_plugin:$product_catalog_version") {
|
||||||
changing = true
|
changing = true
|
||||||
}
|
}
|
||||||
|
|
||||||
implementation ("de.webid-solutions:android_auto_ident_on_server_product_plugin:$product_catalog_version") {
|
implementation ("de.webid-solutions:android_autoid_product_plugin:$product_catalog_version") {
|
||||||
changing = true
|
changing = true
|
||||||
}
|
}
|
||||||
|
implementation ("de.webid-solutions:android_accountid_product_plugin:$product_catalog_version") {
|
||||||
implementation ("de.webid-solutions:android_pay_on_server_product_plugin:$product_catalog_version") {
|
|
||||||
changing = true
|
changing = true
|
||||||
}
|
}
|
||||||
|
implementation ("de.webid-solutions:android_videoid_product_plugin:$product_catalog_version") {
|
||||||
implementation ("de.webid-solutions:android_video_ident_product_plugin:$product_catalog_version") {
|
|
||||||
changing = true
|
changing = true
|
||||||
}
|
}
|
||||||
|
implementation ("de.webid-solutions:android_eid_product_plugin:$product_catalog_version") {
|
||||||
implementation ("de.webid-solutions:android_eid_on_server_product_plugin:$product_catalog_version") {
|
|
||||||
changing = true
|
changing = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,7 +5,7 @@ dependencyResolutionManagement {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
url 'https://api.webid-solutions.de/releases/android/maven/repository/internal'
|
url "https://api.webid-solutions.de/releases/android/maven2/releases"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,19 +11,19 @@ import com.facebook.react.bridge.ReactContextBaseJavaModule
|
|||||||
import com.facebook.react.bridge.ReactMethod
|
import com.facebook.react.bridge.ReactMethod
|
||||||
import com.facebook.react.bridge.ReadableArray
|
import com.facebook.react.bridge.ReadableArray
|
||||||
import com.facebook.react.modules.core.DeviceEventManagerModule
|
import com.facebook.react.modules.core.DeviceEventManagerModule
|
||||||
import de.webidsolutions.auto_ident_on_server_product_plugin.AutoIdentOnServerProductPlugin
|
|
||||||
import de.webidsolutions.eid_on_server_product_plugin.EIdOnServerProductPlugin
|
|
||||||
import de.webidsolutions.meta_plugin.WebIdMetaPlugin
|
import de.webidsolutions.meta_plugin.WebIdMetaPlugin
|
||||||
import de.webidsolutions.mobile_app.sdk.WebIdSdkEnvironment
|
import de.webidsolutions.mobile_app.sdk.WebIdSdkEnvironment
|
||||||
import de.webidsolutions.pay_on_server_product_plugin.PayOnServerProductPlugin
|
|
||||||
import de.webidsolutions.plugin_core.IEPluginError
|
import de.webidsolutions.plugin_core.IEPluginError
|
||||||
import de.webidsolutions.plugin_core.IProductPluginWebId
|
import de.webidsolutions.plugin_core.IProductPluginWebId
|
||||||
import de.webidsolutions.video_ident.plugin.videocall.VideoOptionsConfig
|
import de.webidsolutions.video_ident.plugin.videocall.VideoOptionsConfig
|
||||||
import de.webidsolutions.video_ident_product_plugin.VideoIdentProductPlugin
|
|
||||||
import java.net.URI
|
import java.net.URI
|
||||||
import com.facebook.react.bridge.UiThreadUtil
|
import com.facebook.react.bridge.UiThreadUtil
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
import com.google.gson.Gson
|
import com.google.gson.Gson
|
||||||
|
import de.webidsolutions.video_ident_product_plugin.VideoIdProductPlugin
|
||||||
|
import de.webidsolutions.auto_ident_product_plugin.AutoIdProductPlugin
|
||||||
|
import de.webidsolutions.pay_ident_product_plugin.AccountIdProductPlugin
|
||||||
|
import de.webidsolutions.eid_product_plugin.EIdProductPlugin
|
||||||
import java.io.ByteArrayInputStream
|
import java.io.ByteArrayInputStream
|
||||||
import java.security.MessageDigest
|
import java.security.MessageDigest
|
||||||
import java.security.cert.CertificateFactory
|
import java.security.cert.CertificateFactory
|
||||||
@ -63,16 +63,7 @@ class WebIdMetaPluginModule(
|
|||||||
|
|
||||||
if (input.startsWith("sha256/") || input.startsWith("sha1/")) return input
|
if (input.startsWith("sha256/") || input.startsWith("sha1/")) return input
|
||||||
|
|
||||||
val justValue =
|
val justValue = input.substringAfter("=", input).trim()
|
||||||
if (input.contains("=")) {
|
|
||||||
val left = input.substringBefore("=").trim()
|
|
||||||
val right = input.substringAfter("=").trim()
|
|
||||||
|
|
||||||
val looksLikeEnvKey = left.isNotEmpty() && left.length <= 64 && left.all { it.isLetterOrDigit() || it == '_' }
|
|
||||||
if (looksLikeEnvKey) right else input
|
|
||||||
} else {
|
|
||||||
input
|
|
||||||
}
|
|
||||||
|
|
||||||
val base64Cert = justValue
|
val base64Cert = justValue
|
||||||
.replace("-----BEGIN CERTIFICATE-----", "")
|
.replace("-----BEGIN CERTIFICATE-----", "")
|
||||||
@ -81,8 +72,6 @@ class WebIdMetaPluginModule(
|
|||||||
|
|
||||||
require(base64Cert.isNotEmpty()) { "Certificate input is empty after normalization" }
|
require(base64Cert.isNotEmpty()) { "Certificate input is empty after normalization" }
|
||||||
|
|
||||||
Log.d("WebIdMetaPlugin", "Base64 certificate: $base64Cert")
|
|
||||||
|
|
||||||
val certBytes = try {
|
val certBytes = try {
|
||||||
Base64.decode(base64Cert, Base64.DEFAULT)
|
Base64.decode(base64Cert, Base64.DEFAULT)
|
||||||
} catch (e: IllegalArgumentException) {
|
} catch (e: IllegalArgumentException) {
|
||||||
@ -145,10 +134,10 @@ class WebIdMetaPluginModule(
|
|||||||
|
|
||||||
pluginsList.forEach { p ->
|
pluginsList.forEach { p ->
|
||||||
when (p) {
|
when (p) {
|
||||||
"AutoIdOnServer" -> selectedPlugins.add(AutoIdentOnServerProductPlugin())
|
"AutoIdOnServer" -> selectedPlugins.add(AutoIdProductPlugin())
|
||||||
"PayOnServer" -> selectedPlugins.add(PayOnServerProductPlugin())
|
"PayOnServer" -> selectedPlugins.add(AccountIdProductPlugin())
|
||||||
"VideoId" -> selectedPlugins.add(VideoIdentProductPlugin(VideoOptionsConfig()))
|
"VideoId" -> selectedPlugins.add(VideoIdProductPlugin(VideoOptionsConfig()))
|
||||||
"EIdOnServer" -> selectedPlugins.add(EIdOnServerProductPlugin())
|
"EIdOnServer" -> selectedPlugins.add(EIdProductPlugin())
|
||||||
else -> Log.w(TAG, "createMetaPlugin unknown plugin string='$p'")
|
else -> Log.w(TAG, "createMetaPlugin unknown plugin string='$p'")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -233,7 +222,7 @@ class WebIdMetaPluginModule(
|
|||||||
plugin.startPlugin(
|
plugin.startPlugin(
|
||||||
activity,
|
activity,
|
||||||
fragment.launcher,
|
fragment.launcher,
|
||||||
customTheme
|
null, null
|
||||||
)
|
)
|
||||||
|
|
||||||
promise.resolve("PluginStarted")
|
promise.resolve("PluginStarted")
|
||||||
|
|||||||
@ -30,7 +30,7 @@ dependencyResolutionManagement {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
url 'https://api.webid-solutions.de/releases/android/maven/repository/internal'
|
url "https://api.webid-solutions.de/releases/android/maven2/releases"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user