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

com.likethesalad.placeholder.models.StringsGatheredModel.kt Maven / Gradle / Ivy

Go to download

This is a Gradle plugin for Android applications which resolves XML string references in other XML strings.

There is a newer version: 1.3.0
Show newest version
package com.likethesalad.placeholder.models

data class StringsGatheredModel(
    val suffix: String,
    val mainStrings: List,
    val complementaryStrings: List>
) {

    fun getMergedStrings(): Map {
        val map = mutableMapOf()
        for (list in complementaryStrings) {
            for (it in list) {
                map[it.name] = it
            }
        }
        for (it in mainStrings) {
            map[it.name] = it
        }
        return map
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy