[#271] Disable publishing of testnet
This commit is contained in:
parent
ee9e845322
commit
bb43d2f7a6
|
@ -37,9 +37,10 @@ android {
|
||||||
|
|
||||||
flavorDimensions.add("network")
|
flavorDimensions.add("network")
|
||||||
|
|
||||||
|
val testNetFlavorName = "zcashtestnet"
|
||||||
productFlavors {
|
productFlavors {
|
||||||
// would rather name them "testnet" and "mainnet" but product flavor names cannot start with the word "test"
|
// would rather name them "testnet" and "mainnet" but product flavor names cannot start with the word "test"
|
||||||
create("zcashtestnet") {
|
create(testNetFlavorName) {
|
||||||
dimension = "network"
|
dimension = "network"
|
||||||
applicationId = "$packageName.testnet" // allow to be installed alongside mainnet
|
applicationId = "$packageName.testnet" // allow to be installed alongside mainnet
|
||||||
matchingFallbacks.addAll(listOf("zcashtestnet", "debug"))
|
matchingFallbacks.addAll(listOf("zcashtestnet", "debug"))
|
||||||
|
@ -121,6 +122,12 @@ android {
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
playConfigs {
|
||||||
|
register(testNetFlavorName) {
|
||||||
|
enabled.set(false)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
Loading…
Reference in New Issue