-
public final class AndroidPluginIntegrationThis helper class handles communication with the android plugin. It is isolated in a separate class to avoid adding dependency on the android plugin. Instead, we add a compileOnly dependency to the Android Plugin, which means we can still function without the Android plugin. The downside is that we need to ensure never to access Android plugin APIs directly without checking its existence (we have tests covering that case).
-
-
Constructor Summary
Constructors Constructor Description AndroidPluginIntegration(KspGradleSubplugin kspGradleSubplugin)
-
Method Summary
Modifier and Type Method Description final UnitapplyIfAndroidProject(Project project)final UnitregisterGeneratedJavaSources(Project project, KotlinJvmAndroidCompilation kotlinCompilation, TaskProvider<KspTaskJvm> kspTaskProvider, File javaOutputDir, File classOutputDir, FileCollection resourcesOutputDir)-
-
Constructor Detail
-
AndroidPluginIntegration
AndroidPluginIntegration(KspGradleSubplugin kspGradleSubplugin)
-
-
Method Detail
-
applyIfAndroidProject
final Unit applyIfAndroidProject(Project project)
-
registerGeneratedJavaSources
final Unit registerGeneratedJavaSources(Project project, KotlinJvmAndroidCompilation kotlinCompilation, TaskProvider<KspTaskJvm> kspTaskProvider, File javaOutputDir, File classOutputDir, FileCollection resourcesOutputDir)
-
-
-
-