Export Rule
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()
}
}
Content copied to clipboard
Export rules must be part of an export profile to be executed.