ru.pocketbyte.locolaser.kotlinmpp.resource.KotlinAndroidResources.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.
The newest version!
package ru.pocketbyte.locolaser.kotlinmpp.resource
import ru.pocketbyte.locolaser.config.resources.ResourceFileProvider
import ru.pocketbyte.locolaser.config.resources.filter.ResourcesFilter
import ru.pocketbyte.locolaser.kotlinmpp.resource.file.KotlinAndroidResourceFile
import ru.pocketbyte.locolaser.resource.file.ResourceFile
import ru.pocketbyte.locolaser.resource.formatting.FormattingType
import ru.pocketbyte.locolaser.resource.formatting.JavaFormattingType
import java.io.File
class KotlinAndroidResources(
dir: File,
name: String,
interfaceName: String?,
resourceFileProvider: ResourceFileProvider,
filter: ResourcesFilter?
) : KotlinAbsImplementationResources(dir, name, interfaceName, resourceFileProvider, filter) {
override val formattingType: FormattingType = JavaFormattingType
override fun getResourceFiles(locales: Set?): Array? {
return arrayOf(KotlinAndroidResourceFile(directory,
this.className, this.classPackage,
this.interfaceName, this.interfacePackage))
}
}