ExportRule

fun interface ExportRule

A functional interface used to declare rules which control what should happen with the content you want to export/package.

These rules can be written in many ways and are fully extensible by extending the RuleContext class.

To create an export rule, you simply implement the functional interface like this:

fun exampleRule() = ExportRule {
when (it)
{
is ExportingProject -> it.export() // (Sample function)
else -> it.ignore()
}
}

Export rules must be part of an export profile to be executed.

Functions

Link copied to clipboard
abstract suspend fun getResult(ruleContext: RuleContext): RuleResult