ru.pocketbyte.locolaser.mobile.IosSwiftResourcesConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resource-mobile Show documentation
Show all versions of resource-mobile Show documentation
Implementation of platform for LocoLaser tool to work with Android and iOS platforms.
package ru.pocketbyte.locolaser.mobile
import ru.pocketbyte.locolaser.config.resources.ResourceFileProvider
import ru.pocketbyte.locolaser.config.resources.ResourcesConfigBuilderFactory
import ru.pocketbyte.locolaser.mobile.resource.IosSwiftResources
import java.io.File
class IosSwiftResourcesConfig(
workDir: File?,
resourceName: String?,
resourcesDirPath: String?,
resourceFileProvider: ResourceFileProvider?,
tableName: String?,
filter: ((key: String) -> Boolean)?
) : IosBaseClassResourcesConfig(
workDir,
resourceName,
resourcesDirPath,
resourceFileProvider,
tableName,
filter
) {
companion object : ResourcesConfigBuilderFactory {
const val TYPE = "ios_swift"
override fun getBuilder(): IosSwiftResourcesConfigBuilder {
return IosSwiftResourcesConfigBuilder()
}
}
override val type = TYPE
override val resources by lazy {
IosSwiftResources(
resourcesDir = this.resourcesDir,
name = this.resourceName,
resourceFileProvider = this.resourceFileProvider,
tableName = this.tableName,
filter = this.filter
)
}
}