It's a standard pattern for Android to keep both strings and plurals in strings.xml file
From my understanding updating the filter here should do the work:
|
filter = { include("**/plurals*.xml") } |
Due to proper guardrails being present in
PluralResourceGenerator
|
private fun Document.findPluralNodes(): Sequence<Element> = sequence { |
|
SOURCE_PLURAL_NODE_NAMES.forEach { elementName -> |
|
val pluralNodes: NodeList = getElementsByTagName(elementName) |
|
for (i: Int in 0 until pluralNodes.length) { |
|
yield(pluralNodes.item(i) as Element) |
|
} |
|
} |
|
} |
|
|
|
private companion object { |
|
val SOURCE_PLURAL_NODE_NAMES: List<String> = listOf("plural", "plurals") |
|
} |
It's a standard pattern for Android to keep both strings and plurals in
strings.xmlfileFrom my understanding updating the filter here should do the work:
moko-resources/resources-generator/src/main/kotlin/dev/icerock/gradle/generator/factory/PluralGeneratorFactory.kt
Line 50 in bd6c032
Due to proper guardrails being present in
PluralResourceGeneratormoko-resources/resources-generator/src/main/kotlin/dev/icerock/gradle/generator/resources/plural/PluralResourceGenerator.kt
Lines 94 to 105 in bd6c032