Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Circle CI #16

Merged
merged 8 commits into from
Jan 9, 2018
Next Next commit
Do not print Fabric API key/secret to logs
  • Loading branch information
vgaidarji committed Jan 7, 2018
commit b9e8a181136d7e4125c358f34376bdda2d6ccb0c
13 changes: 10 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,23 @@ def getVersionName = { ->
}

def getFabricApiKey = { ->
def noKey = "0000000000000000000000000000000000000000"
def key = project.hasProperty('fabricApiKey') ? fabricApiKey.toString() :
System.getenv("FABRIC_API_KEY") ?: "0000000000000000000000000000000000000000"
println "Using Fabric API key: " + key
System.getenv("FABRIC_API_KEY") ?: noKey
if (key == noKey)
println "Fabric API key not found"
else
println "Fabric API key found"
return key
}

def getFabricApiSecret = { ->
def secret = project.hasProperty('fabricApiSecret') ? fabricApiSecret.toString() :
System.getenv("FABRIC_API_SECRET") ?: ""
println "Using Fabric API Secret: " + secret
if (secret.isEmpty())
println "Fabric API Secret not found"
else
println "Fabric API Secret found"
return secret
}

Expand Down