Getting started
Sample Project
If you prefer sample projects over documentation, check out our Docutain SDK Kotlin Multiplatform Photo Payment Sample on GitHub.
Requirements
| JDK | 17 for the Android build |
| Android Gradle Plugin | A version that supports API level 37, such as 9.1.1 or newer |
| Android | API level 24 or higher; compileSdk 37 |
| iOS | 13.0 or higher |
| iOS builds | current Xcode and CocoaPods |
| Document scanning | A device with a rear-facing camera |
Docutain SDK Dependencies
Add the Docutain SDK to the commonMain source set of your Kotlin Multiplatform module:
kotlin {
sourceSets {
commonMain.dependencies {
implementation("de.docutain:Docutain-SDK-KMP:1.0.0")
}
}
}
iOS app dependency
The iOS app also needs the native Docutain SDK. Add the DocutainSdk CocoaPod to the app's Podfile:
platform :ios, '13.0'
target 'YourApp' do
use_frameworks!
pod 'DocutainSdk', '1.9.0'
end
Then run pod install for the iOS app.
After adding the dependency, initialize the SDK before using any feature.