Skip to content

Commit

Permalink
Final commit for 4.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JumioMobileTeam committed Jun 25, 2024
1 parent 194ee39 commit 24b23ca
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 60 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
18 changes: 7 additions & 11 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 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
Expand All @@ -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.
Expand All @@ -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:
Expand Down Expand Up @@ -205,31 +205,27 @@ You can pass the following customization options at [`Jumio.start`](example/lib/
| bubbleBackground |
| bubbleForeground |
| bubbleBackgroundSelected |
| bubbleCircleItemForeground |
| bubbleCircleItemBackground |
| bubbleOutline |
| loadingCirclePlain |
| loadingCircleGradientStart |
| loadingCircleGradientEnd |
| loadingErrorCircleGradientStart |
| loadingErrorCircleGradientEnd |
| loadingCircleIcon |
| scanOverlay |
| scanOverlayFill |
| scanOverlayTransparent |
| scanOverlayBackground |
| nfcPassportCover |
| nfcPassportPageDark |
| nfcPassportPageLight |
| nfcPassportForeground |
| nfcPhoneCover |
| scanViewBubbleForeground |
| scanViewBubbleBackground |
| scanViewTooltipForeground |
| scanViewTooltipBackground |
| scanViewForeground |
| scanViewDocumentShutter |
| scanViewFaceShutter |
| searchBubbleBackground |
| searchBubbleForeground |
| searchBubbleBackgroundSelected |
| searchBubbleOutline |
| confirmationImageBackground |
| confirmationImageBackgroundBorder |
Expand Down Expand Up @@ -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.
Expand Down
15 changes: 12 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ group 'com.jumio.jumiomobilesdk'
version '1.0-SNAPSHOT'

buildscript {
ext.kotlin_version = '1.9.10'
ext.kotlin_version = '1.9.24'
repositories {
google()
mavenCentral()
gradlePluginPortal()
}

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"
}
}
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
4 changes: 2 additions & 2 deletions example/android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

<!-- <item name="jumio_circle_item_background">#00B0FF</item>-->
<!-- <item name="jumio_circle_item_foreground">#E0E011</item>-->
<!-- <item name="jumio_doc_type_icon_foreground">#E0E011</item>-->

<!-- <item name="jumio_selection_icon_foreground">#123cff</item>-->

Expand Down Expand Up @@ -117,5 +118,4 @@
<!-- <item name="iproov_genuinePresenceAssurance_notReadyOvalStrokeColor">#060668</item>-->
<!-- <item name="iproov_genuinePresenceAssurance_readyOvalStrokeColor">#E91E63</item>-->
</style>

</resources>
</resources>
6 changes: 3 additions & 3 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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";
Expand Down
48 changes: 12 additions & 36 deletions ios/Classes/JumioCustomatization.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion ios/jumio_mobile_sdk_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 24b23ca

Please sign in to comment.