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:
Родитель
960ad06388
Коммит
7cb8377c20
|
@ -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\"" : ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче