Getting started
System requirements
- Android minimum SDK: The SmartOffice Developer Kit Library (SODK) needs Android version 5.0 or newer. Make sure that the
minSdkVersionin your app'sbuild.gradleis at least 21.
android {
defaultConfig {
minSdkVersion 21
...
}
...
}
Adding the SDK to your project
In order to include SODK in your app you need to use the Gradle build system. In the libs folder of your Android project you should have five AAR files which are all required by SODK.
When ready, in your project build.gradle add the following SODK dependancies:
dependencies {
/// SODK libraries
implementation(name:'sodk_resources', ext:'aar')
implementation(name:'editor', ext:'aar')
implementation(name:'solib', ext:'aar')
implementation(name:'wheel', ext:'aar')
implementation(name:'mupdf', ext:'aar')
}
Also ensure that your build.gradle is able to locate your project's libs folder with the following:
repositories {
flatDir {
dirs 'libs'
}
}
Verify your integration
To ensure you have correctly added SODK to your project ensure that your source code files can reference import com.artifex.solib.SOLib without error.
