Skip to content

Commit

Permalink
Merge pull request #3 from getyoti/release/DEP-202_2.0.1
Browse files Browse the repository at this point in the history
DEP-202: Update minimum version to 12.0
  • Loading branch information
rgcriado authored Apr 19, 2021
2 parents 8927a30 + d1c8593 commit 0095013
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
YotiFaceCapture provides a simplified way of capturing a face. It performs face detection from the front facing camera, analyses those frames and produces an optimised cropped image of the captured face.

## Requirements
- iOS 11.0+
- iOS 12.0+
- Swift 5.3+

## Installation
Expand All @@ -13,7 +13,7 @@ Make sure you've installed and are running the latest version of:
### CocoaPods
Add the following to your [`Podfile`](https://guides.cocoapods.org/using/the-podfile.html) and run `pod install` from its directory:
```bash
platform :ios, '11.0'
platform :ios, '12.0'

target 'TargetName' do
use_frameworks!
Expand Down Expand Up @@ -80,6 +80,14 @@ func faceCapture(originalImage: UIImage?, didResult result: FaceCaptureResult) {
Provide a FaceCaptureConfiguration instance when calling the startAnalyzing method
```swift
let faceCaptureConfiguration = FaceCaptureConfiguration(scanningArea: view.frame,
imageQuality: .medium)
imageQuality: .medium,
validationOptions: [.faceNotStraight])
faceCaptureViewController.startAnalyzing(withConfiguration: faceCaptureConfiguration)
```

The validation options available are:
```swift
case eyesNotOpen
case faceNotStraight
case faceNotStable(requiredFrames: Int)
```
2 changes: 1 addition & 1 deletion Samples/CocoaPods/Sample/Podfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
platform :ios, '11.0'
platform :ios, '12.0'

target 'Sample' do
use_frameworks!
Expand Down
6 changes: 4 additions & 2 deletions Samples/CocoaPods/Sample/Sample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -440,7 +440,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand All @@ -459,6 +459,7 @@
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 6VUTP72GG4;
INFOPLIST_FILE = "$(SRCROOT)/Sources/Sample/SupportingFiles/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -479,6 +480,7 @@
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 6VUTP72GG4;
INFOPLIST_FILE = "$(SRCROOT)/Sources/Sample/SupportingFiles/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down

0 comments on commit 0095013

Please sign in to comment.