main.com.codingfeline.buildkonfig.compiler.TargetConfig.kt Maven / Gradle / Ivy
The newest version!
package com.codingfeline.buildkonfig.compiler
import java.io.Serializable
open class TargetConfig(val name: String) : Serializable {
var flavor: String = ""
val fieldSpecs = mutableMapOf()
fun copyFieldSpecs(): Map = fieldSpecs.mapValues { it.value.copy() }
fun copy(): TargetConfig = TargetConfig(name).also { it.fieldSpecs.putAll(copyFieldSpecs()) }
}