MCPcopy Index your code
hub / github.com/callstack/agent-device / upsertAndroidBooleanPref

Function upsertAndroidBooleanPref

src/daemon/runtime-hints.ts:237–240  ·  view source on GitHub ↗
(xml: string, key: string, value: boolean)

Source from the content-addressed store, hash-verified

235}
236
237function 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
242function insertAndroidPrefEntry(xml: string, entry: string): string {
243 const normalized = normalizeAndroidPrefsXml(xml);

Callers 1

applyAndroidRuntimeHintsFunction · 0.85

Calls 3

escapeXmlTextFunction · 0.85
insertAndroidPrefEntryFunction · 0.85
removeAndroidPrefEntryFunction · 0.85

Tested by

no test coverage detected