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

Function publicPlatformString

src/kernel/device.ts:98–103  ·  view source on GitHub ↗
(
  device: Pick<DeviceInfo, 'platform' | 'appleOs'>,
)

Source from the content-addressed store, hash-verified

96 * their leaf via `appleOs`; non-Apple platforms pass through unchanged.
97 */
98export function publicPlatformString(
99 device: Pick<DeviceInfo, 'platform' | 'appleOs'>,
100): PublicPlatform {
101 if (!isApplePlatform(device.platform)) return device.platform;
102 return isMacOs(device) ? 'macos' : 'ios';
103}
104
105/**
106 * The inverse of {@link publicPlatformString}: reconstruct the internal `platform` (+

Callers 15

uploadAppIfNeededMethod · 0.90
resolveAppEventUrlFunction · 0.90
getInteractorFunction · 0.90
buildProxyDeviceKeyFunction · 0.90
writeReplayScriptFunction · 0.90
createSelectorBackendFunction · 0.90
applyStripLockPolicyFunction · 0.90
formatScriptFunction · 0.90

Calls 2

isApplePlatformFunction · 0.85
isMacOsFunction · 0.85

Tested by

no test coverage detected