ExportProfileBuilder

class ExportProfileBuilder(name: String, fileExtension: String = "zip", requiresPlatform: Platform? = null, builder: ExportProfileBuilder.() -> Unit, rules: <Error class: unknown class><ExportRule> = sequenceOf()) : ExportRuleScope

Constructors

Link copied to clipboard
constructor(name: String, fileExtension: String = "zip", requiresPlatform: Platform? = null, builder: ExportProfileBuilder.() -> Unit, rules: <Error class: unknown class><ExportRule> = sequenceOf())

Properties

Link copied to clipboard
open lateinit override var configFile: ConfigFile

The config file associated with the exporting scope.

Link copied to clipboard
open lateinit override var lockFile: LockFile

The lock file associated with the exporting scope.

Functions

Link copied to clipboard
fun build(exportingScope: ExportRuleScope): ExportProfile
Link copied to clipboard
Link copied to clipboard
fun ExportRuleScope.fileDirectorRule(excludedProviders: Set<Provider> = setOf(), fileDirectorModel: FileDirectorModel = FileDirectorModel()): ExportRule?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Adds an optional export rule to the profile.

Link copied to clipboard
infix fun ExportRule?.orElse(exportRule: (ExportRuleScope) -> ExportRule?): ExportRule?

Provides a fallback mechanism when an optional rule is null.

Link copied to clipboard
fun rule(exportRule: (ExportRuleScope) -> ExportRule): ExportRule

Adds an export rule to the profile.