The fingerprint-android-sdk is a library for Android that determines the device's fingerprint and store it in our backend.
This was developed with Kotlin.
We decided distribute this with jitpack. You have to add the repository that add the posibility to download dependencies from github. Add the jitpack repository to the repositories section in your gradle configuration file:
dependencyResolutionManagement {
...
repositories {
...
maven {url 'https://jitpack.io'}
...
}
}
Now, you have to add the dependency to your module with the following line:
dependencies {
implementation 'com.github.bayonetio:fingerprint-android-sdk:VERSION'
}
This is an example of the use of Fingerprint Android SDK.
import io.bayonet.fingerprint.core.domain.Token
import io.bayonet.fingerprint.services.FingerprintService
...
val fingerprintService = FingerprintService(
this,
"12345678"
)
// Generate the device token
val token: Token = fingerprintService.analyze()