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

Function assertAndroidRuntimePackageName

src/daemon/runtime-hints.ts:257–264  ·  view source on GitHub ↗
(packageName: string)

Source from the content-addressed store, hash-verified

255}
256
257function assertAndroidRuntimePackageName(packageName: string): void {
258 if (classifyAndroidAppTarget(packageName) !== 'binary') return;
259 const message = formatAndroidInstalledPackageRequiredMessage(packageName);
260 throw new AppError('INVALID_ARGS', message, {
261 package: packageName,
262 hint: message,
263 });
264}
265
266function escapeRegex(value: string): string {
267 return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');

Callers 2

applyAndroidRuntimeHintsFunction · 0.85
clearAndroidRuntimeHintsFunction · 0.85

Tested by

no test coverage detected