ru.pocketbyte.locolaser.kotlinmpp.KotlinCommonResourcesConfigBuilder.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
import ru.pocketbyte.locolaser.config.resources.BaseResourcesConfigBuilder
import ru.pocketbyte.locolaser.config.resources.ResourceFileProvider
import ru.pocketbyte.locolaser.config.resources.filter.ResourcesFilter
import java.io.File
class KotlinCommonResourcesConfigBuilder
: BaseResourcesConfigBuilder() {
override fun buildConfig(
workDir: File?,
resourceName: String?,
resourcesDir: String?,
resourceFileProvider: ResourceFileProvider?,
filter: ResourcesFilter?
): KotlinCommonResourcesConfig {
return KotlinCommonResourcesConfig(
workDir, resourceName, resourcesDir, filter
)
}
/**
* Canonical name of the Repository interface that should be should be generated.
*/
override var resourceName: String? = null
/**
* Path to directory with source code.
*/
override var resourcesDir: String? = null
/**
* ResourceFileProvider provides resource File depending on locale, directory and name.
*/
override var resourceFileProvider: ResourceFileProvider?
get() = null
set(value) {
throw UnsupportedOperationException(
"Changing of resourceFileProvider is not supported for Kotlin Class based resources"
)
}
}