blob: a1062dbfd3a43b14aa0e761f1e43b9a9eb7f865a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import Foundation
/// Enabled via `-DSCREENSHOT_MODE` in the CI build. Short-circuits auth with
/// a fake client and seeds the app with deterministic demo data so we can
/// grab reproducible screenshots without hitting a real Makima server.
enum ScreenshotMode {
static var isEnabled: Bool {
#if SCREENSHOT_MODE
return true
#else
return false
#endif
}
/// Fake server profile used by the stub authenticated state.
static var profile: ServerProfile {
ServerProfile(label: "makima.jp", baseURLString: "https://makima.jp")
}
static var apiKey: String { "mk_demo0000deadbeef0000cafe" }
}
|