ExportPlugin

class ExportPlugin : KotlinCompilerPluginSupportPlugin(source)

The export plugin - dev.rnett.symbol-export.export.

Exports symbols according to ExportExtension (symbolExport).

It does this by registering an outgoing configuration with a custom usage attribute value. When you compile your kotlin code, JSON files of exported symbols are generated and added to that outgoing configuration. This configuration can then be consumed by other projects using the ImportPlugin.

Also automatically adds a dependency on the symbol-export annotation library (see ExportExtension.autoAddAnnotationDependency).

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun apply(target: Project)
Link copied to clipboard
open override fun applyToCompilation(kotlinCompilation: KotlinCompilation<*>): Provider<List<SubpluginOption>>
Link copied to clipboard
open override fun getCompilerPluginId(): String
Link copied to clipboard
open override fun getPluginArtifact(): SubpluginArtifact
Link copied to clipboard
open fun getPluginArtifactForNative(): SubpluginArtifact?
Link copied to clipboard
open override fun isApplicable(kotlinCompilation: KotlinCompilation<*>): Boolean