@react-native-community/cli-platform-android
Advanced tools
Comparing version 2.0.0-alpha.6 to 2.0.0-alpha.7
@@ -42,4 +42,2 @@ "use strict"; | ||
var _isPackagerRunning = _interopRequireDefault(require("./isPackagerRunning")); | ||
var _tryRunAdbReverse = _interopRequireDefault(require("./tryRunAdbReverse")); | ||
@@ -91,3 +89,3 @@ | ||
return (0, _isPackagerRunning.default)(args.port).then(result => { | ||
return (0, _cliTools().isPackagerRunning)(args.port).then(result => { | ||
if (result === 'running') { | ||
@@ -184,5 +182,5 @@ _cliTools().logger.info('JS server already running.'); | ||
const pathToApk = `${buildDirectory}/${apkFile}`; | ||
const adbArgs = ['-s', device, 'install', pathToApk]; | ||
const adbArgs = ['-s', device, 'install', '-rd', pathToApk]; | ||
_cliTools().logger.info(`Installing the app on the device (cd android && adb -s ${device} install ${pathToApk}`); | ||
_cliTools().logger.info(`Installing the app on the device (cd android && adb -s ${device} install -rd ${pathToApk}`); | ||
@@ -225,3 +223,3 @@ (0, _child_process().execFileSync)(adbPath, adbArgs, { | ||
function startServerInNewWindow(port, terminal = process.env.REACT_TERMINAL, reactNativePath) { | ||
function startServerInNewWindow(port, terminal, reactNativePath) { | ||
/** | ||
@@ -334,5 +332,5 @@ * Set up OS-specific filenames and commands | ||
description: 'Launches the Metro Bundler in a new window using the specified terminal path.', | ||
default: '' | ||
default: (0, _cliTools().getDefaultUserTerminal)() | ||
}] | ||
}; | ||
exports.default = _default; |
{ | ||
"name": "@react-native-community/cli-platform-android", | ||
"version": "2.0.0-alpha.6", | ||
"version": "2.0.0-alpha.7", | ||
"main": "build/index.js", | ||
"dependencies": { | ||
"@react-native-community/cli-tools": "^2.0.0-alpha.6", | ||
"@react-native-community/cli-tools": "^2.0.0-alpha.7", | ||
"logkitty": "^0.4.0", | ||
@@ -12,3 +12,6 @@ "node-fetch": "^2.2.0", | ||
}, | ||
"gitHead": "0a049714b061979abd7f9635f5f5fe784abf5668" | ||
"files": [ | ||
"build" | ||
], | ||
"gitHead": "60606efd56da6065d339100e42968c25b4dad182" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
13
5
48504
31
1350