com.likethesalad.placeholder.models.StringsGatheredModel.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of string-reference Show documentation
Show all versions of string-reference Show documentation
This is a Gradle plugin for Android applications which resolves XML string references in other XML strings.
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
}
}