Commit 60197bd4 authored by Rafa Hernandez's avatar Rafa Hernandez Committed by Alexander Salas Bastidas

ci(gradle): setup information on gradle properties

parent 8ee86273
......@@ -25,6 +25,6 @@
# create gradle properties
echo org.gradle.jvmargs=-Xmx1536m >> gradle.properties
echo glpi_user=$GLPI_USER >> gradle.properties
echo glpi_password=$GLPI_PASSWORD >> gradle.properties
echo glpi_url=$GLPI_URL >> gradle.properties
echo glpi_user="$GLPI_USER" >> gradle.properties
echo glpi_password="$GLPI_PASSWORD" >> gradle.properties
echo glpi_url="$GLPI_URL" >> gradle.properties
......@@ -17,10 +17,9 @@ android {
buildTypes {
buildTypes.each {
def glpi_user_val = glpi_user ?: "\"\""
def glpi_password_val = glpi_password ?: "\"\""
def glpi_url_val = glpi_url ?: "\"\""
def glpi_user_val = "\"${glpi_user}\"" ?: "\"\""
def glpi_password_val = "\"${glpi_password}\"" ?: "\"\""
def glpi_url_val = "\"${glpi_url}\"" ?: "\"\""
it.buildConfigField 'String', 'GLPI_USER', glpi_user_val
it.buildConfigField 'String', 'GLPI_PASSWORD', glpi_password_val
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment