1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
import type { Locale } from './locale';
export class WebClient implements Client {
private readonly locale: Locale;
deviceType: DeviceType = 'web';
// Tell the App Store Client that we're *really* the "web", even if the `DeviceType`
// says otherwise
__isReallyWebClient = true as const;
// TODO: how do we define this for the "client" web, when it can change over time?
screenSize: { width: number; height: number } = { width: 0, height: 0 };
// TODO: how is this used? We can't have a consistent value across multiple sessions
guid: string = 'xxx-xx-xxx';
screenCornerRadius: number = 0;
newPaymentMethodEnabled = false;
isActivityAvailable = false;
isElectrocardiogramInstallationAllowed = false;
isScandiumInstallationAllowed = false;
isSidepackingEnabled = false;
isTinkerWatch = false;
supportsHEIF: boolean = false;
isMandrakeSupported: boolean = false;
isCharonSupported: boolean = false;
buildType: BuildType;
maxAppContentRating: number = 1000;
isIconArtworkCapable: boolean = true;
constructor(buildType: BuildType, locale: Locale) {
this.buildType = buildType;
this.locale = locale;
}
get storefrontIdentifier(): string {
return this.locale.activeStorefront;
}
deviceHasCapabilities(_capabilities: string[]): boolean {
return false;
}
deviceHasCapabilitiesIncludingCompatibilityCheckIsVisionOSCompatibleIOSApp(
_capabilities: string[],
_supportsVisionOSCompatibleIOSBinary: boolean,
): boolean {
return false;
}
isActivePairedWatchSystemVersionAtLeastMajorVersionMinorVersionPatchVersion(
_majorVersion: number,
_minorVersion: number,
_patchVersion: number,
): boolean {
return false;
}
canDevicePerformAppActionWithAppCapabilities(
_appAction: string,
_appCapabilities: string[] | undefined | null,
): boolean {
return false;
}
isAutomaticDownloadingEnabled(): boolean {
return false;
}
isAuthorizedForUserNotifications(): boolean {
return false;
}
deletableSystemAppCanBeInstalledOnWatchWithBundleID(
_bundleId: string,
): boolean {
return false;
}
isDeviceEligibleForDomain(_domain: string): boolean {
return false;
}
}
|