mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 08:45:27 +02:00
Added missing flavors and store links
This commit is contained in:
parent
c7c9c557bb
commit
35961e8629
@ -61,7 +61,9 @@ android {
|
|||||||
productFlavors {
|
productFlavors {
|
||||||
create("playStore") {}
|
create("playStore") {}
|
||||||
create("appGallery") {}
|
create("appGallery") {}
|
||||||
create("ruPlayStore") {}
|
create("ruStore") {}
|
||||||
|
create("nashStore") {}
|
||||||
|
create("ruMarket") {}
|
||||||
create("fdroid") {}
|
create("fdroid") {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,9 @@ internal fun Project.configureKotlinAndroid(
|
|||||||
productFlavors {
|
productFlavors {
|
||||||
create("playStore") {}
|
create("playStore") {}
|
||||||
create("appGallery") {}
|
create("appGallery") {}
|
||||||
create("ruPlayStore") {}
|
create("ruStore") {}
|
||||||
|
create("nashStore") {}
|
||||||
|
create("ruMarket") {}
|
||||||
create("fdroid") {}
|
create("fdroid") {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,28 +30,22 @@ android {
|
|||||||
|
|
||||||
productFlavors {
|
productFlavors {
|
||||||
getByName("playStore") {
|
getByName("playStore") {
|
||||||
buildConfigField(
|
storeLink("http://play.google.com/store/apps/details?id=com.sadellie.unitto")
|
||||||
"String",
|
|
||||||
"STORE_LINK",
|
|
||||||
"\"http://play.google.com/store/apps/details?id=com.sadellie.unitto\""
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
getByName("appGallery") {
|
getByName("appGallery") {
|
||||||
buildConfigField(
|
storeLink("https://appgallery.huawei.com/app/C105740875")
|
||||||
"String",
|
|
||||||
"STORE_LINK",
|
|
||||||
"\"https://appgallery.huawei.com/app/C105740875\""
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
getByName("ruPlayStore") {
|
getByName("nashStore") {
|
||||||
buildConfigField("String", "STORE_LINK", "\"\"")
|
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") {
|
getByName("fdroid") {
|
||||||
buildConfigField(
|
storeLink("https://github.com/sadellie/unitto")
|
||||||
"String",
|
|
||||||
"STORE_LINK",
|
|
||||||
"\"https://github.com/sadellie/unitto\""
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,3 +57,11 @@ android {
|
|||||||
this.warning.add("MissingTranslation")
|
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