All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.pocketbyte.locolaser.mobile.resource.IosSwiftResources.kt Maven / Gradle / Ivy

Go to download

Implementation of platform for LocoLaser tool to work with Android and iOS platforms.

There is a newer version: 2.5.0
Show newest version
package ru.pocketbyte.locolaser.mobile.resource

import ru.pocketbyte.locolaser.config.resources.ResourceFileProvider
import ru.pocketbyte.locolaser.mobile.resource.file.IosSwiftResourceFile
import ru.pocketbyte.locolaser.resource.Resources
import ru.pocketbyte.locolaser.resource.file.ResourceFile

import java.io.File

class IosSwiftResources(
    resourcesDir: File,
    name: String,
    resourceFileProvider: ResourceFileProvider,
    tableName: String?,
    filter: ((key: String) -> Boolean)?
) : IosBaseClassResources(resourcesDir, name, resourceFileProvider, tableName, filter) {

    companion object {
        const val SWIFT_FILE_EXTENSION = "swift"
    }

    override val fileExtension: String = SWIFT_FILE_EXTENSION

    override fun getResourceFiles(locales: Set?): Array {
        return arrayOf(
            IosSwiftResourceFile(getFileForLocale(Resources.BASE_LOCALE), name, tableName)
        )
    }

    override fun allFiles(locales: Set): List {
        return listOf(getFileForLocale(Resources.BASE_LOCALE))
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy