Permalink
Browse files

fixed project structure

  • Loading branch information...
1 parent 9483729 commit b74e05d6d173ca4b0a383dcea9a8eb6afe71d0c0 @sgrebnov sgrebnov committed Feb 26, 2014
Showing 352 changed files with 37,172 additions and 1,488 deletions.
View
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='utf-8'?>
-<widget id="com.example.hello" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
- <name>skyDrive</name>
+<widget id="akvelon.cordova.oneDriveDemoApp" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
+ <name>OneDriveDemoApp</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
View
@@ -1,116 +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 args = WScript.Arguments;
-var wscript_shell = WScript.CreateObject("WScript.Shell");
-
-var REQUIRE_GIT = false;
-
-function Usage() {
- Log("Usage: [ check_reqs | cscript check_reqs.js ]");
- Log("examples:");
- Log(" cscript C:\\Users\\anonymous\\cordova-wp7\\bin\\check_reqs.js");
- Log(" CordovaWindowsPhone\\bin\\check_reqs");
-
-}
-
-// log to stdout or stderr
-function Log(msg, error) {
- if (error) {
- WScript.StdErr.WriteLine(msg);
- }
- else {
- WScript.StdOut.WriteLine(msg);
- }
-}
-
-// gets the output from a command, failing with the given error message
-function check_command(cmd, fail_msg) {
- try {
- var out = wscript_shell.Exec(cmd);
- } catch(exception) {
- Log(fail_msg, true);
- WScript.Quit(1);
- }
- while (out.Status == 0) {
- WScript.Sleep(100);
- }
-
- //Check that command executed
- if (!out.StdErr.AtEndOfStream) {
- var line = out.StdErr.ReadLine();
- Log(fail_msg, true);
- Log('Output : ' + line, true);
- WScript.Quit(1);
- }
-
- if (!out.StdOut.AtEndOfStream) {
- var line = out.StdOut.ReadAll();
- return line;
- }
- else {
- Log('Unable to get output from command "' + cmd + '"', true);
- WScript.Quit(1);
- }
-}
-
-/* The tooling for cordova windows phone requires these commands
- * in the environment PATH variable.
- * - msbuild (C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319)
- * - git? (for dynamic cli loading of projects?)
- */
-function SystemRequiermentsMet() {
- var cmd = 'msbuild -version'
- var fail_msg = 'The command `msbuild` failed. Make sure you have the latest Windows Phone SDKs installed, AND have the latest .NET framework added to your path (i.e C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319).'
- var output = check_command(cmd, fail_msg);
- var msversion = output.match(/Microsoft\s\(R\)\s+Build\sEngine\s[a-z]+\s4\.0\.30319/i);
- if (!msversion) {
- Log('Please install the .NET Framwork v4.0.30319 (in the latest windows phone SDK\'s).', true);
- Log('Make sure the "msbuild" command in your path is pointing to v4.0.30319 of msbuild as well (inside C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319).', true);
- WScript.Quit(1);
- }
-
- if(REQUIRE_GIT) {
- cmd = 'git --version';
- fail_msg = 'The command `git` failed. Make sure you have git installed as well ad in your PATH environment so the tool can use it';
- output = check_command(cmd, fail_msg);
- var gitVersion = output.match(/git\sversion\s1\./i);
- if (!gitVersion) {
- Log('Please ensure you have at least git v1 installed and added to you PATH so this tool can use it to get the latest codova.');
- }
- }
-}
-
-
-if (args.Count() > 0) {
- // support help flags
- if (args(0) == "--help" || args(0) == "/?" ||
- args(0) == "help" || args(0) == "-help" || args(0) == "/help" || args(0) == "-h") {
- Usage();
- WScript.Quit(1);
- }
- else {
- Log('Error : Did not recognize argument ' + args(0), true)
- Usage();
- WScript.Quit(1);
- }
-}
-
-SystemRequiermentsMet();
@@ -1,3 +0,0 @@
-<?xml version="1.0"?>
-<configuration>
-<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration>
@@ -1,6 +0,0 @@
-D:\TestProjects\skyDrive\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy\bin\Debug\CordovaDeploy.exe.config
-D:\TestProjects\skyDrive\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy\bin\Debug\CordovaDeploy.exe
-D:\TestProjects\skyDrive\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy\bin\Debug\CordovaDeploy.pdb
-D:\TestProjects\skyDrive\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy\obj\x86\Debug\CordovaDeploy.csprojResolveAssemblyReference.cache
-D:\TestProjects\skyDrive\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy\obj\x86\Debug\CordovaDeploy.exe
-D:\TestProjects\skyDrive\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy\obj\x86\Debug\CordovaDeploy.pdb
View
@@ -0,0 +1,83 @@
+<!--
+#
+# 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.
+#
+-->
+# Cordova Hooks
+
+This directory may contain scripts used to customize cordova commands. This
+directory used to exist at `.cordova/hooks`, but has now been moved to the
+project root. Any scripts you add to these directories will be executed before
+and after the commands corresponding to the directory name. Useful for
+integrating your own build systems or integrating with version control systems.
+
+__Remember__: Make your scripts executable.
+
+## Hook Directories
+The following subdirectories will be used for hooks:
+
+ after_build/
+ after_compile/
+ after_docs/
+ after_emulate/
+ after_platform_add/
+ after_platform_rm/
+ after_platform_ls/
+ after_plugin_add/
+ after_plugin_ls/
+ after_plugin_rm/
+ after_plugin_search/
+ after_prepare/
+ after_run/
+ after_serve/
+ before_build/
+ before_compile/
+ before_docs/
+ before_emulate/
+ before_platform_add/
+ before_platform_rm/
+ before_platform_ls/
+ before_plugin_add/
+ before_plugin_ls/
+ before_plugin_rm/
+ before_plugin_search/
+ before_prepare/
+ before_run/
+ before_serve/
+ pre_package/ <-- Windows 8 and Windows Phone only.
+
+## Script Interface
+
+All scripts are run from the project's root directory and have the root directory passes as the first argument. All other options are passed to the script using environment variables:
+
+* CORDOVA_VERSION - The version of the Cordova-CLI.
+* CORDOVA_PLATFORMS - Comma separated list of platforms that the command applies to (e.g.: android, ios).
+* CORDOVA_PLUGINS - Comma separated list of plugin IDs that the command applies to (e.g.: org.apache.cordova.file, org.apache.cordova.file-transfer)
+* CORDOVA_HOOK - Path to the hook that is being executed.
+* CORDOVA_CMDLINE - The exact command-line arguments passed to cordova (e.g.: cordova run ios --emulate)
+
+If a script returns a non-zero exit code, then the parent cordova command will be aborted.
+
+
+## Writing hooks
+
+We highly recommend writting your hooks using Node.js so that they are
+cross-platform. Some good examples are shown here:
+
+[http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/](http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/)
+
@@ -0,0 +1,158 @@
+cordova.define('cordova/plugin_list', function(require, exports, module) {
+module.exports = [
+ {
+ "file": "plugins/org.apache.cordova.background-download/www/Promise.js",
+ "id": "org.apache.cordova.background-download.Promise"
+ },
+ {
+ "file": "plugins/org.apache.cordova.background-download/www/BackgroundDownloader.js",
+ "id": "org.apache.cordova.background-download.BackgroundDownloader",
+ "clobbers": [
+ "BackgroundTransfer.BackgroundDownloader"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.background-download/www/DownloadOperation.js",
+ "id": "org.apache.cordova.background-download.DownloadOperation",
+ "clobbers": [
+ "DownloadOperation"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.file/www/DirectoryEntry.js",
+ "id": "org.apache.cordova.file.DirectoryEntry",
+ "clobbers": [
+ "window.DirectoryEntry"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.file/www/DirectoryReader.js",
+ "id": "org.apache.cordova.file.DirectoryReader",
+ "clobbers": [
+ "window.DirectoryReader"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.file/www/Entry.js",
+ "id": "org.apache.cordova.file.Entry",
+ "clobbers": [
+ "window.Entry"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.file/www/File.js",
+ "id": "org.apache.cordova.file.File",
+ "clobbers": [
+ "window.File"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.file/www/FileEntry.js",
+ "id": "org.apache.cordova.file.FileEntry",
+ "clobbers": [
+ "window.FileEntry"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.file/www/FileError.js",
+ "id": "org.apache.cordova.file.FileError",
+ "clobbers": [
+ "window.FileError"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.file/www/FileReader.js",
+ "id": "org.apache.cordova.file.FileReader",
+ "clobbers": [
+ "window.FileReader"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.file/www/FileSystem.js",
+ "id": "org.apache.cordova.file.FileSystem",
+ "clobbers": [
+ "window.FileSystem"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.file/www/FileUploadOptions.js",
+ "id": "org.apache.cordova.file.FileUploadOptions",
+ "clobbers": [
+ "window.FileUploadOptions"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.file/www/FileUploadResult.js",
+ "id": "org.apache.cordova.file.FileUploadResult",
+ "clobbers": [
+ "window.FileUploadResult"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.file/www/FileWriter.js",
+ "id": "org.apache.cordova.file.FileWriter",
+ "clobbers": [
+ "window.FileWriter"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.file/www/Flags.js",
+ "id": "org.apache.cordova.file.Flags",
+ "clobbers": [
+ "window.Flags"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.file/www/LocalFileSystem.js",
+ "id": "org.apache.cordova.file.LocalFileSystem",
+ "clobbers": [
+ "window.LocalFileSystem"
+ ],
+ "merges": [
+ "window"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.file/www/Metadata.js",
+ "id": "org.apache.cordova.file.Metadata",
+ "clobbers": [
+ "window.Metadata"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.file/www/ProgressEvent.js",
+ "id": "org.apache.cordova.file.ProgressEvent",
+ "clobbers": [
+ "window.ProgressEvent"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.file/www/requestFileSystem.js",
+ "id": "org.apache.cordova.file.requestFileSystem",
+ "clobbers": [
+ "window.requestFileSystem"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.file/www/resolveLocalFileSystemURI.js",
+ "id": "org.apache.cordova.file.resolveLocalFileSystemURI",
+ "merges": [
+ "window"
+ ]
+ },
+ {
+ "file": "plugins/org.apache.cordova.file/www/wp/FileUploadOptions.js",
+ "id": "org.apache.cordova.file.FileUploadOptions1",
+ "merges": [
+ "window.FileUploadOptions"
+ ]
+ }
+];
+module.exports.metadata =
+// TOP OF METADATA
+{
+ "org.apache.cordova.background-download": "0.0.1",
+ "org.apache.cordova.file": "1.0.0"
+}
+// BOTTOM OF METADATA
+});
Oops, something went wrong.

0 comments on commit b74e05d

Please sign in to comment.