package com.freshworks.freshdesk.reactnative internal object FreshdeskHostUtils { // No normalizeHost() here: the single source of truth is // src/utils/normalizeHost.ts, which runs before `host` crosses the bridge. // FreshdeskModule.initialize() is only reachable via that JS entry point. fun isBareHost(host: String): Boolean { val trimmed = host.trim() if (trimmed.isEmpty()) { return false } val lower = trimmed.lowercase() return !lower.startsWith("http://") && !lower.startsWith("https://") } }