1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00
This commit is contained in:
Cedric Beust 2016-02-04 22:24:09 +04:00
parent 691e59f0cb
commit 039d2f1bc2
5 changed files with 8 additions and 8 deletions

View file

@ -9,7 +9,7 @@ import com.beust.kobalt.api.Project
/**
* Data that is useful for projects to have but should not be specified in the DSL.
*/
interface IProjectInfo {
interface IBuildConfig {
/**
* If at least one build config was found either on the project or the variant, this function
* will be used to generate the BuildConfig file with the correct language.
@ -19,7 +19,7 @@ interface IProjectInfo {
}
abstract class BaseProjectInfo : IProjectInfo {
abstract class BaseBuildConfig : IBuildConfig {
abstract fun generate(field: BuildConfigField) : String
fun generate(type: String, name: String, value: Any) = generate(BuildConfigField(type, name, value))