feat(app): integrate Atomenta Feature Control bootstrap, cache and resume refresh

This commit is contained in:
Daniel Arantes Loverde
2026-04-16 14:48:39 -03:00
parent f8d2fb8eb7
commit 7f7d414e6c
6 changed files with 433 additions and 1 deletions

View File

@@ -14,6 +14,17 @@ enum ApiConfig {
return URL(string: raw) ?? URL(string: "https://atomenta.com.br")!
}
static var featureControlBffURL: URL {
let raw = ProcessInfo.processInfo.environment["FEATURE_CONTROL_BFF_URL"] ?? "http://localhost:8787"
return URL(string: raw) ?? URL(string: "http://localhost:8787")!
}
static var featureControlEnvironment: String {
let raw = ProcessInfo.processInfo.environment["FEATURE_CONTROL_ENVIRONMENT"] ?? "production"
let clean = raw.trimmingCharacters(in: .whitespacesAndNewlines)
return clean.isEmpty ? "production" : clean
}
// Tokens provided by backend modules
static let storeToken = "550e8400-e29b-41d4-a716-446655440008"
static let customerToken = "550e8400-e29b-41d4-a716-44665544000a"