Skip to main content

Quickstart

The Android SDK is of the library is made available as a Maven package.

Installation

Configure Version Catalog

Add the SDK to your gradle/libs.versions.toml file to manage the library version and dependency definition in a single place.

Define Version

[versions]
# Current version of the Document Reading SDK
documentReadingVersion = "1.1.0"

Define Library

[libraries]
# The core document reading module
document-reading = { name = "document-reading", module = "bio.mobai:document", version.ref = "documentReadingVersion" }

Configure Maven Repositories

Add the Innovatrics and Mobai Maven endpoints to your project-level repository configuration.

Repository Configuration (settings.gradle.kts)

// settings.gradle.kts or build.gradle.kts (Project)
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven {
url = uri("https://maven.innovatrics.com/releases")
}
maven {
url = uri("https://gitlab.com/api/v4/projects/36441060/packages/maven")
}
}
}

Add Implementation Dependency

Finally, add the library to your module-level build file.

Module Dependency (app/build.gradle.kts)

// build.gradle.kts (Module)
dependencies {
// Reference the library defined in the version catalog
implementation(libs.document.reading)
}