1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Fix tests.

This commit is contained in:
Cedric Beust 2015-11-27 09:45:20 -08:00
parent 146d6702c5
commit dfdd5ba06a
2 changed files with 2 additions and 5 deletions

View file

@ -131,7 +131,7 @@ class Variant(val initialProductFlavor: ProductFlavorConfig? = null,
companion object {
val DEFAULT_PRODUCT_FLAVOR = ProductFlavorConfig("")
val DEFAULT_BUILD_TYPE = BuildTypeConfig("debug")
val DEFAULT_BUILD_TYPE = BuildTypeConfig("")
fun allVariants(project: Project): List<Variant> {
val result = arrayListOf<Variant>()

View file

@ -105,10 +105,7 @@ open public class Project(
productFlavors.put(name, pf)
}
val buildTypes = hashMapOf(
"debug" to BuildTypeConfig("debug"),
"release" to BuildTypeConfig("release")
)
val buildTypes = hashMapOf<String, BuildTypeConfig>()
fun addBuildType(name: String, bt: BuildTypeConfig) {
buildTypes.put(name, bt)