SmartOffice Developer Documentation

SmartOffice Developer Documentation

    ›Android SDK

    Introduction

    • About our SDKs

    Android SDK

    • Getting started
    • Document lifecycle
    • File operations
    • Word documents
    • Excel documents
    • Powerpoint documents
    • PDF documents

    iOS SDK

    • Getting started
    • Document lifecycle
    • Document handlers
    • Word documents
    • Excel documents
    • Powerpoint documents
    • PDF documents

    macOS SDK

    • Getting started
    • Document lifecycle
    • File operations
    • Word documents
    • Excel documents
    • Powerpoint documents
    • PDF documents

    Windows SDK

    • Getting started
    • Document lifecycle
    • File operations
    • Word documents
    • Excel documents
    • Powerpoint documents
    • PDF documents

    Getting started

    System requirements

    • Android minimum SDK: The SmartOffice Developer Kit Library (SODK) needs Android version 5.0 or newer. Make sure that the minSdkVersion in your app's build.gradle is 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.

    ← PreviousDocument lifecycle →
    • System requirements
    • Adding the SDK to your project
    • Verify your integration
    SmartOffice Developer Documentation
    Copyright © 2020 Artifex Software Inc. All rights reserved.