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

ru.pocketbyte.locolaser.mobile.resource.IosPlistResources.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.IosPlistResourceFile
import ru.pocketbyte.locolaser.resource.file.ResourceFile
import java.io.File

class IosPlistResources(
    resourcesDir: File,
    name: String,
    resourceFileProvider: ResourceFileProvider,
    filter: ((key: String) -> Boolean)?
) : AbsIosStringsResources(resourcesDir, name, resourceFileProvider, filter) {

    override fun getResourceFiles(locales: Set?): Array? {
        val localesArray = locales?.toTypedArray() ?: return null
        return Array(locales.size) { i ->
            IosPlistResourceFile(getFileForLocale(localesArray[i]), localesArray[i])
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy