Gradle plugin for creating and check checksums with Keyri SDK on Android
This repository contains the open source code for Keyri Checksum Checker Plugin.
The latest source code of the Keyri Android SDK can be found here: Releases
Using the plugins DSL:
plugins {
id("com.keyri.checksumchecker.plugin") version "$latestPluginVersion"
}
Using legacy plugin application:
buildscript {
repositories {
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
dependencies {
classpath("com.keyri:plugin:$latestPluginVersion")
}
}
apply(plugin = "com.keyri.checksumchecker.plugin")
Add keyriChecker
extension to your app build.gradle
file:
android {
defaultConfig {
// ...
versionName = "1.0"
}
keyriChecker {
appKey = "[Your appKey]"
versionName = defaultConfig.versionName
bundleFullPath = "full/path/to/your/bundle"
}
// ...
}
After generating bundle call keyriChecksumCheck
task:
./gradlew keyriChecksumCheck
This will calculate bundle checksum and automatically send it to server for next checks.