ru.pocketbyte.locolaser.kotlinmpp.resource.KotlinAbsStaticResources.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.resource
import ru.pocketbyte.locolaser.config.resources.ResourceFileProvider
import ru.pocketbyte.locolaser.kotlinmpp.resource.file.KotlinAbsStaticResourceFile
import ru.pocketbyte.locolaser.resource.file.ResourceFile
import ru.pocketbyte.locolaser.resource.formatting.FormattingType
import java.io.File
class KotlinAbsStaticResources(
dir: File,
name: String,
interfaceName: String?,
override val formattingType: FormattingType,
resourceFileProvider: ResourceFileProvider,
filter: ((key: String) -> Boolean)?
) : KotlinAbsImplementationResources(dir, name, interfaceName, resourceFileProvider, filter) {
override fun getResourceFiles(locales: Set?): Array? {
return arrayOf(
KotlinAbsStaticResourceFile(
directory, className, classPackage,
interfaceName, interfacePackage,
formattingType
)
)
}
}