ru.pocketbyte.locolaser.kotlinmpp.builder.KmpClassCustomFormattingBuilder.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resource-kotlin-mpp Show documentation
Show all versions of resource-kotlin-mpp Show documentation
Implementation of platform for LocoLaser tool to work with Kotlin MPP projects.
package ru.pocketbyte.locolaser.kotlinmpp.builder
import ru.pocketbyte.locolaser.config.resources.ResourcesConfigBuilderFactory
import ru.pocketbyte.locolaser.kotlinmpp.KotlinBaseCustomFormattingResourceConfigBuilder
import ru.pocketbyte.locolaser.kotlinmpp.KotlinBaseResourcesConfig
import ru.pocketbyte.locolaser.resource.formatting.FormattingType
internal typealias CustomFormattingClassBuilder
= KotlinBaseCustomFormattingResourceConfigBuilder
internal typealias CustomFormattingClassBuilderFactory
= ResourcesConfigBuilderFactory
class KmpClassCustomFormattingBuilder(
name: String,
builderFactory: CustomFormattingClassBuilderFactory,
) : BaseKmpClassBuilder(name, builderFactory) {
var formattingType: FormattingType? = null
override fun configure(builder: CustomFormattingClassBuilder) {
super.configure(builder)
this.formattingType?.let {
builder.formattingType = it
}
}
}