Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cocoonjs

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cocoonjs - npm Package Compare versions

Comparing version 1.0.0-0.3.0 to 1.0.0-0.4.0

2

package.json
{
"name": "cocoonjs",
"version": "1.0.0-0.3.0",
"version": "1.0.0-0.4.0",
"preferGlobal": "true",

@@ -5,0 +5,0 @@ "description": "CocoonJS command line tool",

# CocoonJS-cli Release Notes
### 1.0.0-0.4.0 ()
* Improved Webview+ installation method
### 1.0.0-0.3.0 ()

@@ -4,0 +7,0 @@ * checkRequirements() now uses the correct cordova-cli provided by getCordovaCMD()

@@ -83,3 +83,3 @@ var shell = require('shelljs'),

command = (util.inWindows) ? "where android" : "which android";
command = (util.inWindows) ? "android --help" : "which android";
result = this._cmd.exec(command, options);

@@ -91,10 +91,17 @@ if(result.code !== 0){

command = (util.inWindows) ? "echo %ANDROID_HOME%" : "echo $ANDROID_HOME";
command = (util.inWindows) ? "set" : "echo $ANDROID_HOME";
result = this._cmd.exec(command, options);
if( (result.output.length < 2) ) {
util.log("Missing environment variable ANDROID_HOME. The ANDROID_HOME variable must exist and should point to your android SDK directory.");
return false;
if(util.inWindows){
if(result.output.indexOf("ANDROID_HOME") === -1){
util.log("Missing environment variable ANDROID_HOME. The ANDROID_HOME variable must exist and should point to your android SDK directory.");
return false;
}
}else{
if( (result.output.length < 2) ) {
util.log("Missing environment variable ANDROID_HOME. The ANDROID_HOME variable must exist and should point to your android SDK directory.");
return false;
}
}
command = (util.inWindows) ? "where javac" : "which javac";
command = (util.inWindows) ? "javac -help" : "which javac";
result = this._cmd.exec(command, options);

@@ -181,3 +188,3 @@ if(result.code !== 0){

}
util.log("Downloading Webview+...");
var plugin_result = this._cmd.exec("plugin add " + plugin.bundle_id);

@@ -209,3 +216,2 @@ if(plugin_result.code !== 0) {

util.errorLog("Cannot build Webview+ project");
this._cmd.exec("plugin rm " + plugin_id);
process.exit(release_result.code);

@@ -212,0 +218,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc