From 94e5aaf953cd70fecf9eb98521ab328263fb5f62 Mon Sep 17 00:00:00 2001
From: David Leiti <david.leiti@yoti.com>
Date: Thu, 19 Oct 2023 18:05:26 +0300
Subject: [PATCH] Release 3.2.0 - Bump up SDK version to 3.2.0

- Update SDK libraries
- Update app version
- Update README.md and CHANGELOG.md

Related to DEP-424
---
 CHANGELOG.md     | 12 ++++++++++++
 README.md        | 20 +++++++++++++++-----
 app/build.gradle | 18 +++++++++---------
 3 files changed, 36 insertions(+), 14 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 039a9cc..a86ac5e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,17 @@
 # Changelog
 All notable changes to this project will be documented in this file.
+## [3.2.0] - 2023-10-19
+### Added
+- Implemented font type customisation.
+- Added search functionality to the issuing country search.
+- Allow retention logic in the biometric consent.
+
+### Changed
+- Improved the supplementary document guidelines screen.
+- Updated the biometric consent screen copy.
+- Updated the copy on Italian national ID.
+- Bug fixes and code improvements
+
 ## [3.1.1] - 2023-07-12
 ### Changed
 - General bug fixes.
diff --git a/README.md b/README.md
index 243629b..0970e18 100644
--- a/README.md
+++ b/README.md
@@ -55,18 +55,18 @@ Add modules you require to your build.gradle:
 ```groovy
 dependencies {
     //If you need document capture
-    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan:3.1.1'
+    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan:3.2.0'
 
     //If you need supplementary documents
-    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-sup:3.1.1'
+    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-sup:3.2.0'
 
     //If you need liveness
-    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-liveness-zoom:3.1.1'
+    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-liveness-zoom:3.2.0'
 
     //If you need selfie capture
-    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-facecapture:3.1.1'
+    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-facecapture:3.2.0'
     //Or if you want the version without an embedded AI model, which is ~20 MB smaller in size
-    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-facecapture-unbundled:3.1.1'
+    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-facecapture-unbundled:3.2.0'
 }
 ```
 
@@ -240,6 +240,16 @@ Apart from helping you avoid issues such as the one outlined above, this will st
 ## Customisation
 You can customise the appearance of the screens of the SDK by overriding some of the colours.
 
+### Font type
+In order to change the font type you need to:
+1. Add your own font type .tff files to res/font, 3 files in total for bold, regular and medium
+2. Declare three resource items of type font (which will override the ones declared in the SDK):
+```
+<item name="yoti_sdk_fontStyleBold" type="font">@font/your-font-bold</item>
+<item name="yoti_sdk_fontStyleRegular" type="font">@font/your-font-regular</item>
+<item name="yoti_sdk_fontStyleMedium" type="font">>@font/your-font-medium</item>
+```
+
 ### Font Colour
 In order to change the font colour you just need to override the following colour:
 ```xml
diff --git a/app/build.gradle b/app/build.gradle
index 4748724..f0c976d 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -2,13 +2,13 @@ apply plugin: 'com.android.application'
 apply plugin: 'kotlin-android'
 
 android {
-    compileSdkVersion 31
+    compileSdkVersion 32
     defaultConfig {
         applicationId "com.yoti.mobile.android.sdk.yotidocscan.sample"
         minSdkVersion 21
-        targetSdkVersion 31
-        versionCode 311
-        versionName "3.1.1"
+        targetSdkVersion 32
+        versionCode 320
+        versionName "3.2.0"
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
     }
 
@@ -46,11 +46,11 @@ dependencies {
     implementation 'androidx.appcompat:appcompat:1.4.1'
     implementation 'androidx.core:core-ktx:1.7.0'
 
-    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan:3.1.1'
-    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-sup:3.1.1'
-    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-liveness-zoom:3.1.1'
+    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan:3.2.0'
+    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-sup:3.2.0'
+    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-liveness-zoom:3.2.0'
 //    Version with an embedded AI model
-    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-facecapture:3.1.1'
+    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-facecapture:3.2.0'
 //    Alternative version without an embedded AI model, ~20 MB smaller in size
-//    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-facecapture-unbundled:3.1.1'
+//    implementation 'com.yoti.mobile.android.sdk:yoti-sdk-facecapture-unbundled:3.2.0'
 }