(options);
34 | string level = args[0];
35 | string msg = args[1];
36 |
37 | if (level.Equals("LOG"))
38 | {
39 | Debug.WriteLine(msg);
40 | }
41 | else
42 | {
43 | Debug.WriteLine(level + ": " + msg);
44 | }
45 | }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/platforms/ios/YoutubeVideoPlayerProject/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "29x29",
5 | "idiom" : "iphone",
6 | "filename" : "icon-small@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "40x40",
11 | "idiom" : "iphone",
12 | "filename" : "icon-40@2x.png",
13 | "scale" : "2x"
14 | },
15 | {
16 | "size" : "60x60",
17 | "idiom" : "iphone",
18 | "filename" : "icon-60@2x.png",
19 | "scale" : "2x"
20 | },
21 | {
22 | "idiom" : "iphone",
23 | "size" : "60x60",
24 | "scale" : "3x"
25 | },
26 | {
27 | "size" : "29x29",
28 | "idiom" : "ipad",
29 | "filename" : "icon-small.png",
30 | "scale" : "1x"
31 | },
32 | {
33 | "size" : "29x29",
34 | "idiom" : "ipad",
35 | "filename" : "icon-small@2x.png",
36 | "scale" : "2x"
37 | },
38 | {
39 | "size" : "40x40",
40 | "idiom" : "ipad",
41 | "filename" : "icon-40.png",
42 | "scale" : "1x"
43 | },
44 | {
45 | "size" : "40x40",
46 | "idiom" : "ipad",
47 | "filename" : "icon-40@2x.png",
48 | "scale" : "2x"
49 | },
50 | {
51 | "size" : "76x76",
52 | "idiom" : "ipad",
53 | "filename" : "icon-76.png",
54 | "scale" : "1x"
55 | },
56 | {
57 | "size" : "76x76",
58 | "idiom" : "ipad",
59 | "filename" : "icon-76@2x.png",
60 | "scale" : "2x"
61 | }
62 | ],
63 | "info" : {
64 | "version" : 1,
65 | "author" : "xcode"
66 | }
67 | }
--------------------------------------------------------------------------------
/platforms/android/cordova/node_modules/shelljs/src/find.js:
--------------------------------------------------------------------------------
1 | var fs = require('fs');
2 | var common = require('./common');
3 | var _ls = require('./ls');
4 |
5 | //@
6 | //@ ### find(path [,path ...])
7 | //@ ### find(path_array)
8 | //@ Examples:
9 | //@
10 | //@ ```javascript
11 | //@ find('src', 'lib');
12 | //@ find(['src', 'lib']); // same as above
13 | //@ find('.').filter(function(file) { return file.match(/\.js$/); });
14 | //@ ```
15 | //@
16 | //@ Returns array of all files (however deep) in the given paths.
17 | //@
18 | //@ The main difference from `ls('-R', path)` is that the resulting file names
19 | //@ include the base directories, e.g. `lib/resources/file1` instead of just `file1`.
20 | function _find(options, paths) {
21 | if (!paths)
22 | common.error('no path specified');
23 | else if (typeof paths === 'object')
24 | paths = paths; // assume array
25 | else if (typeof paths === 'string')
26 | paths = [].slice.call(arguments, 1);
27 |
28 | var list = [];
29 |
30 | function pushFile(file) {
31 | if (common.platform === 'win')
32 | file = file.replace(/\\/g, '/');
33 | list.push(file);
34 | }
35 |
36 | // why not simply do ls('-R', paths)? because the output wouldn't give the base dirs
37 | // to get the base dir in the output, we need instead ls('-R', 'dir/*') for every directory
38 |
39 | paths.forEach(function(file) {
40 | pushFile(file);
41 |
42 | if (fs.statSync(file).isDirectory()) {
43 | _ls('-RA', file+'/*').forEach(function(subfile) {
44 | pushFile(subfile);
45 | });
46 | }
47 | });
48 |
49 | return list;
50 | }
51 | module.exports = _find;
52 |
--------------------------------------------------------------------------------
/platforms/android/CordovaLib/src/com/squareup/okhttp/internal/AbstractOutputStream.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2010 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.squareup.okhttp.internal;
18 |
19 | import java.io.IOException;
20 | import java.io.OutputStream;
21 |
22 | /**
23 | * An output stream for an HTTP request body.
24 | *
25 | * Since a single socket's output stream may be used to write multiple HTTP
26 | * requests to the same server, subclasses should not close the socket stream.
27 | */
28 | public abstract class AbstractOutputStream extends OutputStream {
29 | protected boolean closed;
30 |
31 | @Override public final void write(int data) throws IOException {
32 | write(new byte[] { (byte) data });
33 | }
34 |
35 | protected final void checkNotClosed() throws IOException {
36 | if (closed) {
37 | throw new IOException("stream closed");
38 | }
39 | }
40 |
41 | /** Returns true if this stream was closed locally. */
42 | public boolean isClosed() {
43 | return closed;
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/plugins/org.apache.cordova.console/doc/es/index.md:
--------------------------------------------------------------------------------
1 |
19 |
20 | # org.apache.cordova.console
21 |
22 | Este plugin es para asegurarse de que console.log() es tan útil como puede ser. Añade función adicional para iOS, Windows Phone 8, Ubuntu y Windows 8. Si estás contento con cómo funciona console.log() para ti, entonces probablemente no necesitas este plugin.
23 |
24 | ## Instalación
25 |
26 | cordova plugin add org.apache.cordova.console
27 |
28 |
29 | ### Rarezas Android
30 |
31 | En algunas plataformas que no sean Android, console.log() actuará en varios argumentos, como console.log ("1", "2", "3"). Sin embargo, Android actuará sólo en el primer argumento. Se omitirá posteriores argumentos para console.log(). Este plugin no es la causa de eso, es una limitación propia de Android.
--------------------------------------------------------------------------------
/platforms/android/cordova/node_modules/shelljs/src/grep.js:
--------------------------------------------------------------------------------
1 | var common = require('./common');
2 | var fs = require('fs');
3 |
4 | //@
5 | //@ ### grep([options ,] regex_filter, file [, file ...])
6 | //@ ### grep([options ,] regex_filter, file_array)
7 | //@ Available options:
8 | //@
9 | //@ + `-v`: Inverse the sense of the regex and print the lines not matching the criteria.
10 | //@
11 | //@ Examples:
12 | //@
13 | //@ ```javascript
14 | //@ grep('-v', 'GLOBAL_VARIABLE', '*.js');
15 | //@ grep('GLOBAL_VARIABLE', '*.js');
16 | //@ ```
17 | //@
18 | //@ Reads input string from given files and returns a string containing all lines of the
19 | //@ file that match the given `regex_filter`. Wildcard `*` accepted.
20 | function _grep(options, regex, files) {
21 | options = common.parseOptions(options, {
22 | 'v': 'inverse'
23 | });
24 |
25 | if (!files)
26 | common.error('no paths given');
27 |
28 | if (typeof files === 'string')
29 | files = [].slice.call(arguments, 2);
30 | // if it's array leave it as it is
31 |
32 | files = common.expand(files);
33 |
34 | var grep = '';
35 | files.forEach(function(file) {
36 | if (!fs.existsSync(file)) {
37 | common.error('no such file or directory: ' + file, true);
38 | return;
39 | }
40 |
41 | var contents = fs.readFileSync(file, 'utf8'),
42 | lines = contents.split(/\r*\n/);
43 | lines.forEach(function(line) {
44 | var matched = line.match(regex);
45 | if ((options.inverse && !matched) || (!options.inverse && matched))
46 | grep += line + '\n';
47 | });
48 | });
49 |
50 | return common.ShellString(grep);
51 | }
52 | module.exports = _grep;
53 |
--------------------------------------------------------------------------------
/plugins/org.apache.cordova.console/doc/index.md:
--------------------------------------------------------------------------------
1 |
19 |
20 | # org.apache.cordova.console
21 |
22 | This plugin is meant to ensure that console.log() is as useful as it can be.
23 | It adds additional function for iOS, Ubuntu, Windows Phone 8, and Windows 8. If
24 | you are happy with how console.log() works for you, then you probably
25 | don't need this plugin.
26 |
27 | ## Installation
28 |
29 | cordova plugin add org.apache.cordova.console
30 |
31 | ### Android Quirks
32 |
33 | On some platforms other than Android, console.log() will act on multiple
34 | arguments, such as console.log("1", "2", "3"). However, Android will act only
35 | on the first argument. Subsequent arguments to console.log() will be ignored.
36 | This plugin is not the cause of that, it is a limitation of Android itself.
37 |
--------------------------------------------------------------------------------
/plugins/org.apache.cordova.console/doc/it/index.md:
--------------------------------------------------------------------------------
1 |
19 |
20 | # org.apache.cordova.console
21 |
22 | Questo plugin è intesa a garantire che console.log() è tanto utile quanto può essere. Aggiunge una funzione aggiuntiva per iOS, Ubuntu, Windows 8 e Windows Phone 8. Se sei soddisfatto di come console.log() funziona per voi, quindi probabilmente non è necessario questo plugin.
23 |
24 | ## Installazione
25 |
26 | cordova plugin add org.apache.cordova.console
27 |
28 |
29 | ### Stranezze Android
30 |
31 | Su alcune piattaforme diverse da Android, console.log() agirà su più argomenti, come ad esempio console ("1", "2", "3"). Tuttavia, Android agirà solo sul primo argomento. Argomenti successivi a console.log() verranno ignorati. Questo plugin non è la causa di ciò, è una limitazione di Android stesso.
--------------------------------------------------------------------------------
/platforms/ios/CordovaLib/Classes/NSDictionary+Extensions.h:
--------------------------------------------------------------------------------
1 | /*
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | */
19 |
20 | #import
21 |
22 | @interface NSDictionary (org_apache_cordova_NSDictionary_Extension)
23 |
24 | - (bool)existsValue:(NSString*)expectedValue forKey:(NSString*)key;
25 | - (NSInteger)integerValueForKey:(NSString*)key defaultValue:(NSInteger)defaultValue withRange:(NSRange)range;
26 | - (NSInteger)integerValueForKey:(NSString*)key defaultValue:(NSInteger)defaultValue;
27 | - (BOOL)typeValueForKey:(NSString*)key isArray:(BOOL*)bArray isNull:(BOOL*)bNull isNumber:(BOOL*)bNumber isString:(BOOL*)bString;
28 | - (BOOL)valueForKeyIsArray:(NSString*)key;
29 | - (BOOL)valueForKeyIsNull:(NSString*)key;
30 | - (BOOL)valueForKeyIsString:(NSString*)key;
31 | - (BOOL)valueForKeyIsNumber:(NSString*)key;
32 |
33 | - (NSDictionary*)dictionaryWithLowercaseKeys;
34 |
35 | @end
36 |
--------------------------------------------------------------------------------
/platforms/android/CordovaLib/src/org/apache/cordova/JSONUtils.java:
--------------------------------------------------------------------------------
1 | /*
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | */
19 | package org.apache.cordova;
20 |
21 | import java.util.ArrayList;
22 | import java.util.List;
23 |
24 | import org.json.JSONArray;
25 | import org.json.JSONException;
26 |
27 | @Deprecated // Deprecated in 3.1. To be removed in 4.0.
28 | public class JSONUtils {
29 | public static List toStringList(JSONArray array) throws JSONException {
30 | if(array == null) {
31 | return null;
32 | }
33 | else {
34 | List list = new ArrayList();
35 |
36 | for (int i = 0; i < array.length(); i++) {
37 | list.add(array.get(i).toString());
38 | }
39 |
40 | return list;
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/plugins/org.apache.cordova.console/doc/pl/index.md:
--------------------------------------------------------------------------------
1 |
19 |
20 | # org.apache.cordova.console
21 |
22 | Ten plugin jest przeznaczona do zapewnienia, że console.log() jest tak przydatne, jak to może być. To dodaje dodatkową funkcję dla iOS, Ubuntu, Windows Phone 8 i Windows 8. Jeśli jesteś zadowolony z jak console.log() pracuje dla Ciebie, wtedy prawdopodobnie nie potrzebują tej wtyczki.
23 |
24 | ## Instalacji
25 |
26 | cordova plugin add org.apache.cordova.console
27 |
28 |
29 | ### Android dziwactwa
30 |
31 | Na niektórych platformach innych niż Android console.log() będzie działać na wielu argumentów, takich jak console.log ("1", "2", "3"). Jednak Android będzie działać tylko na pierwszy argument. Kolejne argumenty do console.log() będą ignorowane. Ten plugin nie jest przyczyną, że, jest to ograniczenie Androida, sam.
--------------------------------------------------------------------------------
/plugins/org.apache.cordova.console/doc/ru/index.md:
--------------------------------------------------------------------------------
1 |
19 |
20 | # org.apache.cordova.console
21 |
22 | Этот плагин предназначен для обеспечения как полезным, поскольку это может быть что console.log(). Он добавляет дополнительные функции для iOS, Ubuntu, Windows Phone 8 и Windows 8. Если вы не довольны как console.log() работает для вас, то вы вероятно не нужен этот плагин.
23 |
24 | ## Установка
25 |
26 | cordova plugin add org.apache.cordova.console
27 |
28 |
29 | ### Android причуды
30 |
31 | На некоторых платформах, отличных от Android console.log() будет действовать на нескольких аргументов, например console.log («1», «2», «3»). Тем не менее Android будет действовать только на первого аргумента. Последующие аргументы для console.log() будет игнорироваться. Этот плагин не является причиной этого, это ограничение Android сам.
--------------------------------------------------------------------------------
/platforms/android/cordova/lib/install-device:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | /*
4 | Licensed to the Apache Software Foundation (ASF) under one
5 | or more contributor license agreements. See the NOTICE file
6 | distributed with this work for additional information
7 | regarding copyright ownership. The ASF licenses this file
8 | to you under the Apache License, Version 2.0 (the
9 | "License"); you may not use this file except in compliance
10 | with the License. You may obtain a copy of the License at
11 |
12 | http://www.apache.org/licenses/LICENSE-2.0
13 |
14 | Unless required by applicable law or agreed to in writing,
15 | software distributed under the License is distributed on an
16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | KIND, either express or implied. See the License for the
18 | specific language governing permissions and limitations
19 | under the License.
20 | */
21 |
22 | var device = require('./device'),
23 | args = process.argv;
24 |
25 | if(args.length > 2) {
26 | var install_target;
27 | if (args[2].substring(0, 9) == '--target=') {
28 | install_target = args[2].substring(9, args[2].length);
29 | device.install(install_target).done(null, function(err) {
30 | console.error('ERROR: ' + err);
31 | process.exit(2);
32 | });
33 | } else {
34 | console.error('ERROR : argument \'' + args[2] + '\' not recognized.');
35 | process.exit(2);
36 | }
37 | } else {
38 | device.install().done(null, function(err) {
39 | console.error('ERROR: ' + err);
40 | process.exit(2);
41 | });
42 | }
43 |
--------------------------------------------------------------------------------
/platforms/android/cordova/node_modules/shelljs/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2012, Artur Adib
2 | All rights reserved.
3 |
4 | You may use this project under the terms of the New BSD license as follows:
5 |
6 | Redistribution and use in source and binary forms, with or without
7 | modification, are permitted provided that the following conditions are met:
8 | * Redistributions of source code must retain the above copyright
9 | notice, this list of conditions and the following disclaimer.
10 | * Redistributions in binary form must reproduce the above copyright
11 | notice, this list of conditions and the following disclaimer in the
12 | documentation and/or other materials provided with the distribution.
13 | * Neither the name of Artur Adib nor the
14 | names of the contributors may be used to endorse or promote products
15 | derived from this software without specific prior written permission.
16 |
17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 | ARE DISCLAIMED. IN NO EVENT SHALL ARTUR ADIB BE LIABLE FOR ANY
21 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 |
--------------------------------------------------------------------------------
/platforms/ios/CordovaLib/Classes/NSMutableArray+QueueAdditions.m:
--------------------------------------------------------------------------------
1 | /*
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | */
19 |
20 | #import "NSMutableArray+QueueAdditions.h"
21 |
22 | @implementation NSMutableArray (QueueAdditions)
23 |
24 | - (id)queueHead
25 | {
26 | if ([self count] == 0) {
27 | return nil;
28 | }
29 |
30 | return [self objectAtIndex:0];
31 | }
32 |
33 | - (__autoreleasing id)dequeue
34 | {
35 | if ([self count] == 0) {
36 | return nil;
37 | }
38 |
39 | id head = [self objectAtIndex:0];
40 | if (head != nil) {
41 | // [[head retain] autorelease]; ARC - the __autoreleasing on the return value should so the same thing
42 | [self removeObjectAtIndex:0];
43 | }
44 |
45 | return head;
46 | }
47 |
48 | - (id)pop
49 | {
50 | return [self dequeue];
51 | }
52 |
53 | - (void)enqueue:(id)object
54 | {
55 | [self addObject:object];
56 | }
57 |
58 | @end
59 |
--------------------------------------------------------------------------------
/platforms/ios/YoutubeVideoPlayerProject/Classes/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /*
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | */
19 |
20 | //
21 | // AppDelegate.h
22 | // YoutubeVideoPlayerProject
23 | //
24 | // Created by ___FULLUSERNAME___ on ___DATE___.
25 | // Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved.
26 | //
27 |
28 | #import
29 |
30 | #import
31 |
32 | @interface AppDelegate : NSObject {}
33 |
34 | // invoke string is passed to your app on launch, this is only valid if you
35 | // edit YoutubeVideoPlayerProject-Info.plist to add a protocol
36 | // a simple tutorial can be found here :
37 | // http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html
38 |
39 | @property (nonatomic, strong) IBOutlet UIWindow* window;
40 | @property (nonatomic, strong) IBOutlet CDVViewController* viewController;
41 |
42 | @end
43 |
--------------------------------------------------------------------------------
/plugins/org.apache.cordova.console/doc/fr/index.md:
--------------------------------------------------------------------------------
1 |
19 |
20 | # org.apache.cordova.console
21 |
22 | Ce plugin est destiné à faire en sorte que console.log() est aussi utile que possible. Il ajoute une fonction supplémentaire pour iOS, Ubuntu, Windows Phone 8 et Windows 8. Si vous êtes satisfait du fonctionnement de console.log() pour vous, alors vous avez probablement pas besoin ce plugin.
23 |
24 | ## Installation
25 |
26 | cordova plugin add org.apache.cordova.console
27 |
28 |
29 | ### Quirks Android
30 |
31 | Sur certaines plateformes autres que Android, console.log() va agir sur plusieurs arguments, tels que console.log ("1", "2", "3"). Toutefois, Android doit agir uniquement sur le premier argument. Les arguments suivants à console.log() seront ignorées. Ce plugin n'est pas la cause de cela, il s'agit d'une limitation d'Android lui-même.
--------------------------------------------------------------------------------
/platforms/android/cordova/lib/exec.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | /*
4 | Licensed to the Apache Software Foundation (ASF) under one
5 | or more contributor license agreements. See the NOTICE file
6 | distributed with this work for additional information
7 | regarding copyright ownership. The ASF licenses this file
8 | to you under the Apache License, Version 2.0 (the
9 | "License"); you may not use this file except in compliance
10 | with the License. You may obtain a copy of the License at
11 |
12 | http://www.apache.org/licenses/LICENSE-2.0
13 |
14 | Unless required by applicable law or agreed to in writing,
15 | software distributed under the License is distributed on an
16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | KIND, either express or implied. See the License for the
18 | specific language governing permissions and limitations
19 | under the License.
20 | */
21 |
22 | var child_process = require('child_process'),
23 | Q = require('q');
24 |
25 | // Takes a command and optional current working directory.
26 | // Returns a promise that either resolves with the stdout, or
27 | // rejects with an error message and the stderr.
28 | module.exports = function(cmd, opt_cwd) {
29 | var d = Q.defer();
30 | try {
31 | child_process.exec(cmd, {cwd: opt_cwd, maxBuffer: 1024000}, function(err, stdout, stderr) {
32 | if (err) d.reject('Error executing "' + cmd + '": ' + stderr);
33 | else d.resolve(stdout);
34 | });
35 | } catch(e) {
36 | console.error('error caught: ' + e);
37 | d.reject(e);
38 | }
39 | return d.promise;
40 | }
41 |
42 |
--------------------------------------------------------------------------------
/plugins/org.apache.cordova.console/doc/de/index.md:
--------------------------------------------------------------------------------
1 |
19 |
20 | # org.apache.cordova.console
21 |
22 | Dieses Plugin ist gedacht, um sicherzustellen, dass diese console.log() eignet sich wie es sein kann. Es fügt zusätzliche Funktion für iOS, Ubuntu, Windows Phone 8 und Windows 8 hinzu. Wenn Sie zufrieden sind mit der Funktionsweise von console.log() für Sie, brauchen dann Sie vermutlich dieses Plugin nicht.
23 |
24 | ## Installation
25 |
26 | cordova plugin add org.apache.cordova.console
27 |
28 |
29 | ### Android Macken
30 |
31 | Auf einigen Plattformen als Android fungieren console.log() auf mehrere Argumente wie console.log ("1", "2", "3"). Android wird jedoch nur auf das erste Argument fungieren. Nachfolgende Argumente zu console.log() werden ignoriert. Dieses Plugin ist nicht die Verantwortung dafür, es ist eine Einschränkung von Android selbst.
--------------------------------------------------------------------------------
/platforms/android/CordovaLib/src/com/squareup/okhttp/internal/spdy/HeadersMode.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 Square, Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.squareup.okhttp.internal.spdy;
17 |
18 | enum HeadersMode {
19 | SPDY_SYN_STREAM,
20 | SPDY_REPLY,
21 | SPDY_HEADERS,
22 | HTTP_20_HEADERS;
23 |
24 | /** Returns true if it is an error these headers to create a new stream. */
25 | public boolean failIfStreamAbsent() {
26 | return this == SPDY_REPLY || this == SPDY_HEADERS;
27 | }
28 |
29 | /** Returns true if it is an error these headers to update an existing stream. */
30 | public boolean failIfStreamPresent() {
31 | return this == SPDY_SYN_STREAM;
32 | }
33 |
34 | /**
35 | * Returns true if it is an error these headers to be the initial headers of a
36 | * response.
37 | */
38 | public boolean failIfHeadersAbsent() {
39 | return this == SPDY_HEADERS;
40 | }
41 |
42 | /**
43 | * Returns true if it is an error these headers to be update existing headers
44 | * of a response.
45 | */
46 | public boolean failIfHeadersPresent() {
47 | return this == SPDY_REPLY;
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/plugins/android.json:
--------------------------------------------------------------------------------
1 | {
2 | "prepare_queue": {
3 | "installed": [],
4 | "uninstalled": []
5 | },
6 | "config_munge": {
7 | "files": {
8 | "res/xml/config.xml": {
9 | "parents": {
10 | "widget": [
11 | {
12 | "xml": "",
13 | "count": 1
14 | }
15 | ]
16 | }
17 | },
18 | "AndroidManifest.xml": {
19 | "parents": {
20 | "/manifest": [
21 | {
22 | "xml": "",
23 | "count": 1
24 | }
25 | ],
26 | "/manifest/application": [
27 | {
28 | "xml": "",
29 | "count": 1
30 | }
31 | ]
32 | }
33 | }
34 | }
35 | },
36 | "installed_plugins": {
37 | "com.bunkerpalace.cordova.YoutubeVideoPlayer": {
38 | "PACKAGE_NAME": "com.bunkerpalace.YoutubVideoPlayerProject"
39 | },
40 | "org.apache.cordova.console": {
41 | "PACKAGE_NAME": "com.bunkerpalace.YoutubVideoPlayerProject"
42 | }
43 | },
44 | "dependent_plugins": {}
45 | }
--------------------------------------------------------------------------------
/platforms/ios/YoutubeVideoPlayerProject/YoutubeVideoPlayerProject-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleIconFile
12 | icon.png
13 | CFBundleIcons
14 |
15 | CFBundleIcons~ipad
16 |
17 | CFBundleIdentifier
18 | com.bunkerpalace.YoutubVideoPlayerProject
19 | CFBundleInfoDictionaryVersion
20 | 6.0
21 | CFBundleName
22 | ${PRODUCT_NAME}
23 | CFBundlePackageType
24 | APPL
25 | CFBundleShortVersionString
26 | 0.0.1
27 | CFBundleSignature
28 | ????
29 | CFBundleVersion
30 | 0.0.1
31 | LSRequiresIPhoneOS
32 |
33 | NSMainNibFile
34 |
35 | NSMainNibFile~ipad
36 |
37 | UISupportedInterfaceOrientations
38 |
39 | UIInterfaceOrientationPortrait
40 |
41 | UISupportedInterfaceOrientations~ipad
42 |
43 | UIInterfaceOrientationPortrait
44 | UIInterfaceOrientationLandscapeLeft
45 | UIInterfaceOrientationPortraitUpsideDown
46 | UIInterfaceOrientationLandscapeRight
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/plugins/ios.json:
--------------------------------------------------------------------------------
1 | {
2 | "prepare_queue": {
3 | "installed": [],
4 | "uninstalled": []
5 | },
6 | "config_munge": {
7 | "files": {
8 | "framework": {
9 | "parents": {
10 | "MediaPlayer.framework": [
11 | {
12 | "xml": "false",
13 | "count": 1
14 | }
15 | ],
16 | "AVFoundation.framework": [
17 | {
18 | "xml": "false",
19 | "count": 1
20 | }
21 | ]
22 | }
23 | },
24 | "config.xml": {
25 | "parents": {
26 | "/*": [
27 | {
28 | "xml": "",
29 | "count": 1
30 | },
31 | {
32 | "xml": "",
33 | "count": 1
34 | }
35 | ]
36 | }
37 | }
38 | }
39 | },
40 | "installed_plugins": {
41 | "com.bunkerpalace.cordova.YoutubeVideoPlayer": {
42 | "PACKAGE_NAME": "com.bunkerpalace.YoutubVideoPlayerProject"
43 | },
44 | "org.apache.cordova.console": {
45 | "PACKAGE_NAME": "com.bunkerpalace.YoutubVideoPlayerProject"
46 | }
47 | },
48 | "dependent_plugins": {}
49 | }
--------------------------------------------------------------------------------
/platforms/ios/CordovaLib/Classes/UIDevice+Extensions.m:
--------------------------------------------------------------------------------
1 | /*
2 | Licensed to the Apache Software Foundation (ASF) under one
3 | or more contributor license agreements. See the NOTICE file
4 | distributed with this work for additional information
5 | regarding copyright ownership. The ASF licenses this file
6 | to you under the Apache License, Version 2.0 (the
7 | "License"); you may not use this file except in compliance
8 | with the License. You may obtain a copy of the License at
9 |
10 | http://www.apache.org/licenses/LICENSE-2.0
11 |
12 | Unless required by applicable law or agreed to in writing,
13 | software distributed under the License is distributed on an
14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | KIND, either express or implied. See the License for the
16 | specific language governing permissions and limitations
17 | under the License.
18 | */
19 |
20 | #import
21 | #import "UIDevice+Extensions.h"
22 |
23 | @implementation UIDevice (org_apache_cordova_UIDevice_Extension)
24 |
25 | - (NSString*)uniqueAppInstanceIdentifier
26 | {
27 | NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
28 | static NSString* UUID_KEY = @"CDVUUID";
29 |
30 | NSString* app_uuid = [userDefaults stringForKey:UUID_KEY];
31 |
32 | if (app_uuid == nil) {
33 | CFUUIDRef uuidRef = CFUUIDCreate(kCFAllocatorDefault);
34 | CFStringRef uuidString = CFUUIDCreateString(kCFAllocatorDefault, uuidRef);
35 |
36 | app_uuid = [NSString stringWithString:(__bridge NSString*)uuidString];
37 | [userDefaults setObject:app_uuid forKey:UUID_KEY];
38 | [userDefaults synchronize];
39 |
40 | CFRelease(uuidString);
41 | CFRelease(uuidRef);
42 | }
43 |
44 | return app_uuid;
45 | }
46 |
47 | @end
48 |
--------------------------------------------------------------------------------
/platforms/android/CordovaLib/src/com/squareup/okhttp/Failure.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 Square, Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.squareup.okhttp;
17 |
18 | /**
19 | * A failure attempting to retrieve an HTTP response.
20 | *
21 | * Warning: Experimental OkHttp 2.0 API
22 | * This class is in beta. APIs are subject to change!
23 | */
24 | /* OkHttp 2.0: public */ class Failure {
25 | private final Request request;
26 | private final Throwable exception;
27 |
28 | private Failure(Builder builder) {
29 | this.request = builder.request;
30 | this.exception = builder.exception;
31 | }
32 |
33 | public Request request() {
34 | return request;
35 | }
36 |
37 | public Throwable exception() {
38 | return exception;
39 | }
40 |
41 | public static class Builder {
42 | private Request request;
43 | private Throwable exception;
44 |
45 | public Builder request(Request request) {
46 | this.request = request;
47 | return this;
48 | }
49 |
50 | public Builder exception(Throwable exception) {
51 | this.exception = exception;
52 | return this;
53 | }
54 |
55 | public Failure build() {
56 | return new Failure(this);
57 | }
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/platforms/android/CordovaLib/src/com/squareup/okhttp/internal/http/Policy.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 Square, Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.squareup.okhttp.internal.http;
17 |
18 | import java.net.HttpURLConnection;
19 | import java.net.Proxy;
20 | import java.net.URL;
21 |
22 | public interface Policy {
23 | /** Returns true if HTTP response caches should be used. */
24 | boolean getUseCaches();
25 |
26 | /** Returns the HttpURLConnection instance to store in the cache. */
27 | HttpURLConnection getHttpConnectionToCache();
28 |
29 | /** Returns the current destination URL, possibly a redirect. */
30 | URL getURL();
31 |
32 | /** Returns the If-Modified-Since timestamp, or 0 if none is set. */
33 | long getIfModifiedSince();
34 |
35 | /** Returns true if a non-direct proxy is specified. */
36 | boolean usingProxy();
37 |
38 | /** @see java.net.HttpURLConnection#setChunkedStreamingMode(int) */
39 | int getChunkLength();
40 |
41 | /** @see java.net.HttpURLConnection#setFixedLengthStreamingMode(int) */
42 | long getFixedContentLength();
43 |
44 | /**
45 | * Sets the current proxy that this connection is using.
46 | * @see java.net.HttpURLConnection#usingProxy
47 | */
48 | void setSelectedProxy(Proxy proxy);
49 | }
50 |
--------------------------------------------------------------------------------