You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@react-native-community/cli-platform-android

Package Overview
Dependencies
Maintainers
35
Versions
234
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native-community/cli-platform-android - npm Package Compare versions

Comparing version

to
17.0.0

16

build/commands/runAndroid/index.js

@@ -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