sign.gradle 783 B

12345678910111213141516
  1. def signingConfigFile='config/sign.properties'
  2. Properties localProperties = new Properties()
  3. localProperties.load(project.rootProject.file(signingConfigFile).newDataInputStream())
  4. def keyAliasStr = localProperties.getProperty("signing.keyAlias",null)
  5. def keyPasswordStr = localProperties.getProperty("signing.keyPassword",null)
  6. def storeFileStr = localProperties.getProperty("signing.storeFile",null)
  7. def storePasswordStr = localProperties.getProperty("signing.storePassword",null)
  8. ext{
  9. propertyHaveSigningConfigs = (keyAliasStr != null && keyPasswordStr != null && storeFileStr != null && storePasswordStr != null)
  10. propertyStoreFileStr = storeFileStr
  11. propertyStorePwdStr = storePasswordStr
  12. propertyKeyAliasStr = keyAliasStr
  13. propertyKeyPwdStr = keyPasswordStr
  14. }