Skip to content

Commit 749c2bf

Browse files
committed
add platform to target output
1 parent 1dc9f28 commit 749c2bf

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/android/list.ts

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export async function getVirtualTargets(sdk: SDK) {
3333

3434
function deviceToTarget(device: Device): Target {
3535
return {
36+
platform: 'android',
3637
model: `${device.manufacturer} ${device.model}`,
3738
sdkVersion: device.sdkVersion,
3839
id: device.serial,
@@ -44,6 +45,7 @@ function deviceToTarget(device: Device): Target {
4445

4546
function avdToTarget(avd: AVD): Target {
4647
return {
48+
platform: 'android',
4749
name: avd.name,
4850
sdkVersion: avd.sdkVersion,
4951
id: avd.id,

src/ios/list.ts

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export async function run(args: string[]) {
1717

1818
function deviceToTarget(device: DeviceValues): Target {
1919
return {
20+
platform: 'ios',
2021
name: device.DeviceName,
2122
model: device.ProductType,
2223
sdkVersion: device.ProductVersion,
@@ -29,6 +30,7 @@ function deviceToTarget(device: DeviceValues): Target {
2930

3031
function simulatorToTarget(simulator: Simulator): Target {
3132
return {
33+
platform: 'ios',
3234
name: simulator.name,
3335
sdkVersion: simulator.runtime.version,
3436
id: simulator.udid,

src/utils/list.ts

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { CLIException, ERR_BAD_INPUT } from '../errors';
33
import { stringify } from './json';
44

55
export interface Target {
6+
readonly platform: 'android' | 'ios';
67
readonly model?: string;
78
readonly name?: string;
89
readonly sdkVersion: string;

0 commit comments

Comments
 (0)