mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-18 16:25:27 +02:00
Added missing flavors and store links
This commit is contained in:
parent
c7c9c557bb
commit
35961e8629
@ -61,7 +61,9 @@ android {
|
||||
productFlavors {
|
||||
create("playStore") {}
|
||||
create("appGallery") {}
|
||||
create("ruPlayStore") {}
|
||||
create("ruStore") {}
|
||||
create("nashStore") {}
|
||||
create("ruMarket") {}
|
||||
create("fdroid") {}
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,9 @@ internal fun Project.configureKotlinAndroid(
|
||||
productFlavors {
|
||||
create("playStore") {}
|
||||
create("appGallery") {}
|
||||
create("ruPlayStore") {}
|
||||
create("ruStore") {}
|
||||
create("nashStore") {}
|
||||
create("ruMarket") {}
|
||||
create("fdroid") {}
|
||||
}
|
||||
|
||||
|
@ -30,28 +30,22 @@ android {
|
||||
|
||||
productFlavors {
|
||||
getByName("playStore") {
|
||||
buildConfigField(
|
||||
"String",
|
||||
"STORE_LINK",
|
||||
"\"http://play.google.com/store/apps/details?id=com.sadellie.unitto\""
|
||||
)
|
||||
storeLink("http://play.google.com/store/apps/details?id=com.sadellie.unitto")
|
||||
}
|
||||
getByName("appGallery") {
|
||||
buildConfigField(
|
||||
"String",
|
||||
"STORE_LINK",
|
||||
"\"https://appgallery.huawei.com/app/C105740875\""
|
||||
)
|
||||
storeLink("https://appgallery.huawei.com/app/C105740875")
|
||||
}
|
||||
getByName("ruPlayStore") {
|
||||
buildConfigField("String", "STORE_LINK", "\"\"")
|
||||
getByName("nashStore") {
|
||||
storeLink("https://store.nashstore.ru/store/627de8394891a527a6efe56a")
|
||||
}
|
||||
getByName("ruStore") {
|
||||
storeLink("https://apps.rustore.ru/app/com.sadellie.unitto")
|
||||
}
|
||||
getByName("ruMarket") {
|
||||
storeLink("https://store.ruplay.market/app/com.sadellie.unitto")
|
||||
}
|
||||
getByName("fdroid") {
|
||||
buildConfigField(
|
||||
"String",
|
||||
"STORE_LINK",
|
||||
"\"https://github.com/sadellie/unitto\""
|
||||
)
|
||||
storeLink("https://github.com/sadellie/unitto")
|
||||
}
|
||||
}
|
||||
|
||||
@ -63,3 +57,11 @@ android {
|
||||
this.warning.add("MissingTranslation")
|
||||
}
|
||||
}
|
||||
|
||||
fun com.android.build.api.dsl.VariantDimension.storeLink(url: String) {
|
||||
buildConfigField(
|
||||
"String",
|
||||
"STORE_LINK",
|
||||
"\"${url}\""
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user