34 |
35 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/platforms/ios/CordovaLib/Classes/CDVScreenOrientationDelegate.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 | @protocol CDVScreenOrientationDelegate
23 |
24 | - (NSUInteger)supportedInterfaceOrientations;
25 | - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
26 | - (BOOL)shouldAutorotate;
27 |
28 | @end
29 |
--------------------------------------------------------------------------------
/platforms/ios/CordovaLib/Classes/CDVURLProtocol.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 | #import "CDVAvailability.h"
22 |
23 | @class CDVViewController;
24 |
25 | @interface CDVURLProtocol : NSURLProtocol {}
26 |
27 | + (void)registerViewController:(CDVViewController*)viewController;
28 | + (void)unregisterViewController:(CDVViewController*)viewController;
29 | @end
30 |
--------------------------------------------------------------------------------
/platforms/ios/CordovaLib/Classes/CDVUserAgentUtil.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 CDVUserAgentUtil : NSObject
23 | + (NSString*)originalUserAgent;
24 | + (void)acquireLock:(void (^)(NSInteger lockToken))block;
25 | + (void)releaseLock:(NSInteger*)lockToken;
26 | + (void)setUserAgent:(NSString*)value lockToken:(NSInteger)lockToken;
27 | @end
28 |
--------------------------------------------------------------------------------
/platforms/ios/www/lib/angular-ui-router/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2014 The AngularUI Team, Karsten Sperling
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/platforms/ios/www/lib/underscore/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative
2 | Reporters & Editors
3 |
4 | Permission is hereby granted, free of charge, to any person
5 | obtaining a copy of this software and associated documentation
6 | files (the "Software"), to deal in the Software without
7 | restriction, including without limitation the rights to use,
8 | copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the
10 | Software is furnished to do so, subject to the following
11 | conditions:
12 |
13 | The above copyright notice and this permission notice shall be
14 | included in all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
18 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23 | OTHER DEALINGS IN THE SOFTWARE.
24 |
--------------------------------------------------------------------------------
/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | HelloCordova
4 |
5 | An Ionic Framework and Cordova project.
6 |
7 |
8 | Ionic Framework Team
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/platforms/ios/HelloCordova/main.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 | // main.m
21 | // HelloCordova
22 | //
23 | // Created by ___FULLUSERNAME___ on ___DATE___.
24 | // Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved.
25 | //
26 |
27 | #import
28 |
29 | int main(int argc, char* argv[])
30 | {
31 | @autoreleasepool {
32 | int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
33 | return retVal;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/platforms/ios/www/lib/ionic/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ionic",
3 | "version": "1.0.0-beta.8",
4 | "codename": "einsteinium-emu",
5 | "homepage": "https://github.com/driftyco/ionic",
6 | "authors": [
7 | "Max Lynch ",
8 | "Adam Bradley ",
9 | "Ben Sperry "
10 | ],
11 | "description": "Advanced HTML5 hybrid mobile app development framework.",
12 | "main": [
13 | "css/ionic.css",
14 | "fonts/*",
15 | "js/ionic.js",
16 | "js/ionic-angular.js"
17 | ],
18 | "keywords": [
19 | "mobile",
20 | "html5",
21 | "ionic",
22 | "cordova",
23 | "phonegap",
24 | "trigger",
25 | "triggerio",
26 | "angularjs",
27 | "angular"
28 | ],
29 | "license": "MIT",
30 | "private": false,
31 | "dependencies": {
32 | "angular": "~1.2.17",
33 | "angular-animate": "~1.2.17",
34 | "angular-sanitize": "~1.2.17",
35 | "angular-ui-router": "0.2.10"
36 | },
37 | "_release": "1.0.0-beta.8",
38 | "_resolution": {
39 | "type": "version",
40 | "tag": "v1.0.0-beta.8",
41 | "commit": "1ed3ae279814dc8bae9cc67fee599c916a89c3c2"
42 | },
43 | "_source": "git://github.com/driftyco/ionic-bower.git",
44 | "_target": "1.0.0-beta.8",
45 | "_originalSource": "driftyco/ionic-bower"
46 | }
--------------------------------------------------------------------------------
/plugins/org.apache.cordova.geolocation/src/wp/GeoLocation.cs:
--------------------------------------------------------------------------------
1 | /*
2 | Licensed under the Apache License, Version 2.0 (the "License");
3 | you may not use this file except in compliance with the License.
4 | You may obtain a copy of the License at
5 |
6 | http://www.apache.org/licenses/LICENSE-2.0
7 |
8 | Unless required by applicable law or agreed to in writing, software
9 | distributed under the License is distributed on an "AS IS" BASIS,
10 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | See the License for the specific language governing permissions and
12 | limitations under the License.
13 | */
14 |
15 | using System;
16 | using System.Collections.Generic;
17 | using System.Runtime.Serialization;
18 | using System.Threading;
19 | using System.Device.Location;
20 |
21 | namespace WPCordovaClassLib.Cordova.Commands
22 | {
23 | ///
24 | /// This is a command stub, the browser provides the correct implementation. We use this to trigger the static analyzer that we require this permission
25 | ///
26 | public class Geolocation
27 | {
28 | /* Unreachable code, by design -jm */
29 | private void triggerGeoInclusion()
30 | {
31 | new GeoCoordinateWatcher();
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/platforms/ios/CordovaLib/Classes/UIDevice+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 UIDevice (org_apache_cordova_UIDevice_Extension)
23 |
24 | /*
25 | Get the unique identifier from the app bundle's folder, which is already a GUID
26 | Upgrading and/or deleting the app and re-installing will get you a new GUID, so
27 | this is only unique per install per device.
28 | */
29 | - (NSString*)uniqueAppInstanceIdentifier;
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/platforms/ios/www/lib/underscore/README.md:
--------------------------------------------------------------------------------
1 | __
2 | /\ \ __
3 | __ __ ___ \_\ \ __ _ __ ____ ___ ___ _ __ __ /\_\ ____
4 | /\ \/\ \ /' _ `\ /'_ \ /'__`\/\ __\/ ,__\ / ___\ / __`\/\ __\/'__`\ \/\ \ /',__\
5 | \ \ \_\ \/\ \/\ \/\ \ \ \/\ __/\ \ \//\__, `\/\ \__//\ \ \ \ \ \//\ __/ __ \ \ \/\__, `\
6 | \ \____/\ \_\ \_\ \___,_\ \____\\ \_\\/\____/\ \____\ \____/\ \_\\ \____\/\_\ _\ \ \/\____/
7 | \/___/ \/_/\/_/\/__,_ /\/____/ \/_/ \/___/ \/____/\/___/ \/_/ \/____/\/_//\ \_\ \/___/
8 | \ \____/
9 | \/___/
10 |
11 | Underscore.js is a utility-belt library for JavaScript that provides
12 | support for the usual functional suspects (each, map, reduce, filter...)
13 | without extending any core JavaScript objects.
14 |
15 | For Docs, License, Tests, and pre-packed downloads, see:
16 | http://underscorejs.org
17 |
18 | Underscore is an open-sourced component of DocumentCloud:
19 | https://github.com/documentcloud
20 |
21 | Many thanks to our contributors:
22 | https://github.com/jashkenas/underscore/contributors
23 |
--------------------------------------------------------------------------------
/plugins/org.apache.cordova.console/src/ubuntu/console.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed under the Apache License, Version 2.0 (the "License");
3 | * you may not use this file except in compliance with the License.
4 | * You may obtain a copy of the License at
5 | *
6 | * http://www.apache.org/licenses/LICENSE-2.0
7 | *
8 | * Unless required by applicable law or agreed to in writing, software
9 | * distributed under the License is distributed on an "AS IS" BASIS,
10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | * See the License for the specific language governing permissions and
12 | * limitations under the License.
13 | */
14 |
15 | #ifndef CONSOLE_H_FDSVCXGFRS
16 | #define CONSOLE_H_FDSVCXGFRS
17 |
18 | #include
19 |
20 | #include
21 |
22 | class Console : public CPlugin {
23 | Q_OBJECT
24 | public:
25 | explicit Console(Cordova *cordova);
26 |
27 | virtual const QString fullName() override {
28 | return Console::fullID();
29 | }
30 |
31 | virtual const QString shortName() override {
32 | return "Console";
33 | }
34 |
35 | static const QString fullID() {
36 | return "Console";
37 | }
38 |
39 | public slots:
40 | void logLevel(int scId, int ecId, QString level, QString message);
41 | };
42 |
43 | #endif
44 |
--------------------------------------------------------------------------------
/platforms/ios/HelloCordova/Resources/en.lproj/Localizable.strings:
--------------------------------------------------------------------------------
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 | // controller title for Videos
21 | "Videos title" = "Videos";
22 | // accessibility label for recording button
23 | "toggle audio recording" = "toggle audio recording";
24 | // notification spoken by VoiceOver when timed recording finishes
25 | "timed recording complete" = "timed recording complete";
26 | // accessibility hint for display of recorded elapsed time
27 | "recorded time in minutes and seconds" = "recorded time in minutes and seconds";
28 |
--------------------------------------------------------------------------------
/platforms/ios/HelloCordova/Resources/se.lproj/Localizable.strings:
--------------------------------------------------------------------------------
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 | // controller title for Videos
22 | "Videos title" = "Videor";
23 | // accessibility label for recording button
24 | "toggle audio recording" = "börja/avsluta inspelning";
25 | // notification spoken by VoiceOver when timed recording finishes
26 | "timed recording complete" = "inspelning har avslutad";
27 | // accessibility hint for display of recorded elapsed time
28 | "recorded time in minutes and seconds" = "inspelad tid in minuter och sekund";
29 |
--------------------------------------------------------------------------------
/plugins/org.apache.cordova.geolocation/www/PositionError.js:
--------------------------------------------------------------------------------
1 | /*
2 | *
3 | * Licensed to the Apache Software Foundation (ASF) under one
4 | * or more contributor license agreements. See the NOTICE file
5 | * distributed with this work for additional information
6 | * regarding copyright ownership. The ASF licenses this file
7 | * to you under the Apache License, Version 2.0 (the
8 | * "License"); you may not use this file except in compliance
9 | * with the License. You may obtain a copy of the License at
10 | *
11 | * http://www.apache.org/licenses/LICENSE-2.0
12 | *
13 | * Unless required by applicable law or agreed to in writing,
14 | * software distributed under the License is distributed on an
15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | * KIND, either express or implied. See the License for the
17 | * specific language governing permissions and limitations
18 | * under the License.
19 | *
20 | */
21 |
22 | /**
23 | * Position error object
24 | *
25 | * @constructor
26 | * @param code
27 | * @param message
28 | */
29 | var PositionError = function(code, message) {
30 | this.code = code || null;
31 | this.message = message || '';
32 | };
33 |
34 | PositionError.PERMISSION_DENIED = 1;
35 | PositionError.POSITION_UNAVAILABLE = 2;
36 | PositionError.TIMEOUT = 3;
37 |
38 | module.exports = PositionError;
39 |
--------------------------------------------------------------------------------
/platforms/ios/HelloCordova/Resources/es.lproj/Localizable.strings:
--------------------------------------------------------------------------------
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 | // controller title for Videos
21 | "Videos title" = "Videos";
22 | // accessibility label for recording button
23 | "toggle audio recording" = "grabación de audio cambiar";
24 | // notification spoken by VoiceOver when timed recording finishes
25 | "timed recording complete" = "tiempo de grabación completo";
26 | // accessibility hint for display of recorded elapsed time
27 | "recorded time in minutes and seconds" = "tiempo registrado en minutos y segundos";
28 |
--------------------------------------------------------------------------------
/platforms/ios/cordova/lib/sim.applescript:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | tell application "System Events"
19 | set UI elements enabled to true
20 | end tell
21 |
22 | tell application "iPhone Simulator"
23 | activate
24 | end tell
25 |
26 | tell application "System Events"
27 | tell process "iPhone Simulator"
28 | click menu item "$DEVICE_NAME" of menu 1 of menu item "Device" of menu 1 of menu bar item "Hardware" of menu bar 1
29 | click menu item "Home" of menu 1 of menu bar item "Hardware" of menu bar 1
30 | end tell
31 | end tell
32 |
--------------------------------------------------------------------------------
/plugins/org.apache.cordova.console/src/ios/CDVLogger.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 "CDVLogger.h"
21 | #import
22 |
23 | @implementation CDVLogger
24 |
25 | /* log a message */
26 | - (void)logLevel:(CDVInvokedUrlCommand*)command
27 | {
28 | id level = [command.arguments objectAtIndex:0];
29 | id message = [command.arguments objectAtIndex:1];
30 |
31 | if ([level isEqualToString:@"LOG"]) {
32 | NSLog(@"%@", message);
33 | } else {
34 | NSLog(@"%@: %@", level, message);
35 | }
36 | }
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/platforms/ios/CordovaLib/Classes/CDVWhitelist.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 | extern NSString* const kCDVDefaultWhitelistRejectionString;
23 |
24 | @interface CDVWhitelist : NSObject
25 |
26 | @property (nonatomic, copy) NSString* whitelistRejectionFormatString;
27 |
28 | - (id)initWithArray:(NSArray*)array;
29 | - (BOOL)schemeIsAllowed:(NSString*)scheme;
30 | - (BOOL)URLIsAllowed:(NSURL*)url;
31 | - (BOOL)URLIsAllowed:(NSURL*)url logFailure:(BOOL)logFailure;
32 | - (NSString*)errorStringForURL:(NSURL*)url;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/platforms/ios/HelloCordova/Resources/de.lproj/Localizable.strings:
--------------------------------------------------------------------------------
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 | // controller title for Videos
22 | "Videos title" = "Videos";
23 | // accessibility label for recording button
24 | "toggle audio recording" = "starten/beenden der Tonaufnahme";
25 | // notification spoken by VoiceOver when timed recording finishes
26 | "timed recording complete" = "programmierte Aufnahme beendet";
27 | // accessibility hint for display of recorded elapsed time
28 | "recorded time in minutes and seconds" = "aufgenommene Zeit in Minuten und Sekunden";
29 |
--------------------------------------------------------------------------------
/platforms/ios/cordova/lib/start-emulator:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | #
3 | # Licensed to the Apache Software Foundation (ASF) under one
4 | # or more contributor license agreements. See the NOTICE file
5 | # distributed with this work for additional information
6 | # regarding copyright ownership. The ASF licenses this file
7 | # to you under the Apache License, Version 2.0 (the
8 | # "License"); you may not use this file except in compliance
9 | # with the License. You may obtain a copy of the License at
10 | #
11 | # http://www.apache.org/licenses/LICENSE-2.0
12 | #
13 | # Unless required by applicable law or agreed to in writing,
14 | # software distributed under the License is distributed on an
15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | # KIND, either express or implied. See the License for the
17 | # specific language governing permissions and limitations
18 | # under the License.
19 | #
20 | # Valid values for "--target" (case insensitive):
21 | # "iPhone (Retina 3.5-inch)" (default)
22 | # "iPhone (Retina 4-inch)"
23 | # "iPhone"
24 | # "iPad"
25 | # "iPad (Retina)"
26 |
27 | set -e
28 |
29 |
30 | DEFAULT_TARGET="iPhone Retina (3.5-inch)"
31 | TARGET=${1:-$DEFAULT_TARGET}
32 | LIB_PATH=$( cd "$( dirname "$0" )" && pwd -P)
33 |
34 | SCPT=`sed -e "s/\\$DEVICE_NAME/$TARGET/g" "$LIB_PATH/sim.applescript"`
35 | osascript -e "$SCPT"
36 |
--------------------------------------------------------------------------------
/plugins/org.apache.cordova.device/src/ubuntu/device.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2011 Wolfgang Koller - http://www.gofg.at/
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 | #ifndef DEVICE_H_FDSAFAS
18 | #define DEVICE_H_FDSAFAS
19 |
20 | #include
21 |
22 | #include
23 |
24 | class Device: public CPlugin {
25 | Q_OBJECT
26 | public:
27 | explicit Device(Cordova *cordova);
28 |
29 | virtual const QString fullName() override {
30 | return Device::fullID();
31 | }
32 |
33 | virtual const QString shortName() override {
34 | return "Device";
35 | }
36 |
37 | static const QString fullID() {
38 | return "com.cordova.Device";
39 | }
40 |
41 | signals:
42 |
43 | public slots:
44 | void getInfo(int scId, int ecId);
45 | };
46 |
47 | #endif
48 |
--------------------------------------------------------------------------------
/platforms/ios/CordovaLib/Classes/CDVConfigParser.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 | @interface CDVConfigParser : NSObject
21 | {
22 | NSString* featureName;
23 | }
24 |
25 | @property (nonatomic, readonly, strong) NSMutableDictionary* pluginsDict;
26 | @property (nonatomic, readonly, strong) NSMutableDictionary* settings;
27 | @property (nonatomic, readonly, strong) NSMutableArray* whitelistHosts;
28 | @property (nonatomic, readonly, strong) NSMutableArray* startupPluginNames;
29 | @property (nonatomic, readonly, strong) NSString* startPage;
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/platforms/ios/HelloCordova/Plugins/org.apache.cordova.console/CDVLogger.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 "CDVLogger.h"
21 | #import
22 |
23 | @implementation CDVLogger
24 |
25 | /* log a message */
26 | - (void)logLevel:(CDVInvokedUrlCommand*)command
27 | {
28 | id level = [command.arguments objectAtIndex:0];
29 | id message = [command.arguments objectAtIndex:1];
30 |
31 | if ([level isEqualToString:@"LOG"]) {
32 | NSLog(@"%@", message);
33 | } else {
34 | NSLog(@"%@: %@", level, message);
35 | }
36 | }
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/platforms/ios/cordova/check_reqs:
--------------------------------------------------------------------------------
1 | #! /bin/sh
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 | XCODEBUILD_LOCATION=$(which xcodebuild)
23 | if [ $? != 0 ]; then
24 | echo "Xcode is (probably) not installed, specifically the command 'xcodebuild' is unavailable."
25 | exit 2
26 | fi
27 |
28 | XCODEBUILD_MIN_VERSION="4.6"
29 | XCODEBUILD_VERSION=$(xcodebuild -version | head -n 1 | sed -e 's/Xcode //')
30 |
31 | if [[ "$XCODEBUILD_VERSION" < "$XCODEBUILD_MIN_VERSION" ]]; then
32 | echo "Cordova can only run in Xcode version $XCODEBUILD_MIN_VERSION or greater."
33 | exit 2
34 | fi
35 |
--------------------------------------------------------------------------------
/platforms/ios/cordova/lib/list-started-emulators:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | #
3 | # Licensed to the Apache Software Foundation (ASF) under one
4 | # or more contributor license agreements. See the NOTICE file
5 | # distributed with this work for additional information
6 | # regarding copyright ownership. The ASF licenses this file
7 | # to you under the Apache License, Version 2.0 (the
8 | # "License"); you may not use this file except in compliance
9 | # with the License. You may obtain a copy of the License at
10 | #
11 | # http://www.apache.org/licenses/LICENSE-2.0
12 | #
13 | # Unless required by applicable law or agreed to in writing,
14 | # software distributed under the License is distributed on an
15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | # KIND, either express or implied. See the License for the
17 | # specific language governing permissions and limitations
18 | # under the License.
19 | #
20 | # Valid values for "--target" (case insensitive):
21 | # "iPhone (Retina 3.5-inch)" (default)
22 | # "iPhone (Retina 4-inch)"
23 | # "iPhone"
24 | # "iPad"
25 | # "iPad (Retina)"
26 |
27 | set -e
28 |
29 | SIM_RUNNING=$(ps aux | grep -i "[i]Phone Simulator" | wc -l)
30 | if [ $SIM_RUNNING == 0 ]; then
31 | echo "No emulators are running."
32 | exit 1
33 | fi
34 |
35 | SIM_ID=`defaults read com.apple.iphonesimulator "SimulateDevice"`
36 | echo \"$SIM_ID\"
37 |
--------------------------------------------------------------------------------
/www/templates/tab-dash.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |