Skip to content

Keyri-Co/keyri-checksum-checker-plugin

Repository files navigation

Gradle plugin for creating and check checksums with Keyri SDK on Android

Overview

This repository contains the open source code for Keyri Checksum Checker Plugin.

Lint GitHub release

Contents

The latest source code of the Keyri Android SDK can be found here: Releases

Integration

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")

Usage

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.

About

Gradle plugin for Android project to get and upload APK files checksums on Keyri. This should increase code tampering protection.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages