@absolutejs/absolute 0.20.0-beta.42 → 0.20.0-beta.43

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.
@@ -20,17 +20,21 @@ export type PlanAbsoluteExpoDevOptions = {
20
20
  certificateAuthorityPath?: string;
21
21
  iosDevice?: string;
22
22
  iosOrigin?: string;
23
+ metroHost?: string;
23
24
  metroPort: number;
25
+ /** The caller owns Metro, for example through a Remote Mac tunnel. */
26
+ metro?: 'external' | 'managed';
24
27
  platforms: AbsoluteExpoDevPlatform[];
25
28
  };
29
+ export type AbsoluteExpoDevPhaseTiming = {
30
+ durationMs: number;
31
+ phase: AbsoluteExpoDevState;
32
+ };
26
33
  export type StartAbsoluteExpoDevOptions = PlanAbsoluteExpoDevOptions & {
27
34
  config: NormalizedAbsoluteMobileConfig;
28
35
  executable?: string;
29
36
  log?: (message: string) => void;
30
- onPhaseTiming?: (timing: {
31
- durationMs: number;
32
- phase: AbsoluteExpoDevState;
33
- }) => void;
37
+ onPhaseTiming?: (timing: AbsoluteExpoDevPhaseTiming) => void;
34
38
  onStateChange?: (state: AbsoluteExpoDevState) => void;
35
39
  signal?: AbortSignal;
36
40
  spawnProcess?: typeof spawn;
@@ -1,6 +1,7 @@
1
1
  import type { FileSink } from 'bun';
2
2
  import type { NormalizedAbsoluteMobileConfig } from './config';
3
3
  import type { AbsoluteIosDevPhaseTiming, AbsoluteIosDevSession, AbsoluteIosDevState, AbsoluteIosNativeLogEntry } from './iosSimulatorController';
4
+ import type { AbsoluteExpoDevPhaseTiming, AbsoluteExpoDevSession, AbsoluteExpoDevState } from './expoDevController';
4
5
  export { ABSOLUTE_REMOTE_MAC_EVENT_PREFIX, ABSOLUTE_REMOTE_MAC_PROTOCOL_VERSION } from './remoteMacWire';
5
6
  export type AbsoluteRemoteMacProfile = {
6
7
  bunPath: string;
@@ -28,6 +29,11 @@ export type AbsoluteRemoteIosDevProject = {
28
29
  xcodebuild: string;
29
30
  xcrun: string;
30
31
  };
32
+ export type AbsoluteRemoteExpoIosDevProject = AbsoluteRemoteIosDevProject & {
33
+ config: NormalizedAbsoluteMobileConfig & {
34
+ engine: 'expo';
35
+ };
36
+ };
31
37
  export type AbsoluteIosDevelopmentProject = AbsoluteRemoteIosDevProject | (import('./iosSimulatorController').AbsoluteIosDevProject & {
32
38
  remote?: false;
33
39
  });
@@ -67,6 +73,25 @@ export type AbsoluteRemoteIosOptions = {
67
73
  syncProject?: (project: AbsoluteRemoteIosDevProject) => Promise<void>;
68
74
  transport?: AbsoluteRemoteMacTransport;
69
75
  };
76
+ export type AbsoluteRemoteExpoIosOptions = {
77
+ certificateAuthorityPath?: string;
78
+ deviceIdentifier?: string;
79
+ https?: boolean;
80
+ log?: (message: string) => void;
81
+ metroPort: number;
82
+ onPhaseTiming?: (timing: AbsoluteExpoDevPhaseTiming) => void;
83
+ onStateChange?: (state: AbsoluteExpoDevState) => void;
84
+ port: number;
85
+ project: AbsoluteRemoteExpoIosDevProject;
86
+ serverHost?: string;
87
+ signal?: AbortSignal;
88
+ installAgent?: (project: AbsoluteRemoteIosDevProject) => Promise<{
89
+ remotePath: string;
90
+ uploaded?: boolean;
91
+ }>;
92
+ syncProject?: (project: AbsoluteRemoteIosDevProject) => Promise<void>;
93
+ transport?: AbsoluteRemoteMacTransport;
94
+ };
70
95
  export declare const validateAbsoluteRemoteMacProfileName: (name: string) => string;
71
96
  export declare const validateAbsoluteSshDestination: (destination: string) => string;
72
97
  export declare const absoluteRemoteMacSshBase: (profile: Pick<AbsoluteRemoteMacProfile, "destination" | "port">, options?: {
@@ -104,6 +129,7 @@ export declare const pairAbsoluteRemoteMac: (options: {
104
129
  workspaceRoot?: string;
105
130
  }) => Promise<AbsoluteRemoteMacProfile>;
106
131
  export declare const removeAbsoluteRemoteMacProfile: (name: string, profilePath?: string) => Promise<boolean>;
132
+ export declare const createAbsoluteRemoteExpoIosDevProject: (config: NormalizedAbsoluteMobileConfig, projectRoot: string, profile: AbsoluteRemoteMacProfile) => AbsoluteRemoteExpoIosDevProject;
107
133
  export declare const createAbsoluteRemoteIosDevProject: (config: NormalizedAbsoluteMobileConfig, projectRoot: string, profile: AbsoluteRemoteMacProfile) => AbsoluteRemoteIosDevProject;
108
134
  export declare const installAbsoluteRemoteMacAgent: (project: AbsoluteRemoteIosDevProject) => Promise<{
109
135
  remotePath: string;
@@ -122,4 +148,5 @@ export declare const absoluteRemoteProjectSyncCommands: (project: AbsoluteRemote
122
148
  tar: string[];
123
149
  };
124
150
  export declare const syncAbsoluteRemoteMacProject: (project: AbsoluteRemoteIosDevProject) => Promise<void>;
151
+ export declare const startAbsoluteRemoteExpoIosDevSession: (options: AbsoluteRemoteExpoIosOptions) => Promise<AbsoluteExpoDevSession>;
125
152
  export declare const startAbsoluteRemoteIosDevSession: (options: AbsoluteRemoteIosOptions) => Promise<AbsoluteIosDevSession>;
@@ -1,2 +1,2 @@
1
1
  export declare const ABSOLUTE_REMOTE_MAC_EVENT_PREFIX = "ABSOLUTE_REMOTE_MAC\t";
2
- export declare const ABSOLUTE_REMOTE_MAC_PROTOCOL_VERSION = 1;
2
+ export declare const ABSOLUTE_REMOTE_MAC_PROTOCOL_VERSION = 2;
package/package.json CHANGED
@@ -506,7 +506,7 @@
506
506
  ]
507
507
  }
508
508
  },
509
- "version": "0.20.0-beta.42",
509
+ "version": "0.20.0-beta.43",
510
510
  "workspaces": [
511
511
  "tests/fixtures/*",
512
512
  "tests/fixtures/_packages/*"