Skip to content

Installation ​

Maven Repository ​

The eMRTD Connector and the eMRTD library it uses come from the kinegram.digital Maven repository. Add the repository to your settings file:

kotlin
// settings.gradle.kts
dependencyResolutionManagement {
    repositories {
        exclusiveContent {
            forRepository {
                maven {
                    name = "kinegram"
                    url = uri("https://maven.registry.kinegram.digital/releases")
                }
            }
            filter { includeGroupByRegex("com\\.kinegram\\..*") }
        }
        google()
        mavenCentral()
    }
}
groovy
// settings.gradle
dependencyResolutionManagement {
    repositories {
        exclusiveContent {
            forRepository {
                maven {
                    name = 'kinegram'
                    url = 'https://maven.registry.kinegram.digital/releases'
                }
            }
            filter { includeGroupByRegex 'com\\.kinegram\\..*' }
        }
        google()
        mavenCentral()
    }
}

Dependency ​

Add the eMRTD Connector dependency to your app's Gradle build configuration.

Replace <version> with the version you want to use (see Changelog).

kotlin
// app/build.gradle.kts
dependencies {
    implementation("com.kinegram.android:emrtdconnector:<version>")
}
groovy
// app/build.gradle
dependencies {
    implementation 'com.kinegram.android:emrtdconnector:<version>'
}

You also need to resolve a file-duplication conflict in dependencies:

kotlin
// build.gradle.kts
android {
    // Resolve all conflicts of duplicated files in dependencies
    packagingOptions.resources.excludes += "META-INF/versions/9/OSGI-INF/MANIFEST.MF"
}
groovy
// build.gradle
android {
    packagingOptions {
        resources {
            excludes += 'META-INF/versions/9/OSGI-INF/MANIFEST.MF'
        }
    }
}