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

Rename buildConfigSuffix.

This commit is contained in:
Cedric Beust 2016-02-08 23:28:46 +04:00
parent 035a205047
commit 6d61747fd5
3 changed files with 5 additions and 5 deletions

View file

@ -12,5 +12,5 @@ interface IBuildConfigContributor : ISimpleAffinity<Project> {
/** /**
* The suffix of the generated BuildConfig, e.g. ".java". * The suffix of the generated BuildConfig, e.g. ".java".
*/ */
val suffix: String val buildConfigSuffix: String
} }

View file

@ -44,7 +44,7 @@ class JavaPlugin @Inject constructor(val javaCompiler: JavaCompiler)
= maybeCompilerArgs(project, configurationFor(project)?.compilerArgs ?: listOf<String>()) = maybeCompilerArgs(project, configurationFor(project)?.compilerArgs ?: listOf<String>())
// ICompilerContributor // ICompilerContributor
override val sourceSuffixes = listOf("java") override val sourceSuffixes = listOf(".java")
override fun compile(project: Project, context: KobaltContext, info: CompilerActionInfo) : TaskResult { override fun compile(project: Project, context: KobaltContext, info: CompilerActionInfo) : TaskResult {
val result = val result =
@ -64,7 +64,7 @@ class JavaPlugin @Inject constructor(val javaCompiler: JavaCompiler)
// IBuildConfigContributor // IBuildConfigContributor
override fun affinity(project: Project) = if (project.projectExtra.suffixesFound.contains("java")) 1 else 0 override fun affinity(project: Project) = if (project.projectExtra.suffixesFound.contains("java")) 1 else 0
override val suffix = ".java" override val buildConfigSuffix = ".java"
override fun generateBuildConfig(project: Project, context: KobaltContext, packageName: String, override fun generateBuildConfig(project: Project, context: KobaltContext, packageName: String,
variant: Variant, buildConfigs: List<BuildConfig>): String { variant: Variant, buildConfigs: List<BuildConfig>): String {

View file

@ -101,7 +101,7 @@ class KotlinPlugin @Inject constructor(val executors: KobaltExecutors)
// ICompilerContributor // ICompilerContributor
override val sourceSuffixes = listOf("kt") override val sourceSuffixes = listOf(".kt")
override fun compile(project: Project, context: KobaltContext, info: CompilerActionInfo) : TaskResult { override fun compile(project: Project, context: KobaltContext, info: CompilerActionInfo) : TaskResult {
val result = val result =
@ -129,7 +129,7 @@ class KotlinPlugin @Inject constructor(val executors: KobaltExecutors)
// IBuildConfigContributor // IBuildConfigContributor
override fun affinity(project: Project) = if (project.projectExtra.suffixesFound.contains("kotlin")) 2 else 0 override fun affinity(project: Project) = if (project.projectExtra.suffixesFound.contains("kotlin")) 2 else 0
override val suffix = ".kt" override val buildConfigSuffix = ".kt"
override fun generateBuildConfig(project: Project, context: KobaltContext, packageName: String, override fun generateBuildConfig(project: Project, context: KobaltContext, packageName: String,
variant: Variant, buildConfigs: List<BuildConfig>): String { variant: Variant, buildConfigs: List<BuildConfig>): String {