@mentra/glasses-media 3.2.1-dev.314 → 3.3.0-beta.942

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +0,0 @@
1
- #if MENTRA_E2E
2
- import Foundation
3
-
4
- /// Test-build dependency input, not a production network discovery mechanism.
5
- /// The Mac harness owns association and verifies the USB fixture, gateway MAC,
6
- /// DHCP address, local health and Ethernet before launching this process.
7
- public struct MacE2EHotspotLease: Decodable {
8
- public let ssid: String
9
- public let gateway: String
10
- public let address: String
11
- public let issuedAt: TimeInterval
12
-
13
- public func matches(ssid: String, gateway: String?, address: String?, now: TimeInterval) -> Bool {
14
- let age = now - issuedAt
15
- return age >= 0 && age <= 300 && self.gateway == gateway && self.address == address &&
16
- LocalMediaPolicy.canReuseHotspot(requestedSSID: ssid, currentSSID: self.ssid,
17
- address: address, gateway: gateway)
18
- }
19
- }
20
- #endif