If project.xml doesn't define a certificate, instead check for a file named signing.properties.

This commit is contained in:
player-03
2016-05-28 04:59:36 -04:00
committed by Joshua Granick
parent b027b7764f
commit 83d561481d

View File

@@ -21,6 +21,21 @@ android {
keyPassword project.KEY_STORE_ALIAS_PASSWORD
}
}
::else::
File signingFile = file('signing.properties');
if(signingFile.exists()) {
Properties signing = new Properties()
signing.load(new FileInputStream(signingFile))
signingConfigs {
release {
storeFile file(signing["KEY_STORE"])
storePassword signing["KEY_STORE_PASSWORD"]
keyAlias signing["KEY_STORE_ALIAS"]
keyPassword signing["KEY_STORE_ALIAS_PASSWORD"]
}
}
}
::end::
buildTypes {