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 B3E42200C23 for ; Wed, 22 Feb 2017 20:22:15 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B27BF160B49; Wed, 22 Feb 2017 19:22:15 +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 86675160B90 for ; Wed, 22 Feb 2017 20:22:12 +0100 (CET) Received: (qmail 10316 invoked by uid 500); 22 Feb 2017 19:22:11 -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 8720 invoked by uid 99); 22 Feb 2017 19:22:10 -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:22:10 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id ECC56DFF5E; Wed, 22 Feb 2017 19:22:09 +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:22:34 -0000 Message-Id: <63e9488fff5e4768a0429aacbd5e0e9c@git.apache.org> In-Reply-To: <7964b2848b6747b89d8238566eed1049@git.apache.org> References: <7964b2848b6747b89d8238566eed1049@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [26/27] cordova-plugins git commit: Removed plugins other than keyboard moved plugin to root archived-at: Wed, 22 Feb 2017 19:22:15 -0000 http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/project.pbxproj ---------------------------------------------------------------------- diff --git a/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/project.pbxproj b/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/project.pbxproj deleted file mode 100644 index e3dc61d..0000000 --- a/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/project.pbxproj +++ /dev/null @@ -1,499 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 7E9F51AB19DA10AE00DA31AC /* __PROJECT_NAME__.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E9F51A919DA10AE00DA31AC /* __PROJECT_NAME__.m */; }; - 7E9F51B119DA114400DA31AC /* __PROJECT_NAME__Test.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E9F51B019DA114400DA31AC /* __PROJECT_NAME__Test.m */; }; - 7E9F51B319DA116500DA31AC /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E9F51B219DA116500DA31AC /* Foundation.framework */; }; - 7E9F51B519DA127E00DA31AC /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E9F51B419DA127E00DA31AC /* UIKit.framework */; }; - 7E9F51B919DA1B1600DA31AC /* lib__PROJECT_NAME__Lib.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E9F519519DA102000DA31AC /* lib__PROJECT_NAME__Lib.a */; }; - 7E9F51BA19DA1B2000DA31AC /* libCordova.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E9F519019DA0F8300DA31AC /* libCordova.a */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 7E9F518F19DA0F8300DA31AC /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 7E9F518B19DA0F8300DA31AC /* CordovaLib.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 68A32D7114102E1C006B237C; - remoteInfo = CordovaLib; - }; - 7E9F51AC19DA10DE00DA31AC /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 7E9F517219DA09CE00DA31AC /* Project object */; - proxyType = 1; - remoteGlobalIDString = 7E9F519419DA102000DA31AC; - remoteInfo = __PROJECT_NAME__Lib; - }; - 7E9F51AE19DA10E100DA31AC /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 7E9F518B19DA0F8300DA31AC /* CordovaLib.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = D2AAC07D0554694100DB518D; - remoteInfo = CordovaLib; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 7E9F519319DA102000DA31AC /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = "include/$(PRODUCT_NAME)"; - dstSubfolderSpec = 16; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 7E9F518B19DA0F8300DA31AC /* CordovaLib.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = CordovaLib.xcodeproj; path = "../node_modules/cordova-ios/CordovaLib/CordovaLib.xcodeproj"; sourceTree = ""; }; - 7E9F519519DA102000DA31AC /* lib__PROJECT_NAME__Lib.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = lib__PROJECT_NAME__Lib.a; sourceTree = BUILT_PRODUCTS_DIR; }; - 7E9F519F19DA102000DA31AC /* __PROJECT_NAME__LibTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = __PROJECT_NAME__LibTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 7E9F51A219DA102000DA31AC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 7E9F51A919DA10AE00DA31AC /* __PROJECT_NAME__.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = __PROJECT_NAME__.m; path = ../../../src/ios/__PROJECT_NAME__.m; sourceTree = SOURCE_ROOT; }; - 7E9F51AA19DA10AE00DA31AC /* __PROJECT_NAME__.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = __PROJECT_NAME__.h; path = ../../../src/ios/__PROJECT_NAME__.h; sourceTree = SOURCE_ROOT; }; - 7E9F51B019DA114400DA31AC /* __PROJECT_NAME__Test.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = __PROJECT_NAME__Test.m; sourceTree = ""; }; - 7E9F51B219DA116500DA31AC /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; - 7E9F51B419DA127E00DA31AC /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 7E9F519219DA102000DA31AC /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E9F519C19DA102000DA31AC /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E9F51BA19DA1B2000DA31AC /* libCordova.a in Frameworks */, - 7E9F51B919DA1B1600DA31AC /* lib__PROJECT_NAME__Lib.a in Frameworks */, - 7E9F51B519DA127E00DA31AC /* UIKit.framework in Frameworks */, - 7E9F51B319DA116500DA31AC /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 7E9F517119DA09CE00DA31AC = { - isa = PBXGroup; - children = ( - 7E9F51B419DA127E00DA31AC /* UIKit.framework */, - 7E9F51B219DA116500DA31AC /* Foundation.framework */, - 7E9F518B19DA0F8300DA31AC /* CordovaLib.xcodeproj */, - 7E9F519619DA102000DA31AC /* __PROJECT_NAME__Lib */, - 7E9F51A019DA102000DA31AC /* __PROJECT_NAME__LibTests */, - 7E9F517D19DA0A0A00DA31AC /* Products */, - ); - sourceTree = ""; - }; - 7E9F517D19DA0A0A00DA31AC /* Products */ = { - isa = PBXGroup; - children = ( - 7E9F519519DA102000DA31AC /* lib__PROJECT_NAME__Lib.a */, - 7E9F519F19DA102000DA31AC /* __PROJECT_NAME__LibTests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 7E9F518C19DA0F8300DA31AC /* Products */ = { - isa = PBXGroup; - children = ( - 7E9F519019DA0F8300DA31AC /* libCordova.a */, - ); - name = Products; - sourceTree = ""; - }; - 7E9F519619DA102000DA31AC /* __PROJECT_NAME__Lib */ = { - isa = PBXGroup; - children = ( - 7E9F51A919DA10AE00DA31AC /* __PROJECT_NAME__.m */, - 7E9F51AA19DA10AE00DA31AC /* __PROJECT_NAME__.h */, - ); - path = __PROJECT_NAME__Lib; - sourceTree = SOURCE_ROOT; - }; - 7E9F51A019DA102000DA31AC /* __PROJECT_NAME__LibTests */ = { - isa = PBXGroup; - children = ( - 7E9F51A119DA102000DA31AC /* Supporting Files */, - 7E9F51B019DA114400DA31AC /* __PROJECT_NAME__Test.m */, - ); - path = __PROJECT_NAME__LibTests; - sourceTree = ""; - }; - 7E9F51A119DA102000DA31AC /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 7E9F51A219DA102000DA31AC /* Info.plist */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 7E9F519419DA102000DA31AC /* __PROJECT_NAME__Lib */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7E9F51A319DA102000DA31AC /* Build configuration list for PBXNativeTarget "__PROJECT_NAME__Lib" */; - buildPhases = ( - 7E9F519119DA102000DA31AC /* Sources */, - 7E9F519219DA102000DA31AC /* Frameworks */, - 7E9F519319DA102000DA31AC /* CopyFiles */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = __PROJECT_NAME__Lib; - productName = __PROJECT_NAME__Lib; - productReference = 7E9F519519DA102000DA31AC /* lib__PROJECT_NAME__Lib.a */; - productType = "com.apple.product-type.library.static"; - }; - 7E9F519E19DA102000DA31AC /* __PROJECT_NAME__LibTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7E9F51A619DA102000DA31AC /* Build configuration list for PBXNativeTarget "__PROJECT_NAME__LibTests" */; - buildPhases = ( - 7E9F519B19DA102000DA31AC /* Sources */, - 7E9F519C19DA102000DA31AC /* Frameworks */, - 7E9F519D19DA102000DA31AC /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 7E9F51AF19DA10E100DA31AC /* PBXTargetDependency */, - 7E9F51AD19DA10DE00DA31AC /* PBXTargetDependency */, - ); - name = __PROJECT_NAME__LibTests; - productName = __PROJECT_NAME__LibTests; - productReference = 7E9F519F19DA102000DA31AC /* __PROJECT_NAME__LibTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 7E9F517219DA09CE00DA31AC /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0600; - TargetAttributes = { - 7E9F519419DA102000DA31AC = { - CreatedOnToolsVersion = 6.0; - }; - 7E9F519E19DA102000DA31AC = { - CreatedOnToolsVersion = 6.0; - }; - }; - }; - buildConfigurationList = 7E9F517519DA09CE00DA31AC /* Build configuration list for PBXProject "__PROJECT_NAME__Test" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = 7E9F517119DA09CE00DA31AC; - productRefGroup = 7E9F517D19DA0A0A00DA31AC /* Products */; - projectDirPath = ""; - projectReferences = ( - { - ProductGroup = 7E9F518C19DA0F8300DA31AC /* Products */; - ProjectRef = 7E9F518B19DA0F8300DA31AC /* CordovaLib.xcodeproj */; - }, - ); - projectRoot = ""; - targets = ( - 7E9F519419DA102000DA31AC /* __PROJECT_NAME__Lib */, - 7E9F519E19DA102000DA31AC /* __PROJECT_NAME__LibTests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXReferenceProxy section */ - 7E9F519019DA0F8300DA31AC /* libCordova.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = libCordova.a; - remoteRef = 7E9F518F19DA0F8300DA31AC /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; -/* End PBXReferenceProxy section */ - -/* Begin PBXResourcesBuildPhase section */ - 7E9F519D19DA102000DA31AC /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 7E9F519119DA102000DA31AC /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E9F51AB19DA10AE00DA31AC /* __PROJECT_NAME__.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 7E9F519B19DA102000DA31AC /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7E9F51B119DA114400DA31AC /* __PROJECT_NAME__Test.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 7E9F51AD19DA10DE00DA31AC /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 7E9F519419DA102000DA31AC /* __PROJECT_NAME__Lib */; - targetProxy = 7E9F51AC19DA10DE00DA31AC /* PBXContainerItemProxy */; - }; - 7E9F51AF19DA10E100DA31AC /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = CordovaLib; - targetProxy = 7E9F51AE19DA10E100DA31AC /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 7E9F517619DA09CE00DA31AC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - }; - name = Debug; - }; - 7E9F517719DA09CE00DA31AC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - }; - name = Release; - }; - 7E9F51A419DA102000DA31AC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "\"$(TARGET_BUILD_DIR)/usr/local/lib/include\"", - "\"$(OBJROOT)/UninstalledProducts/include\"", - "\"$(BUILT_PRODUCTS_DIR)\"", - ); - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - }; - name = Debug; - }; - 7E9F51A519DA102000DA31AC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = YES; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "\"$(TARGET_BUILD_DIR)/usr/local/lib/include\"", - "\n\"$(OBJROOT)/UninstalledProducts/include\"\n\"$(BUILT_PRODUCTS_DIR)\"", - ); - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MTL_ENABLE_DEBUG_INFO = NO; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 7E9F51A719DA102000DA31AC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - ); - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - INFOPLIST_FILE = __PROJECT_NAME__LibTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = iphoneos; - }; - name = Debug; - }; - 7E9F51A819DA102000DA31AC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = YES; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - ); - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - INFOPLIST_FILE = __PROJECT_NAME__LibTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MTL_ENABLE_DEBUG_INFO = NO; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 7E9F517519DA09CE00DA31AC /* Build configuration list for PBXProject "__PROJECT_NAME__Test" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7E9F517619DA09CE00DA31AC /* Debug */, - 7E9F517719DA09CE00DA31AC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 7E9F51A319DA102000DA31AC /* Build configuration list for PBXNativeTarget "__PROJECT_NAME__Lib" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7E9F51A419DA102000DA31AC /* Debug */, - 7E9F51A519DA102000DA31AC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 7E9F51A619DA102000DA31AC /* Build configuration list for PBXNativeTarget "__PROJECT_NAME__LibTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7E9F51A719DA102000DA31AC /* Debug */, - 7E9F51A819DA102000DA31AC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 7E9F517219DA09CE00DA31AC /* Project object */; -} http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/project.xcworkspace/contents.xcworkspacedata ---------------------------------------------------------------------- diff --git a/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 9856853..0000000 --- a/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/project.xcworkspace/xcshareddata/__PROJECT_NAME__Test.xccheckout ---------------------------------------------------------------------- diff --git a/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/project.xcworkspace/xcshareddata/__PROJECT_NAME__Test.xccheckout b/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/project.xcworkspace/xcshareddata/__PROJECT_NAME__Test.xccheckout deleted file mode 100644 index b923e92..0000000 --- a/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/project.xcworkspace/xcshareddata/__PROJECT_NAME__Test.xccheckout +++ /dev/null @@ -1,41 +0,0 @@ - - - - - IDESourceControlProjectFavoriteDictionaryKey - - IDESourceControlProjectIdentifier - 6BE9AD73-1B9F-4362-98D7-DC631BEC6185 - IDESourceControlProjectName - __PROJECT_NAME__Test - IDESourceControlProjectOriginsDictionary - - BEF5A5D0FF64801E558286389440357A9233D7DB - https://git-wip-us.apache.org/repos/asf/__REPO_NAME__.git - - IDESourceControlProjectPath - tests/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj - IDESourceControlProjectRelativeInstallPathDictionary - - BEF5A5D0FF64801E558286389440357A9233D7DB - ../../../../.. - - IDESourceControlProjectURL - https://git-wip-us.apache.org/repos/asf/__REPO_NAME__.git - IDESourceControlProjectVersion - 111 - IDESourceControlProjectWCCIdentifier - BEF5A5D0FF64801E558286389440357A9233D7DB - IDESourceControlProjectWCConfigurations - - - IDESourceControlRepositoryExtensionIdentifierKey - public.vcs.git - IDESourceControlWCCIdentifierKey - BEF5A5D0FF64801E558286389440357A9233D7DB - IDESourceControlWCCName - __REPO_NAME__ - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/xcshareddata/xcschemes/__PROJECT_NAME__Lib.xcscheme ---------------------------------------------------------------------- diff --git a/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/xcshareddata/xcschemes/__PROJECT_NAME__Lib.xcscheme b/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/xcshareddata/xcschemes/__PROJECT_NAME__Lib.xcscheme deleted file mode 100644 index 666abac..0000000 --- a/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/xcshareddata/xcschemes/__PROJECT_NAME__Lib.xcscheme +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/xcshareddata/xcschemes/__PROJECT_NAME__LibTests.xcscheme ---------------------------------------------------------------------- diff --git a/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/xcshareddata/xcschemes/__PROJECT_NAME__LibTests.xcscheme b/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/xcshareddata/xcschemes/__PROJECT_NAME__LibTests.xcscheme deleted file mode 100644 index c83241a..0000000 --- a/create-test-files/tests-template/ios/__PROJECT_NAME__Test/__PROJECT_NAME__Test.xcodeproj/xcshareddata/xcschemes/__PROJECT_NAME__LibTests.xcscheme +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/create-test-files/tests-template/ios/package.json ---------------------------------------------------------------------- diff --git a/create-test-files/tests-template/ios/package.json b/create-test-files/tests-template/ios/package.json deleted file mode 100644 index d05fd19..0000000 --- a/create-test-files/tests-template/ios/package.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "__REPO_NAME__-test-ios", - "version": "1.0.0", - "description": "iOS Unit Tests for __REPO_NAME__ Plugin", - "author": "Apache Software Foundation", - "license": "Apache Version 2.0", - "dependencies": { - "cordova-ios": "*" - }, - "scripts": { - "test": "xcodebuild test -workspace __PROJECT_NAME__Test.xcworkspace -scheme __PROJECT_NAME__LibTests -destination 'platform=iOS Simulator,name=iPhone 5' CONFIGURATION_BUILD_DIR='/tmp' HEADER_SEARCH_PATHS='$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include'" - } -} http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/create-test-files/tests-template/plugin.xml ---------------------------------------------------------------------- diff --git a/create-test-files/tests-template/plugin.xml b/create-test-files/tests-template/plugin.xml deleted file mode 100644 index 52fc2ba..0000000 --- a/create-test-files/tests-template/plugin.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - __REPO_NAME__ Tests - Apache 2.0 - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/create-test-files/tests-template/tests.js ---------------------------------------------------------------------- diff --git a/create-test-files/tests-template/tests.js b/create-test-files/tests-template/tests.js deleted file mode 100644 index b94d56c..0000000 --- a/create-test-files/tests-template/tests.js +++ /dev/null @@ -1,44 +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. - * -*/ - -/* jshint jasmine: true */ - -exports.defineAutoTests = function () { - describe('__REPO_NAME__ (cordova)', function () { - it("__REPO_NAME__.spec.1 should exist", function () { - //expect(window).toBeDefined(); - }); - }); -}; - -exports.defineManualTests = function (contentEl, createActionButton) { - - contentEl.innerHTML = 'Your HTML instructions here'; - - createActionButton('Do something 1', function () { - // do something 1; - }, 'do-something-1'); - - createActionButton('Do something 2', function () { - // do something 2; - }, 'do-something-2'); - -}; http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/keyboard/README.md ---------------------------------------------------------------------- diff --git a/keyboard/README.md b/keyboard/README.md deleted file mode 100644 index 76d8426..0000000 --- a/keyboard/README.md +++ /dev/null @@ -1,235 +0,0 @@ -Keyboard -====== - -> The `Keyboard` object provides some functions to customize the iOS keyboard. - -This plugin has only been tested in Cordova 3.2 or greater, and its use in previous Cordova versions is not recommended (potential conflict with keyboard customization code present in the core in previous Cordova versions). - -If you do use this plugin in an older Cordova version (again, not recommended), you have to make sure the HideKeyboardFormAccessoryBar and KeyboardShrinksView preference values are *always* false, and only use the API functions to turn things on/off. - -This plugin supports the __HideKeyboardFormAccessoryBar__ (boolean) and __KeyboardShrinksView__ (boolean) preferences in config.xml. - -Methods -------- - -- Keyboard.shrinkView -- Keyboard.hideFormAccessoryBar -- Keyboard.disableScrollingInShrinkView - -Properties --------- - -- Keyboard.isVisible - -Events --------- - -- Keyboard.onshow -- Keyboard.onhide -- Keyboard.onshowing -- Keyboard.onhiding - - -Permissions ------------ - -#### config.xml - - - - - -Keyboard.shrinkView -================= - -Shrink the WebView when the keyboard comes up. - - Keyboard.shrinkView(true); - -Description ------------ - -Set to true to shrink the WebView when the keyboard comes up. The WebView shrinks instead of the viewport shrinking and the page scrollable. This applies to apps that position their elements relative to the bottom of the WebView. This is the default behaviour on Android, and makes a lot of sense when building apps as opposed to webpages. - - -Supported Platforms -------------------- - -- iOS - -Quick Example -------------- - - Keyboard.shrinkView(true); - Keyboard.shrinkView(false); - -Keyboard.hideFormAccessoryBar -================= - -Hide the keyboard toolbar. - - Keyboard.hideFormAccessoryBar(true); - -Description ------------ - -Set to true to hide the additional toolbar that is on top of the keyboard. This toolbar features the Prev, Next, and Done buttons. - - -Supported Platforms -------------------- - -- iOS - -Quick Example -------------- - - Keyboard.hideFormAccessoryBar(true); - Keyboard.hideFormAccessoryBar(false); - - -Keyboard.disableScrollingInShrinkView -================= - -Disable scrolling when the the WebView is shrunk. - - Keyboard.disableScrollingInShrinkView(true); - -Description ------------ - -Set to true to disable scrolling when the WebView is shrunk. - - -Supported Platforms -------------------- - -- iOS - -Quick Example -------------- - - Keyboard.disableScrollingInShrinkView(true); - Keyboard.disableScrollingInShrinkView(false); - -Keyboard.isVisible -================= - -Determine if the keyboard is visible. - - if (Keyboard.isVisible) { - // do something - } - -Description ------------ - -Read this property to determine if the keyboard is visible. - - -Supported Platforms -------------------- - -- iOS - -Keyboard.automaticScrollToTopOnHiding -================= - -Specifies whenether content of page would be autoamtically scrolled to the top of the page -when keyboard is hiding. - - Keyboard.automaticScrollToTopOnHiding = true; - -Description ------------ - -Set this to true if you need that page scroll to beginning when keyboard is hiding. -This is allows to fix issue with elements declared with position: fixed, -after keyboard is hiding. - - -Supported Platforms -------------------- - -- iOS - -Keyboard.onshow -================= - -If defined, this function fired when keyboard fully shown. - - Keyboard.onshow = function () { - // Describe your logic which will be run each time keyboard is shown. - } - -Description ------------ - -Attach handler to this event to be able to receive notification when keyboard is shown. - - -Supported Platforms -------------------- - -- iOS - -Keyboard.onhide -================= - -If defined, this function fired when keyboard fully closed. - - Keyboard.onhide = function () { - // Describe your logic which will be run each time keyboard is closed. - } - -Description ------------ - -Attach handler to this event to be able to receive notification when keyboard is closed. - - -Supported Platforms -------------------- - -- iOS - -Keyboard.onshowing -================= - -If defined, this function fired before keyboard will be shown. - - Keyboard.onshowing = function () { - // Describe your logic which will be run each time when keyboard is about to be shown. - } - -Description ------------ - -Attach handler to this event to be able to receive notification when keyboard is about to be shown on the screen. - - -Supported Platforms -------------------- - -- iOS - -Keyboard.onhiding -================= - -If defined, this function fired when keyboard fully closed. - - Keyboard.onhiding = function () { - // Describe your logic which will be run each time when keyboard is about to be closed. - } - -Description ------------ - -Attach handler to this event to be able to receive notification when keyboard is about to be closed. - - -Supported Platforms -------------------- - -- iOS - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/keyboard/plugin.xml ---------------------------------------------------------------------- diff --git a/keyboard/plugin.xml b/keyboard/plugin.xml deleted file mode 100644 index 1eb1c29..0000000 --- a/keyboard/plugin.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - Keyboard - Cordova Keyboard Plugin - Apache 2.0 - cordova,keyboard - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/keyboard/src/ios/CDVKeyboard.h ---------------------------------------------------------------------- diff --git a/keyboard/src/ios/CDVKeyboard.h b/keyboard/src/ios/CDVKeyboard.h deleted file mode 100644 index 0b243ad..0000000 --- a/keyboard/src/ios/CDVKeyboard.h +++ /dev/null @@ -1,48 +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 CDVKeyboard : CDVPlugin { - @protected - BOOL _shrinkView; - @protected - BOOL _hideFormAccessoryBar; - @protected - id _keyboardShowObserver, _keyboardHideObserver, _keyboardWillShowObserver, _keyboardWillHideObserver; - @protected - id _hideFormAccessoryBarKeyboardShowObserver, _hideFormAccessoryBarKeyboardHideObserver; - @protected - id _shrinkViewKeyboardWillChangeFrameObserver; - @protected - CGFloat _accessoryBarHeight; -} - -@property (readwrite, assign) BOOL shrinkView; -@property (readwrite, assign) BOOL disableScrollingInShrinkView; -@property (readwrite, assign) BOOL hideFormAccessoryBar; -@property (readonly, assign) BOOL keyboardIsVisible; - - -- (void) shrinkView:(CDVInvokedUrlCommand*)command; -- (void) disableScrollingInShrinkView:(CDVInvokedUrlCommand*)command; -- (void) hideFormAccessoryBar:(CDVInvokedUrlCommand*)command; - - -@end http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/keyboard/src/ios/CDVKeyboard.m ---------------------------------------------------------------------- diff --git a/keyboard/src/ios/CDVKeyboard.m b/keyboard/src/ios/CDVKeyboard.m deleted file mode 100644 index f25e24a..0000000 --- a/keyboard/src/ios/CDVKeyboard.m +++ /dev/null @@ -1,330 +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 "CDVKeyboard.h" -#import - -#ifndef __CORDOVA_3_2_0 -#warning "The keyboard plugin is only supported in Cordova 3.2 or greater, it may not work properly in an older version. If you do use this plugin in an older version, make sure the HideKeyboardFormAccessoryBar and KeyboardShrinksView preference values are false." -#endif - -@interface CDVKeyboard () - -@property (nonatomic, readwrite, assign) BOOL keyboardIsVisible; - -@end - -@implementation CDVKeyboard - -@dynamic hideFormAccessoryBar; - -- (id)settingForKey:(NSString*)key -{ - return [self.commandDelegate.settings objectForKey:[key lowercaseString]]; -} - -- (void)pluginInitialize -{ - // SETTINGS //////////////////////// - - NSString* setting = nil; - - setting = @"HideKeyboardFormAccessoryBar"; - if ([self settingForKey:setting]) { - self.hideFormAccessoryBar = [(NSNumber*)[self settingForKey:setting] boolValue]; - } - - setting = @"KeyboardShrinksView"; - if ([self settingForKey:setting]) { - self.shrinkView = [(NSNumber*)[self settingForKey:setting] boolValue]; - } - - setting = @"DisableScrollingWhenKeyboardShrinksView"; - if ([self settingForKey:setting]) { - self.disableScrollingInShrinkView = [(NSNumber*)[self settingForKey:setting] boolValue]; - } - - ////////////////////////// - - NSNotificationCenter* nc = [NSNotificationCenter defaultCenter]; - __weak CDVKeyboard* weakSelf = self; - - _keyboardShowObserver = [nc addObserverForName:UIKeyboardDidShowNotification - object:nil - queue:[NSOperationQueue mainQueue] - usingBlock:^(NSNotification* notification) { - [weakSelf.commandDelegate evalJs:@"Keyboard.fireOnShow();"]; - }]; - _keyboardHideObserver = [nc addObserverForName:UIKeyboardDidHideNotification - object:nil - queue:[NSOperationQueue mainQueue] - usingBlock:^(NSNotification* notification) { - [weakSelf.commandDelegate evalJs:@"Keyboard.fireOnHide();"]; - }]; - - _keyboardWillShowObserver = [nc addObserverForName:UIKeyboardWillShowNotification - object:nil - queue:[NSOperationQueue mainQueue] - usingBlock:^(NSNotification* notification) { - [weakSelf.commandDelegate evalJs:@"Keyboard.fireOnShowing();"]; - weakSelf.keyboardIsVisible = YES; - }]; - _keyboardWillHideObserver = [nc addObserverForName:UIKeyboardWillHideNotification - object:nil - queue:[NSOperationQueue mainQueue] - usingBlock:^(NSNotification* notification) { - [weakSelf.commandDelegate evalJs:@"Keyboard.fireOnHiding();"]; - weakSelf.keyboardIsVisible = NO; - }]; - - _shrinkViewKeyboardWillChangeFrameObserver = [nc addObserverForName:UIKeyboardWillChangeFrameNotification - object:nil - queue:[NSOperationQueue mainQueue] - usingBlock:^(NSNotification* notification) { - [weakSelf performSelector:@selector(shrinkViewKeyboardWillChangeFrame:) withObject:notification afterDelay:0]; - }]; - - self.webView.scrollView.delegate = self; - - _accessoryBarHeight = 44; -} - -// ////////////////////////////////////////////////// - -- (BOOL)hideFormAccessoryBar -{ - return _hideFormAccessoryBar; -} - -- (void)setHideFormAccessoryBar:(BOOL)ahideFormAccessoryBar -{ - NSNotificationCenter* nc = [NSNotificationCenter defaultCenter]; - __weak CDVKeyboard* weakSelf = self; - - if (ahideFormAccessoryBar == _hideFormAccessoryBar) { - return; - } - - if (ahideFormAccessoryBar) { - [nc removeObserver:_hideFormAccessoryBarKeyboardShowObserver]; - _hideFormAccessoryBarKeyboardShowObserver = [nc addObserverForName:UIKeyboardWillShowNotification - object:nil - queue:[NSOperationQueue mainQueue] - usingBlock:^(NSNotification* notification) { - // we can't hide it here because the accessory bar hasn't been created yet, so we delay on the queue - [weakSelf performSelector:@selector(formAccessoryBarKeyboardWillShow:) withObject:notification afterDelay:0]; - }]; - - [nc removeObserver:_hideFormAccessoryBarKeyboardHideObserver]; - _hideFormAccessoryBarKeyboardHideObserver = [nc addObserverForName:UIKeyboardWillHideNotification - object:nil - queue:[NSOperationQueue mainQueue] - usingBlock:^(NSNotification* notification) { - [weakSelf formAccessoryBarKeyboardWillHide:notification]; - }]; - } else { - [nc removeObserver:_hideFormAccessoryBarKeyboardShowObserver]; - [nc removeObserver:_hideFormAccessoryBarKeyboardHideObserver]; - - // if a keyboard is already visible (and the accessorybar was hidden), hide observer will NOT be called, so we observe it once - if (self.keyboardIsVisible && _hideFormAccessoryBar) { - _hideFormAccessoryBarKeyboardHideObserver = [nc addObserverForName:UIKeyboardWillHideNotification - object:nil - queue:[NSOperationQueue mainQueue] - usingBlock:^(NSNotification* notification) { - [weakSelf formAccessoryBarKeyboardWillHide:notification]; - [[NSNotificationCenter defaultCenter] removeObserver:_hideFormAccessoryBarKeyboardHideObserver]; - }]; - } - } - - _hideFormAccessoryBar = ahideFormAccessoryBar; -} - -// ////////////////////////////////////////////////// - -- (NSArray*)getKeyboardViews:(UIView*)viewToSearch{ - NSArray *subViews; - - for (UIView *possibleFormView in viewToSearch.subviews) { - if ([[possibleFormView description] hasPrefix: self.getKeyboardFirstLevelIdentifier]) { - if(IsAtLeastiOSVersion(@"8.0")){ - for (UIView* subView in possibleFormView.subviews) { - return subView.subviews; - } - }else{ - return possibleFormView.subviews; - } - } - - } - return subViews; -} - -- (NSString*)getKeyboardFirstLevelIdentifier{ - if(!IsAtLeastiOSVersion(@"8.0")){ - return @" 0 ? - [self.viewController.view convertRect:[[UIScreen mainScreen] applicationFrame] fromView:nil]: - [self.viewController.view convertRect:[[UIScreen mainScreen] bounds] fromView:nil]; - - CGRect keyboard = [self.viewController.view convertRect: ((NSValue*)notif.userInfo[@"UIKeyboardFrameEndUserInfoKey"]).CGRectValue fromView: nil]; - CGRect keyboardIntersection = CGRectIntersection(screen, keyboard); - - if(CGRectContainsRect(screen, keyboardIntersection) && !CGRectIsEmpty(keyboardIntersection) && _shrinkView && self.keyboardIsVisible){ - screen.size.height -= MIN(keyboardIntersection.size.height, keyboardIntersection.size.width); - - if (_hideFormAccessoryBar){ - screen.size.height += _accessoryBarHeight; - } - - self.webView.scrollView.scrollEnabled = !self.disableScrollingInShrinkView; - } - - self.webView.frame = screen; -} - -// ////////////////////////////////////////////////// - -- (void)dealloc -{ - // since this is ARC, remove observers only - - NSNotificationCenter* nc = [NSNotificationCenter defaultCenter]; - - [nc removeObserver:self name:UIKeyboardWillShowNotification object:nil]; - [nc removeObserver:self name:UIKeyboardWillHideNotification object:nil]; -} - -// ////////////////////////////////////////////////// - -#pragma mark Plugin interface - -- (void) shrinkView:(CDVInvokedUrlCommand*)command -{ - id value = [command.arguments objectAtIndex:0]; - if (!([value isKindOfClass:[NSNumber class]])) { - value = [NSNumber numberWithBool:NO]; - } - - self.shrinkView = [value boolValue]; -} - -- (void) disableScrollingInShrinkView:(CDVInvokedUrlCommand*)command -{ - id value = [command.arguments objectAtIndex:0]; - if (!([value isKindOfClass:[NSNumber class]])) { - value = [NSNumber numberWithBool:NO]; - } - - self.disableScrollingInShrinkView = [value boolValue]; -} - -- (void) hideFormAccessoryBar:(CDVInvokedUrlCommand*)command -{ - id value = [command.arguments objectAtIndex:0]; - if (!([value isKindOfClass:[NSNumber class]])) { - value = [NSNumber numberWithBool:NO]; - } - - self.hideFormAccessoryBar = [value boolValue]; -} - -#pragma mark UIScrollViewDelegate -- (void)scrollViewDidScroll:(UIScrollView *)scrollView { - if(_shrinkView){ - scrollView.bounds = self.webView.bounds; - } -} -@end http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/keyboard/www/keyboard.js ---------------------------------------------------------------------- diff --git a/keyboard/www/keyboard.js b/keyboard/www/keyboard.js deleted file mode 100644 index b9bbae7..0000000 --- a/keyboard/www/keyboard.js +++ /dev/null @@ -1,75 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * -*/ - -var argscheck = require('cordova/argscheck'), - utils = require('cordova/utils'), - exec = require('cordova/exec'); - -var Keyboard = function() { -}; - -Keyboard.shrinkView = function(shrink) { - exec(null, null, "Keyboard", "shrinkView", [shrink]); -}; - -Keyboard.hideFormAccessoryBar = function(hide) { - exec(null, null, "Keyboard", "hideFormAccessoryBar", [hide]); -}; - -Keyboard.disableScrollingInShrinkView = function(disable) { - exec(null, null, "Keyboard", "disableScrollingInShrinkView", [disable]); -}; - -Keyboard.fireOnShow = function() { - Keyboard.isVisible = true; - if (Keyboard.onshow) { - Keyboard.onshow(); - } -}; -Keyboard.fireOnHide = function() { - Keyboard.isVisible = false; - if (Keyboard.onhide) { - Keyboard.onhide(); - } -}; -Keyboard.fireOnHiding = function() { - // Automatic scroll to the top of the page - // to prevent quirks when using position:fixed elements - // inside WebKit browsers (iOS specifically). - // See CB-6444 for context. - if (Keyboard.automaticScrollToTopOnHiding) { - document.body.scrollLeft = 0; - } - - if (Keyboard.onhiding) { - Keyboard.onhiding(); - } -}; -Keyboard.fireOnShowing = function() { - if (Keyboard.onshowing) { - Keyboard.onshowing(); - } -}; - -Keyboard.isVisible = false; -Keyboard.automaticScrollToTopOnHiding = false; - -module.exports = Keyboard; http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/local-webserver/README.md ---------------------------------------------------------------------- diff --git a/local-webserver/README.md b/local-webserver/README.md deleted file mode 100644 index ba6afb4..0000000 --- a/local-webserver/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# Cordova Local WebServer - -This Apache Cordova plugin will install a local web server in your iOS app, and will serve the contents of your `www` directory, looking for an index page of `index.html`. - -After the plugin is installed, it changes the `config.xml` in your project root by modifying this tag to: - - - -For the local web server to start, the url **must** be http://localhost, and you can set the port to whatever you want in the url, the local web server will use this as the port automatically. `If you set the port to "0", it will select a randomized and free port.` - -Check your console log for errors in configuration. - -### localStorage, IndexedDB persistence - -If you plan on using HTML5 localStorage and/or IndexedDB, you must choose a fixed port in the `content` tag specified above. This is because of the HTML5 Origin policy (scheme, domain and port must be the same). - -In the `config.xml` in your project root, change the '0' port to a number between 1 and 49152 (avoiding the ephemeral port range of 49152 to 65535 on iOS). For example: - - - - -This port number must be consistent across all app launches for saved data to be accessed. - - -## Security Caveats - - In order to limit access to your app, requests are restricted to localhost and are protected with an auth token. - This should effectively restrict access to the server to your app. - -This plugin is only compatible with the 3.7.0 release of cordova-ios, or greater. - - -## Credits - -The local web server implementation is from https://github.com/swisspol/GCDWebServer - -To update with the latest from that repo execute in the top-level directory: - - git remote add GCDWebServer https://github.com/swisspol/GCDWebServer.git - git subtree pull --prefix=local-webserver/src/ios/GCDWebServer --squash GCDWebServer master http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/local-webserver/package.json ---------------------------------------------------------------------- diff --git a/local-webserver/package.json b/local-webserver/package.json deleted file mode 100644 index 9c99957..0000000 --- a/local-webserver/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "cordova-labs-local-webserver", - "version": "2.3.1", - "description": "Cordova Local Web Server Plugin", - "cordova": { - "id": "cordova-labs-local-webserver", - "platforms": [ - "ios" - ] - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Collaborne/cordova-plugins.git" - }, - "keywords": [ - "cordova", - "local web server", - "ecosystem:cordova", - "cordova-ios" - ], - "engines": [ - { - "name": "cordova-ios", - "version": ">=4.0.0-dev" - } - ], - "author": "", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/Collaborne/cordova-plugins/issues" - }, - "homepage": "https://github.com/Collaborne/cordova-plugins#readme", - "dependencies": { - "urijs": "^1.17.1" - } -} http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/local-webserver/plugin.xml ---------------------------------------------------------------------- diff --git a/local-webserver/plugin.xml b/local-webserver/plugin.xml deleted file mode 100644 index 42b3f9f..0000000 --- a/local-webserver/plugin.xml +++ /dev/null @@ -1,94 +0,0 @@ - - - - CordovaLocalWebServer - Cordova Local Web Server Plugin - cordova,local web server - https://git-wip-us.apache.org/repos/asf/cordova-plugins.git - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - If your <content> element did not already point to 'http://localhost[:port]', it will now point to a http://localhost:0 location (randomized port), e.g. <content src="http://localhost:0" /> - WARNING: For localStorage and IndexedDB persistence, you must choose a non-randomized port (between 1 and 49152, to avoid the ephemeral port range 49152 to 65535 on iOS). - - - - http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/local-webserver/scripts/after_install.js ---------------------------------------------------------------------- diff --git a/local-webserver/scripts/after_install.js b/local-webserver/scripts/after_install.js deleted file mode 100644 index 90768d8..0000000 --- a/local-webserver/scripts/after_install.js +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env node - -/* - 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. - */ - -// This script modifies the project root's config.xml -// The tag "src" attribute is modified to point to http://localhost:0 - -var fs = require('fs'); -var path = require('path'); -var URI = require('url'); -var old_content_src_value; - -module.exports = function(context) { - var config_xml = path.join(context.opts.projectRoot, 'config.xml'); - var et = context.requireCordovaModule('elementtree'); - - var data = fs.readFileSync(config_xml).toString(); - var etree = et.parse(data); - - var content_tags = etree.findall('./content[@src]'); - if (content_tags.length > 0) { - old_content_src_value = content_tags[0].get('src'); - var content_src = URI.parse(old_content_src_value); - if (content_src.hostname !== 'localhost') { - var backup_json = path.join(context.opts.plugin.dir, 'backup.json'); - var backup_value = { content_src : old_content_src_value }; - fs.writeFileSync(backup_json, JSON.stringify(backup_value)); - - // XXX: Should we retain the name of the index file here? - content_tags[0].set('src', 'http://localhost:0'); - } - } - - var altcontentsrcTag = etree.findall("./preference[@name='AlternateContentSrc']"); - if (altcontentsrcTag.length > 0) { - altcontentsrcTag[0].set('value', old_content_src_value); - } else { - var pref = et.Element('preference', { name: 'AlternateContentSrc', value: old_content_src_value }); - etree.getroot().append(pref); - } - - data = etree.write({'indent': 4}); - fs.writeFileSync(config_xml, data); -} http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/local-webserver/scripts/before_uninstall.js ---------------------------------------------------------------------- diff --git a/local-webserver/scripts/before_uninstall.js b/local-webserver/scripts/before_uninstall.js deleted file mode 100644 index ee3bb25..0000000 --- a/local-webserver/scripts/before_uninstall.js +++ /dev/null @@ -1,62 +0,0 @@ -#!/usr/bin/env node - -/* - 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. - */ - -// This script modifies the project root's config.xml -// This restores the content tag's src attribute to its original value. - -var content_src_value = "http://localhost:0"; -var fs = require('fs'); -var path = require('path'); -var old_content_src_value; - -module.exports = function(context) { - var config_xml = path.join(context.opts.projectRoot, 'config.xml'); - var et = context.requireCordovaModule('elementtree'); - - var data = fs.readFileSync(config_xml).toString(); - var etree = et.parse(data); - - var content_tags = etree.findall('./content[@src]'); - if (content_tags.length > 0) { - var backup_json = path.join(context.opts.plugin.dir, 'backup.json'); - var backup_data = JSON.parse(fs.readFileSync(backup_json).toString()); - - var config_content_src_value = content_tags[0].get('src'); - // it's our value, we can restore old value - if (config_content_src_value === content_src_value) { - content_tags[0].set('src', backup_data.content_src); - } - } - - var altcontentsrcTag = etree.findall("./preference[@name='AlternateContentSrc']"); - if (altcontentsrcTag.length > 0) { - try { - // elementtree 0.1.6 - etree.getroot().remove(altcontentsrcTag[0]); - } catch (e) { - // elementtree 0.1.5 - etree.getroot().remove(0, altcontentsrcTag[0]); - } - } - - data = etree.write({'indent': 4}); - fs.writeFileSync(config_xml, data); -} http://git-wip-us.apache.org/repos/asf/cordova-plugins/blob/5d951c9e/local-webserver/src/ios/CDVLocalWebServer.h ---------------------------------------------------------------------- diff --git a/local-webserver/src/ios/CDVLocalWebServer.h b/local-webserver/src/ios/CDVLocalWebServer.h deleted file mode 100644 index e5be9f6..0000000 --- a/local-webserver/src/ios/CDVLocalWebServer.h +++ /dev/null @@ -1,26 +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 "GCDWebServer.h" - -@interface CDVLocalWebServer : CDVPlugin - -@property (nonatomic, strong) GCDWebServer* server; -@end --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org