Flutter
Requirements
Flutter version >=1.20.0
Installation
dependencies:
...
onboarding_flutter_wrapper:
git:
url: [email protected]:Incode-Technologies-Example-Repos/IncdOnboardingFlutter.git
ref: master
...Additional Setup for iOS
- Verify LFS is installed and running Git LFS Documentation
- Change your Podfile so it requires deployment target 13 or higher.
-platform :ios, '10.0'
+platform :ios, '13.0'- Run
pod install
cd ios && pod install cd ..- Add the following to the
Info.plistfile:
NSCameraUsageDescription: The SDK uses the camera in order to verify the identity of the customer, e.g. in ID scan, Selfie scan and so on.NSLocationWhenInUseUsageDescription: The SDK uses the current user location in order to detect exact location for Geolocation step.NSMicrophoneUsageDescription: The SDK uses microphone for performing a video call during Video Conference step or for doing speech recognition during Video Selfie.
Additional Setup for Android
- Modify
app/build.gradleso that you enablemultiDexEnabledand set the minimum API level to 21:
defaultConfig {
…
multiDexEnabled true
minSdkVersion 21
}- Modify your
build.gradleso it contains GitHub Packages username and password, provided by Incode.
IMPORTANT
Distribution through Artifactory will no longer be supported after September 19th, 2025. If you are currently using Artifactory in your production integration, you must complete the migration to GitHub Packages before this date to ensure uninterrupted access to the SDK.
allprojects {
repositories {
...
+ jcenter()
+ maven {
+ url "https://maven.pkg.github.com/Incode-Technologies-Example-Repos/android-omni-packages"
+ credentials {
+ username = "incode-customers"
+ password = "GITHUB_TOKEN"
+ }
+ }
...
}
}- Add the following dependency to your
app/build.gradle:
+ implementation 'com.android.support:multidex:1.0.3'Other optional dependencies can be added for optimized Face Login features:
- Add
'com.incode.sdk:model-mask-detection:3.0.0'to detect face mask during face login. - Add
'com.incode.sdk:model-liveness-detection:2.0.0'to use local liveness by specifying .hybrid or .localFaceAuthModefor face login. - Add
'com.incode.sdk:model-face-recognition:3.0.0'to use local face recognition by specifying .localFaceAuthModefor face login.
Updating to latest version
Run flutter pub upgrade or flutter packages upgrade, and in case iOS SDK version was updated run pod install --repo-update and pod update IncdOnboarding inside your iOS folder.
Updated 3 days ago
