-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1dbbae1
commit b01f78c
Showing
1,125 changed files
with
16,397 additions
and
96,688 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
Official Jumio Mobile SDK plugin for Apache Cordova | ||
|
||
This plugin is compatible with version 3.1.0 of the Jumio SDK. This is the final update to the Cordova plugin — future SDK compatibility can not be guaranteed. If you have questions, please reach out to your Account Manager or contact Jumio Support at [email protected] or https://support.jumio.com | ||
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 [email protected] or https://support.jumio.com | ||
|
||
## Compatibility | ||
With this release, we only ensure compatibility with the latest Cordova versions and plugins. | ||
|
@@ -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.1.0 | ||
cordova plugin add https://github.com/Jumio/mobile-cordova.git#v3.3.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.1.0#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.3.1#basic-setup) | ||
|
||
### Android | ||
|
||
|
@@ -43,17 +43,17 @@ Add a parameter for your SDK_VERSION into the ext-section: | |
|
||
``` | ||
ext { | ||
SDK_VERSION = "3.1.0" | ||
SDK_VERSION = "3.3.1" | ||
} | ||
``` | ||
|
||
Add required permissions for the products as described in chapter [Permissions](https://github.com/Jumio/mobile-sdk-android/blob/v3.1.0/README.md#permissions) | ||
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) | ||
|
||
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.1.0/docs/integration_netverify-fastfill.md#dependencies) | ||
* [Document Verification](https://github.com/Jumio/mobile-sdk-android/blob/v3.1.0/docs/integration_document-verification.md#dependencies) | ||
* [BAM Checkout](https://github.com/Jumio/mobile-sdk-android/blob/v3.1.0/docs/integration_bam-checkout.md#dependencies) | ||
* [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) | ||
|
||
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. | ||
|
@@ -88,6 +88,8 @@ Configure the SDK with the *configuration*-Object. | |
| cameraPosition | String | Which camera is used by default. Can be **FRONT** or **BACK**. | | ||
| preselectedDocumentVariant | String | Which types of document variants are available. Can be **PAPER** or **PLASTIC** | | ||
| documentTypes | String-Array | An array of accepted document types: Available document types: **PASSPORT**, **DRIVER_LICENSE**, **IDENTITY_CARD**, **VISA** | | ||
| enableWatchlistScreening | String | Enables [Jumio Screening](https://www.jumio.com/screening/). Can be **ENABLED**, **DISABLED** or **DEFAULT** (when not specified reverts to **DEFAULT**) | | ||
| watchlistSearchProfile | String | Specifies specific profile of watchlist | | ||
|
||
|
||
Initialization example with configuration. | ||
|
@@ -98,7 +100,9 @@ Jumio.initNetverify("API_TOKEN", "API_SECRET", "US", { | |
userReference: "USERREFERENCE", | ||
preselectedCountry: "USA", | ||
cameraPosition: "BACK", | ||
documentTypes: ["DRIVER_LICENSE", "PASSPORT", "IDENTITY_CARD", "VISA"] | ||
documentTypes: ["DRIVER_LICENSE", "PASSPORT", "IDENTITY_CARD", "VISA"], | ||
enableWatchlistScreening: "ENABLED", | ||
watchlistSearchProfile: "YOURPROFILENAME" | ||
}); | ||
``` | ||
|
||
|
@@ -110,7 +114,7 @@ If you are using eMRTD scanning, following lines are needed in your Manifest fil | |
-keep class net.sf.scuba.smartcards.IsoDepCardService {*;} | ||
-keep class org.jmrtd.** { *; } | ||
-keep class net.sf.scuba.** {*;} | ||
-keep class org.spongycastle.** {*;} | ||
-keep class org.bouncycastle.** {*;} | ||
-keep class org.ejbca.** {*;} | ||
|
||
-dontwarn java.nio.** | ||
|
@@ -161,10 +165,13 @@ Datacenter can either be **US** or **EU**. | |
|
||
Configure the SDK with the *configuration*-Object. **(configuration marked with * are mandatory)** | ||
|
||
In order to connect the Authentication transaction to a specific Netverify user identity the parameter `enrollmentTransactionReference` must be set. In case an Authentication transaction has been created via the facemap server to server API `authenticationTransactionReference` should be used. Therefore `enrollmentTransactionReference` should not be set. | ||
|
||
| Configuration | Datatype | Description | | ||
| ------ | -------- | ----------- | | ||
| **enrollmentTransactionReference*** | String | The reference of the enrollment scan to authenticate for | | ||
| userReference | String | Set a customer identifier (max. 100 characters) | | ||
| **authenticationTransactionReference*** | String | The reference of the authentication scan to authenticate for | | ||
| **userReference*** | String | Set a customer identifier (max. 100 characters) | | ||
| callbackUrl | String | Specify an URL for callback | | ||
|
||
Initialization example with configuration: | ||
|
@@ -173,7 +180,8 @@ Initialization example with configuration: | |
// Authentication | ||
Jumio.initAuthentication(<API_TOKEN>, <API_SECRET>, <DATACENTER>, { | ||
enrollmentTransactionReference: "EnrollmentTransactionReference", | ||
userReference: "UserReference", | ||
//authenticationTransactionReference: "AuthenticationTransactionReference", | ||
userReference: "UserReference" | ||
callbackUrl: "URL" | ||
}); | ||
} | ||
|
@@ -332,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.1.0/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.3.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.1.0/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.3.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.1.0/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.3.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: | ||
|
@@ -376,7 +384,7 @@ The SDK can be customized to the respective needs. You can pass the following cu | |
All colors are provided with a HEX string with the following format: #ff00ff. | ||
|
||
**Customization example** | ||
```javascript | ||
``` | ||
Jumio.initNetverify("API_TOKEN", "API_SECRET", "US", { | ||
requireVerification: false, | ||
... | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,17 +24,16 @@ ext { | |
|
||
buildscript { | ||
repositories { | ||
google() | ||
google() | ||
jcenter() | ||
maven { | ||
url "https://maven.google.com" | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
classpath 'com.android.tools.build:gradle:3.4.0' | ||
// The gradle plugin and the maven plugin have to be updated after each version of Android | ||
// studio comes out | ||
classpath 'com.android.tools.build:gradle:3.5.0' | ||
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' | ||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' | ||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3' | ||
} | ||
} | ||
|
||
|
@@ -46,19 +45,8 @@ group = 'org.apache.cordova' | |
version = '8.0.0' | ||
|
||
android { | ||
compileSdkVersion 28 | ||
buildToolsVersion "28.0.3" | ||
publishNonDefault true | ||
|
||
lintOptions { | ||
abortOnError false | ||
} | ||
|
||
defaultConfig { | ||
// Enabling multidex support. | ||
minSdkVersion 19 | ||
multiDexEnabled true | ||
} | ||
compileSdkVersion cdvCompileSdkVersion | ||
buildToolsVersion cdvBuildToolsVersion | ||
|
||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
|
@@ -83,6 +71,9 @@ android { | |
exclude 'META-INF/DEPENDENCIES' | ||
exclude 'META-INF/NOTICE' | ||
} | ||
defaultConfig { | ||
minSdkVersion 19 | ||
} | ||
} | ||
|
||
install { | ||
|
@@ -105,9 +96,9 @@ install { | |
} | ||
} | ||
scm { | ||
connection 'https://git-wip-us.apache.org/repos/asf?p=cordova-android.git' | ||
developerConnection 'https://git-wip-us.apache.org/repos/asf?p=cordova-android.git' | ||
url 'https://git-wip-us.apache.org/repos/asf?p=cordova-android' | ||
connection 'scm:git:https://github.com/apache/cordova-android.git' | ||
developerConnection 'scm:git:[email protected]:apache/cordova-android.git' | ||
url 'https://github.com/apache/cordova-android' | ||
|
||
} | ||
} | ||
|
@@ -133,9 +124,9 @@ bintray { | |
name = 'cordova-android' | ||
userOrg = 'cordova' | ||
licenses = ['Apache-2.0'] | ||
vcsUrl = 'https://git-wip-us.apache.org/repos/asf?p=cordova-android.git' | ||
vcsUrl = 'https://github.com/apache/cordova-android' | ||
websiteUrl = 'https://cordova.apache.org' | ||
issueTrackerUrl = 'https://issues.apache.org/jira/browse/CB' | ||
issueTrackerUrl = 'https://github.com/apache/cordova-android/issues' | ||
publicDownloadNumbers = true | ||
licenses = ['Apache-2.0'] | ||
labels = ['android', 'cordova', 'phonegap'] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
# This file is automatically generated by Android Tools. | ||
# Do not modify this file -- YOUR CHANGES WILL BE ERASED! | ||
# | ||
# This file must be checked in Version Control Systems. | ||
# | ||
# To customize properties used by the Ant build system use, | ||
# "ant.properties", and override values to adapt the script to your | ||
# project structure. | ||
# This file was originally created by the Android Tools, but is now | ||
# used by cordova-android to manage the project configuration. | ||
|
||
# Indicates whether an apk should be generated for each density. | ||
split.density=false | ||
|
||
# Project target. | ||
target=android-26 | ||
target=android-28 | ||
apk-configurations= | ||
renderscript.opt.level=O0 | ||
android.library=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.