mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Rename buildConfigSuffix.
This commit is contained in:
parent
035a205047
commit
6d61747fd5
3 changed files with 5 additions and 5 deletions
|
@ -12,5 +12,5 @@ interface IBuildConfigContributor : ISimpleAffinity<Project> {
|
|||
/**
|
||||
* The suffix of the generated BuildConfig, e.g. ".java".
|
||||
*/
|
||||
val suffix: String
|
||||
val buildConfigSuffix: String
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ class JavaPlugin @Inject constructor(val javaCompiler: JavaCompiler)
|
|||
= maybeCompilerArgs(project, configurationFor(project)?.compilerArgs ?: listOf<String>())
|
||||
|
||||
// ICompilerContributor
|
||||
override val sourceSuffixes = listOf("java")
|
||||
override val sourceSuffixes = listOf(".java")
|
||||
|
||||
override fun compile(project: Project, context: KobaltContext, info: CompilerActionInfo) : TaskResult {
|
||||
val result =
|
||||
|
@ -64,7 +64,7 @@ class JavaPlugin @Inject constructor(val javaCompiler: JavaCompiler)
|
|||
// IBuildConfigContributor
|
||||
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,
|
||||
variant: Variant, buildConfigs: List<BuildConfig>): String {
|
||||
|
|
|
@ -101,7 +101,7 @@ class KotlinPlugin @Inject constructor(val executors: KobaltExecutors)
|
|||
|
||||
// ICompilerContributor
|
||||
|
||||
override val sourceSuffixes = listOf("kt")
|
||||
override val sourceSuffixes = listOf(".kt")
|
||||
|
||||
override fun compile(project: Project, context: KobaltContext, info: CompilerActionInfo) : TaskResult {
|
||||
val result =
|
||||
|
@ -129,7 +129,7 @@ class KotlinPlugin @Inject constructor(val executors: KobaltExecutors)
|
|||
// IBuildConfigContributor
|
||||
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,
|
||||
variant: Variant, buildConfigs: List<BuildConfig>): String {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue