All Projects → dodocat → AndroidSigning

dodocat / AndroidSigning

Licence: other
Config keyStore and key in a xml and sign your apk easily.

Programming Languages

groovy
2714 projects

Projects that are alternatives of or similar to AndroidSigning

Github-Android-Action
Android Github Action that builds Android project, runs unit tests and generates debug APK, builds for Github Actions hackathon
Stars: ✭ 29 (-54.69%)
Mutual labels:  android-build

Android Signing Automatic Config

Config keyStore and key in a xml and sign your apk easily.

Usage

Default config file is ~/.android_key_store.xml, sample config as:

<keystores>
    <keystore>
        <store-name>keystore1</store-name>
        <store-path>~/keys/keystore1.key</store-path>
        <store-password>password</store-password>
        <aliases>
            <alias>
                <alias-name>alias1</alias-name>
                <alias-password>password</alias-password>
            </alias>
        </aliases>
    </keystore>

    <keystore>
        <store-name>keystore2</store-name>
        <store-path>~/keys/keystore2.key</store-path>
        <store-password>password</store-password>
        <aliases>
            <alias>
                <alias-name>alias1</alias-name>
                <alias-password>password</alias-password>
            </alias>
            <alias>
                <alias-name>alias2</alias-name>
                <alias-password>password</alias-password>
            </alias>
        </aliases>
    </keystore>
</keystores>

The default key files folder is ~/.android_keys if key files in there. Only file name is needed in the config xml.

In top level build.gradle add this to classpath

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.0.0'
        classpath 'org.quanqi:android-signing:0.1.1'

    }
}

apply plugin in application module

apply plugin: 'org.quanqi.android-signing'

Now in your signingConfigs these signingConfig were available:

  • keystore1_alias1
  • keystore2_alias1
  • keystore2_alias2

Enjoy.

Change log

v0.1.0

  • First version published basic feature.

v0.1.1

  • minor fix.

v0.1.2

  • add default key file location.
  • change java sourceCompatibility to 1.6

v0.1.3

  • fix default path error.

LICENSE

APACHE-2

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].