Environment variable in gradle properties

0

I am configuring an android plugin to automate the upload of the apk to production from the android studio itself.

In an example that I follow, the following appears (gradle.properties):

AppKeystoreReleaseLocation = keystore/release.keystore
AppReleaseKeyAlias = UNDEFINED
AppReleaseStorePassword = UNDEFINED
AppReleaseKeyPassword = UNDEFINED

And in the build.gradle:

signingConfigs {
    // You must set up an environment var before release signing
    // Run: export APP_KEY={password}
    release {
        storeFile file("${AppKeystoreReleaseLocation}")
        keyAlias "${AppReleaseKeyAlias}"
        storePassword "${AppReleaseStorePassword}"
        keyPassword "${AppReleaseKeyPassword}"
    }
}

Should I just type export AppReleaseKeyPassword=mypassword in the console and it will automatically pick it up?

    
asked by Pablo Cegarra 14.08.2017 в 13:49
source

0 answers