smile_identity_plugin 0.0.1
smile_identity_plugin: ^0.0.1 copied to clipboard
Wraps official iOS and Android SmileIdentity SDKs.
smile_identity_plugin #
Wraps official iOS and Android SmileIdentity SDKs.
Getting Started #
Android Set-up #
Add
smile_config.jsonfile in android/app folder
In android/app/build.gradle
- Add
apply plugin: 'com.smileidentity.smile-id-android' - Add the following dependecies:
dependecies {
...
implementation 'com.smileidentity:smile-id-sdk:7.3.27'
implementation 'com.smileidentity:smile-id-ui:1.0.10'
implementation 'com.smileidentity:netjava:1.0.4'
}
- Add the following packaging options
packagingOptions {
exclude 'META-INF/androidx.*'
exclude 'androidx.*'
exclude 'META-INF/DEPENDENCIES'
}
- The
minSdkVersionshould be atleast 19
In android/build.gradle
- Add the following in the
buildscriptsection
buildscript {
dependencies {
...
classpath 'com.smileidentity:smile-id-android:1.0.1'
}
repositories {
...
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
}
iOS Set-up #
In your ios/Runner folder:
Add your
smile_config.jsonfile
Set
NSCameraUsageDescriptionin yourinfo.plistfile Example:
<key>NSCameraUsageDescription</key>
<string>Using Camera for Smile Identity</string>
In your
ios/Runner/Podfilefile, add the following pods:
target 'Runner' do
...
pod 'Smile_Identity_SDK'
pod 'MaterialComponents/Snackbar'
...
end
Set
platform :ios, '13.0'