Testing circle ci.

This commit is contained in:
Amine
2017-05-29 19:54:35 +02:00
committed by Amine Bou
parent e5e1b2f5a5
commit 0283e49c27
2 changed files with 57 additions and 4 deletions

View File

@@ -115,10 +115,20 @@ dependencies {
}
apply plugin: 'com.google.gms.google-services'
afterEvaluate {
initFabricPropertiesIfNeeded()
}
apply plugin: 'com.google.gms.google-services'
def initFabricPropertiesIfNeeded() {
def propertiesFile = file('fabric.properties')
if (!propertiesFile.exists()) {
def commentMessage = "This is autogenerated fabric property from system environment to prevent key to be committed to source control."
ant.propertyfile(file: "fabric.properties", comment: commentMessage) {
entry(key: "apiSecret", value: crashlyticsdemoApisecret)
entry(key: "apiKey", value: crashlyticsdemoApikey)
}
}
}