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

Function insertAndroidPrefEntry

src/daemon/runtime-hints.ts:242–245  ·  view source on GitHub ↗
(xml: string, entry: string)

Source from the content-addressed store, hash-verified

240}
241
242function insertAndroidPrefEntry(xml: string, entry: string): string {
243 const normalized = normalizeAndroidPrefsXml(xml);
244 return normalized.replace('</map>', `${entry}\n</map>`);
245}
246
247function removeAndroidPrefEntry(xml: string, key: string): string {
248 const escapedKey = escapeRegex(key);

Callers 2

upsertAndroidStringPrefFunction · 0.85
upsertAndroidBooleanPrefFunction · 0.85

Calls 1

normalizeAndroidPrefsXmlFunction · 0.85

Tested by

no test coverage detected