(xml: string, key: string)
| 245 | } |
| 246 | |
| 247 | function removeAndroidPrefEntry(xml: string, key: string): string { |
| 248 | const escapedKey = escapeRegex(key); |
| 249 | return normalizeAndroidPrefsXml(xml) |
| 250 | .replace(new RegExp(`^\\s*<string name="${escapedKey}">[\\s\\S]*?<\\/string>\\n?`, 'm'), '') |
| 251 | .replace( |
| 252 | new RegExp(`^\\s*<boolean name="${escapedKey}" value="(?:true|false)"\\s*\\/?>\\n?`, 'm'), |
| 253 | '', |
| 254 | ); |
| 255 | } |
| 256 | |
| 257 | function assertAndroidRuntimePackageName(packageName: string): void { |
| 258 | if (classifyAndroidAppTarget(packageName) !== 'binary') return; |
no test coverage detected