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

View File

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