diff --git a/CHANGELOG.md b/CHANGELOG.md index 95a31e0..1f9c96c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. **Note**: If the strings translations change it will result in a MINOR version change, therefore you are responsible for testing your translated layout in case you are using custom translations. [More on language localisation](README.md#language-customisation) -## [10.2.0] - 2019-01-14 +## [10.3.0] - 2019-01-28 + +### Added +- UI: Ability to customise Font-Family + +### Fixed +- UI: Subtitle text truncate issue fixed on document selection screen +- UI: Fix for the crash on iPad when switch to landscape mode + +### Changed +- UI: Changed button colors on country selection screen. + +## [10.2.0] - 2019-01-04 ### Added - UI: Document and face capturing processes are now properly followed by screen readers @@ -17,10 +29,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - UI: Fix sdk crash on capture during the backside capture of two sided document on Cordova - UI: Fix for the Segment SDK name clash - UI: Fix infinite spinning wheel not removed when liveness upload failed. +- UI: Fixed custom localisation of text in liveness confirmation screen now going over multiple lines when text too long (max three) ### Changed - UI: Changed colors of the UI elements regarding to the new Onfido branding. - UI: Onfido logo updated. +- UI: Improved UI for sdk flow with `formSheet` modal presentation style ## [10.1.0] - 2018-11-14 diff --git a/MIGRATION.md b/MIGRATION.md index 1ba7505..5521376 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -2,6 +2,7 @@ These guides below are provided to ease the transition of existing applications using the Onfido SDK from one version to another that introduces breaking API changes. +* [Onfido iOS SDK 10.3.0 Migration Guide](#onfido-sdk-1030-migration-guide) * [Onfido iOS SDK 10.2.0 Migration Guide](#onfido-sdk-1020-migration-guide) * [Onfido iOS SDK 10.1.0 Migration Guide](#onfido-sdk-1010-migration-guide) * [Onfido iOS SDK 10.0.0 Migration Guide](#onfido-sdk-1000-migration-guide) @@ -18,6 +19,9 @@ These guides below are provided to ease the transition of existing applications * [Onfido iOS SDK 4.0.0 Migration Guide](#onfido-sdk-400-migration-guide) * [Onfido iOS SDK 3.0.0 Migration Guide](#onfido-sdk-300-migration-guide) + +## Onfido iOS SDK 10.3.0 Migration Guide + ## Onfido iOS SDK 10.2.0 Migration Guide ### Strings diff --git a/README.md b/README.md index 77b944c..752e1aa 100644 --- a/README.md +++ b/README.md @@ -500,7 +500,7 @@ ONFlowConfig *config = [configBuilder buildAndReturnError:&configError]; ### UI customisation -In order to enhance the user experience on the transition between your application and the SDK, you can customise some of the colors used in the SDK flow. +In order to enhance the user experience on the transition between your application and the SDK, you can customise some of the colors and fonts used in the SDK flow. To customise: @@ -510,7 +510,9 @@ let appearance = Appearance( primaryColor: , primaryTitleColor: , primaryBackgroundPressedColor: , - secondaryBackgroundPressedColor: ) + secondaryBackgroundPressedColor: , + fontRegular: , + fontBold: )) let configBuilder = OnfidoConfig.builder() configBuilder.withAppearance(appearance) ``` @@ -521,7 +523,9 @@ ONAppearance *appearance = [[ONAppearance alloc] initWithPrimaryColor: primaryTitleColor: primaryBackgroundPressedColor: - secondaryBackgroundPressedColor:]; + secondaryBackgroundPressedColor: + fontRegular: + fontBold: ]; ONFlowConfigBuilder *configBuilder = [ONFlowConfig builder]; [configBuilder withAppearance:appearance]; ``` @@ -530,6 +534,8 @@ ONFlowConfigBuilder *configBuilder = [ONFlowConfig builder]; `primaryTitleColor`: Defines the text color of labels included in views such as capture confirmation buttons. `primaryBackgroundPressedColor`: Defines the background color of capture confirmation buttons when pressed. `secondaryBackgroundPressedColor`: Defines the background color of capture cancel buttons when pressed. +`fontRegular`: Defines the custom font name for the regular style labels. +`fontBold`: Defines the custom font name for the bold style labels. ### Localisation diff --git a/SampleAppObjC/Podfile b/SampleAppObjC/Podfile index ae3d00e..ab7b270 100644 --- a/SampleAppObjC/Podfile +++ b/SampleAppObjC/Podfile @@ -1,5 +1,5 @@ # Uncomment the next line to define a global platform for your project -platform :ios, ‘8.0’ +platform :ios, ‘9.0’ target 'SampleAppObjC' do # Uncomment the next line if you're using Swift or would like to use dynamic frameworks @@ -9,4 +9,5 @@ target 'SampleAppObjC' do pod 'Onfido', :configurations => ['Debug'] pod 'Onfido-Release', :configurations => ['Release'] pod 'AFNetworking', '~> 3.1' + pod 'MBProgressHUD' end diff --git a/SampleAppObjC/SampleAppObjC.xcodeproj/project.pbxproj b/SampleAppObjC/SampleAppObjC.xcodeproj/project.pbxproj index 67d67fb..2c5e97d 100644 --- a/SampleAppObjC/SampleAppObjC.xcodeproj/project.pbxproj +++ b/SampleAppObjC/SampleAppObjC.xcodeproj/project.pbxproj @@ -7,6 +7,7 @@ objects = { /* Begin PBXBuildFile section */ + 013D95A221FF5F9400F3A654 /* TestFile.swift in Sources */ = {isa = PBXBuildFile; fileRef = 013D95A121FF5F9400F3A654 /* TestFile.swift */; }; 454A79E9E4E1B4AEC48DF78A /* Pods_SampleAppObjC.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DE0751CE919D4E18E58B06A0 /* Pods_SampleAppObjC.framework */; }; 7F6301291FC58A43001C0309 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F6301281FC58A43001C0309 /* AppDelegate.m */; }; 7F63012C1FC58A43001C0309 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F63012B1FC58A43001C0309 /* ViewController.m */; }; @@ -17,6 +18,8 @@ /* End PBXBuildFile section */ /* Begin PBXFileReference section */ + 013D959E21FF5F6800F3A654 /* SampleAppObjC-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SampleAppObjC-Bridging-Header.h"; sourceTree = ""; }; + 013D95A121FF5F9400F3A654 /* TestFile.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestFile.swift; sourceTree = ""; }; 63BDDE1348CE568092C7FB31 /* Pods-SampleAppObjC.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SampleAppObjC.release.xcconfig"; path = "Pods/Target Support Files/Pods-SampleAppObjC/Pods-SampleAppObjC.release.xcconfig"; sourceTree = ""; }; 7F6301241FC58A43001C0309 /* SampleAppObjC.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SampleAppObjC.app; sourceTree = BUILT_PRODUCTS_DIR; }; 7F6301271FC58A43001C0309 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; @@ -91,6 +94,8 @@ 7F6301321FC58A43001C0309 /* LaunchScreen.storyboard */, 7F6301351FC58A43001C0309 /* Info.plist */, 7F6301361FC58A43001C0309 /* main.m */, + 013D959E21FF5F6800F3A654 /* SampleAppObjC-Bridging-Header.h */, + 013D95A121FF5F9400F3A654 /* TestFile.swift */, ); path = SampleAppObjC; sourceTree = ""; @@ -128,7 +133,7 @@ TargetAttributes = { 7F6301231FC58A43001C0309 = { CreatedOnToolsVersion = 9.1; - LastSwiftMigration = 0910; + LastSwiftMigration = 1010; ProvisioningStyle = Automatic; }; }; @@ -189,31 +194,20 @@ files = ( ); inputPaths = ( - "${SRCROOT}/Pods/Target Support Files/Pods-SampleAppObjC/Pods-SampleAppObjC-frameworks.sh", + "${PODS_ROOT}/Target Support Files/Pods-SampleAppObjC/Pods-SampleAppObjC-frameworks.sh", "${BUILT_PRODUCTS_DIR}/AFNetworking/AFNetworking.framework", - "${BUILT_PRODUCTS_DIR}/Alamofire/Alamofire.framework", "${BUILT_PRODUCTS_DIR}/MBProgressHUD/MBProgressHUD.framework", "${PODS_ROOT}/Onfido/Onfido.framework", - "${BUILT_PRODUCTS_DIR}/SwiftyJSON/SwiftyJSON.framework", - "${BUILT_PRODUCTS_DIR}/Swinject/Swinject.framework", - "${BUILT_PRODUCTS_DIR}/ZSWTaggedString/ZSWTaggedString.framework", - "${BUILT_PRODUCTS_DIR}/ZSWTappableLabel/ZSWTappableLabel.framework", - "${PODS_ROOT}/Onfido-Release/Onfido.framework", ); name = "[CP] Embed Pods Frameworks"; outputPaths = ( "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AFNetworking.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Alamofire.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MBProgressHUD.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Onfido.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftyJSON.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Swinject.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ZSWTaggedString.framework", - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ZSWTappableLabel.framework", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SampleAppObjC/Pods-SampleAppObjC-frameworks.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-SampleAppObjC/Pods-SampleAppObjC-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; /* End PBXShellScriptBuildPhase section */ @@ -224,6 +218,7 @@ buildActionMask = 2147483647; files = ( 7F63012C1FC58A43001C0309 /* ViewController.m in Sources */, + 013D95A221FF5F9400F3A654 /* TestFile.swift in Sources */, 7F6301371FC58A43001C0309 /* main.m in Sources */, 7F6301291FC58A43001C0309 /* AppDelegate.m in Sources */, ); diff --git a/SampleAppObjC/SampleAppObjC/SampleAppObjC-Bridging-Header.h b/SampleAppObjC/SampleAppObjC/SampleAppObjC-Bridging-Header.h index e11d920..1b2cb5d 100644 --- a/SampleAppObjC/SampleAppObjC/SampleAppObjC-Bridging-Header.h +++ b/SampleAppObjC/SampleAppObjC/SampleAppObjC-Bridging-Header.h @@ -1,3 +1,4 @@ // // Use this file to import your target's public headers that you would like to expose to Swift. // +