mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Not used.
This commit is contained in:
parent
02f9449050
commit
d4d00fb447
1 changed files with 0 additions and 10 deletions
|
@ -196,16 +196,6 @@ public class AndroidPlugin @Inject constructor(val javaCompiler: JavaCompiler,
|
|||
return result
|
||||
}
|
||||
|
||||
private fun compile(project: Project, rDirectory: String): File {
|
||||
val sourceFiles = arrayListOf(Paths.get(rDirectory, "R.java").toFile().path)
|
||||
val buildDir = File(AndroidFiles.classesDir(project, context.variant))
|
||||
// Using a directory of "." since the project.directory is already present in buildDir
|
||||
val cai = CompilerActionInfo(".", listOf(), sourceFiles, buildDir, listOf(
|
||||
"-source", "1.6", "-target", "1.6"))
|
||||
javaCompiler.compile(project, context, cai)
|
||||
return buildDir
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements ICompilerFlagContributor
|
||||
* Make sure we compile and generate 1.6 sources unless the build file defined those (which can
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue