()
| 31 | * is only referenced when bridge mode is enabled at build time. |
| 32 | */ |
| 33 | export function isBridgeEnabled(): boolean { |
| 34 | // Positive ternary pattern — see docs/feature-gating.md. |
| 35 | // Negative pattern (if (!feature(...)) return) does not eliminate |
| 36 | // inline string literals from external builds. |
| 37 | return feature('BRIDGE_MODE') |
| 38 | ? hasManagedBridgePrincipal(getCurrentBridgeEligibilitySession()) && |
| 39 | getFeatureValue_CACHED_MAY_BE_STALE('ncode_ccr_bridge', false) |
| 40 | : false |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Blocking entitlement check for Remote Control. |
no test coverage detected