From 24b23ca595cbf7a5f89f22d1ebdefabeed907b85 Mon Sep 17 00:00:00 2001 From: JumioMobileTeam Date: Tue, 25 Jun 2024 11:24:56 +0000 Subject: [PATCH] Final commit for 4.10.0 --- CHANGELOG.md | 4 ++ README.md | 18 +++---- android/build.gradle | 15 ++++-- .../gradle/wrapper/gradle-wrapper.properties | 2 +- example/android/app/build.gradle | 2 +- .../app/src/main/res/values/styles.xml | 4 +- example/ios/Runner.xcodeproj/project.pbxproj | 6 +-- ios/Classes/JumioCustomatization.swift | 48 +++++-------------- ios/jumio_mobile_sdk_flutter.podspec | 2 +- pubspec.yaml | 4 +- 10 files changed, 45 insertions(+), 60 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae7d4af..d421403 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 4.10.0 +* Updated Jumio SDK Android and iOS to 4.10.0 +* Update dependencies to Flutter 3.22.2 and Dart 3.4.3 + ## 4.9.0 * Updated Jumio SDK Android and iOS to 4.9.0 * Update dependencies to Flutter 3.19.1 and Dart 3.3.0 diff --git a/README.md b/README.md index be4e6e4..6af6f80 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Official Jumio Mobile SDK plugin for Flutter -This plugin is compatible with version 4.9.0 of the Jumio SDK. +This plugin is compatible with version 4.10.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 @@ If you have questions, please reach out to your Account Manager or contact [Jumi - [Support](#support) ## Compatibility -Compatibility has been tested with a Flutter version of 3.19.1 and Dart 3.4.0 +Compatibility has been tested with a Flutter version of 3.22.2 and Dart 3.4.3 ## Setup Create Flutter project and add the Jumio Mobile SDK module to it. @@ -44,7 +44,7 @@ dependencies: flutter: sdk: flutter - jumio_mobile_sdk_flutter: ^4.9.0 + jumio_mobile_sdk_flutter: ^4.10.0 ``` And install the dependency: @@ -205,8 +205,7 @@ You can pass the following customization options at [`Jumio.start`](example/lib/ | bubbleBackground | | bubbleForeground | | bubbleBackgroundSelected | -| bubbleCircleItemForeground | -| bubbleCircleItemBackground | +| bubbleOutline | | loadingCirclePlain | | loadingCircleGradientStart | | loadingCircleGradientEnd | @@ -214,22 +213,19 @@ You can pass the following customization options at [`Jumio.start`](example/lib/ | loadingErrorCircleGradientEnd | | loadingCircleIcon | | scanOverlay | -| scanOverlayFill | -| scanOverlayTransparent | | scanOverlayBackground | | nfcPassportCover | | nfcPassportPageDark | | nfcPassportPageLight | | nfcPassportForeground | | nfcPhoneCover | -| scanViewBubbleForeground | -| scanViewBubbleBackground | +| scanViewTooltipForeground | +| scanViewTooltipBackground | | scanViewForeground | | scanViewDocumentShutter | | scanViewFaceShutter | | searchBubbleBackground | | searchBubbleForeground | -| searchBubbleBackgroundSelected | | searchBubbleOutline | | confirmationImageBackground | | confirmationImageBackgroundBorder | @@ -385,7 +381,7 @@ After installing Cocoapods, please localize your iOS application using the langu ![Localization](images/Flutter_localization.gif) Make sure your `podfile` is up to date and that new pod versions are installed properly so your `Localizable` files include new strings. -For more information, please refer to our [Changelog](https://github.com/Jumio/mobile-sdk-ios/blob/master/docs/changelog) and [Transition Guide](https://github.com/Jumio/mobile-sdk-ios/blob/master/docs/transition_guide.md). +For more information, please refer to our [Changelog](https://github.com/Jumio/mobile-sdk-ios/blob/master/docs/changelog.md) and [Transition Guide](https://github.com/Jumio/mobile-sdk-ios/blob/master/docs/transition_guide.md). ### Empty Country List for Android Release Build If country list is empty for the Android release build, please make sure your app has the proper internet permissions. Without a working network connection, countries won't load in and the list will stay empty. diff --git a/android/build.gradle b/android/build.gradle index 5e06354..d944b12 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -2,7 +2,7 @@ group 'com.jumio.jumiomobilesdk' version '1.0-SNAPSHOT' buildscript { - ext.kotlin_version = '1.9.10' + ext.kotlin_version = '1.9.24' repositories { google() mavenCentral() @@ -10,7 +10,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:8.1.4' + classpath 'com.android.tools.build:gradle:8.2.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } @@ -48,10 +48,19 @@ android { lintOptions { disable 'InvalidPackage' } + + kotlinOptions { + jvmTarget = "11" + } + + compileOptions { + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 + } } ext { - SDK_VERSION = "4.9.0" + SDK_VERSION = "4.10.0" } dependencies { diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index 966aa8e..b5fc5a7 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 41fd942..a216b2d 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -69,6 +69,6 @@ flutter { } dependencies { - def kotlin_version = '1.9.10' + def kotlin_version = '1.9.24' implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" } diff --git a/example/android/app/src/main/res/values/styles.xml b/example/android/app/src/main/res/values/styles.xml index 150bcbf..6b345df 100644 --- a/example/android/app/src/main/res/values/styles.xml +++ b/example/android/app/src/main/res/values/styles.xml @@ -46,6 +46,7 @@ + @@ -117,5 +118,4 @@ - - + \ No newline at end of file diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index baf7a5f..6b35e0f 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -518,7 +518,7 @@ "$(inherited)", "$(PROJECT_DIR)/Flutter", ); - MARKETING_VERSION = 4.9.0; + MARKETING_VERSION = 4.10.0; PRODUCT_BUNDLE_IDENTIFIER = com.jumio.flutter.demo; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; @@ -660,7 +660,7 @@ "$(inherited)", "$(PROJECT_DIR)/Flutter", ); - MARKETING_VERSION = 4.9.0; + MARKETING_VERSION = 4.10.0; PRODUCT_BUNDLE_IDENTIFIER = com.jumio.flutter.demo; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; @@ -695,7 +695,7 @@ "$(inherited)", "$(PROJECT_DIR)/Flutter", ); - MARKETING_VERSION = 4.9.0; + MARKETING_VERSION = 4.10.0; PRODUCT_BUNDLE_IDENTIFIER = com.jumio.flutter.demo; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; diff --git a/ios/Classes/JumioCustomatization.swift b/ios/Classes/JumioCustomatization.swift index 17a2229..81a7719 100644 --- a/ios/Classes/JumioCustomatization.swift +++ b/ios/Classes/JumioCustomatization.swift @@ -201,16 +201,10 @@ extension JumioModuleFlutter { customTheme.bubble.backgroundSelected = Jumio.Theme.Value(UIColor(hexString: bubbleBackgroundSelected)) } - if let bubbleCircleItemForeground = customizations["bubbleCircleItemForeground"] as? [String: String?], let light = bubbleCircleItemForeground["light"] as? String, let dark = bubbleCircleItemForeground["dark"] as? String { - customTheme.bubble.circleItemForeground = Jumio.Theme.Value(light: UIColor(hexString: light), dark: UIColor(hexString: dark)) - } else if let bubbleCircleItemForeground = customizations["bubbleCircleItemForeground"] as? String { - customTheme.bubble.circleItemForeground = Jumio.Theme.Value(UIColor(hexString: bubbleCircleItemForeground)) - } - - if let bubbleCircleItemBackground = customizations["bubbleCircleItemBackground"] as? [String: String?], let light = bubbleCircleItemBackground["light"] as? String, let dark = bubbleCircleItemBackground["dark"] as? String { - customTheme.bubble.circleItemBackground = Jumio.Theme.Value(light: UIColor(hexString: light), dark: UIColor(hexString: dark)) - } else if let bubbleCircleItemBackground = customizations["bubbleCircleItemBackground"] as? String { - customTheme.bubble.circleItemBackground = Jumio.Theme.Value(UIColor(hexString: bubbleCircleItemBackground)) + if let bubbleOutline = customizations["bubbleOutline"] as? [String: String?], let light = bubbleOutline["light"] as? String, let dark = bubbleOutline["dark"] as? String { + customTheme.bubble.outline = Jumio.Theme.Value(light: UIColor(hexString: light), dark: UIColor(hexString: dark)) + } else if let bubbleOutline = customizations["bubbleOutline"] as? String { + customTheme.bubble.outline = Jumio.Theme.Value(UIColor(hexString: bubbleOutline)) } // Loading, Error @@ -257,18 +251,6 @@ extension JumioModuleFlutter { customTheme.scanOverlay.scanOverlay = Jumio.Theme.Value(UIColor(hexString: scanOverlay)) } - if let scanOverlayFill = customizations["scanOverlayFill"] as? [String: String?], let light = scanOverlayFill["light"] as? String, let dark = scanOverlayFill["dark"] as? String { - customTheme.scanOverlay.fill = Jumio.Theme.Value(light: UIColor(hexString: light), dark: UIColor(hexString: dark)) - } else if let scanOverlayFill = customizations["scanOverlayFill"] as? String { - customTheme.scanOverlay.fill = Jumio.Theme.Value(UIColor(hexString: scanOverlayFill)) - } - - if let scanOverlayTransparent = customizations["scanOverlayTransparent"] as? [String: String?], let light = scanOverlayTransparent["light"] as? String, let dark = scanOverlayTransparent["dark"] as? String { - customTheme.scanOverlay.scanOverlayTransparent = Jumio.Theme.Value(light: UIColor(hexString: light), dark: UIColor(hexString: dark)) - } else if let scanOverlayTransparent = customizations["scanOverlayTransparent"] as? String { - customTheme.scanOverlay.scanOverlayTransparent = Jumio.Theme.Value(UIColor(hexString: scanOverlayTransparent)) - } - if let scanOverlayBackground = customizations["scanOverlayBackground"] as? [String: String?], let light = scanOverlayBackground["light"] as? String, let dark = scanOverlayBackground["dark"] as? String { customTheme.scanOverlay.scanBackground = Jumio.Theme.Value(light: UIColor(hexString: light), dark: UIColor(hexString: dark)) } else if let scanOverlayBackground = customizations["scanOverlayBackground"] as? String { @@ -307,16 +289,16 @@ extension JumioModuleFlutter { } // ScanView - if let scanViewBubbleForeground = customizations["scanViewBubbleForeground"] as? [String: String?], let light = scanViewBubbleForeground["light"] as? String, let dark = scanViewBubbleForeground["dark"] as? String { - customTheme.scanView.bubbleForeground = Jumio.Theme.Value(light: UIColor(hexString: light), dark: UIColor(hexString: dark)) - } else if let scanViewBubbleForeground = customizations["scanViewBubbleForeground"] as? String { - customTheme.scanView.bubbleForeground = Jumio.Theme.Value(UIColor(hexString: scanViewBubbleForeground)) + if let scanViewTooltipForeground = customizations["scanViewTooltipForeground"] as? [String: String?], let light = scanViewTooltipForeground["light"] as? String, let dark = scanViewTooltipForeground["dark"] as? String { + customTheme.scanView.tooltipForeground = Jumio.Theme.Value(light: UIColor(hexString: light), dark: UIColor(hexString: dark)) + } else if let scanViewTooltipForeground = customizations["scanViewTooltipForeground"] as? String { + customTheme.scanView.tooltipForeground = Jumio.Theme.Value(UIColor(hexString: scanViewTooltipForeground)) } - if let scanViewBubbleBackground = customizations["scanViewBubbleBackground"] as? [String: String?], let light = scanViewBubbleBackground["light"] as? String, let dark = scanViewBubbleBackground["dark"] as? String { - customTheme.scanView.bubbleBackground = Jumio.Theme.Value(light: UIColor(hexString: light), dark: UIColor(hexString: dark)) - } else if let scanViewBubbleBackground = customizations["scanViewBubbleBackground"] as? String { - customTheme.scanView.bubbleBackground = Jumio.Theme.Value(UIColor(hexString: scanViewBubbleBackground)) + if let scanViewTooltipBackground = customizations["scanViewTooltipBackground"] as? [String: String?], let light = scanViewTooltipBackground["light"] as? String, let dark = scanViewTooltipBackground["dark"] as? String { + customTheme.scanView.tooltipBackground = Jumio.Theme.Value(light: UIColor(hexString: light), dark: UIColor(hexString: dark)) + } else if let scanViewTooltipBackground = customizations["scanViewTooltipBackground"] as? String { + customTheme.scanView.tooltipBackground = Jumio.Theme.Value(UIColor(hexString: scanViewTooltipBackground)) } if let scanViewForeground = customizations["scanViewForeground"] as? [String: String?], let light = scanViewForeground["light"] as? String, let dark = scanViewForeground["dark"] as? String { @@ -350,12 +332,6 @@ extension JumioModuleFlutter { customTheme.searchBubble.foreground = Jumio.Theme.Value(UIColor(hexString: searchBubbleForeground)) } - if let searchBubbleBackgroundSelected = customizations["searchBubbleBackgroundSelected"] as? [String: String?], let light = searchBubbleBackgroundSelected["light"] as? String, let dark = searchBubbleBackgroundSelected["dark"] as? String { - customTheme.searchBubble.backgroundSelected = Jumio.Theme.Value(light: UIColor(hexString: light), dark: UIColor(hexString: dark)) - } else if let searchBubbleBackgroundSelected = customizations["searchBubbleBackgroundSelected"] as? String { - customTheme.searchBubble.backgroundSelected = Jumio.Theme.Value(UIColor(hexString: searchBubbleBackgroundSelected)) - } - if let searchBubbleOutline = customizations["searchBubbleOutline"] as? [String: String?], let light = searchBubbleOutline["light"] as? String, let dark = searchBubbleOutline["dark"] as? String { customTheme.searchBubble.outline = Jumio.Theme.Value(light: UIColor(hexString: light), dark: UIColor(hexString: dark)) } else if let searchBubbleOutline = customizations["searchBubbleOutline"] as? String { diff --git a/ios/jumio_mobile_sdk_flutter.podspec b/ios/jumio_mobile_sdk_flutter.podspec index 848a9e6..9084eb2 100644 --- a/ios/jumio_mobile_sdk_flutter.podspec +++ b/ios/jumio_mobile_sdk_flutter.podspec @@ -18,7 +18,7 @@ Pod::Spec.new do |s| s.requires_arc = true s.dependency 'Flutter' - s.dependency "Jumio", "~> 4.9.1" + s.dependency "Jumio", "~> 4.10.0" # Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported. s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES'} diff --git a/pubspec.yaml b/pubspec.yaml index eeb4a0b..b7bf88a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,11 +1,11 @@ name: jumio_mobile_sdk_flutter description: The Jumio Mobile SDK for Flutter -version: 4.9.0 +version: 4.10.0 homepage: https://github.com/Jumio/mobile-flutter license: SEE LICENSE IN README.md environment: - sdk: '>=2.16.1 <3.0.0' + sdk: '>=3.0.0' flutter: '>=2.10.3' dependencies: