[#271] Disable publishing of testnet

This commit is contained in:
Carter Jernigan 2022-03-10 15:09:05 -05:00 committed by Carter Jernigan
parent ee9e845322
commit bb43d2f7a6
1 changed files with 8 additions and 1 deletions

View File

@ -37,9 +37,10 @@ android {
flavorDimensions.add("network")
val testNetFlavorName = "zcashtestnet"
productFlavors {
// would rather name them "testnet" and "mainnet" but product flavor names cannot start with the word "test"
create("zcashtestnet") {
create(testNetFlavorName) {
dimension = "network"
applicationId = "$packageName.testnet" // allow to be installed alongside mainnet
matchingFallbacks.addAll(listOf("zcashtestnet", "debug"))
@ -121,6 +122,12 @@ android {
)
)
}
playConfigs {
register(testNetFlavorName) {
enabled.set(false)
}
}
}
dependencies {