(xml: string, key: string, value: string)
| 230 | } |
| 231 | |
| 232 | function upsertAndroidStringPref(xml: string, key: string, value: string): string { |
| 233 | const entry = ` <string name="${escapeXmlText(key)}">${escapeXmlText(value)}</string>`; |
| 234 | return insertAndroidPrefEntry(removeAndroidPrefEntry(xml, key), entry); |
| 235 | } |
| 236 | |
| 237 | function upsertAndroidBooleanPref(xml: string, key: string, value: boolean): string { |
| 238 | const entry = ` <boolean name="${escapeXmlText(key)}" value="${value ? 'true' : 'false'}" />`; |
no test coverage detected