@react-native-community/cli-platform-android
Advanced tools
Comparing version
@@ -176,3 +176,3 @@ "use strict"; | ||
...args, | ||
deviceId: device.deviceId | ||
device: device.deviceId | ||
}, adbPath, androidProject, selectedTask); | ||
@@ -188,3 +188,3 @@ } | ||
...args, | ||
deviceId: emulator | ||
device: emulator | ||
}, adbPath, androidProject, selectedTask); | ||
@@ -203,3 +203,3 @@ } | ||
const { | ||
deviceId | ||
device | ||
} = args; | ||
@@ -211,4 +211,4 @@ | ||
const buildTask = selectedTask ? [selectedTask.replace('install', 'assemble')] : []; | ||
if (devices.length > 0 && deviceId) { | ||
if (devices.indexOf(deviceId) !== -1) { | ||
if (devices.length > 0 && device) { | ||
if (devices.indexOf(device) !== -1) { | ||
let gradleArgs = (0, _getTaskNames.getTaskNames)(androidProject.appName, args.mode, args.tasks ?? buildTask, 'install'); | ||
@@ -225,3 +225,3 @@ | ||
if (args.activeArchOnly) { | ||
const architecture = _adb.default.getCPU(adbPath, deviceId); | ||
const architecture = _adb.default.getCPU(adbPath, device); | ||
if (architecture !== null) { | ||
@@ -238,5 +238,5 @@ _cliTools().logger.info(`Detected architecture ${architecture}`); | ||
} | ||
installAndLaunchOnDevice(args, deviceId, adbPath, androidProject, selectedTask); | ||
installAndLaunchOnDevice(args, device, adbPath, androidProject, selectedTask); | ||
} else { | ||
_cliTools().logger.error(`Could not find device with the id: "${deviceId}". Please choose one of the following:`, ...devices); | ||
_cliTools().logger.error(`Could not find device: "${device}". Please choose one of the following:`, ...devices); | ||
} | ||
@@ -243,0 +243,0 @@ } else { |
{ | ||
"name": "@react-native-community/cli-platform-android", | ||
"version": "16.0.2", | ||
"version": "17.0.0", | ||
"license": "MIT", | ||
@@ -10,4 +10,4 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@react-native-community/cli-config-android": "16.0.2", | ||
"@react-native-community/cli-tools": "16.0.2", | ||
"@react-native-community/cli-config-android": "17.0.0", | ||
"@react-native-community/cli-tools": "17.0.0", | ||
"chalk": "^4.1.2", | ||
@@ -23,3 +23,3 @@ "execa": "^5.0.0", | ||
"devDependencies": { | ||
"@react-native-community/cli-types": "16.0.2" | ||
"@react-native-community/cli-types": "17.0.0" | ||
}, | ||
@@ -32,3 +32,3 @@ "homepage": "https://github.com/react-native-community/cli/tree/main/packages/cli-platform-android", | ||
}, | ||
"gitHead": "feba14cf36de2fdefa41c7052841a5ee34c19084" | ||
"gitHead": "a94e2df7882166b375fbfe2b4ff04a94e2af62d9" | ||
} |
Sorry, the diff of this file is not supported yet
144672
-0.04%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed