(xml: string)
| 222 | } |
| 223 | |
| 224 | function normalizeAndroidPrefsXml(xml: string): string { |
| 225 | const trimmed = xml.trim(); |
| 226 | if (!trimmed.includes('<map') || !trimmed.includes('</map>')) { |
| 227 | return DEFAULT_ANDROID_PREFS_XML; |
| 228 | } |
| 229 | return `${trimmed}\n`; |
| 230 | } |
| 231 | |
| 232 | function upsertAndroidStringPref(xml: string, key: string, value: string): string { |
| 233 | const entry = ` <string name="${escapeXmlText(key)}">${escapeXmlText(value)}</string>`; |
no outgoing calls
no test coverage detected