Skip to content

Android V3 signature itself supports old-key rotation, but the AGP plugin does not support this feature. Therefore, if you need to update your Android app signing key, you can use this plugin.

License

Notifications You must be signed in to change notification settings

liuxb-tofu/V3RotateSignerPlugin

Repository files navigation

V3RotateSignerPlugin

Read this in other languages: English, 简体中文.

Android V3 signature itself supports old-key rotation, but the AGP plugin does not support this feature. Therefore, if you need to update your Android app signing key, you can use this plugin.

How to use

plugins {
    // Put it at the bottom to make sure it executes last
    id("io.github.blookliu.v3-rotate-signer")
}

V3SigningConfig {
    oldKeyStore.storeFile = file("$projectDir/keystores/old-key.keystore")
    oldKeyStore.storePassword = "abcd1234"

    newKeyStore.storeFile = file("$projectDir/keystores/new-key.keystore")
    newKeyStore.storePassword = "abcd1234"

    lineage = file("$projectDir/keystores/lineage")
    // Whether to use an independent gradle task, v3RotateSign${variantName}
    useSingleTask = false
}

About

Android V3 signature itself supports old-key rotation, but the AGP plugin does not support this feature. Therefore, if you need to update your Android app signing key, you can use this plugin.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages