mirror of
https://github.com/morluto/rea.git
synced 2026-12-04 01:54:49 +00:00
12 lines
591 B
TypeScript
12 lines
591 B
TypeScript
import type { RequestAnalysisPort } from "../ports/AnalysisProvider.js";
|
|
import type { AdbRequest } from "../domain/adb/adbDeviceAnalysis.js";
|
|
import { AdbProvider } from "../adb/AdbProvider.js";
|
|
import { HOST_PLATFORM } from "../platform/HostPlatform.js";
|
|
|
|
/** Construct one ADB provider bound to the caller-selected binary. */
|
|
export const createAdbDeviceAnalysisProvider = (
|
|
environment: Readonly<Record<string, string | undefined>> = process.env,
|
|
platform: NodeJS.Platform = HOST_PLATFORM.platform,
|
|
): RequestAnalysisPort<AdbRequest> =>
|
|
new AdbProvider({ environment, platform });
|