Skip to content

Commit

Permalink
Final commit for 3.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JumioMobileTeam committed Dec 17, 2019
1 parent 69bdd8c commit 317e12f
Show file tree
Hide file tree
Showing 16 changed files with 131 additions and 75 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

Official Jumio Mobile SDK plugin for Apache Cordova

This plugin is compatible with version 3.3.1 of the Jumio SDK. If you have questions, please reach out to your Account Manager or contact Jumio Support at support@jumio.com or https://support.jumio.com
This plugin is compatible with version 3.4.1 of the Jumio SDK. If you have questions, please reach out to your Account Manager or contact Jumio Support at support@jumio.com or https://support.jumio.com

## Compatibility
With this release, we only ensure compatibility with the latest Cordova versions and plugins.
At the time of this release, the following minimum versions are supported:
* Cordova: 8.1.2
* Cordova: 9.0.0
* Cordova Android: 8.0.0
* Cordova iOS: 5.0.1

Expand All @@ -19,14 +19,14 @@ 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#v3.3.1
cordova plugin add https://github.com/Jumio/mobile-cordova.git#v3.4.1
```

## 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/v3.3.1#basic-setup)
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/v3.4.2#basic-setup)

### Android

Expand All @@ -43,17 +43,17 @@ Add a parameter for your SDK_VERSION into the ext-section:

```
ext {
SDK_VERSION = "3.3.1"
SDK_VERSION = "3.4.1"
}
```

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

Open the android project of your cordova project located in */platforms/android* and insert the dependencies from the products you require to your **build.gradle** file. (Module: android)

* [Netverify & Fastfill](https://github.com/Jumio/mobile-sdk-android/blob/v3.3.1/docs/integration_netverify-fastfill.md#dependencies)
* [Document Verification](https://github.com/Jumio/mobile-sdk-android/blob/v3.3.1/docs/integration_document-verification.md#dependencies)
* [BAM Checkout](https://github.com/Jumio/mobile-sdk-android/blob/v3.3.1/docs/integration_bam-checkout.md#dependencies)
* [Netverify & Fastfill](https://github.com/Jumio/mobile-sdk-android/blob/v3.4.1/docs/integration_netverify-fastfill.md#dependencies)
* [Document Verification](https://github.com/Jumio/mobile-sdk-android/blob/v3.4.1/docs/integration_document-verification.md#dependencies)
* [BAM Checkout](https://github.com/Jumio/mobile-sdk-android/blob/v3.4.1/docs/integration_bam-checkout.md#dependencies)

Due to the outdated Cordova platform that is not yet updated for Android API version 28 and AndroidX, it's necessary to adapt your project to support the proper build environment for the native Jumio Android component. Take a look at the [Demo App build.gradle](https://github.com/Jumio/mobile-cordova/blob/master/demo/platforms/android/build.gradle) how to upgrade to API level 28. The [FAQ section](#faq) at the bottom covers common build issues and how to fix them.
Open your Cordova Android project in Android Studio to get IDE auto-suggestions and support for all the required changes.
Expand Down Expand Up @@ -340,13 +340,13 @@ Jumio.startBAM(function(cardInformation) {
### Android

#### Netverify
The Netverify SDK can be customized to the respective needs by following this [customization chapter](https://github.com/Jumio/mobile-sdk-android/blob/v3.3.1/docs/integration_netverify-fastfill.md#customization).
The Netverify SDK can be customized to the respective needs by following this [customization chapter](https://github.com/Jumio/mobile-sdk-android/blob/v3.4.1/docs/integration_netverify-fastfill.md#customization).

#### BAM Checkout
The Netverify SDK can be customized to the respective needs by following this [customization chapter](https://github.com/Jumio/mobile-sdk-android/blob/v3.3.1/docs/integration_bam-checkout.md#customization).
The Netverify SDK can be customized to the respective needs by following this [customization chapter](https://github.com/Jumio/mobile-sdk-android/blob/v3.4.1/docs/integration_bam-checkout.md#customization).

#### Document Verification
The Netverify SDK can be customized to the respective needs by following this [customization chapter](https://github.com/Jumio/mobile-sdk-android/blob/v3.3.1/docs/integration_document-verification.md#customization).
The Netverify SDK can be customized to the respective needs by following this [customization chapter](https://github.com/Jumio/mobile-sdk-android/blob/v3.4.1/docs/integration_document-verification.md#customization).

### iOS
The SDK can be customized to the respective needs. You can pass the following customization options to the initializer:
Expand Down
6 changes: 3 additions & 3 deletions 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="3.3.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="com.jumio.cordova.demo" version="3.4.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 All @@ -21,9 +21,9 @@
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<preference name="deployment-target" value="10.0" />
</platform>
<plugin name="cordova-plugin-whitelist" spec="^1.3.2" />
<plugin name="cordova-plugin-jumio-mobilesdk" spec="git+https://github.com/Jumio/mobile-cordova.git#v3.3.1">
<plugin name="cordova-plugin-jumio-mobilesdk" spec="git+https://github.com/Jumio/mobile-cordova.git#v3.4.1">
<variable name="CAMERA_USAGE_DESCRIPTION" value="This will allow ${PRODUCT_NAME} to take photos of your credentials." />
</plugin>
<engine name="android" spec="8.0.0" />
Expand Down
8 changes: 4 additions & 4 deletions 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": "3.3.1",
"version": "3.4.1",
"description": "A sample Apache Cordova application that responds to the deviceready event.",
"main": "index.js",
"scripts": {
Expand All @@ -12,8 +12,7 @@
"dependencies": {
"cordova-android": "^8.0.0",
"cordova-ios": "^5.0.1",
"cordova-plugin-jumio-mobilesdk": "git+https://github.com/Jumio/mobile-cordova.git#v3.3.1",
"cordova-plugin-whitelist": "^1.3.3"
"cordova-plugin-jumio-mobilesdk": "git+https://github.com/Jumio/mobile-cordova.git#v3.4.1"
},
"cordova": {
"plugins": {
Expand All @@ -22,7 +21,8 @@
}
},
"platforms": [
"ios"
"ios",
"android"
]
}
}
2 changes: 1 addition & 1 deletion demo/platforms/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ task wrapper(type: Wrapper) {
// Configuration properties. Set these via environment variables, build-extras.gradle, or gradle.properties.
// Refer to: http://www.gradle.org/docs/current/userguide/tutorial_this_and_that.html
ext {
SDK_VERSION = "3.3.1"
SDK_VERSION = "3.4.1"

apply from: '../CordovaLib/cordova.gradle'

Expand Down
2 changes: 1 addition & 1 deletion demo/platforms/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="30300" android:versionName="3.3.0" package="com.jumio.cordova.demo" xmlns:android="http://schemas.android.com/apk/res/android">
<manifest android:hardwareAccelerated="true" android:versionCode="30410" android:versionName="3.4.1" package="com.jumio.cordova.demo" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<application android:hardwareAccelerated="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize">
Expand Down
2 changes: 2 additions & 0 deletions demo/platforms/android/app/src/main/assets/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ <h1>Jumio Mobile SDK</h1>
<button id="startAuthentication" type="button">Start Authentication</button>
<button id="startBAM" type="button">Start BAM Checkout</button>
<button id="startDocumentVerification" type="button">Start Document Verification</button>
<p id="logtitle" style="visibility: hidden">Log: </p>
<p id="log"></p>
</div>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/index.js"></script>
Expand Down
40 changes: 23 additions & 17 deletions demo/platforms/android/app/src/main/assets/www/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ var app = {
document.getElementById("startAuthentication").addEventListener("click", this.startAuthentication);
document.getElementById("startBAM").addEventListener("click", this.startBAM);
document.getElementById("startDocumentVerification").addEventListener("click", this.startDocumentVerification);
document.getElementById("log").addEventListener("change",function unhide() {
document.getElementById("logtitle").hidden = true
})
},

// deviceready Event Handler
Expand All @@ -33,7 +36,7 @@ var app = {
// 'pause', 'resume', etc.
onDeviceReady: function() {

},
},

startNetverify: function() {
// Netverify / Fastfill
Expand Down Expand Up @@ -79,28 +82,31 @@ var app = {
});

Jumio.startNetverify(function(documentData) {
alert(JSON.stringify(documentData));
// alert(JSON.stringify(documentData));
document.getElementById("log").textContent = JSON.stringify(documentData);
}, function(error) {
alert(JSON.stringify(error));
// alert(JSON.stringify(error));
document.getElementById("log").textContent = JSON.stringify(error);
});
},

initAuthentication: function() {
// Authentication
Jumio.initAuthentication('API_TOKEN', 'API_SECRET', 'DATACENTER', {
initAuthentication: function() {
// Authentication
Jumio.initAuthentication('API_TOKEN', 'API_SECRET', 'DATACENTER', {
enrollmentTransactionReference: "EnrollmentTransactionReference",
//userReference: "UserReference",
//callbackUrl: "URL",
//authenticationTransactionReference: "AuthenticationTransactionReference"
});
},
});
},

startAuthentication: function() {
startAuthentication: function() {

Jumio.startAuthentication(function(documentData) {
alert(JSON.stringify(documentData));
}, function(error) {
alert(JSON.stringify(error));
});
document.getElementById("log").textContent = JSON.stringify(documentData);
}, function(error) {
document.getElementById("log").textContent = JSON.stringify(error);
});
},

startDocumentVerification: function() {
Expand All @@ -122,9 +128,9 @@ var app = {
});

Jumio.startDocumentVerification(function(documentData) {
alert(JSON.stringify(documentData));
document.getElementById("log").textContent = JSON.stringify(documentData);
}, function(error) {
alert(JSON.stringify(error));
document.getElementById("log").textContent = JSON.stringify(error);
});
},

Expand Down Expand Up @@ -170,9 +176,9 @@ var app = {
});

Jumio.startBAM(function(cardInformation) {
alert(JSON.stringify(cardInformation));
document.getElementById("log").textContent = JSON.stringify(documentData);
}, function(error) {
alert(JSON.stringify(error));
document.getElementById("log").textContent = JSON.stringify(error);
});
}
};
Expand Down
2 changes: 1 addition & 1 deletion demo/platforms/android/app/src/main/res/xml/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="3.3.0" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="com.jumio.cordova.demo" version="3.4.0" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<feature name="JumioMobileSDK">
<param name="android-package" value="com.jumio.mobilesdk.JumioMobileSDK" />
</feature>
Expand Down
2 changes: 1 addition & 1 deletion demo/platforms/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ allprojects {

//This replaces project.properties w.r.t. build settings
project.ext {
SDK_VERSION = "3.3.1"
SDK_VERSION = "3.4.1"
defaultBuildToolsVersion="29.0.0" //String
defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
defaultTargetSdkVersion=29 //Integer - We ALWAYS target the latest by default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repositories {
}

ext {
SDK_VERSION = "3.3.1"
SDK_VERSION = "3.4.1"
}

dependencies {
Expand All @@ -23,26 +23,26 @@ dependencies {
implementation "com.jumio.android:dv:${SDK_VERSION}@aar"

//for core:
implementation "androidx.appcompat:appcompat:1.0.2"
implementation "androidx.room:room-runtime:2.0.0"
implementation "androidx.appcompat:appcompat:1.1.0"
implementation "androidx.room:room-runtime:2.2.1"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.60"

//for nv:
implementation "com.google.android.material:material:1.0.0"
implementation "androidx.cardview:cardview:1.0.0"
implementation "androidx.constraintlayout:constraintlayout:1.1.3"

//only for nv-barcode-vision
implementation("com.google.android.gms:play-services-vision:18.0.0") {
exclude group: 'com.android.support', module: 'support-v4'
implementation ("com.google.android.gms:play-services-vision:19.0.0"){
exclude group: 'com.android.support', module:'support-v4'
}

//only for nv-nfc
implementation "org.bouncycastle:bcprov-jdk15on:1.61"
implementation "net.sf.scuba:scuba-sc-android:0.0.18"

implementation "androidx.multidex:multidex:2.0.1"
implementation "net.sf.scuba:scuba-sc-android:0.0.16"

//only for face
implementation "com.facetec:zoom-authentication-hybrid:7.0.14@aar"
implementation "com.facetec:zoom-authentication:8.0.11@aar"

implementation fileTree(dir: 'libs', include: '*.jar')
}
Expand Down
4 changes: 2 additions & 2 deletions demo/plugins/fetch.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"cordova-plugin-jumio-mobilesdk": {
"source": {
"type": "local",
"path": "/Users/davidpanholzer/Documents/DEV/bitbucket/mobile-cordova-pilot/demo/node_modules/cordova-plugin-jumio-mobilesdk"
"type": "registry",
"id": "https://github.com/Jumio/mobile-cordova.git#v3.4.1"
},
"is_top_level": true,
"variables": {}
Expand Down
2 changes: 2 additions & 0 deletions demo/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ <h1>Jumio Mobile SDK</h1>
<button id="startAuthentication" type="button">Start Authentication</button>
<button id="startBAM" type="button">Start BAM Checkout</button>
<button id="startDocumentVerification" type="button">Start Document Verification</button>
<p id="logtitle" style="visibility: hidden">Log: </p>
<p id="log"></p>
</div>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/index.js"></script>
Expand Down
40 changes: 23 additions & 17 deletions demo/www/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ var app = {
document.getElementById("startAuthentication").addEventListener("click", this.startAuthentication);
document.getElementById("startBAM").addEventListener("click", this.startBAM);
document.getElementById("startDocumentVerification").addEventListener("click", this.startDocumentVerification);
document.getElementById("log").addEventListener("change",function unhide() {
document.getElementById("logtitle").hidden = true
})
},

// deviceready Event Handler
Expand All @@ -33,7 +36,7 @@ var app = {
// 'pause', 'resume', etc.
onDeviceReady: function() {

},
},

startNetverify: function() {
// Netverify / Fastfill
Expand Down Expand Up @@ -79,28 +82,31 @@ var app = {
});

Jumio.startNetverify(function(documentData) {
alert(JSON.stringify(documentData));
// alert(JSON.stringify(documentData));
document.getElementById("log").textContent = JSON.stringify(documentData);
}, function(error) {
alert(JSON.stringify(error));
// alert(JSON.stringify(error));
document.getElementById("log").textContent = JSON.stringify(error);
});
},

initAuthentication: function() {
// Authentication
Jumio.initAuthentication('API_TOKEN', 'API_SECRET', 'DATACENTER', {
initAuthentication: function() {
// Authentication
Jumio.initAuthentication('API_TOKEN', 'API_SECRET', 'DATACENTER', {
enrollmentTransactionReference: "EnrollmentTransactionReference",
//userReference: "UserReference",
//callbackUrl: "URL",
//authenticationTransactionReference: "AuthenticationTransactionReference"
});
},
});
},

startAuthentication: function() {
startAuthentication: function() {

Jumio.startAuthentication(function(documentData) {
alert(JSON.stringify(documentData));
}, function(error) {
alert(JSON.stringify(error));
});
document.getElementById("log").textContent = JSON.stringify(documentData);
}, function(error) {
document.getElementById("log").textContent = JSON.stringify(error);
});
},

startDocumentVerification: function() {
Expand All @@ -122,9 +128,9 @@ var app = {
});

Jumio.startDocumentVerification(function(documentData) {
alert(JSON.stringify(documentData));
document.getElementById("log").textContent = JSON.stringify(documentData);
}, function(error) {
alert(JSON.stringify(error));
document.getElementById("log").textContent = JSON.stringify(error);
});
},

Expand Down Expand Up @@ -170,9 +176,9 @@ var app = {
});

Jumio.startBAM(function(cardInformation) {
alert(JSON.stringify(cardInformation));
document.getElementById("log").textContent = JSON.stringify(documentData);
}, function(error) {
alert(JSON.stringify(error));
document.getElementById("log").textContent = JSON.stringify(error);
});
}
};
Expand Down
Loading

0 comments on commit 317e12f

Please sign in to comment.