Merged PR 258993: Add conditional use of secret global gradle variables

Conditional variables so you don't need them in your local gradle file. Demo now runs without them.

Related work items: #713635
This commit is contained in:
Emily Lynam 2019-04-19 22:27:55 +00:00
Родитель 960ad06388
Коммит 7cb8377c20
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -27,9 +27,9 @@ android {
signingConfigs {
dogfood {
keyAlias 'Dogfood'
keyPassword "$signingKeyPassword"
keyPassword = project.hasProperty("signingKeyPassword") ? "$signingKeyPassword" : ""
storeFile file('keystore.jks')
storePassword "$signingKeyStorePassword"
storePassword = project.hasProperty("signingKeyStorePassword") ? "$signingKeyStorePassword" : ""
}
}
flavorDimensions 'distribution'
@ -41,7 +41,7 @@ android {
dimension 'distribution'
applicationIdSuffix '.df'
signingConfig signingConfigs.dogfood
buildConfigField "String", "APP_CENTER_SECRET", "\"$appCenterSecret\""
buildConfigField "String", "APP_CENTER_SECRET", project.hasProperty("appCenterSecret") ? "\"$appCenterSecret\"" : ""
}
}
}