Skip to content

Installation ​

Maven Repository ​

Add the kinegram.digital Maven repository to your settings file:

kotlin
// settings.gradle.kts
dependencyResolutionManagement {
    repositories {
        exclusiveContent {
            forRepository {
                maven {
                    name = "kinegram"
                    url = uri("https://maven.registry.kinegram.digital/releases")
                    // Reads kinegramUsername and kinegramPassword.
                    credentials(PasswordCredentials::class)
                    authentication { create<BasicAuthentication>("basic") }
                }
            }
            filter { includeGroupByRegex("com\\.kinegram\\..*") }
        }
        google()
        mavenCentral()
    }
}
groovy
// settings.gradle
dependencyResolutionManagement {
    repositories {
        exclusiveContent {
            forRepository {
                maven {
                    name = 'kinegram'
                    url = 'https://maven.registry.kinegram.digital/releases'
                    // Reads kinegramUsername and kinegramPassword.
                    credentials(PasswordCredentials)
                    authentication { basic(BasicAuthentication) }
                }
            }
            filter { includeGroupByRegex 'com\\.kinegram\\..*' }
        }
        google()
        mavenCentral()
    }
}

Set your credentials in your ~/.gradle/gradle.properties (or project-level gradle.properties):

properties
kinegramUsername=<your-user-name>
kinegramPassword=<your-password>

Gradle Dependency ​

Add the SDK dependency to your app-level build file. Replace <version> with the version you want to use (see Changelog).

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

AndroidManifest ​

Declare ScanActivity in your AndroidManifest.xml:

xml
<?xml version="1.0" encoding="utf-8"?>
<manifest …>
  <application …>
    …
    <activity
      android:name="com.kinegram.android.scansdk.activity.ScanActivity"
      android:theme="@style/ScanSDKTheme"
      android:exported="true"/>
  </application>
</manifest>