Skip to content

Commit

Permalink
Final commit for 4.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JumioMobileTeam committed Oct 24, 2023
1 parent 7eb982a commit 3b3112e
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 39 deletions.
45 changes: 13 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

Official Jumio Mobile SDK plugin for Apache Cordova

This plugin is compatible with version 4.7.0 of the Jumio SDK. If you have questions, please reach out to your Account Manager or contact [Jumio Support](#support).
This plugin is compatible with version 4.7.0 of the Jumio iOS SDK and version 4.7.1 of the Jumio Android SDK.
If you have questions, please reach out to your Account Manager or contact [Jumio Support](#support).

# Table of Contents
- [Compatibility](#compatibility)
Expand All @@ -18,7 +19,7 @@ This plugin is compatible with version 4.7.0 of the Jumio SDK. If you have quest
- [FAQ](#faq)
- [Android Issues](#android-issues)
- [iOS Issues](#ios-issues)
- [iOS Fails to Build, Framework or Symbol not found](#ios-fails-to-build-framework-or-symbol-not-found)
- [Framework not found iProov.xcframework](#framework-not-found-iproovxcframework)
- [Support](#support)

## Compatibility
Expand All @@ -35,20 +36,20 @@ cordova create MyProject com.my.project "MyProject"
cd MyProject
cordova platform add ios
cordova platform add android
cordova plugin add https://github.com/Jumio/mobile-cordova.git#v4.7.0
cordova plugin add https://github.com/Jumio/mobile-cordova.git#v4.7.1
cd platforms/ios && pod install
```

## Integration

### iOS
Manual integration or dependency management via cocoapods possible, please see [the official documentation of the Jumio Mobile SDK for iOS](https://github.com/Jumio/mobile-sdk-ios/tree/v4.0.0#basics)
Manual integration or dependency management via cocoapods possible, please see [the official documentation of the Jumio Mobile SDK for iOS](https://github.com/Jumio/mobile-sdk-ios/tree/master#basics)

#### Device Risk
To include Jumio's Device Risk functionality, you need to add `pod Jumio/DeviceRisk` to your Podfile.

### Android
Add required permissions for the products as described in chapter [Permissions](https://github.com/Jumio/mobile-sdk-android/blob/v4.0.0/README.md#permissions)
Add required permissions for the products as described in chapter [Permissions](https://github.com/Jumio/mobile-sdk-android/blob/master/README.md#permissions)

To use the native Jumio Android component, your App needs to support AndroidX. This can be enabled by adding the following preference to your config.xml:

Expand Down Expand Up @@ -268,41 +269,21 @@ Alternatively, it is also possible to set the key `manageAppVersionAndBuildNumbe
After installing Cocoapods, please localize your iOS application using the languages provided at the following path:
`ios -> Pods -> Jumio -> Localizations -> xx.lproj`

### iOS Fails to Build, Framework or Symbol not found
If iOS application build is failing with `ld: framework not found` or `dyld: Symbol not found: ...`, please make sure the necessary `pre-install` and `post-install` hooks have been included in your `Podfile`.
This is needed in order for dynamic frameworks to install correctly:

```
dynamic_frameworks = ['Starscream', 'iProov', 'DatadogCore', 'DatadogInternal', 'DatadogRUM']
# make all the other frameworks into static frameworks by overriding the static_framework? function to return true
pre_install do |installer|
installer.pod_targets.each do |pod|
if !dynamic_frameworks.include?(pod.name)
puts "Overriding the static_framework? method for #{pod.name}"
def pod.static_framework?;
true
end
def pod.build_type;
Pod::BuildType.static_library
end
end
end
end
```

### Framework not found iProov.xcframework
If iOS application build is failing with `ld: framework not found iProov.xcframework` or `dyld: Symbol not found: ... Referenced from: /.../Frameworks/iProov.frameworks/iProov`, please make sure the necessary post install-hook has been included in your `Podfile`:
```
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
if ['iProov', 'Starscream', 'DatadogSDK', 'SwiftProtobuf'].include? target.name
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
end
end
```

For more information, please refer to our [iOS guides](https://github.com/Jumio/mobile-sdk-ios/blob/master/docs/integration_guide.md#via-cocoapods).
For more information, please refer to our [iOS guides](https://github.com/Jumio/mobile-sdk-ios#certified-liveness-vendor).

# Support

Expand Down
2 changes: 1 addition & 1 deletion demo/config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.jumio.cordova.demo" version="4.7.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="com.jumio.cordova.demo" version="4.7.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>DemoApp</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
Expand Down
4 changes: 2 additions & 2 deletions demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.jumio.cordova.demo",
"displayName": "DemoApp",
"version": "4.7.0",
"version": "4.7.1",
"description": "A sample Apache Cordova application that responds to the deviceready event.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-jumio-mobilesdk",
"version": "4.7.0",
"version": "4.7.1",
"description": "Jumio Mobile SDK Plugin for Cordova",
"cordova": {
"id": "cordova-plugin-jumio-mobilesdk",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-jumio-mobilesdk" version="4.7.0" xmlns="http://apache.org/cordova/ns/plugins/1.0"
<plugin id="cordova-plugin-jumio-mobilesdk" version="4.7.1" xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>JumioMobileSDK</name>
<js-module name="JumioMobileSDK" src="www/JumioMobileSDK.js">
Expand Down
3 changes: 3 additions & 0 deletions src/android/JumioMobileSDK.kt
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ class JumioMobileSDK : CordovaPlugin() {

private fun sendScanResult(jumioResult: JumioResult?) {
val accountId = jumioResult?.accountId
val workflowId = jumioResult?.workflowExecutionId

val credentialInfoList = jumioResult?.credentialInfos

val result = JSONObject()
Expand All @@ -143,6 +145,7 @@ class JumioMobileSDK : CordovaPlugin() {
credentialInfoList?.let {
try {
accountId?.let { result.put("accountId", it) }
workflowId?.let { result.put("workflowId", it) }
} catch (e: JSONException) {
showErrorMessage("Result could not be sent: " + e.localizedMessage)
}
Expand Down
2 changes: 1 addition & 1 deletion src/android/plugin.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repositories {
}

ext {
SDK_VERSION = "4.7.0"
SDK_VERSION = "4.7.1"
kotlin_version = "1.8.0"
}

Expand Down
2 changes: 2 additions & 0 deletions src/ios/JumioMobileSDK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,14 @@ extension JumioMobileSDK: Jumio.DefaultUIDelegate {

private func handleResult(jumioResult: Jumio.Result) {
let accountId = jumioResult.accountId
let workflowId = jumioResult.workflowExecutionId
let authenticationResult = jumioResult.isSuccess
let credentialInfos = jumioResult.credentialInfos

if authenticationResult == true {
var body: [String: Any?] = [
"accountId": accountId,
"workflowId": workflowId,
]
var credentialArray = [[String: Any?]]()

Expand Down

0 comments on commit 3b3112e

Please sign in to comment.