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

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.
@@ -1,3 +1,3 @@
1
1
  import type { MobileConfig } from '../../types/build';
2
- export declare const absoluteNativeDevAdapterSource: (projectRoot: string, mobile: MobileConfig, resolveModule?: (specifier: string) => string) => string;
2
+ export declare const absoluteNativeDevAdapterSource: (projectRoot: string, mobile: MobileConfig, resolveModule?: (specifier: string) => string, expoAdapterModule?: string) => string;
3
3
  export declare const buildAbsoluteNativeDevAdapter: (projectRoot: string, mobile: MobileConfig) => Promise<string>;
@@ -0,0 +1,52 @@
1
+ import { spawn } from 'node:child_process';
2
+ import type { NormalizedAbsoluteMobileConfig } from './config';
3
+ import { startAbsoluteIosCaEnrollmentServer } from './iosPhysicalDeviceTransport';
4
+ export type AbsoluteExpoDevPlatform = 'android' | 'ios';
5
+ export type AbsoluteExpoDevState = 'building-android' | 'building-ios' | 'closed' | 'enrolling-trust' | 'failed' | 'preparing-native' | 'ready' | 'starting-metro';
6
+ export type AbsoluteExpoDevCommand = {
7
+ args: string[];
8
+ env: Record<string, string>;
9
+ platform?: AbsoluteExpoDevPlatform;
10
+ role: 'metro' | 'native-build' | 'native-prepare';
11
+ };
12
+ export type AbsoluteExpoDevPlan = {
13
+ commands: AbsoluteExpoDevCommand[];
14
+ metroPort: number;
15
+ project: string;
16
+ };
17
+ export type PlanAbsoluteExpoDevOptions = {
18
+ androidDevice?: string;
19
+ androidOrigin?: string;
20
+ certificateAuthorityPath?: string;
21
+ iosDevice?: string;
22
+ iosOrigin?: string;
23
+ metroPort: number;
24
+ platforms: AbsoluteExpoDevPlatform[];
25
+ };
26
+ export type StartAbsoluteExpoDevOptions = PlanAbsoluteExpoDevOptions & {
27
+ config: NormalizedAbsoluteMobileConfig;
28
+ executable?: string;
29
+ log?: (message: string) => void;
30
+ onPhaseTiming?: (timing: {
31
+ durationMs: number;
32
+ phase: AbsoluteExpoDevState;
33
+ }) => void;
34
+ onStateChange?: (state: AbsoluteExpoDevState) => void;
35
+ signal?: AbortSignal;
36
+ spawnProcess?: typeof spawn;
37
+ startCaEnrollmentServer?: typeof startAbsoluteIosCaEnrollmentServer;
38
+ };
39
+ export type AbsoluteExpoDevSession = {
40
+ close: () => Promise<void>;
41
+ metroPort: number;
42
+ platforms: AbsoluteExpoDevPlatform[];
43
+ timings: Partial<Record<AbsoluteExpoDevState, number>>;
44
+ };
45
+ export declare const absoluteExpoExecutable: (project: string) => Promise<string>;
46
+ export declare const planAbsoluteExpoDevSession: (config: NormalizedAbsoluteMobileConfig, options: PlanAbsoluteExpoDevOptions) => AbsoluteExpoDevPlan;
47
+ export declare const startAbsoluteExpoDevSession: (options: StartAbsoluteExpoDevOptions) => Promise<{
48
+ metroPort: number;
49
+ platforms: AbsoluteExpoDevPlatform[];
50
+ timings: Partial<Record<AbsoluteExpoDevState, number>>;
51
+ close: () => Promise<void>;
52
+ }>;
@@ -17,6 +17,7 @@ export * from './syncSchema';
17
17
  export * from './syncRemediation';
18
18
  export * from './deviceCapabilities';
19
19
  export * from './expoBridge';
20
+ export * from './expoDevController';
20
21
  export * from './expoProject';
21
22
  export * from './capacitorProject';
22
23
  export * from './config';
@@ -1,4 +1,4 @@
1
- export type HMRClientTarget = 'capacitor-android' | 'capacitor-ios' | 'capacitor-native' | 'mobile-preview' | 'web';
1
+ export type HMRClientTarget = 'capacitor-android' | 'capacitor-ios' | 'capacitor-native' | 'expo-android' | 'expo-ios' | 'mobile-preview' | 'web';
2
2
  export type HMRApplyKind = 'component' | 'css' | 'full-reload' | 'html' | 'htmx' | 'script';
3
3
  export type HMRApplyOutcome = 'applied' | 'failed' | 'reloaded';
4
4
  export type PingMessage = {
package/package.json CHANGED
@@ -506,7 +506,7 @@
506
506
  ]
507
507
  }
508
508
  },
509
- "version": "0.20.0-beta.40",
509
+ "version": "0.20.0-beta.42",
510
510
  "workspaces": [
511
511
  "tests/fixtures/*",
512
512
  "tests/fixtures/_packages/*"