Skip to main content

Getting started

Sample Project​

If you prefer sample projects over documentation, check out our Docutain SDK Kotlin Multiplatform Photo Payment Sample on GitHub.

Requirements​

JDK17 for the Android build
Android Gradle PluginA version that supports API level 37, such as 9.1.1 or newer
AndroidAPI level 24 or higher; compileSdk 37
iOS13.0 or higher
iOS buildscurrent Xcode and CocoaPods
Document scanningA 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.