general: removal of AppStoreDetector, just use build flags

This commit is contained in:
Michael Freno
2026-01-13 15:46:03 -05:00
parent ca86316c3f
commit c357e02369
14 changed files with 261 additions and 313 deletions

View File

@@ -1,29 +0,0 @@
//
// AppStoreDetectorTests.swift
// GazeTests
//
// Created by Mike Freno on 1/10/26.
//
@testable import Gaze
import Testing
struct AppStoreDetectorTests {
@Test func isAppStoreVersionReturnsFalseInDebug() async {
// In test/debug builds, should always return false
#expect(await AppStoreDetector.isAppStoreVersion() == false)
}
@Test func isTestFlightReturnsFalseInDebug() async {
// In test/debug builds, should always return false
#expect(await AppStoreDetector.isTestFlight() == false)
}
@Test func receiptValidationHandlesMissingReceipt() async {
// When there's no receipt (development build), should return false
// This is implicitly tested by isAppStoreVersionReturnsFalseInDebug
// but we're documenting the expected behavior
#expect(await AppStoreDetector.isAppStoreVersion() == false)
}
}