import Foundation /// Factory-default UUIDs that indicate an unconfigured beacon (matches Android BeaconBanList.kt) enum BeaconBanList { /// UUID prefixes (first 8 hex chars) that are factory defaults static let bannedPrefixes: Set = [ "E2C56DB5", // Apple AirLocate / Minew "B9407F30", // Estimote "FDA50693", // Generic Chinese bulk "F7826DA6", // Kontakt.io "2F234454", // Radius Networks "74278BDA", // Generic bulk "00000000", // Unconfigured "FFFFFFFF", // Unconfigured ] /// Check if a UUID is a factory default static func isBanned(_ uuid: String) -> Bool { let normalized = uuid.normalizedUUID let prefix = String(normalized.prefix(8)) return bannedPrefixes.contains(prefix) } }