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 NFC Scanning SDK
nfcReadingVersion = "1.1.0"
Define Library
[libraries]
# The core nfc scanning module
nfc-reading = { name = "nfc-reading", module = "com.mobai:nfc_reading", version.ref = "nfcReadingVersion" }
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
Module Dependency (app/build.gradle.kts)
// build.gradle.kts (Module)
dependencies {
// Reference the library defined in the version catalog
implementation(libs.nfc.reading)
}