diff options
| author | 2022-04-05 23:59:34 +0000 | |
|---|---|---|
| committer | 2022-04-05 23:59:34 +0000 | |
| commit | 40f8c75752ca107c9c8b12be9fe162de6b393f62 (patch) | |
| tree | 187072a3fc59eaa95ed1bc9deb35e4f367660129 /java/kotlin.go | |
| parent | bbf5f8c1580519e097d29fbe4d69d78a828f086c (diff) | |
| parent | c6ef4853704080b1340170c5c30046cc4dacd418 (diff) | |
Merge "Use kapt stubs for kotlin header jar for javac"
Diffstat (limited to 'java/kotlin.go')
| -rw-r--r-- | java/kotlin.go | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/java/kotlin.go b/java/kotlin.go index eff5bb53f..818bbd5aa 100644 --- a/java/kotlin.go +++ b/java/kotlin.go @@ -163,11 +163,11 @@ var kaptStubs = pctx.AndroidRemoteStaticRule("kaptStubs", android.RemoteRuleSupp  	"classpath", "srcJars", "commonSrcFilesArg", "srcJarDir", "kaptDir", "kotlinJvmTarget",  	"kotlinBuildFile", "name", "classesJarOut") -// kotlinKapt performs Kotlin-compatible annotation processing.  It takes .kt and .java sources and srcjars, and runs +// kotlinTurbineApt performs Kotlin-compatible annotation processing.  It takes .kt and .java sources and srcjars, and runs  // annotation processors over all of them, producing a srcjar of generated code in outputFile.  The srcjar should be  // added as an additional input to kotlinc and javac rules, and the javac rule should have annotation processing  // disabled. -func kotlinKapt(ctx android.ModuleContext, srcJarOutputFile, resJarOutputFile android.WritablePath, +func kotlinTurbineApt(ctx android.ModuleContext, headerJarOutputFile, srcJarOutputFile, resJarOutputFile android.WritablePath,  	srcFiles, commonSrcFiles, srcJars android.Paths,  	flags javaBuilderFlags) { @@ -231,7 +231,7 @@ func kotlinKapt(ctx android.ModuleContext, srcJarOutputFile, resJarOutputFile an  	// Then run turbine to perform annotation processing on the stubs and any .java srcFiles.  	javaSrcFiles := srcFiles.FilterByExt(".java")  	turbineSrcJars := append(android.Paths{kaptStubsJar}, srcJars...) -	TurbineApt(ctx, srcJarOutputFile, resJarOutputFile, javaSrcFiles, turbineSrcJars, flags) +	TurbineApt(ctx, headerJarOutputFile, srcJarOutputFile, resJarOutputFile, javaSrcFiles, turbineSrcJars, flags)  }  // kapt converts a list of key, value pairs into a base64 encoded Java serialization, which is what kapt expects. |