@@ -178,7 +178,7 @@ async function buildAndRun(args: Flags, androidProject: AndroidProject) {
178
178
179
179
if ( device . connected ) {
180
180
return runOnSpecificDevice (
181
- { ...args , deviceId : device . deviceId } ,
181
+ { ...args , device : device . deviceId } ,
182
182
adbPath ,
183
183
androidProject ,
184
184
selectedTask ,
@@ -192,7 +192,7 @@ async function buildAndRun(args: Flags, androidProject: AndroidProject) {
192
192
if ( result . success ) {
193
193
logger . info ( 'Successfully launched emulator.' ) ;
194
194
return runOnSpecificDevice (
195
- { ...args , deviceId : emulator } ,
195
+ { ...args , device : emulator } ,
196
196
adbPath ,
197
197
androidProject ,
198
198
selectedTask ,
@@ -217,7 +217,7 @@ function runOnSpecificDevice(
217
217
selectedTask ?: string ,
218
218
) {
219
219
const devices = adb . getDevices ( adbPath ) ;
220
- const { deviceId } = args ;
220
+ const { device } = args ;
221
221
222
222
// if coming from run-android command and we have selected task
223
223
// from interactive mode we need to create appropriate build task
@@ -226,8 +226,8 @@ function runOnSpecificDevice(
226
226
? [ selectedTask . replace ( 'install' , 'assemble' ) ]
227
227
: [ ] ;
228
228
229
- if ( devices . length > 0 && deviceId ) {
230
- if ( devices . indexOf ( deviceId ) !== - 1 ) {
229
+ if ( devices . length > 0 && device ) {
230
+ if ( devices . indexOf ( device ) !== - 1 ) {
231
231
let gradleArgs = getTaskNames (
232
232
androidProject . appName ,
233
233
args . mode ,
@@ -246,7 +246,7 @@ function runOnSpecificDevice(
246
246
}
247
247
248
248
if ( args . activeArchOnly ) {
249
- const architecture = adb . getCPU ( adbPath , deviceId ) ;
249
+ const architecture = adb . getCPU ( adbPath , device ) ;
250
250
251
251
if ( architecture !== null ) {
252
252
logger . info ( `Detected architecture ${ architecture } ` ) ;
@@ -263,14 +263,14 @@ function runOnSpecificDevice(
263
263
264
264
installAndLaunchOnDevice (
265
265
args ,
266
- deviceId ,
266
+ device ,
267
267
adbPath ,
268
268
androidProject ,
269
269
selectedTask ,
270
270
) ;
271
271
} else {
272
272
logger . error (
273
- `Could not find device with the id : "${ deviceId } ". Please choose one of the following:` ,
273
+ `Could not find device: "${ device } ". Please choose one of the following:` ,
274
274
...devices ,
275
275
) ;
276
276
}
0 commit comments