Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E71281162B for ; Fri, 2 May 2014 18:32:07 +0000 (UTC) Received: (qmail 44210 invoked by uid 500); 2 May 2014 18:29:51 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 44118 invoked by uid 500); 2 May 2014 18:29:49 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 43792 invoked by uid 99); 2 May 2014 18:29:41 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 May 2014 18:29:41 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 22D2645EC1; Fri, 2 May 2014 18:29:38 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kamrik@apache.org To: commits@cordova.apache.org Date: Fri, 02 May 2014 18:30:37 -0000 Message-Id: <1b18ac10aa6446a08a79b00976ea3089@git.apache.org> In-Reply-To: <7fc515fdc8214ea6b8a47a40cad66e18@git.apache.org> References: <7fc515fdc8214ea6b8a47a40cad66e18@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [62/70] Remove all cordova-lib files http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/DummyPlugin/src/android/DummyPlugin.java ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/android/DummyPlugin.java b/cordova-lib/spec-plugman/plugins/DummyPlugin/src/android/DummyPlugin.java deleted file mode 100644 index 5263b0c..0000000 --- a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/android/DummyPlugin.java +++ /dev/null @@ -1,19 +0,0 @@ -/* - * - * Copyright 2013 Anis Kadri - * - * Licensed 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. - * -*/ - http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/DummyPlugin/src/android/TestLib.jar ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/android/TestLib.jar b/cordova-lib/spec-plugman/plugins/DummyPlugin/src/android/TestLib.jar deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/DummyPlugin/src/blackberry10/index.js ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/blackberry10/index.js b/cordova-lib/spec-plugman/plugins/DummyPlugin/src/blackberry10/index.js deleted file mode 100644 index 5263b0c..0000000 --- a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/blackberry10/index.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * - * Copyright 2013 Anis Kadri - * - * Licensed 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. - * -*/ - http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/Custom.framework/someFheader.h ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/Custom.framework/someFheader.h b/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/Custom.framework/someFheader.h deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/Custom.framework/somebinlib ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/Custom.framework/somebinlib b/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/Custom.framework/somebinlib deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/DummyPlugin.bundle ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/DummyPlugin.bundle b/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/DummyPlugin.bundle deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/DummyPluginCommand.h ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/DummyPluginCommand.h b/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/DummyPluginCommand.h deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/DummyPluginCommand.m ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/DummyPluginCommand.m b/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/DummyPluginCommand.m deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/SourceWithFramework.m ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/SourceWithFramework.m b/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/SourceWithFramework.m deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/TargetDirTest.h ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/TargetDirTest.h b/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/TargetDirTest.h deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/TargetDirTest.m ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/TargetDirTest.m b/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/TargetDirTest.m deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/libsqlite3.dylib ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/libsqlite3.dylib b/cordova-lib/spec-plugman/plugins/DummyPlugin/src/ios/libsqlite3.dylib deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/DummyPlugin/src/tizen/dummer.js ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/tizen/dummer.js b/cordova-lib/spec-plugman/plugins/DummyPlugin/src/tizen/dummer.js deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/DummyPlugin/src/windows8/dummer.js ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/windows8/dummer.js b/cordova-lib/spec-plugman/plugins/DummyPlugin/src/windows8/dummer.js deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/DummyPlugin/src/wp7/DummyPlugin.cs ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/wp7/DummyPlugin.cs b/cordova-lib/spec-plugman/plugins/DummyPlugin/src/wp7/DummyPlugin.cs deleted file mode 100644 index 273dc3b..0000000 --- a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/wp7/DummyPlugin.cs +++ /dev/null @@ -1,19 +0,0 @@ -/* - * - * Copyright 2013 Benn Mapes - * - * Licensed 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. - * -*/ - http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/DummyPlugin/src/wp8/DummyPlugin.cs ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/wp8/DummyPlugin.cs b/cordova-lib/spec-plugman/plugins/DummyPlugin/src/wp8/DummyPlugin.cs deleted file mode 100644 index 273dc3b..0000000 --- a/cordova-lib/spec-plugman/plugins/DummyPlugin/src/wp8/DummyPlugin.cs +++ /dev/null @@ -1,19 +0,0 @@ -/* - * - * Copyright 2013 Benn Mapes - * - * Licensed 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. - * -*/ - http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/DummyPlugin/www/dummyplugin.js ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/DummyPlugin/www/dummyplugin.js b/cordova-lib/spec-plugman/plugins/DummyPlugin/www/dummyplugin.js deleted file mode 100644 index 5263b0c..0000000 --- a/cordova-lib/spec-plugman/plugins/DummyPlugin/www/dummyplugin.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * - * Copyright 2013 Anis Kadri - * - * Licensed 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. - * -*/ - http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/DummyPlugin/www/dummyplugin/image.jpg ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/DummyPlugin/www/dummyplugin/image.jpg b/cordova-lib/spec-plugman/plugins/DummyPlugin/www/dummyplugin/image.jpg deleted file mode 100644 index 257cc56..0000000 --- a/cordova-lib/spec-plugman/plugins/DummyPlugin/www/dummyplugin/image.jpg +++ /dev/null @@ -1 +0,0 @@ -foo http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/EnginePlugin/megaBoringVersion ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/EnginePlugin/megaBoringVersion b/cordova-lib/spec-plugman/plugins/EnginePlugin/megaBoringVersion deleted file mode 100755 index cbf7911..0000000 --- a/cordova-lib/spec-plugman/plugins/EnginePlugin/megaBoringVersion +++ /dev/null @@ -1,23 +0,0 @@ -#! /bin/sh - -# -# 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 4.0.0 -exit 0 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/EnginePlugin/megaFunVersion ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/EnginePlugin/megaFunVersion b/cordova-lib/spec-plugman/plugins/EnginePlugin/megaFunVersion deleted file mode 100755 index 1e4c706..0000000 --- a/cordova-lib/spec-plugman/plugins/EnginePlugin/megaFunVersion +++ /dev/null @@ -1,23 +0,0 @@ -#! /bin/sh - -# -# 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 1.0.0 -exit 0 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/EnginePlugin/plugin.xml ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/EnginePlugin/plugin.xml b/cordova-lib/spec-plugman/plugins/EnginePlugin/plugin.xml deleted file mode 100644 index a58f19e..0000000 --- a/cordova-lib/spec-plugman/plugins/EnginePlugin/plugin.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Engine Choo Choo - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/EnginePluginAndroid/plugin.xml ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/EnginePluginAndroid/plugin.xml b/cordova-lib/spec-plugman/plugins/EnginePluginAndroid/plugin.xml deleted file mode 100644 index fe2bce2..0000000 --- a/cordova-lib/spec-plugman/plugins/EnginePluginAndroid/plugin.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - Engine Choo Choo - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/EnginePluginiOS/plugin.xml ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/EnginePluginiOS/plugin.xml b/cordova-lib/spec-plugman/plugins/EnginePluginiOS/plugin.xml deleted file mode 100644 index d7a9a8e..0000000 --- a/cordova-lib/spec-plugman/plugins/EnginePluginiOS/plugin.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - Engine Choo Choo - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/FaultyPlugin/plugin.xml ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/FaultyPlugin/plugin.xml b/cordova-lib/spec-plugman/plugins/FaultyPlugin/plugin.xml deleted file mode 100644 index 22564e7..0000000 --- a/cordova-lib/spec-plugman/plugins/FaultyPlugin/plugin.xml +++ /dev/null @@ -1,161 +0,0 @@ - - - - - - Faulty Plugin - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/android/FaultyPlugin.java ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/android/FaultyPlugin.java b/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/android/FaultyPlugin.java deleted file mode 100644 index 5263b0c..0000000 --- a/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/android/FaultyPlugin.java +++ /dev/null @@ -1,19 +0,0 @@ -/* - * - * Copyright 2013 Anis Kadri - * - * Licensed 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. - * -*/ - http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/blackberry10/client.js ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/blackberry10/client.js b/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/blackberry10/client.js deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/ios/FaultyPlugin.h ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/ios/FaultyPlugin.h b/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/ios/FaultyPlugin.h deleted file mode 100644 index 6a23ab6..0000000 --- a/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/ios/FaultyPlugin.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * - * Copyright 2013 Anis Kadri - * - * Licensed 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. - * -*/ - -// -// PhoneGap ! ChildBrowserCommand -// -// -// Created by Jesse MacFadyen on 10-05-29. -// Copyright 2010 Nitobi. All rights reserved. -// - -#import -#ifdef PHONEGAP_FRAMEWORK - #import -#else - #import "PGPlugin.h" -#endif -#import "ChildBrowserViewController.h" - - - -@interface ChildBrowserCommand : PGPlugin { - - ChildBrowserViewController* childBrowser; -} - -@property (nonatomic, retain) ChildBrowserViewController *childBrowser; - - -- (void) showWebPage:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options; --(void) onChildLocationChange:(NSString*)newLoc; - -@end http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/ios/FaultyPlugin.m ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/ios/FaultyPlugin.m b/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/ios/FaultyPlugin.m deleted file mode 100644 index 38aaf64..0000000 --- a/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/ios/FaultyPlugin.m +++ /dev/null @@ -1,86 +0,0 @@ -// - -// -// -// Created by Jesse MacFadyen on 10-05-29. -// Copyright 2010 Nitobi. All rights reserved. -// Copyright (c) 2011, IBM Corporation -// Copyright 2011, Randy McMillan -// - -#import "ChildBrowserCommand.h" - -#ifdef PHONEGAP_FRAMEWORK - #import -#else - #import "PhoneGapViewController.h" -#endif - - -@implementation ChildBrowserCommand - -@synthesize childBrowser; - -- (void) showWebPage:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options // args: url -{ - - if(childBrowser == NULL) - { - childBrowser = [[ ChildBrowserViewController alloc ] initWithScale:FALSE ]; - childBrowser.delegate = self; - } - -/* // TODO: Work in progress - NSString* strOrientations = [ options objectForKey:@"supportedOrientations"]; - NSArray* supportedOrientations = [strOrientations componentsSeparatedByString:@","]; -*/ - PhoneGapViewController* cont = (PhoneGapViewController*)[ super appViewController ]; - childBrowser.supportedOrientations = cont.supportedOrientations; - - if ([cont respondsToSelector:@selector(presentViewController)]) { - //Reference UIViewController.h Line:179 for update to iOS 5 difference - @RandyMcMillan - [cont presentViewController:childBrowser animated:YES completion:nil]; - } else { - [ cont presentModalViewController:childBrowser animated:YES ]; - } - - NSString *url = (NSString*) [arguments objectAtIndex:0]; - - [childBrowser loadURL:url ]; - -} - --(void) close:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options // args: url -{ - [ childBrowser closeBrowser]; - -} - --(void) onClose -{ - NSString* jsCallback = [NSString stringWithFormat:@"ChildBrowser._onClose();",@""]; - [self.webView stringByEvaluatingJavaScriptFromString:jsCallback]; -} - --(void) onOpenInSafari -{ - NSString* jsCallback = [NSString stringWithFormat:@"ChildBrowser._onOpenExternal();",@""]; - [self.webView stringByEvaluatingJavaScriptFromString:jsCallback]; -} - - --(void) onChildLocationChange:(NSString*)newLoc -{ - - NSString* tempLoc = [NSString stringWithFormat:@"%@",newLoc]; - NSString* encUrl = [tempLoc stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; - - NSString* jsCallback = [NSString stringWithFormat:@"ChildBrowser._onLocationChange('%@');",encUrl]; - [self.webView stringByEvaluatingJavaScriptFromString:jsCallback]; - -} - - - - -@end http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/windows8/faultyPlugin.js ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/windows8/faultyPlugin.js b/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/windows8/faultyPlugin.js deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/wp7/FaultyPlugin.cs ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/wp7/FaultyPlugin.cs b/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/wp7/FaultyPlugin.cs deleted file mode 100644 index 5263b0c..0000000 --- a/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/wp7/FaultyPlugin.cs +++ /dev/null @@ -1,19 +0,0 @@ -/* - * - * Copyright 2013 Anis Kadri - * - * Licensed 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. - * -*/ - http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/wp8/FaultyPlugin.cs ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/wp8/FaultyPlugin.cs b/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/wp8/FaultyPlugin.cs deleted file mode 100644 index 5263b0c..0000000 --- a/cordova-lib/spec-plugman/plugins/FaultyPlugin/src/wp8/FaultyPlugin.cs +++ /dev/null @@ -1,19 +0,0 @@ -/* - * - * Copyright 2013 Anis Kadri - * - * Licensed 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. - * -*/ - http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/PluginsPlistOnly/plugin.xml ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/PluginsPlistOnly/plugin.xml b/cordova-lib/spec-plugman/plugins/PluginsPlistOnly/plugin.xml deleted file mode 100644 index 0e00504..0000000 --- a/cordova-lib/spec-plugman/plugins/PluginsPlistOnly/plugin.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - Old Skewl Plugin using Plists - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/VariablePlugin/plugin.xml ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/VariablePlugin/plugin.xml b/cordova-lib/spec-plugman/plugins/VariablePlugin/plugin.xml deleted file mode 100644 index 9eff729..0000000 --- a/cordova-lib/spec-plugman/plugins/VariablePlugin/plugin.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - Use Variables - - - - Remember that your api key is $API_KEY! - - - - - $PACKAGE_NAME - - - - - - - - - $PACKAGE_NAME - - - - - - - - - $PACKAGE_NAME - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WebNotifications/plugin.xml ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WebNotifications/plugin.xml b/cordova-lib/spec-plugman/plugins/WebNotifications/plugin.xml deleted file mode 100644 index b9026f1..0000000 --- a/cordova-lib/spec-plugman/plugins/WebNotifications/plugin.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - Web Notifications - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WebNotifications/src/ios/AppDelegate.m.diff ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WebNotifications/src/ios/AppDelegate.m.diff b/cordova-lib/spec-plugman/plugins/WebNotifications/src/ios/AppDelegate.m.diff deleted file mode 100644 index 754d079..0000000 --- a/cordova-lib/spec-plugman/plugins/WebNotifications/src/ios/AppDelegate.m.diff +++ /dev/null @@ -1,18 +0,0 @@ -- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification -{ - // Note: if app wasn't running, you can still get a LN and then it doesn't call this function, - // I think it calls app start but notifies you that LN caused the app start or something like that. - - //UIApplicationState state = [application applicationState]; - //BOOL wasForeground = (state == UIApplicationStateActive); - - //NSString *title = [notification.userInfo objectForKey:@"title"]; - //NSString *body = [notification.userInfo objectForKey:@"body"]; - NSString *tag = [notification.userInfo objectForKey:@"tag"]; - - [(WebNotifications*)[self.viewController getCommandInstance:@"WebNotifications"] clickNotification:tag]; - - application.applicationIconBadgeNumber = 0; - application.scheduledLocalNotifications = [NSArray arrayWithArray:application.scheduledLocalNotifications]; // "hack" to clear seen notifications -} - http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WebNotifications/src/ios/WebNotifications.h ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WebNotifications/src/ios/WebNotifications.h b/cordova-lib/spec-plugman/plugins/WebNotifications/src/ios/WebNotifications.h deleted file mode 100644 index 1702f40..0000000 --- a/cordova-lib/spec-plugman/plugins/WebNotifications/src/ios/WebNotifications.h +++ /dev/null @@ -1,35 +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. - */ - -#import -#import - -@interface WebNotifications : CDVPlugin { -} - -@property (nonatomic, strong) NSMutableArray* activeNotifications; - -- (CDVPlugin*)initWithWebView:(UIWebView*)theWebView; - -- (void)createNotification:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options; -- (void)closeNotification:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options; - -- (void)clickNotification:(NSString*)tag; - -@end http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WebNotifications/src/ios/WebNotifications.m ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WebNotifications/src/ios/WebNotifications.m b/cordova-lib/spec-plugman/plugins/WebNotifications/src/ios/WebNotifications.m deleted file mode 100644 index 6f0c11f..0000000 --- a/cordova-lib/spec-plugman/plugins/WebNotifications/src/ios/WebNotifications.m +++ /dev/null @@ -1,124 +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. - */ - -#define Log(fmt, ...) NSLog((@"%d: %s " fmt), __LINE__, __PRETTY_FUNCTION__, ##__VA_ARGS__); - -#import "WebNotifications.h" -#import "MainViewController.h" - -@implementation WebNotifications - -@synthesize activeNotifications; - -- (CDVPlugin*)initWithWebView:(UIWebView*)theWebView -{ - self = [super init]; - if (self) { - self.activeNotifications = [NSMutableArray array]; - } - return self; -} - -- (void)createNotification:(CDVInvokedUrlCommand*)command -{ - NSDictionary* options = [command.arguments objectAtIndex:0]; - - // w3c options: - NSString *title = [options objectForKey:@"title"]; - NSString *body = [options objectForKey:@"body"]; - NSString *tag = [options objectForKey:@"tag"]; - //NSString *iconUrl = [options objectForKey:@"iconUrl"]; // Not supported - - // cordova option extensions: - NSUInteger delay = [[options objectForKey:@"delay"] unsignedIntegerValue]; - NSString *soundUrl = [options objectForKey:@"soundUrl"]; - NSInteger badgeNumber = [[options objectForKey:@"badgeNumber"] intValue]; - - Log(@"addNotification title: %@ body: %@ tag: %@ delay: %u badge: %u", title, body, tag, delay, badgeNumber); - - //NSString *action = [options objectForKey:@"action"]; - //bool hasAction = ([[options objectForKey:@"hasAction"] intValue] == 1) ? YES : NO; - //alertAction - - UILocalNotification *notif = [[UILocalNotification alloc] init]; - notif.alertBody = [NSString stringWithFormat:@"[%@] %@: %@", tag, title, body]; - notif.timeZone = [NSTimeZone defaultTimeZone]; - - notif.soundName = soundUrl; - notif.applicationIconBadgeNumber = badgeNumber; - - NSDictionary *userDict = [NSDictionary dictionaryWithObjectsAndKeys:title,@"title",body,@"body",tag,@"tag",nil]; - notif.userInfo = userDict; - - if (delay != 0) { - notif.fireDate = [[NSDate date] addTimeInterval:delay]; - //notif.repeatInterval = [[repeatDict objectForKey: repeat] intValue]; - - [[UIApplication sharedApplication] scheduleLocalNotification:notif]; - } else { - [[UIApplication sharedApplication] presentLocalNotificationNow:notif]; - } - - [self.activeNotifications addObject:notif]; -} - -- (void)closeNotification:(CDVInvokedUrlCommand*)command -{ -// command.callbackId; - NSDictionary* options = [command.arguments objectAtIndex:0]; - NSString *tag = [options objectForKey:@"tag"]; - - NSArray *notifications = [[UIApplication sharedApplication] scheduledLocalNotifications]; - for (UILocalNotification *notification in notifications) { - if ([[notification.userInfo objectForKey:@"tag"] isEqualToString:tag]) { - Log(@"Cancelling notification with tag: %@", tag); - [[UIApplication sharedApplication] cancelLocalNotification:notification]; - [self.activeNotifications removeObject:notification]; - [self.commandDelegate sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsInt:0] callbackId:command.callbackId]; - } - } - [self.commandDelegate sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsInt:0] callbackId:command.callbackId]; -} - -- (void)clickNotification:(NSString*)tag { - NSString *jsCallBack; - - jsCallBack = [NSString stringWithFormat:@"window.Notification.callOnclickByTag('%@')", tag]; - [((CDVViewController*)self.viewController).webView stringByEvaluatingJavaScriptFromString:jsCallBack]; - - NSArray *scheduledNotifications = [[UIApplication sharedApplication] scheduledLocalNotifications]; - NSMutableArray *toDiscard = [NSMutableArray array]; - for (UILocalNotification *notification in self.activeNotifications) { - if (![scheduledNotifications containsObject:notification]) { - // This notification is active, but no longer scheduled, so it must be displayed - jsCallBack = [NSString stringWithFormat:@"window.Notification.callOncloseByTag('%@')", [notification.userInfo objectForKey:@"tag"]]; - [((CDVViewController*)self.viewController).webView stringByEvaluatingJavaScriptFromString:jsCallBack]; - [toDiscard addObject:notification]; - } - } - [self.activeNotifications removeObjectsInArray:toDiscard]; -} - -/* -- (void)cancelAllNotifications:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options { - [[UIApplication sharedApplication] cancelAllLocalNotifications]; -} -*/ - -@end http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WebNotifications/www/webnotifications.js ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WebNotifications/www/webnotifications.js b/cordova-lib/spec-plugman/plugins/WebNotifications/www/webnotifications.js deleted file mode 100644 index 6597337..0000000 --- a/cordova-lib/spec-plugman/plugins/WebNotifications/www/webnotifications.js +++ /dev/null @@ -1,123 +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. - */ - -/* - * The W3C window.Notification API: http://www.w3.org/TR/notifications/ - */ -if (typeof window.Notification == 'undefined') { - - /** - * Creates and shows a new notification. - * @param title - * @param options - */ - window.Notification = function(title, options) { - options = options || {}; - - this.title = title || 'defaultTitle'; - - // w3c options: - this.body = options.body || ''; - this.tag = options.tag || 'defaultTag'; - this.iconUrl = options.iconUrl || ''; - // titleDir, bodyDir are not supported - - // cordova option extensions: - this.delay = options.delay || 0; - this.soundUrl = options.soundUrl || ''; - this.badgeNumber = options.badgeNumber || 0; - - // there must be one unique notification per tag, so close any existing outstanding notifications - if (window.Notification.active[this.tag]) - window.Notification.active[this.tag].close(); - window.Notification.active[this.tag] = this; - - // Spec claims these must be defined - this.onclick = options.onclick; - this.onerror = options.onerror; - this.onclose = options.onclose; - this.onshow = options.onshow; - if (this.onshow) { - console.log("Warning, WebNotifications plugin will never call onshow"); // this may change on other platforms - } - - var self = this; - cordova.exec(null, function(error) { - if (self.onerror) { - self.onerror(error); - } - }, 'WebNotifications', 'createNotification', [{ - tag: this.tag, - title: this.title, - body: this.body, - delay: this.delay, - }]); - }; - - // TODO: change name to something internal looking? - window.Notification.permission = 'granted'; - - window.Notification.requestPermission = function(callback) { - setTimeout(function() { - callback(window.Notification.permission); - }, 0); - }; - - // Not part of the W3C API. Used by the native side to call onclick handlers. - // TODO: change name to something internal looking? - window.Notification.callOnclickByTag = function(tag) { - var notification = window.Notification.active[tag]; - if (notification && notification.onclick && typeof notification.onclick == 'function') { - notification.onclick(tag); - } - delete window.Notification.active[tag]; - }; - - window.Notification.callOncloseByTag = function(tag) { - var notification = window.Notification.active[tag]; - if (notification && notification.onclose && typeof notification.onclose == 'function') { - notification.onclose(tag); - } - delete window.Notification.active[tag]; - }; - - // A global map of notifications by tag, so their onclick callbacks can be called. - // TODO: change name to something internal looking? - window.Notification.active = {}; - - /** - * Dismiss a notification. - */ - window.Notification.prototype.close = function() { - var self = this; - cordova.exec(function() { - if (self.onclose) { - self.onclose(); - } - delete window.Notification[self.tag]; - }, function(error) { - if (self.onerror) { - self.onerror(error); - } - delete window.Notification[self.tag]; - }, 'WebNotifications', 'closeNotification', [{ - tag: this.tag, - }]); - }; -} http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WeblessPlugin/plugin.xml ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WeblessPlugin/plugin.xml b/cordova-lib/spec-plugman/plugins/WeblessPlugin/plugin.xml deleted file mode 100644 index 5522d22..0000000 --- a/cordova-lib/spec-plugman/plugins/WeblessPlugin/plugin.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - Webless Plugin - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/android/WeblessPlugin.java ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/android/WeblessPlugin.java b/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/android/WeblessPlugin.java deleted file mode 100644 index 5263b0c..0000000 --- a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/android/WeblessPlugin.java +++ /dev/null @@ -1,19 +0,0 @@ -/* - * - * Copyright 2013 Anis Kadri - * - * Licensed 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. - * -*/ - http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_left.png ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_left.png b/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_left.png deleted file mode 100644 index 530e12b..0000000 Binary files a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_left.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_left@2x.png ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_left@2x.png b/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_left@2x.png deleted file mode 100644 index 530e12b..0000000 Binary files a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_left@2x.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_right.png ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_right.png b/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_right.png deleted file mode 100644 index 8b3d855..0000000 Binary files a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_right.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_right@2x.png ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_right@2x.png b/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_right@2x.png deleted file mode 100644 index 8b3d855..0000000 Binary files a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_right@2x.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/but_refresh.png ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/but_refresh.png b/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/but_refresh.png deleted file mode 100644 index 309b6bd..0000000 Binary files a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/but_refresh.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/but_refresh@2x.png ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/but_refresh@2x.png b/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/but_refresh@2x.png deleted file mode 100644 index 309b6bd..0000000 Binary files a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/but_refresh@2x.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/compass.png ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/compass.png b/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/compass.png deleted file mode 100644 index 46a8901..0000000 Binary files a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/compass.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/compass@2x.png ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/compass@2x.png b/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/compass@2x.png deleted file mode 100644 index 46a8901..0000000 Binary files a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/compass@2x.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPluginCommand.h ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPluginCommand.h b/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPluginCommand.h deleted file mode 100644 index 6a23ab6..0000000 --- a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPluginCommand.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * - * Copyright 2013 Anis Kadri - * - * Licensed 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. - * -*/ - -// -// PhoneGap ! ChildBrowserCommand -// -// -// Created by Jesse MacFadyen on 10-05-29. -// Copyright 2010 Nitobi. All rights reserved. -// - -#import -#ifdef PHONEGAP_FRAMEWORK - #import -#else - #import "PGPlugin.h" -#endif -#import "ChildBrowserViewController.h" - - - -@interface ChildBrowserCommand : PGPlugin { - - ChildBrowserViewController* childBrowser; -} - -@property (nonatomic, retain) ChildBrowserViewController *childBrowser; - - -- (void) showWebPage:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options; --(void) onChildLocationChange:(NSString*)newLoc; - -@end http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPluginCommand.m ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPluginCommand.m b/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPluginCommand.m deleted file mode 100644 index 38aaf64..0000000 --- a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPluginCommand.m +++ /dev/null @@ -1,86 +0,0 @@ -// - -// -// -// Created by Jesse MacFadyen on 10-05-29. -// Copyright 2010 Nitobi. All rights reserved. -// Copyright (c) 2011, IBM Corporation -// Copyright 2011, Randy McMillan -// - -#import "ChildBrowserCommand.h" - -#ifdef PHONEGAP_FRAMEWORK - #import -#else - #import "PhoneGapViewController.h" -#endif - - -@implementation ChildBrowserCommand - -@synthesize childBrowser; - -- (void) showWebPage:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options // args: url -{ - - if(childBrowser == NULL) - { - childBrowser = [[ ChildBrowserViewController alloc ] initWithScale:FALSE ]; - childBrowser.delegate = self; - } - -/* // TODO: Work in progress - NSString* strOrientations = [ options objectForKey:@"supportedOrientations"]; - NSArray* supportedOrientations = [strOrientations componentsSeparatedByString:@","]; -*/ - PhoneGapViewController* cont = (PhoneGapViewController*)[ super appViewController ]; - childBrowser.supportedOrientations = cont.supportedOrientations; - - if ([cont respondsToSelector:@selector(presentViewController)]) { - //Reference UIViewController.h Line:179 for update to iOS 5 difference - @RandyMcMillan - [cont presentViewController:childBrowser animated:YES completion:nil]; - } else { - [ cont presentModalViewController:childBrowser animated:YES ]; - } - - NSString *url = (NSString*) [arguments objectAtIndex:0]; - - [childBrowser loadURL:url ]; - -} - --(void) close:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options // args: url -{ - [ childBrowser closeBrowser]; - -} - --(void) onClose -{ - NSString* jsCallback = [NSString stringWithFormat:@"ChildBrowser._onClose();",@""]; - [self.webView stringByEvaluatingJavaScriptFromString:jsCallback]; -} - --(void) onOpenInSafari -{ - NSString* jsCallback = [NSString stringWithFormat:@"ChildBrowser._onOpenExternal();",@""]; - [self.webView stringByEvaluatingJavaScriptFromString:jsCallback]; -} - - --(void) onChildLocationChange:(NSString*)newLoc -{ - - NSString* tempLoc = [NSString stringWithFormat:@"%@",newLoc]; - NSString* encUrl = [tempLoc stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; - - NSString* jsCallback = [NSString stringWithFormat:@"ChildBrowser._onLocationChange('%@');",encUrl]; - [self.webView stringByEvaluatingJavaScriptFromString:jsCallback]; - -} - - - - -@end http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.h ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.h b/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.h deleted file mode 100644 index d6fc139..0000000 --- a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * - * Copyright 2013 Anis Kadri - * - * Licensed 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. - * -*/ - -// -// ChildBrowserViewController.h -// -// Created by Jesse MacFadyen on 21/07/09. -// Copyright 2009 Nitobi. All rights reserved. -// - -#import - -@protocol ChildBrowserDelegate - - - -/* - * onChildLocationChanging:newLoc - * - * Discussion: - * Invoked when a new page has loaded - */ --(void) onChildLocationChange:(NSString*)newLoc; --(void) onOpenInSafari; --(void) onClose; -@end - - -@interface ChildBrowserViewController : UIViewController < UIWebViewDelegate > { - IBOutlet UIWebView* webView; - IBOutlet UIBarButtonItem* closeBtn; - IBOutlet UIBarButtonItem* refreshBtn; - IBOutlet UILabel* addressLabel; - IBOutlet UIBarButtonItem* backBtn; - IBOutlet UIBarButtonItem* fwdBtn; - IBOutlet UIBarButtonItem* safariBtn; - IBOutlet UIActivityIndicatorView* spinner; - BOOL scaleEnabled; - BOOL isImage; - NSString* imageURL; - NSArray* supportedOrientations; - id delegate; -} - -@property (nonatomic, retain)id delegate; -@property (nonatomic, retain) NSArray* supportedOrientations; -@property(retain) NSString* imageURL; -@property(assign) BOOL isImage; - -- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation; -- (ChildBrowserViewController*)initWithScale:(BOOL)enabled; -- (IBAction)onDoneButtonPress:(id)sender; -- (IBAction)onSafariButtonPress:(id)sender; -- (void)loadURL:(NSString*)url; --(void)closeBrowser; - -@end http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/eefdf68e/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.m ---------------------------------------------------------------------- diff --git a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.m b/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.m deleted file mode 100644 index 167ef98..0000000 --- a/cordova-lib/spec-plugman/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.m +++ /dev/null @@ -1,239 +0,0 @@ -// -// ChildBrowserViewController.m -// -// Created by Jesse MacFadyen on 21/07/09. -// Copyright 2009 Nitobi. All rights reserved. -// Copyright (c) 2011, IBM Corporation -// Copyright 2011, Randy McMillan -// - -#import "ChildBrowserViewController.h" - - -@implementation ChildBrowserViewController - -@synthesize imageURL; -@synthesize supportedOrientations; -@synthesize isImage; -@synthesize delegate; - -/* - // The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad. -- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { - if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) { - // Custom initialization - } - return self; -} -*/ - -+ (NSString*) resolveImageResource:(NSString*)resource -{ - NSString* systemVersion = [[UIDevice currentDevice] systemVersion]; - BOOL isLessThaniOS4 = ([systemVersion compare:@"4.0" options:NSNumericSearch] == NSOrderedAscending); - - // the iPad image (nor retina) differentiation code was not in 3.x, and we have to explicitly set the path - if (isLessThaniOS4) - { - return [NSString stringWithFormat:@"%@.png", resource]; - } - - return resource; -} - - -- (ChildBrowserViewController*)initWithScale:(BOOL)enabled -{ - self = [super init]; - - - scaleEnabled = enabled; - - return self; -} - -// Implement viewDidLoad to do additional setup after loading the view, typically from a nib. -- (void)viewDidLoad { - [super viewDidLoad]; - - refreshBtn.image = [UIImage imageNamed:[[self class] resolveImageResource:@"ChildBrowser.bundle/but_refresh"]]; - backBtn.image = [UIImage imageNamed:[[self class] resolveImageResource:@"ChildBrowser.bundle/arrow_left"]]; - fwdBtn.image = [UIImage imageNamed:[[self class] resolveImageResource:@"ChildBrowser.bundle/arrow_right"]]; - safariBtn.image = [UIImage imageNamed:[[self class] resolveImageResource:@"ChildBrowser.bundle/compass"]]; - - webView.delegate = self; - webView.scalesPageToFit = TRUE; - webView.backgroundColor = [UIColor whiteColor]; - NSLog(@"View did load"); -} - - - - - -- (void)didReceiveMemoryWarning { - // Releases the view if it doesn't have a superview. - [super didReceiveMemoryWarning]; - - // Release any cached data, images, etc that aren't in use. -} - -- (void)viewDidUnload { - // Release any retained subviews of the main view. - // e.g. self.myOutlet = nil; - NSLog(@"View did UN-load"); -} - - -- (void)dealloc { - - webView.delegate = nil; - - [webView release]; - [closeBtn release]; - [refreshBtn release]; - [addressLabel release]; - [backBtn release]; - [fwdBtn release]; - [safariBtn release]; - [spinner release]; - [ supportedOrientations release]; - [super dealloc]; -} - --(void)closeBrowser -{ - - if(delegate != NULL) - { - [delegate onClose]; - } - if ([self respondsToSelector:@selector(presentingViewController)]) { - //Reference UIViewController.h Line:179 for update to iOS 5 difference - @RandyMcMillan - [[self presentingViewController] dismissViewControllerAnimated:YES completion:nil]; - } else { - [[self parentViewController] dismissModalViewControllerAnimated:YES]; - } -} - --(IBAction) onDoneButtonPress:(id)sender -{ - [ self closeBrowser]; - - NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"about:blank"]]; - [webView loadRequest:request]; -} - - --(IBAction) onSafariButtonPress:(id)sender -{ - - if(delegate != NULL) - { - [delegate onOpenInSafari]; - } - - if(isImage) - { - NSURL* pURL = [[ [NSURL alloc] initWithString:imageURL ] autorelease]; - [ [ UIApplication sharedApplication ] openURL:pURL ]; - } - else - { - NSURLRequest *request = webView.request; - [[UIApplication sharedApplication] openURL:request.URL]; - } - - -} - -- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation -{ - BOOL autoRotate = [self.supportedOrientations count] > 1; // autorotate if only more than 1 orientation supported - if (autoRotate) - { - if ([self.supportedOrientations containsObject: - [NSNumber numberWithInt:interfaceOrientation]]) { - return YES; - } - } - - return NO; -} - - - - -- (void)loadURL:(NSString*)url -{ - NSLog(@"Opening Url : %@",url); - - if( [url hasSuffix:@".png" ] || - [url hasSuffix:@".jpg" ] || - [url hasSuffix:@".jpeg" ] || - [url hasSuffix:@".bmp" ] || - [url hasSuffix:@".gif" ] ) - { - [ imageURL release ]; - imageURL = [url copy]; - isImage = YES; - NSString* htmlText = @""; - htmlText = [ htmlText stringByReplacingOccurrencesOfString:@"IMGSRC" withString:url ]; - - [webView loadHTMLString:htmlText baseURL:[NSURL URLWithString:@""]]; - - } - else - { - imageURL = @""; - isImage = NO; - NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:url]]; - [webView loadRequest:request]; - } - webView.hidden = NO; -} - - -- (void)webViewDidStartLoad:(UIWebView *)sender { - addressLabel.text = @"Loading..."; - backBtn.enabled = webView.canGoBack; - fwdBtn.enabled = webView.canGoForward; - - [ spinner startAnimating ]; - -} - -- (void)webViewDidFinishLoad:(UIWebView *)sender -{ - NSURLRequest *request = webView.request; - NSLog(@"New Address is : %@",request.URL.absoluteString); - addressLabel.text = request.URL.absoluteString; - backBtn.enabled = webView.canGoBack; - fwdBtn.enabled = webView.canGoForward; - [ spinner stopAnimating ]; - - if(delegate != NULL) - { - [delegate onChildLocationChange:request.URL.absoluteString]; - } - -} - -- (void)webView:(UIWebView *)wv didFailLoadWithError:(NSError *)error { - NSLog (@"webView:didFailLoadWithError"); - [spinner stopAnimating]; - addressLabel.text = @"Failed"; - if (error != NULL) { - UIAlertView *errorAlert = [[UIAlertView alloc] - initWithTitle: [error localizedDescription] - message: [error localizedFailureReason] - delegate:nil - cancelButtonTitle:@"OK" - otherButtonTitles:nil]; - [errorAlert show]; - [errorAlert release]; - } -} - - -@end