Sign APK without putting keystore info in build.gradle

后端 未结 12 978
栀梦
栀梦 2020-11-28 17:51

I am trying to setup signing process so that keystore password and key password are not stored in the project\'s build.gradle file.

Cur

12条回答
  •  佛祖请我去吃肉
    2020-11-28 18:24

    This is how I do it. Use Environment Variables

      signingConfigs {
        release {
            storeFile file(System.getenv("KEYSTORE"))
            storePassword System.getenv("KEYSTORE_PASSWORD")
            keyAlias System.getenv("KEY_ALIAS")
            keyPassword System.getenv("KEY_PASSWORD")
        }
    

提交回复
热议问题