Skip to content

Commit

Permalink
Final commit for 4.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JumioMobileTeam committed Aug 28, 2024
1 parent 32e175b commit f7130e1
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 20 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Official Jumio Mobile SDK plugin for Apache Cordova

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

# Table of Contents
Expand All @@ -28,7 +28,7 @@ With this release, we only ensure compatibility with the latest Cordova versions
At the time of this release, the following minimum versions are supported:
* Cordova: 12.0.0
* Cordova Android: 13.0.0
* Cordova iOS: 7.1.0
* Cordova iOS: 7.1.1

## Setup
Create Cordova project and add our plugin
Expand All @@ -37,7 +37,7 @@ 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.10.0
cordova plugin add https://github.com/Jumio/mobile-cordova.git#v4.11.0
cd platforms/ios && pod install
```

Expand Down Expand Up @@ -292,7 +292,7 @@ If iOS application build is failing with `ld: framework not found iProov.xcframe
```
post_install do |installer|
installer.pods_project.targets.each do |target|
if ['iProov', 'Starscream', 'DatadogSDK', 'SwiftProtobuf'].include? target.name
if ['iProov', 'DatadogRUM', 'DatadogCore', 'DatadogInternal'].include? target.name
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
Expand Down Expand Up @@ -323,6 +323,10 @@ For more information, please refer to our [iOS guides](https://github.com/Jumio/
If you have any questions regarding our implementation guide please contact Jumio Customer Service at [email protected] or https://support.jumio.com. The Jumio online helpdesk contains a wealth of information regarding our service including demo videos, product descriptions, FAQs and other things that may help to get you started with Jumio. Check it out at: https://support.jumio.com.

## Licenses
The source code and software available on this website (“Software”) is provided by Jumio Corp. or its affiliated group companies (“Jumio”) "as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall Jumio be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including but not limited to procurement of substitute goods or services, loss of use, data, profits, or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this Software, even if advised of the possibility of such damage.

In any case, your use of this Software is subject to the terms and conditions that apply to your contractual relationship with Jumio. As regards Jumio’s privacy practices, please see our privacy notice available here: [Privacy Policy](https://www.jumio.com/legal-information/privacy-policy/).

The software contains third-party open source software. For more information, please see [Android licenses](https://github.com/Jumio/mobile-sdk-android/tree/master/licenses) and [iOS licenses](https://github.com/Jumio/mobile-sdk-ios/tree/master/licenses)

This software is based in part on the work of the Independent JPEG Group.
Expand Down
2 changes: 1 addition & 1 deletion demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Demonstrates how to use the JumioMobileSDK plugin.
## Prerequisites

* Cordova CLI 12.0.0
* NodeJS 22.3.0
* NodeJS 22.6.0

## Hooks

Expand Down
10 changes: 8 additions & 2 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="4.10.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.11.0" 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 @@ -17,6 +17,10 @@
<allow-intent href="geo:*" />
<platform name="android">
<hook type="after_platform_add" src="scripts/buildGradleEdit.js" />

<!-- Needed for Jenkins build job-->
<hook type="before_build" src="scripts/buildGradleEdit.js" />

<allow-intent href="market:*" />
<edit-config file="AndroidManifest.xml" mode="merge" parent="/*" target="/manifest/" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down Expand Up @@ -75,8 +79,10 @@
<preference name="GradlePluginKotlinCodeStyle" value="official" />
<preference name="GradlePluginKotlinVersion" value="1.9.24" />
<preference name="GradleVersion" value="8.2" />
<preference name="AndroidGradlePluginVersion" value="8.2.2" />
<preference name="AndroidGradlePluginVersion" value="8.2.1" />
<preference name="android-minSdkVersion" value="21" />
<preference name="android-maxSdkVersion" value="34" />
<preference name="android-targetSdkVersion" value="34" />
<preference name="AndroidKotlinJVMTarget" value="17" />
<preference name="AndroidXAppCompatVersion" value="1.7.0" />
</widget>
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": "4.10.0",
"version": "4.11.0",
"description": "A sample Apache Cordova application that responds to the deviceready event.",
"main": "index.js",
"scripts": {
Expand All @@ -10,8 +10,7 @@
"author": "Apache Cordova Team",
"license": "Apache-2.0",
"dependencies": {
"cordova": "^12.0.0",
"cordova-android": "^13.0.0"
"cordova": "^12.0.0"
},
"cordova": {
"plugins": {
Expand All @@ -24,7 +23,8 @@
]
},
"devDependencies": {
"cordova-ios": "^7.1.0",
"cordova-android": "^13.0.0",
"cordova-ios": "^7.1.1",
"cordova-plugin-add-swift-support": "^2.0.2",
"cordova-plugin-enable-multidex": "^0.2.0",
"cordova-plugin-jumio-mobilesdk": "file:.."
Expand Down
24 changes: 21 additions & 3 deletions demo/scripts/buildGradleEdit.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const path = require('path');

// Path to the build.gradle file
const buildGradlePath = path.join('platforms', 'android', 'app', 'build.gradle');
const gradlePropertiesPath = path.join('platforms', 'android', 'gradle.properties');

try {
// Read the contents of the build.gradle file
Expand All @@ -16,11 +17,28 @@ try {
`compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}`
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17
}
kotlin {
jvmToolchain(17)
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}`
);

