MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / infoAnnouncementKey

Function infoAnnouncementKey

packages/nativescript-inspector/src/index.ts:1970–1980  ·  view source on GitHub ↗
(info: JSONObject)

Source from the content-addressed store, hash-verified

1968}
1969
1970function infoAnnouncementKey(info: JSONObject): string {
1971 const appHierarchy = objectValue(info.appHierarchy);
1972 const nativeScript = objectValue(info.nativeScript);
1973 return JSON.stringify({
1974 processIdentifier: info.processIdentifier,
1975 bundleIdentifier: info.bundleIdentifier,
1976 sourceRoot: info.sourceRoot,
1977 appHierarchyAvailable: Boolean(appHierarchy.available),
1978 nativeScriptAvailable: Boolean(nativeScript.available),
1979 });
1980}
1981
1982function nativeScriptAvailable(info: JSONObject): boolean {
1983 const appHierarchy = objectValue(info.appHierarchy);

Callers 1

announceInfoMethod · 0.85

Calls 1

objectValueFunction · 0.85

Tested by

no test coverage detected