Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 711D1200C23 for ; Wed, 22 Feb 2017 20:24:44 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6FAE6160B90; Wed, 22 Feb 2017 19:24:44 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 55131160B49 for ; Wed, 22 Feb 2017 20:24:42 +0100 (CET) Received: (qmail 26914 invoked by uid 500); 22 Feb 2017 19:24:41 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 26865 invoked by uid 99); 22 Feb 2017 19:24:41 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2017 19:24:41 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 45ABADFF12; Wed, 22 Feb 2017 19:24:41 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: shazron@apache.org To: commits@cordova.apache.org Date: Wed, 22 Feb 2017 19:24:42 -0000 Message-Id: <72b33288c6bc4df9a1606d8cbbb83101@git.apache.org> In-Reply-To: <0b69c1a68db240d98ce5f34215be99bf@git.apache.org> References: <0b69c1a68db240d98ce5f34215be99bf@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [02/27] cordova-plugins git commit: Removed plugins other than notification-rebroadcast, moved plugin to root archived-at: Wed, 22 Feb 2017 19:24:44 -0000 http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/034-GET.request ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/034-GET.request b/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/034-GET.request deleted file mode 100755 index 42bc027..0000000 --- a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/034-GET.request +++ /dev/null @@ -1,11 +0,0 @@ -GET /list?path=%2F HTTP/1.1 -Host: localhost:8080 -Connection: keep-alive -Accept: application/json, text/javascript, */*; q=0.01 -X-Requested-With: XMLHttpRequest -User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 -DNT: 1 -Referer: http://localhost:8080/ -Accept-Encoding: gzip,deflate,sdch -Accept-Language: en-US,en;q=0.8,fr;q=0.6 - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/035-200.response ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/035-200.response b/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/035-200.response deleted file mode 100755 index 7d970e7..0000000 --- a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/035-200.response +++ /dev/null @@ -1,9 +0,0 @@ -HTTP/1.1 200 OK -Cache-Control: no-cache -Content-Length: 171 -Content-Type: application/json -Connection: Close -Server: GCDWebUploader -Date: Sat, 12 Apr 2014 05:37:29 GMT - -[{"path":"\/images\/capable_green_ipad_l.png","name":"capable_green_ipad_l.png","size":116066},{"path":"\/images\/hero_mba_11.jpg","name":"hero_mba_11.jpg","size":106799}] \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/035-GET.request ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/035-GET.request b/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/035-GET.request deleted file mode 100755 index 991cf51..0000000 --- a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/035-GET.request +++ /dev/null @@ -1,11 +0,0 @@ -GET /list?path=%2Fimages%2F HTTP/1.1 -Host: localhost:8080 -Connection: keep-alive -Accept: application/json, text/javascript, */*; q=0.01 -X-Requested-With: XMLHttpRequest -User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 -DNT: 1 -Referer: http://localhost:8080/ -Accept-Encoding: gzip,deflate,sdch -Accept-Language: en-US,en;q=0.8,fr;q=0.6 - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/036-200.response ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/036-200.response b/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/036-200.response deleted file mode 100755 index 7af382a..0000000 --- a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/036-200.response +++ /dev/null @@ -1,9 +0,0 @@ -HTTP/1.1 200 OK -Cache-Control: no-cache -Content-Length: 2 -Content-Type: application/json -Connection: Close -Server: GCDWebUploader -Date: Sat, 12 Apr 2014 05:37:32 GMT - -{} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/036-POST.request ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/036-POST.request b/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/036-POST.request deleted file mode 100755 index e496ce0..0000000 --- a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/036-POST.request +++ /dev/null @@ -1,15 +0,0 @@ -POST /delete HTTP/1.1 -Host: localhost:8080 -Connection: keep-alive -Content-Length: 41 -Accept: application/json, text/javascript, */*; q=0.01 -Origin: http://localhost:8080 -X-Requested-With: XMLHttpRequest -User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 -Content-Type: application/x-www-form-urlencoded; charset=UTF-8 -DNT: 1 -Referer: http://localhost:8080/ -Accept-Encoding: gzip,deflate,sdch -Accept-Language: en-US,en;q=0.8,fr;q=0.6 - -path=%2Fimages%2Fcapable_green_ipad_l.png \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/037-200.response ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/037-200.response b/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/037-200.response deleted file mode 100755 index 305cf2e..0000000 --- a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/037-200.response +++ /dev/null @@ -1,9 +0,0 @@ -HTTP/1.1 200 OK -Cache-Control: no-cache -Content-Length: 77 -Content-Type: application/json -Connection: Close -Server: GCDWebUploader -Date: Sat, 12 Apr 2014 05:37:32 GMT - -[{"path":"\/images\/hero_mba_11.jpg","name":"hero_mba_11.jpg","size":106799}] \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/037-GET.request ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/037-GET.request b/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/037-GET.request deleted file mode 100755 index 991cf51..0000000 --- a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/037-GET.request +++ /dev/null @@ -1,11 +0,0 @@ -GET /list?path=%2Fimages%2F HTTP/1.1 -Host: localhost:8080 -Connection: keep-alive -Accept: application/json, text/javascript, */*; q=0.01 -X-Requested-With: XMLHttpRequest -User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 -DNT: 1 -Referer: http://localhost:8080/ -Accept-Encoding: gzip,deflate,sdch -Accept-Language: en-US,en;q=0.8,fr;q=0.6 - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/038-200.response ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/038-200.response b/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/038-200.response deleted file mode 100755 index 2ef2a18..0000000 --- a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/038-200.response +++ /dev/null @@ -1,9 +0,0 @@ -HTTP/1.1 200 OK -Cache-Control: no-cache -Content-Length: 2 -Content-Type: application/json -Connection: Close -Server: GCDWebUploader -Date: Sat, 12 Apr 2014 05:37:43 GMT - -{} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/038-POST.request ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/038-POST.request b/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/038-POST.request deleted file mode 100755 index a27ab4c..0000000 --- a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/038-POST.request +++ /dev/null @@ -1,25 +0,0 @@ -POST /upload HTTP/1.1 -Host: localhost:8080 -Connection: keep-alive -Content-Length: 310 -Accept: application/json, text/javascript, */*; q=0.01 -Origin: http://localhost:8080 -X-Requested-With: XMLHttpRequest -User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 -Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryBafwo3u3oLFJ8XeG -DNT: 1 -Referer: http://localhost:8080/ -Accept-Encoding: gzip,deflate,sdch -Accept-Language: en-US,en;q=0.8,fr;q=0.6 - -------WebKitFormBoundaryBafwo3u3oLFJ8XeG -Content-Disposition: form-data; name="path" - -/images/ -------WebKitFormBoundaryBafwo3u3oLFJ8XeG -Content-Disposition: form-data; name="files[]"; filename="Test File.txt" -Content-Type: text/plain - -Nothing to see here! - -------WebKitFormBoundaryBafwo3u3oLFJ8XeG-- http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/039-200.response ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/039-200.response b/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/039-200.response deleted file mode 100755 index 5263fd7..0000000 --- a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/039-200.response +++ /dev/null @@ -1,9 +0,0 @@ -HTTP/1.1 200 OK -Cache-Control: no-cache -Content-Length: 145 -Content-Type: application/json -Connection: Close -Server: GCDWebUploader -Date: Sat, 12 Apr 2014 05:37:43 GMT - -[{"path":"\/images\/hero_mba_11.jpg","name":"hero_mba_11.jpg","size":106799},{"path":"\/images\/Test File.txt","name":"Test File.txt","size":21}] \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/039-GET.request ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/039-GET.request b/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/039-GET.request deleted file mode 100755 index 991cf51..0000000 --- a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/039-GET.request +++ /dev/null @@ -1,11 +0,0 @@ -GET /list?path=%2Fimages%2F HTTP/1.1 -Host: localhost:8080 -Connection: keep-alive -Accept: application/json, text/javascript, */*; q=0.01 -X-Requested-With: XMLHttpRequest -User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 -DNT: 1 -Referer: http://localhost:8080/ -Accept-Encoding: gzip,deflate,sdch -Accept-Language: en-US,en;q=0.8,fr;q=0.6 - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/040-200.response ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/040-200.response b/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/040-200.response deleted file mode 100755 index ab12db8..0000000 --- a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/040-200.response +++ /dev/null @@ -1,9 +0,0 @@ -HTTP/1.1 200 OK -Cache-Control: no-cache -Content-Length: 91 -Content-Type: application/json -Connection: Close -Server: GCDWebUploader -Date: Sat, 12 Apr 2014 05:37:48 GMT - -[{"path":"\/Apple Reports\/","name":"Apple Reports"},{"path":"\/images\/","name":"images"}] \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/040-GET.request ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/040-GET.request b/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/040-GET.request deleted file mode 100755 index 42bc027..0000000 --- a/local-webserver/src/ios/GCDWebServer/Tests/WebUploader/040-GET.request +++ /dev/null @@ -1,11 +0,0 @@ -GET /list?path=%2F HTTP/1.1 -Host: localhost:8080 -Connection: keep-alive -Accept: application/json, text/javascript, */*; q=0.01 -X-Requested-With: XMLHttpRequest -User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 -DNT: 1 -Referer: http://localhost:8080/ -Accept-Encoding: gzip,deflate,sdch -Accept-Language: en-US,en;q=0.8,fr;q=0.6 - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/iOS/AppDelegate.h ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/iOS/AppDelegate.h b/local-webserver/src/ios/GCDWebServer/iOS/AppDelegate.h deleted file mode 100644 index 8b0876f..0000000 --- a/local-webserver/src/ios/GCDWebServer/iOS/AppDelegate.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - Copyright (c) 2012-2015, Pierre-Olivier Latour - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * The name of Pierre-Olivier Latour may not be used to endorse - or promote products derived from this software without specific - prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL PIERRE-OLIVIER LATOUR BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import - -@interface AppDelegate : UIResponder -@property(strong, nonatomic) UIWindow* window; -@end http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/iOS/AppDelegate.m ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/iOS/AppDelegate.m b/local-webserver/src/ios/GCDWebServer/iOS/AppDelegate.m deleted file mode 100644 index bfd0518..0000000 --- a/local-webserver/src/ios/GCDWebServer/iOS/AppDelegate.m +++ /dev/null @@ -1,36 +0,0 @@ -/* - Copyright (c) 2012-2015, Pierre-Olivier Latour - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * The name of Pierre-Olivier Latour may not be used to endorse - or promote products derived from this software without specific - prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL PIERRE-OLIVIER LATOUR BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import "AppDelegate.h" - -@implementation AppDelegate - -- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { - return YES; -} - -@end http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/local-webserver/src/ios/GCDWebServer/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 36d2c80..0000000 --- a/local-webserver/src/ios/GCDWebServer/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "3x" - }, - { - "idiom" : "ipad", - "size" : "29x29", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "40x40", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "76x76", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "76x76", - "scale" : "2x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/iOS/Base.lproj/LaunchScreen.storyboard ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/iOS/Base.lproj/LaunchScreen.storyboard b/local-webserver/src/ios/GCDWebServer/iOS/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index 8158318..0000000 --- a/local-webserver/src/ios/GCDWebServer/iOS/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/iOS/Base.lproj/Main.storyboard ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/iOS/Base.lproj/Main.storyboard b/local-webserver/src/ios/GCDWebServer/iOS/Base.lproj/Main.storyboard deleted file mode 100644 index ad3b119..0000000 --- a/local-webserver/src/ios/GCDWebServer/iOS/Base.lproj/Main.storyboard +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/iOS/Info.plist ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/iOS/Info.plist b/local-webserver/src/ios/GCDWebServer/iOS/Info.plist deleted file mode 100644 index 1f083fb..0000000 --- a/local-webserver/src/ios/GCDWebServer/iOS/Info.plist +++ /dev/null @@ -1,45 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - net.pol-online.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/iOS/ViewController.h ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/iOS/ViewController.h b/local-webserver/src/ios/GCDWebServer/iOS/ViewController.h deleted file mode 100644 index 5400bd5..0000000 --- a/local-webserver/src/ios/GCDWebServer/iOS/ViewController.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - Copyright (c) 2012-2015, Pierre-Olivier Latour - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * The name of Pierre-Olivier Latour may not be used to endorse - or promote products derived from this software without specific - prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL PIERRE-OLIVIER LATOUR BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import - -@interface ViewController : UIViewController -@end http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/iOS/ViewController.m ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/iOS/ViewController.m b/local-webserver/src/ios/GCDWebServer/iOS/ViewController.m deleted file mode 100644 index 2f7d79d..0000000 --- a/local-webserver/src/ios/GCDWebServer/iOS/ViewController.m +++ /dev/null @@ -1,77 +0,0 @@ -/* - Copyright (c) 2012-2015, Pierre-Olivier Latour - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * The name of Pierre-Olivier Latour may not be used to endorse - or promote products derived from this software without specific - prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL PIERRE-OLIVIER LATOUR BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import "ViewController.h" -#import "GCDWebUploader.h" - -@interface ViewController () -@property(weak, nonatomic) IBOutlet UILabel* label; -@end - -@implementation ViewController { -@private - GCDWebUploader* _webServer; -} - -- (void)viewWillAppear:(BOOL)animated { - [super viewWillAppear:animated]; - - NSString* documentsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject]; - _webServer = [[GCDWebUploader alloc] initWithUploadDirectory:documentsPath]; - _webServer.delegate = self; - _webServer.allowHiddenItems = YES; - if ([_webServer start]) { - _label.text = [NSString stringWithFormat:NSLocalizedString(@"GCDWebServer running locally on port %i", nil), (int)_webServer.port]; - } else { - _label.text = NSLocalizedString(@"GCDWebServer not running!", nil); - } -} - -- (void)viewDidDisappear:(BOOL)animated { - [super viewDidDisappear:animated]; - - [_webServer stop]; - _webServer = nil; -} - -- (void)webUploader:(GCDWebUploader*)uploader didUploadFileAtPath:(NSString*)path { - NSLog(@"[UPLOAD] %@", path); -} - -- (void)webUploader:(GCDWebUploader*)uploader didMoveItemFromPath:(NSString*)fromPath toPath:(NSString*)toPath { - NSLog(@"[MOVE] %@ -> %@", fromPath, toPath); -} - -- (void)webUploader:(GCDWebUploader*)uploader didDeleteItemAtPath:(NSString*)path { - NSLog(@"[DELETE] %@", path); -} - -- (void)webUploader:(GCDWebUploader*)uploader didCreateDirectoryAtPath:(NSString*)path { - NSLog(@"[CREATE] %@", path); -} - -@end http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/iOS/main.m ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/iOS/main.m b/local-webserver/src/ios/GCDWebServer/iOS/main.m deleted file mode 100644 index bd96dd5..0000000 --- a/local-webserver/src/ios/GCDWebServer/iOS/main.m +++ /dev/null @@ -1,34 +0,0 @@ -/* - Copyright (c) 2012-2015, Pierre-Olivier Latour - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * The name of Pierre-Olivier Latour may not be used to endorse - or promote products derived from this software without specific - prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL PIERRE-OLIVIER LATOUR BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import "AppDelegate.h" - -int main(int argc, char* argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/AppDelegate.h ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/AppDelegate.h b/local-webserver/src/ios/GCDWebServer/tvOS/AppDelegate.h deleted file mode 100644 index 8b0876f..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/AppDelegate.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - Copyright (c) 2012-2015, Pierre-Olivier Latour - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * The name of Pierre-Olivier Latour may not be used to endorse - or promote products derived from this software without specific - prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL PIERRE-OLIVIER LATOUR BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import - -@interface AppDelegate : UIResponder -@property(strong, nonatomic) UIWindow* window; -@end http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/AppDelegate.m ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/AppDelegate.m b/local-webserver/src/ios/GCDWebServer/tvOS/AppDelegate.m deleted file mode 100644 index bfd0518..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/AppDelegate.m +++ /dev/null @@ -1,36 +0,0 @@ -/* - Copyright (c) 2012-2015, Pierre-Olivier Latour - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * The name of Pierre-Olivier Latour may not be used to endorse - or promote products derived from this software without specific - prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL PIERRE-OLIVIER LATOUR BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import "AppDelegate.h" - -@implementation AppDelegate - -- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { - return YES; -} - -@end http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 0564959..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json b/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json b/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json deleted file mode 100644 index 8bf75d9..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "layers" : [ - { - "filename" : "Front.imagestacklayer" - }, - { - "filename" : "Middle.imagestacklayer" - }, - { - "filename" : "Back.imagestacklayer" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 0564959..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json b/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 0564959..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json b/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 0564959..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json b/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json b/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json deleted file mode 100644 index 8bf75d9..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "layers" : [ - { - "filename" : "Front.imagestacklayer" - }, - { - "filename" : "Middle.imagestacklayer" - }, - { - "filename" : "Back.imagestacklayer" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 0564959..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json b/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json deleted file mode 100644 index 0564959..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json b/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json b/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json deleted file mode 100644 index 6a3dcfa..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "assets" : [ - { - "size" : "1280x768", - "idiom" : "tv", - "filename" : "App Icon - Large.imagestack", - "role" : "primary-app-icon" - }, - { - "size" : "400x240", - "idiom" : "tv", - "filename" : "App Icon - Small.imagestack", - "role" : "primary-app-icon" - }, - { - "size" : "1920x720", - "idiom" : "tv", - "filename" : "Top Shelf Image.imageset", - "role" : "top-shelf-image" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json b/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json deleted file mode 100644 index 0564959..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "images" : [ - { - "idiom" : "tv", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/Contents.json b/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/LaunchImage.launchimage/Contents.json ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/LaunchImage.launchimage/Contents.json b/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/LaunchImage.launchimage/Contents.json deleted file mode 100644 index 29d94c7..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Assets.xcassets/LaunchImage.launchimage/Contents.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "images" : [ - { - "orientation" : "landscape", - "idiom" : "tv", - "extent" : "full-screen", - "minimum-system-version" : "9.0", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Base.lproj/Main.storyboard ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Base.lproj/Main.storyboard b/local-webserver/src/ios/GCDWebServer/tvOS/Base.lproj/Main.storyboard deleted file mode 100644 index e0010f2..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Base.lproj/Main.storyboard +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/Info.plist ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/Info.plist b/local-webserver/src/ios/GCDWebServer/tvOS/Info.plist deleted file mode 100644 index f0b6e5e..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/Info.plist +++ /dev/null @@ -1,30 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - net.pol-online.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - arm64 - - - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/ViewController.h ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/ViewController.h b/local-webserver/src/ios/GCDWebServer/tvOS/ViewController.h deleted file mode 100644 index 5400bd5..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/ViewController.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - Copyright (c) 2012-2015, Pierre-Olivier Latour - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * The name of Pierre-Olivier Latour may not be used to endorse - or promote products derived from this software without specific - prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL PIERRE-OLIVIER LATOUR BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import - -@interface ViewController : UIViewController -@end http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/ViewController.m ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/ViewController.m b/local-webserver/src/ios/GCDWebServer/tvOS/ViewController.m deleted file mode 100644 index 2f7d79d..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/ViewController.m +++ /dev/null @@ -1,77 +0,0 @@ -/* - Copyright (c) 2012-2015, Pierre-Olivier Latour - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * The name of Pierre-Olivier Latour may not be used to endorse - or promote products derived from this software without specific - prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL PIERRE-OLIVIER LATOUR BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import "ViewController.h" -#import "GCDWebUploader.h" - -@interface ViewController () -@property(weak, nonatomic) IBOutlet UILabel* label; -@end - -@implementation ViewController { -@private - GCDWebUploader* _webServer; -} - -- (void)viewWillAppear:(BOOL)animated { - [super viewWillAppear:animated]; - - NSString* documentsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject]; - _webServer = [[GCDWebUploader alloc] initWithUploadDirectory:documentsPath]; - _webServer.delegate = self; - _webServer.allowHiddenItems = YES; - if ([_webServer start]) { - _label.text = [NSString stringWithFormat:NSLocalizedString(@"GCDWebServer running locally on port %i", nil), (int)_webServer.port]; - } else { - _label.text = NSLocalizedString(@"GCDWebServer not running!", nil); - } -} - -- (void)viewDidDisappear:(BOOL)animated { - [super viewDidDisappear:animated]; - - [_webServer stop]; - _webServer = nil; -} - -- (void)webUploader:(GCDWebUploader*)uploader didUploadFileAtPath:(NSString*)path { - NSLog(@"[UPLOAD] %@", path); -} - -- (void)webUploader:(GCDWebUploader*)uploader didMoveItemFromPath:(NSString*)fromPath toPath:(NSString*)toPath { - NSLog(@"[MOVE] %@ -> %@", fromPath, toPath); -} - -- (void)webUploader:(GCDWebUploader*)uploader didDeleteItemAtPath:(NSString*)path { - NSLog(@"[DELETE] %@", path); -} - -- (void)webUploader:(GCDWebUploader*)uploader didCreateDirectoryAtPath:(NSString*)path { - NSLog(@"[CREATE] %@", path); -} - -@end http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/local-webserver/src/ios/GCDWebServer/tvOS/main.m ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/GCDWebServer/tvOS/main.m b/local-webserver/src/ios/GCDWebServer/tvOS/main.m deleted file mode 100644 index bd96dd5..0000000 --- a/local-webserver/src/ios/GCDWebServer/tvOS/main.m +++ /dev/null @@ -1,34 +0,0 @@ -/* - Copyright (c) 2012-2015, Pierre-Olivier Latour - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - * The name of Pierre-Olivier Latour may not be used to endorse - or promote products derived from this software without specific - prior written permission. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL PIERRE-OLIVIER LATOUR BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#import "AppDelegate.h" - -int main(int argc, char* argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/notification-rebroadcast/README.md ---------------------------------------------------------------------- diff --git a/notification-rebroadcast/README.md b/notification-rebroadcast/README.md deleted file mode 100644 index 51f6a19..0000000 --- a/notification-rebroadcast/README.md +++ /dev/null @@ -1,58 +0,0 @@ -Cordova Notification Rebroadcast Plugin -====== - -See [CB-8475](https://issues.apache.org/jira/browse/CB-8475). This plugin rebroadcasts remote push notifications as well as local notifications to other plugins. - -This plugin currently needs to use the `4.0.x` branch of `cordova-ios`. - -To `alpha test` this: - -You may have to remove the cached 4.0.x platform: - - rm -rf ~/.cordova/lib/ios/cordova/4.0.x - -Then: - - cordova create nrtest my.project.id nrtest - cd nrtest - cordova platform add ios@4.0.x --usegit - cordova plugin add https://github.com/apache/cordova-plugins.git#master:notification-rebroadcast - -Document Events ------------ - -Listen for these 3 types of document events in JavaScript: - -1. CDVLocalNotification - - data is a JSON object of the UILocalNotification details - -2. CDVRemoteNotification - - data is a JSON object containing one key, "token" which is the push device token - -3. CDVRemoteNotificationError - - data is a JSON object containing one key, "error", which is the localized error message - -Usage -===== - - document.addEventListener('CDVLocalNotification', function(event) { console.log(event.data); }); - document.addEventListener('CDVRemoteNotification', function(event) { console.log(event.data.token); }); - document.addEventListener('CDVRemoteNotificationError', function(event) { console.log(event.data.error); }); - -Permissions ------------ - -#### config.xml - - - - - - -Supported Platforms -------------------- - -- iOS http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/notification-rebroadcast/plugin.xml ---------------------------------------------------------------------- diff --git a/notification-rebroadcast/plugin.xml b/notification-rebroadcast/plugin.xml deleted file mode 100644 index 388efee..0000000 --- a/notification-rebroadcast/plugin.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - Cordova Notification Rebroadcast Plugin - rebroadcasts local and remote notifications to other plugins, and as events in JavaScript - Apache 2.0 - cordova,local,remote,push,notifications - https://git-wip-us.apache.org/repos/asf/cordova-plugins.git - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/notification-rebroadcast/src/ios/CDVNotificationRebroadcast.h ---------------------------------------------------------------------- diff --git a/notification-rebroadcast/src/ios/CDVNotificationRebroadcast.h b/notification-rebroadcast/src/ios/CDVNotificationRebroadcast.h deleted file mode 100644 index 9fe278d..0000000 --- a/notification-rebroadcast/src/ios/CDVNotificationRebroadcast.h +++ /dev/null @@ -1,34 +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 - -@interface CDVAppDelegate (SwizzledMethods) - -- (void) cdv_notification_rebroadcastApplication:(UIApplication*)application didReceiveLocalNotification:(UILocalNotification*)notification; - -- (void) cdv_notification_rebroadcastApplication:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken; - -- (void) cdv_notification_rebroadcastApplication:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error; - -@end - -@interface CDVNotificationRebroadcast : CDVPlugin - -@end http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/notification-rebroadcast/src/ios/CDVNotificationRebroadcast.m ---------------------------------------------------------------------- diff --git a/notification-rebroadcast/src/ios/CDVNotificationRebroadcast.m b/notification-rebroadcast/src/ios/CDVNotificationRebroadcast.m deleted file mode 100644 index b8aae30..0000000 --- a/notification-rebroadcast/src/ios/CDVNotificationRebroadcast.m +++ /dev/null @@ -1,225 +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 "CDVNotificationRebroadcast.h" -#import - -#pragma mark Global Methods - -// Return a NSArray containing all subclasses of a Class -NSArray* ClassGetSubclasses(Class parentClass) -{ - int numClasses = objc_getClassList(nil, 0); - Class* classes = nil; - - classes = (Class*)malloc(sizeof(Class) * numClasses); - numClasses = objc_getClassList(classes, numClasses); - - NSMutableArray* result = [NSMutableArray array]; - for (NSInteger i = 0; i < numClasses; i++) { - - Class superClass = classes[i]; - do { - superClass = class_getSuperclass(superClass); - } - while(superClass && superClass != parentClass); - - if (superClass == nil) { - continue; - } - - [result addObject:classes[i]]; - } - - free(classes); - - return result; -} - -// Replace or Exchange method implementations -// Return YES if method was exchanged, NO if replaced -BOOL MethodSwizzle(Class clazz, SEL originalSelector, SEL overrideSelector) -{ - Method originalMethod = class_getInstanceMethod(clazz, originalSelector); - Method overrideMethod = class_getInstanceMethod(clazz, overrideSelector); - - // try to add, if it does not exist, replace - if (class_addMethod(clazz, originalSelector, method_getImplementation(overrideMethod), method_getTypeEncoding(overrideMethod))) { - class_replaceMethod(clazz, overrideSelector, method_getImplementation(originalMethod), method_getTypeEncoding(originalMethod)); - } - // add failed, so we exchange - else { - method_exchangeImplementations(originalMethod, overrideMethod); - return YES; - } - - return NO; -} - -// Helper to return the Class to swizzle -// We need to swizzle the subclass (if available) of CDVAppDelegate -Class ClassToSwizzle() { - Class clazz = [CDVAppDelegate class]; - - NSArray* subClazz = ClassGetSubclasses(clazz); - if ([subClazz count] > 0) { - clazz = [subClazz objectAtIndex:0]; - } - - return clazz; -} - -#pragma mark Global Variables - -static BOOL cdvLocalNotifSelExchanged = NO; -static BOOL cdvRemoteNotifSelExchanged = NO; -static BOOL cdvRemoteNotifErrorSelExchanged = NO; - -#pragma mark CDVAppDelegate (SwizzledMethods) - -@implementation CDVAppDelegate (SwizzledMethods) - -+ (void)load -{ - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - Class clazz = ClassToSwizzle(); - - cdvLocalNotifSelExchanged = MethodSwizzle(clazz, @selector(application:didReceiveLocalNotification:), @selector(cdv_notification_rebroadcastApplication:didReceiveLocalNotification:)); - cdvRemoteNotifSelExchanged = MethodSwizzle(clazz, @selector(application:didRegisterForRemoteNotificationsWithDeviceToken:), @selector(cdv_notification_rebroadcastApplication:didRegisterForRemoteNotificationsWithDeviceToken:)); - cdvRemoteNotifErrorSelExchanged = MethodSwizzle(clazz, @selector(application:didFailToRegisterForRemoteNotificationsWithError:), @selector(cdv_notification_rebroadcastApplication:didFailToRegisterForRemoteNotificationsWithError:)); - }); -} - -- (void) cdv_notification_rebroadcastApplication:(UIApplication*)application didReceiveLocalNotification:(UILocalNotification*)notification -{ - // re-post ( broadcast ) - [[NSNotificationCenter defaultCenter] postNotificationName:CDVLocalNotification object:notification]; - - // if method was exchanged through method_exchangeImplementations, we call ourselves (no, it's not a recursion) - if (cdvLocalNotifSelExchanged) { - [self cdv_notification_rebroadcastApplication:application didReceiveLocalNotification:notification]; - } -} - -- (void) cdv_notification_rebroadcastApplication:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken; -{ - // re-post ( broadcast ) - NSString* token = [[[[deviceToken description] - stringByReplacingOccurrencesOfString:@"<" withString:@""] - stringByReplacingOccurrencesOfString:@">" withString:@""] - stringByReplacingOccurrencesOfString:@" " withString:@""]; - - [[NSNotificationCenter defaultCenter] postNotificationName:CDVRemoteNotification object:token]; - - // if method was exchanged through method_exchangeImplementations, we call ourselves (no, it's not a recursion) - if (cdvRemoteNotifSelExchanged) { - [self cdv_notification_rebroadcastApplication:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken]; - } -} - -- (void) cdv_notification_rebroadcastApplication:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error; -{ - // re-post ( broadcast ) - [[NSNotificationCenter defaultCenter] postNotificationName:CDVRemoteNotificationError object:error]; - - // if method was exchanged through method_exchangeImplementations, we call ourselves (no, it's not a recursion) - if (cdvRemoteNotifErrorSelExchanged) { - [self cdv_notification_rebroadcastApplication:application didFailToRegisterForRemoteNotificationsWithError:error]; - } -} - -@end - -#pragma mark UILocalNotification (JSONString) - -@implementation UILocalNotification (JSONString) - -- (NSString*) cdv_notification_rebroadcastJSONString -{ - NSMutableDictionary* dict = [NSMutableDictionary dictionary]; - - if ([self alertAction]) { - [dict setValue:[self alertAction] forKey:@"alertAction"]; - } - if ([self alertBody]) { - [dict setValue:[self alertBody] forKey:@"alertBody"]; - } - if ([self alertLaunchImage]) { - [dict setValue:[self alertLaunchImage] forKey:@"alertLaunchImage"]; - } - if ([self alertTitle]) { - [dict setValue:[self alertTitle] forKey:@"alertTitle"]; - } - if ([self userInfo]) { - [dict setValue:[self userInfo] forKey:@"userInfo"]; - } - - NSError* error = nil; - NSData* jsonData = [NSJSONSerialization dataWithJSONObject:dict options:0 error:&error]; - NSString* val = nil; - - if (error == nil) { - val = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]; - } - - return val; -} - -@end - -#pragma mark CDVNotificationRebroadcast Plugin - -@implementation CDVNotificationRebroadcast : CDVPlugin - - -- (void)pluginInitialize -{ - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onLocalNotification:) name:CDVLocalNotification object:nil]; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onRemoteNotification:) name:CDVRemoteNotification object:nil]; - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onRemoteNotificationError:) name:CDVRemoteNotificationError object:nil]; -} - - - (void)onLocalNotification:(NSNotification*)notification -{ - UILocalNotification* localNotification = notification.object; - NSString* jsString = [NSString stringWithFormat:@"cordova.fireDocumentEvent('CDVLocalNotification', %@);", [localNotification cdv_notification_rebroadcastJSONString]]; - - [self.commandDelegate evalJs:jsString]; -} - -- (void)onRemoteNotification:(NSNotification*)notification -{ - NSString* token = notification.object; - NSString* jsString = [NSString stringWithFormat:@"cordova.fireDocumentEvent('CDVRemoteNotification', { 'token': '%@'});", token]; - - [self.commandDelegate evalJs:jsString]; -} - -- (void)onRemoteNotificationError:(NSNotification*)notification -{ - NSError* error = notification.object; - NSString* desc = [error localizedDescription]; - NSString* jsString = [NSString stringWithFormat:@"cordova.fireDocumentEvent('CDVRemoteNotificationError', { 'error': '%@'});", desc]; - - [self.commandDelegate evalJs:jsString]; -} - - -@end http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/notification/README.md ---------------------------------------------------------------------- diff --git a/notification/README.md b/notification/README.md deleted file mode 100644 index a52d36f..0000000 --- a/notification/README.md +++ /dev/null @@ -1,2 +0,0 @@ -Notification -===== http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/notification/doc/index.md ---------------------------------------------------------------------- diff --git a/notification/doc/index.md b/notification/doc/index.md deleted file mode 100644 index 4287004..0000000 --- a/notification/doc/index.md +++ /dev/null @@ -1,76 +0,0 @@ - - -# org.apache.cordova.labs.notification - -This plugin is used to configure and display desktop notifications to the user. -It's usage for the user should - -## Objects - -- Notification -- NotificationError - - -## Contructor - - var notification = new Notification(title, options, successCallback, errorCallback) - -The `title` parameter is the title that must be shown within the notification - -The `options` parameter is optional. It is an object that allows to configure -the notification. It can have the following properties: - -- dir : The direction of the notification; it can be auto, ltr, or rtl -- lang: Specify the lang used within the notification. This string must be a valid BCP 47 language tag. -- body: A string representing an extra content to display within the notification -- tag: An ID for a given notification that allows to retrieve, replace or remove it if necessary -- icon: The URL of an image to be used as an icon by the notification - -## Instance methods - -- Notification.close - -Notification inherits from EventTarget - -- Notification.addEventListener -- Notification.removeEventListener -- Notification.dispatchEvent - -## Example - - var notification = new Notification('Hi There!'); - -One can also use success callback: - - var options = {}; - function successCallback(notification) { - // notification is instantiated here - }; - new Notification('Hi There!', options, successCallback); - -## Events - -One can listen to following events: - -- close : displatched when a notification is closed (either from within the app or by closing the notification in the system -- click -- show : dispatched right after a notification is visible -- error - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/819a3ed7/notification/plugin.xml ---------------------------------------------------------------------- diff --git a/notification/plugin.xml b/notification/plugin.xml deleted file mode 100644 index 650da2c..0000000 --- a/notification/plugin.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - Notification - Cordova Notification Plugin - Apache 2.0 - cordova,notification - - - - - - - - - - - - - - - - - - - - - - - - --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org