Fixed naming convention for build config fields

This commit is contained in:
Sad Ellie 2022-07-28 22:57:19 +03:00
parent 266d40f2aa
commit 3bb7ac1d7f
2 changed files with 6 additions and 6 deletions

View File

@ -80,25 +80,25 @@ android {
create(playStore) {
buildConfigField(
"String",
"StoreLink",
"STORE_LINK",
"\"http://play.google.com/store/apps/details?id=com.sadellie.unitto\""
)
}
create(appGallery) {
buildConfigField(
"String",
"StoreLink",
"STORE_LINK",
"\"https://appgallery.huawei.com/app/C105740875\""
)
}
create(ruPlayStore) {
buildConfigField("String", "StoreLink", "\"\"")
buildConfigField("String", "STORE_LINK", "\"\"")
}
create(fdroid) {
// Not uploaded yet, no store link
buildConfigField(
"String",
"StoreLink",
"STORE_LINK",
"\"https://f-droid.org/ru/packages/com.sadellie.unitto\""
)
buildConfigField("Boolean", "ANALYTICS", "false")

View File

@ -134,11 +134,11 @@ fun SettingsScreen(
}
// RATE THIS APP
if (BuildConfig.StoreLink.isNotEmpty()) {
if (BuildConfig.STORE_LINK.isNotEmpty()) {
item {
SettingsListItem(
stringResource(R.string.rate_this_app)
) { openLink(mContext, BuildConfig.StoreLink) }
) { openLink(mContext, BuildConfig.STORE_LINK) }
}
}