All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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()) }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy