File tree 3 files changed +5
-0
lines changed
3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export async function getVirtualTargets(sdk: SDK) {
33
33
34
34
function deviceToTarget ( device : Device ) : Target {
35
35
return {
36
+ platform : 'android' ,
36
37
model : `${ device . manufacturer } ${ device . model } ` ,
37
38
sdkVersion : device . sdkVersion ,
38
39
id : device . serial ,
@@ -44,6 +45,7 @@ function deviceToTarget(device: Device): Target {
44
45
45
46
function avdToTarget ( avd : AVD ) : Target {
46
47
return {
48
+ platform : 'android' ,
47
49
name : avd . name ,
48
50
sdkVersion : avd . sdkVersion ,
49
51
id : avd . id ,
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export async function run(args: string[]) {
17
17
18
18
function deviceToTarget ( device : DeviceValues ) : Target {
19
19
return {
20
+ platform : 'ios' ,
20
21
name : device . DeviceName ,
21
22
model : device . ProductType ,
22
23
sdkVersion : device . ProductVersion ,
@@ -29,6 +30,7 @@ function deviceToTarget(device: DeviceValues): Target {
29
30
30
31
function simulatorToTarget ( simulator : Simulator ) : Target {
31
32
return {
33
+ platform : 'ios' ,
32
34
name : simulator . name ,
33
35
sdkVersion : simulator . runtime . version ,
34
36
id : simulator . udid ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { CLIException, ERR_BAD_INPUT } from '../errors';
3
3
import { stringify } from './json' ;
4
4
5
5
export interface Target {
6
+ readonly platform : 'android' | 'ios' ;
6
7
readonly model ?: string ;
7
8
readonly name ?: string ;
8
9
readonly sdkVersion : string ;
You can’t perform that action at this time.
0 commit comments