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

Not used.

This commit is contained in:
Cedric Beust 2015-12-18 15:45:45 -08:00
parent 02f9449050
commit d4d00fb447

View file

@ -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