diff --git a/README.md b/README.md index 3509dd1..040485b 100755 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -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 ``` @@ -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 @@ -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 support@jumio.com 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. diff --git a/demo/README.md b/demo/README.md index 46be27a..71710ec 100755 --- a/demo/README.md +++ b/demo/README.md @@ -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 diff --git a/demo/config.xml b/demo/config.xml index 67dbf75..a1ddc33 100755 --- a/demo/config.xml +++ b/demo/config.xml @@ -1,5 +1,5 @@ - + DemoApp A sample Apache Cordova application that responds to the deviceready event. @@ -17,6 +17,10 @@ + + + + @@ -75,8 +79,10 @@ - + + + diff --git a/demo/package.json b/demo/package.json index 098f499..7aa6243 100755 --- a/demo/package.json +++ b/demo/package.json @@ -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": { @@ -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": { @@ -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:.." diff --git a/demo/scripts/buildGradleEdit.js b/demo/scripts/buildGradleEdit.js old mode 100644 new mode 100755 index 623a7cf..74451cd --- a/demo/scripts/buildGradleEdit.js +++ b/demo/scripts/buildGradleEdit.js @@ -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 @@ -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) { diff --git a/package.json b/package.json index 2867d50..6bcc9b0 100755 --- a/package.json +++ b/package.json @@ -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", diff --git a/plugin.xml b/plugin.xml index 69a10f2..b3af255 100755 --- a/plugin.xml +++ b/plugin.xml @@ -1,5 +1,5 @@ - JumioMobileSDK @@ -43,7 +43,7 @@ - + diff --git a/src/android/plugin.gradle b/src/android/plugin.gradle index e9f520e..ad66d7b 100644 --- a/src/android/plugin.gradle +++ b/src/android/plugin.gradle @@ -18,7 +18,7 @@ repositories { } ext { - SDK_VERSION = "4.10.0" + SDK_VERSION = "4.11.0" kotlin_version = "1.9.24" } @@ -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" diff --git a/src/android/res/values/jumio-styles.xml b/src/android/res/values/jumio-styles.xml index b2df98c..2542e1c 100644 --- a/src/android/res/values/jumio-styles.xml +++ b/src/android/res/values/jumio-styles.xml @@ -9,7 +9,8 @@ - + +