(xml: string, key: string, value: boolean)
| 235 | } |
| 236 | |
| 237 | function upsertAndroidBooleanPref(xml: string, key: string, value: boolean): string { |
| 238 | const entry = ` <boolean name="${escapeXmlText(key)}" value="${value ? 'true' : 'false'}" />`; |
| 239 | return insertAndroidPrefEntry(removeAndroidPrefEntry(xml, key), entry); |
| 240 | } |
| 241 | |
| 242 | function insertAndroidPrefEntry(xml: string, entry: string): string { |
| 243 | const normalized = normalizeAndroidPrefsXml(xml); |
no test coverage detected