Native Android
š¤ Native Android Setup
š Prerequisites
Before integrating the SDK, make sure your development environment is set up.
- Android Studio (latest)
- SDK 23+ and Jetpack support
- Required AAR files:
Aware-FaceCapture.aar,Aware-FaceCapture-DeviceControl.aar - Physical android device for testing
SDK Files
- AAR Libraries:
Aware-FaceCapture.aarAware-FaceCapture-DeviceControl.aar
- Required assets:
regula.licensedb.dat- PKD Certificate (
*.ldif)
Configuration
- Android Studio (latest)
- SDK 23+ with Jetpack
- Physical Android device required
š² Additional Configurations for Native Android (Ditto ID SDK)
This guide outlines all the setup steps required to configure and integrate Ditto ID SDK in a Native Android application.
1. šļø Adding and Embedding Ditto ID SDKs in Android Studio Project
Copy SDK AAR Files
Copy the following SDK files to the libs directory of your Android project:
Aware-FaceCapture.aarAware-FaceCapture-DeviceControl.aar
Add AARs as Dependencies
- Open Android Studio
- Navigate to:
File>Project Structure>Dependencies - Select your app module
- Click on the
+icon and choose JAR/AAR Dependency - Add each
.aarfile - Set the configuration to
implementation - Click Apply and OK
2. š§± Repository Settings (settings.gradle)
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
jcenter()
maven {
url "https://maven.regulaforensics.com/RegulaDocumentReader/"
}
}
}3. š¦ Add Module Dependencies (build.gradle)
implementation 'com.regula.documentreader.core:fullauthrfid:7.7.13549@aar'
implementation('com.regula.documentreader:api:7.7.11299@aar') {
transitive = true
}4. š Add Required Asset Files
A. License
Copy regula.license to:
android/app/src/main/res/raw/
Create the
rawfolder if it doesn't exist.
B. Database
Copy db.dat to:
android/app/src/main/assets/Regula/
C. PKD Certificate
Copy the .ldif certificate file to:
android/app/src/main/assets/certificates/
5. š Build and Run Project
Run the following command to sync and build:
./gradlew syncā
Prerequisites
Ensure:
- All Ditto ID SDK modules are installed correctly.
- There are no compile-time errors in your code.
š§āš» Native IDEs
- Use Android Studio to build and run Android apps.
- Use Xcode to build and run iOS apps.
š” Before running the app in Xcode, navigate to the iOS project directory and execute:
pod installā ļø Important Notes
- The Ditto ID IDV SDK supports physical devices only for testing. Simulators/emulators are not supported.
- Make sure the following files are correctly placed and bundled:
regula.licensedb.dat- PKD Certificate (
.ldiffor Android,Certificates.bundlefor iOS)
Updated 2 months ago
