SDK | Version |
---|---|
CafSmartAuth | 1.0.1 |
Deployment Info | Version |
---|---|
iOS Target | 13.0+ |
Xcode | 15.4+ |
Swift | 5.10+ |
- A valid CAF mobileToken.
- Swift Package Manager integrated into your Xcode project.
Make sure to add the following entries to your app's Info.plist
file, explaining why your app requires access to the camera and location:
- Camera: Add an
NSCameraUsageDescription
entry, for example:"Camera access is required for live facial verification."
- Location: Add an
NSLocationWhenInUseUsageDescription
entry, for example:"Location access is required for verification purposes during authentication."
To add CafSmartAuth 1.0.1 to your project using Swift Package Manager:
- Open your Xcode project.
- Navigate to File > Add Packages.
- In the search bar, paste the URL of this repository:
https://github.com/combateafraude/CafSmartAuth.git
- Select the version
1.0.1
or choose the "Up to Next Major" option to ensure your project will automatically get future compatible updates. - Complete the steps, and Xcode will automatically integrate the CafSmartAuth SDK into your project.
- Ensure CocoaPods is installed on your system. If not, install it using:
sudo gem install cocoapods
-
Navigate to your project directory in the terminal.
-
Create or update your Podfile with the following content:
platform :ios, '13.0'
use_frameworks!
target 'YourAppTarget' do
pod 'CafSmartAuth', '~> 1.0.1'
end
- Install the pod by running:
pod install
- Open the generated .xcworkspace file to work on your project.
To import and use CafSmartAuth in your app, add the following import statement at the top of your Swift files:
import CafSmartAuth
When using our SDKs, please make sure that you agree with our Privacy Policy and our Terms and Conditions of Use.