You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2017/06/07 04:59:51 UTC
[32/51] [partial] cordova-lib git commit: CB-11980: removed fetch,
common and serve into their own repos
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/lib/create.js
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/lib/create.js b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/lib/create.js
deleted file mode 100644
index 2f77cc2..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/lib/create.js
+++ /dev/null
@@ -1,81 +0,0 @@
-#!/usr/bin/env node
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-var fs = require('fs'),
- shjs = require('shelljs'),
- Q = require ('q'),
- args = process.argv,
- path = require('path'),
- ROOT = path.join(__dirname, '..', '..'),
- check_reqs = require('./check_reqs');
-
-module.exports.createProject = function(project_path,package_name,project_name){
-
- var VERSION = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8');
-
- // Set default values for path, package and name
- project_path = typeof project_path !== 'undefined' ? project_path : "CordovaExample";
-
- // Check if project already exists
- if (fs.existsSync(project_path)) {
- console.error('Project already exists! Delete and recreate');
- process.exit(2);
- }
-
- // Check that requirements are met and proper targets are installed
- if (!check_reqs.run()) {
- console.error('Please make sure you meet the software requirements in order to build a browser cordova project');
- process.exit(2);
- }
-
- //copy template directory
- shjs.cp('-r', path.join(ROOT, 'bin', 'templates', 'project', 'www'), project_path);
-
- //create cordova/lib if it does not exist yet
- if (!fs.existsSync(path.join(project_path,'cordova', 'lib'))) {
- shjs.mkdir('-p', path.join(project_path,'cordova', 'lib'));
- }
-
- //copy required node_modules
- shjs.cp('-r', path.join(ROOT, 'node_modules'), path.join(project_path,'cordova'));
-
- //copy check_reqs file
- shjs.cp( path.join(ROOT, 'bin', 'lib', 'check_reqs.js'), path.join(project_path,'cordova', 'lib'));
-
- //copy cordova js file
- shjs.cp('-r', path.join(ROOT, 'cordova-lib', 'cordova.js'), path.join(project_path,'www'));
-
- //copy cordova-js-src directory
- shjs.cp('-rf', path.join(ROOT, 'cordova-js-src'), path.join(project_path, 'platform_www'));
-
- //copy cordova directory
- shjs.cp('-r', path.join(ROOT, 'bin', 'templates', 'project', 'cordova'), project_path);
- [
- 'run',
- 'build',
- 'clean',
- 'version',
- ].forEach(function(f) {
- shjs.chmod(755, path.join(project_path, 'cordova', f));
- });
-
- return Q.resolve();
-};
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/lib/update.js
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/lib/update.js b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/lib/update.js
deleted file mode 100644
index 47b57d7..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/lib/update.js
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-
-var Q = require('q'),
- create = require('./create'),
- fs = require('fs'),
- shell = require('shelljs');
-
-module.exports.help = function () {
- console.log("WARNING : Make sure to back up your project before updating!");
- console.log("Usage: update PathToProject ");
- console.log(" PathToProject : The path the project you would like to update.");
- console.log("examples:");
- console.log(" update C:\\Users\\anonymous\\Desktop\\MyProject");
-};
-
-module.exports.run = function (argv) {
- var projectPath = argv[2];
- if (!fs.existsSync(projectPath)) {
- // if specified project path is not valid then reject promise
- Q.reject("Browser platform does not exist here: " + projectPath);
- }
- return Q().then(function () {
- console.log("Removing existing browser platform.");
- shellfatal(shell.rm, '-rf', projectPath);
- create.createProject(projectPath);
- });
-};
-
-function shellfatal(shellFunc) {
- var slicedArgs = Array.prototype.slice.call(arguments, 1);
- var returnVal = null;
- try {
- shell.config.fatal = true;
- returnVal = shellFunc.apply(shell, slicedArgs);
- }
- finally {
- shell.config.fatal = false;
- }
- return returnVal;
-}
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/build
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/build b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/build
deleted file mode 100755
index e867ab1..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/build
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env node
-
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-
-
-var build = require('./lib/build'),
- args = process.argv;
-
-// provide help
-if ( args[2] == '--help' || args[2] == '/?' || args[2] == '-h' || args[2] == '/h' ||
- args[2] == 'help' || args[2] == '-help' || args[2] == '/help') {
- build.help();
- process.exit(0);
-} else {
-
- build.run();
-}
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/build.bat
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/build.bat b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/build.bat
deleted file mode 100644
index 02641bc..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/build.bat
+++ /dev/null
@@ -1,26 +0,0 @@
-:: Licensed to the Apache Software Foundation (ASF) under one
-:: or more contributor license agreements. See the NOTICE file
-:: distributed with this work for additional information
-:: regarding copyright ownership. The ASF licenses this file
-:: to you under the Apache License, Version 2.0 (the
-:: "License"); you may not use this file except in compliance
-:: with the License. You may obtain a copy of the License at
-::
-:: http://www.apache.org/licenses/LICENSE-2.0
-::
-:: Unless required by applicable law or agreed to in writing,
-:: software distributed under the License is distributed on an
-:: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-:: KIND, either express or implied. See the License for the
-:: specific language governing permissions and limitations
-:: under the License.
-
-@ECHO OFF
-SET script_path="%~dp0build"
-IF EXIST %script_path% (
- node %script_path% %*
-) ELSE (
- ECHO.
- ECHO ERROR: Could not find 'build' script in 'cordova' folder, aborting...>&2
- EXIT /B 1
-)
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/clean
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/clean b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/clean
deleted file mode 100644
index da21bc7..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/clean
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/usr/bin/env node
-
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-
-
-var path = require('path'),
- clean = require('./lib/clean'),
- reqs = require('./lib/check_reqs'),
- args = process.argv;
-
-// Support basic help commands
-if ( args.length > 2
- || args[2] == '--help' || args[2] == '/?' || args[2] == '-h' ||
- args[2] == 'help' || args[2] == '-help' || args[2] == '/help') {
- console.log('Usage: ' + path.relative(process.cwd(), path.join(__dirname, 'clean')) );
- process.exit(0);
-} else {
- clean.cleanProject();
-}
-
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/defaults.xml
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/defaults.xml b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/defaults.xml
deleted file mode 100644
index a7b31c0..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/defaults.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version='1.0' encoding='utf-8'?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
-
-</widget>
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/lib/build.js
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/lib/build.js b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/lib/build.js
deleted file mode 100644
index fde7519..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/lib/build.js
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/usr/bin/env node
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-var path = require('path'),
- fs = require('fs'),
- shjs = require('shelljs'),
- zip = require('adm-zip'),
- Q = require('q'),
- clean = require('./clean'),
- check_reqs = require('./check_reqs'),
- platformWwwDir = path.join('platforms', 'browser', 'www'),
- platformBuildDir = path.join('platforms', 'browser', 'build'),
- packageFile = path.join(platformBuildDir, 'package.zip');
-
-/**
- * run
- * Creates a zip file int platform/build folder
- */
-module.exports.run = function(){
-
- return check_reqs.run()
- .then(function(){
- return clean.cleanProject();
- },
- function checkReqsError(err){
- console.error('Please make sure you meet the software requirements in order to build a browser cordova project');
- })
- .then(function(){
-
- if (!fs.existsSync(platformBuildDir)) {
- fs.mkdirSync(platformBuildDir);
- }
-
- // add the project to a zipfile
- var zipFile = zip();
- zipFile.addLocalFolder(platformWwwDir, '.');
- zipFile.writeZip(packageFile);
-
- return Q.resolve();
-
- });
-};
-
-module.exports.help = function() {
- console.log('Usage: cordova build browser');
- console.log('Build will create the packaged app in \''+platformBuildDir+'\'.');
-};
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/lib/clean.js
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/lib/clean.js b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/lib/clean.js
deleted file mode 100644
index 2e4367d..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/lib/clean.js
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/usr/bin/env node
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-var fs = require('fs'),
- shjs = require('shelljs'),
- path = require('path'),
- check_reqs = require('./check_reqs'),
- platformBuildDir = path.join('platforms', 'browser', 'build');
-
-exports.cleanProject = function(){
-
- // Check that requirements are (stil) met
- if (!check_reqs.run()) {
- console.error('Please make sure you meet the software requirements in order to clean an browser cordova project');
- process.exit(2);
- }
-
- console.log('Cleaning Browser project');
- try {
- if (fs.existsSync(platformBuildDir)) {
- shjs.rm('-r', platformBuildDir);
- }
- }
- catch(err) {
- console.log('could not remove '+platformBuildDir+' : '+err.message);
- }
-};
-
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/run
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/run b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/run
deleted file mode 100755
index d4c690b..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/run
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/usr/bin/env node
-
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-
-var fs = require('fs'),
- path = require('path'),
- nopt = require('nopt'),
- url = require('url'),
- cordovaServe = require('cordova-serve');
-
-var args = process.argv;
-
-start(args);
-
-function start(argv) {
- var args = nopt({'help': Boolean, 'target': String, 'port': Number}, {'help': ['/?', '-h', 'help', '-help', '/help']}, argv);
- if(args.help) {
- help();
- }
-
- // defaults
- args.port = args.port || 8000;
- args.target = args.target || "chrome";
-
- var root = path.join(__dirname, '../'),
- configFile = path.resolve(path.join(root, 'config.xml')),
- configXML = fs.readFileSync(configFile, 'utf8'),
- sourceFile = /<content[\s]+?src\s*=\s*"(.*?)"/i.exec(configXML);
-
- var server = cordovaServe();
- server.servePlatform('browser', {port: args.port, noServerInfo: true}).then(function () {
- var projectUrl = url.resolve('http://localhost:' + server.port + '/', sourceFile ? sourceFile[1] : 'index.html');
- console.log('Static file server running @ ' + projectUrl + '\nCTRL + C to shut down');
- return cordovaServe.launchBrowser({target: args.target, url: projectUrl});
- }).catch(function (error) {
- console.log(error.message || error.toString());
- if (server.server) {
- server.server.close();
- }
- });
-}
-
-function help() {
- console.log("\nUsage: run [ --target=<browser> ] [ --port=<number> ]");
- console.log(" --target=<browser> : Launches the specified browser. Chrome is default.");
- console.log(" --port=<number> : Http server uses specified port number.");
- console.log("Examples:");
- console.log(" run");
- console.log(" run -- --target=ie");
- console.log(" run -- --target=chrome --port=8000");
- console.log("");
- process.exit(0);
-}
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/run.bat
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/run.bat b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/run.bat
deleted file mode 100644
index b9c4402..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/run.bat
+++ /dev/null
@@ -1,26 +0,0 @@
-:: Licensed to the Apache Software Foundation (ASF) under one
-:: or more contributor license agreements. See the NOTICE file
-:: distributed with this work for additional information
-:: regarding copyright ownership. The ASF licenses this file
-:: to you under the Apache License, Version 2.0 (the
-:: "License"); you may not use this file except in compliance
-:: with the License. You may obtain a copy of the License at
-::
-:: http://www.apache.org/licenses/LICENSE-2.0
-::
-:: Unless required by applicable law or agreed to in writing,
-:: software distributed under the License is distributed on an
-:: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-:: KIND, either express or implied. See the License for the
-:: specific language governing permissions and limitations
-:: under the License.
-
-@ECHO OFF
-SET script_path="%~dp0run"
-IF EXIST %script_path% (
- node %script_path% %*
-) ELSE (
- ECHO.
- ECHO ERROR: Could not find 'run' script in 'cordova' folder, aborting...>&2
- EXIT /B 1
-)
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/version
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/version b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/version
deleted file mode 100755
index 8acf18f..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/version
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env node
-
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-
-// Coho updates this line:
-var VERSION = "4.2.0-dev";
-
-console.log(VERSION);
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/version.bat
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/version.bat b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/version.bat
deleted file mode 100644
index 3610c17..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/cordova/version.bat
+++ /dev/null
@@ -1,26 +0,0 @@
-:: Licensed to the Apache Software Foundation (ASF) under one
-:: or more contributor license agreements. See the NOTICE file
-:: distributed with this work for additional information
-:: regarding copyright ownership. The ASF licenses this file
-:: to you under the Apache License, Version 2.0 (the
-:: "License"); you may not use this file except in compliance
-:: with the License. You may obtain a copy of the License at
-::
-:: http://www.apache.org/licenses/LICENSE-2.0
-::
-:: Unless required by applicable law or agreed to in writing,
-:: software distributed under the License is distributed on an
-:: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-:: KIND, either express or implied. See the License for the
-:: specific language governing permissions and limitations
-:: under the License.
-
-@ECHO OFF
-SET script_path="%~dp0version"
-IF EXIST %script_path% (
- node %script_path% %*
-) ELSE (
- ECHO.
- ECHO ERROR: Could not find 'version' script in 'cordova' folder, aborting...>&2
- EXIT /B 1
-)
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/css/index.css
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/css/index.css b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/css/index.css
deleted file mode 100644
index 51daa79..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/css/index.css
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-* {
- -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
-}
-
-body {
- -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
- -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
- -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
- background-color:#E4E4E4;
- background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
- background-image:-webkit-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
- background-image:-ms-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
- background-image:-webkit-gradient(
- linear,
- left top,
- left bottom,
- color-stop(0, #A7A7A7),
- color-stop(0.51, #E4E4E4)
- );
- background-attachment:fixed;
- font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif;
- font-size:12px;
- height:100%;
- margin:0px;
- padding:0px;
- text-transform:uppercase;
- width:100%;
-}
-
-/* Portrait layout (default) */
-.app {
- background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */
- position:absolute; /* position in the center of the screen */
- left:50%;
- top:50%;
- height:50px; /* text area height */
- width:225px; /* text area width */
- text-align:center;
- padding:180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */
- margin:-115px 0px 0px -112px; /* offset vertical: half of image height and text area height */
- /* offset horizontal: half of text area width */
-}
-
-/* Landscape layout (with min-width) */
-@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
- .app {
- background-position:left center;
- padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */
- margin:-90px 0px 0px -198px; /* offset vertical: half of image height */
- /* offset horizontal: half of image width and text area width */
- }
-}
-
-h1 {
- font-size:24px;
- font-weight:normal;
- margin:0px;
- overflow:visible;
- padding:0px;
- text-align:center;
-}
-
-.event {
- border-radius:4px;
- -webkit-border-radius:4px;
- color:#FFFFFF;
- font-size:12px;
- margin:0px 30px;
- padding:2px 0px;
-}
-
-.event.listening {
- background-color:#333333;
- display:block;
-}
-
-.event.received {
- background-color:#4B946A;
- display:none;
-}
-
-@keyframes fade {
- from { opacity: 1.0; }
- 50% { opacity: 0.4; }
- to { opacity: 1.0; }
-}
-
-@-webkit-keyframes fade {
- from { opacity: 1.0; }
- 50% { opacity: 0.4; }
- to { opacity: 1.0; }
-}
-
-.blink {
- animation:fade 3000ms infinite;
- -webkit-animation:fade 3000ms infinite;
-}
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/img/logo.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/img/logo.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/img/logo.png
deleted file mode 100644
index 9519e7d..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/img/logo.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/index.html
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/index.html b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/index.html
deleted file mode 100644
index bde5741..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/index.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE html>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<html>
- <head>
- <meta charset="utf-8" />
- <meta name="format-detection" content="telephone=no" />
- <!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
- <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
- <link rel="stylesheet" type="text/css" href="css/index.css" />
- <title>Hello World</title>
- </head>
- <body>
- <div class="app">
- <h1>Apache Cordova</h1>
- <div id="deviceready" class="blink">
- <p class="event listening">Connecting to Device</p>
- <p class="event received">Device is Ready</p>
- </div>
- </div>
- <script type="text/javascript" src="cordova.js"></script>
- <script type="text/javascript" src="js/index.js"></script>
- <script type="text/javascript">
- app.initialize();
- </script>
- </body>
-</html>
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/js/index.js
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/js/index.js b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/js/index.js
deleted file mode 100644
index 31d9064..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/js/index.js
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-var app = {
- // Application Constructor
- initialize: function() {
- this.bindEvents();
- },
- // Bind Event Listeners
- //
- // Bind any events that are required on startup. Common events are:
- // 'load', 'deviceready', 'offline', and 'online'.
- bindEvents: function() {
- document.addEventListener('deviceready', this.onDeviceReady, false);
- },
- // deviceready Event Handler
- //
- // The scope of 'this' is the event. In order to call the 'receivedEvent'
- // function, we must explicity call 'app.receivedEvent(...);'
- onDeviceReady: function() {
- app.receivedEvent('deviceready');
- },
- // Update DOM on a Received Event
- receivedEvent: function(id) {
- var parentElement = document.getElementById(id);
- var listeningElement = parentElement.querySelector('.listening');
- var receivedElement = parentElement.querySelector('.received');
-
- listeningElement.setAttribute('style', 'display:none;');
- receivedElement.setAttribute('style', 'display:block;');
-
- console.log('Received Event: ' + id);
- }
-};
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/manifest.webapp
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/manifest.webapp b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/manifest.webapp
deleted file mode 100644
index f24deb8..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/manifest.webapp
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "name": "My App",
- "description": "Description of your app",
- "launch_path": "/index.html",
- "icons": {
- "128": "/img/logo.png"
- },
- "default_locale": "en",
- "type": "privileged"
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/android/icon-36-ldpi.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/android/icon-36-ldpi.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/android/icon-36-ldpi.png
deleted file mode 100644
index cd5032a..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/android/icon-36-ldpi.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/android/icon-48-mdpi.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/android/icon-48-mdpi.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/android/icon-48-mdpi.png
deleted file mode 100644
index e79c606..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/android/icon-48-mdpi.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/android/icon-72-hdpi.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/android/icon-72-hdpi.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/android/icon-72-hdpi.png
deleted file mode 100644
index 4d27634..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/android/icon-72-hdpi.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/android/icon-96-xhdpi.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/android/icon-96-xhdpi.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/android/icon-96-xhdpi.png
deleted file mode 100644
index ec7ffbf..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/android/icon-96-xhdpi.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/bada-wac/icon-48-type5.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/bada-wac/icon-48-type5.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/bada-wac/icon-48-type5.png
deleted file mode 100644
index 8ad8bac..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/bada-wac/icon-48-type5.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/bada-wac/icon-50-type3.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/bada-wac/icon-50-type3.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/bada-wac/icon-50-type3.png
deleted file mode 100644
index c6ddf84..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/bada-wac/icon-50-type3.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/bada-wac/icon-80-type4.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/bada-wac/icon-80-type4.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/bada-wac/icon-80-type4.png
deleted file mode 100644
index f86a27a..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/bada-wac/icon-80-type4.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/bada/icon-128.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/bada/icon-128.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/bada/icon-128.png
deleted file mode 100644
index 3516df3..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/bada/icon-128.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/blackberry/icon-80.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/blackberry/icon-80.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/blackberry/icon-80.png
deleted file mode 100644
index f86a27a..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/blackberry/icon-80.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/blackberry10/icon-80.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/blackberry10/icon-80.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/blackberry10/icon-80.png
deleted file mode 100644
index f86a27a..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/blackberry10/icon-80.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/ios/icon-57-2x.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/ios/icon-57-2x.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/ios/icon-57-2x.png
deleted file mode 100644
index efd9c37..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/ios/icon-57-2x.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/ios/icon-57.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/ios/icon-57.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/ios/icon-57.png
deleted file mode 100644
index c795fc4..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/ios/icon-57.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/ios/icon-72-2x.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/ios/icon-72-2x.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/ios/icon-72-2x.png
deleted file mode 100644
index dd819da..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/ios/icon-72-2x.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/ios/icon-72.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/ios/icon-72.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/ios/icon-72.png
deleted file mode 100644
index b1cfde7..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/ios/icon-72.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/tizen/icon-128.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/tizen/icon-128.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/tizen/icon-128.png
deleted file mode 100644
index 3516df3..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/tizen/icon-128.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/webos/icon-64.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/webos/icon-64.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/webos/icon-64.png
deleted file mode 100644
index 03b3849..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/webos/icon-64.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/windows-phone/icon-173-tile.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/windows-phone/icon-173-tile.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/windows-phone/icon-173-tile.png
deleted file mode 100644
index 4f15e20..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/windows-phone/icon-173-tile.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/windows-phone/icon-48.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/windows-phone/icon-48.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/windows-phone/icon-48.png
deleted file mode 100644
index 8ad8bac..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/windows-phone/icon-48.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/windows-phone/icon-62-tile.png
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/windows-phone/icon-62-tile.png b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/windows-phone/icon-62-tile.png
deleted file mode 100644
index aab6061..0000000
Binary files a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/templates/project/www/res/icon/windows-phone/icon-62-tile.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/update
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/update b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/update
deleted file mode 100644
index eb515b7..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/update
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env node
-
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-*/
-var update = require('./lib/update');
-
-// check for help flag
-if (['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(process.argv[2]) > -1) {
- update.help();
-} else {
- update.run(process.argv).done(function () {
- console.log('Successfully updated browser project.');
- }, function (err) {
- console.error('Update failed due to', err);
- process.exit(2);
- });
-}
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/update.bat
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/update.bat b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/update.bat
deleted file mode 100644
index d0aa7a0..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/bin/update.bat
+++ /dev/null
@@ -1,26 +0,0 @@
-:: Licensed to the Apache Software Foundation (ASF) under one
-:: or more contributor license agreements. See the NOTICE file
-:: distributed with this work for additional information
-:: regarding copyright ownership. The ASF licenses this file
-:: to you under the Apache License, Version 2.0 (the
-:: "License"); you may not use this file except in compliance
-:: with the License. You may obtain a copy of the License at
-::
-:: http://www.apache.org/licenses/LICENSE-2.0
-::
-:: Unless required by applicable law or agreed to in writing,
-:: software distributed under the License is distributed on an
-:: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-:: KIND, either express or implied. See the License for the
-:: specific language governing permissions and limitations
-:: under the License.
-
-@ECHO OFF
-SET script_path="%~dp0update"
-IF EXIST %script_path% (
- node %script_path% %*
-) ELSE (
- ECHO.
- ECHO ERROR: Could not find 'update' script in 'bin' folder, aborting...>&2
- EXIT /B 1
-)
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/cordova-js-src/confighelper.js
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/cordova-js-src/confighelper.js b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/cordova-js-src/confighelper.js
deleted file mode 100644
index b6d606e..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/cordova-js-src/confighelper.js
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-var config;
-
-function Config(xhr) {
- function loadPreferences(xhr) {
- var parser = new DOMParser();
- var doc = parser.parseFromString(xhr.responseText, "application/xml");
-
- var preferences = doc.getElementsByTagName("preference");
- return Array.prototype.slice.call(preferences);
- }
-
- this.xhr = xhr;
- this.preferences = loadPreferences(this.xhr);
-}
-
-function readConfig(success, error) {
- var xhr;
-
- if(typeof config != 'undefined') {
- success(config);
- }
-
- function fail(msg) {
- console.error(msg);
-
- if(error) {
- error(msg);
- }
- }
-
- var xhrStatusChangeHandler = function() {
- if (xhr.readyState == 4) {
- if (xhr.status == 200 || xhr.status == 304 || xhr.status === 0 /* file:// */) {
- config = new Config(xhr);
- success(config);
- }
- else {
- fail('[Browser][cordova.js][xhrStatusChangeHandler] Could not XHR config.xml: ' + xhr.statusText);
- }
- }
- };
-
- if ("ActiveXObject" in window) {
- // Needed for XHR-ing via file:// protocol in IE
- xhr = new window.ActiveXObject("MSXML2.XMLHTTP");
- xhr.onreadystatechange = xhrStatusChangeHandler;
- } else {
- xhr = new XMLHttpRequest();
- xhr.addEventListener("load", xhrStatusChangeHandler);
- }
-
- try {
- xhr.open("get", "/config.xml", true);
- xhr.send();
- } catch(e) {
- fail('[Browser][cordova.js][readConfig] Could not XHR config.xml: ' + JSON.stringify(e));
- }
-}
-
-/**
- * Reads a preference value from config.xml.
- * Returns preference value or undefined if it does not exist.
- * @param {String} preferenceName Preference name to read */
-Config.prototype.getPreferenceValue = function getPreferenceValue(preferenceName) {
- var preferenceItem = this.preferences && this.preferences.filter(function(item) {
- return item.attributes.name && item.attributes.name.value === preferenceName;
- });
-
- if(preferenceItem && preferenceItem[0] && preferenceItem[0].attributes && preferenceItem[0].attributes.value) {
- return preferenceItem[0].attributes.value.value;
- }
-};
-
-exports.readConfig = readConfig;
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/cordova-js-src/exec.js
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/cordova-js-src/exec.js b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/cordova-js-src/exec.js
deleted file mode 100644
index 97f736a..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/cordova-js-src/exec.js
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-/*jslint sloppy:true, plusplus:true*/
-/*global require, module, console */
-
-var cordova = require('cordova');
-var execProxy = require('cordova/exec/proxy');
-
-/**
- * Execute a cordova command. It is up to the native side whether this action
- * is synchronous or asynchronous. The native side can return:
- * Synchronous: PluginResult object as a JSON string
- * Asynchronous: Empty string ""
- * If async, the native side will cordova.callbackSuccess or cordova.callbackError,
- * depending upon the result of the action.
- *
- * @param {Function} success The success callback
- * @param {Function} fail The fail callback
- * @param {String} service The name of the service to use
- * @param {String} action Action to be run in cordova
- * @param {String[]} [args] Zero or more arguments to pass to the method
- */
-module.exports = function (success, fail, service, action, args) {
-
- var proxy = execProxy.get(service, action);
-
- args = args || [];
-
- if (proxy) {
-
- var callbackId = service + cordova.callbackId++;
-
- if (typeof success === "function" || typeof fail === "function") {
- cordova.callbacks[callbackId] = {success: success, fail: fail};
- }
- try {
-
-
-
- // callbackOptions param represents additional optional parameters command could pass back, like keepCallback or
- // custom callbackId, for example {callbackId: id, keepCallback: true, status: cordova.callbackStatus.JSON_EXCEPTION }
- var onSuccess = function (result, callbackOptions) {
- callbackOptions = callbackOptions || {};
- var callbackStatus;
- // covering both undefined and null.
- // strict null comparison was causing callbackStatus to be undefined
- // and then no callback was called because of the check in cordova.callbackFromNative
- // see CB-8996 Mobilespec app hang on windows
- if (callbackOptions.status !== undefined && callbackOptions.status !== null) {
- callbackStatus = callbackOptions.status;
- }
- else {
- callbackStatus = cordova.callbackStatus.OK;
- }
- cordova.callbackSuccess(callbackOptions.callbackId || callbackId,
- {
- status: callbackStatus,
- message: result,
- keepCallback: callbackOptions.keepCallback || false
- });
- };
- var onError = function (err, callbackOptions) {
- callbackOptions = callbackOptions || {};
- var callbackStatus;
- // covering both undefined and null.
- // strict null comparison was causing callbackStatus to be undefined
- // and then no callback was called because of the check in cordova.callbackFromNative
- // note: status can be 0
- if (callbackOptions.status !== undefined && callbackOptions.status !== null) {
- callbackStatus = callbackOptions.status;
- }
- else {
- callbackStatus = cordova.callbackStatus.OK;
- }
- cordova.callbackError(callbackOptions.callbackId || callbackId,
- {
- status: callbackStatus,
- message: err,
- keepCallback: callbackOptions.keepCallback || false
- });
- };
- proxy(onSuccess, onError, args);
-
- } catch (e) {
- console.log("Exception calling native with command :: " + service + " :: " + action + " ::exception=" + e);
- }
- } else {
-
- console.log("Error: exec proxy not found for :: " + service + " :: " + action);
-
- if(typeof fail === "function" ) {
- fail("Missing Command Error");
- }
- }
-};
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/fc72293c/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/cordova-js-src/platform.js
----------------------------------------------------------------------
diff --git a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/cordova-js-src/platform.js b/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/cordova-js-src/platform.js
deleted file mode 100644
index 0514059..0000000
--- a/cordova-lib/spec-cordova/fixtures/platforms/cordova-browser/cordova-js-src/platform.js
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-module.exports = {
- id: 'browser',
- cordovaVersion: '3.4.0',
-
- bootstrap: function() {
-
- var modulemapper = require('cordova/modulemapper');
- var channel = require('cordova/channel');
-
- modulemapper.clobbers('cordova/exec/proxy', 'cordova.commandProxy');
-
- channel.onNativeReady.fire();
-
- // FIXME is this the right place to clobber pause/resume? I am guessing not
- // FIXME pause/resume should be deprecated IN CORDOVA for pagevisiblity api
- document.addEventListener('webkitvisibilitychange', function() {
- if (document.webkitHidden) {
- channel.onPause.fire();
- }
- else {
- channel.onResume.fire();
- }
- }, false);
-
- // End of bootstrap
- }
-};
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org