@limrun/ui 0.9.0-rc.14 → 0.9.0-rc.15
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.
- package/dist/components/remote-control.d.ts +125 -1
- package/dist/core/device-install/apple/provisioning.d.ts +55 -4
- package/dist/core/device-install/operations/limbuild-client.d.ts +15 -1
- package/dist/core/device-install/storage/browser-storage.d.ts +9 -5
- package/dist/core/device-install/types.d.ts +4 -1
- package/dist/device-install/index.cjs +1 -1
- package/dist/device-install/index.js +70 -64
- package/dist/device-install/react.cjs +1 -1
- package/dist/device-install/react.js +1 -1
- package/dist/device-install-dialog-DY35un0b.js +9 -0
- package/dist/device-install-dialog-chNLeiiL.mjs +2000 -0
- package/dist/device-install-dialog.css +1 -1
- package/dist/hooks/use-device-install.d.ts +5 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1286 -1116
- package/dist/use-device-install-BIrl0v-k.js +31 -0
- package/dist/{use-device-install-sDVvby1V.mjs → use-device-install-LGfEdqyM.mjs} +4388 -4271
- package/package.json +4 -2
- package/src/components/device-install/device-install-dialog.css +29 -0
- package/src/components/device-install/device-install-dialog.tsx +91 -30
- package/src/components/remote-control.tsx +535 -5
- package/src/core/device-install/apple/provisioning.test.ts +84 -0
- package/src/core/device-install/apple/provisioning.ts +91 -7
- package/src/core/device-install/operations/limbuild-client.ts +32 -2
- package/src/core/device-install/storage/browser-storage.ts +29 -14
- package/src/core/device-install/types.ts +5 -1
- package/src/hooks/use-device-install.ts +135 -59
- package/dist/device-install-dialog-CjH25hnN.js +0 -2
- package/dist/device-install-dialog-W5Xv9kWL.mjs +0 -443
- package/dist/use-device-install-Y1u6vIBB.js +0 -31
|
@@ -109,10 +109,134 @@ interface RemoteControlProps {
|
|
|
109
109
|
* (in which case the limulator side switches to a black-frame
|
|
110
110
|
* fallback so the app keeps ticking).
|
|
111
111
|
*
|
|
112
|
+
* `camera` (optional, only meaningful when `granted === true`)
|
|
113
|
+
* carries what `MediaStreamTrack.getSettings()` reported for the
|
|
114
|
+
* active capture: resolution, framerate, device label, facing
|
|
115
|
+
* mode. Use it to render a richer status indicator (e.g.
|
|
116
|
+
* "Camera · 1920×1080 · 30 fps · FaceTime HD").
|
|
117
|
+
*
|
|
112
118
|
* Only iOS instances ever fire this callback; Android instances
|
|
113
119
|
* have no camera-injector path and stay silent.
|
|
114
120
|
*/
|
|
115
|
-
onCameraDemandChange?: (active: boolean, granted?: boolean) => void;
|
|
121
|
+
onCameraDemandChange?: (active: boolean, granted?: boolean, camera?: CameraCaptureInfo) => void;
|
|
122
|
+
/**
|
|
123
|
+
* Periodically (~1Hz) fires with a snapshot of the outbound
|
|
124
|
+
* camera stream's live WebRTC stats — codec, encoder
|
|
125
|
+
* implementation, hardware acceleration, encoded fps, bitrate,
|
|
126
|
+
* round-trip-time, and the encoder's
|
|
127
|
+
* `qualityLimitationReason` (which is what Meet/Zoom use to
|
|
128
|
+
* decide whether to show "Bandwidth limited" or "CPU limited"
|
|
129
|
+
* banners).
|
|
130
|
+
*
|
|
131
|
+
* Only fires while the simulator is actively pulling the
|
|
132
|
+
* camera AND `getUserMedia` was granted. `null` is emitted
|
|
133
|
+
* once when the stream goes back to idle so consumers can
|
|
134
|
+
* clear their UI without having to maintain their own
|
|
135
|
+
* timeout. The host app does not need to poll `getStats()`
|
|
136
|
+
* itself — this is the canonical place.
|
|
137
|
+
*/
|
|
138
|
+
onCameraStats?: (stats: CameraStreamStats | null) => void;
|
|
139
|
+
/**
|
|
140
|
+
* Optional resolution cap for outbound camera capture.
|
|
141
|
+
*
|
|
142
|
+
* - `'auto'` (default): no extra constraint. The browser captures
|
|
143
|
+
* at its webcam's native max; WebRTC's quality scaler may step
|
|
144
|
+
* down resolution on the encoder side under bandwidth pressure
|
|
145
|
+
* while still feeding the simulator at the pool's native size.
|
|
146
|
+
* - `'1080p'` / `'720p'` / `'480p'`: hard cap applied via
|
|
147
|
+
* `getUserMedia` constraints (for new captures) and
|
|
148
|
+
* `track.applyConstraints` (for the currently-active track),
|
|
149
|
+
* matching the way Meet/Zoom expose a "Send resolution" picker.
|
|
150
|
+
*
|
|
151
|
+
* Bumping or lowering the cap mid-stream is supported; the
|
|
152
|
+
* change takes effect within a frame or two as the webcam
|
|
153
|
+
* re-negotiates.
|
|
154
|
+
*/
|
|
155
|
+
cameraResolutionCap?: CameraResolutionCap;
|
|
156
|
+
/**
|
|
157
|
+
* Aspect ratio the simulator's virtual camera should report to apps.
|
|
158
|
+
* Picking a value here triggers a `cameraAspect` WS message to the
|
|
159
|
+
* host, which rebuilds its IOSurface ring at the matching dimensions
|
|
160
|
+
* (16:9 → 1920×1080, 4:3 → 1440×1080, 1:1 → 1080×1080, 9:16 →
|
|
161
|
+
* 1080×1920) and signals the in-sim dylib to re-handshake. iOS apps
|
|
162
|
+
* see CMSampleBuffers at the new dimensions within a frame or two.
|
|
163
|
+
*
|
|
164
|
+
* The browser still captures whatever the webcam offers; the host
|
|
165
|
+
* aspect-fills (cover, center-crop) into the new pool. Switching
|
|
166
|
+
* aspect at runtime is intentionally cheap so users can A/B preview
|
|
167
|
+
* styles without restarting the simulator.
|
|
168
|
+
*
|
|
169
|
+
* `undefined` leaves the pool untouched (the host's boot default —
|
|
170
|
+
* 16:9 / 1920×1080 — applies).
|
|
171
|
+
*/
|
|
172
|
+
cameraAspect?: CameraAspect;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Resolution caps a host app can request on the outbound camera.
|
|
176
|
+
* `'auto'` is "let the browser decide" (no constraints beyond the
|
|
177
|
+
* 30 fps ceiling); the other options clamp width/height to the
|
|
178
|
+
* named target. Aspect ratio is preserved.
|
|
179
|
+
*/
|
|
180
|
+
export type CameraResolutionCap = 'auto' | '1080p' | '720p' | '480p';
|
|
181
|
+
/**
|
|
182
|
+
* Aspect ratios exposed to the operator for the simulated camera.
|
|
183
|
+
* The host maps each label to concrete IOSurface dimensions; values
|
|
184
|
+
* the host doesn't recognise are silently ignored.
|
|
185
|
+
*/
|
|
186
|
+
export type CameraAspect = '16:9' | '4:3' | '1:1' | '9:16';
|
|
187
|
+
/**
|
|
188
|
+
* Snapshot of the browser's webcam capture, mirrored from
|
|
189
|
+
* `MediaStreamTrack.getSettings()`. Forwarded to the host alongside
|
|
190
|
+
* `cameraResult` and exposed to the host app via
|
|
191
|
+
* `onCameraDemandChange` so it can render a status indicator without
|
|
192
|
+
* having to call `getStats()` itself.
|
|
193
|
+
*/
|
|
194
|
+
export interface CameraCaptureInfo {
|
|
195
|
+
width?: number;
|
|
196
|
+
height?: number;
|
|
197
|
+
frameRate?: number;
|
|
198
|
+
deviceId?: string;
|
|
199
|
+
label?: string;
|
|
200
|
+
facingMode?: string;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Live outbound-camera quality snapshot. Derived from
|
|
204
|
+
* `RTCPeerConnection.getStats()` and rate-derived deltas, sampled
|
|
205
|
+
* once per second while the camera is sending. All fields optional:
|
|
206
|
+
* some browsers omit fields (Safari rarely reports
|
|
207
|
+
* `encoderImplementation`), and the first sample after camera start
|
|
208
|
+
* has no delta-derived numbers yet.
|
|
209
|
+
*/
|
|
210
|
+
export interface CameraStreamStats {
|
|
211
|
+
/** "H264", "HEVC"/"H265", "VP9", "VP8", "AV1", etc. (uppercased). */
|
|
212
|
+
codec?: string;
|
|
213
|
+
/** e.g. "VideoToolbox" (hw), "OpenH264" (sw), "ExternalEncoder". */
|
|
214
|
+
encoderImplementation?: string;
|
|
215
|
+
/**
|
|
216
|
+
* Browser-reported hardware-acceleration hint. Some Chromium
|
|
217
|
+
* versions expose this via `powerEfficientEncoder`; we mirror it
|
|
218
|
+
* here so consumers don't have to know the spec quirk.
|
|
219
|
+
*/
|
|
220
|
+
hardwareAccelerated?: boolean;
|
|
221
|
+
/** Outbound encoded fps over the last sample window. */
|
|
222
|
+
framesPerSecond?: number;
|
|
223
|
+
/** Cumulative encoded frame count. */
|
|
224
|
+
framesEncoded?: number;
|
|
225
|
+
/** Outbound encoded bitrate (bits/s) over the last window. */
|
|
226
|
+
bitrateBps?: number;
|
|
227
|
+
/** Width/height the encoder is currently producing. */
|
|
228
|
+
width?: number;
|
|
229
|
+
height?: number;
|
|
230
|
+
/**
|
|
231
|
+
* One of `'none' | 'cpu' | 'bandwidth' | 'other'`. Mirrors
|
|
232
|
+
* Meet/Zoom's "limited by …" banners. Anything other than
|
|
233
|
+
* `'none'` means the encoder dropped resolution to keep up.
|
|
234
|
+
*/
|
|
235
|
+
qualityLimitationReason?: string;
|
|
236
|
+
/** Round-trip time in milliseconds, from the matching RTCP. */
|
|
237
|
+
rttMs?: number;
|
|
238
|
+
/** Packet-loss percentage over the last sample window (0..100). */
|
|
239
|
+
packetsLostPct?: number;
|
|
116
240
|
}
|
|
117
241
|
interface ScreenshotData {
|
|
118
242
|
dataUri: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProvisioningProfileInfo, StoredSigningAssets } from '../types';
|
|
1
|
+
import { DeviceInstallSigningMode, ProvisioningProfileInfo, StoredSigningAssets } from '../types';
|
|
2
2
|
import { AppleProvisioningRequest } from './relay';
|
|
3
3
|
export type AppleDeveloperPortalTeam = {
|
|
4
4
|
name?: string;
|
|
@@ -50,14 +50,16 @@ export type AppleSigningAssetCacheInput = {
|
|
|
50
50
|
bundleID: string;
|
|
51
51
|
deviceUDID?: string;
|
|
52
52
|
teamID?: string;
|
|
53
|
+
signingMode?: DeviceInstallSigningMode;
|
|
53
54
|
};
|
|
54
55
|
export type PutAppleGeneratedSigningAssetsInput = {
|
|
55
56
|
bundleID: string;
|
|
56
57
|
deviceUDID?: string;
|
|
57
58
|
teamID?: string;
|
|
59
|
+
signingMode?: DeviceInstallSigningMode;
|
|
58
60
|
certificateID?: string;
|
|
59
61
|
certificateP12Base64: string;
|
|
60
|
-
certificatePassword
|
|
62
|
+
certificatePassword?: string;
|
|
61
63
|
provisioningProfileBase64: string;
|
|
62
64
|
profile: ProvisioningProfileInfo;
|
|
63
65
|
};
|
|
@@ -77,11 +79,21 @@ export declare function findDevelopmentCertificatesRequest(teamID?: string): {
|
|
|
77
79
|
path: string;
|
|
78
80
|
payload: Record<string, unknown>;
|
|
79
81
|
};
|
|
82
|
+
export declare function findDistributionCertificatesRequest(teamID?: string): {
|
|
83
|
+
method: "POST";
|
|
84
|
+
path: string;
|
|
85
|
+
payload: Record<string, unknown>;
|
|
86
|
+
};
|
|
80
87
|
export declare function findDevelopmentProfilesRequest({ bundleID, teamID, }: Pick<AppleProvisioningContext, 'bundleID' | 'teamID'>): {
|
|
81
88
|
method: "POST";
|
|
82
89
|
path: string;
|
|
83
90
|
payload: Record<string, unknown>;
|
|
84
91
|
};
|
|
92
|
+
export declare function findAdHocProfilesRequest({ bundleID, teamID, }: Pick<AppleProvisioningContext, 'bundleID' | 'teamID'>): {
|
|
93
|
+
method: "POST";
|
|
94
|
+
path: string;
|
|
95
|
+
payload: Record<string, unknown>;
|
|
96
|
+
};
|
|
85
97
|
export declare function registerDeviceRequest({ deviceUDID, teamID, name, }: Pick<AppleProvisioningContext, 'deviceUDID' | 'teamID'> & {
|
|
86
98
|
name?: string;
|
|
87
99
|
}): {
|
|
@@ -119,6 +131,18 @@ export declare function submitDevelopmentCSRRequest({ csrPEM, teamID, }: {
|
|
|
119
131
|
csrContent: string;
|
|
120
132
|
};
|
|
121
133
|
};
|
|
134
|
+
export declare function submitDistributionCSRRequest({ csrPEM, teamID, }: {
|
|
135
|
+
csrPEM: string;
|
|
136
|
+
teamID?: string;
|
|
137
|
+
}): {
|
|
138
|
+
method: "POST";
|
|
139
|
+
path: string;
|
|
140
|
+
payload: {
|
|
141
|
+
teamId: string;
|
|
142
|
+
type: string;
|
|
143
|
+
csrContent: string;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
122
146
|
export declare function downloadCertificateRequest(certificateID: string, teamID?: string): {
|
|
123
147
|
method: "GET";
|
|
124
148
|
path: string;
|
|
@@ -128,6 +152,15 @@ export declare function downloadCertificateRequest(certificateID: string, teamID
|
|
|
128
152
|
type: string;
|
|
129
153
|
};
|
|
130
154
|
};
|
|
155
|
+
export declare function downloadDistributionCertificateRequest(certificateID: string, teamID?: string): {
|
|
156
|
+
method: "GET";
|
|
157
|
+
path: string;
|
|
158
|
+
payload: {
|
|
159
|
+
teamId: string;
|
|
160
|
+
certificateId: string;
|
|
161
|
+
type: string;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
131
164
|
export declare function createDevelopmentProfileRequest({ bundleID, teamID, appIDID, certificateID, deviceIDs, name, }: Pick<AppleProvisioningContext, 'bundleID' | 'teamID'> & {
|
|
132
165
|
appIDID: string;
|
|
133
166
|
certificateID: string;
|
|
@@ -146,6 +179,24 @@ export declare function createDevelopmentProfileRequest({ bundleID, teamID, appI
|
|
|
146
179
|
subPlatform: string;
|
|
147
180
|
};
|
|
148
181
|
};
|
|
182
|
+
export declare function createAdHocProfileRequest({ bundleID, teamID, appIDID, certificateID, deviceIDs, name, }: Pick<AppleProvisioningContext, 'bundleID' | 'teamID'> & {
|
|
183
|
+
appIDID: string;
|
|
184
|
+
certificateID: string;
|
|
185
|
+
deviceIDs: string[];
|
|
186
|
+
name?: string;
|
|
187
|
+
}): {
|
|
188
|
+
method: "POST";
|
|
189
|
+
path: string;
|
|
190
|
+
payload: {
|
|
191
|
+
teamId: string;
|
|
192
|
+
provisioningProfileName: string;
|
|
193
|
+
certificateIds: string[];
|
|
194
|
+
appIdId: string;
|
|
195
|
+
deviceIds: string[];
|
|
196
|
+
distributionType: string;
|
|
197
|
+
subPlatform: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
149
200
|
export declare function downloadProfileRequest(profileID: string, teamID?: string): {
|
|
150
201
|
method: "GET";
|
|
151
202
|
path: string;
|
|
@@ -154,8 +205,8 @@ export declare function downloadProfileRequest(profileID: string, teamID?: strin
|
|
|
154
205
|
provisioningProfileId: string;
|
|
155
206
|
};
|
|
156
207
|
};
|
|
157
|
-
export declare function getReusableAppleSigningAssets({ bundleID, deviceUDID, teamID, }: AppleSigningAssetCacheInput): Promise<StoredSigningAssets | undefined>;
|
|
208
|
+
export declare function getReusableAppleSigningAssets({ bundleID, deviceUDID, teamID, signingMode, }: AppleSigningAssetCacheInput): Promise<StoredSigningAssets | undefined>;
|
|
158
209
|
export declare function putAppleGeneratedSigningAssets(input: PutAppleGeneratedSigningAssetsInput): Promise<StoredSigningAssets>;
|
|
159
|
-
export declare function storedSigningAssetsReusable(stored: StoredSigningAssets, { bundleID, deviceUDID, teamID }: AppleSigningAssetCacheInput): boolean;
|
|
210
|
+
export declare function storedSigningAssetsReusable(stored: StoredSigningAssets, { bundleID, deviceUDID, teamID, signingMode }: AppleSigningAssetCacheInput): boolean;
|
|
160
211
|
export declare function selectDeveloperPortalTeam(body: unknown): AppleDeveloperPortalTeam | undefined;
|
|
161
212
|
export declare function teamIDCandidates(body: unknown): string[];
|
|
@@ -10,7 +10,7 @@ export type StartSignedDeviceBuildOptions = {
|
|
|
10
10
|
limbuildApiUrl: string;
|
|
11
11
|
token?: string;
|
|
12
12
|
certificateP12Base64: string;
|
|
13
|
-
certificatePassword
|
|
13
|
+
certificatePassword?: string;
|
|
14
14
|
provisioningProfileBase64: string;
|
|
15
15
|
};
|
|
16
16
|
export type BuildLogEventsOptions = {
|
|
@@ -21,8 +21,22 @@ export type BuildLogEventsOptions = {
|
|
|
21
21
|
onStatus: (status: DeviceInstallBuildStatus) => void;
|
|
22
22
|
onError?: (error: Error) => void;
|
|
23
23
|
};
|
|
24
|
+
export type IOSOTAInstall = {
|
|
25
|
+
installUrl: string;
|
|
26
|
+
landingUrl: string;
|
|
27
|
+
manifestUrl: string;
|
|
28
|
+
ipaUrl: string;
|
|
29
|
+
bundleId: string;
|
|
30
|
+
displayName: string;
|
|
31
|
+
};
|
|
32
|
+
export type GetIOSOTAInstallOptions = {
|
|
33
|
+
limbuildApiUrl: string;
|
|
34
|
+
execId: string;
|
|
35
|
+
token?: string;
|
|
36
|
+
};
|
|
24
37
|
export declare function fetchLimbuildInfo(limbuildApiUrl: string, token?: string): Promise<LimbuildInfo>;
|
|
25
38
|
export declare function startSignedDeviceBuild({ limbuildApiUrl, token, certificateP12Base64, certificatePassword, provisioningProfileBase64, }: StartSignedDeviceBuildOptions): Promise<{
|
|
26
39
|
execId?: string;
|
|
27
40
|
}>;
|
|
41
|
+
export declare function getIOSOTAInstall({ limbuildApiUrl, execId, token }: GetIOSOTAInstallOptions): Promise<IOSOTAInstall>;
|
|
28
42
|
export declare function watchBuildLogEvents({ limbuildApiUrl, execId, token, onLine, onStatus, onError, }: BuildLogEventsOptions): () => void;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { ProvisioningProfileInfo, PutSigningAssetsInput, StoredPairRecord, StoredSigningAssets, PairRecordPayload } from '../types';
|
|
1
|
+
import { DeviceInstallSigningMode, ProvisioningProfileInfo, PutSigningAssetsInput, StoredPairRecord, StoredSigningAssets, PairRecordPayload } from '../types';
|
|
2
2
|
export declare function normalizeUDID(udid?: string): string;
|
|
3
3
|
export declare function normalizeBundleID(bundleID?: string): string;
|
|
4
4
|
export declare function getPairRecord(udid?: string): Promise<StoredPairRecord | undefined>;
|
|
5
5
|
export declare function putPairRecord(record: PairRecordPayload, metadata?: {
|
|
6
6
|
productName?: string;
|
|
7
7
|
}): Promise<StoredPairRecord>;
|
|
8
|
-
export declare function getSigningAssets({ deviceUDID, bundleID, }: {
|
|
8
|
+
export declare function getSigningAssets({ deviceUDID, bundleID, signingMode, }: {
|
|
9
9
|
deviceUDID?: string;
|
|
10
10
|
bundleID?: string;
|
|
11
|
+
signingMode?: DeviceInstallSigningMode;
|
|
11
12
|
}): Promise<StoredSigningAssets | undefined>;
|
|
12
|
-
export declare function getLatestSigningAssets(): Promise<StoredSigningAssets>;
|
|
13
|
-
export declare function getLatestSigningAssetsWithCertificate(teamID?: string): Promise<StoredSigningAssets>;
|
|
13
|
+
export declare function getLatestSigningAssets(signingMode?: DeviceInstallSigningMode): Promise<StoredSigningAssets>;
|
|
14
|
+
export declare function getLatestSigningAssetsWithCertificate(teamID?: string, signingMode?: DeviceInstallSigningMode): Promise<StoredSigningAssets>;
|
|
14
15
|
export declare function putSigningAssets(input: PutSigningAssetsInput): Promise<StoredSigningAssets>;
|
|
15
|
-
export declare function findSigningAssetsForBundle(bundleID?: string): Promise<StoredSigningAssets[]>;
|
|
16
|
+
export declare function findSigningAssetsForBundle(bundleID?: string, signingMode?: DeviceInstallSigningMode): Promise<StoredSigningAssets[]>;
|
|
16
17
|
export declare function profileContainsDevice(profile: ProvisioningProfileInfo, deviceUDID?: string): boolean;
|
|
17
18
|
export declare function profileMatchesBundleID(profile: ProvisioningProfileInfo, bundleID?: string): boolean;
|
|
18
19
|
export declare function parseProvisioningProfile(file: File): Promise<{
|
|
@@ -22,6 +23,7 @@ export declare function parseProvisioningProfile(file: File): Promise<{
|
|
|
22
23
|
applicationIdentifier: string | undefined;
|
|
23
24
|
bundleID: string | undefined;
|
|
24
25
|
provisionedDevices: string[];
|
|
26
|
+
getTaskAllow: boolean | undefined;
|
|
25
27
|
expirationDate: string | undefined;
|
|
26
28
|
}>;
|
|
27
29
|
export declare function parseProvisioningProfileBase64(base64: string): {
|
|
@@ -31,6 +33,7 @@ export declare function parseProvisioningProfileBase64(base64: string): {
|
|
|
31
33
|
applicationIdentifier: string | undefined;
|
|
32
34
|
bundleID: string | undefined;
|
|
33
35
|
provisionedDevices: string[];
|
|
36
|
+
getTaskAllow: boolean | undefined;
|
|
34
37
|
expirationDate: string | undefined;
|
|
35
38
|
};
|
|
36
39
|
export declare function parseProvisioningProfileBytes(bytes: Uint8Array): {
|
|
@@ -40,5 +43,6 @@ export declare function parseProvisioningProfileBytes(bytes: Uint8Array): {
|
|
|
40
43
|
applicationIdentifier: string | undefined;
|
|
41
44
|
bundleID: string | undefined;
|
|
42
45
|
provisionedDevices: string[];
|
|
46
|
+
getTaskAllow: boolean | undefined;
|
|
43
47
|
expirationDate: string | undefined;
|
|
44
48
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type DeviceInstallLog = (message: string, detail?: string) => void;
|
|
2
|
+
export type DeviceInstallSigningMode = 'development' | 'adhoc';
|
|
2
3
|
export type DeviceInstallStep = 'signing' | 'connect' | 'build' | 'install';
|
|
3
4
|
export type DeviceInstallStepStatus = 'idle' | 'active' | 'complete' | 'error';
|
|
4
5
|
export type DeviceInstallBusyAction = 'signing' | 'usb' | 'pair' | 'build' | 'install';
|
|
@@ -29,17 +30,19 @@ export type ProvisioningProfileInfo = {
|
|
|
29
30
|
applicationIdentifier?: string;
|
|
30
31
|
bundleID?: string;
|
|
31
32
|
provisionedDevices: string[];
|
|
33
|
+
getTaskAllow?: boolean;
|
|
32
34
|
expirationDate?: string;
|
|
33
35
|
};
|
|
34
36
|
export type StoredSigningAssets = {
|
|
35
37
|
id: string;
|
|
36
38
|
deviceUDID?: string;
|
|
37
39
|
teamID?: string;
|
|
40
|
+
signingMode?: DeviceInstallSigningMode;
|
|
38
41
|
bundleID: string;
|
|
39
42
|
certificateID?: string;
|
|
40
43
|
certificateP12Base64: string;
|
|
41
44
|
certificateFileName?: string;
|
|
42
|
-
certificatePassword
|
|
45
|
+
certificatePassword?: string;
|
|
43
46
|
provisioningProfileBase64: string;
|
|
44
47
|
profileFileName?: string;
|
|
45
48
|
profile: ProvisioningProfileInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../use-device-install-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../use-device-install-BIrl0v-k.js"),t=require("../device-install-dialog-DY35un0b.js");exports.AppleGsaSrpClient=e.AppleGsaSrpClient;exports.RELAY_HEADER_BYTES=e.RELAY_HEADER_BYTES;exports.RELAY_PROTOCOL_VERSION=e.RELAY_PROTOCOL_VERSION;exports.RelayClient=e.RelayClient;exports.RelayMessageType=e.RelayMessageType;exports.claimUsbmux=e.claimUsbmux;exports.closeDeviceRelayTarget=e.closeDeviceRelayTarget;exports.closeUsbmuxSession=e.closeUsbmuxSession;exports.createAdHocProfileRequest=e.createAdHocProfileRequest;exports.createAppleRelaySession=e.createAppleRelaySession;exports.createBundleIDRequest=e.createBundleIDRequest;exports.createDevelopmentProfileRequest=e.createDevelopmentProfileRequest;exports.createUsbmuxSession=e.createUsbmuxSession;exports.decodeFrame=e.decodeFrame;exports.decodeJson=e.decodeJson;exports.deleteAppleRelaySession=e.deleteAppleRelaySession;exports.deviceRelayWebSocketUrl=e.deviceRelayWebSocketUrl;exports.downloadCertificateRequest=e.downloadCertificateRequest;exports.downloadDistributionCertificateRequest=e.downloadDistributionCertificateRequest;exports.downloadProfileRequest=e.downloadProfileRequest;exports.encodeFrame=e.encodeFrame;exports.encodeJson=e.encodeJson;exports.exportAppleCertificateP12=e.exportAppleCertificateP12;exports.fetchAppleAccountSession=e.fetchAppleAccountSession;exports.fetchLimbuildInfo=e.fetchLimbuildInfo;exports.findAdHocProfilesRequest=e.findAdHocProfilesRequest;exports.findBundleIDRequest=e.findBundleIDRequest;exports.findDevelopmentCertificatesRequest=e.findDevelopmentCertificatesRequest;exports.findDevelopmentProfilesRequest=e.findDevelopmentProfilesRequest;exports.findDeviceRequest=e.findDeviceRequest;exports.findDistributionCertificatesRequest=e.findDistributionCertificatesRequest;exports.findSigningAssetsForBundle=e.findSigningAssetsForBundle;exports.findUsbmuxCandidates=e.findUsbmuxCandidates;exports.generateAppleSigningKeyAndCSR=e.generateAppleSigningKeyAndCSR;exports.getBulkEndpoints=e.getBulkEndpoints;exports.getIOSOTAInstall=e.getIOSOTAInstall;exports.getLatestSigningAssets=e.getLatestSigningAssets;exports.getLatestSigningAssetsWithCertificate=e.getLatestSigningAssetsWithCertificate;exports.getPairRecord=e.getPairRecord;exports.getReusableAppleSigningAssets=e.getReusableAppleSigningAssets;exports.getSigningAssets=e.getSigningAssets;exports.listTeamsRequest=e.listTeamsRequest;exports.normalizeBundleID=e.normalizeBundleID;exports.normalizeUDID=e.normalizeUDID;exports.openStream=e.openStream;exports.parseProvisioningProfile=e.parseProvisioningProfile;exports.parseProvisioningProfileBase64=e.parseProvisioningProfileBase64;exports.parseProvisioningProfileBytes=e.parseProvisioningProfileBytes;exports.profileContainsDevice=e.profileContainsDevice;exports.profileMatchesBundleID=e.profileMatchesBundleID;exports.proxyPhoneTwoFactorCode=e.proxyPhoneTwoFactorCode;exports.proxyProvisioningRequest=e.proxyProvisioningRequest;exports.proxySrpComplete=e.proxySrpComplete;exports.proxySrpInit=e.proxySrpInit;exports.proxyTwoFactorCode=e.proxyTwoFactorCode;exports.putAppleGeneratedSigningAssets=e.putAppleGeneratedSigningAssets;exports.putPairRecord=e.putPairRecord;exports.putSigningAssets=e.putSigningAssets;exports.receiveStreamData=e.receiveStreamData;exports.registerDeviceRequest=e.registerDeviceRequest;exports.requestAppleDevice=e.requestAppleDevice;exports.requestUSBAccess=e.requestUSBAccess;exports.selectDeveloperPortalTeam=e.selectDeveloperPortalTeam;exports.sendStreamData=e.sendStreamData;exports.startBrowserOwnedAppleIDLogin=e.startBrowserOwnedAppleIDLogin;exports.startInstallRelay=e.startInstallRelay;exports.startPairingRelay=e.startPairingRelay;exports.startSignedDeviceBuild=e.startSignedDeviceBuild;exports.storedSigningAssetsReusable=e.storedSigningAssetsReusable;exports.submitDevelopmentCSRRequest=e.submitDevelopmentCSRRequest;exports.submitDistributionCSRRequest=e.submitDistributionCSRRequest;exports.teamIDCandidates=e.teamIDCandidates;exports.transferIn=e.transferIn;exports.transferOutWithZlp=e.transferOutWithZlp;exports.triggerPhoneTwoFactor=e.triggerPhoneTwoFactor;exports.triggerTrustedDeviceTwoFactor=e.triggerTrustedDeviceTwoFactor;exports.useDeviceInstall=e.useDeviceInstall;exports.watchBuildLogEvents=e.watchBuildLogEvents;exports.DeviceInstallDialog=t.DeviceInstallDialog;exports.DeviceInstallRelay=t.DeviceInstallDialog;
|
|
@@ -1,78 +1,84 @@
|
|
|
1
|
-
import { A as a,
|
|
2
|
-
import { D as
|
|
1
|
+
import { A as a, V as t, U as i, T as n, W as r, a6 as o, R as l, a3 as c, p as d, z as p, i as u, o as g, $ as R, Y as f, _ as D, B as S, S as A, m, n as v, q as P, X as q, Z as C, e as y, I, K as b, h as B, f as x, b as T, d as w, a as h, c as E, ai as L, a5 as O, g as F, a7 as U, M as _, af as k, ag as H, ac as W, t as Y, ae as z, l as G, ab as J, aa as M, a0 as j, al as K, am as N, an as V, aj as Z, ak as Q, H as X, J as $, D as ee, C as se, G as ae, v as te, ad as ie, ah as ne, a2 as re, r as oe, a4 as le, O as ce, x as de, a1 as pe, s as ue, Q as ge, P as Re, L as fe, w as De, j as Se, k as Ae, y as me, a9 as ve, a8 as Pe, F as qe, E as Ce, u as ye, N as Ie } from "../use-device-install-LGfEdqyM.mjs";
|
|
2
|
+
import { D as Be, D as xe } from "../device-install-dialog-chNLeiiL.mjs";
|
|
3
3
|
export {
|
|
4
4
|
a as AppleGsaSrpClient,
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Be as DeviceInstallDialog,
|
|
6
|
+
xe as DeviceInstallRelay,
|
|
7
7
|
t as RELAY_HEADER_BYTES,
|
|
8
8
|
i as RELAY_PROTOCOL_VERSION,
|
|
9
9
|
n as RelayClient,
|
|
10
10
|
r as RelayMessageType,
|
|
11
11
|
o as claimUsbmux,
|
|
12
12
|
l as closeDeviceRelayTarget,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
c as closeUsbmuxSession,
|
|
14
|
+
d as createAdHocProfileRequest,
|
|
15
|
+
p as createAppleRelaySession,
|
|
16
|
+
u as createBundleIDRequest,
|
|
16
17
|
g as createDevelopmentProfileRequest,
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
R as createUsbmuxSession,
|
|
19
|
+
f as decodeFrame,
|
|
19
20
|
D as decodeJson,
|
|
20
21
|
S as deleteAppleRelaySession,
|
|
21
|
-
|
|
22
|
+
A as deviceRelayWebSocketUrl,
|
|
22
23
|
m as downloadCertificateRequest,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
v as downloadDistributionCertificateRequest,
|
|
25
|
+
P as downloadProfileRequest,
|
|
26
|
+
q as encodeFrame,
|
|
27
|
+
C as encodeJson,
|
|
26
28
|
y as exportAppleCertificateP12,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
W as
|
|
43
|
-
Y as
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
pe as
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
29
|
+
I as fetchAppleAccountSession,
|
|
30
|
+
b as fetchLimbuildInfo,
|
|
31
|
+
B as findAdHocProfilesRequest,
|
|
32
|
+
x as findBundleIDRequest,
|
|
33
|
+
T as findDevelopmentCertificatesRequest,
|
|
34
|
+
w as findDevelopmentProfilesRequest,
|
|
35
|
+
h as findDeviceRequest,
|
|
36
|
+
E as findDistributionCertificatesRequest,
|
|
37
|
+
L as findSigningAssetsForBundle,
|
|
38
|
+
O as findUsbmuxCandidates,
|
|
39
|
+
F as generateAppleSigningKeyAndCSR,
|
|
40
|
+
U as getBulkEndpoints,
|
|
41
|
+
_ as getIOSOTAInstall,
|
|
42
|
+
k as getLatestSigningAssets,
|
|
43
|
+
H as getLatestSigningAssetsWithCertificate,
|
|
44
|
+
W as getPairRecord,
|
|
45
|
+
Y as getReusableAppleSigningAssets,
|
|
46
|
+
z as getSigningAssets,
|
|
47
|
+
G as listTeamsRequest,
|
|
48
|
+
J as normalizeBundleID,
|
|
49
|
+
M as normalizeUDID,
|
|
50
|
+
j as openStream,
|
|
51
|
+
K as parseProvisioningProfile,
|
|
52
|
+
N as parseProvisioningProfileBase64,
|
|
53
|
+
V as parseProvisioningProfileBytes,
|
|
54
|
+
Z as profileContainsDevice,
|
|
55
|
+
Q as profileMatchesBundleID,
|
|
56
|
+
X as proxyPhoneTwoFactorCode,
|
|
57
|
+
$ as proxyProvisioningRequest,
|
|
58
|
+
ee as proxySrpComplete,
|
|
59
|
+
se as proxySrpInit,
|
|
60
|
+
ae as proxyTwoFactorCode,
|
|
61
|
+
te as putAppleGeneratedSigningAssets,
|
|
62
|
+
ie as putPairRecord,
|
|
63
|
+
ne as putSigningAssets,
|
|
64
|
+
re as receiveStreamData,
|
|
65
|
+
oe as registerDeviceRequest,
|
|
66
|
+
le as requestAppleDevice,
|
|
67
|
+
ce as requestUSBAccess,
|
|
68
|
+
de as selectDeveloperPortalTeam,
|
|
69
|
+
pe as sendStreamData,
|
|
70
|
+
ue as startBrowserOwnedAppleIDLogin,
|
|
71
|
+
ge as startInstallRelay,
|
|
72
|
+
Re as startPairingRelay,
|
|
73
|
+
fe as startSignedDeviceBuild,
|
|
74
|
+
De as storedSigningAssetsReusable,
|
|
75
|
+
Se as submitDevelopmentCSRRequest,
|
|
76
|
+
Ae as submitDistributionCSRRequest,
|
|
77
|
+
me as teamIDCandidates,
|
|
78
|
+
ve as transferIn,
|
|
79
|
+
Pe as transferOutWithZlp,
|
|
80
|
+
qe as triggerPhoneTwoFactor,
|
|
81
|
+
Ce as triggerTrustedDeviceTwoFactor,
|
|
82
|
+
ye as useDeviceInstall,
|
|
83
|
+
Ie as watchBuildLogEvents
|
|
78
84
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../use-device-install-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../use-device-install-BIrl0v-k.js");exports.useDeviceInstall=e.useDeviceInstall;
|