// Write the updated contents back to the build.gradle file
fs.writeFileSync(buildGradlePath, buildGradleContents, 'utf8');
// Read the contents of the gradle.properties file
let gradlePropertiesContents = fs.readFileSync(gradlePropertiesPath, 'utf8');

// Ignore JVM target validation
gradlePropertiesContents += '\n';
gradlePropertiesContents += 'kotlin.jvm.target.validation.mode=WARNING\n';

// Write update contents back to gradle.properties file
fs.writeFileSync(gradlePropertiesPath, gradlePropertiesContents, 'utf8');

console.log('compileOptions updated successfully in build.gradle');
} catch (err) {
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.10.0",
"version": "4.11.0",
"description": "Jumio Mobile SDK Plugin for Cordova",
"cordova": {
"id": "cordova-plugin-jumio-mobilesdk",
Expand Down
4 changes: 2 additions & 2 deletions 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.10.0" xmlns="http://apache.org/cordova/ns/plugins/1.0"
<plugin id="cordova-plugin-jumio-mobilesdk" version="4.11.0" 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 Expand Up @@ -43,7 +43,7 @@
<source url="https://github.com/CocoaPods/Specs.git"/>
</config>
<pods use-frameworks="true">
<pod name="Jumio" spec="~> 4.10.0"/>
<pod name="Jumio" spec="~> 4.11.0"/>
</pods>
</podspec>
</platform>
Expand Down
4 changes: 2 additions & 2 deletions 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.10.0"
SDK_VERSION = "4.11.0"
kotlin_version = "1.9.24"
}

Expand All @@ -35,7 +35,7 @@ dependencies {
implementation "com.jumio.android:liveness:${SDK_VERSION}"

//only for the sample code
implementation "androidx.activity:activity-ktx:1.5.1"
implementation "androidx.activity:activity-ktx:1.9.0"

//Kotlin
implementation "androidx.multidex:multidex:2.0.1"
Expand Down
3 changes: 2 additions & 1 deletion src/android/res/values/jumio-styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
<!-- <item name="jumio_navigation_icon">#EC407A</item>-->
<!-- <item name="jumio_navigation_icon_dark">#EC407A</item>-->
<!-- <item name="jumio_image_border">#F2F233</item>-->

<!-- <item name="jumio_divider_color">#00B0FF</item>-->

<!-- <item name="jumio_bubble_background">#bc2e41</item>-->
<!-- <item name="jumio_bubble_background_selected">#57ffc7</item>-->
<!-- <item name="jumio_bubble_foreground">#FF5722</item>-->
Expand Down

0 comments on commit f7130e1

Please sign in to comment.