You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2013/04/26 00:07:09 UTC
[01/10] remove old tests. jasmine migration complete
Updated Branches:
refs/heads/master fe44ffc4f -> 4e517820d
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/ios-plist/SampleApp.xcodeproj/project.orig.pbxproj
----------------------------------------------------------------------
diff --git a/test/projects/ios-plist/SampleApp.xcodeproj/project.orig.pbxproj b/test/projects/ios-plist/SampleApp.xcodeproj/project.orig.pbxproj
deleted file mode 100644
index a4d87f9..0000000
--- a/test/projects/ios-plist/SampleApp.xcodeproj/project.orig.pbxproj
+++ /dev/null
@@ -1,498 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 571A464014DB0A1B007FEAC7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A463F14DB0A1B007FEAC7 /* Foundation.framework */; };
- 571A464214DB0A1B007FEAC7 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464114DB0A1B007FEAC7 /* UIKit.framework */; };
- 571A464414DB0A1B007FEAC7 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464314DB0A1B007FEAC7 /* CoreGraphics.framework */; };
- 571A464614DB0A1B007FEAC7 /* AddressBook.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464514DB0A1B007FEAC7 /* AddressBook.framework */; };
- 571A464814DB0A1B007FEAC7 /* AddressBookUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464714DB0A1B007FEAC7 /* AddressBookUI.framework */; };
- 571A464A14DB0A1B007FEAC7 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464914DB0A1B007FEAC7 /* AudioToolbox.framework */; };
- 571A464C14DB0A1B007FEAC7 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464B14DB0A1B007FEAC7 /* AVFoundation.framework */; };
- 571A464E14DB0A1B007FEAC7 /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464D14DB0A1B007FEAC7 /* CoreLocation.framework */; };
- 571A465014DB0A1B007FEAC7 /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464F14DB0A1B007FEAC7 /* MediaPlayer.framework */; };
- 571A465214DB0A1B007FEAC7 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A465114DB0A1B007FEAC7 /* QuartzCore.framework */; };
- 571A465414DB0A1B007FEAC7 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A465314DB0A1B007FEAC7 /* SystemConfiguration.framework */; };
- 571A465614DB0A1B007FEAC7 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A465514DB0A1B007FEAC7 /* MobileCoreServices.framework */; };
- 571A465814DB0A1B007FEAC7 /* CoreMedia.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A465714DB0A1B007FEAC7 /* CoreMedia.framework */; };
- 571A465E14DB0A1B007FEAC7 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 571A465C14DB0A1B007FEAC7 /* InfoPlist.strings */; };
- 571A466014DB0A1B007FEAC7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 571A465F14DB0A1B007FEAC7 /* main.m */; };
- 571A466314DB0A1B007FEAC7 /* PhoneGap.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A466214DB0A1B007FEAC7 /* PhoneGap.framework */; };
- 571A466814DB0A1B007FEAC7 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 571A466614DB0A1B007FEAC7 /* Localizable.strings */; };
- 571A466C14DB0A1B007FEAC7 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 571A466A14DB0A1B007FEAC7 /* Localizable.strings */; };
- 571A466F14DB0A1B007FEAC7 /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A466E14DB0A1B007FEAC7 /* icon.png */; };
- 571A467114DB0A1B007FEAC7 /* icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A467014DB0A1B007FEAC7 /* icon@2x.png */; };
- 571A467314DB0A1B007FEAC7 /* icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A467214DB0A1B007FEAC7 /* icon-72.png */; };
- 571A467614DB0A1B007FEAC7 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A467514DB0A1B007FEAC7 /* Default.png */; };
- 571A467814DB0A1B007FEAC7 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A467714DB0A1B007FEAC7 /* Default@2x.png */; };
- 571A467A14DB0A1B007FEAC7 /* Capture.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 571A467914DB0A1B007FEAC7 /* Capture.bundle */; };
- 571A467C14DB0A1B007FEAC7 /* PhoneGap.plist in Resources */ = {isa = PBXBuildFile; fileRef = 571A467B14DB0A1B007FEAC7 /* PhoneGap.plist */; };
- 571A468014DB0A1B007FEAC7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 571A467F14DB0A1B007FEAC7 /* AppDelegate.m */; };
- 571A468314DB0A1B007FEAC7 /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 571A468214DB0A1B007FEAC7 /* MainViewController.m */; };
- 571A468514DB0A1B007FEAC7 /* MainViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 571A468414DB0A1B007FEAC7 /* MainViewController.xib */; };
- 577FC36614DB0B620082BA7B /* www in Resources */ = {isa = PBXBuildFile; fileRef = 577FC36514DB0B620082BA7B /* www */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 571A463B14DB0A1B007FEAC7 /* ChildApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ChildApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 571A463F14DB0A1B007FEAC7 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
- 571A464114DB0A1B007FEAC7 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
- 571A464314DB0A1B007FEAC7 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
- 571A464514DB0A1B007FEAC7 /* AddressBook.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBook.framework; path = System/Library/Frameworks/AddressBook.framework; sourceTree = SDKROOT; };
- 571A464714DB0A1B007FEAC7 /* AddressBookUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBookUI.framework; path = System/Library/Frameworks/AddressBookUI.framework; sourceTree = SDKROOT; };
- 571A464914DB0A1B007FEAC7 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
- 571A464B14DB0A1B007FEAC7 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
- 571A464D14DB0A1B007FEAC7 /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
- 571A464F14DB0A1B007FEAC7 /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; };
- 571A465114DB0A1B007FEAC7 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
- 571A465314DB0A1B007FEAC7 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
- 571A465514DB0A1B007FEAC7 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
- 571A465714DB0A1B007FEAC7 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; };
- 571A465B14DB0A1B007FEAC7 /* ChildApp-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ChildApp-Info.plist"; sourceTree = "<group>"; };
- 571A465D14DB0A1B007FEAC7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
- 571A465F14DB0A1B007FEAC7 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
- 571A466114DB0A1B007FEAC7 /* ChildApp-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ChildApp-Prefix.pch"; sourceTree = "<group>"; };
- 571A466214DB0A1B007FEAC7 /* PhoneGap.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = PhoneGap.framework; path = /Users/Shared/PhoneGap/Frameworks/PhoneGap.framework; sourceTree = "<absolute>"; };
- 571A466714DB0A1B007FEAC7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = Resources/en.lproj/Localizable.strings; sourceTree = "<group>"; };
- 571A466B14DB0A1B007FEAC7 /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = Resources/es.lproj/Localizable.strings; sourceTree = "<group>"; };
- 571A466E14DB0A1B007FEAC7 /* icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = icon.png; path = Resources/icons/icon.png; sourceTree = "<group>"; };
- 571A467014DB0A1B007FEAC7 /* icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "icon@2x.png"; path = "Resources/icons/icon@2x.png"; sourceTree = "<group>"; };
- 571A467214DB0A1B007FEAC7 /* icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "icon-72.png"; path = "Resources/icons/icon-72.png"; sourceTree = "<group>"; };
- 571A467514DB0A1B007FEAC7 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Default.png; path = Resources/splash/Default.png; sourceTree = "<group>"; };
- 571A467714DB0A1B007FEAC7 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default@2x.png"; path = "Resources/splash/Default@2x.png"; sourceTree = "<group>"; };
- 571A467914DB0A1B007FEAC7 /* Capture.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = Capture.bundle; path = Resources/Capture.bundle; sourceTree = "<group>"; };
- 571A467B14DB0A1B007FEAC7 /* PhoneGap.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = PhoneGap.plist; sourceTree = "<group>"; };
- 571A467E14DB0A1B007FEAC7 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Classes/AppDelegate.h; sourceTree = "<group>"; };
- 571A467F14DB0A1B007FEAC7 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = Classes/AppDelegate.m; sourceTree = "<group>"; };
- 571A468114DB0A1B007FEAC7 /* MainViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MainViewController.h; path = Classes/MainViewController.h; sourceTree = "<group>"; };
- 571A468214DB0A1B007FEAC7 /* MainViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MainViewController.m; path = Classes/MainViewController.m; sourceTree = "<group>"; };
- 571A468414DB0A1B007FEAC7 /* MainViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = MainViewController.xib; path = Classes/MainViewController.xib; sourceTree = "<group>"; };
- 571A468714DB0A1B007FEAC7 /* README */ = {isa = PBXFileReference; lastKnownFileType = text; name = README; path = Plugins/README; sourceTree = "<group>"; };
- 577FC36514DB0B620082BA7B /* www */ = {isa = PBXFileReference; lastKnownFileType = folder; path = www; sourceTree = "<group>"; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 571A463514DB0A1B007FEAC7 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 571A464014DB0A1B007FEAC7 /* Foundation.framework in Frameworks */,
- 571A464214DB0A1B007FEAC7 /* UIKit.framework in Frameworks */,
- 571A464414DB0A1B007FEAC7 /* CoreGraphics.framework in Frameworks */,
- 571A464614DB0A1B007FEAC7 /* AddressBook.framework in Frameworks */,
- 571A464814DB0A1B007FEAC7 /* AddressBookUI.framework in Frameworks */,
- 571A464A14DB0A1B007FEAC7 /* AudioToolbox.framework in Frameworks */,
- 571A464C14DB0A1B007FEAC7 /* AVFoundation.framework in Frameworks */,
- 571A464E14DB0A1B007FEAC7 /* CoreLocation.framework in Frameworks */,
- 571A465014DB0A1B007FEAC7 /* MediaPlayer.framework in Frameworks */,
- 571A465214DB0A1B007FEAC7 /* QuartzCore.framework in Frameworks */,
- 571A465414DB0A1B007FEAC7 /* SystemConfiguration.framework in Frameworks */,
- 571A465614DB0A1B007FEAC7 /* MobileCoreServices.framework in Frameworks */,
- 571A465814DB0A1B007FEAC7 /* CoreMedia.framework in Frameworks */,
- 571A466314DB0A1B007FEAC7 /* PhoneGap.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 571A463814DB0A1B007FEAC7 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 571A462D14DB0A1A007FEAC7 = {
- isa = PBXGroup;
- children = (
- 577FC36514DB0B620082BA7B /* www */,
- 571A465914DB0A1B007FEAC7 /* ChildApp */,
- 571A463E14DB0A1B007FEAC7 /* Frameworks */,
- 571A463C14DB0A1B007FEAC7 /* Products */,
- );
- sourceTree = "<group>";
- };
- 571A463C14DB0A1B007FEAC7 /* Products */ = {
- isa = PBXGroup;
- children = (
- 571A463B14DB0A1B007FEAC7 /* ChildApp.app */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 571A463E14DB0A1B007FEAC7 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 571A463F14DB0A1B007FEAC7 /* Foundation.framework */,
- 571A464114DB0A1B007FEAC7 /* UIKit.framework */,
- 571A464314DB0A1B007FEAC7 /* CoreGraphics.framework */,
- 571A464514DB0A1B007FEAC7 /* AddressBook.framework */,
- 571A464714DB0A1B007FEAC7 /* AddressBookUI.framework */,
- 571A464914DB0A1B007FEAC7 /* AudioToolbox.framework */,
- 571A464B14DB0A1B007FEAC7 /* AVFoundation.framework */,
- 571A464D14DB0A1B007FEAC7 /* CoreLocation.framework */,
- 571A464F14DB0A1B007FEAC7 /* MediaPlayer.framework */,
- 571A465114DB0A1B007FEAC7 /* QuartzCore.framework */,
- 571A465314DB0A1B007FEAC7 /* SystemConfiguration.framework */,
- 571A465514DB0A1B007FEAC7 /* MobileCoreServices.framework */,
- 571A465714DB0A1B007FEAC7 /* CoreMedia.framework */,
- );
- name = Frameworks;
- sourceTree = "<group>";
- };
- 571A465914DB0A1B007FEAC7 /* ChildApp */ = {
- isa = PBXGroup;
- children = (
- 571A466214DB0A1B007FEAC7 /* PhoneGap.framework */,
- 571A466414DB0A1B007FEAC7 /* Resources */,
- 571A467D14DB0A1B007FEAC7 /* Classes */,
- 571A468614DB0A1B007FEAC7 /* Plugins */,
- 571A465A14DB0A1B007FEAC7 /* Supporting Files */,
- );
- path = ChildApp;
- sourceTree = "<group>";
- };
- 571A465A14DB0A1B007FEAC7 /* Supporting Files */ = {
- isa = PBXGroup;
- children = (
- 571A465B14DB0A1B007FEAC7 /* ChildApp-Info.plist */,
- 571A465C14DB0A1B007FEAC7 /* InfoPlist.strings */,
- 571A465F14DB0A1B007FEAC7 /* main.m */,
- 571A466114DB0A1B007FEAC7 /* ChildApp-Prefix.pch */,
- 571A467B14DB0A1B007FEAC7 /* PhoneGap.plist */,
- 571A468414DB0A1B007FEAC7 /* MainViewController.xib */,
- );
- name = "Supporting Files";
- sourceTree = "<group>";
- };
- 571A466414DB0A1B007FEAC7 /* Resources */ = {
- isa = PBXGroup;
- children = (
- 571A467914DB0A1B007FEAC7 /* Capture.bundle */,
- 571A466514DB0A1B007FEAC7 /* en.lproj */,
- 571A466914DB0A1B007FEAC7 /* es.lproj */,
- 571A466D14DB0A1B007FEAC7 /* icons */,
- 571A467414DB0A1B007FEAC7 /* splash */,
- );
- name = Resources;
- sourceTree = "<group>";
- };
- 571A466514DB0A1B007FEAC7 /* en.lproj */ = {
- isa = PBXGroup;
- children = (
- 571A466614DB0A1B007FEAC7 /* Localizable.strings */,
- );
- name = en.lproj;
- sourceTree = "<group>";
- };
- 571A466914DB0A1B007FEAC7 /* es.lproj */ = {
- isa = PBXGroup;
- children = (
- 571A466A14DB0A1B007FEAC7 /* Localizable.strings */,
- );
- name = es.lproj;
- sourceTree = "<group>";
- };
- 571A466D14DB0A1B007FEAC7 /* icons */ = {
- isa = PBXGroup;
- children = (
- 571A466E14DB0A1B007FEAC7 /* icon.png */,
- 571A467014DB0A1B007FEAC7 /* icon@2x.png */,
- 571A467214DB0A1B007FEAC7 /* icon-72.png */,
- );
- name = icons;
- sourceTree = "<group>";
- };
- 571A467414DB0A1B007FEAC7 /* splash */ = {
- isa = PBXGroup;
- children = (
- 571A467514DB0A1B007FEAC7 /* Default.png */,
- 571A467714DB0A1B007FEAC7 /* Default@2x.png */,
- );
- name = splash;
- sourceTree = "<group>";
- };
- 571A467D14DB0A1B007FEAC7 /* Classes */ = {
- isa = PBXGroup;
- children = (
- 571A467E14DB0A1B007FEAC7 /* AppDelegate.h */,
- 571A467F14DB0A1B007FEAC7 /* AppDelegate.m */,
- 571A468114DB0A1B007FEAC7 /* MainViewController.h */,
- 571A468214DB0A1B007FEAC7 /* MainViewController.m */,
- );
- name = Classes;
- sourceTree = "<group>";
- };
- 571A468614DB0A1B007FEAC7 /* Plugins */ = {
- isa = PBXGroup;
- children = (
- 571A468714DB0A1B007FEAC7 /* README */,
- );
- name = Plugins;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 571A463A14DB0A1B007FEAC7 /* ChildApp */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 571A468A14DB0A1B007FEAC7 /* Build configuration list for PBXNativeTarget "ChildApp" */;
- buildPhases = (
- 571A463414DB0A1B007FEAC7 /* Sources */,
- 571A463514DB0A1B007FEAC7 /* Frameworks */,
- 571A463614DB0A1B007FEAC7 /* Resources */,
- 571A463714DB0A1B007FEAC7 /* Sources */,
- 571A463814DB0A1B007FEAC7 /* Frameworks */,
- 571A463914DB0A1B007FEAC7 /* ShellScript */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = ChildApp;
- productName = ChildApp;
- productReference = 571A463B14DB0A1B007FEAC7 /* ChildApp.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 571A462F14DB0A1A007FEAC7 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 0420;
- };
- buildConfigurationList = 571A463214DB0A1A007FEAC7 /* Build configuration list for PBXProject "ChildApp" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- es,
- );
- mainGroup = 571A462D14DB0A1A007FEAC7;
- productRefGroup = 571A463C14DB0A1B007FEAC7 /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 571A463A14DB0A1B007FEAC7 /* ChildApp */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 571A463614DB0A1B007FEAC7 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 571A465E14DB0A1B007FEAC7 /* InfoPlist.strings in Resources */,
- 571A466814DB0A1B007FEAC7 /* Localizable.strings in Resources */,
- 571A466C14DB0A1B007FEAC7 /* Localizable.strings in Resources */,
- 571A466F14DB0A1B007FEAC7 /* icon.png in Resources */,
- 571A467114DB0A1B007FEAC7 /* icon@2x.png in Resources */,
- 571A467314DB0A1B007FEAC7 /* icon-72.png in Resources */,
- 571A467614DB0A1B007FEAC7 /* Default.png in Resources */,
- 571A467814DB0A1B007FEAC7 /* Default@2x.png in Resources */,
- 571A467A14DB0A1B007FEAC7 /* Capture.bundle in Resources */,
- 571A467C14DB0A1B007FEAC7 /* PhoneGap.plist in Resources */,
- 571A468514DB0A1B007FEAC7 /* MainViewController.xib in Resources */,
- 577FC36614DB0B620082BA7B /* www in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 571A463914DB0A1B007FEAC7 /* ShellScript */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/bash;
- shellScript = "\n\t\t\t\t\t\t\t\tif [ ! -d \"$PROJECT_DIR/www\" ] ; then\n\t\t\t\t\t\t\t\t\tcp -R /Users/Shared/PhoneGap/Frameworks/PhoneGap.framework/www \"$PROJECT_DIR\"\n\t\t\t\t\t\t\t\tfi\n\t\t\t\t\t\t\t\t# detect www folder reference in project, if missing, print warning\n\t\t\t\t\t\t\t\tgrep \"{isa = PBXFileReference; lastKnownFileType = folder; path = www; sourceTree = \\\"<group>\\\"; };\" \"$PROJECT_DIR/$PROJECT_NAME.xcodeproj/project.pbxproj\"\n\t\t\t\t\t\t\t\trc=$? \n\t\t\t\t\t\t\t\tif [ $rc != 0 ] ; then\n\t\t\t\t\t\t\t\techo -e \"warning: Missing - Add $PROJECT_DIR/www as a folder reference in your project. Just drag and drop the folder into your project, into the Project Navigator of Xcode 4. Make sure you select the second radio-button: 'Create folder references for any added folders' (which will create a blue folder)\" 1>&2\n\t\t\t\t\t\t\t\tfi\t\t\t\t\t\t\t";
- };
-/* End PBXShellScriptBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 571A463414DB0A1B007FEAC7 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 571A466014DB0A1B007FEAC7 /* main.m in Sources */,
- 571A468014DB0A1B007FEAC7 /* AppDelegate.m in Sources */,
- 571A468314DB0A1B007FEAC7 /* MainViewController.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 571A463714DB0A1B007FEAC7 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
- 571A465C14DB0A1B007FEAC7 /* InfoPlist.strings */ = {
- isa = PBXVariantGroup;
- children = (
- 571A465D14DB0A1B007FEAC7 /* en */,
- );
- name = InfoPlist.strings;
- sourceTree = "<group>";
- };
- 571A466614DB0A1B007FEAC7 /* Localizable.strings */ = {
- isa = PBXVariantGroup;
- children = (
- 571A466714DB0A1B007FEAC7 /* en */,
- );
- name = Localizable.strings;
- sourceTree = "<group>";
- };
- 571A466A14DB0A1B007FEAC7 /* Localizable.strings */ = {
- isa = PBXVariantGroup;
- children = (
- 571A466B14DB0A1B007FEAC7 /* es */,
- );
- name = Localizable.strings;
- sourceTree = "<group>";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 571A468814DB0A1B007FEAC7 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CLANG_ENABLE_OBJC_ARC = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- 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_VERSION = com.apple.compilers.llvmgcc42;
- GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 3.0;
- SDKROOT = iphoneos;
- };
- name = Debug;
- };
- 571A468914DB0A1B007FEAC7 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CLANG_ENABLE_OBJC_ARC = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_VERSION = com.apple.compilers.llvmgcc42;
- GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 3.0;
- SDKROOT = iphoneos;
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 571A468B14DB0A1B007FEAC7 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = YES;
- COPY_PHASE_STRIP = NO;
- FRAMEWORK_SEARCH_PATHS = /Users/Shared/PhoneGap/Frameworks;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "ChildApp/ChildApp-Prefix.pch";
- GCC_PREPROCESSOR_DEFINITIONS = "PHONEGAP_FRAMEWORK=YES";
- INFOPLIST_FILE = "ChildApp/ChildApp-Info.plist";
- OTHER_LDFLAGS = (
- "-weak_framework",
- UIKit,
- "-weak_framework",
- AVFoundation,
- "-weak_framework",
- CoreMedia,
- "-weak_library",
- /usr/lib/libSystem.B.dylib,
- );
- PRODUCT_NAME = "$(TARGET_NAME)";
- TARGETED_DEVICE_FAMILY = "1,2";
- WRAPPER_EXTENSION = app;
- };
- name = Debug;
- };
- 571A468C14DB0A1B007FEAC7 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = YES;
- COPY_PHASE_STRIP = YES;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- FRAMEWORK_SEARCH_PATHS = /Users/Shared/PhoneGap/Frameworks;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "ChildApp/ChildApp-Prefix.pch";
- GCC_PREPROCESSOR_DEFINITIONS = "PHONEGAP_FRAMEWORK=YES";
- INFOPLIST_FILE = "ChildApp/ChildApp-Info.plist";
- OTHER_LDFLAGS = (
- "-weak_framework",
- UIKit,
- "-weak_framework",
- AVFoundation,
- "-weak_framework",
- CoreMedia,
- "-weak_library",
- /usr/lib/libSystem.B.dylib,
- );
- PRODUCT_NAME = "$(TARGET_NAME)";
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- WRAPPER_EXTENSION = app;
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 571A463214DB0A1A007FEAC7 /* Build configuration list for PBXProject "ChildApp" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 571A468814DB0A1B007FEAC7 /* Debug */,
- 571A468914DB0A1B007FEAC7 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 571A468A14DB0A1B007FEAC7 /* Build configuration list for PBXNativeTarget "ChildApp" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 571A468B14DB0A1B007FEAC7 /* Debug */,
- 571A468C14DB0A1B007FEAC7 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 571A462F14DB0A1A007FEAC7 /* Project object */;
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/ios-plist/SampleApp.xcodeproj/project.pbxproj
----------------------------------------------------------------------
diff --git a/test/projects/ios-plist/SampleApp.xcodeproj/project.pbxproj b/test/projects/ios-plist/SampleApp.xcodeproj/project.pbxproj
deleted file mode 100644
index a4d87f9..0000000
--- a/test/projects/ios-plist/SampleApp.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,498 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 571A464014DB0A1B007FEAC7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A463F14DB0A1B007FEAC7 /* Foundation.framework */; };
- 571A464214DB0A1B007FEAC7 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464114DB0A1B007FEAC7 /* UIKit.framework */; };
- 571A464414DB0A1B007FEAC7 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464314DB0A1B007FEAC7 /* CoreGraphics.framework */; };
- 571A464614DB0A1B007FEAC7 /* AddressBook.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464514DB0A1B007FEAC7 /* AddressBook.framework */; };
- 571A464814DB0A1B007FEAC7 /* AddressBookUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464714DB0A1B007FEAC7 /* AddressBookUI.framework */; };
- 571A464A14DB0A1B007FEAC7 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464914DB0A1B007FEAC7 /* AudioToolbox.framework */; };
- 571A464C14DB0A1B007FEAC7 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464B14DB0A1B007FEAC7 /* AVFoundation.framework */; };
- 571A464E14DB0A1B007FEAC7 /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464D14DB0A1B007FEAC7 /* CoreLocation.framework */; };
- 571A465014DB0A1B007FEAC7 /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464F14DB0A1B007FEAC7 /* MediaPlayer.framework */; };
- 571A465214DB0A1B007FEAC7 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A465114DB0A1B007FEAC7 /* QuartzCore.framework */; };
- 571A465414DB0A1B007FEAC7 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A465314DB0A1B007FEAC7 /* SystemConfiguration.framework */; };
- 571A465614DB0A1B007FEAC7 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A465514DB0A1B007FEAC7 /* MobileCoreServices.framework */; };
- 571A465814DB0A1B007FEAC7 /* CoreMedia.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A465714DB0A1B007FEAC7 /* CoreMedia.framework */; };
- 571A465E14DB0A1B007FEAC7 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 571A465C14DB0A1B007FEAC7 /* InfoPlist.strings */; };
- 571A466014DB0A1B007FEAC7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 571A465F14DB0A1B007FEAC7 /* main.m */; };
- 571A466314DB0A1B007FEAC7 /* PhoneGap.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A466214DB0A1B007FEAC7 /* PhoneGap.framework */; };
- 571A466814DB0A1B007FEAC7 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 571A466614DB0A1B007FEAC7 /* Localizable.strings */; };
- 571A466C14DB0A1B007FEAC7 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 571A466A14DB0A1B007FEAC7 /* Localizable.strings */; };
- 571A466F14DB0A1B007FEAC7 /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A466E14DB0A1B007FEAC7 /* icon.png */; };
- 571A467114DB0A1B007FEAC7 /* icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A467014DB0A1B007FEAC7 /* icon@2x.png */; };
- 571A467314DB0A1B007FEAC7 /* icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A467214DB0A1B007FEAC7 /* icon-72.png */; };
- 571A467614DB0A1B007FEAC7 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A467514DB0A1B007FEAC7 /* Default.png */; };
- 571A467814DB0A1B007FEAC7 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A467714DB0A1B007FEAC7 /* Default@2x.png */; };
- 571A467A14DB0A1B007FEAC7 /* Capture.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 571A467914DB0A1B007FEAC7 /* Capture.bundle */; };
- 571A467C14DB0A1B007FEAC7 /* PhoneGap.plist in Resources */ = {isa = PBXBuildFile; fileRef = 571A467B14DB0A1B007FEAC7 /* PhoneGap.plist */; };
- 571A468014DB0A1B007FEAC7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 571A467F14DB0A1B007FEAC7 /* AppDelegate.m */; };
- 571A468314DB0A1B007FEAC7 /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 571A468214DB0A1B007FEAC7 /* MainViewController.m */; };
- 571A468514DB0A1B007FEAC7 /* MainViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 571A468414DB0A1B007FEAC7 /* MainViewController.xib */; };
- 577FC36614DB0B620082BA7B /* www in Resources */ = {isa = PBXBuildFile; fileRef = 577FC36514DB0B620082BA7B /* www */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 571A463B14DB0A1B007FEAC7 /* ChildApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ChildApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 571A463F14DB0A1B007FEAC7 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
- 571A464114DB0A1B007FEAC7 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
- 571A464314DB0A1B007FEAC7 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
- 571A464514DB0A1B007FEAC7 /* AddressBook.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBook.framework; path = System/Library/Frameworks/AddressBook.framework; sourceTree = SDKROOT; };
- 571A464714DB0A1B007FEAC7 /* AddressBookUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBookUI.framework; path = System/Library/Frameworks/AddressBookUI.framework; sourceTree = SDKROOT; };
- 571A464914DB0A1B007FEAC7 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
- 571A464B14DB0A1B007FEAC7 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
- 571A464D14DB0A1B007FEAC7 /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
- 571A464F14DB0A1B007FEAC7 /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; };
- 571A465114DB0A1B007FEAC7 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
- 571A465314DB0A1B007FEAC7 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
- 571A465514DB0A1B007FEAC7 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
- 571A465714DB0A1B007FEAC7 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; };
- 571A465B14DB0A1B007FEAC7 /* ChildApp-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ChildApp-Info.plist"; sourceTree = "<group>"; };
- 571A465D14DB0A1B007FEAC7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
- 571A465F14DB0A1B007FEAC7 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
- 571A466114DB0A1B007FEAC7 /* ChildApp-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ChildApp-Prefix.pch"; sourceTree = "<group>"; };
- 571A466214DB0A1B007FEAC7 /* PhoneGap.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = PhoneGap.framework; path = /Users/Shared/PhoneGap/Frameworks/PhoneGap.framework; sourceTree = "<absolute>"; };
- 571A466714DB0A1B007FEAC7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = Resources/en.lproj/Localizable.strings; sourceTree = "<group>"; };
- 571A466B14DB0A1B007FEAC7 /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = Resources/es.lproj/Localizable.strings; sourceTree = "<group>"; };
- 571A466E14DB0A1B007FEAC7 /* icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = icon.png; path = Resources/icons/icon.png; sourceTree = "<group>"; };
- 571A467014DB0A1B007FEAC7 /* icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "icon@2x.png"; path = "Resources/icons/icon@2x.png"; sourceTree = "<group>"; };
- 571A467214DB0A1B007FEAC7 /* icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "icon-72.png"; path = "Resources/icons/icon-72.png"; sourceTree = "<group>"; };
- 571A467514DB0A1B007FEAC7 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Default.png; path = Resources/splash/Default.png; sourceTree = "<group>"; };
- 571A467714DB0A1B007FEAC7 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default@2x.png"; path = "Resources/splash/Default@2x.png"; sourceTree = "<group>"; };
- 571A467914DB0A1B007FEAC7 /* Capture.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = Capture.bundle; path = Resources/Capture.bundle; sourceTree = "<group>"; };
- 571A467B14DB0A1B007FEAC7 /* PhoneGap.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = PhoneGap.plist; sourceTree = "<group>"; };
- 571A467E14DB0A1B007FEAC7 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Classes/AppDelegate.h; sourceTree = "<group>"; };
- 571A467F14DB0A1B007FEAC7 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = Classes/AppDelegate.m; sourceTree = "<group>"; };
- 571A468114DB0A1B007FEAC7 /* MainViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MainViewController.h; path = Classes/MainViewController.h; sourceTree = "<group>"; };
- 571A468214DB0A1B007FEAC7 /* MainViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MainViewController.m; path = Classes/MainViewController.m; sourceTree = "<group>"; };
- 571A468414DB0A1B007FEAC7 /* MainViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = MainViewController.xib; path = Classes/MainViewController.xib; sourceTree = "<group>"; };
- 571A468714DB0A1B007FEAC7 /* README */ = {isa = PBXFileReference; lastKnownFileType = text; name = README; path = Plugins/README; sourceTree = "<group>"; };
- 577FC36514DB0B620082BA7B /* www */ = {isa = PBXFileReference; lastKnownFileType = folder; path = www; sourceTree = "<group>"; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 571A463514DB0A1B007FEAC7 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 571A464014DB0A1B007FEAC7 /* Foundation.framework in Frameworks */,
- 571A464214DB0A1B007FEAC7 /* UIKit.framework in Frameworks */,
- 571A464414DB0A1B007FEAC7 /* CoreGraphics.framework in Frameworks */,
- 571A464614DB0A1B007FEAC7 /* AddressBook.framework in Frameworks */,
- 571A464814DB0A1B007FEAC7 /* AddressBookUI.framework in Frameworks */,
- 571A464A14DB0A1B007FEAC7 /* AudioToolbox.framework in Frameworks */,
- 571A464C14DB0A1B007FEAC7 /* AVFoundation.framework in Frameworks */,
- 571A464E14DB0A1B007FEAC7 /* CoreLocation.framework in Frameworks */,
- 571A465014DB0A1B007FEAC7 /* MediaPlayer.framework in Frameworks */,
- 571A465214DB0A1B007FEAC7 /* QuartzCore.framework in Frameworks */,
- 571A465414DB0A1B007FEAC7 /* SystemConfiguration.framework in Frameworks */,
- 571A465614DB0A1B007FEAC7 /* MobileCoreServices.framework in Frameworks */,
- 571A465814DB0A1B007FEAC7 /* CoreMedia.framework in Frameworks */,
- 571A466314DB0A1B007FEAC7 /* PhoneGap.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 571A463814DB0A1B007FEAC7 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 571A462D14DB0A1A007FEAC7 = {
- isa = PBXGroup;
- children = (
- 577FC36514DB0B620082BA7B /* www */,
- 571A465914DB0A1B007FEAC7 /* ChildApp */,
- 571A463E14DB0A1B007FEAC7 /* Frameworks */,
- 571A463C14DB0A1B007FEAC7 /* Products */,
- );
- sourceTree = "<group>";
- };
- 571A463C14DB0A1B007FEAC7 /* Products */ = {
- isa = PBXGroup;
- children = (
- 571A463B14DB0A1B007FEAC7 /* ChildApp.app */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 571A463E14DB0A1B007FEAC7 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 571A463F14DB0A1B007FEAC7 /* Foundation.framework */,
- 571A464114DB0A1B007FEAC7 /* UIKit.framework */,
- 571A464314DB0A1B007FEAC7 /* CoreGraphics.framework */,
- 571A464514DB0A1B007FEAC7 /* AddressBook.framework */,
- 571A464714DB0A1B007FEAC7 /* AddressBookUI.framework */,
- 571A464914DB0A1B007FEAC7 /* AudioToolbox.framework */,
- 571A464B14DB0A1B007FEAC7 /* AVFoundation.framework */,
- 571A464D14DB0A1B007FEAC7 /* CoreLocation.framework */,
- 571A464F14DB0A1B007FEAC7 /* MediaPlayer.framework */,
- 571A465114DB0A1B007FEAC7 /* QuartzCore.framework */,
- 571A465314DB0A1B007FEAC7 /* SystemConfiguration.framework */,
- 571A465514DB0A1B007FEAC7 /* MobileCoreServices.framework */,
- 571A465714DB0A1B007FEAC7 /* CoreMedia.framework */,
- );
- name = Frameworks;
- sourceTree = "<group>";
- };
- 571A465914DB0A1B007FEAC7 /* ChildApp */ = {
- isa = PBXGroup;
- children = (
- 571A466214DB0A1B007FEAC7 /* PhoneGap.framework */,
- 571A466414DB0A1B007FEAC7 /* Resources */,
- 571A467D14DB0A1B007FEAC7 /* Classes */,
- 571A468614DB0A1B007FEAC7 /* Plugins */,
- 571A465A14DB0A1B007FEAC7 /* Supporting Files */,
- );
- path = ChildApp;
- sourceTree = "<group>";
- };
- 571A465A14DB0A1B007FEAC7 /* Supporting Files */ = {
- isa = PBXGroup;
- children = (
- 571A465B14DB0A1B007FEAC7 /* ChildApp-Info.plist */,
- 571A465C14DB0A1B007FEAC7 /* InfoPlist.strings */,
- 571A465F14DB0A1B007FEAC7 /* main.m */,
- 571A466114DB0A1B007FEAC7 /* ChildApp-Prefix.pch */,
- 571A467B14DB0A1B007FEAC7 /* PhoneGap.plist */,
- 571A468414DB0A1B007FEAC7 /* MainViewController.xib */,
- );
- name = "Supporting Files";
- sourceTree = "<group>";
- };
- 571A466414DB0A1B007FEAC7 /* Resources */ = {
- isa = PBXGroup;
- children = (
- 571A467914DB0A1B007FEAC7 /* Capture.bundle */,
- 571A466514DB0A1B007FEAC7 /* en.lproj */,
- 571A466914DB0A1B007FEAC7 /* es.lproj */,
- 571A466D14DB0A1B007FEAC7 /* icons */,
- 571A467414DB0A1B007FEAC7 /* splash */,
- );
- name = Resources;
- sourceTree = "<group>";
- };
- 571A466514DB0A1B007FEAC7 /* en.lproj */ = {
- isa = PBXGroup;
- children = (
- 571A466614DB0A1B007FEAC7 /* Localizable.strings */,
- );
- name = en.lproj;
- sourceTree = "<group>";
- };
- 571A466914DB0A1B007FEAC7 /* es.lproj */ = {
- isa = PBXGroup;
- children = (
- 571A466A14DB0A1B007FEAC7 /* Localizable.strings */,
- );
- name = es.lproj;
- sourceTree = "<group>";
- };
- 571A466D14DB0A1B007FEAC7 /* icons */ = {
- isa = PBXGroup;
- children = (
- 571A466E14DB0A1B007FEAC7 /* icon.png */,
- 571A467014DB0A1B007FEAC7 /* icon@2x.png */,
- 571A467214DB0A1B007FEAC7 /* icon-72.png */,
- );
- name = icons;
- sourceTree = "<group>";
- };
- 571A467414DB0A1B007FEAC7 /* splash */ = {
- isa = PBXGroup;
- children = (
- 571A467514DB0A1B007FEAC7 /* Default.png */,
- 571A467714DB0A1B007FEAC7 /* Default@2x.png */,
- );
- name = splash;
- sourceTree = "<group>";
- };
- 571A467D14DB0A1B007FEAC7 /* Classes */ = {
- isa = PBXGroup;
- children = (
- 571A467E14DB0A1B007FEAC7 /* AppDelegate.h */,
- 571A467F14DB0A1B007FEAC7 /* AppDelegate.m */,
- 571A468114DB0A1B007FEAC7 /* MainViewController.h */,
- 571A468214DB0A1B007FEAC7 /* MainViewController.m */,
- );
- name = Classes;
- sourceTree = "<group>";
- };
- 571A468614DB0A1B007FEAC7 /* Plugins */ = {
- isa = PBXGroup;
- children = (
- 571A468714DB0A1B007FEAC7 /* README */,
- );
- name = Plugins;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 571A463A14DB0A1B007FEAC7 /* ChildApp */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 571A468A14DB0A1B007FEAC7 /* Build configuration list for PBXNativeTarget "ChildApp" */;
- buildPhases = (
- 571A463414DB0A1B007FEAC7 /* Sources */,
- 571A463514DB0A1B007FEAC7 /* Frameworks */,
- 571A463614DB0A1B007FEAC7 /* Resources */,
- 571A463714DB0A1B007FEAC7 /* Sources */,
- 571A463814DB0A1B007FEAC7 /* Frameworks */,
- 571A463914DB0A1B007FEAC7 /* ShellScript */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = ChildApp;
- productName = ChildApp;
- productReference = 571A463B14DB0A1B007FEAC7 /* ChildApp.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 571A462F14DB0A1A007FEAC7 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 0420;
- };
- buildConfigurationList = 571A463214DB0A1A007FEAC7 /* Build configuration list for PBXProject "ChildApp" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- es,
- );
- mainGroup = 571A462D14DB0A1A007FEAC7;
- productRefGroup = 571A463C14DB0A1B007FEAC7 /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 571A463A14DB0A1B007FEAC7 /* ChildApp */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 571A463614DB0A1B007FEAC7 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 571A465E14DB0A1B007FEAC7 /* InfoPlist.strings in Resources */,
- 571A466814DB0A1B007FEAC7 /* Localizable.strings in Resources */,
- 571A466C14DB0A1B007FEAC7 /* Localizable.strings in Resources */,
- 571A466F14DB0A1B007FEAC7 /* icon.png in Resources */,
- 571A467114DB0A1B007FEAC7 /* icon@2x.png in Resources */,
- 571A467314DB0A1B007FEAC7 /* icon-72.png in Resources */,
- 571A467614DB0A1B007FEAC7 /* Default.png in Resources */,
- 571A467814DB0A1B007FEAC7 /* Default@2x.png in Resources */,
- 571A467A14DB0A1B007FEAC7 /* Capture.bundle in Resources */,
- 571A467C14DB0A1B007FEAC7 /* PhoneGap.plist in Resources */,
- 571A468514DB0A1B007FEAC7 /* MainViewController.xib in Resources */,
- 577FC36614DB0B620082BA7B /* www in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 571A463914DB0A1B007FEAC7 /* ShellScript */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/bash;
- shellScript = "\n\t\t\t\t\t\t\t\tif [ ! -d \"$PROJECT_DIR/www\" ] ; then\n\t\t\t\t\t\t\t\t\tcp -R /Users/Shared/PhoneGap/Frameworks/PhoneGap.framework/www \"$PROJECT_DIR\"\n\t\t\t\t\t\t\t\tfi\n\t\t\t\t\t\t\t\t# detect www folder reference in project, if missing, print warning\n\t\t\t\t\t\t\t\tgrep \"{isa = PBXFileReference; lastKnownFileType = folder; path = www; sourceTree = \\\"<group>\\\"; };\" \"$PROJECT_DIR/$PROJECT_NAME.xcodeproj/project.pbxproj\"\n\t\t\t\t\t\t\t\trc=$? \n\t\t\t\t\t\t\t\tif [ $rc != 0 ] ; then\n\t\t\t\t\t\t\t\techo -e \"warning: Missing - Add $PROJECT_DIR/www as a folder reference in your project. Just drag and drop the folder into your project, into the Project Navigator of Xcode 4. Make sure you select the second radio-button: 'Create folder references for any added folders' (which will create a blue folder)\" 1>&2\n\t\t\t\t\t\t\t\tfi\t\t\t\t\t\t\t";
- };
-/* End PBXShellScriptBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 571A463414DB0A1B007FEAC7 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 571A466014DB0A1B007FEAC7 /* main.m in Sources */,
- 571A468014DB0A1B007FEAC7 /* AppDelegate.m in Sources */,
- 571A468314DB0A1B007FEAC7 /* MainViewController.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 571A463714DB0A1B007FEAC7 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
- 571A465C14DB0A1B007FEAC7 /* InfoPlist.strings */ = {
- isa = PBXVariantGroup;
- children = (
- 571A465D14DB0A1B007FEAC7 /* en */,
- );
- name = InfoPlist.strings;
- sourceTree = "<group>";
- };
- 571A466614DB0A1B007FEAC7 /* Localizable.strings */ = {
- isa = PBXVariantGroup;
- children = (
- 571A466714DB0A1B007FEAC7 /* en */,
- );
- name = Localizable.strings;
- sourceTree = "<group>";
- };
- 571A466A14DB0A1B007FEAC7 /* Localizable.strings */ = {
- isa = PBXVariantGroup;
- children = (
- 571A466B14DB0A1B007FEAC7 /* es */,
- );
- name = Localizable.strings;
- sourceTree = "<group>";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 571A468814DB0A1B007FEAC7 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CLANG_ENABLE_OBJC_ARC = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- 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_VERSION = com.apple.compilers.llvmgcc42;
- GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 3.0;
- SDKROOT = iphoneos;
- };
- name = Debug;
- };
- 571A468914DB0A1B007FEAC7 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CLANG_ENABLE_OBJC_ARC = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_VERSION = com.apple.compilers.llvmgcc42;
- GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 3.0;
- SDKROOT = iphoneos;
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 571A468B14DB0A1B007FEAC7 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = YES;
- COPY_PHASE_STRIP = NO;
- FRAMEWORK_SEARCH_PATHS = /Users/Shared/PhoneGap/Frameworks;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "ChildApp/ChildApp-Prefix.pch";
- GCC_PREPROCESSOR_DEFINITIONS = "PHONEGAP_FRAMEWORK=YES";
- INFOPLIST_FILE = "ChildApp/ChildApp-Info.plist";
- OTHER_LDFLAGS = (
- "-weak_framework",
- UIKit,
- "-weak_framework",
- AVFoundation,
- "-weak_framework",
- CoreMedia,
- "-weak_library",
- /usr/lib/libSystem.B.dylib,
- );
- PRODUCT_NAME = "$(TARGET_NAME)";
- TARGETED_DEVICE_FAMILY = "1,2";
- WRAPPER_EXTENSION = app;
- };
- name = Debug;
- };
- 571A468C14DB0A1B007FEAC7 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = YES;
- COPY_PHASE_STRIP = YES;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- FRAMEWORK_SEARCH_PATHS = /Users/Shared/PhoneGap/Frameworks;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "ChildApp/ChildApp-Prefix.pch";
- GCC_PREPROCESSOR_DEFINITIONS = "PHONEGAP_FRAMEWORK=YES";
- INFOPLIST_FILE = "ChildApp/ChildApp-Info.plist";
- OTHER_LDFLAGS = (
- "-weak_framework",
- UIKit,
- "-weak_framework",
- AVFoundation,
- "-weak_framework",
- CoreMedia,
- "-weak_library",
- /usr/lib/libSystem.B.dylib,
- );
- PRODUCT_NAME = "$(TARGET_NAME)";
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- WRAPPER_EXTENSION = app;
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 571A463214DB0A1A007FEAC7 /* Build configuration list for PBXProject "ChildApp" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 571A468814DB0A1B007FEAC7 /* Debug */,
- 571A468914DB0A1B007FEAC7 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 571A468A14DB0A1B007FEAC7 /* Build configuration list for PBXNativeTarget "ChildApp" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 571A468B14DB0A1B007FEAC7 /* Debug */,
- 571A468C14DB0A1B007FEAC7 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 571A462F14DB0A1A007FEAC7 /* Project object */;
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/ios-plist/SampleApp/PhoneGap.plist
----------------------------------------------------------------------
diff --git a/test/projects/ios-plist/SampleApp/PhoneGap.plist b/test/projects/ios-plist/SampleApp/PhoneGap.plist
deleted file mode 100644
index 5ffe25e..0000000
--- a/test/projects/ios-plist/SampleApp/PhoneGap.plist
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>TopActivityIndicator</key>
- <string>gray</string>
- <key>EnableLocation</key>
- <false/>
- <key>EnableViewportScale</key>
- <false/>
- <key>AutoHideSplashScreen</key>
- <true/>
- <key>ShowSplashScreenSpinner</key>
- <true/>
- <key>MediaPlaybackRequiresUserAction</key>
- <false/>
- <key>AllowInlineMediaPlayback</key>
- <false/>
- <key>OpenAllWhitelistURLsInWebView</key>
- <false/>
- <key>ExternalHosts</key>
- <array/>
- <key>Plugins</key>
- <dict>
- <key>com.phonegap.accelerometer</key>
- <string>PGAccelerometer</string>
- <key>com.phonegap.camera</key>
- <string>PGCamera</string>
- <key>com.phonegap.connection</key>
- <string>PGConnection</string>
- <key>com.phonegap.contacts</key>
- <string>PGContacts</string>
- <key>com.phonegap.debugconsole</key>
- <string>PGDebugConsole</string>
- <key>com.phonegap.file</key>
- <string>PGFile</string>
- <key>com.phonegap.filetransfer</key>
- <string>PGFileTransfer</string>
- <key>com.phonegap.geolocation</key>
- <string>PGLocation</string>
- <key>com.phonegap.notification</key>
- <string>PGNotification</string>
- <key>com.phonegap.media</key>
- <string>PGSound</string>
- <key>com.phonegap.mediacapture</key>
- <string>PGCapture</string>
- <key>com.phonegap.splashscreen</key>
- <string>PGSplashScreen</string>
- <key>com.phonegap.battery</key>
- <string>PGBattery</string>
- </dict>
-</dict>
-</plist>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/ios-plist/SampleApp/SampleApp-Info.plist
----------------------------------------------------------------------
diff --git a/test/projects/ios-plist/SampleApp/SampleApp-Info.plist b/test/projects/ios-plist/SampleApp/SampleApp-Info.plist
deleted file mode 100644
index 08b9ee3..0000000
--- a/test/projects/ios-plist/SampleApp/SampleApp-Info.plist
+++ /dev/null
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<!--
-#
-# 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.
-#
--->
-<plist version="1.0">
-<dict>
- <key>CFBundleIcons</key>
- <dict>
- <key>CFBundlePrimaryIcon</key>
- <dict>
- <key>CFBundleIconFiles</key>
- <array>
- <string>icon.png</string>
- <string>icon@2x.png</string>
- <string>icon-72.png</string>
- <string>icon-72@2x.png</string>
- </array>
- <key>UIPrerenderedIcon</key>
- <false/>
- </dict>
- </dict>
- <key>UISupportedInterfaceOrientations~ipad</key>
- <array>
- <string>UIInterfaceOrientationPortrait</string>
- <string>UIInterfaceOrientationLandscapeLeft</string>
- <string>UIInterfaceOrientationPortraitUpsideDown</string>
- <string>UIInterfaceOrientationLandscapeRight</string>
- </array>
- <key>UISupportedInterfaceOrientations</key>
- <array>
- <string>UIInterfaceOrientationPortrait</string>
- </array>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleDisplayName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundleExecutable</key>
- <string>${EXECUTABLE_NAME}</string>
- <key>CFBundleIconFile</key>
- <string>icon.png</string>
- <key>CFBundleIdentifier</key>
- <string>com.example.friendstring</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>1.0</string>
- <key>LSRequiresIPhoneOS</key>
- <true/>
- <key>NSMainNibFile</key>
- <string></string>
- <key>NSMainNibFile~ipad</key>
- <string></string>
- <key>AppId</key>
- <string>$APP_ID</string>
-</dict>
-</plist>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/ios-plist/www/.gitkeep
----------------------------------------------------------------------
diff --git a/test/projects/ios-plist/www/.gitkeep b/test/projects/ios-plist/www/.gitkeep
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/multiple-children/AndroidManifest.xml
----------------------------------------------------------------------
diff --git a/test/projects/multiple-children/AndroidManifest.xml b/test/projects/multiple-children/AndroidManifest.xml
deleted file mode 100644
index 0c52803..0000000
--- a/test/projects/multiple-children/AndroidManifest.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-
- Copyright 2013 Anis Kadri
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-
-<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:windowSoftInputMode="adjustPan"
- package="com.alunny.childapp" android:versionName="1.1" android:versionCode="5">
- <supports-screens
- android:largeScreens="true"
- android:normalScreens="true"
- android:smallScreens="true"
- android:xlargeScreens="true"
- android:resizeable="true"
- android:anyDensity="true"
- />
-
- <uses-permission android:name="android.permission.CAMERA" />
- <uses-permission android:name="android.permission.VIBRATE" />
- <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
- <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
- <uses-permission android:name="android.permission.INTERNET" />
- <uses-permission android:name="android.permission.RECEIVE_SMS" />
- <uses-permission android:name="android.permission.RECORD_AUDIO" />
- <uses-permission android:name="android.permission.RECORD_VIDEO"/>
- <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
- <uses-permission android:name="android.permission.READ_CONTACTS" />
- <uses-permission android:name="android.permission.WRITE_CONTACTS" />
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
- <uses-permission android:name="android.permission.GET_ACCOUNTS" />
- <uses-permission android:name="android.permission.BROADCAST_STICKY" />
-
- <uses-feature android:name="android.hardware.camera" />
- <uses-feature android:name="android.hardware.camera.autofocus" />
-
- <application android:icon="@drawable/icon" android:label="@string/app_name"
- android:debuggable="true">
- <activity android:name="ChildApp" android:label="@string/app_name"
- android:configChanges="orientation|keyboardHidden">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- <activity android:name="com.phonegap.DroidGap" android:label="@string/app_name"
- android:configChanges="orientation|keyboardHidden">
- <intent-filter>
- </intent-filter>
- </activity>
- </application>
-
- <uses-sdk android:minSdkVersion="5" />
-</manifest>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/multiple-children/res/xml/plugins.xml
----------------------------------------------------------------------
diff --git a/test/projects/multiple-children/res/xml/plugins.xml b/test/projects/multiple-children/res/xml/plugins.xml
deleted file mode 100644
index 9cee85e..0000000
--- a/test/projects/multiple-children/res/xml/plugins.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-
- Copyright 2013 Anis Kadri
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-
-<plugins>
- <plugin name="App" value="com.phonegap.App"/>
- <plugin name="Geolocation" value="com.phonegap.GeoBroker"/>
- <plugin name="Device" value="com.phonegap.Device"/>
- <plugin name="Accelerometer" value="com.phonegap.AccelListener"/>
- <plugin name="Compass" value="com.phonegap.CompassListener"/>
- <plugin name="Media" value="com.phonegap.AudioHandler"/>
- <plugin name="Camera" value="com.phonegap.CameraLauncher"/>
- <plugin name="Contacts" value="com.phonegap.ContactManager"/>
- <plugin name="Crypto" value="com.phonegap.CryptoHandler"/>
- <plugin name="File" value="com.phonegap.FileUtils"/>
- <plugin name="Network Status" value="com.phonegap.NetworkManager"/>
- <plugin name="Notification" value="com.phonegap.Notification"/>
- <plugin name="Storage" value="com.phonegap.Storage"/>
- <plugin name="Temperature" value="com.phonegap.TempListener"/>
- <plugin name="FileTransfer" value="com.phonegap.FileTransfer"/>
- <plugin name="Capture" value="com.phonegap.Capture"/>
-</plugins>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/www-only/.gitkeep
----------------------------------------------------------------------
diff --git a/test/projects/www-only/.gitkeep b/test/projects/www-only/.gitkeep
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/remote-test.js
----------------------------------------------------------------------
diff --git a/test/remote-test.js b/test/remote-test.js
deleted file mode 100644
index 17d549a..0000000
--- a/test/remote-test.js
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-var path = require('path'),
- temp_dir = require('osenv').tmpdir(),
- shell = require('shelljs'),
- plugins = require(path.join(__dirname, '..', 'util', 'plugins'));
-
-exports['should get plugin information from a remote source'] = function(test) {
- plugins.getPluginInfo('ChildBrowser', function(plugin) {
- test.equal('https://github.com/imhotep/ChildBrowser', plugin.url);
- test.equal('ChildBrowser', plugin.name);
- test.equal('ChildBrowser plugin', plugin.description);
- test.done();
- }, function() {
- test.ok(false);
- test.done();
- });
-}
-
-exports['should list all plugins from a remote source'] = function(test) {
- plugins.listAllPlugins(function(plugins) {
- test.ok(plugins != undefined);
- test.ok(plugins.length > 0);
- test.done();
- }, function() {
- test.ok(false);
- test.done();
- });
-}
-
-exports['should clone plugin git repository'] = function(test) {
- var plugins_dir = path.join(temp_dir, 'plugins');
- shell.mkdir('-p', plugins_dir);
-
- plugins.getPluginInfo('ChildBrowser', function(plugin) {
- var url;
- try {
- url = plugins.clonePluginGitRepo(plugin.url, plugins_dir);
- test.ok(url != undefined);
- } catch(e) {
- test.ok(false, 'Error while cloning plugin git repo: ' + e.message);
- }
- shell.rm('-rf', plugins_dir);
- test.done();
- }, function() {
- test.ok(false);
- test.done();
- });
-}
[06/10] remove old tests. jasmine migration complete
Posted by fi...@apache.org.
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/json/value.h
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/json/value.h b/test/plugins/cordova.echo/src/blackberry/public/json/value.h
deleted file mode 100644
index 58bfd88..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/json/value.h
+++ /dev/null
@@ -1,1069 +0,0 @@
-#ifndef CPPTL_JSON_H_INCLUDED
-# define CPPTL_JSON_H_INCLUDED
-
-# include "forwards.h"
-# include <string>
-# include <vector>
-
-# ifndef JSON_USE_CPPTL_SMALLMAP
-# include <map>
-# else
-# include <cpptl/smallmap.h>
-# endif
-# ifdef JSON_USE_CPPTL
-# include <cpptl/forwards.h>
-# endif
-
-/** \brief JSON (JavaScript Object Notation).
- */
-namespace Json {
-
- /** \brief Type of the value held by a Value object.
- */
- enum ValueType
- {
- nullValue = 0, ///< 'null' value
- intValue, ///< signed integer value
- uintValue, ///< unsigned integer value
- realValue, ///< double value
- stringValue, ///< UTF-8 string value
- booleanValue, ///< bool value
- arrayValue, ///< array value (ordered list)
- objectValue ///< object value (collection of name/value pairs).
- };
-
- enum CommentPlacement
- {
- commentBefore = 0, ///< a comment placed on the line before a value
- commentAfterOnSameLine, ///< a comment just after a value on the same line
- commentAfter, ///< a comment on the line after a value (only make sense for root value)
- numberOfCommentPlacement
- };
-
-//# ifdef JSON_USE_CPPTL
-// typedef CppTL::AnyEnumerator<const char *> EnumMemberNames;
-// typedef CppTL::AnyEnumerator<const Value &> EnumValues;
-//# endif
-
- /** \brief Lightweight wrapper to tag static string.
- *
- * Value constructor and objectValue member assignement takes advantage of the
- * StaticString and avoid the cost of string duplication when storing the
- * string or the member name.
- *
- * Example of usage:
- * \code
- * Json::Value aValue( StaticString("some text") );
- * Json::Value object;
- * static const StaticString code("code");
- * object[code] = 1234;
- * \endcode
- */
- class JSON_API StaticString
- {
- public:
- explicit StaticString( const char *czstring )
- : str_( czstring )
- {
- }
-
- operator const char *() const
- {
- return str_;
- }
-
- const char *c_str() const
- {
- return str_;
- }
-
- private:
- const char *str_;
- };
-
- /** \brief Represents a <a HREF="http://www.json.org">JSON</a> value.
- *
- * This class is a discriminated union wrapper that can represents a:
- * - signed integer [range: Value::minInt - Value::maxInt]
- * - unsigned integer (range: 0 - Value::maxUInt)
- * - double
- * - UTF-8 string
- * - boolean
- * - 'null'
- * - an ordered list of Value
- * - collection of name/value pairs (javascript object)
- *
- * The type of the held value is represented by a #ValueType and
- * can be obtained using type().
- *
- * values of an #objectValue or #arrayValue can be accessed using operator[]() methods.
- * Non const methods will automatically create the a #nullValue element
- * if it does not exist.
- * The sequence of an #arrayValue will be automatically resize and initialized
- * with #nullValue. resize() can be used to enlarge or truncate an #arrayValue.
- *
- * The get() methods can be used to obtanis default value in the case the required element
- * does not exist.
- *
- * It is possible to iterate over the list of a #objectValue values using
- * the getMemberNames() method.
- */
- class JSON_API Value
- {
- friend class ValueIteratorBase;
-# ifdef JSON_VALUE_USE_INTERNAL_MAP
- friend class ValueInternalLink;
- friend class ValueInternalMap;
-# endif
- public:
- typedef std::vector<std::string> Members;
- typedef ValueIterator iterator;
- typedef ValueConstIterator const_iterator;
- typedef Json::UInt UInt;
- typedef Json::Int Int;
- typedef UInt ArrayIndex;
-
- static const Value null;
- static const Int minInt;
- static const Int maxInt;
- static const UInt maxUInt;
-
- private:
-#ifndef JSONCPP_DOC_EXCLUDE_IMPLEMENTATION
-# ifndef JSON_VALUE_USE_INTERNAL_MAP
- class CZString
- {
- public:
- enum DuplicationPolicy
- {
- noDuplication = 0,
- duplicate,
- duplicateOnCopy
- };
- CZString( int index );
- CZString( const char *cstr, DuplicationPolicy allocate );
- CZString( const CZString &other );
- ~CZString();
- CZString &operator =( const CZString &other );
- bool operator<( const CZString &other ) const;
- bool operator==( const CZString &other ) const;
- int index() const;
- const char *c_str() const;
- bool isStaticString() const;
- private:
- void swap( CZString &other );
- const char *cstr_;
- int index_;
- };
-
- public:
-# ifndef JSON_USE_CPPTL_SMALLMAP
- typedef std::map<CZString, Value> ObjectValues;
-# else
- typedef CppTL::SmallMap<CZString, Value> ObjectValues;
-# endif // ifndef JSON_USE_CPPTL_SMALLMAP
-# endif // ifndef JSON_VALUE_USE_INTERNAL_MAP
-#endif // ifndef JSONCPP_DOC_EXCLUDE_IMPLEMENTATION
-
- public:
- /** \brief Create a default Value of the given type.
-
- This is a very useful constructor.
- To create an empty array, pass arrayValue.
- To create an empty object, pass objectValue.
- Another Value can then be set to this one by assignment.
- This is useful since clear() and resize() will not alter types.
-
- Examples:
- \code
- Json::Value null_value; // null
- Json::Value arr_value(Json::arrayValue); // []
- Json::Value obj_value(Json::objectValue); // {}
- \endcode
- */
- Value( ValueType type = nullValue );
- Value( Int value );
- Value( UInt value );
- Value( double value );
- Value( const char *value );
- Value( const char *beginValue, const char *endValue );
- /** \brief Constructs a value from a static string.
-
- * Like other value string constructor but do not duplicate the string for
- * internal storage. The given string must remain alive after the call to this
- * constructor.
- * Example of usage:
- * \code
- * Json::Value aValue( StaticString("some text") );
- * \endcode
- */
- Value( const StaticString &value );
- Value( const std::string &value );
-# ifdef JSON_USE_CPPTL
- Value( const CppTL::ConstString &value );
-# endif
- Value( bool value );
- Value( const Value &other );
- ~Value();
-
- Value &operator=( const Value &other );
- /// Swap values.
- /// \note Currently, comments are intentionally not swapped, for
- /// both logic and efficiency.
- void swap( Value &other );
-
- ValueType type() const;
-
- bool operator <( const Value &other ) const;
- bool operator <=( const Value &other ) const;
- bool operator >=( const Value &other ) const;
- bool operator >( const Value &other ) const;
-
- bool operator ==( const Value &other ) const;
- bool operator !=( const Value &other ) const;
-
- int compare( const Value &other );
-
- const char *asCString() const;
- std::string asString() const;
-# ifdef JSON_USE_CPPTL
- CppTL::ConstString asConstString() const;
-# endif
- Int asInt() const;
- UInt asUInt() const;
- double asDouble() const;
- bool asBool() const;
-
- bool isNull() const;
- bool isBool() const;
- bool isInt() const;
- bool isUInt() const;
- bool isIntegral() const;
- bool isDouble() const;
- bool isNumeric() const;
- bool isString() const;
- bool isArray() const;
- bool isObject() const;
-
- bool isConvertibleTo( ValueType other ) const;
-
- /// Number of values in array or object
- UInt size() const;
-
- /// \brief Return true if empty array, empty object, or null;
- /// otherwise, false.
- bool empty() const;
-
- /// Return isNull()
- bool operator!() const;
-
- /// Remove all object members and array elements.
- /// \pre type() is arrayValue, objectValue, or nullValue
- /// \post type() is unchanged
- void clear();
-
- /// Resize the array to size elements.
- /// New elements are initialized to null.
- /// May only be called on nullValue or arrayValue.
- /// \pre type() is arrayValue or nullValue
- /// \post type() is arrayValue
- void resize( UInt size );
-
- /// Access an array element (zero based index ).
- /// If the array contains less than index element, then null value are inserted
- /// in the array so that its size is index+1.
- /// (You may need to say 'value[0u]' to get your compiler to distinguish
- /// this from the operator[] which takes a string.)
- Value &operator[]( UInt index );
- /// Access an array element (zero based index )
- /// (You may need to say 'value[0u]' to get your compiler to distinguish
- /// this from the operator[] which takes a string.)
- const Value &operator[]( UInt index ) const;
- /// If the array contains at least index+1 elements, returns the element value,
- /// otherwise returns defaultValue.
- Value get( UInt index,
- const Value &defaultValue ) const;
- /// Return true if index < size().
- bool isValidIndex( UInt index ) const;
- /// \brief Append value to array at the end.
- ///
- /// Equivalent to jsonvalue[jsonvalue.size()] = value;
- Value &append( const Value &value );
-
- /// Access an object value by name, create a null member if it does not exist.
- Value &operator[]( const char *key );
- /// Access an object value by name, returns null if there is no member with that name.
- const Value &operator[]( const char *key ) const;
- /// Access an object value by name, create a null member if it does not exist.
- Value &operator[]( const std::string &key );
- /// Access an object value by name, returns null if there is no member with that name.
- const Value &operator[]( const std::string &key ) const;
- /** \brief Access an object value by name, create a null member if it does not exist.
-
- * If the object as no entry for that name, then the member name used to store
- * the new entry is not duplicated.
- * Example of use:
- * \code
- * Json::Value object;
- * static const StaticString code("code");
- * object[code] = 1234;
- * \endcode
- */
- Value &operator[]( const StaticString &key );
-# ifdef JSON_USE_CPPTL
- /// Access an object value by name, create a null member if it does not exist.
- Value &operator[]( const CppTL::ConstString &key );
- /// Access an object value by name, returns null if there is no member with that name.
- const Value &operator[]( const CppTL::ConstString &key ) const;
-# endif
- /// Return the member named key if it exist, defaultValue otherwise.
- Value get( const char *key,
- const Value &defaultValue ) const;
- /// Return the member named key if it exist, defaultValue otherwise.
- Value get( const std::string &key,
- const Value &defaultValue ) const;
-# ifdef JSON_USE_CPPTL
- /// Return the member named key if it exist, defaultValue otherwise.
- Value get( const CppTL::ConstString &key,
- const Value &defaultValue ) const;
-# endif
- /// \brief Remove and return the named member.
- ///
- /// Do nothing if it did not exist.
- /// \return the removed Value, or null.
- /// \pre type() is objectValue or nullValue
- /// \post type() is unchanged
- Value removeMember( const char* key );
- /// Same as removeMember(const char*)
- Value removeMember( const std::string &key );
-
- /// Return true if the object has a member named key.
- bool isMember( const char *key ) const;
- /// Return true if the object has a member named key.
- bool isMember( const std::string &key ) const;
-# ifdef JSON_USE_CPPTL
- /// Return true if the object has a member named key.
- bool isMember( const CppTL::ConstString &key ) const;
-# endif
-
- /// \brief Return a list of the member names.
- ///
- /// If null, return an empty list.
- /// \pre type() is objectValue or nullValue
- /// \post if type() was nullValue, it remains nullValue
- Members getMemberNames() const;
-
-//# ifdef JSON_USE_CPPTL
-// EnumMemberNames enumMemberNames() const;
-// EnumValues enumValues() const;
-//# endif
-
- /// Comments must be //... or /* ... */
- void setComment( const char *comment,
- CommentPlacement placement );
- /// Comments must be //... or /* ... */
- void setComment( const std::string &comment,
- CommentPlacement placement );
- bool hasComment( CommentPlacement placement ) const;
- /// Include delimiters and embedded newlines.
- std::string getComment( CommentPlacement placement ) const;
-
- std::string toStyledString() const;
-
- const_iterator begin() const;
- const_iterator end() const;
-
- iterator begin();
- iterator end();
-
- private:
- Value &resolveReference( const char *key,
- bool isStatic );
-
-# ifdef JSON_VALUE_USE_INTERNAL_MAP
- inline bool isItemAvailable() const
- {
- return itemIsUsed_ == 0;
- }
-
- inline void setItemUsed( bool isUsed = true )
- {
- itemIsUsed_ = isUsed ? 1 : 0;
- }
-
- inline bool isMemberNameStatic() const
- {
- return memberNameIsStatic_ == 0;
- }
-
- inline void setMemberNameIsStatic( bool isStatic )
- {
- memberNameIsStatic_ = isStatic ? 1 : 0;
- }
-# endif // # ifdef JSON_VALUE_USE_INTERNAL_MAP
-
- private:
- struct CommentInfo
- {
- CommentInfo();
- ~CommentInfo();
-
- void setComment( const char *text );
-
- char *comment_;
- };
-
- //struct MemberNamesTransform
- //{
- // typedef const char *result_type;
- // const char *operator()( const CZString &name ) const
- // {
- // return name.c_str();
- // }
- //};
-
- union ValueHolder
- {
- Int int_;
- UInt uint_;
- double real_;
- bool bool_;
- char *string_;
-# ifdef JSON_VALUE_USE_INTERNAL_MAP
- ValueInternalArray *array_;
- ValueInternalMap *map_;
-#else
- ObjectValues *map_;
-# endif
- } value_;
- ValueType type_ : 8;
- int allocated_ : 1; // Notes: if declared as bool, bitfield is useless.
-# ifdef JSON_VALUE_USE_INTERNAL_MAP
- unsigned int itemIsUsed_ : 1; // used by the ValueInternalMap container.
- int memberNameIsStatic_ : 1; // used by the ValueInternalMap container.
-# endif
- CommentInfo *comments_;
- };
-
-
- /** \brief Experimental and untested: represents an element of the "path" to access a node.
- */
- class PathArgument
- {
- public:
- friend class Path;
-
- PathArgument();
- PathArgument( UInt index );
- PathArgument( const char *key );
- PathArgument( const std::string &key );
-
- private:
- enum Kind
- {
- kindNone = 0,
- kindIndex,
- kindKey
- };
- std::string key_;
- UInt index_;
- Kind kind_;
- };
-
- /** \brief Experimental and untested: represents a "path" to access a node.
- *
- * Syntax:
- * - "." => root node
- * - ".[n]" => elements at index 'n' of root node (an array value)
- * - ".name" => member named 'name' of root node (an object value)
- * - ".name1.name2.name3"
- * - ".[0][1][2].name1[3]"
- * - ".%" => member name is provided as parameter
- * - ".[%]" => index is provied as parameter
- */
- class Path
- {
- public:
- Path( const std::string &path,
- const PathArgument &a1 = PathArgument(),
- const PathArgument &a2 = PathArgument(),
- const PathArgument &a3 = PathArgument(),
- const PathArgument &a4 = PathArgument(),
- const PathArgument &a5 = PathArgument() );
-
- const Value &resolve( const Value &root ) const;
- Value resolve( const Value &root,
- const Value &defaultValue ) const;
- /// Creates the "path" to access the specified node and returns a reference on the node.
- Value &make( Value &root ) const;
-
- private:
- typedef std::vector<const PathArgument *> InArgs;
- typedef std::vector<PathArgument> Args;
-
- void makePath( const std::string &path,
- const InArgs &in );
- void addPathInArg( const std::string &path,
- const InArgs &in,
- InArgs::const_iterator &itInArg,
- PathArgument::Kind kind );
- void invalidPath( const std::string &path,
- int location );
-
- Args args_;
- };
-
- /** \brief Experimental do not use: Allocator to customize member name and string value memory management done by Value.
- *
- * - makeMemberName() and releaseMemberName() are called to respectively duplicate and
- * free an Json::objectValue member name.
- * - duplicateStringValue() and releaseStringValue() are called similarly to
- * duplicate and free a Json::stringValue value.
- */
- class ValueAllocator
- {
- public:
- enum { unknown = (unsigned)-1 };
-
- virtual ~ValueAllocator();
-
- virtual char *makeMemberName( const char *memberName ) = 0;
- virtual void releaseMemberName( char *memberName ) = 0;
- virtual char *duplicateStringValue( const char *value,
- unsigned int length = unknown ) = 0;
- virtual void releaseStringValue( char *value ) = 0;
- };
-
-#ifdef JSON_VALUE_USE_INTERNAL_MAP
- /** \brief Allocator to customize Value internal map.
- * Below is an example of a simple implementation (default implementation actually
- * use memory pool for speed).
- * \code
- class DefaultValueMapAllocator : public ValueMapAllocator
- {
- public: // overridden from ValueMapAllocator
- virtual ValueInternalMap *newMap()
- {
- return new ValueInternalMap();
- }
-
- virtual ValueInternalMap *newMapCopy( const ValueInternalMap &other )
- {
- return new ValueInternalMap( other );
- }
-
- virtual void destructMap( ValueInternalMap *map )
- {
- delete map;
- }
-
- virtual ValueInternalLink *allocateMapBuckets( unsigned int size )
- {
- return new ValueInternalLink[size];
- }
-
- virtual void releaseMapBuckets( ValueInternalLink *links )
- {
- delete [] links;
- }
-
- virtual ValueInternalLink *allocateMapLink()
- {
- return new ValueInternalLink();
- }
-
- virtual void releaseMapLink( ValueInternalLink *link )
- {
- delete link;
- }
- };
- * \endcode
- */
- class JSON_API ValueMapAllocator
- {
- public:
- virtual ~ValueMapAllocator();
- virtual ValueInternalMap *newMap() = 0;
- virtual ValueInternalMap *newMapCopy( const ValueInternalMap &other ) = 0;
- virtual void destructMap( ValueInternalMap *map ) = 0;
- virtual ValueInternalLink *allocateMapBuckets( unsigned int size ) = 0;
- virtual void releaseMapBuckets( ValueInternalLink *links ) = 0;
- virtual ValueInternalLink *allocateMapLink() = 0;
- virtual void releaseMapLink( ValueInternalLink *link ) = 0;
- };
-
- /** \brief ValueInternalMap hash-map bucket chain link (for internal use only).
- * \internal previous_ & next_ allows for bidirectional traversal.
- */
- class JSON_API ValueInternalLink
- {
- public:
- enum { itemPerLink = 6 }; // sizeof(ValueInternalLink) = 128 on 32 bits architecture.
- enum InternalFlags {
- flagAvailable = 0,
- flagUsed = 1
- };
-
- ValueInternalLink();
-
- ~ValueInternalLink();
-
- Value items_[itemPerLink];
- char *keys_[itemPerLink];
- ValueInternalLink *previous_;
- ValueInternalLink *next_;
- };
-
-
- /** \brief A linked page based hash-table implementation used internally by Value.
- * \internal ValueInternalMap is a tradional bucket based hash-table, with a linked
- * list in each bucket to handle collision. There is an addional twist in that
- * each node of the collision linked list is a page containing a fixed amount of
- * value. This provides a better compromise between memory usage and speed.
- *
- * Each bucket is made up of a chained list of ValueInternalLink. The last
- * link of a given bucket can be found in the 'previous_' field of the following bucket.
- * The last link of the last bucket is stored in tailLink_ as it has no following bucket.
- * Only the last link of a bucket may contains 'available' item. The last link always
- * contains at least one element unless is it the bucket one very first link.
- */
- class JSON_API ValueInternalMap
- {
- friend class ValueIteratorBase;
- friend class Value;
- public:
- typedef unsigned int HashKey;
- typedef unsigned int BucketIndex;
-
-# ifndef JSONCPP_DOC_EXCLUDE_IMPLEMENTATION
- struct IteratorState
- {
- IteratorState()
- : map_(0)
- , link_(0)
- , itemIndex_(0)
- , bucketIndex_(0)
- {
- }
- ValueInternalMap *map_;
- ValueInternalLink *link_;
- BucketIndex itemIndex_;
- BucketIndex bucketIndex_;
- };
-# endif // ifndef JSONCPP_DOC_EXCLUDE_IMPLEMENTATION
-
- ValueInternalMap();
- ValueInternalMap( const ValueInternalMap &other );
- ValueInternalMap &operator =( const ValueInternalMap &other );
- ~ValueInternalMap();
-
- void swap( ValueInternalMap &other );
-
- BucketIndex size() const;
-
- void clear();
-
- bool reserveDelta( BucketIndex growth );
-
- bool reserve( BucketIndex newItemCount );
-
- const Value *find( const char *key ) const;
-
- Value *find( const char *key );
-
- Value &resolveReference( const char *key,
- bool isStatic );
-
- void remove( const char *key );
-
- void doActualRemove( ValueInternalLink *link,
- BucketIndex index,
- BucketIndex bucketIndex );
-
- ValueInternalLink *&getLastLinkInBucket( BucketIndex bucketIndex );
-
- Value &setNewItem( const char *key,
- bool isStatic,
- ValueInternalLink *link,
- BucketIndex index );
-
- Value &unsafeAdd( const char *key,
- bool isStatic,
- HashKey hashedKey );
-
- HashKey hash( const char *key ) const;
-
- int compare( const ValueInternalMap &other ) const;
-
- private:
- void makeBeginIterator( IteratorState &it ) const;
- void makeEndIterator( IteratorState &it ) const;
- static bool equals( const IteratorState &x, const IteratorState &other );
- static void increment( IteratorState &iterator );
- static void incrementBucket( IteratorState &iterator );
- static void decrement( IteratorState &iterator );
- static const char *key( const IteratorState &iterator );
- static const char *key( const IteratorState &iterator, bool &isStatic );
- static Value &value( const IteratorState &iterator );
- static int distance( const IteratorState &x, const IteratorState &y );
-
- private:
- ValueInternalLink *buckets_;
- ValueInternalLink *tailLink_;
- BucketIndex bucketsSize_;
- BucketIndex itemCount_;
- };
-
- /** \brief A simplified deque implementation used internally by Value.
- * \internal
- * It is based on a list of fixed "page", each page contains a fixed number of items.
- * Instead of using a linked-list, a array of pointer is used for fast item look-up.
- * Look-up for an element is as follow:
- * - compute page index: pageIndex = itemIndex / itemsPerPage
- * - look-up item in page: pages_[pageIndex][itemIndex % itemsPerPage]
- *
- * Insertion is amortized constant time (only the array containing the index of pointers
- * need to be reallocated when items are appended).
- */
- class JSON_API ValueInternalArray
- {
- friend class Value;
- friend class ValueIteratorBase;
- public:
- enum { itemsPerPage = 8 }; // should be a power of 2 for fast divide and modulo.
- typedef Value::ArrayIndex ArrayIndex;
- typedef unsigned int PageIndex;
-
-# ifndef JSONCPP_DOC_EXCLUDE_IMPLEMENTATION
- struct IteratorState // Must be a POD
- {
- IteratorState()
- : array_(0)
- , currentPageIndex_(0)
- , currentItemIndex_(0)
- {
- }
- ValueInternalArray *array_;
- Value **currentPageIndex_;
- unsigned int currentItemIndex_;
- };
-# endif // ifndef JSONCPP_DOC_EXCLUDE_IMPLEMENTATION
-
- ValueInternalArray();
- ValueInternalArray( const ValueInternalArray &other );
- ValueInternalArray &operator =( const ValueInternalArray &other );
- ~ValueInternalArray();
- void swap( ValueInternalArray &other );
-
- void clear();
- void resize( ArrayIndex newSize );
-
- Value &resolveReference( ArrayIndex index );
-
- Value *find( ArrayIndex index ) const;
-
- ArrayIndex size() const;
-
- int compare( const ValueInternalArray &other ) const;
-
- private:
- static bool equals( const IteratorState &x, const IteratorState &other );
- static void increment( IteratorState &iterator );
- static void decrement( IteratorState &iterator );
- static Value &dereference( const IteratorState &iterator );
- static Value &unsafeDereference( const IteratorState &iterator );
- static int distance( const IteratorState &x, const IteratorState &y );
- static ArrayIndex indexOf( const IteratorState &iterator );
- void makeBeginIterator( IteratorState &it ) const;
- void makeEndIterator( IteratorState &it ) const;
- void makeIterator( IteratorState &it, ArrayIndex index ) const;
-
- void makeIndexValid( ArrayIndex index );
-
- Value **pages_;
- ArrayIndex size_;
- PageIndex pageCount_;
- };
-
- /** \brief Experimental: do not use. Allocator to customize Value internal array.
- * Below is an example of a simple implementation (actual implementation use
- * memory pool).
- \code
-class DefaultValueArrayAllocator : public ValueArrayAllocator
-{
-public: // overridden from ValueArrayAllocator
- virtual ~DefaultValueArrayAllocator()
- {
- }
-
- virtual ValueInternalArray *newArray()
- {
- return new ValueInternalArray();
- }
-
- virtual ValueInternalArray *newArrayCopy( const ValueInternalArray &other )
- {
- return new ValueInternalArray( other );
- }
-
- virtual void destruct( ValueInternalArray *array )
- {
- delete array;
- }
-
- virtual void reallocateArrayPageIndex( Value **&indexes,
- ValueInternalArray::PageIndex &indexCount,
- ValueInternalArray::PageIndex minNewIndexCount )
- {
- ValueInternalArray::PageIndex newIndexCount = (indexCount*3)/2 + 1;
- if ( minNewIndexCount > newIndexCount )
- newIndexCount = minNewIndexCount;
- void *newIndexes = realloc( indexes, sizeof(Value*) * newIndexCount );
- if ( !newIndexes )
- throw std::bad_alloc();
- indexCount = newIndexCount;
- indexes = static_cast<Value **>( newIndexes );
- }
- virtual void releaseArrayPageIndex( Value **indexes,
- ValueInternalArray::PageIndex indexCount )
- {
- if ( indexes )
- free( indexes );
- }
-
- virtual Value *allocateArrayPage()
- {
- return static_cast<Value *>( malloc( sizeof(Value) * ValueInternalArray::itemsPerPage ) );
- }
-
- virtual void releaseArrayPage( Value *value )
- {
- if ( value )
- free( value );
- }
-};
- \endcode
- */
- class JSON_API ValueArrayAllocator
- {
- public:
- virtual ~ValueArrayAllocator();
- virtual ValueInternalArray *newArray() = 0;
- virtual ValueInternalArray *newArrayCopy( const ValueInternalArray &other ) = 0;
- virtual void destructArray( ValueInternalArray *array ) = 0;
- /** \brief Reallocate array page index.
- * Reallocates an array of pointer on each page.
- * \param indexes [input] pointer on the current index. May be \c NULL.
- * [output] pointer on the new index of at least
- * \a minNewIndexCount pages.
- * \param indexCount [input] current number of pages in the index.
- * [output] number of page the reallocated index can handle.
- * \b MUST be >= \a minNewIndexCount.
- * \param minNewIndexCount Minimum number of page the new index must be able to
- * handle.
- */
- virtual void reallocateArrayPageIndex( Value **&indexes,
- ValueInternalArray::PageIndex &indexCount,
- ValueInternalArray::PageIndex minNewIndexCount ) = 0;
- virtual void releaseArrayPageIndex( Value **indexes,
- ValueInternalArray::PageIndex indexCount ) = 0;
- virtual Value *allocateArrayPage() = 0;
- virtual void releaseArrayPage( Value *value ) = 0;
- };
-#endif // #ifdef JSON_VALUE_USE_INTERNAL_MAP
-
-
- /** \brief base class for Value iterators.
- *
- */
- class ValueIteratorBase
- {
- public:
- typedef unsigned int size_t;
- typedef int difference_type;
- typedef ValueIteratorBase SelfType;
-
- ValueIteratorBase();
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- explicit ValueIteratorBase( const Value::ObjectValues::iterator ¤t );
-#else
- ValueIteratorBase( const ValueInternalArray::IteratorState &state );
- ValueIteratorBase( const ValueInternalMap::IteratorState &state );
-#endif
-
- bool operator ==( const SelfType &other ) const
- {
- return isEqual( other );
- }
-
- bool operator !=( const SelfType &other ) const
- {
- return !isEqual( other );
- }
-
- difference_type operator -( const SelfType &other ) const
- {
- return computeDistance( other );
- }
-
- /// Return either the index or the member name of the referenced value as a Value.
- Value key() const;
-
- /// Return the index of the referenced Value. -1 if it is not an arrayValue.
- UInt index() const;
-
- /// Return the member name of the referenced Value. "" if it is not an objectValue.
- const char *memberName() const;
-
- protected:
- Value &deref() const;
-
- void increment();
-
- void decrement();
-
- difference_type computeDistance( const SelfType &other ) const;
-
- bool isEqual( const SelfType &other ) const;
-
- void copy( const SelfType &other );
-
- private:
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- Value::ObjectValues::iterator current_;
- // Indicates that iterator is for a null value.
- bool isNull_;
-#else
- union
- {
- ValueInternalArray::IteratorState array_;
- ValueInternalMap::IteratorState map_;
- } iterator_;
- bool isArray_;
-#endif
- };
-
- /** \brief const iterator for object and array value.
- *
- */
- class ValueConstIterator : public ValueIteratorBase
- {
- friend class Value;
- public:
- typedef unsigned int size_t;
- typedef int difference_type;
- typedef const Value &reference;
- typedef const Value *pointer;
- typedef ValueConstIterator SelfType;
-
- ValueConstIterator();
- private:
- /*! \internal Use by Value to create an iterator.
- */
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- explicit ValueConstIterator( const Value::ObjectValues::iterator ¤t );
-#else
- ValueConstIterator( const ValueInternalArray::IteratorState &state );
- ValueConstIterator( const ValueInternalMap::IteratorState &state );
-#endif
- public:
- SelfType &operator =( const ValueIteratorBase &other );
-
- SelfType operator++( int )
- {
- SelfType temp( *this );
- ++*this;
- return temp;
- }
-
- SelfType operator--( int )
- {
- SelfType temp( *this );
- --*this;
- return temp;
- }
-
- SelfType &operator--()
- {
- decrement();
- return *this;
- }
-
- SelfType &operator++()
- {
- increment();
- return *this;
- }
-
- reference operator *() const
- {
- return deref();
- }
- };
-
-
- /** \brief Iterator for object and array value.
- */
- class ValueIterator : public ValueIteratorBase
- {
- friend class Value;
- public:
- typedef unsigned int size_t;
- typedef int difference_type;
- typedef Value &reference;
- typedef Value *pointer;
- typedef ValueIterator SelfType;
-
- ValueIterator();
- ValueIterator( const ValueConstIterator &other );
- ValueIterator( const ValueIterator &other );
- private:
- /*! \internal Use by Value to create an iterator.
- */
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- explicit ValueIterator( const Value::ObjectValues::iterator ¤t );
-#else
- ValueIterator( const ValueInternalArray::IteratorState &state );
- ValueIterator( const ValueInternalMap::IteratorState &state );
-#endif
- public:
-
- SelfType &operator =( const SelfType &other );
-
- SelfType operator++( int )
- {
- SelfType temp( *this );
- ++*this;
- return temp;
- }
-
- SelfType operator--( int )
- {
- SelfType temp( *this );
- --*this;
- return temp;
- }
-
- SelfType &operator--()
- {
- decrement();
- return *this;
- }
-
- SelfType &operator++()
- {
- increment();
- return *this;
- }
-
- reference operator *() const
- {
- return deref();
- }
- };
-
-
-} // namespace Json
-
-
-#endif // CPPTL_JSON_H_INCLUDED
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/json/writer.h
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/json/writer.h b/test/plugins/cordova.echo/src/blackberry/public/json/writer.h
deleted file mode 100644
index 5f4b83b..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/json/writer.h
+++ /dev/null
@@ -1,174 +0,0 @@
-#ifndef JSON_WRITER_H_INCLUDED
-# define JSON_WRITER_H_INCLUDED
-
-# include "value.h"
-# include <vector>
-# include <string>
-# include <iostream>
-
-namespace Json {
-
- class Value;
-
- /** \brief Abstract class for writers.
- */
- class JSON_API Writer
- {
- public:
- virtual ~Writer();
-
- virtual std::string write( const Value &root ) = 0;
- };
-
- /** \brief Outputs a Value in <a HREF="http://www.json.org">JSON</a> format without formatting (not human friendly).
- *
- * The JSON document is written in a single line. It is not intended for 'human' consumption,
- * but may be usefull to support feature such as RPC where bandwith is limited.
- * \sa Reader, Value
- */
- class JSON_API FastWriter : public Writer
- {
- public:
- FastWriter();
- virtual ~FastWriter(){}
-
- void enableYAMLCompatibility();
-
- public: // overridden from Writer
- virtual std::string write( const Value &root );
-
- private:
- void writeValue( const Value &value );
-
- std::string document_;
- bool yamlCompatiblityEnabled_;
- };
-
- /** \brief Writes a Value in <a HREF="http://www.json.org">JSON</a> format in a human friendly way.
- *
- * The rules for line break and indent are as follow:
- * - Object value:
- * - if empty then print {} without indent and line break
- * - if not empty the print '{', line break & indent, print one value per line
- * and then unindent and line break and print '}'.
- * - Array value:
- * - if empty then print [] without indent and line break
- * - if the array contains no object value, empty array or some other value types,
- * and all the values fit on one lines, then print the array on a single line.
- * - otherwise, it the values do not fit on one line, or the array contains
- * object or non empty array, then print one value per line.
- *
- * If the Value have comments then they are outputed according to their #CommentPlacement.
- *
- * \sa Reader, Value, Value::setComment()
- */
- class JSON_API StyledWriter: public Writer
- {
- public:
- StyledWriter();
- virtual ~StyledWriter(){}
-
- public: // overridden from Writer
- /** \brief Serialize a Value in <a HREF="http://www.json.org">JSON</a> format.
- * \param root Value to serialize.
- * \return String containing the JSON document that represents the root value.
- */
- virtual std::string write( const Value &root );
-
- private:
- void writeValue( const Value &value );
- void writeArrayValue( const Value &value );
- bool isMultineArray( const Value &value );
- void pushValue( const std::string &value );
- void writeIndent();
- void writeWithIndent( const std::string &value );
- void indent();
- void unindent();
- void writeCommentBeforeValue( const Value &root );
- void writeCommentAfterValueOnSameLine( const Value &root );
- bool hasCommentForValue( const Value &value );
- static std::string normalizeEOL( const std::string &text );
-
- typedef std::vector<std::string> ChildValues;
-
- ChildValues childValues_;
- std::string document_;
- std::string indentString_;
- int rightMargin_;
- int indentSize_;
- bool addChildValues_;
- };
-
- /** \brief Writes a Value in <a HREF="http://www.json.org">JSON</a> format in a human friendly way,
- to a stream rather than to a string.
- *
- * The rules for line break and indent are as follow:
- * - Object value:
- * - if empty then print {} without indent and line break
- * - if not empty the print '{', line break & indent, print one value per line
- * and then unindent and line break and print '}'.
- * - Array value:
- * - if empty then print [] without indent and line break
- * - if the array contains no object value, empty array or some other value types,
- * and all the values fit on one lines, then print the array on a single line.
- * - otherwise, it the values do not fit on one line, or the array contains
- * object or non empty array, then print one value per line.
- *
- * If the Value have comments then they are outputed according to their #CommentPlacement.
- *
- * \param indentation Each level will be indented by this amount extra.
- * \sa Reader, Value, Value::setComment()
- */
- class JSON_API StyledStreamWriter
- {
- public:
- StyledStreamWriter( std::string indentation="\t" );
- ~StyledStreamWriter(){}
-
- public:
- /** \brief Serialize a Value in <a HREF="http://www.json.org">JSON</a> format.
- * \param out Stream to write to. (Can be ostringstream, e.g.)
- * \param root Value to serialize.
- * \note There is no point in deriving from Writer, since write() should not return a value.
- */
- void write( std::ostream &out, const Value &root );
-
- private:
- void writeValue( const Value &value );
- void writeArrayValue( const Value &value );
- bool isMultineArray( const Value &value );
- void pushValue( const std::string &value );
- void writeIndent();
- void writeWithIndent( const std::string &value );
- void indent();
- void unindent();
- void writeCommentBeforeValue( const Value &root );
- void writeCommentAfterValueOnSameLine( const Value &root );
- bool hasCommentForValue( const Value &value );
- static std::string normalizeEOL( const std::string &text );
-
- typedef std::vector<std::string> ChildValues;
-
- ChildValues childValues_;
- std::ostream* document_;
- std::string indentString_;
- int rightMargin_;
- std::string indentation_;
- bool addChildValues_;
- };
-
- std::string JSON_API valueToString( Int value );
- std::string JSON_API valueToString( UInt value );
- std::string JSON_API valueToString( double value );
- std::string JSON_API valueToString( bool value );
- std::string JSON_API valueToQuotedString( const char *value );
-
- /// \brief Output using the StyledStreamWriter.
- /// \see Json::operator>>()
- std::ostream& operator<<( std::ostream&, const Value &root );
-
-} // namespace Json
-
-
-
-#endif // JSON_WRITER_H_INCLUDED
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/json_batchallocator.h
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/json_batchallocator.h b/test/plugins/cordova.echo/src/blackberry/public/json_batchallocator.h
deleted file mode 100644
index 87ea5ed..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/json_batchallocator.h
+++ /dev/null
@@ -1,125 +0,0 @@
-#ifndef JSONCPP_BATCHALLOCATOR_H_INCLUDED
-# define JSONCPP_BATCHALLOCATOR_H_INCLUDED
-
-# include <stdlib.h>
-# include <assert.h>
-
-# ifndef JSONCPP_DOC_EXCLUDE_IMPLEMENTATION
-
-namespace Json {
-
-/* Fast memory allocator.
- *
- * This memory allocator allocates memory for a batch of object (specified by
- * the page size, the number of object in each page).
- *
- * It does not allow the destruction of a single object. All the allocated objects
- * can be destroyed at once. The memory can be either released or reused for future
- * allocation.
- *
- * The in-place new operator must be used to construct the object using the pointer
- * returned by allocate.
- */
-template<typename AllocatedType
- ,const unsigned int objectPerAllocation>
-class BatchAllocator
-{
-public:
- typedef AllocatedType Type;
-
- BatchAllocator( unsigned int objectsPerPage = 255 )
- : freeHead_( 0 )
- , objectsPerPage_( objectsPerPage )
- {
-// printf( "Size: %d => %s\n", sizeof(AllocatedType), typeid(AllocatedType).name() );
- assert( sizeof(AllocatedType) * objectPerAllocation >= sizeof(AllocatedType *) ); // We must be able to store a slist in the object free space.
- assert( objectsPerPage >= 16 );
- batches_ = allocateBatch( 0 ); // allocated a dummy page
- currentBatch_ = batches_;
- }
-
- ~BatchAllocator()
- {
- for ( BatchInfo *batch = batches_; batch; )
- {
- BatchInfo *nextBatch = batch->next_;
- free( batch );
- batch = nextBatch;
- }
- }
-
- /// allocate space for an array of objectPerAllocation object.
- /// @warning it is the responsability of the caller to call objects constructors.
- AllocatedType *allocate()
- {
- if ( freeHead_ ) // returns node from free list.
- {
- AllocatedType *object = freeHead_;
- freeHead_ = *(AllocatedType **)object;
- return object;
- }
- if ( currentBatch_->used_ == currentBatch_->end_ )
- {
- currentBatch_ = currentBatch_->next_;
- while ( currentBatch_ && currentBatch_->used_ == currentBatch_->end_ )
- currentBatch_ = currentBatch_->next_;
-
- if ( !currentBatch_ ) // no free batch found, allocate a new one
- {
- currentBatch_ = allocateBatch( objectsPerPage_ );
- currentBatch_->next_ = batches_; // insert at the head of the list
- batches_ = currentBatch_;
- }
- }
- AllocatedType *allocated = currentBatch_->used_;
- currentBatch_->used_ += objectPerAllocation;
- return allocated;
- }
-
- /// Release the object.
- /// @warning it is the responsability of the caller to actually destruct the object.
- void release( AllocatedType *object )
- {
- assert( object != 0 );
- *(AllocatedType **)object = freeHead_;
- freeHead_ = object;
- }
-
-private:
- struct BatchInfo
- {
- BatchInfo *next_;
- AllocatedType *used_;
- AllocatedType *end_;
- AllocatedType buffer_[objectPerAllocation];
- };
-
- // disabled copy constructor and assignement operator.
- BatchAllocator( const BatchAllocator & );
- void operator =( const BatchAllocator &);
-
- static BatchInfo *allocateBatch( unsigned int objectsPerPage )
- {
- const unsigned int mallocSize = sizeof(BatchInfo) - sizeof(AllocatedType)* objectPerAllocation
- + sizeof(AllocatedType) * objectPerAllocation * objectsPerPage;
- BatchInfo *batch = static_cast<BatchInfo*>( malloc( mallocSize ) );
- batch->next_ = 0;
- batch->used_ = batch->buffer_;
- batch->end_ = batch->buffer_ + objectsPerPage;
- return batch;
- }
-
- BatchInfo *batches_;
- BatchInfo *currentBatch_;
- /// Head of a single linked list within the allocated space of freeed object
- AllocatedType *freeHead_;
- unsigned int objectsPerPage_;
-};
-
-
-} // namespace Json
-
-# endif // ifndef JSONCPP_DOC_INCLUDE_IMPLEMENTATION
-
-#endif // JSONCPP_BATCHALLOCATOR_H_INCLUDED
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/json_internalarray.inl
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/json_internalarray.inl b/test/plugins/cordova.echo/src/blackberry/public/json_internalarray.inl
deleted file mode 100644
index 9b985d2..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/json_internalarray.inl
+++ /dev/null
@@ -1,448 +0,0 @@
-// included by json_value.cpp
-// everything is within Json namespace
-
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// class ValueInternalArray
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-
-ValueArrayAllocator::~ValueArrayAllocator()
-{
-}
-
-// //////////////////////////////////////////////////////////////////
-// class DefaultValueArrayAllocator
-// //////////////////////////////////////////////////////////////////
-#ifdef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
-class DefaultValueArrayAllocator : public ValueArrayAllocator
-{
-public: // overridden from ValueArrayAllocator
- virtual ~DefaultValueArrayAllocator()
- {
- }
-
- virtual ValueInternalArray *newArray()
- {
- return new ValueInternalArray();
- }
-
- virtual ValueInternalArray *newArrayCopy( const ValueInternalArray &other )
- {
- return new ValueInternalArray( other );
- }
-
- virtual void destructArray( ValueInternalArray *array )
- {
- delete array;
- }
-
- virtual void reallocateArrayPageIndex( Value **&indexes,
- ValueInternalArray::PageIndex &indexCount,
- ValueInternalArray::PageIndex minNewIndexCount )
- {
- ValueInternalArray::PageIndex newIndexCount = (indexCount*3)/2 + 1;
- if ( minNewIndexCount > newIndexCount )
- newIndexCount = minNewIndexCount;
- void *newIndexes = realloc( indexes, sizeof(Value*) * newIndexCount );
- if ( !newIndexes )
- throw std::bad_alloc();
- indexCount = newIndexCount;
- indexes = static_cast<Value **>( newIndexes );
- }
- virtual void releaseArrayPageIndex( Value **indexes,
- ValueInternalArray::PageIndex indexCount )
- {
- if ( indexes )
- free( indexes );
- }
-
- virtual Value *allocateArrayPage()
- {
- return static_cast<Value *>( malloc( sizeof(Value) * ValueInternalArray::itemsPerPage ) );
- }
-
- virtual void releaseArrayPage( Value *value )
- {
- if ( value )
- free( value );
- }
-};
-
-#else // #ifdef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
-/// @todo make this thread-safe (lock when accessign batch allocator)
-class DefaultValueArrayAllocator : public ValueArrayAllocator
-{
-public: // overridden from ValueArrayAllocator
- virtual ~DefaultValueArrayAllocator()
- {
- }
-
- virtual ValueInternalArray *newArray()
- {
- ValueInternalArray *array = arraysAllocator_.allocate();
- new (array) ValueInternalArray(); // placement new
- return array;
- }
-
- virtual ValueInternalArray *newArrayCopy( const ValueInternalArray &other )
- {
- ValueInternalArray *array = arraysAllocator_.allocate();
- new (array) ValueInternalArray( other ); // placement new
- return array;
- }
-
- virtual void destructArray( ValueInternalArray *array )
- {
- if ( array )
- {
- array->~ValueInternalArray();
- arraysAllocator_.release( array );
- }
- }
-
- virtual void reallocateArrayPageIndex( Value **&indexes,
- ValueInternalArray::PageIndex &indexCount,
- ValueInternalArray::PageIndex minNewIndexCount )
- {
- ValueInternalArray::PageIndex newIndexCount = (indexCount*3)/2 + 1;
- if ( minNewIndexCount > newIndexCount )
- newIndexCount = minNewIndexCount;
- void *newIndexes = realloc( indexes, sizeof(Value*) * newIndexCount );
- if ( !newIndexes )
- throw std::bad_alloc();
- indexCount = newIndexCount;
- indexes = static_cast<Value **>( newIndexes );
- }
- virtual void releaseArrayPageIndex( Value **indexes,
- ValueInternalArray::PageIndex indexCount )
- {
- if ( indexes )
- free( indexes );
- }
-
- virtual Value *allocateArrayPage()
- {
- return static_cast<Value *>( pagesAllocator_.allocate() );
- }
-
- virtual void releaseArrayPage( Value *value )
- {
- if ( value )
- pagesAllocator_.release( value );
- }
-private:
- BatchAllocator<ValueInternalArray,1> arraysAllocator_;
- BatchAllocator<Value,ValueInternalArray::itemsPerPage> pagesAllocator_;
-};
-#endif // #ifdef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
-
-static ValueArrayAllocator *&arrayAllocator()
-{
- static DefaultValueArrayAllocator defaultAllocator;
- static ValueArrayAllocator *arrayAllocator = &defaultAllocator;
- return arrayAllocator;
-}
-
-static struct DummyArrayAllocatorInitializer {
- DummyArrayAllocatorInitializer()
- {
- arrayAllocator(); // ensure arrayAllocator() statics are initialized before main().
- }
-} dummyArrayAllocatorInitializer;
-
-// //////////////////////////////////////////////////////////////////
-// class ValueInternalArray
-// //////////////////////////////////////////////////////////////////
-bool
-ValueInternalArray::equals( const IteratorState &x,
- const IteratorState &other )
-{
- return x.array_ == other.array_
- && x.currentItemIndex_ == other.currentItemIndex_
- && x.currentPageIndex_ == other.currentPageIndex_;
-}
-
-
-void
-ValueInternalArray::increment( IteratorState &it )
-{
- JSON_ASSERT_MESSAGE( it.array_ &&
- (it.currentPageIndex_ - it.array_->pages_)*itemsPerPage + it.currentItemIndex_
- != it.array_->size_,
- "ValueInternalArray::increment(): moving iterator beyond end" );
- ++(it.currentItemIndex_);
- if ( it.currentItemIndex_ == itemsPerPage )
- {
- it.currentItemIndex_ = 0;
- ++(it.currentPageIndex_);
- }
-}
-
-
-void
-ValueInternalArray::decrement( IteratorState &it )
-{
- JSON_ASSERT_MESSAGE( it.array_ && it.currentPageIndex_ == it.array_->pages_
- && it.currentItemIndex_ == 0,
- "ValueInternalArray::decrement(): moving iterator beyond end" );
- if ( it.currentItemIndex_ == 0 )
- {
- it.currentItemIndex_ = itemsPerPage-1;
- --(it.currentPageIndex_);
- }
- else
- {
- --(it.currentItemIndex_);
- }
-}
-
-
-Value &
-ValueInternalArray::unsafeDereference( const IteratorState &it )
-{
- return (*(it.currentPageIndex_))[it.currentItemIndex_];
-}
-
-
-Value &
-ValueInternalArray::dereference( const IteratorState &it )
-{
- JSON_ASSERT_MESSAGE( it.array_ &&
- (it.currentPageIndex_ - it.array_->pages_)*itemsPerPage + it.currentItemIndex_
- < it.array_->size_,
- "ValueInternalArray::dereference(): dereferencing invalid iterator" );
- return unsafeDereference( it );
-}
-
-void
-ValueInternalArray::makeBeginIterator( IteratorState &it ) const
-{
- it.array_ = const_cast<ValueInternalArray *>( this );
- it.currentItemIndex_ = 0;
- it.currentPageIndex_ = pages_;
-}
-
-
-void
-ValueInternalArray::makeIterator( IteratorState &it, ArrayIndex index ) const
-{
- it.array_ = const_cast<ValueInternalArray *>( this );
- it.currentItemIndex_ = index % itemsPerPage;
- it.currentPageIndex_ = pages_ + index / itemsPerPage;
-}
-
-
-void
-ValueInternalArray::makeEndIterator( IteratorState &it ) const
-{
- makeIterator( it, size_ );
-}
-
-
-ValueInternalArray::ValueInternalArray()
- : pages_( 0 )
- , size_( 0 )
- , pageCount_( 0 )
-{
-}
-
-
-ValueInternalArray::ValueInternalArray( const ValueInternalArray &other )
- : pages_( 0 )
- , pageCount_( 0 )
- , size_( other.size_ )
-{
- PageIndex minNewPages = other.size_ / itemsPerPage;
- arrayAllocator()->reallocateArrayPageIndex( pages_, pageCount_, minNewPages );
- JSON_ASSERT_MESSAGE( pageCount_ >= minNewPages,
- "ValueInternalArray::reserve(): bad reallocation" );
- IteratorState itOther;
- other.makeBeginIterator( itOther );
- Value *value;
- for ( ArrayIndex index = 0; index < size_; ++index, increment(itOther) )
- {
- if ( index % itemsPerPage == 0 )
- {
- PageIndex pageIndex = index / itemsPerPage;
- value = arrayAllocator()->allocateArrayPage();
- pages_[pageIndex] = value;
- }
- new (value) Value( dereference( itOther ) );
- }
-}
-
-
-ValueInternalArray &
-ValueInternalArray::operator =( const ValueInternalArray &other )
-{
- ValueInternalArray temp( other );
- swap( temp );
- return *this;
-}
-
-
-ValueInternalArray::~ValueInternalArray()
-{
- // destroy all constructed items
- IteratorState it;
- IteratorState itEnd;
- makeBeginIterator( it);
- makeEndIterator( itEnd );
- for ( ; !equals(it,itEnd); increment(it) )
- {
- Value *value = &dereference(it);
- value->~Value();
- }
- // release all pages
- PageIndex lastPageIndex = size_ / itemsPerPage;
- for ( PageIndex pageIndex = 0; pageIndex < lastPageIndex; ++pageIndex )
- arrayAllocator()->releaseArrayPage( pages_[pageIndex] );
- // release pages index
- arrayAllocator()->releaseArrayPageIndex( pages_, pageCount_ );
-}
-
-
-void
-ValueInternalArray::swap( ValueInternalArray &other )
-{
- Value **tempPages = pages_;
- pages_ = other.pages_;
- other.pages_ = tempPages;
- ArrayIndex tempSize = size_;
- size_ = other.size_;
- other.size_ = tempSize;
- PageIndex tempPageCount = pageCount_;
- pageCount_ = other.pageCount_;
- other.pageCount_ = tempPageCount;
-}
-
-void
-ValueInternalArray::clear()
-{
- ValueInternalArray dummy;
- swap( dummy );
-}
-
-
-void
-ValueInternalArray::resize( ArrayIndex newSize )
-{
- if ( newSize == 0 )
- clear();
- else if ( newSize < size_ )
- {
- IteratorState it;
- IteratorState itEnd;
- makeIterator( it, newSize );
- makeIterator( itEnd, size_ );
- for ( ; !equals(it,itEnd); increment(it) )
- {
- Value *value = &dereference(it);
- value->~Value();
- }
- PageIndex pageIndex = (newSize + itemsPerPage - 1) / itemsPerPage;
- PageIndex lastPageIndex = size_ / itemsPerPage;
- for ( ; pageIndex < lastPageIndex; ++pageIndex )
- arrayAllocator()->releaseArrayPage( pages_[pageIndex] );
- size_ = newSize;
- }
- else if ( newSize > size_ )
- resolveReference( newSize );
-}
-
-
-void
-ValueInternalArray::makeIndexValid( ArrayIndex index )
-{
- // Need to enlarge page index ?
- if ( index >= pageCount_ * itemsPerPage )
- {
- PageIndex minNewPages = (index + 1) / itemsPerPage;
- arrayAllocator()->reallocateArrayPageIndex( pages_, pageCount_, minNewPages );
- JSON_ASSERT_MESSAGE( pageCount_ >= minNewPages, "ValueInternalArray::reserve(): bad reallocation" );
- }
-
- // Need to allocate new pages ?
- ArrayIndex nextPageIndex =
- (size_ % itemsPerPage) != 0 ? size_ - (size_%itemsPerPage) + itemsPerPage
- : size_;
- if ( nextPageIndex <= index )
- {
- PageIndex pageIndex = nextPageIndex / itemsPerPage;
- PageIndex pageToAllocate = (index - nextPageIndex) / itemsPerPage + 1;
- for ( ; pageToAllocate-- > 0; ++pageIndex )
- pages_[pageIndex] = arrayAllocator()->allocateArrayPage();
- }
-
- // Initialize all new entries
- IteratorState it;
- IteratorState itEnd;
- makeIterator( it, size_ );
- size_ = index + 1;
- makeIterator( itEnd, size_ );
- for ( ; !equals(it,itEnd); increment(it) )
- {
- Value *value = &dereference(it);
- new (value) Value(); // Construct a default value using placement new
- }
-}
-
-Value &
-ValueInternalArray::resolveReference( ArrayIndex index )
-{
- if ( index >= size_ )
- makeIndexValid( index );
- return pages_[index/itemsPerPage][index%itemsPerPage];
-}
-
-Value *
-ValueInternalArray::find( ArrayIndex index ) const
-{
- if ( index >= size_ )
- return 0;
- return &(pages_[index/itemsPerPage][index%itemsPerPage]);
-}
-
-ValueInternalArray::ArrayIndex
-ValueInternalArray::size() const
-{
- return size_;
-}
-
-int
-ValueInternalArray::distance( const IteratorState &x, const IteratorState &y )
-{
- return indexOf(y) - indexOf(x);
-}
-
-
-ValueInternalArray::ArrayIndex
-ValueInternalArray::indexOf( const IteratorState &iterator )
-{
- if ( !iterator.array_ )
- return ArrayIndex(-1);
- return ArrayIndex(
- (iterator.currentPageIndex_ - iterator.array_->pages_) * itemsPerPage
- + iterator.currentItemIndex_ );
-}
-
-
-int
-ValueInternalArray::compare( const ValueInternalArray &other ) const
-{
- int sizeDiff( size_ - other.size_ );
- if ( sizeDiff != 0 )
- return sizeDiff;
-
- for ( ArrayIndex index =0; index < size_; ++index )
- {
- int diff = pages_[index/itemsPerPage][index%itemsPerPage].compare(
- other.pages_[index/itemsPerPage][index%itemsPerPage] );
- if ( diff != 0 )
- return diff;
- }
- return 0;
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/json_internalmap.inl
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/json_internalmap.inl b/test/plugins/cordova.echo/src/blackberry/public/json_internalmap.inl
deleted file mode 100644
index 1977148..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/json_internalmap.inl
+++ /dev/null
@@ -1,607 +0,0 @@
-// included by json_value.cpp
-// everything is within Json namespace
-
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// class ValueInternalMap
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-
-/** \internal MUST be safely initialized using memset( this, 0, sizeof(ValueInternalLink) );
- * This optimization is used by the fast allocator.
- */
-ValueInternalLink::ValueInternalLink()
- : previous_( 0 )
- , next_( 0 )
-{
-}
-
-ValueInternalLink::~ValueInternalLink()
-{
- for ( int index =0; index < itemPerLink; ++index )
- {
- if ( !items_[index].isItemAvailable() )
- {
- if ( !items_[index].isMemberNameStatic() )
- free( keys_[index] );
- }
- else
- break;
- }
-}
-
-
-
-ValueMapAllocator::~ValueMapAllocator()
-{
-}
-
-#ifdef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
-class DefaultValueMapAllocator : public ValueMapAllocator
-{
-public: // overridden from ValueMapAllocator
- virtual ValueInternalMap *newMap()
- {
- return new ValueInternalMap();
- }
-
- virtual ValueInternalMap *newMapCopy( const ValueInternalMap &other )
- {
- return new ValueInternalMap( other );
- }
-
- virtual void destructMap( ValueInternalMap *map )
- {
- delete map;
- }
-
- virtual ValueInternalLink *allocateMapBuckets( unsigned int size )
- {
- return new ValueInternalLink[size];
- }
-
- virtual void releaseMapBuckets( ValueInternalLink *links )
- {
- delete [] links;
- }
-
- virtual ValueInternalLink *allocateMapLink()
- {
- return new ValueInternalLink();
- }
-
- virtual void releaseMapLink( ValueInternalLink *link )
- {
- delete link;
- }
-};
-#else
-/// @todo make this thread-safe (lock when accessign batch allocator)
-class DefaultValueMapAllocator : public ValueMapAllocator
-{
-public: // overridden from ValueMapAllocator
- virtual ValueInternalMap *newMap()
- {
- ValueInternalMap *map = mapsAllocator_.allocate();
- new (map) ValueInternalMap(); // placement new
- return map;
- }
-
- virtual ValueInternalMap *newMapCopy( const ValueInternalMap &other )
- {
- ValueInternalMap *map = mapsAllocator_.allocate();
- new (map) ValueInternalMap( other ); // placement new
- return map;
- }
-
- virtual void destructMap( ValueInternalMap *map )
- {
- if ( map )
- {
- map->~ValueInternalMap();
- mapsAllocator_.release( map );
- }
- }
-
- virtual ValueInternalLink *allocateMapBuckets( unsigned int size )
- {
- return new ValueInternalLink[size];
- }
-
- virtual void releaseMapBuckets( ValueInternalLink *links )
- {
- delete [] links;
- }
-
- virtual ValueInternalLink *allocateMapLink()
- {
- ValueInternalLink *link = linksAllocator_.allocate();
- memset( link, 0, sizeof(ValueInternalLink) );
- return link;
- }
-
- virtual void releaseMapLink( ValueInternalLink *link )
- {
- link->~ValueInternalLink();
- linksAllocator_.release( link );
- }
-private:
- BatchAllocator<ValueInternalMap,1> mapsAllocator_;
- BatchAllocator<ValueInternalLink,1> linksAllocator_;
-};
-#endif
-
-static ValueMapAllocator *&mapAllocator()
-{
- static DefaultValueMapAllocator defaultAllocator;
- static ValueMapAllocator *mapAllocator = &defaultAllocator;
- return mapAllocator;
-}
-
-static struct DummyMapAllocatorInitializer {
- DummyMapAllocatorInitializer()
- {
- mapAllocator(); // ensure mapAllocator() statics are initialized before main().
- }
-} dummyMapAllocatorInitializer;
-
-
-
-// h(K) = value * K >> w ; with w = 32 & K prime w.r.t. 2^32.
-
-/*
-use linked list hash map.
-buckets array is a container.
-linked list element contains 6 key/values. (memory = (16+4) * 6 + 4 = 124)
-value have extra state: valid, available, deleted
-*/
-
-
-ValueInternalMap::ValueInternalMap()
- : buckets_( 0 )
- , tailLink_( 0 )
- , bucketsSize_( 0 )
- , itemCount_( 0 )
-{
-}
-
-
-ValueInternalMap::ValueInternalMap( const ValueInternalMap &other )
- : buckets_( 0 )
- , tailLink_( 0 )
- , bucketsSize_( 0 )
- , itemCount_( 0 )
-{
- reserve( other.itemCount_ );
- IteratorState it;
- IteratorState itEnd;
- other.makeBeginIterator( it );
- other.makeEndIterator( itEnd );
- for ( ; !equals(it,itEnd); increment(it) )
- {
- bool isStatic;
- const char *memberName = key( it, isStatic );
- const Value &aValue = value( it );
- resolveReference(memberName, isStatic) = aValue;
- }
-}
-
-
-ValueInternalMap &
-ValueInternalMap::operator =( const ValueInternalMap &other )
-{
- ValueInternalMap dummy( other );
- swap( dummy );
- return *this;
-}
-
-
-ValueInternalMap::~ValueInternalMap()
-{
- if ( buckets_ )
- {
- for ( BucketIndex bucketIndex =0; bucketIndex < bucketsSize_; ++bucketIndex )
- {
- ValueInternalLink *link = buckets_[bucketIndex].next_;
- while ( link )
- {
- ValueInternalLink *linkToRelease = link;
- link = link->next_;
- mapAllocator()->releaseMapLink( linkToRelease );
- }
- }
- mapAllocator()->releaseMapBuckets( buckets_ );
- }
-}
-
-
-void
-ValueInternalMap::swap( ValueInternalMap &other )
-{
- ValueInternalLink *tempBuckets = buckets_;
- buckets_ = other.buckets_;
- other.buckets_ = tempBuckets;
- ValueInternalLink *tempTailLink = tailLink_;
- tailLink_ = other.tailLink_;
- other.tailLink_ = tempTailLink;
- BucketIndex tempBucketsSize = bucketsSize_;
- bucketsSize_ = other.bucketsSize_;
- other.bucketsSize_ = tempBucketsSize;
- BucketIndex tempItemCount = itemCount_;
- itemCount_ = other.itemCount_;
- other.itemCount_ = tempItemCount;
-}
-
-
-void
-ValueInternalMap::clear()
-{
- ValueInternalMap dummy;
- swap( dummy );
-}
-
-
-ValueInternalMap::BucketIndex
-ValueInternalMap::size() const
-{
- return itemCount_;
-}
-
-bool
-ValueInternalMap::reserveDelta( BucketIndex growth )
-{
- return reserve( itemCount_ + growth );
-}
-
-bool
-ValueInternalMap::reserve( BucketIndex newItemCount )
-{
- if ( !buckets_ && newItemCount > 0 )
- {
- buckets_ = mapAllocator()->allocateMapBuckets( 1 );
- bucketsSize_ = 1;
- tailLink_ = &buckets_[0];
- }
-// BucketIndex idealBucketCount = (newItemCount + ValueInternalLink::itemPerLink) / ValueInternalLink::itemPerLink;
- return true;
-}
-
-
-const Value *
-ValueInternalMap::find( const char *key ) const
-{
- if ( !bucketsSize_ )
- return 0;
- HashKey hashedKey = hash( key );
- BucketIndex bucketIndex = hashedKey % bucketsSize_;
- for ( const ValueInternalLink *current = &buckets_[bucketIndex];
- current != 0;
- current = current->next_ )
- {
- for ( BucketIndex index=0; index < ValueInternalLink::itemPerLink; ++index )
- {
- if ( current->items_[index].isItemAvailable() )
- return 0;
- if ( strcmp( key, current->keys_[index] ) == 0 )
- return ¤t->items_[index];
- }
- }
- return 0;
-}
-
-
-Value *
-ValueInternalMap::find( const char *key )
-{
- const ValueInternalMap *constThis = this;
- return const_cast<Value *>( constThis->find( key ) );
-}
-
-
-Value &
-ValueInternalMap::resolveReference( const char *key,
- bool isStatic )
-{
- HashKey hashedKey = hash( key );
- if ( bucketsSize_ )
- {
- BucketIndex bucketIndex = hashedKey % bucketsSize_;
- ValueInternalLink **previous = 0;
- BucketIndex index;
- for ( ValueInternalLink *current = &buckets_[bucketIndex];
- current != 0;
- previous = ¤t->next_, current = current->next_ )
- {
- for ( index=0; index < ValueInternalLink::itemPerLink; ++index )
- {
- if ( current->items_[index].isItemAvailable() )
- return setNewItem( key, isStatic, current, index );
- if ( strcmp( key, current->keys_[index] ) == 0 )
- return current->items_[index];
- }
- }
- }
-
- reserveDelta( 1 );
- return unsafeAdd( key, isStatic, hashedKey );
-}
-
-
-void
-ValueInternalMap::remove( const char *key )
-{
- HashKey hashedKey = hash( key );
- if ( !bucketsSize_ )
- return;
- BucketIndex bucketIndex = hashedKey % bucketsSize_;
- for ( ValueInternalLink *link = &buckets_[bucketIndex];
- link != 0;
- link = link->next_ )
- {
- BucketIndex index;
- for ( index =0; index < ValueInternalLink::itemPerLink; ++index )
- {
- if ( link->items_[index].isItemAvailable() )
- return;
- if ( strcmp( key, link->keys_[index] ) == 0 )
- {
- doActualRemove( link, index, bucketIndex );
- return;
- }
- }
- }
-}
-
-void
-ValueInternalMap::doActualRemove( ValueInternalLink *link,
- BucketIndex index,
- BucketIndex bucketIndex )
-{
- // find last item of the bucket and swap it with the 'removed' one.
- // set removed items flags to 'available'.
- // if last page only contains 'available' items, then desallocate it (it's empty)
- ValueInternalLink *&lastLink = getLastLinkInBucket( index );
- BucketIndex lastItemIndex = 1; // a link can never be empty, so start at 1
- for ( ;
- lastItemIndex < ValueInternalLink::itemPerLink;
- ++lastItemIndex ) // may be optimized with dicotomic search
- {
- if ( lastLink->items_[lastItemIndex].isItemAvailable() )
- break;
- }
-
- BucketIndex lastUsedIndex = lastItemIndex - 1;
- Value *valueToDelete = &link->items_[index];
- Value *valueToPreserve = &lastLink->items_[lastUsedIndex];
- if ( valueToDelete != valueToPreserve )
- valueToDelete->swap( *valueToPreserve );
- if ( lastUsedIndex == 0 ) // page is now empty
- { // remove it from bucket linked list and delete it.
- ValueInternalLink *linkPreviousToLast = lastLink->previous_;
- if ( linkPreviousToLast != 0 ) // can not deleted bucket link.
- {
- mapAllocator()->releaseMapLink( lastLink );
- linkPreviousToLast->next_ = 0;
- lastLink = linkPreviousToLast;
- }
- }
- else
- {
- Value dummy;
- valueToPreserve->swap( dummy ); // restore deleted to default Value.
- valueToPreserve->setItemUsed( false );
- }
- --itemCount_;
-}
-
-
-ValueInternalLink *&
-ValueInternalMap::getLastLinkInBucket( BucketIndex bucketIndex )
-{
- if ( bucketIndex == bucketsSize_ - 1 )
- return tailLink_;
- ValueInternalLink *&previous = buckets_[bucketIndex+1].previous_;
- if ( !previous )
- previous = &buckets_[bucketIndex];
- return previous;
-}
-
-
-Value &
-ValueInternalMap::setNewItem( const char *key,
- bool isStatic,
- ValueInternalLink *link,
- BucketIndex index )
-{
- char *duplicatedKey = valueAllocator()->makeMemberName( key );
- ++itemCount_;
- link->keys_[index] = duplicatedKey;
- link->items_[index].setItemUsed();
- link->items_[index].setMemberNameIsStatic( isStatic );
- return link->items_[index]; // items already default constructed.
-}
-
-
-Value &
-ValueInternalMap::unsafeAdd( const char *key,
- bool isStatic,
- HashKey hashedKey )
-{
- JSON_ASSERT_MESSAGE( bucketsSize_ > 0, "ValueInternalMap::unsafeAdd(): internal logic error." );
- BucketIndex bucketIndex = hashedKey % bucketsSize_;
- ValueInternalLink *&previousLink = getLastLinkInBucket( bucketIndex );
- ValueInternalLink *link = previousLink;
- BucketIndex index;
- for ( index =0; index < ValueInternalLink::itemPerLink; ++index )
- {
- if ( link->items_[index].isItemAvailable() )
- break;
- }
- if ( index == ValueInternalLink::itemPerLink ) // need to add a new page
- {
- ValueInternalLink *newLink = mapAllocator()->allocateMapLink();
- index = 0;
- link->next_ = newLink;
- previousLink = newLink;
- link = newLink;
- }
- return setNewItem( key, isStatic, link, index );
-}
-
-
-ValueInternalMap::HashKey
-ValueInternalMap::hash( const char *key ) const
-{
- HashKey hash = 0;
- while ( *key )
- hash += *key++ * 37;
- return hash;
-}
-
-
-int
-ValueInternalMap::compare( const ValueInternalMap &other ) const
-{
- int sizeDiff( itemCount_ - other.itemCount_ );
- if ( sizeDiff != 0 )
- return sizeDiff;
- // Strict order guaranty is required. Compare all keys FIRST, then compare values.
- IteratorState it;
- IteratorState itEnd;
- makeBeginIterator( it );
- makeEndIterator( itEnd );
- for ( ; !equals(it,itEnd); increment(it) )
- {
- if ( !other.find( key( it ) ) )
- return 1;
- }
-
- // All keys are equals, let's compare values
- makeBeginIterator( it );
- for ( ; !equals(it,itEnd); increment(it) )
- {
- const Value *otherValue = other.find( key( it ) );
- int valueDiff = value(it).compare( *otherValue );
- if ( valueDiff != 0 )
- return valueDiff;
- }
- return 0;
-}
-
-
-void
-ValueInternalMap::makeBeginIterator( IteratorState &it ) const
-{
- it.map_ = const_cast<ValueInternalMap *>( this );
- it.bucketIndex_ = 0;
- it.itemIndex_ = 0;
- it.link_ = buckets_;
-}
-
-
-void
-ValueInternalMap::makeEndIterator( IteratorState &it ) const
-{
- it.map_ = const_cast<ValueInternalMap *>( this );
- it.bucketIndex_ = bucketsSize_;
- it.itemIndex_ = 0;
- it.link_ = 0;
-}
-
-
-bool
-ValueInternalMap::equals( const IteratorState &x, const IteratorState &other )
-{
- return x.map_ == other.map_
- && x.bucketIndex_ == other.bucketIndex_
- && x.link_ == other.link_
- && x.itemIndex_ == other.itemIndex_;
-}
-
-
-void
-ValueInternalMap::incrementBucket( IteratorState &iterator )
-{
- ++iterator.bucketIndex_;
- JSON_ASSERT_MESSAGE( iterator.bucketIndex_ <= iterator.map_->bucketsSize_,
- "ValueInternalMap::increment(): attempting to iterate beyond end." );
- if ( iterator.bucketIndex_ == iterator.map_->bucketsSize_ )
- iterator.link_ = 0;
- else
- iterator.link_ = &(iterator.map_->buckets_[iterator.bucketIndex_]);
- iterator.itemIndex_ = 0;
-}
-
-
-void
-ValueInternalMap::increment( IteratorState &iterator )
-{
- JSON_ASSERT_MESSAGE( iterator.map_, "Attempting to iterator using invalid iterator." );
- ++iterator.itemIndex_;
- if ( iterator.itemIndex_ == ValueInternalLink::itemPerLink )
- {
- JSON_ASSERT_MESSAGE( iterator.link_ != 0,
- "ValueInternalMap::increment(): attempting to iterate beyond end." );
- iterator.link_ = iterator.link_->next_;
- if ( iterator.link_ == 0 )
- incrementBucket( iterator );
- }
- else if ( iterator.link_->items_[iterator.itemIndex_].isItemAvailable() )
- {
- incrementBucket( iterator );
- }
-}
-
-
-void
-ValueInternalMap::decrement( IteratorState &iterator )
-{
- if ( iterator.itemIndex_ == 0 )
- {
- JSON_ASSERT_MESSAGE( iterator.map_, "Attempting to iterate using invalid iterator." );
- if ( iterator.link_ == &iterator.map_->buckets_[iterator.bucketIndex_] )
- {
- JSON_ASSERT_MESSAGE( iterator.bucketIndex_ > 0, "Attempting to iterate beyond beginning." );
- --(iterator.bucketIndex_);
- }
- iterator.link_ = iterator.link_->previous_;
- iterator.itemIndex_ = ValueInternalLink::itemPerLink - 1;
- }
-}
-
-
-const char *
-ValueInternalMap::key( const IteratorState &iterator )
-{
- JSON_ASSERT_MESSAGE( iterator.link_, "Attempting to iterate using invalid iterator." );
- return iterator.link_->keys_[iterator.itemIndex_];
-}
-
-const char *
-ValueInternalMap::key( const IteratorState &iterator, bool &isStatic )
-{
- JSON_ASSERT_MESSAGE( iterator.link_, "Attempting to iterate using invalid iterator." );
- isStatic = iterator.link_->items_[iterator.itemIndex_].isMemberNameStatic();
- return iterator.link_->keys_[iterator.itemIndex_];
-}
-
-
-Value &
-ValueInternalMap::value( const IteratorState &iterator )
-{
- JSON_ASSERT_MESSAGE( iterator.link_, "Attempting to iterate using invalid iterator." );
- return iterator.link_->items_[iterator.itemIndex_];
-}
-
-
-int
-ValueInternalMap::distance( const IteratorState &x, const IteratorState &y )
-{
- int offset = 0;
- IteratorState it = x;
- while ( !equals( it, y ) )
- increment( it );
- return offset;
-}
[10/10] git commit: remove old tests. jasmine migration complete
Posted by fi...@apache.org.
remove old tests. jasmine migration complete
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/4e517820
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/4e517820
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/4e517820
Branch: refs/heads/master
Commit: 4e517820d2480bf36196601ba82bb4f0656d974f
Parents: fe44ffc
Author: Fil Maj <ma...@gmail.com>
Authored: Thu Apr 25 15:07:02 2013 -0700
Committer: Fil Maj <ma...@gmail.com>
Committed: Thu Apr 25 15:07:02 2013 -0700
----------------------------------------------------------------------
test/android-one-uninstall.js | 185 --
test/android-two-install.js | 196 --
test/android-two-uninstall.js | 187 --
test/blackberry-install.js | 105 -
test/blackberry-uninstall.js | 117 -
test/config-changes.js | 58 -
test/dummy.xml | 87 -
test/equalNodes.js | 77 -
test/ios-config-xml-install.js | 250 ---
test/ios-config-xml-uninstall.js | 227 --
test/ios-plist-install.js | 237 --
test/ios-plist-uninstall.js | 217 --
test/multiple-children.js | 132 --
test/multiple-children/project/AndroidManifest.xml | 21 -
.../ChildBrowser/src/android/ChildBrowser.java | 19 -
.../src/ios/ChildBrowser.bundle/arrow_left.png | Bin 2946 -> 0 bytes
.../src/ios/ChildBrowser.bundle/arrow_left@2x.png | Bin 2946 -> 0 bytes
.../src/ios/ChildBrowser.bundle/arrow_right.png | Bin 2946 -> 0 bytes
.../src/ios/ChildBrowser.bundle/arrow_right@2x.png | Bin 2946 -> 0 bytes
.../src/ios/ChildBrowser.bundle/but_refresh.png | Bin 3369 -> 0 bytes
.../src/ios/ChildBrowser.bundle/but_refresh@2x.png | Bin 3369 -> 0 bytes
.../src/ios/ChildBrowser.bundle/compass.png | Bin 3035 -> 0 bytes
.../src/ios/ChildBrowser.bundle/compass@2x.png | Bin 3035 -> 0 bytes
.../ChildBrowser/src/ios/ChildBrowserCommand.h | 49 -
.../ChildBrowser/src/ios/ChildBrowserCommand.m | 86 -
.../src/ios/ChildBrowserViewController.h | 73 -
.../src/ios/ChildBrowserViewController.m | 239 --
.../src/ios/ChildBrowserViewController.xib | 875 --------
test/plugins/ChildBrowser/src/ios/TargetDirTest.h | 20 -
test/plugins/ChildBrowser/src/ios/TargetDirTest.m | 1 -
.../src/ios/preserveDirs/PreserveDirsTest.h | 20 -
.../src/ios/preserveDirs/PreserveDirsTest.m | 1 -
.../ChildBrowser/src/wp7/ChildBrowserCommand.cs | 197 --
.../src/wp7/Images/appbar.back.rest.png | Bin 375 -> 0 bytes
.../src/wp7/Images/appbar.close.rest.png | Bin 359 -> 0 bytes
.../src/wp7/Images/appbar.next.rest.png | Bin 388 -> 0 bytes
test/plugins/ChildBrowser/www/childbrowser.js | 19 -
.../ChildBrowser/www/childbrowser/image.jpg | 1 -
.../ChildBrowser/www/childbrowser_file.html | 1 -
test/plugins/DummyPlugin/plugin.xml | 100 -
.../DummyPlugin/src/android/DummyPlugin.java | 19 -
test/plugins/DummyPlugin/src/blackberry/client.js | 19 -
test/plugins/DummyPlugin/src/blackberry/index.js | 19 -
test/plugins/DummyPlugin/www/dummyplugin.js | 19 -
test/plugins/DummyPlugin/www/dummyplugin/image.jpg | 1 -
test/plugins/FaultyPlugin/plugin.xml | 73 -
.../FaultyPlugin/src/android/FaultyPlugin.java | 19 -
test/plugins/FaultyPlugin/src/ios/FaultyPlugin.h | 49 -
test/plugins/FaultyPlugin/src/ios/FaultyPlugin.m | 86 -
test/plugins/WebNotifications/plugin.xml | 45 -
.../WebNotifications/src/ios/AppDelegate.m.diff | 18 -
.../WebNotifications/src/ios/WebNotifications.h | 35 -
.../WebNotifications/src/ios/WebNotifications.m | 124 -
.../WebNotifications/www/webnotifications.js | 123 -
test/plugins/WeblessPlugin/plugin.xml | 81 -
.../WeblessPlugin/src/android/WeblessPlugin.java | 19 -
.../src/ios/WeblessPlugin.bundle/arrow_left.png | Bin 2946 -> 0 bytes
.../src/ios/WeblessPlugin.bundle/arrow_left@2x.png | Bin 2946 -> 0 bytes
.../src/ios/WeblessPlugin.bundle/arrow_right.png | Bin 2946 -> 0 bytes
.../ios/WeblessPlugin.bundle/arrow_right@2x.png | Bin 2946 -> 0 bytes
.../src/ios/WeblessPlugin.bundle/but_refresh.png | Bin 3369 -> 0 bytes
.../ios/WeblessPlugin.bundle/but_refresh@2x.png | Bin 3369 -> 0 bytes
.../src/ios/WeblessPlugin.bundle/compass.png | Bin 3035 -> 0 bytes
.../src/ios/WeblessPlugin.bundle/compass@2x.png | Bin 3035 -> 0 bytes
.../WeblessPlugin/src/ios/WeblessPluginCommand.h | 49 -
.../WeblessPlugin/src/ios/WeblessPluginCommand.m | 86 -
.../src/ios/WeblessPluginViewController.h | 73 -
.../src/ios/WeblessPluginViewController.m | 239 --
.../src/ios/WeblessPluginViewController.xib | 875 --------
test/plugins/cordova.echo/.gitignore | 1 -
test/plugins/cordova.echo/plugin.xml | 24 -
test/plugins/cordova.echo/src/blackberry/client.js | 53 -
.../src/blackberry/device/echoJnext.so | Bin 1291818 -> 0 bytes
test/plugins/cordova.echo/src/blackberry/index.js | 85 -
.../cordova.echo/src/blackberry/manifest.json | 5 -
.../src/blackberry/public/json/autolink.h | 19 -
.../src/blackberry/public/json/config.h | 43 -
.../src/blackberry/public/json/features.h | 42 -
.../src/blackberry/public/json/forwards.h | 39 -
.../cordova.echo/src/blackberry/public/json/json.h | 10 -
.../src/blackberry/public/json/reader.h | 196 --
.../src/blackberry/public/json/value.h | 1069 ---------
.../src/blackberry/public/json/writer.h | 174 --
.../src/blackberry/public/json_batchallocator.h | 125 --
.../src/blackberry/public/json_internalarray.inl | 448 ----
.../src/blackberry/public/json_internalmap.inl | 607 -----
.../src/blackberry/public/json_reader.cpp | 894 --------
.../src/blackberry/public/json_value.cpp | 1726 ---------------
.../src/blackberry/public/json_valueiterator.inl | 292 ---
.../src/blackberry/public/json_writer.cpp | 829 -------
.../cordova.echo/src/blackberry/public/plugin.cpp | 320 ---
.../cordova.echo/src/blackberry/public/plugin.h | 70 -
.../src/blackberry/public/tokenizer.cpp | 222 --
.../cordova.echo/src/blackberry/public/tokenizer.h | 55 -
.../src/blackberry/simulator/echoJnext.so | Bin 231778 -> 0 bytes
.../cordova.echo/src/blackberry/src/echo.cpp | 121 -
.../cordova.echo/src/blackberry/src/echo.hpp | 45 -
test/plugins/cordova.echo/src/device/echoJnext.so | Bin 1291818 -> 0 bytes
.../cordova.echo/src/simulator/echoJnext.so | Bin 231778 -> 0 bytes
test/plugins/multiple-children/plugin.xml | 109 -
test/plugman.js | 172 --
test/projects/FriendSting-Info.plist | 78 -
test/projects/android_one/AndroidManifest.xml | 71 -
test/projects/android_one/res/xml/plugins.xml | 38 -
test/projects/android_two/AndroidManifest.xml | 69 -
test/projects/android_two/res/xml/config.xml | 54 -
test/projects/blackberry/www/config.xml | 97 -
test/projects/blackberry/www/plugins.xml | 35 -
.../CordovaLib.xcodeproj/project.pbxproj | 636 ------
test/projects/ios-config-xml/SampleApp-Info.plist | 78 -
.../SampleApp.xcodeproj/project.orig.pbxproj | 498 -----
.../SampleApp.xcodeproj/project.pbxproj | 498 -----
.../ios-config-xml/SampleApp/SampleApp-Info.plist | 78 -
test/projects/ios-config-xml/SampleApp/config.xml | 59 -
.../CordovaLib.xcodeproj/project.pbxproj | 636 ------
.../SampleApp.xcodeproj/project.orig.pbxproj | 498 -----
.../ios-plist/SampleApp.xcodeproj/project.pbxproj | 498 -----
test/projects/ios-plist/SampleApp/PhoneGap.plist | 53 -
.../ios-plist/SampleApp/SampleApp-Info.plist | 80 -
.../projects/multiple-children/AndroidManifest.xml | 69 -
.../projects/multiple-children/res/xml/plugins.xml | 38 -
test/remote-test.js | 66 -
122 files changed, 0 insertions(+), 17890 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/android-one-uninstall.js
----------------------------------------------------------------------
diff --git a/test/android-one-uninstall.js b/test/android-one-uninstall.js
deleted file mode 100644
index 435c42b..0000000
--- a/test/android-one-uninstall.js
+++ /dev/null
@@ -1,185 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-// Test uninstallation on Cordova 1.x project
-
-var fs = require('fs')
- , path = require('path')
- , plist = require('plist')
- , xcode = require('xcode')
- , osenv = require('osenv')
- , shell = require('shelljs')
- , et = require('elementtree')
- , android = require(path.join(__dirname, '..', 'platforms', 'android'))
- , plugman = require('../plugman')
- , plugin_loader = require('../util/plugin_loader')
- , test_dir = path.join(osenv.tmpdir(), 'test_plugman')
- , test_project_dir = path.join(test_dir, 'projects', 'android_one')
- , test_plugin_dir = path.join(test_dir, 'plugins', 'ChildBrowser')
- , xml_path = path.join(test_dir, 'plugins', 'ChildBrowser', 'plugin.xml')
- , plugins_dir = path.join(test_dir, 'plugins')
- , silent = require('../util/test-helpers').suppressOutput
- , xml_text, plugin_et;
-
-
-exports.setUp = function(callback) {
- shell.mkdir('-p', test_dir);
-
- // copy the ios test project to a temp directory
- shell.cp('-r', path.join(__dirname, 'projects'), test_dir);
-
- // copy the ios test plugin to a temp directory
- shell.cp('-r', path.join(__dirname, 'plugins'), test_dir);
-
- // parse the plugin.xml into an elementtree object
- xml_text = fs.readFileSync(xml_path, 'utf-8')
- plugin_et = new et.ElementTree(et.XML(xml_text));
-
- callback();
-}
-
-exports.tearDown = function(callback) {
- // remove the temp files (projects and plugins)
- shell.rm('-rf', test_dir);
- callback();
-}
-
-exports['should remove the js file'] = function (test) {
- var wwwPath = path.join(test_dir, 'projects', 'android_one', 'assets', 'www');
- var jsPath = path.join(test_dir, 'projects', 'android_one', 'assets', 'www', 'childbrowser.js');
-
- silent(function() {
- plugman.handlePlugin('install', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- plugman.handlePlugin('uninstall', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.ok(!fs.existsSync(jsPath));
- test.done();
-}
-
-exports['should not remove common package directories when two plugins share a package subname'] = function (test) {
- var javaPath = path.join(test_dir, 'projects', 'android_one', 'src', 'com', 'phonegap', 'plugins', 'childBrowser', 'ChildBrowser.java');
-
- silent(function() {
- // installing two plugins that share some common package directory structure
- plugman.handlePlugin('install', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- plugman.handlePlugin('install', 'android', test_project_dir, 'DummyPlugin', plugins_dir);
-
- // uninstalling DummyPlugin should not delete existing ChildBrowser
- plugman.handlePlugin('uninstall', 'android', test_project_dir, 'DummyPlugin', plugins_dir);
- });
-
- var stat = fs.statSync(javaPath);
- test.ok(stat.isFile());
-
- test.done();
-}
-
-/* TODO: Re-enable this test when the prepare-after-uninstall question is sorted.
-exports['should remove the directory'] = function (test) {
- var assetPath = path.join(test_dir, 'projects', 'android_one', 'assets', 'www', 'childbrowser');
-
- silent(function() {
- plugman.handlePlugin('install', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.ok(fs.existsSync(assetPath));
-
- silent(function() {
- plugman.handlePlugin('uninstall', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.ok(!fs.existsSync(assetPath));
- test.done();
-}
-*/
-
-exports['should remove the src file'] = function (test) {
- var javaPath = path.join(test_dir, 'projects', 'android_one', 'src', 'com', 'phonegap', 'plugins', 'childBrowser', 'ChildBrowser.java');
-
- silent(function() {
- plugman.handlePlugin('install', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.ok(fs.statSync(javaPath));
-
- silent(function() {
- plugman.handlePlugin('uninstall', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.ok(fs.existsSync(path.resolve(test_dir + '/projects/android_one/src')));
- test.ok(!fs.existsSync(javaPath));
- test.ok(!fs.existsSync(path.resolve(javaPath + '/..')));
- test.ok(!fs.existsSync(path.resolve(javaPath + '/../..')));
- test.ok(!fs.existsSync(path.resolve(javaPath + '/../../..')));
- test.ok(!fs.existsSync(path.resolve(javaPath + '/../../../..')));
- test.done();
-}
-
-
-exports['should remove ChildBrowser from plugins.xml'] = function (test) {
- silent(function() {
- plugman.handlePlugin('install', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- plugman.handlePlugin('uninstall', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- var pluginsXmlPath = path.join(test_dir, 'projects', 'android_one', 'res', 'xml', 'plugins.xml');
- var pluginsTxt = fs.readFileSync(pluginsXmlPath, 'utf-8'),
- pluginsDoc = new et.ElementTree(et.XML(pluginsTxt)),
- expected = 'plugin[@name="ChildBrowser"]' +
- '[@value="com.phonegap.plugins.childBrowser.ChildBrowser"]';
- test.ok(!pluginsDoc.find(expected));
- test.done();
-}
-
-exports['should remove ChildBrowser from AndroidManifest.xml'] = function (test) {
- silent(function() {
- plugman.handlePlugin('install', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- plugman.handlePlugin('uninstall', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- var manifestPath = path.join(test_dir, 'projects', 'android_one', 'AndroidManifest.xml');
- var manifestTxt = fs.readFileSync(manifestPath, 'utf-8'),
- manifestDoc = new et.ElementTree(et.XML(manifestTxt)),
- activities = manifestDoc.findall('application/activity'), i;
-
- var found = false;
- for (i=0; i<activities.length; i++) {
- if ( activities[i].attrib['android:name'] === 'com.phonegap.plugins.childBrowser.ChildBrowser' ) {
- found = true;
- break;
- }
- }
- test.ok(!found);
- test.done();
-}
-
-exports['should remove whitelist hosts'] = function (test) {
- silent(function() {
- plugman.handlePlugin('install', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- plugman.handlePlugin('uninstall', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- var pluginsXmlPath = path.join(test_dir, 'projects', 'android_one', 'res', 'xml', 'plugins.xml');
- var pluginsTxt = fs.readFileSync(pluginsXmlPath, 'utf-8'),
- pluginsDoc = new et.ElementTree(et.XML(pluginsTxt));
-
- test.equal(pluginsDoc.findall("access").length, 0, "/access");
- test.done();
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/android-two-install.js
----------------------------------------------------------------------
diff --git a/test/android-two-install.js b/test/android-two-install.js
deleted file mode 100644
index 259a0ce..0000000
--- a/test/android-two-install.js
+++ /dev/null
@@ -1,196 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-// Test installation on Cordova 2 project
-
-var fs = require('fs')
- , path = require('path')
- , plist = require('plist')
- , xcode = require('xcode')
- , osenv = require('osenv')
- , shell = require('shelljs')
- , et = require('elementtree')
- , android = require(path.join(__dirname, '..', 'platforms', 'android'))
- , plugin_loader = require('../util/plugin_loader')
- , plugman = require('../plugman')
- , test_dir = path.join(osenv.tmpdir(), 'test_plugman')
- , test_project_dir = path.join(test_dir, 'projects', 'android_two')
- , test_plugin_dir = path.join(test_dir, 'plugins', 'ChildBrowser')
- , xml_path = path.join(test_dir, 'plugins', 'ChildBrowser', 'plugin.xml')
- , plugins_dir = path.join(test_dir, 'plugins')
- , silent = require('../util/test-helpers').suppressOutput
- , xml_text, plugin_et;
-
-
-
-exports.setUp = function(callback) {
- shell.mkdir('-p', test_dir);
-
- // copy the ios test project to a temp directory
- shell.cp('-r', path.join(__dirname, 'projects'), test_dir);
-
- // copy the ios test plugin to a temp directory
- shell.cp('-r', path.join(__dirname, 'plugins'), test_dir);
-
- // parse the plugin.xml into an elementtree object
- xml_text = fs.readFileSync(xml_path, 'utf-8')
- plugin_et = new et.ElementTree(et.XML(xml_text));
-
- callback();
-}
-
-exports.tearDown = function(callback) {
- // remove the temp files (projects and plugins)
- shell.rm('-rf', test_dir);
- callback();
-}
-
-exports['should install webless plugin'] = function (test) {
- silent(function() {
- plugman.handlePlugin('install', 'android', test_project_dir, 'WeblessPlugin', plugins_dir);
- });
-
- test.done();
-}
-
-exports['should move the js file'] = function (test) {
- var wwwPath = path.join(test_dir, 'projects', 'android_two', 'assets', 'www');
- var jsPath = path.join(test_dir, 'projects', 'android_two', 'assets', 'www', 'plugins', 'com.phonegap.plugins.childbrowser', 'www', 'childbrowser.js');
-
- silent(function() {
- plugman.handlePlugin('install', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- var stats = fs.statSync(jsPath);
- test.ok(stats);
- test.ok(stats.isFile());
- test.done();
-}
-
-exports['should move the asset file'] = function(test) {
- silent(function() {
- plugman.handlePlugin('install', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- var assetPath = path.join(test_dir, 'projects', 'android_two', 'assets', 'www', 'childbrowser_file.html');
- var assets = fs.statSync(assetPath);
-
- test.ok(assets);
- test.ok(assets.isFile());
- test.done();
-}
-
-exports['should move the asset directory'] = function (test) {
- silent(function() {
- plugman.handlePlugin('install', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- var assetPath = path.join(test_dir, 'projects', 'android_two', 'assets', 'www', 'childbrowser');
- var assets = fs.statSync(assetPath);
-
- test.ok(assets.isDirectory());
- test.ok(fs.statSync(assetPath + '/image.jpg'))
- test.done();
-}
-
-exports['should add entries to the cordova_plugins.json file'] = function(test) {
- silent(function() {
- plugman.handlePlugin('install', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- var jsonPath = path.join(test_dir, 'projects', 'android_two', 'assets', 'www', 'cordova_plugins.json');
- var content = JSON.parse(fs.readFileSync(jsonPath, 'utf-8'));
-
- test.ok(content);
- test.ok(content.length > 0);
- test.ok(content[0].file);
- test.done();
-};
-
-exports['should move the src file'] = function (test) {
- silent(function() {
- plugman.handlePlugin('install', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- var javaPath = path.join(test_dir, 'projects', 'android_two', 'src', 'com', 'phonegap', 'plugins', 'childBrowser', 'ChildBrowser.java');
- test.ok(fs.statSync(javaPath));
- test.done();
-}
-
-exports['should add ChildBrowser to config.xml'] = function (test) {
- silent(function() {
- plugman.handlePlugin('install', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- var pluginsXmlPath = path.join(test_dir, 'projects', 'android_two', 'res', 'xml', 'config.xml');
- var pluginsTxt = fs.readFileSync(pluginsXmlPath, 'utf-8'),
- pluginsDoc = new et.ElementTree(et.XML(pluginsTxt)),
- expected = 'plugins/plugin[@name="ChildBrowser"]' +
- '[@value="com.phonegap.plugins.childBrowser.ChildBrowser"]';
-
- test.ok(pluginsDoc.find(expected));
- test.done();
-}
-
-exports['should add ChildBrowser to AndroidManifest.xml'] = function (test) {
- silent(function() {
- plugman.handlePlugin('install', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- var manifestPath = path.join(test_dir, 'projects', 'android_two', 'AndroidManifest.xml');
- var manifestTxt = fs.readFileSync(manifestPath, 'utf-8'),
- manifestDoc = new et.ElementTree(et.XML(manifestTxt)),
- activities = manifestDoc.findall('application/activity'), i;
-
- var found = false;
- for (i=0; i<activities.length; i++) {
- if ( activities[i].attrib['android:name'] === 'com.phonegap.plugins.childBrowser.ChildBrowser' ) {
- found = true;
- break;
- }
- }
- test.ok(found);
- test.done();
-}
-
-exports['should not install a plugin that is already installed'] = function (test) {
- var pluginsPath = path.join(test_dir, 'plugins');
- var wwwPath = path.join(test_dir, 'projects', 'android_two', 'assets', 'www');
- var jsPath = path.join(test_dir, 'projects', 'android_two', 'assets', 'www', 'childbrowser.js');
-
- android.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et, { APP_ID: 12345 });
- plugin_loader.handlePrepare(test_project_dir, pluginsPath, wwwPath, 'android');
-
- test.throws(function() {android.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et);}, /already installed/);
-
- test.done();
-}
-
-exports['should add whitelist hosts'] = function (test) {
- android.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et, { APP_ID: 12345 });
-
- var pluginsXmlPath = path.join(test_dir, 'projects', 'android_two', 'res', 'xml', 'config.xml');
- var pluginsTxt = fs.readFileSync(pluginsXmlPath, 'utf-8'),
- pluginsDoc = new et.ElementTree(et.XML(pluginsTxt));
-
- test.equal(pluginsDoc.findall("access").length, 3, "/access");
- test.equal(pluginsDoc.findall("access")[1].attrib["origin"], "build.phonegap.com")
- test.equal(pluginsDoc.findall("access")[2].attrib["origin"], "s3.amazonaws.com")
- test.done();
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/android-two-uninstall.js
----------------------------------------------------------------------
diff --git a/test/android-two-uninstall.js b/test/android-two-uninstall.js
deleted file mode 100644
index d975a7b..0000000
--- a/test/android-two-uninstall.js
+++ /dev/null
@@ -1,187 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-// Test uninstallation on Cordova 2 project
-
-
-var fs = require('fs')
- , path = require('path')
- , plist = require('plist')
- , xcode = require('xcode')
- , osenv = require('osenv')
- , shell = require('shelljs')
- , et = require('elementtree')
- , android = require(path.join(__dirname, '..', 'platforms', 'android'))
- , plugin_loader = require('../util/plugin_loader')
- , test_dir = path.join(osenv.tmpdir(), 'test_plugman')
- , test_project_dir = path.join(test_dir, 'projects', 'android_two')
- , test_plugin_dir = path.join(test_dir, 'plugins', 'ChildBrowser')
- , plugman = require('../plugman')
- , plugins_dir = path.join(test_dir, 'plugins')
- , silent = require('../util/test-helpers').suppressOutput
- , xml_path = path.join(test_dir, 'plugins', 'ChildBrowser', 'plugin.xml')
- , xml_text, plugin_et;
-
-
-exports.setUp = function(callback) {
- shell.mkdir('-p', test_dir);
-
- // copy the ios test project to a temp directory
- shell.cp('-r', path.join(__dirname, 'projects'), test_dir);
-
- // copy the ios test plugin to a temp directory
- shell.cp('-r', path.join(__dirname, 'plugins'), test_dir);
-
- // parse the plugin.xml into an elementtree object
- xml_text = fs.readFileSync(xml_path, 'utf-8')
- plugin_et = new et.ElementTree(et.XML(xml_text));
-
- callback();
-}
-
-exports.tearDown = function(callback) {
- // remove the temp files (projects and plugins)
- shell.rm('-rf', test_dir);
- callback();
-}
-
-exports['should remove the js file'] = function (test) {
- var jsPath = path.join(test_dir, 'projects', 'android_two', 'assets', 'www', 'childbrowser.js');
-
- silent(function() {
- plugman.handlePlugin('install', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- plugman.handlePlugin('uninstall', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.ok(!fs.existsSync(jsPath));
- test.done();
-}
-
-/* TODO: Re-enable this test when the prepare-after-uninstall question is sorted.
-exports['should remove the directory'] = function (test) {
- var assetPath = path.join(test_dir, 'projects', 'android_two', 'assets', 'www', 'childbrowser');
-
- silent(function() {
- plugman.handlePlugin('install', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.ok(fs.existsSync(assetPath));
-
- silent(function() {
- plugman.handlePlugin('uninstall', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.ok(!fs.existsSync(assetPath));
- test.done();
-}
-*/
-
-exports['should remove the src file'] = function (test) {
- var javaPath = path.join(test_dir, 'projects', 'android_two', 'src', 'com', 'phonegap', 'plugins', 'childBrowser', 'ChildBrowser.java');
-
- silent(function() {
- plugman.handlePlugin('install', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.ok(fs.statSync(javaPath));
-
- silent(function() {
- plugman.handlePlugin('uninstall', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.ok(fs.existsSync(path.resolve(test_dir + '/projects/android_two/src')));
- test.ok(!fs.existsSync(path.resolve(javaPath)));
- test.ok(!fs.existsSync(path.resolve(javaPath + '/..')));
- test.ok(!fs.existsSync(path.resolve(javaPath + '/../..')));
- test.ok(!fs.existsSync(path.resolve(javaPath + '/../../..')));
- test.ok(!fs.existsSync(path.resolve(javaPath + '/../../../..')));
- test.done();
-}
-
-exports['should not remove common package directories when two plugins share a package subname'] = function (test) {
- var javaPath = path.join(test_dir, 'projects', 'android_two', 'src', 'com', 'phonegap', 'plugins', 'childBrowser', 'ChildBrowser.java');
-
- silent(function() {
- // installing two plugins that share some common package directory structure
- plugman.handlePlugin('install', 'android', test_project_dir, 'ChildBrowser', plugins_dir);
- plugman.handlePlugin('install', 'android', test_project_dir, 'DummyPlugin', plugins_dir);
-
- // uninstalling DummyPlugin should not delete existing ChildBrowser package dir structure
- plugman.handlePlugin('uninstall', 'android', test_project_dir, 'DummyPlugin', plugins_dir);
- });
-
- var stat = fs.statSync(javaPath);
- test.ok(stat.isFile());
- test.done();
-}
-
-exports['should remove ChildBrowser from config.xml'] = function (test) {
- android.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et);
- android.handlePlugin('uninstall', test_project_dir, test_plugin_dir, plugin_et);
-
- var pluginsXmlPath = path.join(test_dir, 'projects', 'android_two', 'res', 'xml', 'config.xml');
- var pluginsTxt = fs.readFileSync(pluginsXmlPath, 'utf-8'),
- pluginsDoc = new et.ElementTree(et.XML(pluginsTxt)),
- expected = 'plugins/plugin[@name="ChildBrowser"]' +
- '[@value="com.phonegap.plugins.childBrowser.ChildBrowser"]';
- test.ok(!pluginsDoc.find(expected));
- test.done();
-}
-
-exports['should remove ChildBrowser from AndroidManifest.xml'] = function (test) {
- android.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et);
- android.handlePlugin('uninstall', test_project_dir, test_plugin_dir, plugin_et);
-
- var manifestPath = path.join(test_dir, 'projects', 'android_two', 'AndroidManifest.xml');
- var manifestTxt = fs.readFileSync(manifestPath, 'utf-8'),
- manifestDoc = new et.ElementTree(et.XML(manifestTxt)),
- activities = manifestDoc.findall('application/activity'), i;
-
- var found = false;
- for (i=0; i<activities.length; i++) {
- if ( activities[i].attrib['android:name'] === 'com.phonegap.plugins.childBrowser.ChildBrowser' ) {
- found = true;
- break;
- }
- }
- test.ok(!found);
- test.done();
-}
-
-exports['should remove whitelist hosts'] = function (test) {
- android.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et);
- android.handlePlugin('uninstall', test_project_dir, test_plugin_dir, plugin_et);
-
- var pluginsXmlPath = path.join(test_dir, 'projects', 'android_two', 'res', 'xml', 'config.xml');
- var pluginsTxt = fs.readFileSync(pluginsXmlPath, 'utf-8'),
- pluginsDoc = new et.ElementTree(et.XML(pluginsTxt));
-
- test.equal(pluginsDoc.findall("access").length, 1, "/access");
- test.done();
-}
-
-exports['should not uninstall a plugin that is not installed'] = function (test) {
- var jsPath = path.join(test_dir, 'projects', 'android_two', 'assets', 'www', 'childbrowser.js');
-
- test.throws(function() {android.handlePlugin('uninstall', test_project_dir, test_plugin_dir, plugin_et);},
- /not installed/
- );
-
- test.done();
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/blackberry-install.js
----------------------------------------------------------------------
diff --git a/test/blackberry-install.js b/test/blackberry-install.js
deleted file mode 100644
index fd41098..0000000
--- a/test/blackberry-install.js
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-var fs = require('fs')
- , path = require('path')
- , shell = require('shelljs')
- , et = require('elementtree')
- , osenv = require('osenv')
- , blackberry = require(path.join(__dirname, '..', 'platforms', 'blackberry'))
- , plugin_loader = require('../util/plugin_loader')
- , test_dir = path.join(osenv.tmpdir(), 'test_plugman')
- , test_project_dir = path.join(test_dir, 'projects', 'blackberry', 'www')
- , test_plugin_dir = path.join(test_dir, 'plugins', 'cordova.echo')
- , xml_path = path.join(test_dir, 'plugins', 'cordova.echo', 'plugin.xml')
- , xml_text, plugin_et
- , plugman = require('../plugman')
- , plugins_dir = path.join(test_dir, 'plugins')
- , silent = require('../util/test-helpers').suppressOutput
- , srcDir = path.resolve(test_project_dir, 'ext-qnx/cordova.echo');
-
-exports.setUp = function(callback) {
- shell.mkdir('-p', test_dir);
-
- // copy the blackberry test project to a temp directory
- shell.cp('-r', path.join(__dirname, 'projects'), test_dir);
-
- // copy the blackberry test plugin to a temp directory
- shell.cp('-r', path.join(__dirname, 'plugins'), test_dir);
-
- // parse the plugin.xml into an elementtree object
- xml_text = fs.readFileSync(xml_path, 'utf-8')
- plugin_et = new et.ElementTree(et.XML(xml_text));
-
- callback();
-}
-
-exports.tearDown = function(callback) {
- // remove the temp files (projects and plugins)
- shell.rm('-rf', test_dir);
- callback();
-}
-
-exports['should move the source files'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'blackberry', test_project_dir, 'cordova.echo', plugins_dir);
- });
-
- test.ok(fs.existsSync(srcDir + '/client.js'));
- test.ok(fs.existsSync(srcDir + '/index.js'));
- test.ok(fs.existsSync(srcDir + '/manifest.json'));
- test.ok(fs.existsSync(srcDir + '/device/echoJnext.so'));
- test.ok(fs.existsSync(srcDir + '/simulator/echoJnext.so'));
- test.done();
-};
-
-exports['should move the js file'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'blackberry', test_project_dir, 'DummyPlugin', plugins_dir);
- });
-
- var jsPath = path.join(test_project_dir, 'www', 'dummyplugin.js');
- test.ok(fs.existsSync(jsPath));
- test.done();
-}
-
-exports['should edit config.xml'] = function (test) {
- silent(function() {
- plugman.handlePlugin('install', 'blackberry', test_project_dir, 'cordova.echo', plugins_dir);
- });
-
- var configXmlPath = path.join(test_project_dir, 'config.xml');
- var pluginsTxt = fs.readFileSync(configXmlPath, 'utf-8'),
- pluginsDoc = new et.ElementTree(et.XML(pluginsTxt)),
- expected = 'feature[@id="cordova.echo"]';
- test.ok(pluginsDoc.find(expected));
-
- test.done();
-}
-
-exports['should not install a plugin that is already installed'] = function (test) {
- blackberry.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et);
-
- test.throws(function(){blackberry.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et); },
- /already installed/
- );
- test.done();
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/blackberry-uninstall.js
----------------------------------------------------------------------
diff --git a/test/blackberry-uninstall.js b/test/blackberry-uninstall.js
deleted file mode 100644
index 3f76642..0000000
--- a/test/blackberry-uninstall.js
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-var fs = require('fs')
- , path = require('path')
- , shell = require('shelljs')
- , et = require('elementtree')
- , osenv = require('osenv')
- , blackberry = require(path.join(__dirname, '..', 'platforms', 'blackberry'))
- , test_dir = path.join(osenv.tmpdir(), 'test_plugman')
- , test_project_dir = path.join(test_dir, 'projects', 'blackberry', 'www')
- , test_plugin_dir = path.join(test_dir, 'plugins', 'cordova.echo')
- , xml_path = path.join(test_dir, 'plugins', 'cordova.echo', 'plugin.xml')
- , xml_text, plugin_et
- , plugman = require('../plugman')
- , plugins_dir = path.join(test_dir, 'plugins')
- , silent = require('../util/test-helpers').suppressOutput
- , srcDir = path.resolve(test_project_dir, 'ext-qnx/cordova.echo');
-
-exports.setUp = function(callback) {
- shell.mkdir('-p', test_dir);
-
- // copy the blackberry test project to a temp directory
- shell.cp('-r', path.join(__dirname, 'projects'), test_dir);
-
- // copy the blackberry test plugin to a temp directory
- shell.cp('-r', path.join(__dirname, 'plugins'), test_dir);
-
- // parse the plugin.xml into an elementtree object
- xml_text = fs.readFileSync(xml_path, 'utf-8')
- plugin_et = new et.ElementTree(et.XML(xml_text));
-
- callback();
-}
-
-exports.tearDown = function(callback) {
- // remove the temp files (projects and plugins)
- shell.rm('-rf', test_dir);
- callback();
-}
-
-exports['should remove cordova echo plugin'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'blackberry', test_project_dir, 'cordova.echo', plugins_dir);
- plugman.handlePlugin('uninstall', 'blackberry', test_project_dir, 'cordova.echo', plugins_dir);
- });
-
- test.done();
-}
-
-
-exports['should remove the js file'] = function (test) {
- silent(function() {
- plugman.handlePlugin('install', 'blackberry', test_project_dir, 'DummyPlugin', plugins_dir);
- plugman.handlePlugin('uninstall', 'blackberry', test_project_dir, 'DummyPlugin', plugins_dir);
- });
-
- var jsPath = path.join(test_dir, 'projects', 'blackberry', 'www', 'dummyplugin.js');
- test.ok(!fs.existsSync(jsPath))
- test.done();
-}
-
-
-exports['should remove the source files'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'blackberry', test_project_dir, 'cordova.echo', plugins_dir);
- plugman.handlePlugin('uninstall', 'blackberry', test_project_dir, 'cordova.echo', plugins_dir);
- });
-
- test.ok(!fs.existsSync(srcDir + '/index.js'))
- test.ok(!fs.existsSync(srcDir + '/client.js'))
- test.ok(!fs.existsSync(srcDir + '/manifest.json'))
- test.ok(!fs.existsSync(srcDir + '/device/echoJnext.so'))
- test.ok(!fs.existsSync(srcDir + '/simulator/echoJnext.so'))
- test.done();
-}
-
-exports['should edit config.xml'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'blackberry', test_project_dir, 'cordova.echo', plugins_dir);
- plugman.handlePlugin('uninstall', 'blackberry', test_project_dir, 'cordova.echo', plugins_dir);
- });
-
- var configXmlPath = path.join(test_project_dir, 'config.xml');
- var pluginsTxt = fs.readFileSync(configXmlPath, 'utf-8'),
- pluginsDoc = new et.ElementTree(et.XML(pluginsTxt)),
- expected = 'feature[@id="cordova.echo"]';
-
- test.ok(!pluginsDoc.find(expected));
- test.done();
-}
-
-exports['should not uninstall a plugin that is not installed'] = function (test) {
- test.throws(function(){blackberry.handlePlugin('uninstall', test_project_dir, test_plugin_dir, plugin_et); },
- /not installed/
- );
- test.done();
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/config-changes.js
----------------------------------------------------------------------
diff --git a/test/config-changes.js b/test/config-changes.js
deleted file mode 100644
index 1c50b0d..0000000
--- a/test/config-changes.js
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-var configChanges = require('../util/config-changes'),
- fs = require('fs'),
- et = require('elementtree'),
- path = require('path'),
- xmlText = fs.readFileSync(path.join(__dirname, 'dummy.xml'), 'utf-8'),
- xmlDoc = new et.ElementTree(et.XML(xmlText)),
- platformTag = null;
-
-exports.android = {
- setUp: function (callback) {
- platformTag = xmlDoc.find('./platform[@name="android"]');
- callback();
- },
-
- 'should have the right number of fields': function (test) {
- var changes = configChanges(platformTag);
-
- test.equal(Object.keys(changes).length, 3);
- test.done();
- },
-
- 'should have the right field names': function (test) {
- var changes = configChanges(platformTag);
-
- test.ok(changes['AndroidManifest.xml']);
- test.ok(changes['res/xml/plugins.xml']);
- test.ok(changes['res/xml/config.xml']);
- test.done();
- },
-
- 'should have each field as an array': function (test) {
- var changes = configChanges(platformTag);
-
- test.equal(changes['AndroidManifest.xml'].length, 2);
- test.equal(changes['res/xml/plugins.xml'].length, 1);
- test.equal(changes['res/xml/config.xml'].length, 1);
- test.done();
- }
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/dummy.xml
----------------------------------------------------------------------
diff --git a/test/dummy.xml b/test/dummy.xml
deleted file mode 100644
index 4303dec..0000000
--- a/test/dummy.xml
+++ /dev/null
@@ -1,87 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Copyright 2013 Anis Kadri
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-
-<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
- xmlns:android="http://schemas.android.com/apk/res/android"
- id="com.phonegap.plugins.childbrowser"
- version="0.6.0">
-
- <name>Child Browser</name>
-
- <asset src="www/childbrowser.js" target="childbrowser.js" />
- <asset src="www/childbrowser" target="childbrowser" />
-
- <access origin="build.phonegap.com" />
- <access origin="s3.amazonaws.com" />
-
- <!-- android -->
- <platform name="android">
- <config-file target="AndroidManifest.xml" parent="/manifest/application">
- <activity android:name="com.phonegap.plugins.childBrowser.ChildBrowser"
- android:label="@string/app_name">
- <intent-filter>
- </intent-filter>
- </activity>
- </config-file>
-
- <config-file target="AndroidManifest.xml" parent="/somewhere/else">
- <another-tag real="false">
- <child-here>HALLO</child-here>
- </another-tag>
- </config-file>
-
- <!-- CDV < 2.0 -->
- <config-file target="res/xml/plugins.xml" parent="/plugins">
- <plugin name="ChildBrowser"
- value="com.phonegap.plugins.childBrowser.ChildBrowser"/>
- </config-file>
-
- <!-- CDV 2.0+ (for now) -->
- <config-file target="res/xml/config.xml" parent="/cordova/plugins">
- <plugin name="ChildBrowser"
- value="com.phonegap.plugins.childBrowser.ChildBrowser"/>
- </config-file>
-
- <source-file src="ChildBrowser.java"
- target-dir="src/com/phonegap/plugins/childBrowser" />
- </platform>
-
- <!-- ios -->
- <platform name="ios">
- <plugins-plist key="com.phonegap.plugins.childbrowser"
- string="ChildBrowserCommand" />
-
- <resource-file src="ChildBrowser.bundle" />
- <resource-file src="ChildBrowserViewController.xib" />
-
- <header-file src="ChildBrowserCommand.h" />
- <header-file src="ChildBrowserViewController.h" />
- <header-file src="preserveDirs/PreserveDirsTest.h" preserve-dirs="true" />
- <header-file src="TargetDirTest.h" target-dir="targetDir"/>
-
- <source-file src="ChildBrowserCommand.m" />
- <source-file src="ChildBrowserViewController.m" />
- <source-file src="preserveDirs/PreserveDirsTest.m" preserve-dirs="true" />
- <header-file src="TargetDirTest.m" target-dir="targetDir"/>
-
- <!-- framework for testing (not actual dependency of ChildBrowser -->
- <framework src="libsqlite3.dylib" />
- </platform>
-</plugin>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/equalNodes.js
----------------------------------------------------------------------
diff --git a/test/equalNodes.js b/test/equalNodes.js
deleted file mode 100644
index 6c1b7d0..0000000
--- a/test/equalNodes.js
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-var path = require('path')
- , xml_helpers = require(path.join(__dirname, '..', 'util', 'xml-helpers'))
- , et = require('elementtree')
-
- , title = et.XML('<title>HELLO</title>')
- , usesNetworkOne = et.XML('<uses-permission ' +
- 'android:name="PACKAGE_NAME.permission.C2D_MESSAGE"/>')
- , usesNetworkTwo = et.XML("<uses-permission android:name=\
- \"PACKAGE_NAME.permission.C2D_MESSAGE\" />")
- , usesReceive = et.XML("<uses-permission android:name=\
- \"com.google.android.c2dm.permission.RECEIVE\"/>")
- , helloTagOne = et.XML("<h1>HELLO</h1>")
- , goodbyeTag = et.XML("<h1>GOODBYE</h1>")
- , helloTagTwo = et.XML("<h1> HELLO </h1>");
-
-exports['should return false for different tags'] = function (test) {
- test.ok(!xml_helpers.equalNodes(usesNetworkOne, title));
- test.done();
-}
-
-exports['should return true for identical tags'] = function (test) {
- test.ok(xml_helpers.equalNodes(usesNetworkOne, usesNetworkTwo));
- test.done();
-}
-
-exports['should return false for different attributes'] = function (test) {
- test.ok(!xml_helpers.equalNodes(usesNetworkOne, usesReceive));
- test.done();
-}
-
-exports['should distinguish between text'] = function (test) {
- test.ok(!xml_helpers.equalNodes(helloTagOne, goodbyeTag));
- test.done();
-}
-
-exports['should ignore whitespace in text'] = function (test) {
- test.ok(xml_helpers.equalNodes(helloTagOne, helloTagTwo));
- test.done();
-}
-
-exports['should compare children'] = {
- 'by child quantity': function (test) {
- var one = et.XML('<i><b>o</b></i>'),
- two = et.XML('<i><b>o</b><u></u></i>');
-
- test.ok(!xml_helpers.equalNodes(one, two));
- test.done();
- },
- 'by child equality': function (test) {
- var one = et.XML('<i><b>o</b></i>'),
- two = et.XML('<i><u></u></i>'),
- uno = et.XML('<i>\n<b>o</b>\n</i>');
-
- test.ok(xml_helpers.equalNodes(one, uno));
- test.ok(!xml_helpers.equalNodes(one, two));
- test.done();
- }
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/ios-config-xml-install.js
----------------------------------------------------------------------
diff --git a/test/ios-config-xml-install.js b/test/ios-config-xml-install.js
deleted file mode 100644
index 2c25fbc..0000000
--- a/test/ios-config-xml-install.js
+++ /dev/null
@@ -1,250 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-var fs = require('fs')
- , path = require('path')
- , xcode = require('xcode')
- , osenv = require('osenv')
- , shell = require('shelljs')
- , et = require('elementtree')
- , ios = require(path.join(__dirname, '..', 'platforms', 'ios'))
- , plugin_loader = require('../util/plugin_loader')
- , test_dir = path.join(osenv.tmpdir(), 'test_plugman')
- , test_project_dir = path.join(test_dir, 'projects', 'ios-config-xml')
- , test_plugin_dir = path.join(test_dir, 'plugins', 'ChildBrowser')
- , xml_path = path.join(test_dir, 'plugins', 'ChildBrowser', 'plugin.xml')
- , xml_text, plugin_et
-
- , plugman = require('../plugman')
- , plugins_dir = path.join(test_dir, 'plugins')
- , silent = require('../util/test-helpers').suppressOutput
-
- //, assetsDir = path.resolve(config.projectPath, 'www')
- , srcDir = path.resolve(test_project_dir, 'SampleApp', 'Plugins')
- , wwwDir = path.resolve(test_project_dir, 'www')
- , resDir = path.resolve(test_project_dir, 'SampleApp', 'Resources');
-
-exports.setUp = function(callback) {
- shell.mkdir('-p', test_dir);
-
- // copy the ios test project to a temp directory
- shell.cp('-r', path.join(__dirname, 'projects'), test_dir);
-
- // copy the ios test plugin to a temp directory
- shell.cp('-r', path.join(__dirname, 'plugins'), test_dir);
-
- // parse the plugin.xml into an elementtree object
- xml_text = fs.readFileSync(xml_path, 'utf-8')
- plugin_et = new et.ElementTree(et.XML(xml_text));
-
- callback();
-}
-
-exports.tearDown = function(callback) {
- // remove the temp files (projects and plugins)
- shell.rm('-rf', test_dir);
- callback();
-}
-
-exports['should install webless plugin'] = function (test) {
- // setting up a DummyPlugin
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'WeblessPlugin', plugins_dir);
- });
-
- test.done();
-}
-
-exports['should move the js file'] = function (test) {
- var jsPath = path.join(test_dir, 'projects', 'ios-config-xml', 'www', 'plugins', 'com.phonegap.plugins.childbrowser', 'www', 'childbrowser.js');
-
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.ok(fs.existsSync(jsPath));
- test.ok(fs.statSync(jsPath).isFile());
- test.done();
-}
-
-exports['should move the source files'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.ok(fs.existsSync(path.join(srcDir, 'ChildBrowserCommand.m')));
- test.ok(fs.existsSync(path.join(srcDir, 'ChildBrowserViewController.m')));
- test.ok(fs.existsSync(path.join(srcDir, 'src', 'ios', 'preserveDirs', 'PreserveDirsTest.m')));
- test.ok(fs.existsSync(path.join(srcDir, 'targetDir', 'TargetDirTest.m')));
- test.done();
-}
-
-exports['should move the header files'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.ok(fs.existsSync(path.join(srcDir, 'ChildBrowserCommand.h')));
- test.ok(fs.existsSync(path.join(srcDir, 'ChildBrowserViewController.h')));
- test.ok(fs.existsSync(path.join(srcDir, 'src', 'ios', 'preserveDirs', 'PreserveDirsTest.h')));
- test.ok(fs.existsSync(path.join(srcDir, 'targetDir', 'TargetDirTest.h')));
- test.done();
-}
-
-
-exports['should move the xib file'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.ok(fs.statSync(path.join(resDir, 'ChildBrowserViewController.xib')));
- test.done();
-}
-
-exports['should move the bundle'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- var bundle = fs.statSync(path.join(resDir, 'ChildBrowser.bundle'));
-
- test.ok(bundle.isDirectory());
- test.done();
-}
-
-exports['should edit config.xml'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'WebNotifications', plugins_dir);
- });
-
- var configXmlPath = path.join(test_project_dir, 'SampleApp', 'config.xml');
- var pluginsTxt = fs.readFileSync(configXmlPath, 'utf-8'),
- pluginsDoc = new et.ElementTree(et.XML(pluginsTxt)),
- expected = 'plugins/plugin[@name="WebNotifications"]' +
- '[@value="WebNotifications"]';
-
- test.ok(pluginsDoc.find(expected));
- test.equal(pluginsDoc.findall("access").length, 3, "/access");
- test.equal(pluginsDoc.findall("access")[1].attrib["origin"], "build.phonegap.com")
- test.equal(pluginsDoc.findall("access")[2].attrib["origin"], "s3.amazonaws.com")
- test.done();
-}
-
-exports['should edit the pbxproj file'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- var projPath = path.join(test_project_dir, 'SampleApp.xcodeproj', 'project.pbxproj');
-
- obj = xcode.project(projPath).parseSync();
- var fileRefSection = obj.hash.project.objects['PBXFileReference'],
- fileRefLength = Object.keys(fileRefSection).length,
- EXPECTED_TOTAL_REFERENCES = 96; // magic number ahoy!
-
- test.equal(fileRefLength, EXPECTED_TOTAL_REFERENCES);
- test.done();
-}
-
-exports['should add the framework references to the pbxproj file'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- var projPath = path.join(test_project_dir, 'SampleApp.xcodeproj', 'project.pbxproj'),
- projContents = fs.readFileSync(projPath, 'utf8'),
- projLines = projContents.split("\n"),
- weak_linked = "settings = {ATTRIBUTES = (Weak, ); };",
- references;
-
- references = projLines.filter(function (line) {
- return !!(line.match("libsqlite3.dylib"));
- });
-
- // should be four libsqlite3 reference lines added
- // pretty low-rent test eh
- test.equal(references.length, 4);
- test.ok(references[0].indexOf(weak_linked) == -1);
- test.done();
-}
-
-exports['should add the framework references with weak option to the pbxproj file'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- var projPath = path.join(test_project_dir, 'SampleApp.xcodeproj', 'project.pbxproj'),
- projContents = fs.readFileSync(projPath, 'utf8'),
- projLines = projContents.split("\n"),
- weak_linked = "settings = {ATTRIBUTES = (Weak, ); };",
- references;
-
- weak_references = projLines.filter(function (line) {
- return !!(line.match("social.framework"));
- });
-
- non_weak_references = projLines.filter(function (line) {
- return !!(line.match("music.framework"));
- });
-
- // should be four libsqlite3 reference lines added
- // pretty low-rent test eh
- test.equal(weak_references.length, 4);
- test.ok(weak_references[0].indexOf(weak_linked) != -1);
-
- test.equal(non_weak_references.length, 4);
- test.ok(non_weak_references[0].indexOf(weak_linked) == -1);
-
- test.done();
-}
-
-exports['should not install a plugin that is already installed'] = function (test) {
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.throws(function(){ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et); },
- /already installed/
- );
- test.done();
-}
-
-exports['should skip collision check when installation is forced'] = function (test) {
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- // deleting files because only presence in config.xml determines installation
- shell.rm('-rf', srcDir + '/*');
- shell.rm('-rf', resDir + '/*');
- shell.rm('-rf', wwwDir + '/*');
- test.doesNotThrow(function(){ios.handlePlugin('force-install', test_project_dir, test_plugin_dir, plugin_et); },
- /already installed/
- );
- test.done();
-}
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/ios-config-xml-uninstall.js
----------------------------------------------------------------------
diff --git a/test/ios-config-xml-uninstall.js b/test/ios-config-xml-uninstall.js
deleted file mode 100644
index 0ba5813..0000000
--- a/test/ios-config-xml-uninstall.js
+++ /dev/null
@@ -1,227 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-var fs = require('fs')
- , path = require('path')
- , plist = require('plist')
- , xcode = require('xcode')
- , osenv = require('osenv')
- , shell = require('shelljs')
- , et = require('elementtree')
- , ios = require(path.join(__dirname, '..', 'platforms', 'ios'))
-
- , test_dir = path.join(osenv.tmpdir(), 'test_plugman')
- , test_project_dir = path.join(test_dir, 'projects', 'ios-config-xml')
- , test_plugin_dir = path.join(test_dir, 'plugins', 'ChildBrowser')
- , xml_path = path.join(test_dir, 'plugins', 'ChildBrowser', 'plugin.xml')
- , xml_text, plugin_et
-
- , plugman = require('../plugman')
- , plugins_dir = path.join(test_dir, 'plugins')
- , silent = require('../util/test-helpers').suppressOutput
-
- //, assetsDir = path.resolve(config.projectPath, 'www')
- , srcDir = path.resolve(test_project_dir, 'SampleApp', 'Plugins')
- , resDir = path.resolve(test_project_dir, 'SampleApp', 'Resources');
-
-exports.setUp = function(callback) {
- shell.mkdir('-p', test_dir);
-
- // copy the ios test project to a temp directory
- shell.cp('-r', path.join(__dirname, 'projects'), test_dir);
-
- // copy the ios test plugin to a temp directory
- shell.cp('-r', path.join(__dirname, 'plugins'), test_dir);
-
- // parse the plugin.xml into an elementtree object
- xml_text = fs.readFileSync(xml_path, 'utf-8')
- plugin_et = new et.ElementTree(et.XML(xml_text));
-
- callback();
-}
-
-exports.tearDown = function(callback) {
- // remove the temp files (projects and plugins)
- shell.rm('-rf', test_dir);
- callback();
-}
-
-exports['should remove webless plugin'] = function (test) {
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'WeblessPlugin', plugins_dir);
- plugman.handlePlugin('uninstall', 'ios', test_project_dir, 'WeblessPlugin', plugins_dir);
- });
-
- test.done();
-}
-
-exports['should remove the js file'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- plugman.handlePlugin('uninstall', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- var jsPath = path.join(test_dir, 'projects', 'ios-config-xml', 'plugins', 'com.phonegap.plugins.childbrowser', 'www', 'childbrowser.js');
- test.ok(!fs.existsSync(jsPath))
- test.done();
-}
-
-exports['should remove the source files'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- plugman.handlePlugin('uninstall', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.ok(!fs.existsSync(path.join(srcDir, 'ChildBrowserCommand.m')));
- test.ok(!fs.existsSync(path.join(srcDir, 'ChildBrowserViewController.m')));
- test.ok(!fs.existsSync(path.join(srcDir, 'src', 'ios', 'preserveDirs', 'PreserveDirsTest.m')));
- test.ok(!fs.existsSync(path.join(srcDir, 'targetDir', 'TargetDirTest.m')));
- test.done();
-}
-
-exports['should remove the header files'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- plugman.handlePlugin('uninstall', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.ok(!fs.existsSync(path.join(srcDir, 'ChildBrowserCommand.h')));
- test.ok(!fs.existsSync(path.join(srcDir, 'ChildBrowserViewController.h')));
- test.ok(!fs.existsSync(path.join(srcDir, 'src', 'ios', 'preserveDirs', 'PreserveDirsTest.h')));
- test.ok(!fs.existsSync(path.join(srcDir, 'targetDir', 'TargetDirTest.h')));
- test.done();
-}
-
-exports['should remove the xib file'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- plugman.handlePlugin('uninstall', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.ok(!fs.existsSync(path.join(resDir, 'ChildBrowserViewController.xib')));
- test.done();
-}
-
-exports['should remove the bundle'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- plugman.handlePlugin('uninstall', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- test.ok(!fs.existsSync(path.join(resDir, 'ChildBrowser.bundle')));
- test.done();
-}
-
-exports['should edit config.xml'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'WebNotifications', plugins_dir);
- plugman.handlePlugin('uninstall', 'ios', test_project_dir, 'WebNotifications', plugins_dir);
- });
-
- var configXmlPath = path.join(test_project_dir, 'SampleApp', 'config.xml');
- var pluginsTxt = fs.readFileSync(configXmlPath, 'utf-8'),
- pluginsDoc = new et.ElementTree(et.XML(pluginsTxt)),
- expected = 'plugins/plugin[@name="WebNotifications"]' +
- '[@value="WebNotifications"]';
-
- test.ok(!pluginsDoc.find(expected));
- test.equal(pluginsDoc.findall("access").length, 1, "/access");
-
- test.done();
-}
-
-exports['should remove custom config-file elements'] = function (test) {
- // setting up WebNotification (with config.xml)
- var dummy_plugin_dir = path.join(test_dir, 'plugins', 'ChildBrowser')
- var dummy_xml_path = path.join(test_dir, 'plugins', 'ChildBrowser', 'plugin.xml')
-
- // overriding some params
- var dummy_plugin_et = new et.ElementTree(et.XML(fs.readFileSync(dummy_xml_path, 'utf-8')));
-
- // run the platform-specific function
- ios.handlePlugin('install', test_project_dir, dummy_plugin_dir, dummy_plugin_et, { APP_ID: '1234' });
- ios.handlePlugin('uninstall', test_project_dir, dummy_plugin_dir, dummy_plugin_et);
-
- var configPath = path.join(test_project_dir, 'SampleApp', 'SampleApp-Info.plist');
- var configPList = plist.parseFileSync(configPath);
-
- test.equal(configPList['AppId'], null);
- test.equal(configPList['CFBundleURLTypes'], null);
- test.done();
-}
-
-exports['should edit the pbxproj file'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- plugman.handlePlugin('uninstall', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- var projPath = path.join(test_project_dir, 'SampleApp.xcodeproj', 'project.pbxproj');
-
- obj = xcode.project(projPath).parseSync();
- var fileRefSection = obj.hash.project.objects['PBXFileReference'],
- fileRefLength = Object.keys(fileRefSection).length,
- EXPECTED_TOTAL_REFERENCES = 70; // magic number ahoy!
-
- test.equal(fileRefLength, EXPECTED_TOTAL_REFERENCES);
- test.done();
-}
-
-exports['should remove the framework references from the pbxproj file'] = function (test) {
- // run the platform-specific function
- silent(function() {
- plugman.handlePlugin('install', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- plugman.handlePlugin('uninstall', 'ios', test_project_dir, 'ChildBrowser', plugins_dir);
- });
-
- var projPath = path.join(test_project_dir, 'SampleApp.xcodeproj', 'project.pbxproj'),
- projContents = fs.readFileSync(projPath, 'utf8'),
- projLines = projContents.split("\n"),
- references;
-
- references = projLines.filter(function (line) {
- return !!(line.match("libsqlite3.dylib"));
- })
-
- // should be four libsqlite3 reference lines added
- // pretty low-rent test eh
- test.equal(references.length, 0);
- test.done();
-}
-
-exports['should not uninstall a plugin that is not installed'] = function (test) {
- test.throws(function(){ios.handlePlugin('uninstall', test_project_dir, test_plugin_dir, plugin_et); },
- /not installed/
- );
- test.done();
-}
-
-exports['should skip collision check when installation is forced'] = function (test) {
- test.doesNotThrow(function(){ios.handlePlugin('uninstall-force', test_project_dir, test_plugin_dir, plugin_et); },
- /already installed/
- );
- test.done();
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/ios-plist-install.js
----------------------------------------------------------------------
diff --git a/test/ios-plist-install.js b/test/ios-plist-install.js
deleted file mode 100644
index 5211cec..0000000
--- a/test/ios-plist-install.js
+++ /dev/null
@@ -1,237 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-var fs = require('fs')
- , path = require('path')
- , plist = require('plist')
- , xcode = require('xcode')
- , osenv = require('osenv')
- , shell = require('shelljs')
- , et = require('elementtree')
- , ios = require(path.join(__dirname, '..', 'platforms', 'ios'))
- , plugin_loader = require('../util/plugin_loader')
- , test_dir = path.join(osenv.tmpdir(), 'test_plugman')
- , test_project_dir = path.join(test_dir, 'projects', 'ios-plist')
- , test_plugin_dir = path.join(test_dir, 'plugins', 'ChildBrowser')
- , xml_path = path.join(test_dir, 'plugins', 'ChildBrowser', 'plugin.xml')
- , xml_text, plugin_et
-
- //, assetsDir = path.resolve(config.projectPath, 'www')
- , srcDir = path.resolve(test_project_dir, 'SampleApp/Plugins')
- , wwwDir = path.resolve(test_project_dir, 'www')
- , resDir = path.resolve(test_project_dir, 'SampleApp/Resources');
-
-exports.setUp = function(callback) {
- shell.mkdir('-p', test_dir);
-
- // copy the ios test project to a temp directory
- shell.cp('-r', path.join(__dirname, 'projects'), test_dir);
-
- // copy the ios test plugin to a temp directory
- shell.cp('-r', path.join(__dirname, 'plugins'), test_dir);
-
- // parse the plugin.xml into an elementtree object
- xml_text = fs.readFileSync(xml_path, 'utf-8')
- plugin_et = new et.ElementTree(et.XML(xml_text));
-
- callback();
-}
-
-exports.tearDown = function(callback) {
- // remove the temp files (projects and plugins)
- shell.rm('-rf', test_dir);
- callback();
-}
-
-exports['should install webless plugin'] = function (test) {
-
- // setting up a DummyPlugin
- var dummy_plugin_dir = path.join(test_dir, 'plugins', 'WeblessPlugin')
- var dummy_xml_path = path.join(test_dir, 'plugins', 'WeblessPlugin', 'plugin.xml')
- var dummy_plugin_et = new et.ElementTree(et.XML(fs.readFileSync(dummy_xml_path, 'utf-8')));
-
- ios.handlePlugin('install', test_project_dir, dummy_plugin_dir, dummy_plugin_et, { APP_ID: 12345 });
-
- test.done();
-}
-
-exports['should move the js file'] = function (test) {
- var pluginsPath = path.join(test_dir, 'plugins');
- var wwwPath = path.join(test_dir, 'projects', 'ios-plist', 'www');
- var jsPath = path.join(test_dir, 'projects', 'ios-plist', 'www', 'plugins', 'com.phonegap.plugins.childbrowser', 'www', 'childbrowser.js');
-
- // run the platform-specific function
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et, { APP_ID: 12345 });
- plugin_loader.handlePrepare(test_project_dir, pluginsPath, wwwPath, 'ios');
-
- test.ok(fs.existsSync(jsPath));
- test.ok(fs.statSync(jsPath).isFile());
- test.done();
-}
-
-exports['should move the source files'] = function (test) {
- var pluginsPath = path.join(test_dir, 'plugins');
- var wwwPath = path.join(test_dir, 'projects', 'ios-plist', 'www');
- var preserveDirPath = path.join(srcDir, 'src', 'ios');
-
- // run the platform-specific function
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et, { APP_ID: 12345 });
- plugin_loader.handlePrepare(test_project_dir, pluginsPath, wwwPath, 'ios');
-
- test.ok(fs.existsSync(srcDir + '/ChildBrowserCommand.m'))
- test.ok(fs.existsSync(srcDir + '/ChildBrowserViewController.m'))
- test.ok(fs.existsSync(preserveDirPath + '/preserveDirs/PreserveDirsTest.m'))
- test.ok(fs.existsSync(srcDir + '/targetDir/TargetDirTest.m'))
- test.done();
-}
-
-exports['should move the header files'] = function (test) {
- var pluginsPath = path.join(test_dir, 'plugins');
- var wwwPath = path.join(test_dir, 'projects', 'ios-plist', 'www');
- var preserveDirPath = path.join(srcDir, 'src', 'ios');
-
- // run the platform-specific function
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et, { APP_ID: 12345 });
- plugin_loader.handlePrepare(test_project_dir, pluginsPath, wwwPath, 'ios');
-
- test.ok(fs.statSync(srcDir + '/ChildBrowserCommand.h'));
- test.ok(fs.statSync(srcDir + '/ChildBrowserViewController.h'));
- test.ok(fs.statSync(preserveDirPath + '/preserveDirs/PreserveDirsTest.h'));
- test.ok(fs.statSync(srcDir + '/targetDir/TargetDirTest.h'));
- test.done();
-}
-
-exports['should move the xib file'] = function (test) {
- // run the platform-specific function
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et, { APP_ID: 12345 });
-
- test.ok(fs.statSync(resDir + '/ChildBrowserViewController.xib'));
- test.done();
-}
-
-exports['should move the bundle'] = function (test) {
- // run the platform-specific function
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et, { APP_ID: 12345 });
-
- var bundle = fs.statSync(resDir + '/ChildBrowser.bundle');
-
- test.ok(bundle.isDirectory());
- test.done();
-}
-
-
-exports['should edit PhoneGap.plist'] = function (test) {
- // run the platform-specific function
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et, { APP_ID: 12345 });
-
- var plistPath = test_project_dir + '/SampleApp/PhoneGap.plist';
- var obj = plist.parseFileSync(plistPath);
-
- test.equal(obj.Plugins['com.phonegap.plugins.childbrowser'],
- 'ChildBrowserCommand');
-
- test.equal(obj.ExternalHosts.length, 2)
- test.equal(obj.ExternalHosts[0], "build.phonegap.com")
- test.equal(obj.ExternalHosts[1], "s3.amazonaws.com")
-
- test.done();
-}
-
-exports['should edit the pbxproj file'] = function (test) {
- // run the platform-specific function
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et, { APP_ID: 12345 });
-
- var projPath = test_project_dir + '/SampleApp.xcodeproj/project.pbxproj';
-
- obj = xcode.project(projPath).parseSync();
- var fileRefSection = obj.hash.project.objects['PBXFileReference'],
- fileRefLength = Object.keys(fileRefSection).length,
- EXPECTED_TOTAL_REFERENCES = 96; // magic number ahoy!
-
- test.equal(fileRefLength, EXPECTED_TOTAL_REFERENCES);
- test.done();
-}
-
-exports['should add the framework references to the pbxproj file'] = function (test) {
- // run the platform-specific function
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et, { APP_ID: 12345 });
- var projPath = test_project_dir + '/SampleApp.xcodeproj/project.pbxproj',
- projContents = fs.readFileSync(projPath, 'utf8'),
- projLines = projContents.split("\n"),
- weak_linked = "settings = {ATTRIBUTES = (Weak, ); };",
- references;
-
- references = projLines.filter(function (line) {
- return !!(line.match("libsqlite3.dylib"));
- })
-
- // should be four libsqlite3 reference lines added
- // pretty low-rent test eh
- test.equal(references.length, 4);
- test.ok(references[0].indexOf(weak_linked) == -1);
- test.done();
-}
-
-exports['should add the framework references with weak option to the pbxproj file'] = function (test) {
- // run the platform-specific function
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et, { APP_ID: 12345 });
- var projPath = test_project_dir + '/SampleApp.xcodeproj/project.pbxproj',
- projContents = fs.readFileSync(projPath, 'utf8'),
- projLines = projContents.split("\n"),
- weak_linked = "settings = {ATTRIBUTES = (Weak, ); };",
- references;
-
- weak_references = projLines.filter(function (line) {
- return !!(line.match("social.framework"));
- })
-
- non_weak_references = projLines.filter(function (line) {
- return !!(line.match("music.framework"));
- })
-
- // should be four libsqlite3 reference lines added
- // pretty low-rent test eh
- test.equal(weak_references.length, 4);
- test.ok(weak_references[0].indexOf(weak_linked) != -1);
-
- test.equal(non_weak_references.length, 4);
- test.ok(non_weak_references[0].indexOf(weak_linked) == -1);
- test.done();
-}
-
-exports['should not install a plugin that is already installed'] = function (test) {
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et, { APP_ID: 12345 });
-
- test.throws(function(){ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et); },
- /already installed/
- );
- test.done();
-}
-
-exports['should skip collision check when installation is forced'] = function (test) {
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et, { APP_ID: 12345 });
- // deleting files because only presence in config.xml determines installation
- shell.rm('-rf', srcDir + '/*');
- shell.rm('-rf', resDir + '/*');
- shell.rm('-rf', wwwDir + '/*');
- test.doesNotThrow(function(){ios.handlePlugin('force-install', test_project_dir, test_plugin_dir, plugin_et); },
- /already installed/
- );
- test.done();
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/ios-plist-uninstall.js
----------------------------------------------------------------------
diff --git a/test/ios-plist-uninstall.js b/test/ios-plist-uninstall.js
deleted file mode 100644
index 598c439..0000000
--- a/test/ios-plist-uninstall.js
+++ /dev/null
@@ -1,217 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-var fs = require('fs')
- , path = require('path')
- , plist = require('plist')
- , xcode = require('xcode')
- , osenv = require('osenv')
- , shell = require('shelljs')
- , et = require('elementtree')
- , ios = require(path.join(__dirname, '..', 'platforms', 'ios'))
-
- , test_dir = path.join(osenv.tmpdir(), 'test_plugman')
- , test_project_dir = path.join(test_dir, 'projects', 'ios-plist')
- , test_plugin_dir = path.join(test_dir, 'plugins', 'ChildBrowser')
- , xml_path = path.join(test_dir, 'plugins', 'ChildBrowser', 'plugin.xml')
- , xml_text, plugin_et
-
- //, assetsDir = path.resolve(config.projectPath, 'www')
- , srcDir = path.resolve(test_project_dir, 'SampleApp/Plugins')
- , resDir = path.resolve(test_project_dir, 'SampleApp/Resources');
-
-exports.setUp = function(callback) {
- shell.mkdir('-p', test_dir);
-
- // copy the ios test project to a temp directory
- shell.cp('-r', path.join(__dirname, 'projects'), test_dir);
-
- // copy the ios test plugin to a temp directory
- shell.cp('-r', path.join(__dirname, 'plugins'), test_dir);
-
- // parse the plugin.xml into an elementtree object
- xml_text = fs.readFileSync(xml_path, 'utf-8')
- plugin_et = new et.ElementTree(et.XML(xml_text));
-
- callback();
-}
-
-exports.tearDown = function(callback) {
- // remove the temp files (projects and plugins)
- shell.rm('-rf', test_dir);
- callback();
-}
-
-exports['should remove webless plugin'] = function (test) {
-
- // setting up a DummyPlugin
- var dummy_plugin_dir = path.join(test_dir, 'plugins', 'WeblessPlugin')
- var dummy_xml_path = path.join(test_dir, 'plugins', 'WeblessPlugin', 'plugin.xml')
- var dummy_plugin_et = new et.ElementTree(et.XML(fs.readFileSync(dummy_xml_path, 'utf-8')));
-
- ios.handlePlugin('install', test_project_dir, dummy_plugin_dir, dummy_plugin_et);
- ios.handlePlugin('uninstall', test_project_dir, dummy_plugin_dir, dummy_plugin_et);
-
- test.done();
-}
-
-exports['should remove the js file'] = function (test) {
- // run the platform-specific function
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et);
- ios.handlePlugin('uninstall', test_project_dir, test_plugin_dir, plugin_et);
-
- var jsPath = path.join(test_dir, 'projects', 'ios', 'www', 'childbrowser.js');
- test.ok(!fs.existsSync(jsPath))
- test.done();
-}
-
-exports['should remove the source files'] = function (test) {
- // run the platform-specific function
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et);
- ios.handlePlugin('uninstall', test_project_dir, test_plugin_dir, plugin_et);
-
- test.ok(!fs.existsSync(srcDir + '/ChildBrowserCommand.m'))
- test.ok(!fs.existsSync(srcDir + '/ChildBrowserViewController.m'))
- test.ok(!fs.existsSync(srcDir + '/preserveDirs/PreserveDirsTest.m'))
- test.ok(!fs.existsSync(srcDir + '/targetDir/TargetDirTest.m'))
- test.done();
-}
-
-exports['should remove the header files'] = function (test) {
- // run the platform-specific function
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et);
- ios.handlePlugin('uninstall', test_project_dir, test_plugin_dir, plugin_et);
-
- test.ok(!fs.existsSync(srcDir + '/ChildBrowserCommand.h'))
- test.ok(!fs.existsSync(srcDir + '/ChildBrowserViewController.h'))
- test.ok(!fs.existsSync(srcDir + '/preserveDirs/PreserveDirsTest.h'))
- test.ok(!fs.existsSync(srcDir + '/targetDir/TargetDirTest.h'))
- test.done();
-}
-
-exports['should remove the xib file'] = function (test) {
- // run the platform-specific function
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et);
- ios.handlePlugin('uninstall', test_project_dir, test_plugin_dir, plugin_et);
-
- test.ok(!fs.existsSync(resDir + '/ChildBrowserViewController.xib'))
- test.done();
-}
-
-exports['should remove the bundle'] = function (test) {
- // run the platform-specific function
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et);
- ios.handlePlugin('uninstall', test_project_dir, test_plugin_dir, plugin_et);
-
- test.ok(!fs.existsSync(resDir + '/ChildBrowser.bundle'))
- test.done();
-}
-
-exports['should edit PhoneGap.plist'] = function (test) {
- // run the platform-specific function
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et, { APP_ID: 12345 });
- ios.handlePlugin('uninstall', test_project_dir, test_plugin_dir, plugin_et);
-
- var plistPath = test_project_dir + '/SampleApp/PhoneGap.plist';
- obj = plist.parseFileSync(plistPath);
-
- test.notEqual(obj.Plugins['com.phonegap.plugins.childbrowser'],
- 'ChildBrowserCommand');
-
- test.equal(obj.ExternalHosts.length, 0)
-
- test.done();
-}
-
-exports['should edit config.xml'] = function (test) {
- // setting up WebNotification (with config.xml)
- var dummy_plugin_dir = path.join(test_dir, 'plugins', 'WebNotifications')
- var dummy_xml_path = path.join(test_dir, 'plugins', 'WebNotifications', 'plugin.xml')
-
- // overriding some params
- var project_dir = path.join(test_dir, 'projects', 'ios-config-xml')
- var dummy_plugin_et = new et.ElementTree(et.XML(fs.readFileSync(dummy_xml_path, 'utf-8')));
-
- // run the platform-specific function
- ios.handlePlugin('install', project_dir, dummy_plugin_dir, dummy_plugin_et);
-
- ios.handlePlugin('uninstall', project_dir, dummy_plugin_dir, dummy_plugin_et);
-
- var configXmlPath = path.join(project_dir, 'SampleApp', 'config.xml');
- var pluginsTxt = fs.readFileSync(configXmlPath, 'utf-8'),
- pluginsDoc = new et.ElementTree(et.XML(pluginsTxt)),
- expected = 'plugins/plugin[@name="WebNotifications"]' +
- '[@value="WebNotifications"]';
-
- test.ok(!pluginsDoc.find(expected));
- test.equal(pluginsDoc.findall("access").length, 1, "/access");
-
- test.done();
-}
-
-exports['should edit the pbxproj file'] = function (test) {
- // run the platform-specific function
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et);
- ios.handlePlugin('uninstall', test_project_dir, test_plugin_dir, plugin_et);
-
- var projPath = test_project_dir + '/SampleApp.xcodeproj/project.pbxproj';
-
- obj = xcode.project(projPath).parseSync();
- var fileRefSection = obj.hash.project.objects['PBXFileReference'],
- fileRefLength = Object.keys(fileRefSection).length,
- EXPECTED_TOTAL_REFERENCES = 70; // magic number ahoy!
-
- test.equal(fileRefLength, EXPECTED_TOTAL_REFERENCES);
- test.done();
-}
-
-exports['should remove the framework references from the pbxproj file'] = function (test) {
- // run the platform-specific function
- ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et);
- ios.handlePlugin('uninstall', test_project_dir, test_plugin_dir, plugin_et);
-
-
- var projPath = test_project_dir + '/SampleApp.xcodeproj/project.pbxproj',
- projContents = fs.readFileSync(projPath, 'utf8'),
- projLines = projContents.split("\n"),
- references;
-
- references = projLines.filter(function (line) {
- return !!(line.match("libsqlite3.dylib"));
- })
-
- // should be four libsqlite3 reference lines added
- // pretty low-rent test eh
- test.equal(references.length, 0);
- test.done();
-}
-
-exports['should not uninstall a plugin that is not installed'] = function (test) {
- test.throws(function(){ios.handlePlugin('uninstall', test_project_dir, test_plugin_dir, plugin_et); },
- /not installed/
- );
- test.done();
-}
-
-exports['should skip collision check when installation is forced'] = function (test) {
- test.doesNotThrow(function(){ios.handlePlugin('uninstall-force', test_project_dir, test_plugin_dir, plugin_et); },
- /already installed/
- );
- test.done();
-}
[02/10] remove old tests. jasmine migration complete
Posted by fi...@apache.org.
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/ios-config-xml/SampleApp.xcodeproj/project.pbxproj
----------------------------------------------------------------------
diff --git a/test/projects/ios-config-xml/SampleApp.xcodeproj/project.pbxproj b/test/projects/ios-config-xml/SampleApp.xcodeproj/project.pbxproj
deleted file mode 100644
index a4d87f9..0000000
--- a/test/projects/ios-config-xml/SampleApp.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,498 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 571A464014DB0A1B007FEAC7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A463F14DB0A1B007FEAC7 /* Foundation.framework */; };
- 571A464214DB0A1B007FEAC7 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464114DB0A1B007FEAC7 /* UIKit.framework */; };
- 571A464414DB0A1B007FEAC7 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464314DB0A1B007FEAC7 /* CoreGraphics.framework */; };
- 571A464614DB0A1B007FEAC7 /* AddressBook.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464514DB0A1B007FEAC7 /* AddressBook.framework */; };
- 571A464814DB0A1B007FEAC7 /* AddressBookUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464714DB0A1B007FEAC7 /* AddressBookUI.framework */; };
- 571A464A14DB0A1B007FEAC7 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464914DB0A1B007FEAC7 /* AudioToolbox.framework */; };
- 571A464C14DB0A1B007FEAC7 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464B14DB0A1B007FEAC7 /* AVFoundation.framework */; };
- 571A464E14DB0A1B007FEAC7 /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464D14DB0A1B007FEAC7 /* CoreLocation.framework */; };
- 571A465014DB0A1B007FEAC7 /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464F14DB0A1B007FEAC7 /* MediaPlayer.framework */; };
- 571A465214DB0A1B007FEAC7 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A465114DB0A1B007FEAC7 /* QuartzCore.framework */; };
- 571A465414DB0A1B007FEAC7 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A465314DB0A1B007FEAC7 /* SystemConfiguration.framework */; };
- 571A465614DB0A1B007FEAC7 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A465514DB0A1B007FEAC7 /* MobileCoreServices.framework */; };
- 571A465814DB0A1B007FEAC7 /* CoreMedia.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A465714DB0A1B007FEAC7 /* CoreMedia.framework */; };
- 571A465E14DB0A1B007FEAC7 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 571A465C14DB0A1B007FEAC7 /* InfoPlist.strings */; };
- 571A466014DB0A1B007FEAC7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 571A465F14DB0A1B007FEAC7 /* main.m */; };
- 571A466314DB0A1B007FEAC7 /* PhoneGap.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A466214DB0A1B007FEAC7 /* PhoneGap.framework */; };
- 571A466814DB0A1B007FEAC7 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 571A466614DB0A1B007FEAC7 /* Localizable.strings */; };
- 571A466C14DB0A1B007FEAC7 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 571A466A14DB0A1B007FEAC7 /* Localizable.strings */; };
- 571A466F14DB0A1B007FEAC7 /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A466E14DB0A1B007FEAC7 /* icon.png */; };
- 571A467114DB0A1B007FEAC7 /* icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A467014DB0A1B007FEAC7 /* icon@2x.png */; };
- 571A467314DB0A1B007FEAC7 /* icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A467214DB0A1B007FEAC7 /* icon-72.png */; };
- 571A467614DB0A1B007FEAC7 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A467514DB0A1B007FEAC7 /* Default.png */; };
- 571A467814DB0A1B007FEAC7 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A467714DB0A1B007FEAC7 /* Default@2x.png */; };
- 571A467A14DB0A1B007FEAC7 /* Capture.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 571A467914DB0A1B007FEAC7 /* Capture.bundle */; };
- 571A467C14DB0A1B007FEAC7 /* PhoneGap.plist in Resources */ = {isa = PBXBuildFile; fileRef = 571A467B14DB0A1B007FEAC7 /* PhoneGap.plist */; };
- 571A468014DB0A1B007FEAC7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 571A467F14DB0A1B007FEAC7 /* AppDelegate.m */; };
- 571A468314DB0A1B007FEAC7 /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 571A468214DB0A1B007FEAC7 /* MainViewController.m */; };
- 571A468514DB0A1B007FEAC7 /* MainViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 571A468414DB0A1B007FEAC7 /* MainViewController.xib */; };
- 577FC36614DB0B620082BA7B /* www in Resources */ = {isa = PBXBuildFile; fileRef = 577FC36514DB0B620082BA7B /* www */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 571A463B14DB0A1B007FEAC7 /* ChildApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ChildApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 571A463F14DB0A1B007FEAC7 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
- 571A464114DB0A1B007FEAC7 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
- 571A464314DB0A1B007FEAC7 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
- 571A464514DB0A1B007FEAC7 /* AddressBook.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBook.framework; path = System/Library/Frameworks/AddressBook.framework; sourceTree = SDKROOT; };
- 571A464714DB0A1B007FEAC7 /* AddressBookUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBookUI.framework; path = System/Library/Frameworks/AddressBookUI.framework; sourceTree = SDKROOT; };
- 571A464914DB0A1B007FEAC7 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
- 571A464B14DB0A1B007FEAC7 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
- 571A464D14DB0A1B007FEAC7 /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
- 571A464F14DB0A1B007FEAC7 /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; };
- 571A465114DB0A1B007FEAC7 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
- 571A465314DB0A1B007FEAC7 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
- 571A465514DB0A1B007FEAC7 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
- 571A465714DB0A1B007FEAC7 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; };
- 571A465B14DB0A1B007FEAC7 /* ChildApp-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ChildApp-Info.plist"; sourceTree = "<group>"; };
- 571A465D14DB0A1B007FEAC7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
- 571A465F14DB0A1B007FEAC7 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
- 571A466114DB0A1B007FEAC7 /* ChildApp-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ChildApp-Prefix.pch"; sourceTree = "<group>"; };
- 571A466214DB0A1B007FEAC7 /* PhoneGap.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = PhoneGap.framework; path = /Users/Shared/PhoneGap/Frameworks/PhoneGap.framework; sourceTree = "<absolute>"; };
- 571A466714DB0A1B007FEAC7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = Resources/en.lproj/Localizable.strings; sourceTree = "<group>"; };
- 571A466B14DB0A1B007FEAC7 /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = Resources/es.lproj/Localizable.strings; sourceTree = "<group>"; };
- 571A466E14DB0A1B007FEAC7 /* icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = icon.png; path = Resources/icons/icon.png; sourceTree = "<group>"; };
- 571A467014DB0A1B007FEAC7 /* icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "icon@2x.png"; path = "Resources/icons/icon@2x.png"; sourceTree = "<group>"; };
- 571A467214DB0A1B007FEAC7 /* icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "icon-72.png"; path = "Resources/icons/icon-72.png"; sourceTree = "<group>"; };
- 571A467514DB0A1B007FEAC7 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Default.png; path = Resources/splash/Default.png; sourceTree = "<group>"; };
- 571A467714DB0A1B007FEAC7 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default@2x.png"; path = "Resources/splash/Default@2x.png"; sourceTree = "<group>"; };
- 571A467914DB0A1B007FEAC7 /* Capture.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = Capture.bundle; path = Resources/Capture.bundle; sourceTree = "<group>"; };
- 571A467B14DB0A1B007FEAC7 /* PhoneGap.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = PhoneGap.plist; sourceTree = "<group>"; };
- 571A467E14DB0A1B007FEAC7 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Classes/AppDelegate.h; sourceTree = "<group>"; };
- 571A467F14DB0A1B007FEAC7 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = Classes/AppDelegate.m; sourceTree = "<group>"; };
- 571A468114DB0A1B007FEAC7 /* MainViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MainViewController.h; path = Classes/MainViewController.h; sourceTree = "<group>"; };
- 571A468214DB0A1B007FEAC7 /* MainViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MainViewController.m; path = Classes/MainViewController.m; sourceTree = "<group>"; };
- 571A468414DB0A1B007FEAC7 /* MainViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = MainViewController.xib; path = Classes/MainViewController.xib; sourceTree = "<group>"; };
- 571A468714DB0A1B007FEAC7 /* README */ = {isa = PBXFileReference; lastKnownFileType = text; name = README; path = Plugins/README; sourceTree = "<group>"; };
- 577FC36514DB0B620082BA7B /* www */ = {isa = PBXFileReference; lastKnownFileType = folder; path = www; sourceTree = "<group>"; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 571A463514DB0A1B007FEAC7 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 571A464014DB0A1B007FEAC7 /* Foundation.framework in Frameworks */,
- 571A464214DB0A1B007FEAC7 /* UIKit.framework in Frameworks */,
- 571A464414DB0A1B007FEAC7 /* CoreGraphics.framework in Frameworks */,
- 571A464614DB0A1B007FEAC7 /* AddressBook.framework in Frameworks */,
- 571A464814DB0A1B007FEAC7 /* AddressBookUI.framework in Frameworks */,
- 571A464A14DB0A1B007FEAC7 /* AudioToolbox.framework in Frameworks */,
- 571A464C14DB0A1B007FEAC7 /* AVFoundation.framework in Frameworks */,
- 571A464E14DB0A1B007FEAC7 /* CoreLocation.framework in Frameworks */,
- 571A465014DB0A1B007FEAC7 /* MediaPlayer.framework in Frameworks */,
- 571A465214DB0A1B007FEAC7 /* QuartzCore.framework in Frameworks */,
- 571A465414DB0A1B007FEAC7 /* SystemConfiguration.framework in Frameworks */,
- 571A465614DB0A1B007FEAC7 /* MobileCoreServices.framework in Frameworks */,
- 571A465814DB0A1B007FEAC7 /* CoreMedia.framework in Frameworks */,
- 571A466314DB0A1B007FEAC7 /* PhoneGap.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 571A463814DB0A1B007FEAC7 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 571A462D14DB0A1A007FEAC7 = {
- isa = PBXGroup;
- children = (
- 577FC36514DB0B620082BA7B /* www */,
- 571A465914DB0A1B007FEAC7 /* ChildApp */,
- 571A463E14DB0A1B007FEAC7 /* Frameworks */,
- 571A463C14DB0A1B007FEAC7 /* Products */,
- );
- sourceTree = "<group>";
- };
- 571A463C14DB0A1B007FEAC7 /* Products */ = {
- isa = PBXGroup;
- children = (
- 571A463B14DB0A1B007FEAC7 /* ChildApp.app */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 571A463E14DB0A1B007FEAC7 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 571A463F14DB0A1B007FEAC7 /* Foundation.framework */,
- 571A464114DB0A1B007FEAC7 /* UIKit.framework */,
- 571A464314DB0A1B007FEAC7 /* CoreGraphics.framework */,
- 571A464514DB0A1B007FEAC7 /* AddressBook.framework */,
- 571A464714DB0A1B007FEAC7 /* AddressBookUI.framework */,
- 571A464914DB0A1B007FEAC7 /* AudioToolbox.framework */,
- 571A464B14DB0A1B007FEAC7 /* AVFoundation.framework */,
- 571A464D14DB0A1B007FEAC7 /* CoreLocation.framework */,
- 571A464F14DB0A1B007FEAC7 /* MediaPlayer.framework */,
- 571A465114DB0A1B007FEAC7 /* QuartzCore.framework */,
- 571A465314DB0A1B007FEAC7 /* SystemConfiguration.framework */,
- 571A465514DB0A1B007FEAC7 /* MobileCoreServices.framework */,
- 571A465714DB0A1B007FEAC7 /* CoreMedia.framework */,
- );
- name = Frameworks;
- sourceTree = "<group>";
- };
- 571A465914DB0A1B007FEAC7 /* ChildApp */ = {
- isa = PBXGroup;
- children = (
- 571A466214DB0A1B007FEAC7 /* PhoneGap.framework */,
- 571A466414DB0A1B007FEAC7 /* Resources */,
- 571A467D14DB0A1B007FEAC7 /* Classes */,
- 571A468614DB0A1B007FEAC7 /* Plugins */,
- 571A465A14DB0A1B007FEAC7 /* Supporting Files */,
- );
- path = ChildApp;
- sourceTree = "<group>";
- };
- 571A465A14DB0A1B007FEAC7 /* Supporting Files */ = {
- isa = PBXGroup;
- children = (
- 571A465B14DB0A1B007FEAC7 /* ChildApp-Info.plist */,
- 571A465C14DB0A1B007FEAC7 /* InfoPlist.strings */,
- 571A465F14DB0A1B007FEAC7 /* main.m */,
- 571A466114DB0A1B007FEAC7 /* ChildApp-Prefix.pch */,
- 571A467B14DB0A1B007FEAC7 /* PhoneGap.plist */,
- 571A468414DB0A1B007FEAC7 /* MainViewController.xib */,
- );
- name = "Supporting Files";
- sourceTree = "<group>";
- };
- 571A466414DB0A1B007FEAC7 /* Resources */ = {
- isa = PBXGroup;
- children = (
- 571A467914DB0A1B007FEAC7 /* Capture.bundle */,
- 571A466514DB0A1B007FEAC7 /* en.lproj */,
- 571A466914DB0A1B007FEAC7 /* es.lproj */,
- 571A466D14DB0A1B007FEAC7 /* icons */,
- 571A467414DB0A1B007FEAC7 /* splash */,
- );
- name = Resources;
- sourceTree = "<group>";
- };
- 571A466514DB0A1B007FEAC7 /* en.lproj */ = {
- isa = PBXGroup;
- children = (
- 571A466614DB0A1B007FEAC7 /* Localizable.strings */,
- );
- name = en.lproj;
- sourceTree = "<group>";
- };
- 571A466914DB0A1B007FEAC7 /* es.lproj */ = {
- isa = PBXGroup;
- children = (
- 571A466A14DB0A1B007FEAC7 /* Localizable.strings */,
- );
- name = es.lproj;
- sourceTree = "<group>";
- };
- 571A466D14DB0A1B007FEAC7 /* icons */ = {
- isa = PBXGroup;
- children = (
- 571A466E14DB0A1B007FEAC7 /* icon.png */,
- 571A467014DB0A1B007FEAC7 /* icon@2x.png */,
- 571A467214DB0A1B007FEAC7 /* icon-72.png */,
- );
- name = icons;
- sourceTree = "<group>";
- };
- 571A467414DB0A1B007FEAC7 /* splash */ = {
- isa = PBXGroup;
- children = (
- 571A467514DB0A1B007FEAC7 /* Default.png */,
- 571A467714DB0A1B007FEAC7 /* Default@2x.png */,
- );
- name = splash;
- sourceTree = "<group>";
- };
- 571A467D14DB0A1B007FEAC7 /* Classes */ = {
- isa = PBXGroup;
- children = (
- 571A467E14DB0A1B007FEAC7 /* AppDelegate.h */,
- 571A467F14DB0A1B007FEAC7 /* AppDelegate.m */,
- 571A468114DB0A1B007FEAC7 /* MainViewController.h */,
- 571A468214DB0A1B007FEAC7 /* MainViewController.m */,
- );
- name = Classes;
- sourceTree = "<group>";
- };
- 571A468614DB0A1B007FEAC7 /* Plugins */ = {
- isa = PBXGroup;
- children = (
- 571A468714DB0A1B007FEAC7 /* README */,
- );
- name = Plugins;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 571A463A14DB0A1B007FEAC7 /* ChildApp */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 571A468A14DB0A1B007FEAC7 /* Build configuration list for PBXNativeTarget "ChildApp" */;
- buildPhases = (
- 571A463414DB0A1B007FEAC7 /* Sources */,
- 571A463514DB0A1B007FEAC7 /* Frameworks */,
- 571A463614DB0A1B007FEAC7 /* Resources */,
- 571A463714DB0A1B007FEAC7 /* Sources */,
- 571A463814DB0A1B007FEAC7 /* Frameworks */,
- 571A463914DB0A1B007FEAC7 /* ShellScript */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = ChildApp;
- productName = ChildApp;
- productReference = 571A463B14DB0A1B007FEAC7 /* ChildApp.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 571A462F14DB0A1A007FEAC7 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 0420;
- };
- buildConfigurationList = 571A463214DB0A1A007FEAC7 /* Build configuration list for PBXProject "ChildApp" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- es,
- );
- mainGroup = 571A462D14DB0A1A007FEAC7;
- productRefGroup = 571A463C14DB0A1B007FEAC7 /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 571A463A14DB0A1B007FEAC7 /* ChildApp */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 571A463614DB0A1B007FEAC7 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 571A465E14DB0A1B007FEAC7 /* InfoPlist.strings in Resources */,
- 571A466814DB0A1B007FEAC7 /* Localizable.strings in Resources */,
- 571A466C14DB0A1B007FEAC7 /* Localizable.strings in Resources */,
- 571A466F14DB0A1B007FEAC7 /* icon.png in Resources */,
- 571A467114DB0A1B007FEAC7 /* icon@2x.png in Resources */,
- 571A467314DB0A1B007FEAC7 /* icon-72.png in Resources */,
- 571A467614DB0A1B007FEAC7 /* Default.png in Resources */,
- 571A467814DB0A1B007FEAC7 /* Default@2x.png in Resources */,
- 571A467A14DB0A1B007FEAC7 /* Capture.bundle in Resources */,
- 571A467C14DB0A1B007FEAC7 /* PhoneGap.plist in Resources */,
- 571A468514DB0A1B007FEAC7 /* MainViewController.xib in Resources */,
- 577FC36614DB0B620082BA7B /* www in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 571A463914DB0A1B007FEAC7 /* ShellScript */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/bash;
- shellScript = "\n\t\t\t\t\t\t\t\tif [ ! -d \"$PROJECT_DIR/www\" ] ; then\n\t\t\t\t\t\t\t\t\tcp -R /Users/Shared/PhoneGap/Frameworks/PhoneGap.framework/www \"$PROJECT_DIR\"\n\t\t\t\t\t\t\t\tfi\n\t\t\t\t\t\t\t\t# detect www folder reference in project, if missing, print warning\n\t\t\t\t\t\t\t\tgrep \"{isa = PBXFileReference; lastKnownFileType = folder; path = www; sourceTree = \\\"<group>\\\"; };\" \"$PROJECT_DIR/$PROJECT_NAME.xcodeproj/project.pbxproj\"\n\t\t\t\t\t\t\t\trc=$? \n\t\t\t\t\t\t\t\tif [ $rc != 0 ] ; then\n\t\t\t\t\t\t\t\techo -e \"warning: Missing - Add $PROJECT_DIR/www as a folder reference in your project. Just drag and drop the folder into your project, into the Project Navigator of Xcode 4. Make sure you select the second radio-button: 'Create folder references for any added folders' (which will create a blue folder)\" 1>&2\n\t\t\t\t\t\t\t\tfi\t\t\t\t\t\t\t";
- };
-/* End PBXShellScriptBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 571A463414DB0A1B007FEAC7 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 571A466014DB0A1B007FEAC7 /* main.m in Sources */,
- 571A468014DB0A1B007FEAC7 /* AppDelegate.m in Sources */,
- 571A468314DB0A1B007FEAC7 /* MainViewController.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 571A463714DB0A1B007FEAC7 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
- 571A465C14DB0A1B007FEAC7 /* InfoPlist.strings */ = {
- isa = PBXVariantGroup;
- children = (
- 571A465D14DB0A1B007FEAC7 /* en */,
- );
- name = InfoPlist.strings;
- sourceTree = "<group>";
- };
- 571A466614DB0A1B007FEAC7 /* Localizable.strings */ = {
- isa = PBXVariantGroup;
- children = (
- 571A466714DB0A1B007FEAC7 /* en */,
- );
- name = Localizable.strings;
- sourceTree = "<group>";
- };
- 571A466A14DB0A1B007FEAC7 /* Localizable.strings */ = {
- isa = PBXVariantGroup;
- children = (
- 571A466B14DB0A1B007FEAC7 /* es */,
- );
- name = Localizable.strings;
- sourceTree = "<group>";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 571A468814DB0A1B007FEAC7 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CLANG_ENABLE_OBJC_ARC = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- 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_VERSION = com.apple.compilers.llvmgcc42;
- GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 3.0;
- SDKROOT = iphoneos;
- };
- name = Debug;
- };
- 571A468914DB0A1B007FEAC7 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CLANG_ENABLE_OBJC_ARC = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_VERSION = com.apple.compilers.llvmgcc42;
- GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 3.0;
- SDKROOT = iphoneos;
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 571A468B14DB0A1B007FEAC7 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = YES;
- COPY_PHASE_STRIP = NO;
- FRAMEWORK_SEARCH_PATHS = /Users/Shared/PhoneGap/Frameworks;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "ChildApp/ChildApp-Prefix.pch";
- GCC_PREPROCESSOR_DEFINITIONS = "PHONEGAP_FRAMEWORK=YES";
- INFOPLIST_FILE = "ChildApp/ChildApp-Info.plist";
- OTHER_LDFLAGS = (
- "-weak_framework",
- UIKit,
- "-weak_framework",
- AVFoundation,
- "-weak_framework",
- CoreMedia,
- "-weak_library",
- /usr/lib/libSystem.B.dylib,
- );
- PRODUCT_NAME = "$(TARGET_NAME)";
- TARGETED_DEVICE_FAMILY = "1,2";
- WRAPPER_EXTENSION = app;
- };
- name = Debug;
- };
- 571A468C14DB0A1B007FEAC7 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = YES;
- COPY_PHASE_STRIP = YES;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- FRAMEWORK_SEARCH_PATHS = /Users/Shared/PhoneGap/Frameworks;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "ChildApp/ChildApp-Prefix.pch";
- GCC_PREPROCESSOR_DEFINITIONS = "PHONEGAP_FRAMEWORK=YES";
- INFOPLIST_FILE = "ChildApp/ChildApp-Info.plist";
- OTHER_LDFLAGS = (
- "-weak_framework",
- UIKit,
- "-weak_framework",
- AVFoundation,
- "-weak_framework",
- CoreMedia,
- "-weak_library",
- /usr/lib/libSystem.B.dylib,
- );
- PRODUCT_NAME = "$(TARGET_NAME)";
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- WRAPPER_EXTENSION = app;
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 571A463214DB0A1A007FEAC7 /* Build configuration list for PBXProject "ChildApp" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 571A468814DB0A1B007FEAC7 /* Debug */,
- 571A468914DB0A1B007FEAC7 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 571A468A14DB0A1B007FEAC7 /* Build configuration list for PBXNativeTarget "ChildApp" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 571A468B14DB0A1B007FEAC7 /* Debug */,
- 571A468C14DB0A1B007FEAC7 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 571A462F14DB0A1A007FEAC7 /* Project object */;
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/ios-config-xml/SampleApp/SampleApp-Info.plist
----------------------------------------------------------------------
diff --git a/test/projects/ios-config-xml/SampleApp/SampleApp-Info.plist b/test/projects/ios-config-xml/SampleApp/SampleApp-Info.plist
deleted file mode 100644
index 6010b61..0000000
--- a/test/projects/ios-config-xml/SampleApp/SampleApp-Info.plist
+++ /dev/null
@@ -1,78 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<!--
-#
-# 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.
-#
--->
-<plist version="1.0">
-<dict>
- <key>CFBundleIcons</key>
- <dict>
- <key>CFBundlePrimaryIcon</key>
- <dict>
- <key>CFBundleIconFiles</key>
- <array>
- <string>icon.png</string>
- <string>icon@2x.png</string>
- <string>icon-72.png</string>
- <string>icon-72@2x.png</string>
- </array>
- <key>UIPrerenderedIcon</key>
- <false/>
- </dict>
- </dict>
- <key>UISupportedInterfaceOrientations~ipad</key>
- <array>
- <string>UIInterfaceOrientationPortrait</string>
- <string>UIInterfaceOrientationLandscapeLeft</string>
- <string>UIInterfaceOrientationPortraitUpsideDown</string>
- <string>UIInterfaceOrientationLandscapeRight</string>
- </array>
- <key>UISupportedInterfaceOrientations</key>
- <array>
- <string>UIInterfaceOrientationPortrait</string>
- </array>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleDisplayName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundleExecutable</key>
- <string>${EXECUTABLE_NAME}</string>
- <key>CFBundleIconFile</key>
- <string>icon.png</string>
- <key>CFBundleIdentifier</key>
- <string>com.example.friendstring</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>1.0</string>
- <key>LSRequiresIPhoneOS</key>
- <true/>
- <key>NSMainNibFile</key>
- <string></string>
- <key>NSMainNibFile~ipad</key>
- <string></string>
-</dict>
-</plist>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/ios-config-xml/SampleApp/config.xml
----------------------------------------------------------------------
diff --git a/test/projects/ios-config-xml/SampleApp/config.xml b/test/projects/ios-config-xml/SampleApp/config.xml
deleted file mode 100644
index 2858c28..0000000
--- a/test/projects/ios-config-xml/SampleApp/config.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-#
-# 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.
-#
--->
-<widget>
- <preference name="KeyboardDisplayRequiresUserAction" value="true" />
- <preference name="SuppressesIncrementalRendering" value="false" />
- <preference name="UIWebViewBounce" value="true" />
- <preference name="TopActivityIndicator" value="gray" />
- <preference name="EnableLocation" value="false" />
- <preference name="EnableViewportScale" value="false" />
- <preference name="AutoHideSplashScreen" value="true" />
- <preference name="ShowSplashScreenSpinner" value="true" />
- <preference name="MediaPlaybackRequiresUserAction" value="false" />
- <preference name="AllowInlineMediaPlayback" value="false" />
- <preference name="OpenAllWhitelistURLsInWebView" value="false" />
- <preference name="BackupWebStorage" value="cloud" />
-
- <plugins>
- <plugin name="Device" value="CDVDevice" />
- <plugin name="Logger" value="CDVLogger" />
- <plugin name="Compass" value="CDVLocation" />
- <plugin name="Accelerometer" value="CDVAccelerometer" />
- <plugin name="Camera" value="CDVCamera" />
- <plugin name="NetworkStatus" value="CDVConnection" />
- <plugin name="Contacts" value="CDVContacts" />
- <plugin name="Debug Console" value="CDVDebugConsole" />
- <plugin name="Echo" value="CDVEcho" />
- <plugin name="File" value="CDVFile" />
- <plugin name="FileTransfer" value="CDVFileTransfer" />
- <plugin name="Geolocation" value="CDVLocation" />
- <plugin name="Notification" value="CDVNotification" />
- <plugin name="Media" value="CDVSound" />
- <plugin name="Capture" value="CDVCapture" />
- <plugin name="SplashScreen" value="CDVSplashScreen" />
- <plugin name="Battery" value="CDVBattery" />
- <plugin name="Globalization" value="CDVGlobalization" />
- <plugin name="InAppBrowser" value="CDVInAppBrowser" />
- </plugins>
-
- <access origin="*" />
-</widget>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/ios-config-xml/www/.gitkeep
----------------------------------------------------------------------
diff --git a/test/projects/ios-config-xml/www/.gitkeep b/test/projects/ios-config-xml/www/.gitkeep
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/ios-plist/CordovaLib/CordovaLib.xcodeproj/project.pbxproj
----------------------------------------------------------------------
diff --git a/test/projects/ios-plist/CordovaLib/CordovaLib.xcodeproj/project.pbxproj b/test/projects/ios-plist/CordovaLib/CordovaLib.xcodeproj/project.pbxproj
deleted file mode 100644
index 5d0d461..0000000
--- a/test/projects/ios-plist/CordovaLib/CordovaLib.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,636 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 1F2BECC013F9785B00A93BF6 /* CDVBattery.h in Headers */ = {isa = PBXBuildFile; fileRef = 1F2BECBE13F9785B00A93BF6 /* CDVBattery.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 1F2BECC113F9785B00A93BF6 /* CDVBattery.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F2BECBF13F9785B00A93BF6 /* CDVBattery.m */; };
- 1F3C04CE12BC247D004F9E10 /* CDVContact.h in Headers */ = {isa = PBXBuildFile; fileRef = 1F3C04CC12BC247D004F9E10 /* CDVContact.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 1F3C04CF12BC247D004F9E10 /* CDVContact.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F3C04CD12BC247D004F9E10 /* CDVContact.m */; };
- 1F584B9B1385A28A00ED25E8 /* CDVCapture.h in Headers */ = {isa = PBXBuildFile; fileRef = 1F584B991385A28900ED25E8 /* CDVCapture.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 1F584B9C1385A28A00ED25E8 /* CDVCapture.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F584B9A1385A28900ED25E8 /* CDVCapture.m */; };
- 1F92F4A01314023E0046367C /* CDVPluginResult.h in Headers */ = {isa = PBXBuildFile; fileRef = 1F92F49E1314023E0046367C /* CDVPluginResult.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 1F92F4A11314023E0046367C /* CDVPluginResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F92F49F1314023E0046367C /* CDVPluginResult.m */; };
- 301F2F2A14F3C9CA003FE9FC /* CDV.h in Headers */ = {isa = PBXBuildFile; fileRef = 301F2F2914F3C9CA003FE9FC /* CDV.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 302965BC13A94E9D007046C5 /* CDVDebug.h in Headers */ = {isa = PBXBuildFile; fileRef = 302965BB13A94E9D007046C5 /* CDVDebug.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 3034979C1513D56A0090E688 /* CDVLocalStorage.h in Headers */ = {isa = PBXBuildFile; fileRef = 3034979A1513D56A0090E688 /* CDVLocalStorage.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 3034979E1513D56A0090E688 /* CDVLocalStorage.m in Sources */ = {isa = PBXBuildFile; fileRef = 3034979B1513D56A0090E688 /* CDVLocalStorage.m */; };
- 30392E4E14F4FCAB00B9E0B8 /* CDVAvailability.h in Headers */ = {isa = PBXBuildFile; fileRef = 30392E4D14F4FCAB00B9E0B8 /* CDVAvailability.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 3062D120151D0EDB000D9128 /* UIDevice+Extensions.h in Headers */ = {isa = PBXBuildFile; fileRef = 3062D11E151D0EDB000D9128 /* UIDevice+Extensions.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 3062D122151D0EDB000D9128 /* UIDevice+Extensions.m in Sources */ = {isa = PBXBuildFile; fileRef = 3062D11F151D0EDB000D9128 /* UIDevice+Extensions.m */; };
- 307A8F9E1385A2EC00E43782 /* CDVConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 307A8F9C1385A2EC00E43782 /* CDVConnection.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 307A8F9F1385A2EC00E43782 /* CDVConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 307A8F9D1385A2EC00E43782 /* CDVConnection.m */; };
- 30A90B9114588697006178D3 /* JSONKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 30A90B8F14588697006178D3 /* JSONKit.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 30A90B9314588697006178D3 /* JSONKit.m in Sources */ = {isa = PBXBuildFile; fileRef = 30A90B9014588697006178D3 /* JSONKit.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
- 30B39EBE13D0268B0009682A /* CDVSplashScreen.h in Headers */ = {isa = PBXBuildFile; fileRef = 30B39EBC13D0268B0009682A /* CDVSplashScreen.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 30B39EBF13D0268B0009682A /* CDVSplashScreen.m in Sources */ = {isa = PBXBuildFile; fileRef = 30B39EBD13D0268B0009682A /* CDVSplashScreen.m */; };
- 30C5F1DF15AF9E950052A00D /* CDVDevice.h in Headers */ = {isa = PBXBuildFile; fileRef = 30C5F1DD15AF9E950052A00D /* CDVDevice.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 30C5F1E015AF9E950052A00D /* CDVDevice.m in Sources */ = {isa = PBXBuildFile; fileRef = 30C5F1DE15AF9E950052A00D /* CDVDevice.m */; };
- 30C684801406CB38004C1A8E /* CDVWhitelist.h in Headers */ = {isa = PBXBuildFile; fileRef = 30C6847E1406CB38004C1A8E /* CDVWhitelist.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 30C684821406CB38004C1A8E /* CDVWhitelist.m in Sources */ = {isa = PBXBuildFile; fileRef = 30C6847F1406CB38004C1A8E /* CDVWhitelist.m */; };
- 30C684941407044B004C1A8E /* CDVURLProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 30C684921407044A004C1A8E /* CDVURLProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 30C684961407044B004C1A8E /* CDVURLProtocol.m in Sources */ = {isa = PBXBuildFile; fileRef = 30C684931407044A004C1A8E /* CDVURLProtocol.m */; };
- 30E33AF213A7E24B00594D64 /* CDVPlugin.h in Headers */ = {isa = PBXBuildFile; fileRef = 30E33AF013A7E24B00594D64 /* CDVPlugin.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 30E33AF313A7E24B00594D64 /* CDVPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 30E33AF113A7E24B00594D64 /* CDVPlugin.m */; };
- 30E563CF13E217EC00C949AA /* NSMutableArray+QueueAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = 30E563CD13E217EC00C949AA /* NSMutableArray+QueueAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 30E563D013E217EC00C949AA /* NSMutableArray+QueueAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 30E563CE13E217EC00C949AA /* NSMutableArray+QueueAdditions.m */; };
- 30F5EBAB14CA26E700987760 /* CDVCommandDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 30F5EBA914CA26E700987760 /* CDVCommandDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 3E76876D156A90EE00EB6FA3 /* CDVLogger.m in Sources */ = {isa = PBXBuildFile; fileRef = 3E76876B156A90EE00EB6FA3 /* CDVLogger.m */; };
- 3E76876F156A90EE00EB6FA3 /* CDVLogger.h in Headers */ = {isa = PBXBuildFile; fileRef = 3E76876C156A90EE00EB6FA3 /* CDVLogger.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8852C43A14B65FD800F0E735 /* CDVViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 8852C43614B65FD800F0E735 /* CDVViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8852C43C14B65FD800F0E735 /* CDVViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8852C43714B65FD800F0E735 /* CDVViewController.m */; };
- 8852C43F14B65FD800F0E735 /* CDVCordovaView.h in Headers */ = {isa = PBXBuildFile; fileRef = 8852C43814B65FD800F0E735 /* CDVCordovaView.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8852C44114B65FD800F0E735 /* CDVCordovaView.m in Sources */ = {isa = PBXBuildFile; fileRef = 8852C43914B65FD800F0E735 /* CDVCordovaView.m */; };
- 8887FD661090FBE7009987E8 /* CDVCamera.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD261090FBE7009987E8 /* CDVCamera.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD671090FBE7009987E8 /* CDVCamera.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD271090FBE7009987E8 /* CDVCamera.m */; };
- 8887FD681090FBE7009987E8 /* NSDictionary+Extensions.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD281090FBE7009987E8 /* NSDictionary+Extensions.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD691090FBE7009987E8 /* NSDictionary+Extensions.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD291090FBE7009987E8 /* NSDictionary+Extensions.m */; };
- 8887FD6A1090FBE7009987E8 /* CDVContacts.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD2A1090FBE7009987E8 /* CDVContacts.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD6B1090FBE7009987E8 /* CDVContacts.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD2B1090FBE7009987E8 /* CDVContacts.m */; };
- 8887FD6C1090FBE7009987E8 /* CDVDebugConsole.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD2C1090FBE7009987E8 /* CDVDebugConsole.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD6D1090FBE7009987E8 /* CDVDebugConsole.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD2D1090FBE7009987E8 /* CDVDebugConsole.m */; };
- 8887FD701090FBE7009987E8 /* CDVFile.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD301090FBE7009987E8 /* CDVFile.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD711090FBE7009987E8 /* CDVFile.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD311090FBE7009987E8 /* CDVFile.m */; };
- 8887FD741090FBE7009987E8 /* CDVInvokedUrlCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD341090FBE7009987E8 /* CDVInvokedUrlCommand.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD751090FBE7009987E8 /* CDVInvokedUrlCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD351090FBE7009987E8 /* CDVInvokedUrlCommand.m */; };
- 8887FD851090FBE7009987E8 /* CDVLocation.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD461090FBE7009987E8 /* CDVLocation.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD861090FBE7009987E8 /* CDVLocation.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD471090FBE7009987E8 /* CDVLocation.m */; };
- 8887FD8D1090FBE7009987E8 /* CDVNotification.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD4E1090FBE7009987E8 /* CDVNotification.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD8E1090FBE7009987E8 /* CDVNotification.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD4F1090FBE7009987E8 /* CDVNotification.m */; };
- 8887FD8F1090FBE7009987E8 /* NSData+Base64.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD501090FBE7009987E8 /* NSData+Base64.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD901090FBE7009987E8 /* NSData+Base64.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD511090FBE7009987E8 /* NSData+Base64.m */; };
- 8887FD9D1090FBE7009987E8 /* CDVReachability.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD5E1090FBE7009987E8 /* CDVReachability.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD9E1090FBE7009987E8 /* CDVReachability.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD5F1090FBE7009987E8 /* CDVReachability.m */; };
- 8887FD9F1090FBE7009987E8 /* CDVSound.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD601090FBE7009987E8 /* CDVSound.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FDA01090FBE7009987E8 /* CDVSound.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD611090FBE7009987E8 /* CDVSound.m */; };
- 88BA573D109BB46F00FB5E78 /* CDVAccelerometer.h in Headers */ = {isa = PBXBuildFile; fileRef = 88BA573B109BB46F00FB5E78 /* CDVAccelerometer.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 88BA573E109BB46F00FB5E78 /* CDVAccelerometer.m in Sources */ = {isa = PBXBuildFile; fileRef = 88BA573C109BB46F00FB5E78 /* CDVAccelerometer.m */; };
- 9D76CF3C1625A4C50008A0F6 /* CDVGlobalization.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D76CF3A1625A4C50008A0F6 /* CDVGlobalization.h */; };
- 9D76CF3D1625A4C50008A0F6 /* CDVGlobalization.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D76CF3B1625A4C50008A0F6 /* CDVGlobalization.m */; };
- C937A4561337599E002C4C79 /* CDVFileTransfer.h in Headers */ = {isa = PBXBuildFile; fileRef = C937A4541337599E002C4C79 /* CDVFileTransfer.h */; settings = {ATTRIBUTES = (Public, ); }; };
- C937A4571337599E002C4C79 /* CDVFileTransfer.m in Sources */ = {isa = PBXBuildFile; fileRef = C937A4551337599E002C4C79 /* CDVFileTransfer.m */; };
- EB3B3547161CB44D003DBE7D /* CDVCommandQueue.h in Headers */ = {isa = PBXBuildFile; fileRef = EB3B3545161CB44D003DBE7D /* CDVCommandQueue.h */; };
- EB3B3548161CB44D003DBE7D /* CDVCommandQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = EB3B3546161CB44D003DBE7D /* CDVCommandQueue.m */; };
- EB3B357C161F2A45003DBE7D /* CDVCommandDelegateImpl.h in Headers */ = {isa = PBXBuildFile; fileRef = EB3B357A161F2A44003DBE7D /* CDVCommandDelegateImpl.h */; };
- EB3B357D161F2A45003DBE7D /* CDVCommandDelegateImpl.m in Sources */ = {isa = PBXBuildFile; fileRef = EB3B357B161F2A45003DBE7D /* CDVCommandDelegateImpl.m */; };
- EB80C2AC15DEA63D004D9E7B /* CDVEcho.h in Headers */ = {isa = PBXBuildFile; fileRef = EB80C2AA15DEA63D004D9E7B /* CDVEcho.h */; };
- EB80C2AD15DEA63D004D9E7B /* CDVEcho.m in Sources */ = {isa = PBXBuildFile; fileRef = EB80C2AB15DEA63D004D9E7B /* CDVEcho.m */; };
- EBA3557315ABD38C00F4DE24 /* NSArray+Comparisons.h in Headers */ = {isa = PBXBuildFile; fileRef = EBA3557115ABD38C00F4DE24 /* NSArray+Comparisons.h */; settings = {ATTRIBUTES = (Public, ); }; };
- EBA3557515ABD38C00F4DE24 /* NSArray+Comparisons.m in Sources */ = {isa = PBXBuildFile; fileRef = EBA3557215ABD38C00F4DE24 /* NSArray+Comparisons.m */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 1F2BECBE13F9785B00A93BF6 /* CDVBattery.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVBattery.h; path = Classes/CDVBattery.h; sourceTree = "<group>"; };
- 1F2BECBF13F9785B00A93BF6 /* CDVBattery.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVBattery.m; path = Classes/CDVBattery.m; sourceTree = "<group>"; };
- 1F3C04CC12BC247D004F9E10 /* CDVContact.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVContact.h; path = Classes/CDVContact.h; sourceTree = "<group>"; };
- 1F3C04CD12BC247D004F9E10 /* CDVContact.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVContact.m; path = Classes/CDVContact.m; sourceTree = "<group>"; };
- 1F584B991385A28900ED25E8 /* CDVCapture.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVCapture.h; path = Classes/CDVCapture.h; sourceTree = "<group>"; };
- 1F584B9A1385A28900ED25E8 /* CDVCapture.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVCapture.m; path = Classes/CDVCapture.m; sourceTree = "<group>"; };
- 1F92F49E1314023E0046367C /* CDVPluginResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVPluginResult.h; path = Classes/CDVPluginResult.h; sourceTree = "<group>"; };
- 1F92F49F1314023E0046367C /* CDVPluginResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVPluginResult.m; path = Classes/CDVPluginResult.m; sourceTree = "<group>"; };
- 301F2F2914F3C9CA003FE9FC /* CDV.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDV.h; path = Classes/CDV.h; sourceTree = "<group>"; };
- 302965BB13A94E9D007046C5 /* CDVDebug.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVDebug.h; path = Classes/CDVDebug.h; sourceTree = "<group>"; };
- 30325A0B136B343700982B63 /* VERSION */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = VERSION; sourceTree = "<group>"; };
- 3034979A1513D56A0090E688 /* CDVLocalStorage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVLocalStorage.h; path = Classes/CDVLocalStorage.h; sourceTree = "<group>"; };
- 3034979B1513D56A0090E688 /* CDVLocalStorage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVLocalStorage.m; path = Classes/CDVLocalStorage.m; sourceTree = "<group>"; };
- 30392E4D14F4FCAB00B9E0B8 /* CDVAvailability.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVAvailability.h; path = Classes/CDVAvailability.h; sourceTree = "<group>"; };
- 3062D11E151D0EDB000D9128 /* UIDevice+Extensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UIDevice+Extensions.h"; path = "Classes/UIDevice+Extensions.h"; sourceTree = "<group>"; };
- 3062D11F151D0EDB000D9128 /* UIDevice+Extensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UIDevice+Extensions.m"; path = "Classes/UIDevice+Extensions.m"; sourceTree = "<group>"; };
- 307A8F9C1385A2EC00E43782 /* CDVConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVConnection.h; path = Classes/CDVConnection.h; sourceTree = "<group>"; };
- 307A8F9D1385A2EC00E43782 /* CDVConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVConnection.m; path = Classes/CDVConnection.m; sourceTree = "<group>"; };
- 30A90B8F14588697006178D3 /* JSONKit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSONKit.h; sourceTree = "<group>"; };
- 30A90B9014588697006178D3 /* JSONKit.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JSONKit.m; sourceTree = "<group>"; };
- 30B39EBC13D0268B0009682A /* CDVSplashScreen.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVSplashScreen.h; path = Classes/CDVSplashScreen.h; sourceTree = "<group>"; };
- 30B39EBD13D0268B0009682A /* CDVSplashScreen.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVSplashScreen.m; path = Classes/CDVSplashScreen.m; sourceTree = "<group>"; };
- 30C5F1DD15AF9E950052A00D /* CDVDevice.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVDevice.h; path = Classes/CDVDevice.h; sourceTree = "<group>"; };
- 30C5F1DE15AF9E950052A00D /* CDVDevice.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVDevice.m; path = Classes/CDVDevice.m; sourceTree = "<group>"; };
- 30C6847E1406CB38004C1A8E /* CDVWhitelist.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVWhitelist.h; path = Classes/CDVWhitelist.h; sourceTree = "<group>"; };
- 30C6847F1406CB38004C1A8E /* CDVWhitelist.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVWhitelist.m; path = Classes/CDVWhitelist.m; sourceTree = "<group>"; };
- 30C684921407044A004C1A8E /* CDVURLProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVURLProtocol.h; path = Classes/CDVURLProtocol.h; sourceTree = "<group>"; };
- 30C684931407044A004C1A8E /* CDVURLProtocol.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVURLProtocol.m; path = Classes/CDVURLProtocol.m; sourceTree = "<group>"; };
- 30E33AF013A7E24B00594D64 /* CDVPlugin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVPlugin.h; path = Classes/CDVPlugin.h; sourceTree = "<group>"; };
- 30E33AF113A7E24B00594D64 /* CDVPlugin.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVPlugin.m; path = Classes/CDVPlugin.m; sourceTree = "<group>"; };
- 30E563CD13E217EC00C949AA /* NSMutableArray+QueueAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSMutableArray+QueueAdditions.h"; path = "Classes/NSMutableArray+QueueAdditions.h"; sourceTree = "<group>"; };
- 30E563CE13E217EC00C949AA /* NSMutableArray+QueueAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSMutableArray+QueueAdditions.m"; path = "Classes/NSMutableArray+QueueAdditions.m"; sourceTree = "<group>"; };
- 30F5EBA914CA26E700987760 /* CDVCommandDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVCommandDelegate.h; path = Classes/CDVCommandDelegate.h; sourceTree = "<group>"; };
- 3E76876B156A90EE00EB6FA3 /* CDVLogger.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVLogger.m; path = Classes/CDVLogger.m; sourceTree = "<group>"; };
- 3E76876C156A90EE00EB6FA3 /* CDVLogger.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVLogger.h; path = Classes/CDVLogger.h; sourceTree = "<group>"; };
- 686357AA141002F100DF4CF2 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
- 686357AC141002F100DF4CF2 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
- 686357AE141002F100DF4CF2 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
- 686357CC14100AAD00DF4CF2 /* AddressBookUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBookUI.framework; path = System/Library/Frameworks/AddressBookUI.framework; sourceTree = SDKROOT; };
- 686357CE14100ADA00DF4CF2 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
- 686357CF14100ADB00DF4CF2 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
- 686357D014100ADE00DF4CF2 /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
- 686357D214100AE700DF4CF2 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
- 686357D414100AF200DF4CF2 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
- 686357DC14100B1600DF4CF2 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; };
- 68A32D7114102E1C006B237C /* libCordova.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libCordova.a; sourceTree = BUILT_PRODUCTS_DIR; };
- 68A32D7414103017006B237C /* AddressBook.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBook.framework; path = System/Library/Frameworks/AddressBook.framework; sourceTree = SDKROOT; };
- 8852C43614B65FD800F0E735 /* CDVViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVViewController.h; path = Classes/CDVViewController.h; sourceTree = "<group>"; };
- 8852C43714B65FD800F0E735 /* CDVViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVViewController.m; path = Classes/CDVViewController.m; sourceTree = "<group>"; };
- 8852C43814B65FD800F0E735 /* CDVCordovaView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVCordovaView.h; path = Classes/CDVCordovaView.h; sourceTree = "<group>"; };
- 8852C43914B65FD800F0E735 /* CDVCordovaView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVCordovaView.m; path = Classes/CDVCordovaView.m; sourceTree = "<group>"; };
- 8887FD261090FBE7009987E8 /* CDVCamera.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVCamera.h; path = Classes/CDVCamera.h; sourceTree = "<group>"; };
- 8887FD271090FBE7009987E8 /* CDVCamera.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVCamera.m; path = Classes/CDVCamera.m; sourceTree = "<group>"; };
- 8887FD281090FBE7009987E8 /* NSDictionary+Extensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSDictionary+Extensions.h"; path = "Classes/NSDictionary+Extensions.h"; sourceTree = "<group>"; };
- 8887FD291090FBE7009987E8 /* NSDictionary+Extensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSDictionary+Extensions.m"; path = "Classes/NSDictionary+Extensions.m"; sourceTree = "<group>"; };
- 8887FD2A1090FBE7009987E8 /* CDVContacts.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVContacts.h; path = Classes/CDVContacts.h; sourceTree = "<group>"; };
- 8887FD2B1090FBE7009987E8 /* CDVContacts.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVContacts.m; path = Classes/CDVContacts.m; sourceTree = "<group>"; };
- 8887FD2C1090FBE7009987E8 /* CDVDebugConsole.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVDebugConsole.h; path = Classes/CDVDebugConsole.h; sourceTree = "<group>"; };
- 8887FD2D1090FBE7009987E8 /* CDVDebugConsole.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVDebugConsole.m; path = Classes/CDVDebugConsole.m; sourceTree = "<group>"; };
- 8887FD301090FBE7009987E8 /* CDVFile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVFile.h; path = Classes/CDVFile.h; sourceTree = "<group>"; };
- 8887FD311090FBE7009987E8 /* CDVFile.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVFile.m; path = Classes/CDVFile.m; sourceTree = "<group>"; };
- 8887FD341090FBE7009987E8 /* CDVInvokedUrlCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVInvokedUrlCommand.h; path = Classes/CDVInvokedUrlCommand.h; sourceTree = "<group>"; };
- 8887FD351090FBE7009987E8 /* CDVInvokedUrlCommand.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVInvokedUrlCommand.m; path = Classes/CDVInvokedUrlCommand.m; sourceTree = "<group>"; };
- 8887FD461090FBE7009987E8 /* CDVLocation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVLocation.h; path = Classes/CDVLocation.h; sourceTree = "<group>"; };
- 8887FD471090FBE7009987E8 /* CDVLocation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVLocation.m; path = Classes/CDVLocation.m; sourceTree = "<group>"; };
- 8887FD4E1090FBE7009987E8 /* CDVNotification.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVNotification.h; path = Classes/CDVNotification.h; sourceTree = "<group>"; };
- 8887FD4F1090FBE7009987E8 /* CDVNotification.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVNotification.m; path = Classes/CDVNotification.m; sourceTree = "<group>"; };
- 8887FD501090FBE7009987E8 /* NSData+Base64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSData+Base64.h"; path = "Classes/NSData+Base64.h"; sourceTree = "<group>"; };
- 8887FD511090FBE7009987E8 /* NSData+Base64.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSData+Base64.m"; path = "Classes/NSData+Base64.m"; sourceTree = "<group>"; };
- 8887FD5E1090FBE7009987E8 /* CDVReachability.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVReachability.h; path = Classes/CDVReachability.h; sourceTree = "<group>"; };
- 8887FD5F1090FBE7009987E8 /* CDVReachability.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVReachability.m; path = Classes/CDVReachability.m; sourceTree = "<group>"; };
- 8887FD601090FBE7009987E8 /* CDVSound.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVSound.h; path = Classes/CDVSound.h; sourceTree = "<group>"; };
- 8887FD611090FBE7009987E8 /* CDVSound.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVSound.m; path = Classes/CDVSound.m; sourceTree = "<group>"; };
- 88BA573B109BB46F00FB5E78 /* CDVAccelerometer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVAccelerometer.h; path = Classes/CDVAccelerometer.h; sourceTree = "<group>"; };
- 88BA573C109BB46F00FB5E78 /* CDVAccelerometer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVAccelerometer.m; path = Classes/CDVAccelerometer.m; sourceTree = "<group>"; };
- 9D76CF3A1625A4C50008A0F6 /* CDVGlobalization.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVGlobalization.h; path = Classes/CDVGlobalization.h; sourceTree = "<group>"; };
- 9D76CF3B1625A4C50008A0F6 /* CDVGlobalization.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVGlobalization.m; path = Classes/CDVGlobalization.m; sourceTree = "<group>"; };
- AA747D9E0F9514B9006C5449 /* CordovaLib_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CordovaLib_Prefix.pch; sourceTree = SOURCE_ROOT; };
- C937A4541337599E002C4C79 /* CDVFileTransfer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVFileTransfer.h; path = Classes/CDVFileTransfer.h; sourceTree = "<group>"; };
- C937A4551337599E002C4C79 /* CDVFileTransfer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVFileTransfer.m; path = Classes/CDVFileTransfer.m; sourceTree = "<group>"; };
- EB3B3545161CB44D003DBE7D /* CDVCommandQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVCommandQueue.h; path = Classes/CDVCommandQueue.h; sourceTree = "<group>"; };
- EB3B3546161CB44D003DBE7D /* CDVCommandQueue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVCommandQueue.m; path = Classes/CDVCommandQueue.m; sourceTree = "<group>"; };
- EB3B357A161F2A44003DBE7D /* CDVCommandDelegateImpl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVCommandDelegateImpl.h; path = Classes/CDVCommandDelegateImpl.h; sourceTree = "<group>"; };
- EB3B357B161F2A45003DBE7D /* CDVCommandDelegateImpl.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVCommandDelegateImpl.m; path = Classes/CDVCommandDelegateImpl.m; sourceTree = "<group>"; };
- EB80C2AA15DEA63D004D9E7B /* CDVEcho.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVEcho.h; path = Classes/CDVEcho.h; sourceTree = "<group>"; };
- EB80C2AB15DEA63D004D9E7B /* CDVEcho.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVEcho.m; path = Classes/CDVEcho.m; sourceTree = "<group>"; };
- EBA3557115ABD38C00F4DE24 /* NSArray+Comparisons.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSArray+Comparisons.h"; path = "Classes/NSArray+Comparisons.h"; sourceTree = "<group>"; };
- EBA3557215ABD38C00F4DE24 /* NSArray+Comparisons.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSArray+Comparisons.m"; path = "Classes/NSArray+Comparisons.m"; sourceTree = "<group>"; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- D2AAC07C0554694100DB518D /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 034768DFFF38A50411DB9C8B /* Products */ = {
- isa = PBXGroup;
- children = (
- 68A32D7114102E1C006B237C /* libCordova.a */,
- );
- name = Products;
- sourceTree = CORDOVALIB;
- };
- 0867D691FE84028FC02AAC07 /* CordovaLib */ = {
- isa = PBXGroup;
- children = (
- 8887FD101090FB43009987E8 /* Classes */,
- 32C88DFF0371C24200C91783 /* Other Sources */,
- 0867D69AFE84028FC02AAC07 /* Frameworks */,
- 034768DFFF38A50411DB9C8B /* Products */,
- 30325A0B136B343700982B63 /* VERSION */,
- );
- name = CordovaLib;
- sourceTree = "<group>";
- };
- 0867D69AFE84028FC02AAC07 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 68A32D7414103017006B237C /* AddressBook.framework */,
- 686357DC14100B1600DF4CF2 /* CoreMedia.framework */,
- 686357CE14100ADA00DF4CF2 /* AudioToolbox.framework */,
- 686357CF14100ADB00DF4CF2 /* AVFoundation.framework */,
- 686357D014100ADE00DF4CF2 /* CoreLocation.framework */,
- 686357D214100AE700DF4CF2 /* MobileCoreServices.framework */,
- 686357D414100AF200DF4CF2 /* SystemConfiguration.framework */,
- 686357CC14100AAD00DF4CF2 /* AddressBookUI.framework */,
- 686357AA141002F100DF4CF2 /* UIKit.framework */,
- 686357AC141002F100DF4CF2 /* Foundation.framework */,
- 686357AE141002F100DF4CF2 /* CoreGraphics.framework */,
- );
- name = Frameworks;
- sourceTree = "<group>";
- };
- 3054098714B77FF3009841CA /* Cleaver */ = {
- isa = PBXGroup;
- children = (
- 8852C43614B65FD800F0E735 /* CDVViewController.h */,
- 8852C43714B65FD800F0E735 /* CDVViewController.m */,
- 8852C43814B65FD800F0E735 /* CDVCordovaView.h */,
- 8852C43914B65FD800F0E735 /* CDVCordovaView.m */,
- EB3B3545161CB44D003DBE7D /* CDVCommandQueue.h */,
- EB3B3546161CB44D003DBE7D /* CDVCommandQueue.m */,
- );
- name = Cleaver;
- sourceTree = "<group>";
- };
- 32C88DFF0371C24200C91783 /* Other Sources */ = {
- isa = PBXGroup;
- children = (
- AA747D9E0F9514B9006C5449 /* CordovaLib_Prefix.pch */,
- );
- name = "Other Sources";
- sourceTree = "<group>";
- };
- 888700D710922F56009987E8 /* Commands */ = {
- isa = PBXGroup;
- children = (
- 30C5F1DD15AF9E950052A00D /* CDVDevice.h */,
- 30C5F1DE15AF9E950052A00D /* CDVDevice.m */,
- 301F2F2914F3C9CA003FE9FC /* CDV.h */,
- 3034979A1513D56A0090E688 /* CDVLocalStorage.h */,
- 3034979B1513D56A0090E688 /* CDVLocalStorage.m */,
- 30392E4D14F4FCAB00B9E0B8 /* CDVAvailability.h */,
- 30F5EBA914CA26E700987760 /* CDVCommandDelegate.h */,
- EB3B357A161F2A44003DBE7D /* CDVCommandDelegateImpl.h */,
- EB3B357B161F2A45003DBE7D /* CDVCommandDelegateImpl.m */,
- 30C684921407044A004C1A8E /* CDVURLProtocol.h */,
- 30C684931407044A004C1A8E /* CDVURLProtocol.m */,
- 30C6847E1406CB38004C1A8E /* CDVWhitelist.h */,
- 30C6847F1406CB38004C1A8E /* CDVWhitelist.m */,
- 1F2BECBE13F9785B00A93BF6 /* CDVBattery.h */,
- 1F2BECBF13F9785B00A93BF6 /* CDVBattery.m */,
- 30B39EBC13D0268B0009682A /* CDVSplashScreen.h */,
- 30B39EBD13D0268B0009682A /* CDVSplashScreen.m */,
- 30E33AF013A7E24B00594D64 /* CDVPlugin.h */,
- 30E33AF113A7E24B00594D64 /* CDVPlugin.m */,
- 307A8F9C1385A2EC00E43782 /* CDVConnection.h */,
- 307A8F9D1385A2EC00E43782 /* CDVConnection.m */,
- 1F92F49E1314023E0046367C /* CDVPluginResult.h */,
- 1F92F49F1314023E0046367C /* CDVPluginResult.m */,
- 88BA573B109BB46F00FB5E78 /* CDVAccelerometer.h */,
- 88BA573C109BB46F00FB5E78 /* CDVAccelerometer.m */,
- 8887FD261090FBE7009987E8 /* CDVCamera.h */,
- 8887FD271090FBE7009987E8 /* CDVCamera.m */,
- 1F584B991385A28900ED25E8 /* CDVCapture.h */,
- 1F584B9A1385A28900ED25E8 /* CDVCapture.m */,
- 1F3C04CC12BC247D004F9E10 /* CDVContact.h */,
- 1F3C04CD12BC247D004F9E10 /* CDVContact.m */,
- 8887FD2A1090FBE7009987E8 /* CDVContacts.h */,
- 8887FD2B1090FBE7009987E8 /* CDVContacts.m */,
- 8887FD2C1090FBE7009987E8 /* CDVDebugConsole.h */,
- 8887FD2D1090FBE7009987E8 /* CDVDebugConsole.m */,
- EB80C2AA15DEA63D004D9E7B /* CDVEcho.h */,
- EB80C2AB15DEA63D004D9E7B /* CDVEcho.m */,
- 8887FD301090FBE7009987E8 /* CDVFile.h */,
- 8887FD311090FBE7009987E8 /* CDVFile.m */,
- 8887FD341090FBE7009987E8 /* CDVInvokedUrlCommand.h */,
- 8887FD351090FBE7009987E8 /* CDVInvokedUrlCommand.m */,
- C937A4541337599E002C4C79 /* CDVFileTransfer.h */,
- C937A4551337599E002C4C79 /* CDVFileTransfer.m */,
- 8887FD461090FBE7009987E8 /* CDVLocation.h */,
- 8887FD471090FBE7009987E8 /* CDVLocation.m */,
- 8887FD4E1090FBE7009987E8 /* CDVNotification.h */,
- 8887FD4F1090FBE7009987E8 /* CDVNotification.m */,
- 8887FD5E1090FBE7009987E8 /* CDVReachability.h */,
- 8887FD5F1090FBE7009987E8 /* CDVReachability.m */,
- 8887FD601090FBE7009987E8 /* CDVSound.h */,
- 8887FD611090FBE7009987E8 /* CDVSound.m */,
- 3E76876B156A90EE00EB6FA3 /* CDVLogger.m */,
- 3E76876C156A90EE00EB6FA3 /* CDVLogger.h */,
- 9D76CF3A1625A4C50008A0F6 /* CDVGlobalization.h */,
- 9D76CF3B1625A4C50008A0F6 /* CDVGlobalization.m */,
- );
- name = Commands;
- sourceTree = "<group>";
- };
- 888700D910923009009987E8 /* Util */ = {
- isa = PBXGroup;
- children = (
- 3062D11E151D0EDB000D9128 /* UIDevice+Extensions.h */,
- 3062D11F151D0EDB000D9128 /* UIDevice+Extensions.m */,
- EBA3557115ABD38C00F4DE24 /* NSArray+Comparisons.h */,
- EBA3557215ABD38C00F4DE24 /* NSArray+Comparisons.m */,
- 8887FD281090FBE7009987E8 /* NSDictionary+Extensions.h */,
- 8887FD291090FBE7009987E8 /* NSDictionary+Extensions.m */,
- 302965BB13A94E9D007046C5 /* CDVDebug.h */,
- 30E563CD13E217EC00C949AA /* NSMutableArray+QueueAdditions.h */,
- 30E563CE13E217EC00C949AA /* NSMutableArray+QueueAdditions.m */,
- 8887FD501090FBE7009987E8 /* NSData+Base64.h */,
- 8887FD511090FBE7009987E8 /* NSData+Base64.m */,
- );
- name = Util;
- sourceTree = "<group>";
- };
- 8887FD101090FB43009987E8 /* Classes */ = {
- isa = PBXGroup;
- children = (
- 3054098714B77FF3009841CA /* Cleaver */,
- 888700D710922F56009987E8 /* Commands */,
- 8887FD361090FBE7009987E8 /* JSON */,
- 888700D910923009009987E8 /* Util */,
- );
- name = Classes;
- sourceTree = "<group>";
- };
- 8887FD361090FBE7009987E8 /* JSON */ = {
- isa = PBXGroup;
- children = (
- 30A90B8F14588697006178D3 /* JSONKit.h */,
- 30A90B9014588697006178D3 /* JSONKit.m */,
- );
- name = JSON;
- path = Classes/JSON;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXHeadersBuildPhase section */
- D2AAC07A0554694100DB518D /* Headers */ = {
- isa = PBXHeadersBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 8887FD661090FBE7009987E8 /* CDVCamera.h in Headers */,
- 8887FD681090FBE7009987E8 /* NSDictionary+Extensions.h in Headers */,
- 8887FD6A1090FBE7009987E8 /* CDVContacts.h in Headers */,
- 8887FD6C1090FBE7009987E8 /* CDVDebugConsole.h in Headers */,
- 8887FD701090FBE7009987E8 /* CDVFile.h in Headers */,
- 8887FD741090FBE7009987E8 /* CDVInvokedUrlCommand.h in Headers */,
- 8887FD851090FBE7009987E8 /* CDVLocation.h in Headers */,
- 8887FD8D1090FBE7009987E8 /* CDVNotification.h in Headers */,
- 8887FD8F1090FBE7009987E8 /* NSData+Base64.h in Headers */,
- 8887FD9D1090FBE7009987E8 /* CDVReachability.h in Headers */,
- 8887FD9F1090FBE7009987E8 /* CDVSound.h in Headers */,
- 88BA573D109BB46F00FB5E78 /* CDVAccelerometer.h in Headers */,
- 1F3C04CE12BC247D004F9E10 /* CDVContact.h in Headers */,
- 1F92F4A01314023E0046367C /* CDVPluginResult.h in Headers */,
- C937A4561337599E002C4C79 /* CDVFileTransfer.h in Headers */,
- 307A8F9E1385A2EC00E43782 /* CDVConnection.h in Headers */,
- 1F584B9B1385A28A00ED25E8 /* CDVCapture.h in Headers */,
- 30E33AF213A7E24B00594D64 /* CDVPlugin.h in Headers */,
- 302965BC13A94E9D007046C5 /* CDVDebug.h in Headers */,
- 30B39EBE13D0268B0009682A /* CDVSplashScreen.h in Headers */,
- 30E563CF13E217EC00C949AA /* NSMutableArray+QueueAdditions.h in Headers */,
- 1F2BECC013F9785B00A93BF6 /* CDVBattery.h in Headers */,
- 30C684801406CB38004C1A8E /* CDVWhitelist.h in Headers */,
- 30C684941407044B004C1A8E /* CDVURLProtocol.h in Headers */,
- 30A90B9114588697006178D3 /* JSONKit.h in Headers */,
- 8852C43A14B65FD800F0E735 /* CDVViewController.h in Headers */,
- 8852C43F14B65FD800F0E735 /* CDVCordovaView.h in Headers */,
- 30F5EBAB14CA26E700987760 /* CDVCommandDelegate.h in Headers */,
- 301F2F2A14F3C9CA003FE9FC /* CDV.h in Headers */,
- 30392E4E14F4FCAB00B9E0B8 /* CDVAvailability.h in Headers */,
- 3034979C1513D56A0090E688 /* CDVLocalStorage.h in Headers */,
- 3062D120151D0EDB000D9128 /* UIDevice+Extensions.h in Headers */,
- 3E76876F156A90EE00EB6FA3 /* CDVLogger.h in Headers */,
- EBA3557315ABD38C00F4DE24 /* NSArray+Comparisons.h in Headers */,
- 30C5F1DF15AF9E950052A00D /* CDVDevice.h in Headers */,
- EB80C2AC15DEA63D004D9E7B /* CDVEcho.h in Headers */,
- EB3B3547161CB44D003DBE7D /* CDVCommandQueue.h in Headers */,
- EB3B357C161F2A45003DBE7D /* CDVCommandDelegateImpl.h in Headers */,
- 9D76CF3C1625A4C50008A0F6 /* CDVGlobalization.h in Headers */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXHeadersBuildPhase section */
-
-/* Begin PBXNativeTarget section */
- D2AAC07D0554694100DB518D /* CordovaLib */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 1DEB921E08733DC00010E9CD /* Build configuration list for PBXNativeTarget "CordovaLib" */;
- buildPhases = (
- D2AAC07A0554694100DB518D /* Headers */,
- D2AAC07B0554694100DB518D /* Sources */,
- D2AAC07C0554694100DB518D /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = CordovaLib;
- productName = CordovaLib;
- productReference = 68A32D7114102E1C006B237C /* libCordova.a */;
- productType = "com.apple.product-type.library.static";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 0867D690FE84028FC02AAC07 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 0430;
- };
- buildConfigurationList = 1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "CordovaLib" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 1;
- knownRegions = (
- English,
- Japanese,
- French,
- German,
- en,
- );
- mainGroup = 0867D691FE84028FC02AAC07 /* CordovaLib */;
- productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- D2AAC07D0554694100DB518D /* CordovaLib */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXSourcesBuildPhase section */
- D2AAC07B0554694100DB518D /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 8887FD671090FBE7009987E8 /* CDVCamera.m in Sources */,
- 8887FD691090FBE7009987E8 /* NSDictionary+Extensions.m in Sources */,
- 8887FD6B1090FBE7009987E8 /* CDVContacts.m in Sources */,
- 8887FD6D1090FBE7009987E8 /* CDVDebugConsole.m in Sources */,
- 8887FD711090FBE7009987E8 /* CDVFile.m in Sources */,
- 8887FD751090FBE7009987E8 /* CDVInvokedUrlCommand.m in Sources */,
- 8887FD861090FBE7009987E8 /* CDVLocation.m in Sources */,
- 8887FD8E1090FBE7009987E8 /* CDVNotification.m in Sources */,
- 8887FD901090FBE7009987E8 /* NSData+Base64.m in Sources */,
- 8887FD9E1090FBE7009987E8 /* CDVReachability.m in Sources */,
- 8887FDA01090FBE7009987E8 /* CDVSound.m in Sources */,
- 88BA573E109BB46F00FB5E78 /* CDVAccelerometer.m in Sources */,
- 1F3C04CF12BC247D004F9E10 /* CDVContact.m in Sources */,
- 1F92F4A11314023E0046367C /* CDVPluginResult.m in Sources */,
- C937A4571337599E002C4C79 /* CDVFileTransfer.m in Sources */,
- 307A8F9F1385A2EC00E43782 /* CDVConnection.m in Sources */,
- 1F584B9C1385A28A00ED25E8 /* CDVCapture.m in Sources */,
- 30E33AF313A7E24B00594D64 /* CDVPlugin.m in Sources */,
- 30B39EBF13D0268B0009682A /* CDVSplashScreen.m in Sources */,
- 30E563D013E217EC00C949AA /* NSMutableArray+QueueAdditions.m in Sources */,
- 1F2BECC113F9785B00A93BF6 /* CDVBattery.m in Sources */,
- 30C684821406CB38004C1A8E /* CDVWhitelist.m in Sources */,
- 30C684961407044B004C1A8E /* CDVURLProtocol.m in Sources */,
- 30A90B9314588697006178D3 /* JSONKit.m in Sources */,
- 8852C43C14B65FD800F0E735 /* CDVViewController.m in Sources */,
- 8852C44114B65FD800F0E735 /* CDVCordovaView.m in Sources */,
- 3034979E1513D56A0090E688 /* CDVLocalStorage.m in Sources */,
- 3062D122151D0EDB000D9128 /* UIDevice+Extensions.m in Sources */,
- 3E76876D156A90EE00EB6FA3 /* CDVLogger.m in Sources */,
- EBA3557515ABD38C00F4DE24 /* NSArray+Comparisons.m in Sources */,
- 30C5F1E015AF9E950052A00D /* CDVDevice.m in Sources */,
- EB80C2AD15DEA63D004D9E7B /* CDVEcho.m in Sources */,
- EB3B3548161CB44D003DBE7D /* CDVCommandQueue.m in Sources */,
- EB3B357D161F2A45003DBE7D /* CDVCommandDelegateImpl.m in Sources */,
- 9D76CF3D1625A4C50008A0F6 /* CDVGlobalization.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin XCBuildConfiguration section */
- 1DEB921F08733DC00010E9CD /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- "ARCHS[sdk=iphoneos*]" = (
- armv6,
- armv7,
- );
- "ARCHS[sdk=iphoneos6.*]" = (
- armv7,
- armv7s,
- );
- "ARCHS[sdk=iphonesimulator*]" = i386;
- CLANG_ENABLE_OBJC_ARC = YES;
- COPY_PHASE_STRIP = NO;
- DSTROOT = "/tmp/$(PROJECT_NAME).dst";
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = CordovaLib_Prefix.pch;
- GCC_PREPROCESSOR_DEFINITIONS = "";
- GCC_THUMB_SUPPORT = NO;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- INSTALL_PATH = /usr/local/lib;
- IPHONEOS_DEPLOYMENT_TARGET = 4.2;
- PRODUCT_NAME = Cordova;
- PUBLIC_HEADERS_FOLDER_PATH = include/Cordova;
- SKIP_INSTALL = YES;
- };
- name = Debug;
- };
- 1DEB922008733DC00010E9CD /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- "ARCHS[sdk=iphoneos*]" = (
- armv6,
- armv7,
- );
- "ARCHS[sdk=iphoneos6.*]" = (
- armv7,
- armv7s,
- );
- "ARCHS[sdk=iphonesimulator*]" = i386;
- CLANG_ENABLE_OBJC_ARC = YES;
- DSTROOT = "/tmp/$(PROJECT_NAME).dst";
- GCC_MODEL_TUNING = G5;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = CordovaLib_Prefix.pch;
- GCC_PREPROCESSOR_DEFINITIONS = "";
- GCC_THUMB_SUPPORT = NO;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- INSTALL_PATH = /usr/local/lib;
- IPHONEOS_DEPLOYMENT_TARGET = 4.2;
- PRODUCT_NAME = Cordova;
- PUBLIC_HEADERS_FOLDER_PATH = include/Cordova;
- SKIP_INSTALL = YES;
- };
- name = Release;
- };
- 1DEB922308733DC00010E9CD /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- "ARCHS[sdk=iphoneos*]" = (
- armv6,
- armv7,
- );
- "ARCHS[sdk=iphoneos6.*]" = (
- armv7,
- armv7s,
- );
- "ARCHS[sdk=iphonesimulator*]" = i386;
- GCC_C_LANGUAGE_STANDARD = c99;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = "";
- GCC_THUMB_SUPPORT = NO;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 4.2;
- ONLY_ACTIVE_ARCH = NO;
- OTHER_CFLAGS = "-DDEBUG";
- PUBLIC_HEADERS_FOLDER_PATH = include/Cordova;
- SDKROOT = iphoneos;
- SKIP_INSTALL = YES;
- TARGETED_DEVICE_FAMILY = "1,2";
- USER_HEADER_SEARCH_PATHS = "";
- VALID_ARCHS = "i386 armv6 armv7 armv7s";
- };
- name = Debug;
- };
- 1DEB922408733DC00010E9CD /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- "ARCHS[sdk=iphoneos*]" = (
- armv6,
- armv7,
- );
- "ARCHS[sdk=iphoneos6.*]" = (
- armv7,
- armv7s,
- );
- "ARCHS[sdk=iphonesimulator*]" = i386;
- GCC_C_LANGUAGE_STANDARD = c99;
- GCC_PREPROCESSOR_DEFINITIONS = "";
- GCC_THUMB_SUPPORT = NO;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 4.2;
- ONLY_ACTIVE_ARCH = NO;
- PUBLIC_HEADERS_FOLDER_PATH = include/Cordova;
- SDKROOT = iphoneos;
- SKIP_INSTALL = YES;
- TARGETED_DEVICE_FAMILY = "1,2";
- VALID_ARCHS = "i386 armv6 armv7 armv7s";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 1DEB921E08733DC00010E9CD /* Build configuration list for PBXNativeTarget "CordovaLib" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1DEB921F08733DC00010E9CD /* Debug */,
- 1DEB922008733DC00010E9CD /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "CordovaLib" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1DEB922308733DC00010E9CD /* Debug */,
- 1DEB922408733DC00010E9CD /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 0867D690FE84028FC02AAC07 /* Project object */;
-}
[03/10] remove old tests. jasmine migration complete
Posted by fi...@apache.org.
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/ios-config-xml/CordovaLib/CordovaLib.xcodeproj/project.pbxproj
----------------------------------------------------------------------
diff --git a/test/projects/ios-config-xml/CordovaLib/CordovaLib.xcodeproj/project.pbxproj b/test/projects/ios-config-xml/CordovaLib/CordovaLib.xcodeproj/project.pbxproj
deleted file mode 100644
index 5d0d461..0000000
--- a/test/projects/ios-config-xml/CordovaLib/CordovaLib.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,636 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 1F2BECC013F9785B00A93BF6 /* CDVBattery.h in Headers */ = {isa = PBXBuildFile; fileRef = 1F2BECBE13F9785B00A93BF6 /* CDVBattery.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 1F2BECC113F9785B00A93BF6 /* CDVBattery.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F2BECBF13F9785B00A93BF6 /* CDVBattery.m */; };
- 1F3C04CE12BC247D004F9E10 /* CDVContact.h in Headers */ = {isa = PBXBuildFile; fileRef = 1F3C04CC12BC247D004F9E10 /* CDVContact.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 1F3C04CF12BC247D004F9E10 /* CDVContact.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F3C04CD12BC247D004F9E10 /* CDVContact.m */; };
- 1F584B9B1385A28A00ED25E8 /* CDVCapture.h in Headers */ = {isa = PBXBuildFile; fileRef = 1F584B991385A28900ED25E8 /* CDVCapture.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 1F584B9C1385A28A00ED25E8 /* CDVCapture.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F584B9A1385A28900ED25E8 /* CDVCapture.m */; };
- 1F92F4A01314023E0046367C /* CDVPluginResult.h in Headers */ = {isa = PBXBuildFile; fileRef = 1F92F49E1314023E0046367C /* CDVPluginResult.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 1F92F4A11314023E0046367C /* CDVPluginResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F92F49F1314023E0046367C /* CDVPluginResult.m */; };
- 301F2F2A14F3C9CA003FE9FC /* CDV.h in Headers */ = {isa = PBXBuildFile; fileRef = 301F2F2914F3C9CA003FE9FC /* CDV.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 302965BC13A94E9D007046C5 /* CDVDebug.h in Headers */ = {isa = PBXBuildFile; fileRef = 302965BB13A94E9D007046C5 /* CDVDebug.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 3034979C1513D56A0090E688 /* CDVLocalStorage.h in Headers */ = {isa = PBXBuildFile; fileRef = 3034979A1513D56A0090E688 /* CDVLocalStorage.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 3034979E1513D56A0090E688 /* CDVLocalStorage.m in Sources */ = {isa = PBXBuildFile; fileRef = 3034979B1513D56A0090E688 /* CDVLocalStorage.m */; };
- 30392E4E14F4FCAB00B9E0B8 /* CDVAvailability.h in Headers */ = {isa = PBXBuildFile; fileRef = 30392E4D14F4FCAB00B9E0B8 /* CDVAvailability.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 3062D120151D0EDB000D9128 /* UIDevice+Extensions.h in Headers */ = {isa = PBXBuildFile; fileRef = 3062D11E151D0EDB000D9128 /* UIDevice+Extensions.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 3062D122151D0EDB000D9128 /* UIDevice+Extensions.m in Sources */ = {isa = PBXBuildFile; fileRef = 3062D11F151D0EDB000D9128 /* UIDevice+Extensions.m */; };
- 307A8F9E1385A2EC00E43782 /* CDVConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 307A8F9C1385A2EC00E43782 /* CDVConnection.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 307A8F9F1385A2EC00E43782 /* CDVConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 307A8F9D1385A2EC00E43782 /* CDVConnection.m */; };
- 30A90B9114588697006178D3 /* JSONKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 30A90B8F14588697006178D3 /* JSONKit.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 30A90B9314588697006178D3 /* JSONKit.m in Sources */ = {isa = PBXBuildFile; fileRef = 30A90B9014588697006178D3 /* JSONKit.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
- 30B39EBE13D0268B0009682A /* CDVSplashScreen.h in Headers */ = {isa = PBXBuildFile; fileRef = 30B39EBC13D0268B0009682A /* CDVSplashScreen.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 30B39EBF13D0268B0009682A /* CDVSplashScreen.m in Sources */ = {isa = PBXBuildFile; fileRef = 30B39EBD13D0268B0009682A /* CDVSplashScreen.m */; };
- 30C5F1DF15AF9E950052A00D /* CDVDevice.h in Headers */ = {isa = PBXBuildFile; fileRef = 30C5F1DD15AF9E950052A00D /* CDVDevice.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 30C5F1E015AF9E950052A00D /* CDVDevice.m in Sources */ = {isa = PBXBuildFile; fileRef = 30C5F1DE15AF9E950052A00D /* CDVDevice.m */; };
- 30C684801406CB38004C1A8E /* CDVWhitelist.h in Headers */ = {isa = PBXBuildFile; fileRef = 30C6847E1406CB38004C1A8E /* CDVWhitelist.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 30C684821406CB38004C1A8E /* CDVWhitelist.m in Sources */ = {isa = PBXBuildFile; fileRef = 30C6847F1406CB38004C1A8E /* CDVWhitelist.m */; };
- 30C684941407044B004C1A8E /* CDVURLProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 30C684921407044A004C1A8E /* CDVURLProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 30C684961407044B004C1A8E /* CDVURLProtocol.m in Sources */ = {isa = PBXBuildFile; fileRef = 30C684931407044A004C1A8E /* CDVURLProtocol.m */; };
- 30E33AF213A7E24B00594D64 /* CDVPlugin.h in Headers */ = {isa = PBXBuildFile; fileRef = 30E33AF013A7E24B00594D64 /* CDVPlugin.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 30E33AF313A7E24B00594D64 /* CDVPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 30E33AF113A7E24B00594D64 /* CDVPlugin.m */; };
- 30E563CF13E217EC00C949AA /* NSMutableArray+QueueAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = 30E563CD13E217EC00C949AA /* NSMutableArray+QueueAdditions.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 30E563D013E217EC00C949AA /* NSMutableArray+QueueAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 30E563CE13E217EC00C949AA /* NSMutableArray+QueueAdditions.m */; };
- 30F5EBAB14CA26E700987760 /* CDVCommandDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 30F5EBA914CA26E700987760 /* CDVCommandDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 3E76876D156A90EE00EB6FA3 /* CDVLogger.m in Sources */ = {isa = PBXBuildFile; fileRef = 3E76876B156A90EE00EB6FA3 /* CDVLogger.m */; };
- 3E76876F156A90EE00EB6FA3 /* CDVLogger.h in Headers */ = {isa = PBXBuildFile; fileRef = 3E76876C156A90EE00EB6FA3 /* CDVLogger.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8852C43A14B65FD800F0E735 /* CDVViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 8852C43614B65FD800F0E735 /* CDVViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8852C43C14B65FD800F0E735 /* CDVViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8852C43714B65FD800F0E735 /* CDVViewController.m */; };
- 8852C43F14B65FD800F0E735 /* CDVCordovaView.h in Headers */ = {isa = PBXBuildFile; fileRef = 8852C43814B65FD800F0E735 /* CDVCordovaView.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8852C44114B65FD800F0E735 /* CDVCordovaView.m in Sources */ = {isa = PBXBuildFile; fileRef = 8852C43914B65FD800F0E735 /* CDVCordovaView.m */; };
- 8887FD661090FBE7009987E8 /* CDVCamera.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD261090FBE7009987E8 /* CDVCamera.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD671090FBE7009987E8 /* CDVCamera.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD271090FBE7009987E8 /* CDVCamera.m */; };
- 8887FD681090FBE7009987E8 /* NSDictionary+Extensions.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD281090FBE7009987E8 /* NSDictionary+Extensions.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD691090FBE7009987E8 /* NSDictionary+Extensions.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD291090FBE7009987E8 /* NSDictionary+Extensions.m */; };
- 8887FD6A1090FBE7009987E8 /* CDVContacts.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD2A1090FBE7009987E8 /* CDVContacts.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD6B1090FBE7009987E8 /* CDVContacts.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD2B1090FBE7009987E8 /* CDVContacts.m */; };
- 8887FD6C1090FBE7009987E8 /* CDVDebugConsole.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD2C1090FBE7009987E8 /* CDVDebugConsole.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD6D1090FBE7009987E8 /* CDVDebugConsole.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD2D1090FBE7009987E8 /* CDVDebugConsole.m */; };
- 8887FD701090FBE7009987E8 /* CDVFile.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD301090FBE7009987E8 /* CDVFile.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD711090FBE7009987E8 /* CDVFile.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD311090FBE7009987E8 /* CDVFile.m */; };
- 8887FD741090FBE7009987E8 /* CDVInvokedUrlCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD341090FBE7009987E8 /* CDVInvokedUrlCommand.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD751090FBE7009987E8 /* CDVInvokedUrlCommand.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD351090FBE7009987E8 /* CDVInvokedUrlCommand.m */; };
- 8887FD851090FBE7009987E8 /* CDVLocation.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD461090FBE7009987E8 /* CDVLocation.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD861090FBE7009987E8 /* CDVLocation.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD471090FBE7009987E8 /* CDVLocation.m */; };
- 8887FD8D1090FBE7009987E8 /* CDVNotification.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD4E1090FBE7009987E8 /* CDVNotification.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD8E1090FBE7009987E8 /* CDVNotification.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD4F1090FBE7009987E8 /* CDVNotification.m */; };
- 8887FD8F1090FBE7009987E8 /* NSData+Base64.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD501090FBE7009987E8 /* NSData+Base64.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD901090FBE7009987E8 /* NSData+Base64.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD511090FBE7009987E8 /* NSData+Base64.m */; };
- 8887FD9D1090FBE7009987E8 /* CDVReachability.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD5E1090FBE7009987E8 /* CDVReachability.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FD9E1090FBE7009987E8 /* CDVReachability.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD5F1090FBE7009987E8 /* CDVReachability.m */; };
- 8887FD9F1090FBE7009987E8 /* CDVSound.h in Headers */ = {isa = PBXBuildFile; fileRef = 8887FD601090FBE7009987E8 /* CDVSound.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 8887FDA01090FBE7009987E8 /* CDVSound.m in Sources */ = {isa = PBXBuildFile; fileRef = 8887FD611090FBE7009987E8 /* CDVSound.m */; };
- 88BA573D109BB46F00FB5E78 /* CDVAccelerometer.h in Headers */ = {isa = PBXBuildFile; fileRef = 88BA573B109BB46F00FB5E78 /* CDVAccelerometer.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 88BA573E109BB46F00FB5E78 /* CDVAccelerometer.m in Sources */ = {isa = PBXBuildFile; fileRef = 88BA573C109BB46F00FB5E78 /* CDVAccelerometer.m */; };
- 9D76CF3C1625A4C50008A0F6 /* CDVGlobalization.h in Headers */ = {isa = PBXBuildFile; fileRef = 9D76CF3A1625A4C50008A0F6 /* CDVGlobalization.h */; };
- 9D76CF3D1625A4C50008A0F6 /* CDVGlobalization.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D76CF3B1625A4C50008A0F6 /* CDVGlobalization.m */; };
- C937A4561337599E002C4C79 /* CDVFileTransfer.h in Headers */ = {isa = PBXBuildFile; fileRef = C937A4541337599E002C4C79 /* CDVFileTransfer.h */; settings = {ATTRIBUTES = (Public, ); }; };
- C937A4571337599E002C4C79 /* CDVFileTransfer.m in Sources */ = {isa = PBXBuildFile; fileRef = C937A4551337599E002C4C79 /* CDVFileTransfer.m */; };
- EB3B3547161CB44D003DBE7D /* CDVCommandQueue.h in Headers */ = {isa = PBXBuildFile; fileRef = EB3B3545161CB44D003DBE7D /* CDVCommandQueue.h */; };
- EB3B3548161CB44D003DBE7D /* CDVCommandQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = EB3B3546161CB44D003DBE7D /* CDVCommandQueue.m */; };
- EB3B357C161F2A45003DBE7D /* CDVCommandDelegateImpl.h in Headers */ = {isa = PBXBuildFile; fileRef = EB3B357A161F2A44003DBE7D /* CDVCommandDelegateImpl.h */; };
- EB3B357D161F2A45003DBE7D /* CDVCommandDelegateImpl.m in Sources */ = {isa = PBXBuildFile; fileRef = EB3B357B161F2A45003DBE7D /* CDVCommandDelegateImpl.m */; };
- EB80C2AC15DEA63D004D9E7B /* CDVEcho.h in Headers */ = {isa = PBXBuildFile; fileRef = EB80C2AA15DEA63D004D9E7B /* CDVEcho.h */; };
- EB80C2AD15DEA63D004D9E7B /* CDVEcho.m in Sources */ = {isa = PBXBuildFile; fileRef = EB80C2AB15DEA63D004D9E7B /* CDVEcho.m */; };
- EBA3557315ABD38C00F4DE24 /* NSArray+Comparisons.h in Headers */ = {isa = PBXBuildFile; fileRef = EBA3557115ABD38C00F4DE24 /* NSArray+Comparisons.h */; settings = {ATTRIBUTES = (Public, ); }; };
- EBA3557515ABD38C00F4DE24 /* NSArray+Comparisons.m in Sources */ = {isa = PBXBuildFile; fileRef = EBA3557215ABD38C00F4DE24 /* NSArray+Comparisons.m */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 1F2BECBE13F9785B00A93BF6 /* CDVBattery.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVBattery.h; path = Classes/CDVBattery.h; sourceTree = "<group>"; };
- 1F2BECBF13F9785B00A93BF6 /* CDVBattery.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVBattery.m; path = Classes/CDVBattery.m; sourceTree = "<group>"; };
- 1F3C04CC12BC247D004F9E10 /* CDVContact.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVContact.h; path = Classes/CDVContact.h; sourceTree = "<group>"; };
- 1F3C04CD12BC247D004F9E10 /* CDVContact.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVContact.m; path = Classes/CDVContact.m; sourceTree = "<group>"; };
- 1F584B991385A28900ED25E8 /* CDVCapture.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVCapture.h; path = Classes/CDVCapture.h; sourceTree = "<group>"; };
- 1F584B9A1385A28900ED25E8 /* CDVCapture.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVCapture.m; path = Classes/CDVCapture.m; sourceTree = "<group>"; };
- 1F92F49E1314023E0046367C /* CDVPluginResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVPluginResult.h; path = Classes/CDVPluginResult.h; sourceTree = "<group>"; };
- 1F92F49F1314023E0046367C /* CDVPluginResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVPluginResult.m; path = Classes/CDVPluginResult.m; sourceTree = "<group>"; };
- 301F2F2914F3C9CA003FE9FC /* CDV.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDV.h; path = Classes/CDV.h; sourceTree = "<group>"; };
- 302965BB13A94E9D007046C5 /* CDVDebug.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVDebug.h; path = Classes/CDVDebug.h; sourceTree = "<group>"; };
- 30325A0B136B343700982B63 /* VERSION */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = VERSION; sourceTree = "<group>"; };
- 3034979A1513D56A0090E688 /* CDVLocalStorage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVLocalStorage.h; path = Classes/CDVLocalStorage.h; sourceTree = "<group>"; };
- 3034979B1513D56A0090E688 /* CDVLocalStorage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVLocalStorage.m; path = Classes/CDVLocalStorage.m; sourceTree = "<group>"; };
- 30392E4D14F4FCAB00B9E0B8 /* CDVAvailability.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVAvailability.h; path = Classes/CDVAvailability.h; sourceTree = "<group>"; };
- 3062D11E151D0EDB000D9128 /* UIDevice+Extensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UIDevice+Extensions.h"; path = "Classes/UIDevice+Extensions.h"; sourceTree = "<group>"; };
- 3062D11F151D0EDB000D9128 /* UIDevice+Extensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UIDevice+Extensions.m"; path = "Classes/UIDevice+Extensions.m"; sourceTree = "<group>"; };
- 307A8F9C1385A2EC00E43782 /* CDVConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVConnection.h; path = Classes/CDVConnection.h; sourceTree = "<group>"; };
- 307A8F9D1385A2EC00E43782 /* CDVConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVConnection.m; path = Classes/CDVConnection.m; sourceTree = "<group>"; };
- 30A90B8F14588697006178D3 /* JSONKit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSONKit.h; sourceTree = "<group>"; };
- 30A90B9014588697006178D3 /* JSONKit.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JSONKit.m; sourceTree = "<group>"; };
- 30B39EBC13D0268B0009682A /* CDVSplashScreen.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVSplashScreen.h; path = Classes/CDVSplashScreen.h; sourceTree = "<group>"; };
- 30B39EBD13D0268B0009682A /* CDVSplashScreen.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVSplashScreen.m; path = Classes/CDVSplashScreen.m; sourceTree = "<group>"; };
- 30C5F1DD15AF9E950052A00D /* CDVDevice.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVDevice.h; path = Classes/CDVDevice.h; sourceTree = "<group>"; };
- 30C5F1DE15AF9E950052A00D /* CDVDevice.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVDevice.m; path = Classes/CDVDevice.m; sourceTree = "<group>"; };
- 30C6847E1406CB38004C1A8E /* CDVWhitelist.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVWhitelist.h; path = Classes/CDVWhitelist.h; sourceTree = "<group>"; };
- 30C6847F1406CB38004C1A8E /* CDVWhitelist.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVWhitelist.m; path = Classes/CDVWhitelist.m; sourceTree = "<group>"; };
- 30C684921407044A004C1A8E /* CDVURLProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVURLProtocol.h; path = Classes/CDVURLProtocol.h; sourceTree = "<group>"; };
- 30C684931407044A004C1A8E /* CDVURLProtocol.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVURLProtocol.m; path = Classes/CDVURLProtocol.m; sourceTree = "<group>"; };
- 30E33AF013A7E24B00594D64 /* CDVPlugin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVPlugin.h; path = Classes/CDVPlugin.h; sourceTree = "<group>"; };
- 30E33AF113A7E24B00594D64 /* CDVPlugin.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVPlugin.m; path = Classes/CDVPlugin.m; sourceTree = "<group>"; };
- 30E563CD13E217EC00C949AA /* NSMutableArray+QueueAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSMutableArray+QueueAdditions.h"; path = "Classes/NSMutableArray+QueueAdditions.h"; sourceTree = "<group>"; };
- 30E563CE13E217EC00C949AA /* NSMutableArray+QueueAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSMutableArray+QueueAdditions.m"; path = "Classes/NSMutableArray+QueueAdditions.m"; sourceTree = "<group>"; };
- 30F5EBA914CA26E700987760 /* CDVCommandDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVCommandDelegate.h; path = Classes/CDVCommandDelegate.h; sourceTree = "<group>"; };
- 3E76876B156A90EE00EB6FA3 /* CDVLogger.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVLogger.m; path = Classes/CDVLogger.m; sourceTree = "<group>"; };
- 3E76876C156A90EE00EB6FA3 /* CDVLogger.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVLogger.h; path = Classes/CDVLogger.h; sourceTree = "<group>"; };
- 686357AA141002F100DF4CF2 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
- 686357AC141002F100DF4CF2 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
- 686357AE141002F100DF4CF2 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
- 686357CC14100AAD00DF4CF2 /* AddressBookUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBookUI.framework; path = System/Library/Frameworks/AddressBookUI.framework; sourceTree = SDKROOT; };
- 686357CE14100ADA00DF4CF2 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
- 686357CF14100ADB00DF4CF2 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
- 686357D014100ADE00DF4CF2 /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
- 686357D214100AE700DF4CF2 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
- 686357D414100AF200DF4CF2 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
- 686357DC14100B1600DF4CF2 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; };
- 68A32D7114102E1C006B237C /* libCordova.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libCordova.a; sourceTree = BUILT_PRODUCTS_DIR; };
- 68A32D7414103017006B237C /* AddressBook.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBook.framework; path = System/Library/Frameworks/AddressBook.framework; sourceTree = SDKROOT; };
- 8852C43614B65FD800F0E735 /* CDVViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVViewController.h; path = Classes/CDVViewController.h; sourceTree = "<group>"; };
- 8852C43714B65FD800F0E735 /* CDVViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVViewController.m; path = Classes/CDVViewController.m; sourceTree = "<group>"; };
- 8852C43814B65FD800F0E735 /* CDVCordovaView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVCordovaView.h; path = Classes/CDVCordovaView.h; sourceTree = "<group>"; };
- 8852C43914B65FD800F0E735 /* CDVCordovaView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVCordovaView.m; path = Classes/CDVCordovaView.m; sourceTree = "<group>"; };
- 8887FD261090FBE7009987E8 /* CDVCamera.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVCamera.h; path = Classes/CDVCamera.h; sourceTree = "<group>"; };
- 8887FD271090FBE7009987E8 /* CDVCamera.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVCamera.m; path = Classes/CDVCamera.m; sourceTree = "<group>"; };
- 8887FD281090FBE7009987E8 /* NSDictionary+Extensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSDictionary+Extensions.h"; path = "Classes/NSDictionary+Extensions.h"; sourceTree = "<group>"; };
- 8887FD291090FBE7009987E8 /* NSDictionary+Extensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSDictionary+Extensions.m"; path = "Classes/NSDictionary+Extensions.m"; sourceTree = "<group>"; };
- 8887FD2A1090FBE7009987E8 /* CDVContacts.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVContacts.h; path = Classes/CDVContacts.h; sourceTree = "<group>"; };
- 8887FD2B1090FBE7009987E8 /* CDVContacts.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVContacts.m; path = Classes/CDVContacts.m; sourceTree = "<group>"; };
- 8887FD2C1090FBE7009987E8 /* CDVDebugConsole.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVDebugConsole.h; path = Classes/CDVDebugConsole.h; sourceTree = "<group>"; };
- 8887FD2D1090FBE7009987E8 /* CDVDebugConsole.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVDebugConsole.m; path = Classes/CDVDebugConsole.m; sourceTree = "<group>"; };
- 8887FD301090FBE7009987E8 /* CDVFile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVFile.h; path = Classes/CDVFile.h; sourceTree = "<group>"; };
- 8887FD311090FBE7009987E8 /* CDVFile.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVFile.m; path = Classes/CDVFile.m; sourceTree = "<group>"; };
- 8887FD341090FBE7009987E8 /* CDVInvokedUrlCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVInvokedUrlCommand.h; path = Classes/CDVInvokedUrlCommand.h; sourceTree = "<group>"; };
- 8887FD351090FBE7009987E8 /* CDVInvokedUrlCommand.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVInvokedUrlCommand.m; path = Classes/CDVInvokedUrlCommand.m; sourceTree = "<group>"; };
- 8887FD461090FBE7009987E8 /* CDVLocation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVLocation.h; path = Classes/CDVLocation.h; sourceTree = "<group>"; };
- 8887FD471090FBE7009987E8 /* CDVLocation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVLocation.m; path = Classes/CDVLocation.m; sourceTree = "<group>"; };
- 8887FD4E1090FBE7009987E8 /* CDVNotification.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVNotification.h; path = Classes/CDVNotification.h; sourceTree = "<group>"; };
- 8887FD4F1090FBE7009987E8 /* CDVNotification.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVNotification.m; path = Classes/CDVNotification.m; sourceTree = "<group>"; };
- 8887FD501090FBE7009987E8 /* NSData+Base64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSData+Base64.h"; path = "Classes/NSData+Base64.h"; sourceTree = "<group>"; };
- 8887FD511090FBE7009987E8 /* NSData+Base64.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSData+Base64.m"; path = "Classes/NSData+Base64.m"; sourceTree = "<group>"; };
- 8887FD5E1090FBE7009987E8 /* CDVReachability.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVReachability.h; path = Classes/CDVReachability.h; sourceTree = "<group>"; };
- 8887FD5F1090FBE7009987E8 /* CDVReachability.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVReachability.m; path = Classes/CDVReachability.m; sourceTree = "<group>"; };
- 8887FD601090FBE7009987E8 /* CDVSound.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVSound.h; path = Classes/CDVSound.h; sourceTree = "<group>"; };
- 8887FD611090FBE7009987E8 /* CDVSound.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVSound.m; path = Classes/CDVSound.m; sourceTree = "<group>"; };
- 88BA573B109BB46F00FB5E78 /* CDVAccelerometer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVAccelerometer.h; path = Classes/CDVAccelerometer.h; sourceTree = "<group>"; };
- 88BA573C109BB46F00FB5E78 /* CDVAccelerometer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVAccelerometer.m; path = Classes/CDVAccelerometer.m; sourceTree = "<group>"; };
- 9D76CF3A1625A4C50008A0F6 /* CDVGlobalization.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVGlobalization.h; path = Classes/CDVGlobalization.h; sourceTree = "<group>"; };
- 9D76CF3B1625A4C50008A0F6 /* CDVGlobalization.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVGlobalization.m; path = Classes/CDVGlobalization.m; sourceTree = "<group>"; };
- AA747D9E0F9514B9006C5449 /* CordovaLib_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CordovaLib_Prefix.pch; sourceTree = SOURCE_ROOT; };
- C937A4541337599E002C4C79 /* CDVFileTransfer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVFileTransfer.h; path = Classes/CDVFileTransfer.h; sourceTree = "<group>"; };
- C937A4551337599E002C4C79 /* CDVFileTransfer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVFileTransfer.m; path = Classes/CDVFileTransfer.m; sourceTree = "<group>"; };
- EB3B3545161CB44D003DBE7D /* CDVCommandQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVCommandQueue.h; path = Classes/CDVCommandQueue.h; sourceTree = "<group>"; };
- EB3B3546161CB44D003DBE7D /* CDVCommandQueue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVCommandQueue.m; path = Classes/CDVCommandQueue.m; sourceTree = "<group>"; };
- EB3B357A161F2A44003DBE7D /* CDVCommandDelegateImpl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVCommandDelegateImpl.h; path = Classes/CDVCommandDelegateImpl.h; sourceTree = "<group>"; };
- EB3B357B161F2A45003DBE7D /* CDVCommandDelegateImpl.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVCommandDelegateImpl.m; path = Classes/CDVCommandDelegateImpl.m; sourceTree = "<group>"; };
- EB80C2AA15DEA63D004D9E7B /* CDVEcho.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVEcho.h; path = Classes/CDVEcho.h; sourceTree = "<group>"; };
- EB80C2AB15DEA63D004D9E7B /* CDVEcho.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVEcho.m; path = Classes/CDVEcho.m; sourceTree = "<group>"; };
- EBA3557115ABD38C00F4DE24 /* NSArray+Comparisons.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSArray+Comparisons.h"; path = "Classes/NSArray+Comparisons.h"; sourceTree = "<group>"; };
- EBA3557215ABD38C00F4DE24 /* NSArray+Comparisons.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSArray+Comparisons.m"; path = "Classes/NSArray+Comparisons.m"; sourceTree = "<group>"; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- D2AAC07C0554694100DB518D /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 034768DFFF38A50411DB9C8B /* Products */ = {
- isa = PBXGroup;
- children = (
- 68A32D7114102E1C006B237C /* libCordova.a */,
- );
- name = Products;
- sourceTree = CORDOVALIB;
- };
- 0867D691FE84028FC02AAC07 /* CordovaLib */ = {
- isa = PBXGroup;
- children = (
- 8887FD101090FB43009987E8 /* Classes */,
- 32C88DFF0371C24200C91783 /* Other Sources */,
- 0867D69AFE84028FC02AAC07 /* Frameworks */,
- 034768DFFF38A50411DB9C8B /* Products */,
- 30325A0B136B343700982B63 /* VERSION */,
- );
- name = CordovaLib;
- sourceTree = "<group>";
- };
- 0867D69AFE84028FC02AAC07 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 68A32D7414103017006B237C /* AddressBook.framework */,
- 686357DC14100B1600DF4CF2 /* CoreMedia.framework */,
- 686357CE14100ADA00DF4CF2 /* AudioToolbox.framework */,
- 686357CF14100ADB00DF4CF2 /* AVFoundation.framework */,
- 686357D014100ADE00DF4CF2 /* CoreLocation.framework */,
- 686357D214100AE700DF4CF2 /* MobileCoreServices.framework */,
- 686357D414100AF200DF4CF2 /* SystemConfiguration.framework */,
- 686357CC14100AAD00DF4CF2 /* AddressBookUI.framework */,
- 686357AA141002F100DF4CF2 /* UIKit.framework */,
- 686357AC141002F100DF4CF2 /* Foundation.framework */,
- 686357AE141002F100DF4CF2 /* CoreGraphics.framework */,
- );
- name = Frameworks;
- sourceTree = "<group>";
- };
- 3054098714B77FF3009841CA /* Cleaver */ = {
- isa = PBXGroup;
- children = (
- 8852C43614B65FD800F0E735 /* CDVViewController.h */,
- 8852C43714B65FD800F0E735 /* CDVViewController.m */,
- 8852C43814B65FD800F0E735 /* CDVCordovaView.h */,
- 8852C43914B65FD800F0E735 /* CDVCordovaView.m */,
- EB3B3545161CB44D003DBE7D /* CDVCommandQueue.h */,
- EB3B3546161CB44D003DBE7D /* CDVCommandQueue.m */,
- );
- name = Cleaver;
- sourceTree = "<group>";
- };
- 32C88DFF0371C24200C91783 /* Other Sources */ = {
- isa = PBXGroup;
- children = (
- AA747D9E0F9514B9006C5449 /* CordovaLib_Prefix.pch */,
- );
- name = "Other Sources";
- sourceTree = "<group>";
- };
- 888700D710922F56009987E8 /* Commands */ = {
- isa = PBXGroup;
- children = (
- 30C5F1DD15AF9E950052A00D /* CDVDevice.h */,
- 30C5F1DE15AF9E950052A00D /* CDVDevice.m */,
- 301F2F2914F3C9CA003FE9FC /* CDV.h */,
- 3034979A1513D56A0090E688 /* CDVLocalStorage.h */,
- 3034979B1513D56A0090E688 /* CDVLocalStorage.m */,
- 30392E4D14F4FCAB00B9E0B8 /* CDVAvailability.h */,
- 30F5EBA914CA26E700987760 /* CDVCommandDelegate.h */,
- EB3B357A161F2A44003DBE7D /* CDVCommandDelegateImpl.h */,
- EB3B357B161F2A45003DBE7D /* CDVCommandDelegateImpl.m */,
- 30C684921407044A004C1A8E /* CDVURLProtocol.h */,
- 30C684931407044A004C1A8E /* CDVURLProtocol.m */,
- 30C6847E1406CB38004C1A8E /* CDVWhitelist.h */,
- 30C6847F1406CB38004C1A8E /* CDVWhitelist.m */,
- 1F2BECBE13F9785B00A93BF6 /* CDVBattery.h */,
- 1F2BECBF13F9785B00A93BF6 /* CDVBattery.m */,
- 30B39EBC13D0268B0009682A /* CDVSplashScreen.h */,
- 30B39EBD13D0268B0009682A /* CDVSplashScreen.m */,
- 30E33AF013A7E24B00594D64 /* CDVPlugin.h */,
- 30E33AF113A7E24B00594D64 /* CDVPlugin.m */,
- 307A8F9C1385A2EC00E43782 /* CDVConnection.h */,
- 307A8F9D1385A2EC00E43782 /* CDVConnection.m */,
- 1F92F49E1314023E0046367C /* CDVPluginResult.h */,
- 1F92F49F1314023E0046367C /* CDVPluginResult.m */,
- 88BA573B109BB46F00FB5E78 /* CDVAccelerometer.h */,
- 88BA573C109BB46F00FB5E78 /* CDVAccelerometer.m */,
- 8887FD261090FBE7009987E8 /* CDVCamera.h */,
- 8887FD271090FBE7009987E8 /* CDVCamera.m */,
- 1F584B991385A28900ED25E8 /* CDVCapture.h */,
- 1F584B9A1385A28900ED25E8 /* CDVCapture.m */,
- 1F3C04CC12BC247D004F9E10 /* CDVContact.h */,
- 1F3C04CD12BC247D004F9E10 /* CDVContact.m */,
- 8887FD2A1090FBE7009987E8 /* CDVContacts.h */,
- 8887FD2B1090FBE7009987E8 /* CDVContacts.m */,
- 8887FD2C1090FBE7009987E8 /* CDVDebugConsole.h */,
- 8887FD2D1090FBE7009987E8 /* CDVDebugConsole.m */,
- EB80C2AA15DEA63D004D9E7B /* CDVEcho.h */,
- EB80C2AB15DEA63D004D9E7B /* CDVEcho.m */,
- 8887FD301090FBE7009987E8 /* CDVFile.h */,
- 8887FD311090FBE7009987E8 /* CDVFile.m */,
- 8887FD341090FBE7009987E8 /* CDVInvokedUrlCommand.h */,
- 8887FD351090FBE7009987E8 /* CDVInvokedUrlCommand.m */,
- C937A4541337599E002C4C79 /* CDVFileTransfer.h */,
- C937A4551337599E002C4C79 /* CDVFileTransfer.m */,
- 8887FD461090FBE7009987E8 /* CDVLocation.h */,
- 8887FD471090FBE7009987E8 /* CDVLocation.m */,
- 8887FD4E1090FBE7009987E8 /* CDVNotification.h */,
- 8887FD4F1090FBE7009987E8 /* CDVNotification.m */,
- 8887FD5E1090FBE7009987E8 /* CDVReachability.h */,
- 8887FD5F1090FBE7009987E8 /* CDVReachability.m */,
- 8887FD601090FBE7009987E8 /* CDVSound.h */,
- 8887FD611090FBE7009987E8 /* CDVSound.m */,
- 3E76876B156A90EE00EB6FA3 /* CDVLogger.m */,
- 3E76876C156A90EE00EB6FA3 /* CDVLogger.h */,
- 9D76CF3A1625A4C50008A0F6 /* CDVGlobalization.h */,
- 9D76CF3B1625A4C50008A0F6 /* CDVGlobalization.m */,
- );
- name = Commands;
- sourceTree = "<group>";
- };
- 888700D910923009009987E8 /* Util */ = {
- isa = PBXGroup;
- children = (
- 3062D11E151D0EDB000D9128 /* UIDevice+Extensions.h */,
- 3062D11F151D0EDB000D9128 /* UIDevice+Extensions.m */,
- EBA3557115ABD38C00F4DE24 /* NSArray+Comparisons.h */,
- EBA3557215ABD38C00F4DE24 /* NSArray+Comparisons.m */,
- 8887FD281090FBE7009987E8 /* NSDictionary+Extensions.h */,
- 8887FD291090FBE7009987E8 /* NSDictionary+Extensions.m */,
- 302965BB13A94E9D007046C5 /* CDVDebug.h */,
- 30E563CD13E217EC00C949AA /* NSMutableArray+QueueAdditions.h */,
- 30E563CE13E217EC00C949AA /* NSMutableArray+QueueAdditions.m */,
- 8887FD501090FBE7009987E8 /* NSData+Base64.h */,
- 8887FD511090FBE7009987E8 /* NSData+Base64.m */,
- );
- name = Util;
- sourceTree = "<group>";
- };
- 8887FD101090FB43009987E8 /* Classes */ = {
- isa = PBXGroup;
- children = (
- 3054098714B77FF3009841CA /* Cleaver */,
- 888700D710922F56009987E8 /* Commands */,
- 8887FD361090FBE7009987E8 /* JSON */,
- 888700D910923009009987E8 /* Util */,
- );
- name = Classes;
- sourceTree = "<group>";
- };
- 8887FD361090FBE7009987E8 /* JSON */ = {
- isa = PBXGroup;
- children = (
- 30A90B8F14588697006178D3 /* JSONKit.h */,
- 30A90B9014588697006178D3 /* JSONKit.m */,
- );
- name = JSON;
- path = Classes/JSON;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXHeadersBuildPhase section */
- D2AAC07A0554694100DB518D /* Headers */ = {
- isa = PBXHeadersBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 8887FD661090FBE7009987E8 /* CDVCamera.h in Headers */,
- 8887FD681090FBE7009987E8 /* NSDictionary+Extensions.h in Headers */,
- 8887FD6A1090FBE7009987E8 /* CDVContacts.h in Headers */,
- 8887FD6C1090FBE7009987E8 /* CDVDebugConsole.h in Headers */,
- 8887FD701090FBE7009987E8 /* CDVFile.h in Headers */,
- 8887FD741090FBE7009987E8 /* CDVInvokedUrlCommand.h in Headers */,
- 8887FD851090FBE7009987E8 /* CDVLocation.h in Headers */,
- 8887FD8D1090FBE7009987E8 /* CDVNotification.h in Headers */,
- 8887FD8F1090FBE7009987E8 /* NSData+Base64.h in Headers */,
- 8887FD9D1090FBE7009987E8 /* CDVReachability.h in Headers */,
- 8887FD9F1090FBE7009987E8 /* CDVSound.h in Headers */,
- 88BA573D109BB46F00FB5E78 /* CDVAccelerometer.h in Headers */,
- 1F3C04CE12BC247D004F9E10 /* CDVContact.h in Headers */,
- 1F92F4A01314023E0046367C /* CDVPluginResult.h in Headers */,
- C937A4561337599E002C4C79 /* CDVFileTransfer.h in Headers */,
- 307A8F9E1385A2EC00E43782 /* CDVConnection.h in Headers */,
- 1F584B9B1385A28A00ED25E8 /* CDVCapture.h in Headers */,
- 30E33AF213A7E24B00594D64 /* CDVPlugin.h in Headers */,
- 302965BC13A94E9D007046C5 /* CDVDebug.h in Headers */,
- 30B39EBE13D0268B0009682A /* CDVSplashScreen.h in Headers */,
- 30E563CF13E217EC00C949AA /* NSMutableArray+QueueAdditions.h in Headers */,
- 1F2BECC013F9785B00A93BF6 /* CDVBattery.h in Headers */,
- 30C684801406CB38004C1A8E /* CDVWhitelist.h in Headers */,
- 30C684941407044B004C1A8E /* CDVURLProtocol.h in Headers */,
- 30A90B9114588697006178D3 /* JSONKit.h in Headers */,
- 8852C43A14B65FD800F0E735 /* CDVViewController.h in Headers */,
- 8852C43F14B65FD800F0E735 /* CDVCordovaView.h in Headers */,
- 30F5EBAB14CA26E700987760 /* CDVCommandDelegate.h in Headers */,
- 301F2F2A14F3C9CA003FE9FC /* CDV.h in Headers */,
- 30392E4E14F4FCAB00B9E0B8 /* CDVAvailability.h in Headers */,
- 3034979C1513D56A0090E688 /* CDVLocalStorage.h in Headers */,
- 3062D120151D0EDB000D9128 /* UIDevice+Extensions.h in Headers */,
- 3E76876F156A90EE00EB6FA3 /* CDVLogger.h in Headers */,
- EBA3557315ABD38C00F4DE24 /* NSArray+Comparisons.h in Headers */,
- 30C5F1DF15AF9E950052A00D /* CDVDevice.h in Headers */,
- EB80C2AC15DEA63D004D9E7B /* CDVEcho.h in Headers */,
- EB3B3547161CB44D003DBE7D /* CDVCommandQueue.h in Headers */,
- EB3B357C161F2A45003DBE7D /* CDVCommandDelegateImpl.h in Headers */,
- 9D76CF3C1625A4C50008A0F6 /* CDVGlobalization.h in Headers */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXHeadersBuildPhase section */
-
-/* Begin PBXNativeTarget section */
- D2AAC07D0554694100DB518D /* CordovaLib */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 1DEB921E08733DC00010E9CD /* Build configuration list for PBXNativeTarget "CordovaLib" */;
- buildPhases = (
- D2AAC07A0554694100DB518D /* Headers */,
- D2AAC07B0554694100DB518D /* Sources */,
- D2AAC07C0554694100DB518D /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = CordovaLib;
- productName = CordovaLib;
- productReference = 68A32D7114102E1C006B237C /* libCordova.a */;
- productType = "com.apple.product-type.library.static";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 0867D690FE84028FC02AAC07 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 0430;
- };
- buildConfigurationList = 1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "CordovaLib" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 1;
- knownRegions = (
- English,
- Japanese,
- French,
- German,
- en,
- );
- mainGroup = 0867D691FE84028FC02AAC07 /* CordovaLib */;
- productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- D2AAC07D0554694100DB518D /* CordovaLib */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXSourcesBuildPhase section */
- D2AAC07B0554694100DB518D /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 8887FD671090FBE7009987E8 /* CDVCamera.m in Sources */,
- 8887FD691090FBE7009987E8 /* NSDictionary+Extensions.m in Sources */,
- 8887FD6B1090FBE7009987E8 /* CDVContacts.m in Sources */,
- 8887FD6D1090FBE7009987E8 /* CDVDebugConsole.m in Sources */,
- 8887FD711090FBE7009987E8 /* CDVFile.m in Sources */,
- 8887FD751090FBE7009987E8 /* CDVInvokedUrlCommand.m in Sources */,
- 8887FD861090FBE7009987E8 /* CDVLocation.m in Sources */,
- 8887FD8E1090FBE7009987E8 /* CDVNotification.m in Sources */,
- 8887FD901090FBE7009987E8 /* NSData+Base64.m in Sources */,
- 8887FD9E1090FBE7009987E8 /* CDVReachability.m in Sources */,
- 8887FDA01090FBE7009987E8 /* CDVSound.m in Sources */,
- 88BA573E109BB46F00FB5E78 /* CDVAccelerometer.m in Sources */,
- 1F3C04CF12BC247D004F9E10 /* CDVContact.m in Sources */,
- 1F92F4A11314023E0046367C /* CDVPluginResult.m in Sources */,
- C937A4571337599E002C4C79 /* CDVFileTransfer.m in Sources */,
- 307A8F9F1385A2EC00E43782 /* CDVConnection.m in Sources */,
- 1F584B9C1385A28A00ED25E8 /* CDVCapture.m in Sources */,
- 30E33AF313A7E24B00594D64 /* CDVPlugin.m in Sources */,
- 30B39EBF13D0268B0009682A /* CDVSplashScreen.m in Sources */,
- 30E563D013E217EC00C949AA /* NSMutableArray+QueueAdditions.m in Sources */,
- 1F2BECC113F9785B00A93BF6 /* CDVBattery.m in Sources */,
- 30C684821406CB38004C1A8E /* CDVWhitelist.m in Sources */,
- 30C684961407044B004C1A8E /* CDVURLProtocol.m in Sources */,
- 30A90B9314588697006178D3 /* JSONKit.m in Sources */,
- 8852C43C14B65FD800F0E735 /* CDVViewController.m in Sources */,
- 8852C44114B65FD800F0E735 /* CDVCordovaView.m in Sources */,
- 3034979E1513D56A0090E688 /* CDVLocalStorage.m in Sources */,
- 3062D122151D0EDB000D9128 /* UIDevice+Extensions.m in Sources */,
- 3E76876D156A90EE00EB6FA3 /* CDVLogger.m in Sources */,
- EBA3557515ABD38C00F4DE24 /* NSArray+Comparisons.m in Sources */,
- 30C5F1E015AF9E950052A00D /* CDVDevice.m in Sources */,
- EB80C2AD15DEA63D004D9E7B /* CDVEcho.m in Sources */,
- EB3B3548161CB44D003DBE7D /* CDVCommandQueue.m in Sources */,
- EB3B357D161F2A45003DBE7D /* CDVCommandDelegateImpl.m in Sources */,
- 9D76CF3D1625A4C50008A0F6 /* CDVGlobalization.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin XCBuildConfiguration section */
- 1DEB921F08733DC00010E9CD /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- "ARCHS[sdk=iphoneos*]" = (
- armv6,
- armv7,
- );
- "ARCHS[sdk=iphoneos6.*]" = (
- armv7,
- armv7s,
- );
- "ARCHS[sdk=iphonesimulator*]" = i386;
- CLANG_ENABLE_OBJC_ARC = YES;
- COPY_PHASE_STRIP = NO;
- DSTROOT = "/tmp/$(PROJECT_NAME).dst";
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_MODEL_TUNING = G5;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = CordovaLib_Prefix.pch;
- GCC_PREPROCESSOR_DEFINITIONS = "";
- GCC_THUMB_SUPPORT = NO;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- INSTALL_PATH = /usr/local/lib;
- IPHONEOS_DEPLOYMENT_TARGET = 4.2;
- PRODUCT_NAME = Cordova;
- PUBLIC_HEADERS_FOLDER_PATH = include/Cordova;
- SKIP_INSTALL = YES;
- };
- name = Debug;
- };
- 1DEB922008733DC00010E9CD /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- "ARCHS[sdk=iphoneos*]" = (
- armv6,
- armv7,
- );
- "ARCHS[sdk=iphoneos6.*]" = (
- armv7,
- armv7s,
- );
- "ARCHS[sdk=iphonesimulator*]" = i386;
- CLANG_ENABLE_OBJC_ARC = YES;
- DSTROOT = "/tmp/$(PROJECT_NAME).dst";
- GCC_MODEL_TUNING = G5;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = CordovaLib_Prefix.pch;
- GCC_PREPROCESSOR_DEFINITIONS = "";
- GCC_THUMB_SUPPORT = NO;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- INSTALL_PATH = /usr/local/lib;
- IPHONEOS_DEPLOYMENT_TARGET = 4.2;
- PRODUCT_NAME = Cordova;
- PUBLIC_HEADERS_FOLDER_PATH = include/Cordova;
- SKIP_INSTALL = YES;
- };
- name = Release;
- };
- 1DEB922308733DC00010E9CD /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- "ARCHS[sdk=iphoneos*]" = (
- armv6,
- armv7,
- );
- "ARCHS[sdk=iphoneos6.*]" = (
- armv7,
- armv7s,
- );
- "ARCHS[sdk=iphonesimulator*]" = i386;
- GCC_C_LANGUAGE_STANDARD = c99;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = "";
- GCC_THUMB_SUPPORT = NO;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 4.2;
- ONLY_ACTIVE_ARCH = NO;
- OTHER_CFLAGS = "-DDEBUG";
- PUBLIC_HEADERS_FOLDER_PATH = include/Cordova;
- SDKROOT = iphoneos;
- SKIP_INSTALL = YES;
- TARGETED_DEVICE_FAMILY = "1,2";
- USER_HEADER_SEARCH_PATHS = "";
- VALID_ARCHS = "i386 armv6 armv7 armv7s";
- };
- name = Debug;
- };
- 1DEB922408733DC00010E9CD /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- "ARCHS[sdk=iphoneos*]" = (
- armv6,
- armv7,
- );
- "ARCHS[sdk=iphoneos6.*]" = (
- armv7,
- armv7s,
- );
- "ARCHS[sdk=iphonesimulator*]" = i386;
- GCC_C_LANGUAGE_STANDARD = c99;
- GCC_PREPROCESSOR_DEFINITIONS = "";
- GCC_THUMB_SUPPORT = NO;
- GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 4.2;
- ONLY_ACTIVE_ARCH = NO;
- PUBLIC_HEADERS_FOLDER_PATH = include/Cordova;
- SDKROOT = iphoneos;
- SKIP_INSTALL = YES;
- TARGETED_DEVICE_FAMILY = "1,2";
- VALID_ARCHS = "i386 armv6 armv7 armv7s";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 1DEB921E08733DC00010E9CD /* Build configuration list for PBXNativeTarget "CordovaLib" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1DEB921F08733DC00010E9CD /* Debug */,
- 1DEB922008733DC00010E9CD /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "CordovaLib" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1DEB922308733DC00010E9CD /* Debug */,
- 1DEB922408733DC00010E9CD /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 0867D690FE84028FC02AAC07 /* Project object */;
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/ios-config-xml/SampleApp-Info.plist
----------------------------------------------------------------------
diff --git a/test/projects/ios-config-xml/SampleApp-Info.plist b/test/projects/ios-config-xml/SampleApp-Info.plist
deleted file mode 100644
index 6010b61..0000000
--- a/test/projects/ios-config-xml/SampleApp-Info.plist
+++ /dev/null
@@ -1,78 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<!--
-#
-# 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.
-#
--->
-<plist version="1.0">
-<dict>
- <key>CFBundleIcons</key>
- <dict>
- <key>CFBundlePrimaryIcon</key>
- <dict>
- <key>CFBundleIconFiles</key>
- <array>
- <string>icon.png</string>
- <string>icon@2x.png</string>
- <string>icon-72.png</string>
- <string>icon-72@2x.png</string>
- </array>
- <key>UIPrerenderedIcon</key>
- <false/>
- </dict>
- </dict>
- <key>UISupportedInterfaceOrientations~ipad</key>
- <array>
- <string>UIInterfaceOrientationPortrait</string>
- <string>UIInterfaceOrientationLandscapeLeft</string>
- <string>UIInterfaceOrientationPortraitUpsideDown</string>
- <string>UIInterfaceOrientationLandscapeRight</string>
- </array>
- <key>UISupportedInterfaceOrientations</key>
- <array>
- <string>UIInterfaceOrientationPortrait</string>
- </array>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleDisplayName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundleExecutable</key>
- <string>${EXECUTABLE_NAME}</string>
- <key>CFBundleIconFile</key>
- <string>icon.png</string>
- <key>CFBundleIdentifier</key>
- <string>com.example.friendstring</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>1.0</string>
- <key>LSRequiresIPhoneOS</key>
- <true/>
- <key>NSMainNibFile</key>
- <string></string>
- <key>NSMainNibFile~ipad</key>
- <string></string>
-</dict>
-</plist>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/ios-config-xml/SampleApp.xcodeproj/project.orig.pbxproj
----------------------------------------------------------------------
diff --git a/test/projects/ios-config-xml/SampleApp.xcodeproj/project.orig.pbxproj b/test/projects/ios-config-xml/SampleApp.xcodeproj/project.orig.pbxproj
deleted file mode 100644
index a4d87f9..0000000
--- a/test/projects/ios-config-xml/SampleApp.xcodeproj/project.orig.pbxproj
+++ /dev/null
@@ -1,498 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 571A464014DB0A1B007FEAC7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A463F14DB0A1B007FEAC7 /* Foundation.framework */; };
- 571A464214DB0A1B007FEAC7 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464114DB0A1B007FEAC7 /* UIKit.framework */; };
- 571A464414DB0A1B007FEAC7 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464314DB0A1B007FEAC7 /* CoreGraphics.framework */; };
- 571A464614DB0A1B007FEAC7 /* AddressBook.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464514DB0A1B007FEAC7 /* AddressBook.framework */; };
- 571A464814DB0A1B007FEAC7 /* AddressBookUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464714DB0A1B007FEAC7 /* AddressBookUI.framework */; };
- 571A464A14DB0A1B007FEAC7 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464914DB0A1B007FEAC7 /* AudioToolbox.framework */; };
- 571A464C14DB0A1B007FEAC7 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464B14DB0A1B007FEAC7 /* AVFoundation.framework */; };
- 571A464E14DB0A1B007FEAC7 /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464D14DB0A1B007FEAC7 /* CoreLocation.framework */; };
- 571A465014DB0A1B007FEAC7 /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A464F14DB0A1B007FEAC7 /* MediaPlayer.framework */; };
- 571A465214DB0A1B007FEAC7 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A465114DB0A1B007FEAC7 /* QuartzCore.framework */; };
- 571A465414DB0A1B007FEAC7 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A465314DB0A1B007FEAC7 /* SystemConfiguration.framework */; };
- 571A465614DB0A1B007FEAC7 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A465514DB0A1B007FEAC7 /* MobileCoreServices.framework */; };
- 571A465814DB0A1B007FEAC7 /* CoreMedia.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A465714DB0A1B007FEAC7 /* CoreMedia.framework */; };
- 571A465E14DB0A1B007FEAC7 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 571A465C14DB0A1B007FEAC7 /* InfoPlist.strings */; };
- 571A466014DB0A1B007FEAC7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 571A465F14DB0A1B007FEAC7 /* main.m */; };
- 571A466314DB0A1B007FEAC7 /* PhoneGap.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 571A466214DB0A1B007FEAC7 /* PhoneGap.framework */; };
- 571A466814DB0A1B007FEAC7 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 571A466614DB0A1B007FEAC7 /* Localizable.strings */; };
- 571A466C14DB0A1B007FEAC7 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 571A466A14DB0A1B007FEAC7 /* Localizable.strings */; };
- 571A466F14DB0A1B007FEAC7 /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A466E14DB0A1B007FEAC7 /* icon.png */; };
- 571A467114DB0A1B007FEAC7 /* icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A467014DB0A1B007FEAC7 /* icon@2x.png */; };
- 571A467314DB0A1B007FEAC7 /* icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A467214DB0A1B007FEAC7 /* icon-72.png */; };
- 571A467614DB0A1B007FEAC7 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A467514DB0A1B007FEAC7 /* Default.png */; };
- 571A467814DB0A1B007FEAC7 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 571A467714DB0A1B007FEAC7 /* Default@2x.png */; };
- 571A467A14DB0A1B007FEAC7 /* Capture.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 571A467914DB0A1B007FEAC7 /* Capture.bundle */; };
- 571A467C14DB0A1B007FEAC7 /* PhoneGap.plist in Resources */ = {isa = PBXBuildFile; fileRef = 571A467B14DB0A1B007FEAC7 /* PhoneGap.plist */; };
- 571A468014DB0A1B007FEAC7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 571A467F14DB0A1B007FEAC7 /* AppDelegate.m */; };
- 571A468314DB0A1B007FEAC7 /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 571A468214DB0A1B007FEAC7 /* MainViewController.m */; };
- 571A468514DB0A1B007FEAC7 /* MainViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 571A468414DB0A1B007FEAC7 /* MainViewController.xib */; };
- 577FC36614DB0B620082BA7B /* www in Resources */ = {isa = PBXBuildFile; fileRef = 577FC36514DB0B620082BA7B /* www */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 571A463B14DB0A1B007FEAC7 /* ChildApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ChildApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 571A463F14DB0A1B007FEAC7 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
- 571A464114DB0A1B007FEAC7 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
- 571A464314DB0A1B007FEAC7 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
- 571A464514DB0A1B007FEAC7 /* AddressBook.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBook.framework; path = System/Library/Frameworks/AddressBook.framework; sourceTree = SDKROOT; };
- 571A464714DB0A1B007FEAC7 /* AddressBookUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBookUI.framework; path = System/Library/Frameworks/AddressBookUI.framework; sourceTree = SDKROOT; };
- 571A464914DB0A1B007FEAC7 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
- 571A464B14DB0A1B007FEAC7 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
- 571A464D14DB0A1B007FEAC7 /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
- 571A464F14DB0A1B007FEAC7 /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; };
- 571A465114DB0A1B007FEAC7 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
- 571A465314DB0A1B007FEAC7 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
- 571A465514DB0A1B007FEAC7 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
- 571A465714DB0A1B007FEAC7 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; };
- 571A465B14DB0A1B007FEAC7 /* ChildApp-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ChildApp-Info.plist"; sourceTree = "<group>"; };
- 571A465D14DB0A1B007FEAC7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
- 571A465F14DB0A1B007FEAC7 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
- 571A466114DB0A1B007FEAC7 /* ChildApp-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ChildApp-Prefix.pch"; sourceTree = "<group>"; };
- 571A466214DB0A1B007FEAC7 /* PhoneGap.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = PhoneGap.framework; path = /Users/Shared/PhoneGap/Frameworks/PhoneGap.framework; sourceTree = "<absolute>"; };
- 571A466714DB0A1B007FEAC7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = Resources/en.lproj/Localizable.strings; sourceTree = "<group>"; };
- 571A466B14DB0A1B007FEAC7 /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = Resources/es.lproj/Localizable.strings; sourceTree = "<group>"; };
- 571A466E14DB0A1B007FEAC7 /* icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = icon.png; path = Resources/icons/icon.png; sourceTree = "<group>"; };
- 571A467014DB0A1B007FEAC7 /* icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "icon@2x.png"; path = "Resources/icons/icon@2x.png"; sourceTree = "<group>"; };
- 571A467214DB0A1B007FEAC7 /* icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "icon-72.png"; path = "Resources/icons/icon-72.png"; sourceTree = "<group>"; };
- 571A467514DB0A1B007FEAC7 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Default.png; path = Resources/splash/Default.png; sourceTree = "<group>"; };
- 571A467714DB0A1B007FEAC7 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default@2x.png"; path = "Resources/splash/Default@2x.png"; sourceTree = "<group>"; };
- 571A467914DB0A1B007FEAC7 /* Capture.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = Capture.bundle; path = Resources/Capture.bundle; sourceTree = "<group>"; };
- 571A467B14DB0A1B007FEAC7 /* PhoneGap.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = PhoneGap.plist; sourceTree = "<group>"; };
- 571A467E14DB0A1B007FEAC7 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Classes/AppDelegate.h; sourceTree = "<group>"; };
- 571A467F14DB0A1B007FEAC7 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = Classes/AppDelegate.m; sourceTree = "<group>"; };
- 571A468114DB0A1B007FEAC7 /* MainViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = MainViewController.h; path = Classes/MainViewController.h; sourceTree = "<group>"; };
- 571A468214DB0A1B007FEAC7 /* MainViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = MainViewController.m; path = Classes/MainViewController.m; sourceTree = "<group>"; };
- 571A468414DB0A1B007FEAC7 /* MainViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = MainViewController.xib; path = Classes/MainViewController.xib; sourceTree = "<group>"; };
- 571A468714DB0A1B007FEAC7 /* README */ = {isa = PBXFileReference; lastKnownFileType = text; name = README; path = Plugins/README; sourceTree = "<group>"; };
- 577FC36514DB0B620082BA7B /* www */ = {isa = PBXFileReference; lastKnownFileType = folder; path = www; sourceTree = "<group>"; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 571A463514DB0A1B007FEAC7 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 571A464014DB0A1B007FEAC7 /* Foundation.framework in Frameworks */,
- 571A464214DB0A1B007FEAC7 /* UIKit.framework in Frameworks */,
- 571A464414DB0A1B007FEAC7 /* CoreGraphics.framework in Frameworks */,
- 571A464614DB0A1B007FEAC7 /* AddressBook.framework in Frameworks */,
- 571A464814DB0A1B007FEAC7 /* AddressBookUI.framework in Frameworks */,
- 571A464A14DB0A1B007FEAC7 /* AudioToolbox.framework in Frameworks */,
- 571A464C14DB0A1B007FEAC7 /* AVFoundation.framework in Frameworks */,
- 571A464E14DB0A1B007FEAC7 /* CoreLocation.framework in Frameworks */,
- 571A465014DB0A1B007FEAC7 /* MediaPlayer.framework in Frameworks */,
- 571A465214DB0A1B007FEAC7 /* QuartzCore.framework in Frameworks */,
- 571A465414DB0A1B007FEAC7 /* SystemConfiguration.framework in Frameworks */,
- 571A465614DB0A1B007FEAC7 /* MobileCoreServices.framework in Frameworks */,
- 571A465814DB0A1B007FEAC7 /* CoreMedia.framework in Frameworks */,
- 571A466314DB0A1B007FEAC7 /* PhoneGap.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 571A463814DB0A1B007FEAC7 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 571A462D14DB0A1A007FEAC7 = {
- isa = PBXGroup;
- children = (
- 577FC36514DB0B620082BA7B /* www */,
- 571A465914DB0A1B007FEAC7 /* ChildApp */,
- 571A463E14DB0A1B007FEAC7 /* Frameworks */,
- 571A463C14DB0A1B007FEAC7 /* Products */,
- );
- sourceTree = "<group>";
- };
- 571A463C14DB0A1B007FEAC7 /* Products */ = {
- isa = PBXGroup;
- children = (
- 571A463B14DB0A1B007FEAC7 /* ChildApp.app */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 571A463E14DB0A1B007FEAC7 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 571A463F14DB0A1B007FEAC7 /* Foundation.framework */,
- 571A464114DB0A1B007FEAC7 /* UIKit.framework */,
- 571A464314DB0A1B007FEAC7 /* CoreGraphics.framework */,
- 571A464514DB0A1B007FEAC7 /* AddressBook.framework */,
- 571A464714DB0A1B007FEAC7 /* AddressBookUI.framework */,
- 571A464914DB0A1B007FEAC7 /* AudioToolbox.framework */,
- 571A464B14DB0A1B007FEAC7 /* AVFoundation.framework */,
- 571A464D14DB0A1B007FEAC7 /* CoreLocation.framework */,
- 571A464F14DB0A1B007FEAC7 /* MediaPlayer.framework */,
- 571A465114DB0A1B007FEAC7 /* QuartzCore.framework */,
- 571A465314DB0A1B007FEAC7 /* SystemConfiguration.framework */,
- 571A465514DB0A1B007FEAC7 /* MobileCoreServices.framework */,
- 571A465714DB0A1B007FEAC7 /* CoreMedia.framework */,
- );
- name = Frameworks;
- sourceTree = "<group>";
- };
- 571A465914DB0A1B007FEAC7 /* ChildApp */ = {
- isa = PBXGroup;
- children = (
- 571A466214DB0A1B007FEAC7 /* PhoneGap.framework */,
- 571A466414DB0A1B007FEAC7 /* Resources */,
- 571A467D14DB0A1B007FEAC7 /* Classes */,
- 571A468614DB0A1B007FEAC7 /* Plugins */,
- 571A465A14DB0A1B007FEAC7 /* Supporting Files */,
- );
- path = ChildApp;
- sourceTree = "<group>";
- };
- 571A465A14DB0A1B007FEAC7 /* Supporting Files */ = {
- isa = PBXGroup;
- children = (
- 571A465B14DB0A1B007FEAC7 /* ChildApp-Info.plist */,
- 571A465C14DB0A1B007FEAC7 /* InfoPlist.strings */,
- 571A465F14DB0A1B007FEAC7 /* main.m */,
- 571A466114DB0A1B007FEAC7 /* ChildApp-Prefix.pch */,
- 571A467B14DB0A1B007FEAC7 /* PhoneGap.plist */,
- 571A468414DB0A1B007FEAC7 /* MainViewController.xib */,
- );
- name = "Supporting Files";
- sourceTree = "<group>";
- };
- 571A466414DB0A1B007FEAC7 /* Resources */ = {
- isa = PBXGroup;
- children = (
- 571A467914DB0A1B007FEAC7 /* Capture.bundle */,
- 571A466514DB0A1B007FEAC7 /* en.lproj */,
- 571A466914DB0A1B007FEAC7 /* es.lproj */,
- 571A466D14DB0A1B007FEAC7 /* icons */,
- 571A467414DB0A1B007FEAC7 /* splash */,
- );
- name = Resources;
- sourceTree = "<group>";
- };
- 571A466514DB0A1B007FEAC7 /* en.lproj */ = {
- isa = PBXGroup;
- children = (
- 571A466614DB0A1B007FEAC7 /* Localizable.strings */,
- );
- name = en.lproj;
- sourceTree = "<group>";
- };
- 571A466914DB0A1B007FEAC7 /* es.lproj */ = {
- isa = PBXGroup;
- children = (
- 571A466A14DB0A1B007FEAC7 /* Localizable.strings */,
- );
- name = es.lproj;
- sourceTree = "<group>";
- };
- 571A466D14DB0A1B007FEAC7 /* icons */ = {
- isa = PBXGroup;
- children = (
- 571A466E14DB0A1B007FEAC7 /* icon.png */,
- 571A467014DB0A1B007FEAC7 /* icon@2x.png */,
- 571A467214DB0A1B007FEAC7 /* icon-72.png */,
- );
- name = icons;
- sourceTree = "<group>";
- };
- 571A467414DB0A1B007FEAC7 /* splash */ = {
- isa = PBXGroup;
- children = (
- 571A467514DB0A1B007FEAC7 /* Default.png */,
- 571A467714DB0A1B007FEAC7 /* Default@2x.png */,
- );
- name = splash;
- sourceTree = "<group>";
- };
- 571A467D14DB0A1B007FEAC7 /* Classes */ = {
- isa = PBXGroup;
- children = (
- 571A467E14DB0A1B007FEAC7 /* AppDelegate.h */,
- 571A467F14DB0A1B007FEAC7 /* AppDelegate.m */,
- 571A468114DB0A1B007FEAC7 /* MainViewController.h */,
- 571A468214DB0A1B007FEAC7 /* MainViewController.m */,
- );
- name = Classes;
- sourceTree = "<group>";
- };
- 571A468614DB0A1B007FEAC7 /* Plugins */ = {
- isa = PBXGroup;
- children = (
- 571A468714DB0A1B007FEAC7 /* README */,
- );
- name = Plugins;
- sourceTree = "<group>";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 571A463A14DB0A1B007FEAC7 /* ChildApp */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 571A468A14DB0A1B007FEAC7 /* Build configuration list for PBXNativeTarget "ChildApp" */;
- buildPhases = (
- 571A463414DB0A1B007FEAC7 /* Sources */,
- 571A463514DB0A1B007FEAC7 /* Frameworks */,
- 571A463614DB0A1B007FEAC7 /* Resources */,
- 571A463714DB0A1B007FEAC7 /* Sources */,
- 571A463814DB0A1B007FEAC7 /* Frameworks */,
- 571A463914DB0A1B007FEAC7 /* ShellScript */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = ChildApp;
- productName = ChildApp;
- productReference = 571A463B14DB0A1B007FEAC7 /* ChildApp.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 571A462F14DB0A1A007FEAC7 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 0420;
- };
- buildConfigurationList = 571A463214DB0A1A007FEAC7 /* Build configuration list for PBXProject "ChildApp" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- es,
- );
- mainGroup = 571A462D14DB0A1A007FEAC7;
- productRefGroup = 571A463C14DB0A1B007FEAC7 /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 571A463A14DB0A1B007FEAC7 /* ChildApp */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 571A463614DB0A1B007FEAC7 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 571A465E14DB0A1B007FEAC7 /* InfoPlist.strings in Resources */,
- 571A466814DB0A1B007FEAC7 /* Localizable.strings in Resources */,
- 571A466C14DB0A1B007FEAC7 /* Localizable.strings in Resources */,
- 571A466F14DB0A1B007FEAC7 /* icon.png in Resources */,
- 571A467114DB0A1B007FEAC7 /* icon@2x.png in Resources */,
- 571A467314DB0A1B007FEAC7 /* icon-72.png in Resources */,
- 571A467614DB0A1B007FEAC7 /* Default.png in Resources */,
- 571A467814DB0A1B007FEAC7 /* Default@2x.png in Resources */,
- 571A467A14DB0A1B007FEAC7 /* Capture.bundle in Resources */,
- 571A467C14DB0A1B007FEAC7 /* PhoneGap.plist in Resources */,
- 571A468514DB0A1B007FEAC7 /* MainViewController.xib in Resources */,
- 577FC36614DB0B620082BA7B /* www in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 571A463914DB0A1B007FEAC7 /* ShellScript */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/bash;
- shellScript = "\n\t\t\t\t\t\t\t\tif [ ! -d \"$PROJECT_DIR/www\" ] ; then\n\t\t\t\t\t\t\t\t\tcp -R /Users/Shared/PhoneGap/Frameworks/PhoneGap.framework/www \"$PROJECT_DIR\"\n\t\t\t\t\t\t\t\tfi\n\t\t\t\t\t\t\t\t# detect www folder reference in project, if missing, print warning\n\t\t\t\t\t\t\t\tgrep \"{isa = PBXFileReference; lastKnownFileType = folder; path = www; sourceTree = \\\"<group>\\\"; };\" \"$PROJECT_DIR/$PROJECT_NAME.xcodeproj/project.pbxproj\"\n\t\t\t\t\t\t\t\trc=$? \n\t\t\t\t\t\t\t\tif [ $rc != 0 ] ; then\n\t\t\t\t\t\t\t\techo -e \"warning: Missing - Add $PROJECT_DIR/www as a folder reference in your project. Just drag and drop the folder into your project, into the Project Navigator of Xcode 4. Make sure you select the second radio-button: 'Create folder references for any added folders' (which will create a blue folder)\" 1>&2\n\t\t\t\t\t\t\t\tfi\t\t\t\t\t\t\t";
- };
-/* End PBXShellScriptBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 571A463414DB0A1B007FEAC7 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 571A466014DB0A1B007FEAC7 /* main.m in Sources */,
- 571A468014DB0A1B007FEAC7 /* AppDelegate.m in Sources */,
- 571A468314DB0A1B007FEAC7 /* MainViewController.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
- 571A463714DB0A1B007FEAC7 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
- 571A465C14DB0A1B007FEAC7 /* InfoPlist.strings */ = {
- isa = PBXVariantGroup;
- children = (
- 571A465D14DB0A1B007FEAC7 /* en */,
- );
- name = InfoPlist.strings;
- sourceTree = "<group>";
- };
- 571A466614DB0A1B007FEAC7 /* Localizable.strings */ = {
- isa = PBXVariantGroup;
- children = (
- 571A466714DB0A1B007FEAC7 /* en */,
- );
- name = Localizable.strings;
- sourceTree = "<group>";
- };
- 571A466A14DB0A1B007FEAC7 /* Localizable.strings */ = {
- isa = PBXVariantGroup;
- children = (
- 571A466B14DB0A1B007FEAC7 /* es */,
- );
- name = Localizable.strings;
- sourceTree = "<group>";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 571A468814DB0A1B007FEAC7 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CLANG_ENABLE_OBJC_ARC = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- 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_VERSION = com.apple.compilers.llvmgcc42;
- GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 3.0;
- SDKROOT = iphoneos;
- };
- name = Debug;
- };
- 571A468914DB0A1B007FEAC7 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CLANG_ENABLE_OBJC_ARC = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_VERSION = com.apple.compilers.llvmgcc42;
- GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 3.0;
- SDKROOT = iphoneos;
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 571A468B14DB0A1B007FEAC7 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = YES;
- COPY_PHASE_STRIP = NO;
- FRAMEWORK_SEARCH_PATHS = /Users/Shared/PhoneGap/Frameworks;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "ChildApp/ChildApp-Prefix.pch";
- GCC_PREPROCESSOR_DEFINITIONS = "PHONEGAP_FRAMEWORK=YES";
- INFOPLIST_FILE = "ChildApp/ChildApp-Info.plist";
- OTHER_LDFLAGS = (
- "-weak_framework",
- UIKit,
- "-weak_framework",
- AVFoundation,
- "-weak_framework",
- CoreMedia,
- "-weak_library",
- /usr/lib/libSystem.B.dylib,
- );
- PRODUCT_NAME = "$(TARGET_NAME)";
- TARGETED_DEVICE_FAMILY = "1,2";
- WRAPPER_EXTENSION = app;
- };
- name = Debug;
- };
- 571A468C14DB0A1B007FEAC7 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = YES;
- COPY_PHASE_STRIP = YES;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- FRAMEWORK_SEARCH_PATHS = /Users/Shared/PhoneGap/Frameworks;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "ChildApp/ChildApp-Prefix.pch";
- GCC_PREPROCESSOR_DEFINITIONS = "PHONEGAP_FRAMEWORK=YES";
- INFOPLIST_FILE = "ChildApp/ChildApp-Info.plist";
- OTHER_LDFLAGS = (
- "-weak_framework",
- UIKit,
- "-weak_framework",
- AVFoundation,
- "-weak_framework",
- CoreMedia,
- "-weak_library",
- /usr/lib/libSystem.B.dylib,
- );
- PRODUCT_NAME = "$(TARGET_NAME)";
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- WRAPPER_EXTENSION = app;
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 571A463214DB0A1A007FEAC7 /* Build configuration list for PBXProject "ChildApp" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 571A468814DB0A1B007FEAC7 /* Debug */,
- 571A468914DB0A1B007FEAC7 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 571A468A14DB0A1B007FEAC7 /* Build configuration list for PBXNativeTarget "ChildApp" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 571A468B14DB0A1B007FEAC7 /* Debug */,
- 571A468C14DB0A1B007FEAC7 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 571A462F14DB0A1A007FEAC7 /* Project object */;
-}
[04/10] remove old tests. jasmine migration complete
Posted by fi...@apache.org.
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/json_writer.cpp
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/json_writer.cpp b/test/plugins/cordova.echo/src/blackberry/public/json_writer.cpp
deleted file mode 100644
index cdf4188..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/json_writer.cpp
+++ /dev/null
@@ -1,829 +0,0 @@
-#include <json/writer.h>
-#include <utility>
-#include <assert.h>
-#include <stdio.h>
-#include <string.h>
-#include <iostream>
-#include <sstream>
-#include <iomanip>
-
-#if _MSC_VER >= 1400 // VC++ 8.0
-#pragma warning( disable : 4996 ) // disable warning about strdup being deprecated.
-#endif
-
-namespace Json {
-
-static bool isControlCharacter(char ch)
-{
- return ch > 0 && ch <= 0x1F;
-}
-
-static bool containsControlCharacter( const char* str )
-{
- while ( *str )
- {
- if ( isControlCharacter( *(str++) ) )
- return true;
- }
- return false;
-}
-static void uintToString( unsigned int value,
- char *¤t )
-{
- *--current = 0;
- do
- {
- *--current = (value % 10) + '0';
- value /= 10;
- }
- while ( value != 0 );
-}
-
-std::string valueToString( Int value )
-{
- char buffer[32];
- char *current = buffer + sizeof(buffer);
- bool isNegative = value < 0;
- if ( isNegative )
- value = -value;
- uintToString( UInt(value), current );
- if ( isNegative )
- *--current = '-';
- assert( current >= buffer );
- return current;
-}
-
-
-std::string valueToString( UInt value )
-{
- char buffer[32];
- char *current = buffer + sizeof(buffer);
- uintToString( value, current );
- assert( current >= buffer );
- return current;
-}
-
-std::string valueToString( double value )
-{
- char buffer[32];
-#if defined(_MSC_VER) && defined(__STDC_SECURE_LIB__) // Use secure version with visual studio 2005 to avoid warning.
- sprintf_s(buffer, sizeof(buffer), "%#.16g", value);
-#else
- sprintf(buffer, "%#.16g", value);
-#endif
- char* ch = buffer + strlen(buffer) - 1;
- if (*ch != '0') return buffer; // nothing to truncate, so save time
- while(ch > buffer && *ch == '0'){
- --ch;
- }
- char* last_nonzero = ch;
- while(ch >= buffer){
- switch(*ch){
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9':
- --ch;
- continue;
- case '.':
- // Truncate zeroes to save bytes in output, but keep one.
- *(last_nonzero+2) = '\0';
- return buffer;
- default:
- return buffer;
- }
- }
- return buffer;
-}
-
-
-std::string valueToString( bool value )
-{
- return value ? "true" : "false";
-}
-
-std::string valueToQuotedString( const char *value )
-{
- // Not sure how to handle unicode...
- if (strpbrk(value, "\"\\\b\f\n\r\t") == NULL && !containsControlCharacter( value ))
- return std::string("\"") + value + "\"";
- // We have to walk value and escape any special characters.
- // Appending to std::string is not efficient, but this should be rare.
- // (Note: forward slashes are *not* rare, but I am not escaping them.)
- unsigned maxsize = strlen(value)*2 + 3; // allescaped+quotes+NULL
- std::string result;
- result.reserve(maxsize); // to avoid lots of mallocs
- result += "\"";
- for (const char* c=value; *c != 0; ++c)
- {
- switch(*c)
- {
- case '\"':
- result += "\\\"";
- break;
- case '\\':
- result += "\\\\";
- break;
- case '\b':
- result += "\\b";
- break;
- case '\f':
- result += "\\f";
- break;
- case '\n':
- result += "\\n";
- break;
- case '\r':
- result += "\\r";
- break;
- case '\t':
- result += "\\t";
- break;
- //case '/':
- // Even though \/ is considered a legal escape in JSON, a bare
- // slash is also legal, so I see no reason to escape it.
- // (I hope I am not misunderstanding something.
- // blep notes: actually escaping \/ may be useful in javascript to avoid </
- // sequence.
- // Should add a flag to allow this compatibility mode and prevent this
- // sequence from occurring.
- default:
- if ( isControlCharacter( *c ) )
- {
- std::ostringstream oss;
- oss << "\\u" << std::hex << std::uppercase << std::setfill('0') << std::setw(4) << static_cast<int>(*c);
- result += oss.str();
- }
- else
- {
- result += *c;
- }
- break;
- }
- }
- result += "\"";
- return result;
-}
-
-// Class Writer
-// //////////////////////////////////////////////////////////////////
-Writer::~Writer()
-{
-}
-
-
-// Class FastWriter
-// //////////////////////////////////////////////////////////////////
-
-FastWriter::FastWriter()
- : yamlCompatiblityEnabled_( false )
-{
-}
-
-
-void
-FastWriter::enableYAMLCompatibility()
-{
- yamlCompatiblityEnabled_ = true;
-}
-
-
-std::string
-FastWriter::write( const Value &root )
-{
- document_ = "";
- writeValue( root );
- document_ += "\n";
- return document_;
-}
-
-
-void
-FastWriter::writeValue( const Value &value )
-{
- switch ( value.type() )
- {
- case nullValue:
- document_ += "null";
- break;
- case intValue:
- document_ += valueToString( value.asInt() );
- break;
- case uintValue:
- document_ += valueToString( value.asUInt() );
- break;
- case realValue:
- document_ += valueToString( value.asDouble() );
- break;
- case stringValue:
- document_ += valueToQuotedString( value.asCString() );
- break;
- case booleanValue:
- document_ += valueToString( value.asBool() );
- break;
- case arrayValue:
- {
- document_ += "[";
- int size = value.size();
- for ( int index =0; index < size; ++index )
- {
- if ( index > 0 )
- document_ += ",";
- writeValue( value[index] );
- }
- document_ += "]";
- }
- break;
- case objectValue:
- {
- Value::Members members( value.getMemberNames() );
- document_ += "{";
- for ( Value::Members::iterator it = members.begin();
- it != members.end();
- ++it )
- {
- const std::string &name = *it;
- if ( it != members.begin() )
- document_ += ",";
- document_ += valueToQuotedString( name.c_str() );
- document_ += yamlCompatiblityEnabled_ ? ": "
- : ":";
- writeValue( value[name] );
- }
- document_ += "}";
- }
- break;
- }
-}
-
-
-// Class StyledWriter
-// //////////////////////////////////////////////////////////////////
-
-StyledWriter::StyledWriter()
- : rightMargin_( 74 )
- , indentSize_( 3 )
-{
-}
-
-
-std::string
-StyledWriter::write( const Value &root )
-{
- document_ = "";
- addChildValues_ = false;
- indentString_ = "";
- writeCommentBeforeValue( root );
- writeValue( root );
- writeCommentAfterValueOnSameLine( root );
- document_ += "\n";
- return document_;
-}
-
-
-void
-StyledWriter::writeValue( const Value &value )
-{
- switch ( value.type() )
- {
- case nullValue:
- pushValue( "null" );
- break;
- case intValue:
- pushValue( valueToString( value.asInt() ) );
- break;
- case uintValue:
- pushValue( valueToString( value.asUInt() ) );
- break;
- case realValue:
- pushValue( valueToString( value.asDouble() ) );
- break;
- case stringValue:
- pushValue( valueToQuotedString( value.asCString() ) );
- break;
- case booleanValue:
- pushValue( valueToString( value.asBool() ) );
- break;
- case arrayValue:
- writeArrayValue( value);
- break;
- case objectValue:
- {
- Value::Members members( value.getMemberNames() );
- if ( members.empty() )
- pushValue( "{}" );
- else
- {
- writeWithIndent( "{" );
- indent();
- Value::Members::iterator it = members.begin();
- while ( true )
- {
- const std::string &name = *it;
- const Value &childValue = value[name];
- writeCommentBeforeValue( childValue );
- writeWithIndent( valueToQuotedString( name.c_str() ) );
- document_ += " : ";
- writeValue( childValue );
- if ( ++it == members.end() )
- {
- writeCommentAfterValueOnSameLine( childValue );
- break;
- }
- document_ += ",";
- writeCommentAfterValueOnSameLine( childValue );
- }
- unindent();
- writeWithIndent( "}" );
- }
- }
- break;
- }
-}
-
-
-void
-StyledWriter::writeArrayValue( const Value &value )
-{
- unsigned size = value.size();
- if ( size == 0 )
- pushValue( "[]" );
- else
- {
- bool isArrayMultiLine = isMultineArray( value );
- if ( isArrayMultiLine )
- {
- writeWithIndent( "[" );
- indent();
- bool hasChildValue = !childValues_.empty();
- unsigned index =0;
- while ( true )
- {
- const Value &childValue = value[index];
- writeCommentBeforeValue( childValue );
- if ( hasChildValue )
- writeWithIndent( childValues_[index] );
- else
- {
- writeIndent();
- writeValue( childValue );
- }
- if ( ++index == size )
- {
- writeCommentAfterValueOnSameLine( childValue );
- break;
- }
- document_ += ",";
- writeCommentAfterValueOnSameLine( childValue );
- }
- unindent();
- writeWithIndent( "]" );
- }
- else // output on a single line
- {
- assert( childValues_.size() == size );
- document_ += "[ ";
- for ( unsigned index =0; index < size; ++index )
- {
- if ( index > 0 )
- document_ += ", ";
- document_ += childValues_[index];
- }
- document_ += " ]";
- }
- }
-}
-
-
-bool
-StyledWriter::isMultineArray( const Value &value )
-{
- int size = value.size();
- bool isMultiLine = size*3 >= rightMargin_ ;
- childValues_.clear();
- for ( int index =0; index < size && !isMultiLine; ++index )
- {
- const Value &childValue = value[index];
- isMultiLine = isMultiLine ||
- ( (childValue.isArray() || childValue.isObject()) &&
- childValue.size() > 0 );
- }
- if ( !isMultiLine ) // check if line length > max line length
- {
- childValues_.reserve( size );
- addChildValues_ = true;
- int lineLength = 4 + (size-1)*2; // '[ ' + ', '*n + ' ]'
- for ( int index =0; index < size && !isMultiLine; ++index )
- {
- writeValue( value[index] );
- lineLength += int( childValues_[index].length() );
- isMultiLine = isMultiLine && hasCommentForValue( value[index] );
- }
- addChildValues_ = false;
- isMultiLine = isMultiLine || lineLength >= rightMargin_;
- }
- return isMultiLine;
-}
-
-
-void
-StyledWriter::pushValue( const std::string &value )
-{
- if ( addChildValues_ )
- childValues_.push_back( value );
- else
- document_ += value;
-}
-
-
-void
-StyledWriter::writeIndent()
-{
- if ( !document_.empty() )
- {
- char last = document_[document_.length()-1];
- if ( last == ' ' ) // already indented
- return;
- if ( last != '\n' ) // Comments may add new-line
- document_ += '\n';
- }
- document_ += indentString_;
-}
-
-
-void
-StyledWriter::writeWithIndent( const std::string &value )
-{
- writeIndent();
- document_ += value;
-}
-
-
-void
-StyledWriter::indent()
-{
- indentString_ += std::string( indentSize_, ' ' );
-}
-
-
-void
-StyledWriter::unindent()
-{
- assert( int(indentString_.size()) >= indentSize_ );
- indentString_.resize( indentString_.size() - indentSize_ );
-}
-
-
-void
-StyledWriter::writeCommentBeforeValue( const Value &root )
-{
- if ( !root.hasComment( commentBefore ) )
- return;
- document_ += normalizeEOL( root.getComment( commentBefore ) );
- document_ += "\n";
-}
-
-
-void
-StyledWriter::writeCommentAfterValueOnSameLine( const Value &root )
-{
- if ( root.hasComment( commentAfterOnSameLine ) )
- document_ += " " + normalizeEOL( root.getComment( commentAfterOnSameLine ) );
-
- if ( root.hasComment( commentAfter ) )
- {
- document_ += "\n";
- document_ += normalizeEOL( root.getComment( commentAfter ) );
- document_ += "\n";
- }
-}
-
-
-bool
-StyledWriter::hasCommentForValue( const Value &value )
-{
- return value.hasComment( commentBefore )
- || value.hasComment( commentAfterOnSameLine )
- || value.hasComment( commentAfter );
-}
-
-
-std::string
-StyledWriter::normalizeEOL( const std::string &text )
-{
- std::string normalized;
- normalized.reserve( text.length() );
- const char *begin = text.c_str();
- const char *end = begin + text.length();
- const char *current = begin;
- while ( current != end )
- {
- char c = *current++;
- if ( c == '\r' ) // mac or dos EOL
- {
- if ( *current == '\n' ) // convert dos EOL
- ++current;
- normalized += '\n';
- }
- else // handle unix EOL & other char
- normalized += c;
- }
- return normalized;
-}
-
-
-// Class StyledStreamWriter
-// //////////////////////////////////////////////////////////////////
-
-StyledStreamWriter::StyledStreamWriter( std::string indentation )
- : document_(NULL)
- , rightMargin_( 74 )
- , indentation_( indentation )
-{
-}
-
-
-void
-StyledStreamWriter::write( std::ostream &out, const Value &root )
-{
- document_ = &out;
- addChildValues_ = false;
- indentString_ = "";
- writeCommentBeforeValue( root );
- writeValue( root );
- writeCommentAfterValueOnSameLine( root );
- *document_ << "\n";
- document_ = NULL; // Forget the stream, for safety.
-}
-
-
-void
-StyledStreamWriter::writeValue( const Value &value )
-{
- switch ( value.type() )
- {
- case nullValue:
- pushValue( "null" );
- break;
- case intValue:
- pushValue( valueToString( value.asInt() ) );
- break;
- case uintValue:
- pushValue( valueToString( value.asUInt() ) );
- break;
- case realValue:
- pushValue( valueToString( value.asDouble() ) );
- break;
- case stringValue:
- pushValue( valueToQuotedString( value.asCString() ) );
- break;
- case booleanValue:
- pushValue( valueToString( value.asBool() ) );
- break;
- case arrayValue:
- writeArrayValue( value);
- break;
- case objectValue:
- {
- Value::Members members( value.getMemberNames() );
- if ( members.empty() )
- pushValue( "{}" );
- else
- {
- writeWithIndent( "{" );
- indent();
- Value::Members::iterator it = members.begin();
- while ( true )
- {
- const std::string &name = *it;
- const Value &childValue = value[name];
- writeCommentBeforeValue( childValue );
- writeWithIndent( valueToQuotedString( name.c_str() ) );
- *document_ << " : ";
- writeValue( childValue );
- if ( ++it == members.end() )
- {
- writeCommentAfterValueOnSameLine( childValue );
- break;
- }
- *document_ << ",";
- writeCommentAfterValueOnSameLine( childValue );
- }
- unindent();
- writeWithIndent( "}" );
- }
- }
- break;
- }
-}
-
-
-void
-StyledStreamWriter::writeArrayValue( const Value &value )
-{
- unsigned size = value.size();
- if ( size == 0 )
- pushValue( "[]" );
- else
- {
- bool isArrayMultiLine = isMultineArray( value );
- if ( isArrayMultiLine )
- {
- writeWithIndent( "[" );
- indent();
- bool hasChildValue = !childValues_.empty();
- unsigned index =0;
- while ( true )
- {
- const Value &childValue = value[index];
- writeCommentBeforeValue( childValue );
- if ( hasChildValue )
- writeWithIndent( childValues_[index] );
- else
- {
- writeIndent();
- writeValue( childValue );
- }
- if ( ++index == size )
- {
- writeCommentAfterValueOnSameLine( childValue );
- break;
- }
- *document_ << ",";
- writeCommentAfterValueOnSameLine( childValue );
- }
- unindent();
- writeWithIndent( "]" );
- }
- else // output on a single line
- {
- assert( childValues_.size() == size );
- *document_ << "[ ";
- for ( unsigned index =0; index < size; ++index )
- {
- if ( index > 0 )
- *document_ << ", ";
- *document_ << childValues_[index];
- }
- *document_ << " ]";
- }
- }
-}
-
-
-bool
-StyledStreamWriter::isMultineArray( const Value &value )
-{
- int size = value.size();
- bool isMultiLine = size*3 >= rightMargin_ ;
- childValues_.clear();
- for ( int index =0; index < size && !isMultiLine; ++index )
- {
- const Value &childValue = value[index];
- isMultiLine = isMultiLine ||
- ( (childValue.isArray() || childValue.isObject()) &&
- childValue.size() > 0 );
- }
- if ( !isMultiLine ) // check if line length > max line length
- {
- childValues_.reserve( size );
- addChildValues_ = true;
- int lineLength = 4 + (size-1)*2; // '[ ' + ', '*n + ' ]'
- for ( int index =0; index < size && !isMultiLine; ++index )
- {
- writeValue( value[index] );
- lineLength += int( childValues_[index].length() );
- isMultiLine = isMultiLine && hasCommentForValue( value[index] );
- }
- addChildValues_ = false;
- isMultiLine = isMultiLine || lineLength >= rightMargin_;
- }
- return isMultiLine;
-}
-
-
-void
-StyledStreamWriter::pushValue( const std::string &value )
-{
- if ( addChildValues_ )
- childValues_.push_back( value );
- else
- *document_ << value;
-}
-
-
-void
-StyledStreamWriter::writeIndent()
-{
- /*
- Some comments in this method would have been nice. ;-)
-
- if ( !document_.empty() )
- {
- char last = document_[document_.length()-1];
- if ( last == ' ' ) // already indented
- return;
- if ( last != '\n' ) // Comments may add new-line
- *document_ << '\n';
- }
- */
- *document_ << '\n' << indentString_;
-}
-
-
-void
-StyledStreamWriter::writeWithIndent( const std::string &value )
-{
- writeIndent();
- *document_ << value;
-}
-
-
-void
-StyledStreamWriter::indent()
-{
- indentString_ += indentation_;
-}
-
-
-void
-StyledStreamWriter::unindent()
-{
- assert( indentString_.size() >= indentation_.size() );
- indentString_.resize( indentString_.size() - indentation_.size() );
-}
-
-
-void
-StyledStreamWriter::writeCommentBeforeValue( const Value &root )
-{
- if ( !root.hasComment( commentBefore ) )
- return;
- *document_ << normalizeEOL( root.getComment( commentBefore ) );
- *document_ << "\n";
-}
-
-
-void
-StyledStreamWriter::writeCommentAfterValueOnSameLine( const Value &root )
-{
- if ( root.hasComment( commentAfterOnSameLine ) )
- *document_ << " " + normalizeEOL( root.getComment( commentAfterOnSameLine ) );
-
- if ( root.hasComment( commentAfter ) )
- {
- *document_ << "\n";
- *document_ << normalizeEOL( root.getComment( commentAfter ) );
- *document_ << "\n";
- }
-}
-
-
-bool
-StyledStreamWriter::hasCommentForValue( const Value &value )
-{
- return value.hasComment( commentBefore )
- || value.hasComment( commentAfterOnSameLine )
- || value.hasComment( commentAfter );
-}
-
-
-std::string
-StyledStreamWriter::normalizeEOL( const std::string &text )
-{
- std::string normalized;
- normalized.reserve( text.length() );
- const char *begin = text.c_str();
- const char *end = begin + text.length();
- const char *current = begin;
- while ( current != end )
- {
- char c = *current++;
- if ( c == '\r' ) // mac or dos EOL
- {
- if ( *current == '\n' ) // convert dos EOL
- ++current;
- normalized += '\n';
- }
- else // handle unix EOL & other char
- normalized += c;
- }
- return normalized;
-}
-
-
-std::ostream& operator<<( std::ostream &sout, const Value &root )
-{
- Json::StyledStreamWriter writer;
- writer.write(sout, root);
- return sout;
-}
-
-
-} // namespace Json
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/plugin.cpp
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/plugin.cpp b/test/plugins/cordova.echo/src/blackberry/public/plugin.cpp
deleted file mode 100644
index 6906275..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/plugin.cpp
+++ /dev/null
@@ -1,320 +0,0 @@
-#include "plugin.h"
-#include "tokenizer.h"
-
-#ifdef _WINDOWS
-#include <windows.h>
-BOOL APIENTRY DllMain( HANDLE hModule,
- DWORD ul_reason_for_call,
- LPVOID lpReserved )
-{
- return TRUE;
-}
-#else
-#include <errno.h>
-#include <string.h>
-
-extern int errno;
-#endif
-
-SendPluginEv SendPluginEvent;
-
-string g_GetSysErrMsg( void )
-{
- string strError = "Unknown";
- // Problem loading
-#ifdef _WINDOWS
- int nErrorCode = GetLastError();
- LPTSTR s;
- if ( ::FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
- NULL, nErrorCode, 0, ( LPTSTR ) &s, 0, NULL ) )
- {
- strError = s;
- }
- else
- {
- char szBuf[ 20 ];
- _snprintf_s( szBuf, _countof(szBuf), 19, "%d", nErrorCode );
- strError = szBuf;
- }
-#else
- char szError[80];
- if ( strerror_r( errno, szError, sizeof(szError) ) )
- {
- strError = "no description found";
- }
- else
- {
- strError = szError;
- }
-#endif
- return strError;
-}
-
-void g_sleep( unsigned int mseconds )
-{
-#ifdef _WINDOWS
- Sleep( mseconds );
-#else
- usleep( mseconds * 1000 );
-#endif
-}
-
-string& g_trim( string& str )
-{
- // Whitespace characters
- char whspc[] = " \t\r\n\v\f";
-
- // Whack off first part
- size_t pos = str.find_first_not_of( whspc );
-
- if ( pos != string::npos )
- str.replace( 0, pos, "" );
-
- // Whack off trailing stuff
- pos = str.find_last_not_of( whspc );
-
- if ( pos != string::npos )
- str.replace( pos + 1, str.length() - pos, "" );
-
- return str;
-}
-
-void g_tokenize( const string& str, const string& delimiters, vector<string>& tokens )
-{
- tokenize( str, tokens, delimiters );
-}
-
-char* SetEventFunc( SendPluginEv funcPtr )
-{
- static char * szObjList = onGetObjList();
- SendPluginEvent = funcPtr;
- return szObjList;
-}
-
-
-const int nMAXSIZE = 512;
-char* g_pszRetVal = NULL;
-
-//-----------------------------------------------------------
-// Map from an object Id to an object instance
-//-----------------------------------------------------------
-typedef std::map<string, JSExt*> StringToJExt_T;
-
-//-----------------------------------------------------------
-// Map from a browser context to an id mapping
-//-----------------------------------------------------------
-typedef std::map<void*, StringToJExt_T*> VoidToMap_T;
-
-VoidToMap_T g_context2Map;
-
-class GlobalSharedModule
-{
-
-public:
- GlobalSharedModule( void )
- {
- g_pszRetVal = new char[ nMAXSIZE ];
- }
-
- ~GlobalSharedModule()
- {
- delete [] g_pszRetVal;
-
- VoidToMap_T::iterator posMaps;
-
- for ( posMaps = g_context2Map.begin(); posMaps != g_context2Map.end(); ++posMaps )
- {
- StringToJExt_T& id2Obj = *posMaps->second;
- StringToJExt_T::iterator posMap;
-
- for ( posMap = id2Obj.begin(); posMap != id2Obj.end(); ++posMap )
- {
- JSExt* pJSExt = posMap->second;
-
- if ( pJSExt->CanDelete() )
- {
- delete pJSExt;
- }
- }
-
- id2Obj.erase( id2Obj.begin(), id2Obj.end() );
- }
-
- g_context2Map.erase( g_context2Map.begin(), g_context2Map.end() );
- }
-};
-
-GlobalSharedModule g_sharedModule;
-
-char* g_str2global( const string& strRetVal )
-{
- int nLen = strRetVal.size();
-
- if ( nLen >= nMAXSIZE )
- {
- delete [] g_pszRetVal;
- g_pszRetVal = new char[ nLen + 1 ];
- }
-
- else
- {
- // To minimaize the number of memory reallocations, the assumption
- // is that in most times this will be the case
- delete [] g_pszRetVal;
- g_pszRetVal = new char[ nMAXSIZE ];
- }
-
- strcpy( g_pszRetVal, strRetVal.c_str() );
- return g_pszRetVal;
-}
-
-bool g_unregisterObject( const string& strObjId, void* pContext )
-{
- // Called by the plugin extension implementation
- // if the extension handles the deletion of its object
-
- StringToJExt_T * pID2Obj = NULL;
-
- VoidToMap_T::iterator iter = g_context2Map.find( pContext );
-
- if ( iter != g_context2Map.end() )
- {
- pID2Obj = iter->second;
- }
- else
- {
- return false;
- }
-
- StringToJExt_T& mapID2Obj = *pID2Obj;
-
- StringToJExt_T::iterator r = mapID2Obj.find( strObjId );
-
- if ( r == mapID2Obj.end() )
- {
- return false;
- }
-
- mapID2Obj.erase( strObjId );
- return true;
-}
-
-char* InvokeFunction( const char* szCommand, void* pContext )
-{
- StringToJExt_T * pID2Obj = NULL;
-
- VoidToMap_T::iterator iter = g_context2Map.find( pContext );
-
- if ( iter != g_context2Map.end() )
- {
- pID2Obj = iter->second;
- }
- else
- {
- pID2Obj = new StringToJExt_T;
- g_context2Map[ pContext ] = pID2Obj;
- }
-
- StringToJExt_T& mapID2Obj = *pID2Obj;
-
- string strFullCommand = szCommand;
- vector<string> arParams;
- g_tokenize( strFullCommand, " ", arParams );
- string strCommand = arParams[ 0 ];
- string strRetVal = szERROR;
-
- if ( strCommand == szCREATE )
- {
- string strClassName = arParams[ 1 ];
- string strObjId = arParams[ 2 ];
-
- StringToJExt_T::iterator r = mapID2Obj.find( strObjId );
-
- if ( r != mapID2Obj.end() )
- {
- strRetVal += strObjId;
- strRetVal += " :Object already exists.";
- return g_str2global( strRetVal );
- }
-
- JSExt* pJSExt = onCreateObject( strClassName, strObjId );
-
- if ( pJSExt == NULL )
- {
- strRetVal += strObjId;
- strRetVal += " :Unknown object type ";
- strRetVal += strClassName;
- return g_str2global( strRetVal );
- }
-
- pJSExt->m_pContext = pContext;
- mapID2Obj[ strObjId ] = pJSExt;
-
- strRetVal = szOK;
- strRetVal += strObjId;
- return g_str2global( strRetVal );
- }
- else
- if ( strCommand == szINVOKE )
- {
- string strObjId = arParams[ 1 ];
- string strMethod = arParams[ 2 ];
-
- StringToJExt_T::iterator r = mapID2Obj.find( strObjId );
-
- if ( r == mapID2Obj.end() )
- {
- strRetVal += strObjId;
- strRetVal += " :No object found for id.";
- return g_str2global( strRetVal );
- }
-
- JSExt* pJSExt = r->second;
-
- size_t nLoc = strFullCommand.find( strObjId );
-
- if ( nLoc == string::npos )
- {
- strRetVal += strObjId;
- strRetVal += " :Internal InvokeMethod error.";
- return g_str2global( strRetVal );
- }
-
- if ( strMethod == szDISPOSE )
- {
- StringToJExt_T::iterator r = mapID2Obj.find( strObjId );
-
- if ( r == mapID2Obj.end() )
- {
- strRetVal = szERROR;
- strRetVal += strObjId;
- return g_str2global( strRetVal );
- }
-
- JSExt * pJSExt = mapID2Obj[ strObjId ];
-
- if ( pJSExt->CanDelete() )
- {
- delete pJSExt;
- }
-
- mapID2Obj.erase( strObjId );
- strRetVal = szOK;
- strRetVal += strObjId;
- return g_str2global( strRetVal );
- }
-
- size_t nSuffixLoc = nLoc + strObjId.size();
- string strInvoke = strFullCommand.substr( nSuffixLoc );
- strInvoke = g_trim( strInvoke );
- strRetVal = pJSExt->InvokeMethod( strInvoke );
- return g_str2global( strRetVal );
- }
-
- strRetVal += " :Unknown command ";
- strRetVal += strCommand;
- return g_str2global( strRetVal );
-}
-
-//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/plugin.h
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/plugin.h b/test/plugins/cordova.echo/src/blackberry/public/plugin.h
deleted file mode 100644
index 4ef7116..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/plugin.h
+++ /dev/null
@@ -1,70 +0,0 @@
-#ifndef _PLUGIN_H
-#define _PLUGIN_H
-
-#include <map>
-#include <string>
-#include <vector>
-#include <unistd.h>
-//#include "tokenizer.h"
-
-using namespace std;
-
-//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-//%% Functions exported by this DLL
-//%% Should always be only SetEventFunc and InvokeFunction
-//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-// g++ requires extern "C" otherwise the names of SetEventFunc and InvokeFunction
-// are mangled C++ style. MS Visual Studio doesn't seem to care though.
-extern "C"
-{
- typedef void (*SendPluginEv)( const char* szEvent, void* pContext );
- char* SetEventFunc(SendPluginEv funcPtr);
- char* InvokeFunction( const char* szCommand, void* pContext );
-}
-
-// JNEXT Framework function of the form:
-// typedef void (*SendPluginEv)( const char* szEvent );
-// used to notify JavaScript of an asynchronous event
-extern SendPluginEv SendPluginEvent;
-
-/////////////////////////////////////////////////////////////////////////
-// Constants and methods common to all JNEXT extensions types
-/////////////////////////////////////////////////////////////////////////
-#define szERROR "Error "
-#define szOK "Ok "
-
-#define szDISPOSE "Dispose"
-#define szINVOKE "InvokeMethod"
-#define szCREATE "CreateObj"
-
-/////////////////////////////////////////////////////////////////////////
-// Utility functions
-/////////////////////////////////////////////////////////////////////////
-string& g_trim( string& str );
-void g_tokenize(const string& str,const string& delimiters, vector<string>& tokens);
-char* g_str2static( const string& strRetVal );
-void g_sleep( unsigned int mseconds );
-bool g_unregisterObject( const string& strObjId, void* pContext );
-
-
-/////////////////////////////////////////////////////////////////////////
-// Abstract extension object
-/////////////////////////////////////////////////////////////////////////
-class JSExt
-{
-public:
- virtual ~JSExt() {};
- virtual string InvokeMethod( const string& strCommand ) = 0;
- virtual bool CanDelete( void ) = 0;
- virtual void TryDelete( void ) {}
-public:
- void* m_pContext;
-};
-
-/////////////////////////////////////////////////////////////////////////
-// Callback functions to be implemented by the plugin implementation
-/////////////////////////////////////////////////////////////////////////
-extern char* onGetObjList( void );
-extern JSExt* onCreateObject( const string& strClassName, const string& strObjId );
-
-#endif
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/tokenizer.cpp
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/tokenizer.cpp b/test/plugins/cordova.echo/src/blackberry/public/tokenizer.cpp
deleted file mode 100644
index 4a39573..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/tokenizer.cpp
+++ /dev/null
@@ -1,222 +0,0 @@
-/************************************************************************
-The zlib/libpng License
-
-Copyright (c) 2006 Joerg Wiedenmann
-
-This software is provided 'as-is', without any express or implied warranty.
-In no event will the authors be held liable for any damages arising from
-the use of this software.
-
-Permission is granted to anyone to use this software for any purpose,
-including commercial applications, and to alter it and redistribute it
-freely, subject to the following restrictions:
-
-1. The origin of this software must not be misrepresented;
-you must not claim that you wrote the original software.
-If you use this software in a product, an acknowledgment
-in the product documentation would be appreciated but is
-not required.
-
-2. Altered source versions must be plainly marked as such,
-and must not be misrepresented as being the original software.
-
-3. This notice may not be removed or altered from any source distribution.
-
-***********************************************************************/
-
-/********************************************************************
- created: 2006-01-28
- filename: tokenizer.cpp
- author: J�rg Wiedenmann
-
- purpose: A tokenizer function which provides a very
- customizable way of breaking up strings.
-
- history: 2006-01-28, Original version
- 2006-03-04, Fixed a small parsing bug, thanks Elias.
-*********************************************************************/
-
-#include "tokenizer.h"
-
-using namespace std;
-
-void tokenize ( const string& str, vector<string>& result,
- const string& delimiters, const string& delimiters_preserve,
- const string& quote, const string& esc )
-{
- // clear the vector
- if ( false == result.empty() )
- {
- result.clear();
- }
-
- string::size_type pos = 0; // the current position (char) in the string
- char ch = 0; // buffer for the current character
- char delimiter = 0; // the buffer for the delimiter char which
- // will be added to the tokens if the delimiter
- // is preserved
- char current_quote = 0; // the char of the current open quote
- bool quoted = false; // indicator if there is an open quote
- string token; // string buffer for the token
- bool token_complete = false; // indicates if the current token is
- // read to be added to the result vector
- string::size_type len = str.length(); // length of the input-string
-
- // for every char in the input-string
- while ( len > pos )
- {
- // get the character of the string and reset the delimiter buffer
- ch = str.at(pos);
- delimiter = 0;
-
- // assume ch isn't a delimiter
- bool add_char = true;
-
- // check ...
-
- // ... if the delimiter is an escaped character
- bool escaped = false; // indicates if the next char is protected
- if ( false == esc.empty() ) // check if esc-chars are provided
- {
- if ( string::npos != esc.find_first_of(ch) )
- {
- // get the escaped char
- ++pos;
- if ( pos < len ) // if there are more chars left
- {
- // get the next one
- ch = str.at(pos);
-
- // add the escaped character to the token
- add_char = true;
- }
- else // cannot get any more characters
- {
- // don't add the esc-char
- add_char = false;
- }
-
- // ignore the remaining delimiter checks
- escaped = true;
- }
- }
-
- // ... if the delimiter is a quote
- if ( false == quote.empty() && false == escaped )
- {
- // if quote chars are provided and the char isn't protected
- if ( string::npos != quote.find_first_of(ch) )
- {
- // if not quoted, set state to open quote and set
- // the quote character
- if ( false == quoted )
- {
- quoted = true;
- current_quote = ch;
-
- // don't add the quote-char to the token
- add_char = false;
- }
- else // if quote is open already
- {
- // check if it is the matching character to close it
- if ( current_quote == ch )
- {
- // close quote and reset the quote character
- quoted = false;
- current_quote = 0;
-
- // don't add the quote-char to the token
- add_char = false;
- }
- } // else
- }
- }
-
- // ... if the delimiter isn't preserved
- if ( false == delimiters.empty() && false == escaped &&
- false == quoted )
- {
- // if a delimiter is provided and the char isn't protected by
- // quote or escape char
- if ( string::npos != delimiters.find_first_of(ch) )
- {
- // if ch is a delimiter and the token string isn't empty
- // the token is complete
- if ( false == token.empty() ) // BUGFIX: 2006-03-04
- {
- token_complete = true;
- }
-
- // don't add the delimiter to the token
- add_char = false;
- }
- }
-
- // ... if the delimiter is preserved - add it as a token
- bool add_delimiter = false;
- if ( false == delimiters_preserve.empty() && false == escaped &&
- false == quoted )
- {
- // if a delimiter which will be preserved is provided and the
- // char isn't protected by quote or escape char
- if ( string::npos != delimiters_preserve.find_first_of(ch) )
- {
- // if ch is a delimiter and the token string isn't empty
- // the token is complete
- if ( false == token.empty() ) // BUGFIX: 2006-03-04
- {
- token_complete = true;
- }
-
- // don't add the delimiter to the token
- add_char = false;
-
- // add the delimiter
- delimiter = ch;
- add_delimiter = true;
- }
- }
-
-
- // add the character to the token
- if ( true == add_char )
- {
- // add the current char
- token.push_back( ch );
- }
-
- // add the token if it is complete
- if ( true == token_complete && false == token.empty() )
- {
- // add the token string
- result.push_back( token );
-
- // clear the contents
- token.clear();
-
- // build the next token
- token_complete = false;
- }
-
- // add the delimiter
- if ( true == add_delimiter )
- {
- // the next token is the delimiter
- string delim_token;
- delim_token.push_back( delimiter );
- result.push_back( delim_token );
-
- // REMOVED: 2006-03-04, Bugfix
- }
-
- // repeat for the next character
- ++pos;
- } // while
-
- // add the final token
- if ( false == token.empty() )
- {
- result.push_back( token );
- }
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/tokenizer.h
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/tokenizer.h b/test/plugins/cordova.echo/src/blackberry/public/tokenizer.h
deleted file mode 100644
index 75f567c..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/tokenizer.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/************************************************************************
-The zlib/libpng License
-
-Copyright (c) 2006 Joerg Wiedenmann
-
-This software is provided 'as-is', without any express or implied warranty.
-In no event will the authors be held liable for any damages arising from
-the use of this software.
-
-Permission is granted to anyone to use this software for any purpose,
-including commercial applications, and to alter it and redistribute it
-freely, subject to the following restrictions:
-
-1. The origin of this software must not be misrepresented;
- you must not claim that you wrote the original software.
- If you use this software in a product, an acknowledgment
- in the product documentation would be appreciated but is
- not required.
-
-2. Altered source versions must be plainly marked as such,
- and must not be misrepresented as being the original software.
-
-3. This notice may not be removed or altered from any source distribution.
-
-***********************************************************************/
-
-/********************************************************************
- created: 2006-01-28
- filename: tokenizer.cpp
- author: J�rg Wiedenmann
-
- purpose: A tokenizer function which provides a very
- customizable way of breaking up strings.
-*********************************************************************/
-
-#include <vector>
-#include <string>
-using namespace std;
-
-// Function to break up a string into tokens
-//
-// Parameters:
-//-----------
-// str = the input string that will be tokenized
-// result = the tokens for str
-// delimiters = the delimiter characters
-// delimiters preserve = same as above, but the delimiter characters
-// will be put into the result as a token
-// quote = characters to protect the enclosed characters
-// esc = characters to protect a single character
-//
-
-void tokenize ( const string& str, vector<string>& result,
- const string& delimiters, const string& delimiters_preserve = "",
- const string& quote = "\"", const string& esc = "\\" );
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/simulator/echoJnext.so
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/simulator/echoJnext.so b/test/plugins/cordova.echo/src/blackberry/simulator/echoJnext.so
deleted file mode 100644
index 2b3c5f5..0000000
Binary files a/test/plugins/cordova.echo/src/blackberry/simulator/echoJnext.so and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/src/echo.cpp
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/src/echo.cpp b/test/plugins/cordova.echo/src/blackberry/src/echo.cpp
deleted file mode 100644
index 0d5cc2f..0000000
--- a/test/plugins/cordova.echo/src/blackberry/src/echo.cpp
+++ /dev/null
@@ -1,121 +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.
- *
-*/
-
-
-#include <../public/json/reader.h>
-#include <string>
-#include <sstream>
-#include <sys/stat.h>
-#include <sys/types.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include "echo.hpp"
-
-using namespace std;
-
-/**
- * Default constructor.
- */
-Echo::Echo(const std::string& id) : m_id(id) {
-}
-
-/**
- * Memory destructor.
- */
-Echo::~Echo() {
-}
-
-/**
- * This method returns the list of objects implemented by this native
- * extension.
- */
-char* onGetObjList() {
- static char name[] = "Echo";
- return name;
-}
-
-/**
- * This method is used by JNext to instantiate the Memory object when
- * an object is created on the JavaScript server side.
- */
-JSExt* onCreateObject(const string& className, const string& id) {
- if (className == "Echo") {
- return new Echo(id);
- }
-
- return NULL;
-}
-
-/**
- * Method used by JNext to determine if the object can be deleted.
- */
-bool Echo::CanDelete() {
- return true;
-}
-
-/**
- * It will be called from JNext JavaScript side with passed string.
- * This method implements the interface for the JavaScript to native binding
- * for invoking native code. This method is triggered when JNext.invoke is
- * called on the JavaScript side with this native objects id.
- */
-string Echo::InvokeMethod(const string& command) {
- int index = command.find_first_of(" ");
- std::string method = command.substr(0, index);
-
- // read in arguments
- Json::Value obj;
- if (static_cast<int>(command.length()) > index && index != -1) {
- std::string jsonObject = command.substr(index + 1, command.length());
- Json::Reader reader;
-
- bool parse = reader.parse(jsonObject, obj);
- if (!parse) {
- fprintf(stderr, "%s", "error parsing\n");
- return "Cannot parse JSON object";
- }
- }
-
- // Determine which function should be executed
- if (method == "doEcho") {
- std::string message = obj["message"].asString();
- if(message.length() > 0) {
- return doEcho(message);
- }else{
- return doEcho("Nothing to echo.");
- }
- }else{
- return doEcho("Unsupported Method");
- }
-}
-
-/**
- * Method that sends off Event message
- */
-string Echo::doEcho(const std::string& message) {
- std::string eventString = m_id;
- eventString.append(" ");
- eventString.append("cordova.echo.callback");
- eventString.append(" ");
- eventString.append(message);
- SendPluginEvent(eventString.c_str(), m_pContext);
- return eventString;
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/src/echo.hpp
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/src/echo.hpp b/test/plugins/cordova.echo/src/blackberry/src/echo.hpp
deleted file mode 100644
index 408be69..0000000
--- a/test/plugins/cordova.echo/src/blackberry/src/echo.hpp
+++ /dev/null
@@ -1,45 +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.
- *
-*/
-
-#ifndef ECHO_HPP_
-#define ECHO_HPP_
-
-#include <string>
-#include <pthread.h>
-#include "../public/plugin.h"
-
-class Echo: public JSExt {
-
-public:
- explicit Echo(const std::string& id);
- virtual ~Echo();
-
-// Interfaces of JSExt
- virtual bool CanDelete();
- virtual std::string InvokeMethod(const std::string& command);
-
-private:
- std::string doEcho(const std::string& message);
-
- std::string m_id;
-};
-
-#endif /* ECHO_HPP_ */
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/device/echoJnext.so
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/device/echoJnext.so b/test/plugins/cordova.echo/src/device/echoJnext.so
deleted file mode 100755
index 169714a..0000000
Binary files a/test/plugins/cordova.echo/src/device/echoJnext.so and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/simulator/echoJnext.so
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/simulator/echoJnext.so b/test/plugins/cordova.echo/src/simulator/echoJnext.so
deleted file mode 100644
index 2b3c5f5..0000000
Binary files a/test/plugins/cordova.echo/src/simulator/echoJnext.so and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/multiple-children/plugin.xml
----------------------------------------------------------------------
diff --git a/test/plugins/multiple-children/plugin.xml b/test/plugins/multiple-children/plugin.xml
deleted file mode 100644
index 799abe2..0000000
--- a/test/plugins/multiple-children/plugin.xml
+++ /dev/null
@@ -1,109 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Copyright 2013 Anis Kadri
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-
-<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
- xmlns="http://www.phonegap.com/ns/plugins/1.0"
- xmlns:android="http://schemas.android.com/apk/res/android"
- id="com.pushwoosh.plugins.pushwoosh"
- version="3.0.0">
-
- <name>Pushwoosh</name>
-
- <!-- android -->
- <platform name="android">
- <config-file target="AndroidManifest.xml" parent="/manifest">
- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
-
- <!--library-->
- <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
-
- <!-- GCM connects to Google Services. -->
- <uses-permission android:name="android.permission.INTERNET"/>
-
- <!-- GCM requires a Google account. -->
- <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
-
- <!-- Keeps the processor from sleeping when a message is received. -->
- <uses-permission android:name="android.permission.WAKE_LOCK"/>
-
- <!--
- Creates a custom permission so only this app can receive its messages.
-
- NOTE: the permission *must* be called PACKAGE.permission.C2D_MESSAGE,
- where PACKAGE is the application's package name.
- -->
- <permission
- android:name="$PACKAGE_NAME.permission.C2D_MESSAGE"
- android:protectionLevel="signature"/>
- <uses-permission
- android:name="$PACKAGE_NAME.permission.C2D_MESSAGE"/>
-
- <!-- This app has permission to register and receive data message. -->
- <uses-permission
- android:name="com.google.android.c2dm.permission.RECEIVE"/>
- </config-file>
-
- <config-file target="AndroidManifest.xml" parent="/manifest/application/activity">
- <intent-filter>
- <action android:name="$PACKAGE_NAME.MESSAGE"/>
- <category android:name="android.intent.category.DEFAULT"/>
- </intent-filter>
- </config-file>
-
- <config-file target="AndroidManifest.xml" parent="/manifest/application">
- <activity android:name="com.arellomobile.android.push.PushWebview"/>
-
- <activity android:name="com.arellomobile.android.push.MessageActivity"/>
-
- <activity android:name="com.arellomobile.android.push.PushHandlerActivity"/>
-
- <!--
- BroadcastReceiver that will receive intents from GCM
- services and handle them to the custom IntentService.
-
- The com.google.android.c2dm.permission.SEND permission is necessary
- so only GCM services can send data messages for the app.
- -->
- <receiver
- android:name="com.google.android.gcm.GCMBroadcastReceiver"
- android:permission="com.google.android.c2dm.permission.SEND">
- <intent-filter>
- <!-- Receives the actual messages. -->
- <action android:name="com.google.android.c2dm.intent.RECEIVE"/>
- <!-- Receives the registration id. -->
- <action android:name="com.google.android.c2dm.intent.REGISTRATION"/>
- <category android:name="$PACKAGE_NAME"/>
- </intent-filter>
- </receiver>
-
- <!--
- Application-specific subclass of PushGCMIntentService that will
- handle received messages.
- -->
- <service android:name="com.arellomobile.android.push.PushGCMIntentService"/>
-
- </config-file>
-
- <config-file target="res/xml/plugins.xml" parent="/plugins">
- <plugin name="PushNotification"
- value="com.pushwoosh.test.plugin.pushnotifications.PushNotifications" onload="true"/>
- </config-file>
- </platform>
-</plugin>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugman.js
----------------------------------------------------------------------
diff --git a/test/plugman.js b/test/plugman.js
deleted file mode 100644
index d88f743..0000000
--- a/test/plugman.js
+++ /dev/null
@@ -1,172 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-var fs = require('fs')
- , path = require('path')
- , osenv = require('osenv')
- , shell = require('shelljs')
- , util = require('util')
- , plugin_loader = require('../util/plugin_loader')
- , plugman_exe = path.join(__dirname, '..', 'main.js')
- , test_dir = path.join(osenv.tmpdir(), 'test_plugman');
-
-exports.setUp = function(callback) {
- shell.mkdir('-p', test_dir);
- callback();
-}
-
-exports.tearDown = function(callback) {
- // remove the temp files (projects and plugins)
- shell.rm('-rf', test_dir);
- callback();
-}
-
-exports['should list all plugins'] = function (test) {
-
- var command = util.format('%s %s --list', shell.which('node'), plugman_exe),
- options = {silent: true},
- ret = shell.exec(command, options);
- test.equal(0, ret.code);
- test.ok(ret.output);
- test.done();
-
-}
-
-exports['should install and uninstall ios plugin'] = function (test) {
- var test_project_dir = path.join(test_dir, 'projects', 'ios-config-xml'),
- test_plugins_dir = path.join(test_dir, 'plugins'),
- srcDir = path.resolve(test_project_dir, 'SampleApp/Plugins'),
- srcPluginDir = path.join(__dirname, 'plugins', 'WebNotifications'),
- options = {silent: true},
- command;
-
- // copy the ios test project to a temp directory
- shell.cp('-r', path.join(__dirname, 'projects'), test_dir);
-
- // create the plugins dir to the temp directory
- shell.mkdir('-p', test_plugins_dir);
-
- command = util.format('%s %s --fetch --plugin %s --plugins_dir %s', shell.which('node'),
- plugman_exe,
- srcPluginDir,
- test_plugins_dir
- );
-
- var ret = shell.exec(command, options);
- test.equal(0, ret.code);
-
- command = util.format('%s %s --platform ios --project %s --plugin %s --plugins_dir %s', shell.which('node'),
- plugman_exe,
- test_project_dir,
- 'WebNotifications',
- test_plugins_dir
- );
-
- ret = shell.exec(command, options);
- test.equal(0, ret.code);
- test.equal("plugin installed\n", ret.output);
-
-
- test.ok(fs.existsSync(srcDir + '/WebNotifications.m'))
- test.ok(fs.existsSync(srcDir + '/WebNotifications.h'));
-
- command = util.format('%s %s --uninstall --platform ios --project %s --plugin %s --plugins_dir %s', shell.which('node'),
- plugman_exe,
- test_project_dir,
- 'WebNotifications',
- test_plugins_dir
- );
-
- var ret = shell.exec(command, options);
- test.equal(0, ret.code);
- test.equal("plugin uninstalled\n", ret.output);
-
- test.ok(!fs.existsSync(srcDir + '/WebNotifications.m'))
- test.ok(!fs.existsSync(srcDir + '/WebNotifications.h'));
-
- test.done();
-}
-
-exports['should revert ios install on failures'] = function (test) {
- var test_project_dir = path.join(test_dir, 'ios-config-xml'),
- test_plugin_dir = path.join(test_dir, 'FaultyPlugin'),
- srcDir = path.resolve(test_project_dir, 'SampleApp/Plugins'),
- options = {silent: true},
- command;
-
- // copy the ios test project to a temp directory
- shell.cp('-r', path.join(__dirname, 'projects', 'ios-config-xml'), test_dir);
-
- var plugins_dir = path.join(__dirname, 'plugins');
-
- command = util.format('%s %s --platform ios --project "%s" --plugin "%s" --plugins_dir "%s"', shell.which('node'), plugman_exe, test_project_dir, 'FaultyPlugin', plugins_dir);
-
- var ret = shell.exec(command, options);
- test.equal(0, ret.code);
- //console.log(ret.output);
- test.ok(!/plugin installed/.exec(ret.output));
-
- test.ok(!fs.existsSync(path.join(srcDir, 'FaultyPlugin.m')));
- test.ok(!fs.existsSync(path.join(srcDir, 'FaultyPlugin.h')));
-
- test.done();
-}
-
-exports['should install and uninstall android plugin'] = function (test) {
- var test_project_dir = path.join(test_dir, 'android_two'),
- options = {silent: true},
- command;
-
- // copy the ios test project to a temp directory
- shell.cp('-r', path.join(__dirname, 'projects', 'android_two'), test_dir);
-
- command = util.format('%s %s --platform android --project "%s" --plugin "%s" --plugins_dir "%s"', shell.which('node'), plugman_exe, test_project_dir, 'ChildBrowser', path.join(__dirname, 'plugins'));
-
- var ret = shell.exec(command, options);
- test.equal(0, ret.code);
- test.ok(ret.output.match(/plugin installed/));
-
- command = util.format('%s %s --uninstall --platform android --project "%s" --plugin "%s" --plugins_dir "%s"', shell.which('node'), plugman_exe, test_project_dir, 'ChildBrowser', path.join(__dirname, 'plugins'));
-
- var ret = shell.exec(command, options);
- test.equal(0, ret.code);
- test.ok(ret.output.match(/plugin uninstalled/));
-
- test.done();
-}
-
-
-exports['should display additional install info'] = function (test) {
- var test_project_dir = path.join(test_dir, 'android_two'),
- options = {silent: true},
- command;
-
- // copy the ios test project to a temp directory
- shell.cp('-r', path.join(__dirname, 'projects', 'android_two'), test_dir);
-
- command = util.format('%s %s --platform android --project "%s" --plugin "%s" --plugins_dir "%s"', shell.which('node'), plugman_exe, test_project_dir, 'ChildBrowser', path.join(__dirname, 'plugins'));
-
- var ret = shell.exec(command, options);
- test.equal(0, ret.code);
- test.ok(ret.output.match(/Please make sure you read this because it is very important to complete the installation of your plugin/));
- test.ok(ret.output.match(/plugin installed/));
- test.done();
-}
-
-// TODO: this module is seriously lacking tests
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/.gitkeep
----------------------------------------------------------------------
diff --git a/test/projects/.gitkeep b/test/projects/.gitkeep
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/FriendSting-Info.plist
----------------------------------------------------------------------
diff --git a/test/projects/FriendSting-Info.plist b/test/projects/FriendSting-Info.plist
deleted file mode 100644
index 6010b61..0000000
--- a/test/projects/FriendSting-Info.plist
+++ /dev/null
@@ -1,78 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<!--
-#
-# 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.
-#
--->
-<plist version="1.0">
-<dict>
- <key>CFBundleIcons</key>
- <dict>
- <key>CFBundlePrimaryIcon</key>
- <dict>
- <key>CFBundleIconFiles</key>
- <array>
- <string>icon.png</string>
- <string>icon@2x.png</string>
- <string>icon-72.png</string>
- <string>icon-72@2x.png</string>
- </array>
- <key>UIPrerenderedIcon</key>
- <false/>
- </dict>
- </dict>
- <key>UISupportedInterfaceOrientations~ipad</key>
- <array>
- <string>UIInterfaceOrientationPortrait</string>
- <string>UIInterfaceOrientationLandscapeLeft</string>
- <string>UIInterfaceOrientationPortraitUpsideDown</string>
- <string>UIInterfaceOrientationLandscapeRight</string>
- </array>
- <key>UISupportedInterfaceOrientations</key>
- <array>
- <string>UIInterfaceOrientationPortrait</string>
- </array>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleDisplayName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundleExecutable</key>
- <string>${EXECUTABLE_NAME}</string>
- <key>CFBundleIconFile</key>
- <string>icon.png</string>
- <key>CFBundleIdentifier</key>
- <string>com.example.friendstring</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>1.0</string>
- <key>LSRequiresIPhoneOS</key>
- <true/>
- <key>NSMainNibFile</key>
- <string></string>
- <key>NSMainNibFile~ipad</key>
- <string></string>
-</dict>
-</plist>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/android_one/AndroidManifest.xml
----------------------------------------------------------------------
diff --git a/test/projects/android_one/AndroidManifest.xml b/test/projects/android_one/AndroidManifest.xml
deleted file mode 100644
index 0979b02..0000000
--- a/test/projects/android_one/AndroidManifest.xml
+++ /dev/null
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-
- Copyright 2013 Anis Kadri
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-
-<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:windowSoftInputMode="adjustPan"
- package="com.alunny.childapp" android:versionName="1.1" android:versionCode="5">
- <supports-screens
- android:largeScreens="true"
- android:normalScreens="true"
- android:smallScreens="true"
- android:xlargeScreens="true"
- android:resizeable="true"
- android:anyDensity="true"
- />
-
- <uses-permission android:name="android.permission.CAMERA" />
- <uses-permission android:name="android.permission.VIBRATE" />
- <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
- <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
- <uses-permission android:name="android.permission.INTERNET" />
- <uses-permission android:name="android.permission.RECEIVE_SMS" />
- <uses-permission android:name="android.permission.RECORD_AUDIO" />
- <uses-permission android:name="android.permission.RECORD_VIDEO"/>
- <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
- <uses-permission android:name="android.permission.READ_CONTACTS" />
- <uses-permission android:name="android.permission.WRITE_CONTACTS" />
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
- <uses-permission android:name="android.permission.GET_ACCOUNTS" />
- <uses-permission android:name="android.permission.BROADCAST_STICKY" />
-
- <uses-feature android:name="android.hardware.camera" />
- <uses-feature android:name="android.hardware.camera.autofocus" />
-
- <appid value="$APP_ID" />
-
- <application android:icon="@drawable/icon" android:label="@string/app_name"
- android:debuggable="true">
- <activity android:name="ChildApp" android:label="@string/app_name"
- android:configChanges="orientation|keyboardHidden">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- <activity android:name="com.phonegap.DroidGap" android:label="@string/app_name"
- android:configChanges="orientation|keyboardHidden">
- <intent-filter>
- </intent-filter>
- </activity>
- </application>
-
- <uses-sdk android:minSdkVersion="5" />
-</manifest>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/android_one/assets/www/.gitkeep
----------------------------------------------------------------------
diff --git a/test/projects/android_one/assets/www/.gitkeep b/test/projects/android_one/assets/www/.gitkeep
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/android_one/res/xml/plugins.xml
----------------------------------------------------------------------
diff --git a/test/projects/android_one/res/xml/plugins.xml b/test/projects/android_one/res/xml/plugins.xml
deleted file mode 100644
index 9cee85e..0000000
--- a/test/projects/android_one/res/xml/plugins.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-
- Copyright 2013 Anis Kadri
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-
-<plugins>
- <plugin name="App" value="com.phonegap.App"/>
- <plugin name="Geolocation" value="com.phonegap.GeoBroker"/>
- <plugin name="Device" value="com.phonegap.Device"/>
- <plugin name="Accelerometer" value="com.phonegap.AccelListener"/>
- <plugin name="Compass" value="com.phonegap.CompassListener"/>
- <plugin name="Media" value="com.phonegap.AudioHandler"/>
- <plugin name="Camera" value="com.phonegap.CameraLauncher"/>
- <plugin name="Contacts" value="com.phonegap.ContactManager"/>
- <plugin name="Crypto" value="com.phonegap.CryptoHandler"/>
- <plugin name="File" value="com.phonegap.FileUtils"/>
- <plugin name="Network Status" value="com.phonegap.NetworkManager"/>
- <plugin name="Notification" value="com.phonegap.Notification"/>
- <plugin name="Storage" value="com.phonegap.Storage"/>
- <plugin name="Temperature" value="com.phonegap.TempListener"/>
- <plugin name="FileTransfer" value="com.phonegap.FileTransfer"/>
- <plugin name="Capture" value="com.phonegap.Capture"/>
-</plugins>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/android_one/src/.gitkeep
----------------------------------------------------------------------
diff --git a/test/projects/android_one/src/.gitkeep b/test/projects/android_one/src/.gitkeep
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/android_two/AndroidManifest.xml
----------------------------------------------------------------------
diff --git a/test/projects/android_two/AndroidManifest.xml b/test/projects/android_two/AndroidManifest.xml
deleted file mode 100644
index 0c52803..0000000
--- a/test/projects/android_two/AndroidManifest.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-
- Copyright 2013 Anis Kadri
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-
-<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:windowSoftInputMode="adjustPan"
- package="com.alunny.childapp" android:versionName="1.1" android:versionCode="5">
- <supports-screens
- android:largeScreens="true"
- android:normalScreens="true"
- android:smallScreens="true"
- android:xlargeScreens="true"
- android:resizeable="true"
- android:anyDensity="true"
- />
-
- <uses-permission android:name="android.permission.CAMERA" />
- <uses-permission android:name="android.permission.VIBRATE" />
- <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
- <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
- <uses-permission android:name="android.permission.INTERNET" />
- <uses-permission android:name="android.permission.RECEIVE_SMS" />
- <uses-permission android:name="android.permission.RECORD_AUDIO" />
- <uses-permission android:name="android.permission.RECORD_VIDEO"/>
- <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
- <uses-permission android:name="android.permission.READ_CONTACTS" />
- <uses-permission android:name="android.permission.WRITE_CONTACTS" />
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
- <uses-permission android:name="android.permission.GET_ACCOUNTS" />
- <uses-permission android:name="android.permission.BROADCAST_STICKY" />
-
- <uses-feature android:name="android.hardware.camera" />
- <uses-feature android:name="android.hardware.camera.autofocus" />
-
- <application android:icon="@drawable/icon" android:label="@string/app_name"
- android:debuggable="true">
- <activity android:name="ChildApp" android:label="@string/app_name"
- android:configChanges="orientation|keyboardHidden">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- <activity android:name="com.phonegap.DroidGap" android:label="@string/app_name"
- android:configChanges="orientation|keyboardHidden">
- <intent-filter>
- </intent-filter>
- </activity>
- </application>
-
- <uses-sdk android:minSdkVersion="5" />
-</manifest>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/android_two/assets/www/.gitkeep
----------------------------------------------------------------------
diff --git a/test/projects/android_two/assets/www/.gitkeep b/test/projects/android_two/assets/www/.gitkeep
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/android_two/res/xml/config.xml
----------------------------------------------------------------------
diff --git a/test/projects/android_two/res/xml/config.xml b/test/projects/android_two/res/xml/config.xml
deleted file mode 100644
index d37aba5..0000000
--- a/test/projects/android_two/res/xml/config.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- 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.
--->
-<cordova>
- <!--
- access elements control the Android whitelist.
- Domains are assumed blocked unless set otherwise
- -->
-
- <access origin="http://127.0.0.1*"/> <!-- allow local pages -->
-
- <!-- <access origin="https://example.com" /> allow any secure requests to example.com -->
- <!-- <access origin="https://example.com" subdomains="true" /> such as above, but including subdomains, such as www -->
- <!-- <access origin=".*"/> Allow all domains, suggested development use only -->
-
- <log level="DEBUG"/>
- <preference name="useBrowserHistory" value="false" />
-<plugins>
- <plugin name="App" value="org.apache.cordova.App"/>
- <plugin name="Geolocation" value="org.apache.cordova.GeoBroker"/>
- <plugin name="Device" value="org.apache.cordova.Device"/>
- <plugin name="Accelerometer" value="org.apache.cordova.AccelListener"/>
- <plugin name="Compass" value="org.apache.cordova.CompassListener"/>
- <plugin name="Media" value="org.apache.cordova.AudioHandler"/>
- <plugin name="Camera" value="org.apache.cordova.CameraLauncher"/>
- <plugin name="Contacts" value="org.apache.cordova.ContactManager"/>
- <plugin name="File" value="org.apache.cordova.FileUtils"/>
- <plugin name="NetworkStatus" value="org.apache.cordova.NetworkManager"/>
- <plugin name="Notification" value="org.apache.cordova.Notification"/>
- <plugin name="Storage" value="org.apache.cordova.Storage"/>
- <plugin name="Temperature" value="org.apache.cordova.TempListener"/>
- <plugin name="FileTransfer" value="org.apache.cordova.FileTransfer"/>
- <plugin name="Capture" value="org.apache.cordova.Capture"/>
- <plugin name="Battery" value="org.apache.cordova.BatteryListener"/>
- <plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/>
-</plugins>
-</cordova>
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/android_two/src/.gitkeep
----------------------------------------------------------------------
diff --git a/test/projects/android_two/src/.gitkeep b/test/projects/android_two/src/.gitkeep
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/blackberry/www/config.xml
----------------------------------------------------------------------
diff --git a/test/projects/blackberry/www/config.xml b/test/projects/blackberry/www/config.xml
deleted file mode 100644
index 6b132c2..0000000
--- a/test/projects/blackberry/www/config.xml
+++ /dev/null
@@ -1,97 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- 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.
--->
-<!--
- Widget Configuration Reference:
- http://docs.blackberry.com/en/developers/deliverables/15274/
--->
-
-<widget xmlns="http://www.w3.org/ns/widgets"
- xmlns:rim="http://www.blackberry.com/ns/widgets"
- version="1.0.0.0" id="cordovaExample">
-
- <name>cordovaExample</name>
-
- <author>Your Name Here</author>
-
- <description>
- A sample Apache Cordova application that responds to the deviceready event.
- </description>
-
- <license href="http://opensource.org/licenses/alphabetical">
- </license>
-
- <!-- Cordova API -->
- <feature id="blackberry.system" required="true" version="1.0.0.0" />
- <feature id="org.apache.cordova" required="true" version="1.0.0" />
- <feature id="blackberry.find" required="true" version="1.0.0.0" />
- <feature id="blackberry.identity" required="true" version="1.0.0.0" />
- <feature id="blackberry.identity.phone" required="true" version="1.0.0.0" />
- <feature id="blackberry.pim.Address" required="true" version="1.0.0.0" />
- <feature id="blackberry.pim.Contact" required="true" version="1.0.0.0" />
- <feature id="blackberry.io.file" required="true" version="1.0.0.0" />
- <feature id="blackberry.utils" required="true" version="1.0.0.0" />
- <feature id="blackberry.io.dir" required="true" version="1.0.0.0" />
- <feature id="blackberry.app" required="true" version="1.0.0.0" />
- <feature id="blackberry.app.event" required="true" version="1.0.0.0" />
- <feature id="blackberry.system.event" required="true" version="1.0.0.0"/>
- <feature id="blackberry.widgetcache" required="true" version="1.0.0.0"/>
- <feature id="blackberry.media.camera" />
- <feature id="blackberry.ui.dialog" />
- <feature id="blackberry.connection" />
- <feature id="blackberry.bbm.platform" />
- <feature id="blackberry.invoke.card" />
- <feature id="blackberry.pim.contacts" />
- <feature id="blackberry.ui.contextmenu" />
- <feature id="blackberry.io.filetransfer" />
- <feature id="blackberry.io" />
- <feature id="blackberry.invoke" />
- <feature id="blackberry.invoked" />
- <feature id="blackberry.push" />
- <feature id="blackberry.media.microphone" required="true" version="1.0.0.0"/>
-
- <!-- Cordova API -->
- <access subdomains="true" uri="file:///store/home" />
- <access subdomains="true" uri="file:///SDCard" />
-
- <!-- Expose access to all URIs, including the file and http protocols -->
- <access subdomains="true" uri="*" />
-
-
- <icon rim:hover="false" src="res/icon/blackberry/icon-80.png" />
- <icon rim:hover="true" src="res/icon/blackberry/icon-80.png" />
-
- <rim:loadingScreen backgroundColor="#CFCFCF"
- foregroundImage="res/screen/blackberry/screen-225.png"
- onFirstLaunch="true">
- <rim:transitionEffect type="fadeOut" />
- </rim:loadingScreen>
-
- <content src="index.html" />
-
- <rim:permissions>
- <rim:permit>use_camera</rim:permit>
- <rim:permit>read_device_identifying_information</rim:permit>
- <rim:permit>access_shared</rim:permit>
- <rim:permit>read_geolocation</rim:permit>
- <rim:permit>record_audio</rim:permit>
- <rim:permit>access_pimdomain_contacts</rim:permit>
- </rim:permissions>
-
-</widget>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/projects/blackberry/www/plugins.xml
----------------------------------------------------------------------
diff --git a/test/projects/blackberry/www/plugins.xml b/test/projects/blackberry/www/plugins.xml
deleted file mode 100644
index 3d41236..0000000
--- a/test/projects/blackberry/www/plugins.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- 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.
--->
-<plugins>
- <plugin name="App" value="org.apache.cordova.app.App"/>
- <plugin name="Device" value="org.apache.cordova.device.Device"/>
- <plugin name="Camera" value="org.apache.cordova.camera.Camera"/>
- <plugin name="NetworkStatus" value="org.apache.cordova.network.Network"/>
- <plugin name="Notification" value="org.apache.cordova.notification.Notification"/>
- <plugin name="Accelerometer" value="org.apache.cordova.accelerometer.Accelerometer"/>
- <plugin name="Geolocation" value="org.apache.cordova.geolocation.Geolocation"/>
- <plugin name="File" value="org.apache.cordova.file.FileManager"/>
- <plugin name="FileTransfer" value="org.apache.cordova.http.FileTransfer"/>
- <plugin name="Contacts" value="org.apache.cordova.pim.Contact"/>
- <plugin name="Capture" value="org.apache.cordova.capture.MediaCapture"/>
- <plugin name="Battery" value="org.apache.cordova.battery.Battery"/>
- <plugin name="Media" value="org.apache.cordova.media.Media"/>
- <plugin name="Globalization" value="org.apache.cordova.globalization.Globalization"/>
-</plugins>
[05/10] remove old tests. jasmine migration complete
Posted by fi...@apache.org.
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/json_reader.cpp
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/json_reader.cpp b/test/plugins/cordova.echo/src/blackberry/public/json_reader.cpp
deleted file mode 100644
index 750088c..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/json_reader.cpp
+++ /dev/null
@@ -1,894 +0,0 @@
-#include <json/reader.h>
-#include <json/value.h>
-#include <utility>
-#include <cstdio>
-#include <cassert>
-#include <cstring>
-#include <iostream>
-#include <stdexcept>
-
-#if _MSC_VER >= 1400 // VC++ 8.0
-#pragma warning( disable : 4996 ) // disable warning about strdup being deprecated.
-#endif
-
-namespace Json {
-
-// QNX is strict about declaring C symbols in the std namespace.
-#ifdef __QNXNTO__
-using std::memcpy;
-using std::sprintf;
-using std::sscanf;
-#endif
-
-// Implementation of class Features
-// ////////////////////////////////
-
-Features::Features()
- : allowComments_( true )
- , strictRoot_( false )
-{
-}
-
-
-Features
-Features::all()
-{
- return Features();
-}
-
-
-Features
-Features::strictMode()
-{
- Features features;
- features.allowComments_ = false;
- features.strictRoot_ = true;
- return features;
-}
-
-// Implementation of class Reader
-// ////////////////////////////////
-
-
-static inline bool
-in( Reader::Char c, Reader::Char c1, Reader::Char c2, Reader::Char c3, Reader::Char c4 )
-{
- return c == c1 || c == c2 || c == c3 || c == c4;
-}
-
-static inline bool
-in( Reader::Char c, Reader::Char c1, Reader::Char c2, Reader::Char c3, Reader::Char c4, Reader::Char c5 )
-{
- return c == c1 || c == c2 || c == c3 || c == c4 || c == c5;
-}
-
-
-static bool
-containsNewLine( Reader::Location begin,
- Reader::Location end )
-{
- for ( ;begin < end; ++begin )
- if ( *begin == '\n' || *begin == '\r' )
- return true;
- return false;
-}
-
-static std::string codePointToUTF8(unsigned int cp)
-{
- std::string result;
-
- // based on description from http://en.wikipedia.org/wiki/UTF-8
-
- if (cp <= 0x7f)
- {
- result.resize(1);
- result[0] = static_cast<char>(cp);
- }
- else if (cp <= 0x7FF)
- {
- result.resize(2);
- result[1] = static_cast<char>(0x80 | (0x3f & cp));
- result[0] = static_cast<char>(0xC0 | (0x1f & (cp >> 6)));
- }
- else if (cp <= 0xFFFF)
- {
- result.resize(3);
- result[2] = static_cast<char>(0x80 | (0x3f & cp));
- result[1] = 0x80 | static_cast<char>((0x3f & (cp >> 6)));
- result[0] = 0xE0 | static_cast<char>((0xf & (cp >> 12)));
- }
- else if (cp <= 0x10FFFF)
- {
- result.resize(4);
- result[3] = static_cast<char>(0x80 | (0x3f & cp));
- result[2] = static_cast<char>(0x80 | (0x3f & (cp >> 6)));
- result[1] = static_cast<char>(0x80 | (0x3f & (cp >> 12)));
- result[0] = static_cast<char>(0xF0 | (0x7 & (cp >> 18)));
- }
-
- return result;
-}
-
-
-// Class Reader
-// //////////////////////////////////////////////////////////////////
-
-Reader::Reader()
- : features_( Features::all() )
-{
-}
-
-
-Reader::Reader( const Features &features )
- : features_( features )
-{
-}
-
-
-bool
-Reader::parse( const std::string &document,
- Value &root,
- bool collectComments )
-{
- document_ = document;
- const char *begin = document_.c_str();
- const char *end = begin + document_.length();
- return parse( begin, end, root, collectComments );
-}
-
-
-bool
-Reader::parse( std::istream& sin,
- Value &root,
- bool collectComments )
-{
- //std::istream_iterator<char> begin(sin);
- //std::istream_iterator<char> end;
- // Those would allow streamed input from a file, if parse() were a
- // template function.
-
- // Since std::string is reference-counted, this at least does not
- // create an extra copy.
- std::string doc;
- std::getline(sin, doc, (char)EOF);
- return parse( doc, root, collectComments );
-}
-
-bool
-Reader::parse( const char *beginDoc, const char *endDoc,
- Value &root,
- bool collectComments )
-{
- if ( !features_.allowComments_ )
- {
- collectComments = false;
- }
-
- begin_ = beginDoc;
- end_ = endDoc;
- collectComments_ = collectComments;
- current_ = begin_;
- lastValueEnd_ = 0;
- lastValue_ = 0;
- commentsBefore_ = "";
- errors_.clear();
- while ( !nodes_.empty() )
- nodes_.pop();
- nodes_.push( &root );
-
- bool successful = readValue();
- Token token;
- skipCommentTokens( token );
- if ( collectComments_ && !commentsBefore_.empty() )
- root.setComment( commentsBefore_, commentAfter );
- if ( features_.strictRoot_ )
- {
- if ( !root.isArray() && !root.isObject() )
- {
- // Set error location to start of doc, ideally should be first token found in doc
- token.type_ = tokenError;
- token.start_ = beginDoc;
- token.end_ = endDoc;
- addError( "A valid JSON document must be either an array or an object value.",
- token );
- return false;
- }
- }
- return successful;
-}
-
-
-bool
-Reader::readValue()
-{
- Token token;
- skipCommentTokens( token );
- bool successful = true;
-
- if ( collectComments_ && !commentsBefore_.empty() )
- {
- currentValue().setComment( commentsBefore_, commentBefore );
- commentsBefore_ = "";
- }
-
-
- switch ( token.type_ )
- {
- case tokenObjectBegin:
- successful = readObject( token );
- break;
- case tokenArrayBegin:
- successful = readArray( token );
- break;
- case tokenNumber:
- successful = decodeNumber( token );
- break;
- case tokenString:
- successful = decodeString( token );
- break;
- case tokenTrue:
- currentValue() = true;
- break;
- case tokenFalse:
- currentValue() = false;
- break;
- case tokenNull:
- currentValue() = Value();
- break;
- default:
- return addError( "Syntax error: value, object or array expected.", token );
- }
-
- if ( collectComments_ )
- {
- lastValueEnd_ = current_;
- lastValue_ = ¤tValue();
- }
-
- return successful;
-}
-
-
-void
-Reader::skipCommentTokens( Token &token )
-{
- if ( features_.allowComments_ )
- {
- do
- {
- readToken( token );
- }
- while ( token.type_ == tokenComment );
- }
- else
- {
- readToken( token );
- }
-}
-
-
-bool
-Reader::expectToken( TokenType type, Token &token, const char *message )
-{
- readToken( token );
- if ( token.type_ != type )
- return addError( message, token );
- return true;
-}
-
-
-bool
-Reader::readToken( Token &token )
-{
- skipSpaces();
- token.start_ = current_;
- Char c = getNextChar();
- bool ok = true;
- switch ( c )
- {
- case '{':
- token.type_ = tokenObjectBegin;
- break;
- case '}':
- token.type_ = tokenObjectEnd;
- break;
- case '[':
- token.type_ = tokenArrayBegin;
- break;
- case ']':
- token.type_ = tokenArrayEnd;
- break;
- case '"':
- token.type_ = tokenString;
- ok = readString();
- break;
- case '/':
- token.type_ = tokenComment;
- ok = readComment();
- break;
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '8':
- case '9':
- case '-':
- token.type_ = tokenNumber;
- readNumber();
- break;
- case 't':
- token.type_ = tokenTrue;
- ok = match( "rue", 3 );
- break;
- case 'f':
- token.type_ = tokenFalse;
- ok = match( "alse", 4 );
- break;
- case 'n':
- token.type_ = tokenNull;
- ok = match( "ull", 3 );
- break;
- case ',':
- token.type_ = tokenArraySeparator;
- break;
- case ':':
- token.type_ = tokenMemberSeparator;
- break;
- case 0:
- token.type_ = tokenEndOfStream;
- break;
- default:
- ok = false;
- break;
- }
- if ( !ok )
- token.type_ = tokenError;
- token.end_ = current_;
- return true;
-}
-
-
-void
-Reader::skipSpaces()
-{
- while ( current_ != end_ )
- {
- Char c = *current_;
- if ( c == ' ' || c == '\t' || c == '\r' || c == '\n' )
- ++current_;
- else
- break;
- }
-}
-
-
-bool
-Reader::match( Location pattern,
- int patternLength )
-{
- if ( end_ - current_ < patternLength )
- return false;
- int index = patternLength;
- while ( index-- )
- if ( current_[index] != pattern[index] )
- return false;
- current_ += patternLength;
- return true;
-}
-
-
-bool
-Reader::readComment()
-{
- Location commentBegin = current_ - 1;
- Char c = getNextChar();
- bool successful = false;
- if ( c == '*' )
- successful = readCStyleComment();
- else if ( c == '/' )
- successful = readCppStyleComment();
- if ( !successful )
- return false;
-
- if ( collectComments_ )
- {
- CommentPlacement placement = commentBefore;
- if ( lastValueEnd_ && !containsNewLine( lastValueEnd_, commentBegin ) )
- {
- if ( c != '*' || !containsNewLine( commentBegin, current_ ) )
- placement = commentAfterOnSameLine;
- }
-
- addComment( commentBegin, current_, placement );
- }
- return true;
-}
-
-
-void
-Reader::addComment( Location begin,
- Location end,
- CommentPlacement placement )
-{
- assert( collectComments_ );
- if ( placement == commentAfterOnSameLine )
- {
- assert( lastValue_ != 0 );
- lastValue_->setComment( std::string( begin, end ), placement );
- }
- else
- {
- if ( !commentsBefore_.empty() )
- commentsBefore_ += "\n";
- commentsBefore_ += std::string( begin, end );
- }
-}
-
-
-bool
-Reader::readCStyleComment()
-{
- while ( current_ != end_ )
- {
- Char c = getNextChar();
- if ( c == '*' && *current_ == '/' )
- break;
- }
- return getNextChar() == '/';
-}
-
-
-bool
-Reader::readCppStyleComment()
-{
- while ( current_ != end_ )
- {
- Char c = getNextChar();
- if ( c == '\r' || c == '\n' )
- break;
- }
- return true;
-}
-
-
-void
-Reader::readNumber()
-{
- while ( current_ != end_ )
- {
- if ( !(*current_ >= '0' && *current_ <= '9') &&
- !in( *current_, '.', 'e', 'E', '+', '-' ) )
- break;
- ++current_;
- }
-}
-
-bool
-Reader::readString()
-{
- Char c = 0;
- while ( current_ != end_ )
- {
- c = getNextChar();
- if ( c == '\\' )
- getNextChar();
- else if ( c == '"' )
- break;
- }
- return c == '"';
-}
-
-
-bool
-Reader::readObject( Token &tokenStart )
-{
- Token tokenName;
- Token something = tokenStart;
- std::string name;
- currentValue() = Value( objectValue );
- while ( readToken( tokenName ) )
- {
- bool initialTokenOk = true;
- while ( tokenName.type_ == tokenComment && initialTokenOk )
- initialTokenOk = readToken( tokenName );
- if ( !initialTokenOk )
- break;
- if ( tokenName.type_ == tokenObjectEnd && name.empty() ) // empty object
- return true;
- if ( tokenName.type_ != tokenString )
- break;
-
- name = "";
- if ( !decodeString( tokenName, name ) )
- return recoverFromError( tokenObjectEnd );
-
- Token colon;
- if ( !readToken( colon ) || colon.type_ != tokenMemberSeparator )
- {
- return addErrorAndRecover( "Missing ':' after object member name",
- colon,
- tokenObjectEnd );
- }
- Value &value = currentValue()[ name ];
- nodes_.push( &value );
- bool ok = readValue();
- nodes_.pop();
- if ( !ok ) // error already set
- return recoverFromError( tokenObjectEnd );
-
- Token comma;
- if ( !readToken( comma )
- || ( comma.type_ != tokenObjectEnd &&
- comma.type_ != tokenArraySeparator &&
- comma.type_ != tokenComment ) )
- {
- return addErrorAndRecover( "Missing ',' or '}' in object declaration",
- comma,
- tokenObjectEnd );
- }
- bool finalizeTokenOk = true;
- while ( comma.type_ == tokenComment &&
- finalizeTokenOk )
- finalizeTokenOk = readToken( comma );
- if ( comma.type_ == tokenObjectEnd )
- return true;
- }
- return addErrorAndRecover( "Missing '}' or object member name",
- tokenName,
- tokenObjectEnd );
-}
-
-
-bool
-Reader::readArray( Token &tokenStart )
-{
- Token something = tokenStart;
- currentValue() = Value( arrayValue );
- skipSpaces();
- if ( *current_ == ']' ) // empty array
- {
- Token endArray;
- readToken( endArray );
- return true;
- }
- int index = 0;
- while ( true )
- {
- Value &value = currentValue()[ index++ ];
- nodes_.push( &value );
- bool ok = readValue();
- nodes_.pop();
- if ( !ok ) // error already set
- return recoverFromError( tokenArrayEnd );
-
- Token token;
- // Accept Comment after last item in the array.
- ok = readToken( token );
- while ( token.type_ == tokenComment && ok )
- {
- ok = readToken( token );
- }
- bool badTokenType = ( token.type_ == tokenArraySeparator &&
- token.type_ == tokenArrayEnd );
- if ( !ok || badTokenType )
- {
- return addErrorAndRecover( "Missing ',' or ']' in array declaration",
- token,
- tokenArrayEnd );
- }
- if ( token.type_ == tokenArrayEnd )
- break;
- }
- return true;
-}
-
-
-bool
-Reader::decodeNumber( Token &token )
-{
- bool isDouble = false;
- for ( Location inspect = token.start_; inspect != token.end_; ++inspect )
- {
- isDouble = isDouble
- || in( *inspect, '.', 'e', 'E', '+' )
- || ( *inspect == '-' && inspect != token.start_ );
- }
- if ( isDouble )
- return decodeDouble( token );
- Location current = token.start_;
- bool isNegative = *current == '-';
- if ( isNegative )
- ++current;
- Value::UInt threshold = (isNegative ? Value::UInt(-Value::minInt)
- : Value::maxUInt) / 10;
- Value::UInt value = 0;
- while ( current < token.end_ )
- {
- Char c = *current++;
- if ( c < '0' || c > '9' )
- return addError( "'" + std::string( token.start_, token.end_ ) + "' is not a number.", token );
- if ( value >= threshold )
- return decodeDouble( token );
- value = value * 10 + Value::UInt(c - '0');
- }
- if ( isNegative )
- currentValue() = -Value::Int( value );
- else if ( value <= Value::UInt(Value::maxInt) )
- currentValue() = Value::Int( value );
- else
- currentValue() = value;
- return true;
-}
-
-
-bool
-Reader::decodeDouble( Token &token )
-{
- double value = 0;
- const int bufferSize = 32;
- int count;
- int length = int(token.end_ - token.start_);
- if ( length <= bufferSize )
- {
- Char buffer[bufferSize];
- memcpy( buffer, token.start_, length );
- buffer[length] = 0;
- count = sscanf( buffer, "%lf", &value );
- }
- else
- {
- std::string buffer( token.start_, token.end_ );
- count = sscanf( buffer.c_str(), "%lf", &value );
- }
-
- if ( count != 1 )
- return addError( "'" + std::string( token.start_, token.end_ ) + "' is not a number.", token );
- currentValue() = value;
- return true;
-}
-
-
-bool
-Reader::decodeString( Token &token )
-{
- std::string decoded;
- if ( !decodeString( token, decoded ) )
- return false;
- currentValue() = decoded;
- return true;
-}
-
-
-bool
-Reader::decodeString( Token &token, std::string &decoded )
-{
- decoded.reserve( token.end_ - token.start_ - 2 );
- Location current = token.start_ + 1; // skip '"'
- Location end = token.end_ - 1; // do not include '"'
- while ( current != end )
- {
- Char c = *current++;
- if ( c == '"' )
- break;
- else if ( c == '\\' )
- {
- if ( current == end )
- return addError( "Empty escape sequence in string", token, current );
- Char escape = *current++;
- switch ( escape )
- {
- case '"': decoded += '"'; break;
- case '/': decoded += '/'; break;
- case '\\': decoded += '\\'; break;
- case 'b': decoded += '\b'; break;
- case 'f': decoded += '\f'; break;
- case 'n': decoded += '\n'; break;
- case 'r': decoded += '\r'; break;
- case 't': decoded += '\t'; break;
- case 'u':
- {
- unsigned int unicode;
- if ( !decodeUnicodeCodePoint( token, current, end, unicode ) )
- return false;
- decoded += codePointToUTF8(unicode);
- }
- break;
- default:
- return addError( "Bad escape sequence in string", token, current );
- }
- }
- else
- {
- decoded += c;
- }
- }
- return true;
-}
-
-bool
-Reader::decodeUnicodeCodePoint( Token &token,
- Location ¤t,
- Location end,
- unsigned int &unicode )
-{
-
- if ( !decodeUnicodeEscapeSequence( token, current, end, unicode ) )
- return false;
- if (unicode >= 0xD800 && unicode <= 0xDBFF)
- {
- // surrogate pairs
- if (end - current < 6)
- return addError( "additional six characters expected to parse unicode surrogate pair.", token, current );
- unsigned int surrogatePair;
- if (*(current++) == '\\' && *(current++)== 'u')
- {
- if (decodeUnicodeEscapeSequence( token, current, end, surrogatePair ))
- {
- unicode = 0x10000 + ((unicode & 0x3FF) << 10) + (surrogatePair & 0x3FF);
- }
- else
- return false;
- }
- else
- return addError( "expecting another \\u token to begin the second half of a unicode surrogate pair", token, current );
- }
- return true;
-}
-
-bool
-Reader::decodeUnicodeEscapeSequence( Token &token,
- Location ¤t,
- Location end,
- unsigned int &unicode )
-{
- if ( end - current < 4 )
- return addError( "Bad unicode escape sequence in string: four digits expected.", token, current );
- unicode = 0;
- for ( int index =0; index < 4; ++index )
- {
- Char c = *current++;
- unicode *= 16;
- if ( c >= '0' && c <= '9' )
- unicode += c - '0';
- else if ( c >= 'a' && c <= 'f' )
- unicode += c - 'a' + 10;
- else if ( c >= 'A' && c <= 'F' )
- unicode += c - 'A' + 10;
- else
- return addError( "Bad unicode escape sequence in string: hexadecimal digit expected.", token, current );
- }
- return true;
-}
-
-
-bool
-Reader::addError( const std::string &message,
- Token &token,
- Location extra )
-{
- ErrorInfo info;
- info.token_ = token;
- info.message_ = message;
- info.extra_ = extra;
- errors_.push_back( info );
- return false;
-}
-
-
-bool
-Reader::recoverFromError( TokenType skipUntilToken )
-{
- int errorCount = int(errors_.size());
- Token skip;
- while ( true )
- {
- if ( !readToken(skip) )
- errors_.resize( errorCount ); // discard errors caused by recovery
- if ( skip.type_ == skipUntilToken || skip.type_ == tokenEndOfStream )
- break;
- }
- errors_.resize( errorCount );
- return false;
-}
-
-
-bool
-Reader::addErrorAndRecover( const std::string &message,
- Token &token,
- TokenType skipUntilToken )
-{
- addError( message, token );
- return recoverFromError( skipUntilToken );
-}
-
-
-Value &
-Reader::currentValue()
-{
- return *(nodes_.top());
-}
-
-
-Reader::Char
-Reader::getNextChar()
-{
- if ( current_ == end_ )
- return 0;
- return *current_++;
-}
-
-
-void
-Reader::getLocationLineAndColumn( Location location,
- int &line,
- int &column ) const
-{
- Location current = begin_;
- Location lastLineStart = current;
- line = 0;
- while ( current < location && current != end_ )
- {
- Char c = *current++;
- if ( c == '\r' )
- {
- if ( *current == '\n' )
- ++current;
- lastLineStart = current;
- ++line;
- }
- else if ( c == '\n' )
- {
- lastLineStart = current;
- ++line;
- }
- }
- // column & line start at 1
- column = int(location - lastLineStart) + 1;
- ++line;
-}
-
-
-std::string
-Reader::getLocationLineAndColumn( Location location ) const
-{
- int line, column;
- getLocationLineAndColumn( location, line, column );
- char buffer[18+16+16+1];
- sprintf( buffer, "Line %d, Column %d", line, column );
- return buffer;
-}
-
-
-std::string
-Reader::getFormatedErrorMessages() const
-{
- std::string formattedMessage;
- for ( Errors::const_iterator itError = errors_.begin();
- itError != errors_.end();
- ++itError )
- {
- const ErrorInfo &error = *itError;
- formattedMessage += "* " + getLocationLineAndColumn( error.token_.start_ ) + "\n";
- formattedMessage += " " + error.message_ + "\n";
- if ( error.extra_ )
- formattedMessage += "See " + getLocationLineAndColumn( error.extra_ ) + " for detail.\n";
- }
- return formattedMessage;
-}
-
-
-std::istream& operator>>( std::istream &sin, Value &root )
-{
- Json::Reader reader;
- bool ok = reader.parse(sin, root, true);
- //JSON_ASSERT( ok );
- if (!ok) throw std::runtime_error(reader.getFormatedErrorMessages());
- return sin;
-}
-
-
-} // namespace Json
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/json_value.cpp
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/json_value.cpp b/test/plugins/cordova.echo/src/blackberry/public/json_value.cpp
deleted file mode 100644
index 6e5dcd3..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/json_value.cpp
+++ /dev/null
@@ -1,1726 +0,0 @@
-#include <iostream>
-#include <json/value.h>
-#include <json/writer.h>
-#include <utility>
-#include <stdexcept>
-#include <cstring>
-#include <cassert>
-#ifdef JSON_USE_CPPTL
-# include <cpptl/conststring.h>
-#endif
-#include <cstddef> // size_t
-#ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
-# include "json_batchallocator.h"
-#endif // #ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
-
-#define JSON_ASSERT_UNREACHABLE assert( false )
-#define JSON_ASSERT( condition ) assert( condition ); // @todo <= change this into an exception throw
-#define JSON_ASSERT_MESSAGE( condition, message ) if (!( condition )) throw std::runtime_error( message );
-
-namespace Json {
-
-// QNX is strict about declaring C symbols in the std namespace.
-#ifdef __QNXNTO__
-using std::memcpy;
-using std::strchr;
-using std::strcmp;
-using std::strlen;
-#endif
-
-const Value Value::null;
-const Int Value::minInt = Int( ~(UInt(-1)/2) );
-const Int Value::maxInt = Int( UInt(-1)/2 );
-const UInt Value::maxUInt = UInt(-1);
-
-// A "safe" implementation of strdup. Allow null pointer to be passed.
-// Also avoid warning on msvc80.
-//
-//inline char *safeStringDup( const char *czstring )
-//{
-// if ( czstring )
-// {
-// const size_t length = (unsigned int)( strlen(czstring) + 1 );
-// char *newString = static_cast<char *>( malloc( length ) );
-// memcpy( newString, czstring, length );
-// return newString;
-// }
-// return 0;
-//}
-//
-//inline char *safeStringDup( const std::string &str )
-//{
-// if ( !str.empty() )
-// {
-// const size_t length = str.length();
-// char *newString = static_cast<char *>( malloc( length + 1 ) );
-// memcpy( newString, str.c_str(), length );
-// newString[length] = 0;
-// return newString;
-// }
-// return 0;
-//}
-
-ValueAllocator::~ValueAllocator()
-{
-}
-
-class DefaultValueAllocator : public ValueAllocator
-{
-public:
- virtual ~DefaultValueAllocator()
- {
- }
-
- virtual char *makeMemberName( const char *memberName )
- {
- return duplicateStringValue( memberName );
- }
-
- virtual void releaseMemberName( char *memberName )
- {
- releaseStringValue( memberName );
- }
-
- virtual char *duplicateStringValue( const char *value,
- unsigned int length = unknown )
- {
- //@todo invesgate this old optimization
- //if ( !value || value[0] == 0 )
- // return 0;
-
- if ( length == unknown )
- length = (unsigned int)strlen(value);
- char *newString = static_cast<char *>( malloc( length + 1 ) );
- memcpy( newString, value, length );
- newString[length] = 0;
- return newString;
- }
-
- virtual void releaseStringValue( char *value )
- {
- if ( value )
- free( value );
- }
-};
-
-static ValueAllocator *&valueAllocator()
-{
- static DefaultValueAllocator defaultAllocator;
- static ValueAllocator *valueAllocator = &defaultAllocator;
- return valueAllocator;
-}
-
-static struct DummyValueAllocatorInitializer {
- DummyValueAllocatorInitializer()
- {
- valueAllocator(); // ensure valueAllocator() statics are initialized before main().
- }
-} dummyValueAllocatorInitializer;
-
-
-
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// ValueInternals...
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-#ifdef JSON_VALUE_USE_INTERNAL_MAP
-# include "json_internalarray.inl"
-# include "json_internalmap.inl"
-#endif // JSON_VALUE_USE_INTERNAL_MAP
-
-# include "json_valueiterator.inl"
-
-
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// class Value::CommentInfo
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-
-
-Value::CommentInfo::CommentInfo()
- : comment_( 0 )
-{
-}
-
-Value::CommentInfo::~CommentInfo()
-{
- if ( comment_ )
- valueAllocator()->releaseStringValue( comment_ );
-}
-
-
-void
-Value::CommentInfo::setComment( const char *text )
-{
- if ( comment_ )
- valueAllocator()->releaseStringValue( comment_ );
- JSON_ASSERT( text );
- JSON_ASSERT_MESSAGE( text[0]=='\0' || text[0]=='/', "Comments must start with /");
- // It seems that /**/ style comments are acceptable as well.
- comment_ = valueAllocator()->duplicateStringValue( text );
-}
-
-
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// class Value::CZString
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-# ifndef JSON_VALUE_USE_INTERNAL_MAP
-
-// Notes: index_ indicates if the string was allocated when
-// a string is stored.
-
-Value::CZString::CZString( int index )
- : cstr_( 0 )
- , index_( index )
-{
-}
-
-Value::CZString::CZString( const char *cstr, DuplicationPolicy allocate )
- : cstr_( allocate == duplicate ? valueAllocator()->makeMemberName(cstr)
- : cstr )
- , index_( allocate )
-{
-}
-
-Value::CZString::CZString( const CZString &other )
-: cstr_( other.index_ != noDuplication && other.cstr_ != 0
- ? valueAllocator()->makeMemberName( other.cstr_ )
- : other.cstr_ )
- , index_( other.cstr_ ? (other.index_ == noDuplication ? noDuplication : duplicate)
- : other.index_ )
-{
-}
-
-Value::CZString::~CZString()
-{
- if ( cstr_ && index_ == duplicate )
- valueAllocator()->releaseMemberName( const_cast<char *>( cstr_ ) );
-}
-
-void
-Value::CZString::swap( CZString &other )
-{
- std::swap( cstr_, other.cstr_ );
- std::swap( index_, other.index_ );
-}
-
-Value::CZString &
-Value::CZString::operator =( const CZString &other )
-{
- CZString temp( other );
- swap( temp );
- return *this;
-}
-
-bool
-Value::CZString::operator<( const CZString &other ) const
-{
- if ( cstr_ )
- return strcmp( cstr_, other.cstr_ ) < 0;
- return index_ < other.index_;
-}
-
-bool
-Value::CZString::operator==( const CZString &other ) const
-{
- if ( cstr_ )
- return strcmp( cstr_, other.cstr_ ) == 0;
- return index_ == other.index_;
-}
-
-
-int
-Value::CZString::index() const
-{
- return index_;
-}
-
-
-const char *
-Value::CZString::c_str() const
-{
- return cstr_;
-}
-
-bool
-Value::CZString::isStaticString() const
-{
- return index_ == noDuplication;
-}
-
-#endif // ifndef JSON_VALUE_USE_INTERNAL_MAP
-
-
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// class Value::Value
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-
-/*! \internal Default constructor initialization must be equivalent to:
- * memset( this, 0, sizeof(Value) )
- * This optimization is used in ValueInternalMap fast allocator.
- */
-Value::Value( ValueType type )
- : type_( type )
- , allocated_( 0 )
- , comments_( 0 )
-# ifdef JSON_VALUE_USE_INTERNAL_MAP
- , itemIsUsed_( 0 )
-#endif
-{
- switch ( type )
- {
- case nullValue:
- break;
- case intValue:
- case uintValue:
- value_.int_ = 0;
- break;
- case realValue:
- value_.real_ = 0.0;
- break;
- case stringValue:
- value_.string_ = 0;
- break;
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- case arrayValue:
- case objectValue:
- value_.map_ = new ObjectValues();
- break;
-#else
- case arrayValue:
- value_.array_ = arrayAllocator()->newArray();
- break;
- case objectValue:
- value_.map_ = mapAllocator()->newMap();
- break;
-#endif
- case booleanValue:
- value_.bool_ = false;
- break;
- default:
- JSON_ASSERT_UNREACHABLE;
- }
-}
-
-
-Value::Value( Int value )
- : type_( intValue )
- , comments_( 0 )
-# ifdef JSON_VALUE_USE_INTERNAL_MAP
- , itemIsUsed_( 0 )
-#endif
-{
- value_.int_ = value;
-}
-
-
-Value::Value( UInt value )
- : type_( uintValue )
- , comments_( 0 )
-# ifdef JSON_VALUE_USE_INTERNAL_MAP
- , itemIsUsed_( 0 )
-#endif
-{
- value_.uint_ = value;
-}
-
-Value::Value( double value )
- : type_( realValue )
- , comments_( 0 )
-# ifdef JSON_VALUE_USE_INTERNAL_MAP
- , itemIsUsed_( 0 )
-#endif
-{
- value_.real_ = value;
-}
-
-Value::Value( const char *value )
- : type_( stringValue )
- , allocated_( true )
- , comments_( 0 )
-# ifdef JSON_VALUE_USE_INTERNAL_MAP
- , itemIsUsed_( 0 )
-#endif
-{
- value_.string_ = valueAllocator()->duplicateStringValue( value );
-}
-
-
-Value::Value( const char *beginValue,
- const char *endValue )
- : type_( stringValue )
- , allocated_( true )
- , comments_( 0 )
-# ifdef JSON_VALUE_USE_INTERNAL_MAP
- , itemIsUsed_( 0 )
-#endif
-{
- value_.string_ = valueAllocator()->duplicateStringValue( beginValue,
- UInt(endValue - beginValue) );
-}
-
-
-Value::Value( const std::string &value )
- : type_( stringValue )
- , allocated_( true )
- , comments_( 0 )
-# ifdef JSON_VALUE_USE_INTERNAL_MAP
- , itemIsUsed_( 0 )
-#endif
-{
- value_.string_ = valueAllocator()->duplicateStringValue( value.c_str(),
- (unsigned int)value.length() );
-
-}
-
-Value::Value( const StaticString &value )
- : type_( stringValue )
- , allocated_( false )
- , comments_( 0 )
-# ifdef JSON_VALUE_USE_INTERNAL_MAP
- , itemIsUsed_( 0 )
-#endif
-{
- value_.string_ = const_cast<char *>( value.c_str() );
-}
-
-
-# ifdef JSON_USE_CPPTL
-Value::Value( const CppTL::ConstString &value )
- : type_( stringValue )
- , allocated_( true )
- , comments_( 0 )
-# ifdef JSON_VALUE_USE_INTERNAL_MAP
- , itemIsUsed_( 0 )
-#endif
-{
- value_.string_ = valueAllocator()->duplicateStringValue( value, value.length() );
-}
-# endif
-
-Value::Value( bool value )
- : type_( booleanValue )
- , comments_( 0 )
-# ifdef JSON_VALUE_USE_INTERNAL_MAP
- , itemIsUsed_( 0 )
-#endif
-{
- value_.bool_ = value;
-}
-
-
-Value::Value( const Value &other )
- : type_( other.type_ )
- , comments_( 0 )
-# ifdef JSON_VALUE_USE_INTERNAL_MAP
- , itemIsUsed_( 0 )
-#endif
-{
- switch ( type_ )
- {
- case nullValue:
- case intValue:
- case uintValue:
- case realValue:
- case booleanValue:
- value_ = other.value_;
- break;
- case stringValue:
- if ( other.value_.string_ )
- {
- value_.string_ = valueAllocator()->duplicateStringValue( other.value_.string_ );
- allocated_ = true;
- }
- else
- value_.string_ = 0;
- break;
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- case arrayValue:
- case objectValue:
- value_.map_ = new ObjectValues( *other.value_.map_ );
- break;
-#else
- case arrayValue:
- value_.array_ = arrayAllocator()->newArrayCopy( *other.value_.array_ );
- break;
- case objectValue:
- value_.map_ = mapAllocator()->newMapCopy( *other.value_.map_ );
- break;
-#endif
- default:
- JSON_ASSERT_UNREACHABLE;
- }
- if ( other.comments_ )
- {
- comments_ = new CommentInfo[numberOfCommentPlacement];
- for ( int comment =0; comment < numberOfCommentPlacement; ++comment )
- {
- const CommentInfo &otherComment = other.comments_[comment];
- if ( otherComment.comment_ )
- comments_[comment].setComment( otherComment.comment_ );
- }
- }
-}
-
-
-Value::~Value()
-{
- switch ( type_ )
- {
- case nullValue:
- case intValue:
- case uintValue:
- case realValue:
- case booleanValue:
- break;
- case stringValue:
- if ( allocated_ )
- valueAllocator()->releaseStringValue( value_.string_ );
- break;
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- case arrayValue:
- case objectValue:
- delete value_.map_;
- break;
-#else
- case arrayValue:
- arrayAllocator()->destructArray( value_.array_ );
- break;
- case objectValue:
- mapAllocator()->destructMap( value_.map_ );
- break;
-#endif
- default:
- JSON_ASSERT_UNREACHABLE;
- }
-
- if ( comments_ )
- delete[] comments_;
-}
-
-Value &
-Value::operator=( const Value &other )
-{
- Value temp( other );
- swap( temp );
- return *this;
-}
-
-void
-Value::swap( Value &other )
-{
- ValueType temp = type_;
- type_ = other.type_;
- other.type_ = temp;
- std::swap( value_, other.value_ );
- int temp2 = allocated_;
- allocated_ = other.allocated_;
- other.allocated_ = temp2;
-}
-
-ValueType
-Value::type() const
-{
- return type_;
-}
-
-
-int
-Value::compare( const Value &other )
-{
- /*
- int typeDelta = other.type_ - type_;
- switch ( type_ )
- {
- case nullValue:
-
- return other.type_ == type_;
- case intValue:
- if ( other.type_.isNumeric()
- case uintValue:
- case realValue:
- case booleanValue:
- break;
- case stringValue,
- break;
- case arrayValue:
- delete value_.array_;
- break;
- case objectValue:
- delete value_.map_;
- default:
- JSON_ASSERT_UNREACHABLE;
- }
- */
- return 0; // unreachable
-}
-
-bool
-Value::operator <( const Value &other ) const
-{
- int typeDelta = type_ - other.type_;
- if ( typeDelta )
- return typeDelta < 0 ? true : false;
- switch ( type_ )
- {
- case nullValue:
- return false;
- case intValue:
- return value_.int_ < other.value_.int_;
- case uintValue:
- return value_.uint_ < other.value_.uint_;
- case realValue:
- return value_.real_ < other.value_.real_;
- case booleanValue:
- return value_.bool_ < other.value_.bool_;
- case stringValue:
- return ( value_.string_ == 0 && other.value_.string_ )
- || ( other.value_.string_
- && value_.string_
- && strcmp( value_.string_, other.value_.string_ ) < 0 );
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- case arrayValue:
- case objectValue:
- {
- int delta = int( value_.map_->size() - other.value_.map_->size() );
- if ( delta )
- return delta < 0;
- return (*value_.map_) < (*other.value_.map_);
- }
-#else
- case arrayValue:
- return value_.array_->compare( *(other.value_.array_) ) < 0;
- case objectValue:
- return value_.map_->compare( *(other.value_.map_) ) < 0;
-#endif
- default:
- JSON_ASSERT_UNREACHABLE;
- }
- return 0; // unreachable
-}
-
-bool
-Value::operator <=( const Value &other ) const
-{
- return !(other > *this);
-}
-
-bool
-Value::operator >=( const Value &other ) const
-{
- return !(*this < other);
-}
-
-bool
-Value::operator >( const Value &other ) const
-{
- return other < *this;
-}
-
-bool
-Value::operator ==( const Value &other ) const
-{
- //if ( type_ != other.type_ )
- // GCC 2.95.3 says:
- // attempt to take address of bit-field structure member `Json::Value::type_'
- // Beats me, but a temp solves the problem.
- int temp = other.type_;
- if ( type_ != temp )
- return false;
- switch ( type_ )
- {
- case nullValue:
- return true;
- case intValue:
- return value_.int_ == other.value_.int_;
- case uintValue:
- return value_.uint_ == other.value_.uint_;
- case realValue:
- return value_.real_ == other.value_.real_;
- case booleanValue:
- return value_.bool_ == other.value_.bool_;
- case stringValue:
- return ( value_.string_ == other.value_.string_ )
- || ( other.value_.string_
- && value_.string_
- && strcmp( value_.string_, other.value_.string_ ) == 0 );
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- case arrayValue:
- case objectValue:
- return value_.map_->size() == other.value_.map_->size()
- && (*value_.map_) == (*other.value_.map_);
-#else
- case arrayValue:
- return value_.array_->compare( *(other.value_.array_) ) == 0;
- case objectValue:
- return value_.map_->compare( *(other.value_.map_) ) == 0;
-#endif
- default:
- JSON_ASSERT_UNREACHABLE;
- }
- return 0; // unreachable
-}
-
-bool
-Value::operator !=( const Value &other ) const
-{
- return !( *this == other );
-}
-
-const char *
-Value::asCString() const
-{
- JSON_ASSERT( type_ == stringValue );
- return value_.string_;
-}
-
-
-std::string
-Value::asString() const
-{
- switch ( type_ )
- {
- case nullValue:
- return "";
- case stringValue:
- return value_.string_ ? value_.string_ : "";
- case booleanValue:
- return value_.bool_ ? "true" : "false";
- case intValue:
- case uintValue:
- case realValue:
- case arrayValue:
- case objectValue:
- JSON_ASSERT_MESSAGE( false, "Type is not convertible to string" );
- default:
- JSON_ASSERT_UNREACHABLE;
- }
- return ""; // unreachable
-}
-
-# ifdef JSON_USE_CPPTL
-CppTL::ConstString
-Value::asConstString() const
-{
- return CppTL::ConstString( asString().c_str() );
-}
-# endif
-
-Value::Int
-Value::asInt() const
-{
- switch ( type_ )
- {
- case nullValue:
- return 0;
- case intValue:
- return value_.int_;
- case uintValue:
- JSON_ASSERT_MESSAGE( value_.uint_ < (unsigned)maxInt, "integer out of signed integer range" );
- return value_.uint_;
- case realValue:
- JSON_ASSERT_MESSAGE( value_.real_ >= minInt && value_.real_ <= maxInt, "Real out of signed integer range" );
- return Int( value_.real_ );
- case booleanValue:
- return value_.bool_ ? 1 : 0;
- case stringValue:
- case arrayValue:
- case objectValue:
- JSON_ASSERT_MESSAGE( false, "Type is not convertible to int" );
- default:
- JSON_ASSERT_UNREACHABLE;
- }
- return 0; // unreachable;
-}
-
-Value::UInt
-Value::asUInt() const
-{
- switch ( type_ )
- {
- case nullValue:
- return 0;
- case intValue:
- JSON_ASSERT_MESSAGE( value_.int_ >= 0, "Negative integer can not be converted to unsigned integer" );
- return value_.int_;
- case uintValue:
- return value_.uint_;
- case realValue:
- JSON_ASSERT_MESSAGE( value_.real_ >= 0 && value_.real_ <= maxUInt, "Real out of unsigned integer range" );
- return UInt( value_.real_ );
- case booleanValue:
- return value_.bool_ ? 1 : 0;
- case stringValue:
- case arrayValue:
- case objectValue:
- JSON_ASSERT_MESSAGE( false, "Type is not convertible to uint" );
- default:
- JSON_ASSERT_UNREACHABLE;
- }
- return 0; // unreachable;
-}
-
-double
-Value::asDouble() const
-{
- switch ( type_ )
- {
- case nullValue:
- return 0.0;
- case intValue:
- return value_.int_;
- case uintValue:
- return value_.uint_;
- case realValue:
- return value_.real_;
- case booleanValue:
- return value_.bool_ ? 1.0 : 0.0;
- case stringValue:
- case arrayValue:
- case objectValue:
- JSON_ASSERT_MESSAGE( false, "Type is not convertible to double" );
- default:
- JSON_ASSERT_UNREACHABLE;
- }
- return 0; // unreachable;
-}
-
-bool
-Value::asBool() const
-{
- switch ( type_ )
- {
- case nullValue:
- return false;
- case intValue:
- case uintValue:
- return value_.int_ != 0;
- case realValue:
- return value_.real_ != 0.0;
- case booleanValue:
- return value_.bool_;
- case stringValue:
- return value_.string_ && value_.string_[0] != 0;
- case arrayValue:
- case objectValue:
- return value_.map_->size() != 0;
- default:
- JSON_ASSERT_UNREACHABLE;
- }
- return false; // unreachable;
-}
-
-
-bool
-Value::isConvertibleTo( ValueType other ) const
-{
- switch ( type_ )
- {
- case nullValue:
- return true;
- case intValue:
- return ( other == nullValue && value_.int_ == 0 )
- || other == intValue
- || ( other == uintValue && value_.int_ >= 0 )
- || other == realValue
- || other == stringValue
- || other == booleanValue;
- case uintValue:
- return ( other == nullValue && value_.uint_ == 0 )
- || ( other == intValue && value_.uint_ <= (unsigned)maxInt )
- || other == uintValue
- || other == realValue
- || other == stringValue
- || other == booleanValue;
- case realValue:
- return ( other == nullValue && value_.real_ == 0.0 )
- || ( other == intValue && value_.real_ >= minInt && value_.real_ <= maxInt )
- || ( other == uintValue && value_.real_ >= 0 && value_.real_ <= maxUInt )
- || other == realValue
- || other == stringValue
- || other == booleanValue;
- case booleanValue:
- return ( other == nullValue && value_.bool_ == false )
- || other == intValue
- || other == uintValue
- || other == realValue
- || other == stringValue
- || other == booleanValue;
- case stringValue:
- return other == stringValue
- || ( other == nullValue && (!value_.string_ || value_.string_[0] == 0) );
- case arrayValue:
- return other == arrayValue
- || ( other == nullValue && value_.map_->size() == 0 );
- case objectValue:
- return other == objectValue
- || ( other == nullValue && value_.map_->size() == 0 );
- default:
- JSON_ASSERT_UNREACHABLE;
- }
- return false; // unreachable;
-}
-
-
-/// Number of values in array or object
-Value::UInt
-Value::size() const
-{
- switch ( type_ )
- {
- case nullValue:
- case intValue:
- case uintValue:
- case realValue:
- case booleanValue:
- case stringValue:
- return 0;
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- case arrayValue: // size of the array is highest index + 1
- if ( !value_.map_->empty() )
- {
- ObjectValues::const_iterator itLast = value_.map_->end();
- --itLast;
- return (*itLast).first.index()+1;
- }
- return 0;
- case objectValue:
- return Int( value_.map_->size() );
-#else
- case arrayValue:
- return Int( value_.array_->size() );
- case objectValue:
- return Int( value_.map_->size() );
-#endif
- default:
- JSON_ASSERT_UNREACHABLE;
- }
- return 0; // unreachable;
-}
-
-
-bool
-Value::empty() const
-{
- if ( isNull() || isArray() || isObject() )
- return size() == 0u;
- else
- return false;
-}
-
-
-bool
-Value::operator!() const
-{
- return isNull();
-}
-
-
-void
-Value::clear()
-{
- JSON_ASSERT( type_ == nullValue || type_ == arrayValue || type_ == objectValue );
-
- switch ( type_ )
- {
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- case arrayValue:
- case objectValue:
- value_.map_->clear();
- break;
-#else
- case arrayValue:
- value_.array_->clear();
- break;
- case objectValue:
- value_.map_->clear();
- break;
-#endif
- default:
- break;
- }
-}
-
-void
-Value::resize( UInt newSize )
-{
- JSON_ASSERT( type_ == nullValue || type_ == arrayValue );
- if ( type_ == nullValue )
- *this = Value( arrayValue );
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- UInt oldSize = size();
- if ( newSize == 0 )
- clear();
- else if ( newSize > oldSize )
- (*this)[ newSize - 1 ];
- else
- {
- for ( UInt index = newSize; index < oldSize; ++index )
- value_.map_->erase( index );
- assert( size() == newSize );
- }
-#else
- value_.array_->resize( newSize );
-#endif
-}
-
-
-Value &
-Value::operator[]( UInt index )
-{
- JSON_ASSERT( type_ == nullValue || type_ == arrayValue );
- if ( type_ == nullValue )
- *this = Value( arrayValue );
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- CZString key( index );
- ObjectValues::iterator it = value_.map_->lower_bound( key );
- if ( it != value_.map_->end() && (*it).first == key )
- return (*it).second;
-
- ObjectValues::value_type defaultValue( key, null );
- it = value_.map_->insert( it, defaultValue );
- return (*it).second;
-#else
- return value_.array_->resolveReference( index );
-#endif
-}
-
-
-const Value &
-Value::operator[]( UInt index ) const
-{
- JSON_ASSERT( type_ == nullValue || type_ == arrayValue );
- if ( type_ == nullValue )
- return null;
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- CZString key( index );
- ObjectValues::const_iterator it = value_.map_->find( key );
- if ( it == value_.map_->end() )
- return null;
- return (*it).second;
-#else
- Value *value = value_.array_->find( index );
- return value ? *value : null;
-#endif
-}
-
-
-Value &
-Value::operator[]( const char *key )
-{
- return resolveReference( key, false );
-}
-
-
-Value &
-Value::resolveReference( const char *key,
- bool isStatic )
-{
- JSON_ASSERT( type_ == nullValue || type_ == objectValue );
- if ( type_ == nullValue )
- *this = Value( objectValue );
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- CZString actualKey( key, isStatic ? CZString::noDuplication
- : CZString::duplicateOnCopy );
- ObjectValues::iterator it = value_.map_->lower_bound( actualKey );
- if ( it != value_.map_->end() && (*it).first == actualKey )
- return (*it).second;
-
- ObjectValues::value_type defaultValue( actualKey, null );
- it = value_.map_->insert( it, defaultValue );
- Value &value = (*it).second;
- return value;
-#else
- return value_.map_->resolveReference( key, isStatic );
-#endif
-}
-
-
-Value
-Value::get( UInt index,
- const Value &defaultValue ) const
-{
- const Value *value = &((*this)[index]);
- return value == &null ? defaultValue : *value;
-}
-
-
-bool
-Value::isValidIndex( UInt index ) const
-{
- return index < size();
-}
-
-
-
-const Value &
-Value::operator[]( const char *key ) const
-{
- JSON_ASSERT( type_ == nullValue || type_ == objectValue );
- if ( type_ == nullValue )
- return null;
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- CZString actualKey( key, CZString::noDuplication );
- ObjectValues::const_iterator it = value_.map_->find( actualKey );
- if ( it == value_.map_->end() )
- return null;
- return (*it).second;
-#else
- const Value *value = value_.map_->find( key );
- return value ? *value : null;
-#endif
-}
-
-
-Value &
-Value::operator[]( const std::string &key )
-{
- return (*this)[ key.c_str() ];
-}
-
-
-const Value &
-Value::operator[]( const std::string &key ) const
-{
- return (*this)[ key.c_str() ];
-}
-
-Value &
-Value::operator[]( const StaticString &key )
-{
- return resolveReference( key, true );
-}
-
-
-# ifdef JSON_USE_CPPTL
-Value &
-Value::operator[]( const CppTL::ConstString &key )
-{
- return (*this)[ key.c_str() ];
-}
-
-
-const Value &
-Value::operator[]( const CppTL::ConstString &key ) const
-{
- return (*this)[ key.c_str() ];
-}
-# endif
-
-
-Value &
-Value::append( const Value &value )
-{
- return (*this)[size()] = value;
-}
-
-
-Value
-Value::get( const char *key,
- const Value &defaultValue ) const
-{
- const Value *value = &((*this)[key]);
- return value == &null ? defaultValue : *value;
-}
-
-
-Value
-Value::get( const std::string &key,
- const Value &defaultValue ) const
-{
- return get( key.c_str(), defaultValue );
-}
-
-Value
-Value::removeMember( const char* key )
-{
- JSON_ASSERT( type_ == nullValue || type_ == objectValue );
- if ( type_ == nullValue )
- return null;
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- CZString actualKey( key, CZString::noDuplication );
- ObjectValues::iterator it = value_.map_->find( actualKey );
- if ( it == value_.map_->end() )
- return null;
- Value old(it->second);
- value_.map_->erase(it);
- return old;
-#else
- Value *value = value_.map_->find( key );
- if (value){
- Value old(*value);
- value_.map_.remove( key );
- return old;
- } else {
- return null;
- }
-#endif
-}
-
-Value
-Value::removeMember( const std::string &key )
-{
- return removeMember( key.c_str() );
-}
-
-# ifdef JSON_USE_CPPTL
-Value
-Value::get( const CppTL::ConstString &key,
- const Value &defaultValue ) const
-{
- return get( key.c_str(), defaultValue );
-}
-# endif
-
-bool
-Value::isMember( const char *key ) const
-{
- const Value *value = &((*this)[key]);
- return value != &null;
-}
-
-
-bool
-Value::isMember( const std::string &key ) const
-{
- return isMember( key.c_str() );
-}
-
-
-# ifdef JSON_USE_CPPTL
-bool
-Value::isMember( const CppTL::ConstString &key ) const
-{
- return isMember( key.c_str() );
-}
-#endif
-
-Value::Members
-Value::getMemberNames() const
-{
- JSON_ASSERT( type_ == nullValue || type_ == objectValue );
- if ( type_ == nullValue )
- return Value::Members();
- Members members;
- members.reserve( value_.map_->size() );
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- ObjectValues::const_iterator it = value_.map_->begin();
- ObjectValues::const_iterator itEnd = value_.map_->end();
- for ( ; it != itEnd; ++it )
- members.push_back( std::string( (*it).first.c_str() ) );
-#else
- ValueInternalMap::IteratorState it;
- ValueInternalMap::IteratorState itEnd;
- value_.map_->makeBeginIterator( it );
- value_.map_->makeEndIterator( itEnd );
- for ( ; !ValueInternalMap::equals( it, itEnd ); ValueInternalMap::increment(it) )
- members.push_back( std::string( ValueInternalMap::key( it ) ) );
-#endif
- return members;
-}
-//
-//# ifdef JSON_USE_CPPTL
-//EnumMemberNames
-//Value::enumMemberNames() const
-//{
-// if ( type_ == objectValue )
-// {
-// return CppTL::Enum::any( CppTL::Enum::transform(
-// CppTL::Enum::keys( *(value_.map_), CppTL::Type<const CZString &>() ),
-// MemberNamesTransform() ) );
-// }
-// return EnumMemberNames();
-//}
-//
-//
-//EnumValues
-//Value::enumValues() const
-//{
-// if ( type_ == objectValue || type_ == arrayValue )
-// return CppTL::Enum::anyValues( *(value_.map_),
-// CppTL::Type<const Value &>() );
-// return EnumValues();
-//}
-//
-//# endif
-
-
-bool
-Value::isNull() const
-{
- return type_ == nullValue;
-}
-
-
-bool
-Value::isBool() const
-{
- return type_ == booleanValue;
-}
-
-
-bool
-Value::isInt() const
-{
- return type_ == intValue;
-}
-
-
-bool
-Value::isUInt() const
-{
- return type_ == uintValue;
-}
-
-
-bool
-Value::isIntegral() const
-{
- return type_ == intValue
- || type_ == uintValue
- || type_ == booleanValue;
-}
-
-
-bool
-Value::isDouble() const
-{
- return type_ == realValue;
-}
-
-
-bool
-Value::isNumeric() const
-{
- return isIntegral() || isDouble();
-}
-
-
-bool
-Value::isString() const
-{
- return type_ == stringValue;
-}
-
-
-bool
-Value::isArray() const
-{
- return type_ == nullValue || type_ == arrayValue;
-}
-
-
-bool
-Value::isObject() const
-{
- return type_ == nullValue || type_ == objectValue;
-}
-
-
-void
-Value::setComment( const char *comment,
- CommentPlacement placement )
-{
- if ( !comments_ )
- comments_ = new CommentInfo[numberOfCommentPlacement];
- comments_[placement].setComment( comment );
-}
-
-
-void
-Value::setComment( const std::string &comment,
- CommentPlacement placement )
-{
- setComment( comment.c_str(), placement );
-}
-
-
-bool
-Value::hasComment( CommentPlacement placement ) const
-{
- return comments_ != 0 && comments_[placement].comment_ != 0;
-}
-
-std::string
-Value::getComment( CommentPlacement placement ) const
-{
- if ( hasComment(placement) )
- return comments_[placement].comment_;
- return "";
-}
-
-
-std::string
-Value::toStyledString() const
-{
- StyledWriter writer;
- return writer.write( *this );
-}
-
-
-Value::const_iterator
-Value::begin() const
-{
- switch ( type_ )
- {
-#ifdef JSON_VALUE_USE_INTERNAL_MAP
- case arrayValue:
- if ( value_.array_ )
- {
- ValueInternalArray::IteratorState it;
- value_.array_->makeBeginIterator( it );
- return const_iterator( it );
- }
- break;
- case objectValue:
- if ( value_.map_ )
- {
- ValueInternalMap::IteratorState it;
- value_.map_->makeBeginIterator( it );
- return const_iterator( it );
- }
- break;
-#else
- case arrayValue:
- case objectValue:
- if ( value_.map_ )
- return const_iterator( value_.map_->begin() );
- break;
-#endif
- default:
- break;
- }
- return const_iterator();
-}
-
-Value::const_iterator
-Value::end() const
-{
- switch ( type_ )
- {
-#ifdef JSON_VALUE_USE_INTERNAL_MAP
- case arrayValue:
- if ( value_.array_ )
- {
- ValueInternalArray::IteratorState it;
- value_.array_->makeEndIterator( it );
- return const_iterator( it );
- }
- break;
- case objectValue:
- if ( value_.map_ )
- {
- ValueInternalMap::IteratorState it;
- value_.map_->makeEndIterator( it );
- return const_iterator( it );
- }
- break;
-#else
- case arrayValue:
- case objectValue:
- if ( value_.map_ )
- return const_iterator( value_.map_->end() );
- break;
-#endif
- default:
- break;
- }
- return const_iterator();
-}
-
-
-Value::iterator
-Value::begin()
-{
- switch ( type_ )
- {
-#ifdef JSON_VALUE_USE_INTERNAL_MAP
- case arrayValue:
- if ( value_.array_ )
- {
- ValueInternalArray::IteratorState it;
- value_.array_->makeBeginIterator( it );
- return iterator( it );
- }
- break;
- case objectValue:
- if ( value_.map_ )
- {
- ValueInternalMap::IteratorState it;
- value_.map_->makeBeginIterator( it );
- return iterator( it );
- }
- break;
-#else
- case arrayValue:
- case objectValue:
- if ( value_.map_ )
- return iterator( value_.map_->begin() );
- break;
-#endif
- default:
- break;
- }
- return iterator();
-}
-
-Value::iterator
-Value::end()
-{
- switch ( type_ )
- {
-#ifdef JSON_VALUE_USE_INTERNAL_MAP
- case arrayValue:
- if ( value_.array_ )
- {
- ValueInternalArray::IteratorState it;
- value_.array_->makeEndIterator( it );
- return iterator( it );
- }
- break;
- case objectValue:
- if ( value_.map_ )
- {
- ValueInternalMap::IteratorState it;
- value_.map_->makeEndIterator( it );
- return iterator( it );
- }
- break;
-#else
- case arrayValue:
- case objectValue:
- if ( value_.map_ )
- return iterator( value_.map_->end() );
- break;
-#endif
- default:
- break;
- }
- return iterator();
-}
-
-
-// class PathArgument
-// //////////////////////////////////////////////////////////////////
-
-PathArgument::PathArgument()
- : kind_( kindNone )
-{
-}
-
-
-PathArgument::PathArgument( Value::UInt index )
- : index_( index )
- , kind_( kindIndex )
-{
-}
-
-
-PathArgument::PathArgument( const char *key )
- : key_( key )
- , kind_( kindKey )
-{
-}
-
-
-PathArgument::PathArgument( const std::string &key )
- : key_( key.c_str() )
- , kind_( kindKey )
-{
-}
-
-// class Path
-// //////////////////////////////////////////////////////////////////
-
-Path::Path( const std::string &path,
- const PathArgument &a1,
- const PathArgument &a2,
- const PathArgument &a3,
- const PathArgument &a4,
- const PathArgument &a5 )
-{
- InArgs in;
- in.push_back( &a1 );
- in.push_back( &a2 );
- in.push_back( &a3 );
- in.push_back( &a4 );
- in.push_back( &a5 );
- makePath( path, in );
-}
-
-
-void
-Path::makePath( const std::string &path,
- const InArgs &in )
-{
- const char *current = path.c_str();
- const char *end = current + path.length();
- InArgs::const_iterator itInArg = in.begin();
- while ( current != end )
- {
- if ( *current == '[' )
- {
- ++current;
- if ( *current == '%' )
- addPathInArg( path, in, itInArg, PathArgument::kindIndex );
- else
- {
- Value::UInt index = 0;
- for ( ; current != end && *current >= '0' && *current <= '9'; ++current )
- index = index * 10 + Value::UInt(*current - '0');
- args_.push_back( index );
- }
- if ( current == end || *current++ != ']' )
- invalidPath( path, int(current - path.c_str()) );
- }
- else if ( *current == '%' )
- {
- addPathInArg( path, in, itInArg, PathArgument::kindKey );
- ++current;
- }
- else if ( *current == '.' )
- {
- ++current;
- }
- else
- {
- const char *beginName = current;
- while ( current != end && !strchr( "[.", *current ) )
- ++current;
- args_.push_back( std::string( beginName, current ) );
- }
- }
-}
-
-
-void
-Path::addPathInArg( const std::string &path,
- const InArgs &in,
- InArgs::const_iterator &itInArg,
- PathArgument::Kind kind )
-{
- if ( itInArg == in.end() )
- {
- // Error: missing argument %d
- }
- else if ( (*itInArg)->kind_ != kind )
- {
- // Error: bad argument type
- }
- else
- {
- args_.push_back( **itInArg );
- }
-}
-
-
-void
-Path::invalidPath( const std::string &path,
- int location )
-{
- // Error: invalid path.
-}
-
-
-const Value &
-Path::resolve( const Value &root ) const
-{
- const Value *node = &root;
- for ( Args::const_iterator it = args_.begin(); it != args_.end(); ++it )
- {
- const PathArgument &arg = *it;
- if ( arg.kind_ == PathArgument::kindIndex )
- {
- if ( !node->isArray() || node->isValidIndex( arg.index_ ) )
- {
- // Error: unable to resolve path (array value expected at position...
- }
- node = &((*node)[arg.index_]);
- }
- else if ( arg.kind_ == PathArgument::kindKey )
- {
- if ( !node->isObject() )
- {
- // Error: unable to resolve path (object value expected at position...)
- }
- node = &((*node)[arg.key_]);
- if ( node == &Value::null )
- {
- // Error: unable to resolve path (object has no member named '' at position...)
- }
- }
- }
- return *node;
-}
-
-
-Value
-Path::resolve( const Value &root,
- const Value &defaultValue ) const
-{
- const Value *node = &root;
- for ( Args::const_iterator it = args_.begin(); it != args_.end(); ++it )
- {
- const PathArgument &arg = *it;
- if ( arg.kind_ == PathArgument::kindIndex )
- {
- if ( !node->isArray() || node->isValidIndex( arg.index_ ) )
- return defaultValue;
- node = &((*node)[arg.index_]);
- }
- else if ( arg.kind_ == PathArgument::kindKey )
- {
- if ( !node->isObject() )
- return defaultValue;
- node = &((*node)[arg.key_]);
- if ( node == &Value::null )
- return defaultValue;
- }
- }
- return *node;
-}
-
-
-Value &
-Path::make( Value &root ) const
-{
- Value *node = &root;
- for ( Args::const_iterator it = args_.begin(); it != args_.end(); ++it )
- {
- const PathArgument &arg = *it;
- if ( arg.kind_ == PathArgument::kindIndex )
- {
- if ( !node->isArray() )
- {
- // Error: node is not an array at position ...
- }
- node = &((*node)[arg.index_]);
- }
- else if ( arg.kind_ == PathArgument::kindKey )
- {
- if ( !node->isObject() )
- {
- // Error: node is not an object at position...
- }
- node = &((*node)[arg.key_]);
- }
- }
- return *node;
-}
-
-
-} // namespace Json
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/json_valueiterator.inl
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/json_valueiterator.inl b/test/plugins/cordova.echo/src/blackberry/public/json_valueiterator.inl
deleted file mode 100644
index 736e260..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/json_valueiterator.inl
+++ /dev/null
@@ -1,292 +0,0 @@
-// included by json_value.cpp
-// everything is within Json namespace
-
-
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// class ValueIteratorBase
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-
-ValueIteratorBase::ValueIteratorBase()
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- : current_()
- , isNull_( true )
-{
-}
-#else
- : isArray_( true )
- , isNull_( true )
-{
- iterator_.array_ = ValueInternalArray::IteratorState();
-}
-#endif
-
-
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
-ValueIteratorBase::ValueIteratorBase( const Value::ObjectValues::iterator ¤t )
- : current_( current )
- , isNull_( false )
-{
-}
-#else
-ValueIteratorBase::ValueIteratorBase( const ValueInternalArray::IteratorState &state )
- : isArray_( true )
-{
- iterator_.array_ = state;
-}
-
-
-ValueIteratorBase::ValueIteratorBase( const ValueInternalMap::IteratorState &state )
- : isArray_( false )
-{
- iterator_.map_ = state;
-}
-#endif
-
-Value &
-ValueIteratorBase::deref() const
-{
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- return current_->second;
-#else
- if ( isArray_ )
- return ValueInternalArray::dereference( iterator_.array_ );
- return ValueInternalMap::value( iterator_.map_ );
-#endif
-}
-
-
-void
-ValueIteratorBase::increment()
-{
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- ++current_;
-#else
- if ( isArray_ )
- ValueInternalArray::increment( iterator_.array_ );
- ValueInternalMap::increment( iterator_.map_ );
-#endif
-}
-
-
-void
-ValueIteratorBase::decrement()
-{
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- --current_;
-#else
- if ( isArray_ )
- ValueInternalArray::decrement( iterator_.array_ );
- ValueInternalMap::decrement( iterator_.map_ );
-#endif
-}
-
-
-ValueIteratorBase::difference_type
-ValueIteratorBase::computeDistance( const SelfType &other ) const
-{
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
-# ifdef JSON_USE_CPPTL_SMALLMAP
- return current_ - other.current_;
-# else
- // Iterator for null value are initialized using the default
- // constructor, which initialize current_ to the default
- // std::map::iterator. As begin() and end() are two instance
- // of the default std::map::iterator, they can not be compared.
- // To allow this, we handle this comparison specifically.
- if ( isNull_ && other.isNull_ )
- {
- return 0;
- }
-
-
- // Usage of std::distance is not portable (does not compile with Sun Studio 12 RogueWave STL,
- // which is the one used by default).
- // Using a portable hand-made version for non random iterator instead:
- // return difference_type( std::distance( current_, other.current_ ) );
- difference_type myDistance = 0;
- for ( Value::ObjectValues::iterator it = current_; it != other.current_; ++it )
- {
- ++myDistance;
- }
- return myDistance;
-# endif
-#else
- if ( isArray_ )
- return ValueInternalArray::distance( iterator_.array_, other.iterator_.array_ );
- return ValueInternalMap::distance( iterator_.map_, other.iterator_.map_ );
-#endif
-}
-
-
-bool
-ValueIteratorBase::isEqual( const SelfType &other ) const
-{
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- if ( isNull_ )
- {
- return other.isNull_;
- }
- return current_ == other.current_;
-#else
- if ( isArray_ )
- return ValueInternalArray::equals( iterator_.array_, other.iterator_.array_ );
- return ValueInternalMap::equals( iterator_.map_, other.iterator_.map_ );
-#endif
-}
-
-
-void
-ValueIteratorBase::copy( const SelfType &other )
-{
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- current_ = other.current_;
-#else
- if ( isArray_ )
- iterator_.array_ = other.iterator_.array_;
- iterator_.map_ = other.iterator_.map_;
-#endif
-}
-
-
-Value
-ValueIteratorBase::key() const
-{
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- const Value::CZString czstring = (*current_).first;
- if ( czstring.c_str() )
- {
- if ( czstring.isStaticString() )
- return Value( StaticString( czstring.c_str() ) );
- return Value( czstring.c_str() );
- }
- return Value( czstring.index() );
-#else
- if ( isArray_ )
- return Value( ValueInternalArray::indexOf( iterator_.array_ ) );
- bool isStatic;
- const char *memberName = ValueInternalMap::key( iterator_.map_, isStatic );
- if ( isStatic )
- return Value( StaticString( memberName ) );
- return Value( memberName );
-#endif
-}
-
-
-UInt
-ValueIteratorBase::index() const
-{
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- const Value::CZString czstring = (*current_).first;
- if ( !czstring.c_str() )
- return czstring.index();
- return Value::UInt( -1 );
-#else
- if ( isArray_ )
- return Value::UInt( ValueInternalArray::indexOf( iterator_.array_ ) );
- return Value::UInt( -1 );
-#endif
-}
-
-
-const char *
-ValueIteratorBase::memberName() const
-{
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
- const char *name = (*current_).first.c_str();
- return name ? name : "";
-#else
- if ( !isArray_ )
- return ValueInternalMap::key( iterator_.map_ );
- return "";
-#endif
-}
-
-
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// class ValueConstIterator
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-
-ValueConstIterator::ValueConstIterator()
-{
-}
-
-
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
-ValueConstIterator::ValueConstIterator( const Value::ObjectValues::iterator ¤t )
- : ValueIteratorBase( current )
-{
-}
-#else
-ValueConstIterator::ValueConstIterator( const ValueInternalArray::IteratorState &state )
- : ValueIteratorBase( state )
-{
-}
-
-ValueConstIterator::ValueConstIterator( const ValueInternalMap::IteratorState &state )
- : ValueIteratorBase( state )
-{
-}
-#endif
-
-ValueConstIterator &
-ValueConstIterator::operator =( const ValueIteratorBase &other )
-{
- copy( other );
- return *this;
-}
-
-
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// class ValueIterator
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-// //////////////////////////////////////////////////////////////////
-
-ValueIterator::ValueIterator()
-{
-}
-
-
-#ifndef JSON_VALUE_USE_INTERNAL_MAP
-ValueIterator::ValueIterator( const Value::ObjectValues::iterator ¤t )
- : ValueIteratorBase( current )
-{
-}
-#else
-ValueIterator::ValueIterator( const ValueInternalArray::IteratorState &state )
- : ValueIteratorBase( state )
-{
-}
-
-ValueIterator::ValueIterator( const ValueInternalMap::IteratorState &state )
- : ValueIteratorBase( state )
-{
-}
-#endif
-
-ValueIterator::ValueIterator( const ValueConstIterator &other )
- : ValueIteratorBase( other )
-{
-}
-
-ValueIterator::ValueIterator( const ValueIterator &other )
- : ValueIteratorBase( other )
-{
-}
-
-ValueIterator &
-ValueIterator::operator =( const SelfType &other )
-{
- copy( other );
- return *this;
-}
[09/10] remove old tests. jasmine migration complete
Posted by fi...@apache.org.
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/multiple-children.js
----------------------------------------------------------------------
diff --git a/test/multiple-children.js b/test/multiple-children.js
deleted file mode 100644
index 6ecaf01..0000000
--- a/test/multiple-children.js
+++ /dev/null
@@ -1,132 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-// Test plugin.xml with multiple child elements
-var fs = require('fs')
- , path = require('path')
- , et = require('elementtree')
- , osenv = require('osenv')
- , shell = require('shelljs')
- , android = require(path.join(__dirname, '..', 'platforms', 'android'))
-
- , test_dir = path.join(osenv.tmpdir(), 'test_plugman')
- , test_project_dir = path.join(test_dir, 'projects', 'multiple-children')
- , test_plugin_dir = path.join(test_dir, 'plugins', 'multiple-children')
- , xml_path = path.join(test_dir, 'plugins', 'multiple-children', 'plugin.xml')
- , xml_text, plugin_et;
-
-exports.setUp = function(callback) {
- shell.mkdir('-p', test_dir);
-
- // copy the ios test project to a temp directory
- shell.cp('-r', path.join(__dirname, 'projects'), test_dir);
-
- // copy the ios test plugin to a temp directory
- shell.cp('-r', path.join(__dirname, 'plugins'), test_dir);
-
- // parse the plugin.xml into an elementtree object
- xml_text = fs.readFileSync(xml_path, 'utf-8')
- plugin_et = new et.ElementTree(et.XML(xml_text));
-
- callback();
-}
-
-exports.tearDown = function(callback) {
- // remove the temp files (projects and plugins)
- shell.rm('-rf', test_dir);
- callback();
-}
-
-exports['should install okay'] = function (test) {
- android.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et);
- test.done();
-}
-
-exports['should install all the uses-permission tags'] = function (test) {
- android.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et);
- var manifestPath = path.join(test_dir, 'projects', 'multiple-children', 'AndroidManifest.xml');
- var manifestTxt = fs.readFileSync(manifestPath, 'utf8'),
- mDoc = new et.ElementTree(et.XML(manifestTxt)),
- found, receive;
-
- found = mDoc.findall(usesPermission('READ_PHONE_STATE'))
- test.equal(found.length, 1, 'READ_PHONE_STATE permission');
-
- found = mDoc.findall(usesPermission('INTERNET'))
- test.equal(found.length, 1, 'INTERNET permission');
-
- found = mDoc.findall(usesPermission('GET_ACCOUNTS'))
- test.equal(found.length, 1, 'GET_ACCOUNTS permission');
-
- found = mDoc.findall(usesPermission('WAKE_LOCK'))
- test.equal(found.length, 1, 'WAKE_LOCK permission');
-
- receive = 'uses-permission[@android:name=' +
- '"com.google.android.c2dm.permission.RECEIVE"]';
- found = mDoc.findall(receive)
- test.equal(found.length, 1, 'RECEVIE permission');
-
- test.done();
-}
-
-exports['should interpolate the $PACKAGE_NAME correctly'] = function (test) {
- android.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et);
- var manifestPath = path.join(test_dir, 'projects', 'multiple-children', 'AndroidManifest.xml');
- var manifestTxt = fs.readFileSync(manifestPath, 'utf8'),
- mDoc = new et.ElementTree(et.XML(manifestTxt)),
- soughtEle;
-
- soughtEle = 'permission' +
- '[@android:name="com.alunny.childapp.permission.C2D_MESSAGE"]';
- test.equal(mDoc.findall(soughtEle).length, 1, soughtEle);
-
- soughtEle = 'uses-permission' +
- '[@android:name="com.alunny.childapp.permission.C2D_MESSAGE"]';
- test.equal(mDoc.findall(soughtEle).length, 1, soughtEle);
-
- /*
- <config-file target="AndroidManifest.xml" parent="/manifest/application">
- <receiver
- android:name="com.google.android.gcm.GCMBroadcastReceiver"
- android:permission="com.google.android.c2dm.permission.SEND">
- <intent-filter>
- <category android:name="$PACKAGE_NAME"/>
- */
- soughtEle = 'application/receiver/intent-filter/category' +
- '[@android:name="com.alunny.childapp"]';
- test.equal(mDoc.findall(soughtEle).length, 1, soughtEle);
-
- // TODO: fix bug in equalNodes
- soughtEle = 'application/activity/intent-filter/action' +
- '[@android:name="com.alunny.childapp.MESSAGE"]';
- test.equal(mDoc.findall(soughtEle).length, 1, soughtEle);
-
- /*
- <config-file target="AndroidManifest.xml" parent="/manifest/application/activity">
- <intent-filter>
- <action android:name="$PACKAGE_NAME.MESSAGE"/>
-
- */
- test.done();
-}
-
-function usesPermission(name) {
- return 'uses-permission[@android:name="android.permission.' + name + '"]';
-}
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/multiple-children/project/AndroidManifest.xml
----------------------------------------------------------------------
diff --git a/test/multiple-children/project/AndroidManifest.xml b/test/multiple-children/project/AndroidManifest.xml
deleted file mode 100644
index ced2d50..0000000
--- a/test/multiple-children/project/AndroidManifest.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version='1.0' encoding='utf-8'?>
-<!--
-
- Copyright 2013 Anis Kadri
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-
-<manifest android:versionCode="5" android:versionName="1.1" android:windowSoftInputMode="adjustPan" package="com.alunny.childapp" xmlns:android="http://schemas.android.com/apk/res/android">
 <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /><uses-permission android:name="android.permission.CAMERA" /><uses-permission android:name="android.permission.VIBRATE" /><uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /><uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /><uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" /><uses-permission android:name="android.permission.INTERNET" /><uses-permission android:name="android.permission.RECEIVE_SMS" /><uses-permission android:name="android.permission.RECORD_AUDIO" /><uses-permission android:name="android.permission.RECORD_VIDEO" /
><uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /><uses-permission android:name="android.permission.READ_CONTACTS" /><uses-permission android:name="android.permission.WRITE_CONTACTS" /><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /><uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /><uses-permission android:name="android.permission.GET_ACCOUNTS" /><uses-permission android:name="android.permission.BROADCAST_STICKY" /><uses-feature android:name="android.hardware.camera" /><uses-feature android:name="android.hardware.camera.autofocus" /><application android:debuggable="true" android:icon="@drawable/icon" android:label="@string/app_name">
 <activity android:configChanges="orientation|keyboardHidden" android:label="@string/app_name" android:name="ChildApp">
 <intent-filter>
 <action android:name="android.intent.action.MAIN" /><category android:name="android.intent.category.LAUNCHER" /></intent-
filter><intent-filter>
 <action android:name="com.alunny.childapp.MESSAGE" /><category android:name="android.intent.category.DEFAULT" /></intent-filter></activity><activity android:configChanges="orientation|keyboardHidden" android:label="@string/app_name" android:name="com.phonegap.DroidGap">
 <intent-filter>
 </intent-filter></activity><activity android:name="com.arellomobile.android.push.PushWebview" /><activity android:name="com.arellomobile.android.push.MessageActivity" /><activity android:name="com.arellomobile.android.push.PushHandlerActivity" /><receiver android:name="com.google.android.gcm.GCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
 <intent-filter>
 
 <action android:name="com.google.android.c2dm.intent.RECEIVE" /><action android:name="com.google.android.c2dm.intent.REGISTRATION" /><category android:name="com.alunny.childapp" /></intent-filter></receiver><service android:name="com
.arellomobile.android.push.PushGCMIntentService" /></application><uses-sdk android:minSdkVersion="5" /><uses-permission android:name="android.permission.READ_PHONE_STATE" /><uses-permission android:name="android.permission.WAKE_LOCK" /><permission android:name="com.alunny.childapp.permission.C2D_MESSAGE" android:protectionLevel="signature" /><uses-permission android:name="com.alunny.childapp.permission.C2D_MESSAGE" /><uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /></manifest>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/.gitkeep
----------------------------------------------------------------------
diff --git a/test/plugins/.gitkeep b/test/plugins/.gitkeep
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/android/ChildBrowser.java
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/android/ChildBrowser.java b/test/plugins/ChildBrowser/src/android/ChildBrowser.java
deleted file mode 100644
index 5263b0c..0000000
--- a/test/plugins/ChildBrowser/src/android/ChildBrowser.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/arrow_left.png
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/arrow_left.png b/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/arrow_left.png
deleted file mode 100644
index 530e12b..0000000
Binary files a/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/arrow_left.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/arrow_left@2x.png
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/arrow_left@2x.png b/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/arrow_left@2x.png
deleted file mode 100644
index 530e12b..0000000
Binary files a/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/arrow_left@2x.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/arrow_right.png
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/arrow_right.png b/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/arrow_right.png
deleted file mode 100644
index 8b3d855..0000000
Binary files a/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/arrow_right.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/arrow_right@2x.png
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/arrow_right@2x.png b/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/arrow_right@2x.png
deleted file mode 100644
index 8b3d855..0000000
Binary files a/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/arrow_right@2x.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/but_refresh.png
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/but_refresh.png b/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/but_refresh.png
deleted file mode 100644
index 309b6bd..0000000
Binary files a/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/but_refresh.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/but_refresh@2x.png
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/but_refresh@2x.png b/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/but_refresh@2x.png
deleted file mode 100644
index 309b6bd..0000000
Binary files a/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/but_refresh@2x.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/compass.png
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/compass.png b/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/compass.png
deleted file mode 100644
index 46a8901..0000000
Binary files a/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/compass.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/compass@2x.png
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/compass@2x.png b/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/compass@2x.png
deleted file mode 100644
index 46a8901..0000000
Binary files a/test/plugins/ChildBrowser/src/ios/ChildBrowser.bundle/compass@2x.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/ios/ChildBrowserCommand.h
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/ios/ChildBrowserCommand.h b/test/plugins/ChildBrowser/src/ios/ChildBrowserCommand.h
deleted file mode 100644
index 6a23ab6..0000000
--- a/test/plugins/ChildBrowser/src/ios/ChildBrowserCommand.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-//
-// PhoneGap ! ChildBrowserCommand
-//
-//
-// Created by Jesse MacFadyen on 10-05-29.
-// Copyright 2010 Nitobi. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#ifdef PHONEGAP_FRAMEWORK
- #import <PhoneGap/PGPlugin.h>
-#else
- #import "PGPlugin.h"
-#endif
-#import "ChildBrowserViewController.h"
-
-
-
-@interface ChildBrowserCommand : PGPlugin <ChildBrowserDelegate> {
-
- ChildBrowserViewController* childBrowser;
-}
-
-@property (nonatomic, retain) ChildBrowserViewController *childBrowser;
-
-
-- (void) showWebPage:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
--(void) onChildLocationChange:(NSString*)newLoc;
-
-@end
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/ios/ChildBrowserCommand.m
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/ios/ChildBrowserCommand.m b/test/plugins/ChildBrowser/src/ios/ChildBrowserCommand.m
deleted file mode 100644
index 38aaf64..0000000
--- a/test/plugins/ChildBrowser/src/ios/ChildBrowserCommand.m
+++ /dev/null
@@ -1,86 +0,0 @@
-//
-
-//
-//
-// Created by Jesse MacFadyen on 10-05-29.
-// Copyright 2010 Nitobi. All rights reserved.
-// Copyright (c) 2011, IBM Corporation
-// Copyright 2011, Randy McMillan
-//
-
-#import "ChildBrowserCommand.h"
-
-#ifdef PHONEGAP_FRAMEWORK
- #import <PhoneGap/PhoneGapViewController.h>
-#else
- #import "PhoneGapViewController.h"
-#endif
-
-
-@implementation ChildBrowserCommand
-
-@synthesize childBrowser;
-
-- (void) showWebPage:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options // args: url
-{
-
- if(childBrowser == NULL)
- {
- childBrowser = [[ ChildBrowserViewController alloc ] initWithScale:FALSE ];
- childBrowser.delegate = self;
- }
-
-/* // TODO: Work in progress
- NSString* strOrientations = [ options objectForKey:@"supportedOrientations"];
- NSArray* supportedOrientations = [strOrientations componentsSeparatedByString:@","];
-*/
- PhoneGapViewController* cont = (PhoneGapViewController*)[ super appViewController ];
- childBrowser.supportedOrientations = cont.supportedOrientations;
-
- if ([cont respondsToSelector:@selector(presentViewController)]) {
- //Reference UIViewController.h Line:179 for update to iOS 5 difference - @RandyMcMillan
- [cont presentViewController:childBrowser animated:YES completion:nil];
- } else {
- [ cont presentModalViewController:childBrowser animated:YES ];
- }
-
- NSString *url = (NSString*) [arguments objectAtIndex:0];
-
- [childBrowser loadURL:url ];
-
-}
-
--(void) close:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options // args: url
-{
- [ childBrowser closeBrowser];
-
-}
-
--(void) onClose
-{
- NSString* jsCallback = [NSString stringWithFormat:@"ChildBrowser._onClose();",@""];
- [self.webView stringByEvaluatingJavaScriptFromString:jsCallback];
-}
-
--(void) onOpenInSafari
-{
- NSString* jsCallback = [NSString stringWithFormat:@"ChildBrowser._onOpenExternal();",@""];
- [self.webView stringByEvaluatingJavaScriptFromString:jsCallback];
-}
-
-
--(void) onChildLocationChange:(NSString*)newLoc
-{
-
- NSString* tempLoc = [NSString stringWithFormat:@"%@",newLoc];
- NSString* encUrl = [tempLoc stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
-
- NSString* jsCallback = [NSString stringWithFormat:@"ChildBrowser._onLocationChange('%@');",encUrl];
- [self.webView stringByEvaluatingJavaScriptFromString:jsCallback];
-
-}
-
-
-
-
-@end
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/ios/ChildBrowserViewController.h
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/ios/ChildBrowserViewController.h b/test/plugins/ChildBrowser/src/ios/ChildBrowserViewController.h
deleted file mode 100644
index d6fc139..0000000
--- a/test/plugins/ChildBrowser/src/ios/ChildBrowserViewController.h
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-//
-// ChildBrowserViewController.h
-//
-// Created by Jesse MacFadyen on 21/07/09.
-// Copyright 2009 Nitobi. All rights reserved.
-//
-
-#import <UIKit/UIKit.h>
-
-@protocol ChildBrowserDelegate<NSObject>
-
-
-
-/*
- * onChildLocationChanging:newLoc
- *
- * Discussion:
- * Invoked when a new page has loaded
- */
--(void) onChildLocationChange:(NSString*)newLoc;
--(void) onOpenInSafari;
--(void) onClose;
-@end
-
-
-@interface ChildBrowserViewController : UIViewController < UIWebViewDelegate > {
- IBOutlet UIWebView* webView;
- IBOutlet UIBarButtonItem* closeBtn;
- IBOutlet UIBarButtonItem* refreshBtn;
- IBOutlet UILabel* addressLabel;
- IBOutlet UIBarButtonItem* backBtn;
- IBOutlet UIBarButtonItem* fwdBtn;
- IBOutlet UIBarButtonItem* safariBtn;
- IBOutlet UIActivityIndicatorView* spinner;
- BOOL scaleEnabled;
- BOOL isImage;
- NSString* imageURL;
- NSArray* supportedOrientations;
- id <ChildBrowserDelegate> delegate;
-}
-
-@property (nonatomic, retain)id <ChildBrowserDelegate> delegate;
-@property (nonatomic, retain) NSArray* supportedOrientations;
-@property(retain) NSString* imageURL;
-@property(assign) BOOL isImage;
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation;
-- (ChildBrowserViewController*)initWithScale:(BOOL)enabled;
-- (IBAction)onDoneButtonPress:(id)sender;
-- (IBAction)onSafariButtonPress:(id)sender;
-- (void)loadURL:(NSString*)url;
--(void)closeBrowser;
-
-@end
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/ios/ChildBrowserViewController.m
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/ios/ChildBrowserViewController.m b/test/plugins/ChildBrowser/src/ios/ChildBrowserViewController.m
deleted file mode 100644
index 167ef98..0000000
--- a/test/plugins/ChildBrowser/src/ios/ChildBrowserViewController.m
+++ /dev/null
@@ -1,239 +0,0 @@
-//
-// ChildBrowserViewController.m
-//
-// Created by Jesse MacFadyen on 21/07/09.
-// Copyright 2009 Nitobi. All rights reserved.
-// Copyright (c) 2011, IBM Corporation
-// Copyright 2011, Randy McMillan
-//
-
-#import "ChildBrowserViewController.h"
-
-
-@implementation ChildBrowserViewController
-
-@synthesize imageURL;
-@synthesize supportedOrientations;
-@synthesize isImage;
-@synthesize delegate;
-
-/*
- // The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
-- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
- if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
- // Custom initialization
- }
- return self;
-}
-*/
-
-+ (NSString*) resolveImageResource:(NSString*)resource
-{
- NSString* systemVersion = [[UIDevice currentDevice] systemVersion];
- BOOL isLessThaniOS4 = ([systemVersion compare:@"4.0" options:NSNumericSearch] == NSOrderedAscending);
-
- // the iPad image (nor retina) differentiation code was not in 3.x, and we have to explicitly set the path
- if (isLessThaniOS4)
- {
- return [NSString stringWithFormat:@"%@.png", resource];
- }
-
- return resource;
-}
-
-
-- (ChildBrowserViewController*)initWithScale:(BOOL)enabled
-{
- self = [super init];
-
-
- scaleEnabled = enabled;
-
- return self;
-}
-
-// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
-- (void)viewDidLoad {
- [super viewDidLoad];
-
- refreshBtn.image = [UIImage imageNamed:[[self class] resolveImageResource:@"ChildBrowser.bundle/but_refresh"]];
- backBtn.image = [UIImage imageNamed:[[self class] resolveImageResource:@"ChildBrowser.bundle/arrow_left"]];
- fwdBtn.image = [UIImage imageNamed:[[self class] resolveImageResource:@"ChildBrowser.bundle/arrow_right"]];
- safariBtn.image = [UIImage imageNamed:[[self class] resolveImageResource:@"ChildBrowser.bundle/compass"]];
-
- webView.delegate = self;
- webView.scalesPageToFit = TRUE;
- webView.backgroundColor = [UIColor whiteColor];
- NSLog(@"View did load");
-}
-
-
-
-
-
-- (void)didReceiveMemoryWarning {
- // Releases the view if it doesn't have a superview.
- [super didReceiveMemoryWarning];
-
- // Release any cached data, images, etc that aren't in use.
-}
-
-- (void)viewDidUnload {
- // Release any retained subviews of the main view.
- // e.g. self.myOutlet = nil;
- NSLog(@"View did UN-load");
-}
-
-
-- (void)dealloc {
-
- webView.delegate = nil;
-
- [webView release];
- [closeBtn release];
- [refreshBtn release];
- [addressLabel release];
- [backBtn release];
- [fwdBtn release];
- [safariBtn release];
- [spinner release];
- [ supportedOrientations release];
- [super dealloc];
-}
-
--(void)closeBrowser
-{
-
- if(delegate != NULL)
- {
- [delegate onClose];
- }
- if ([self respondsToSelector:@selector(presentingViewController)]) {
- //Reference UIViewController.h Line:179 for update to iOS 5 difference - @RandyMcMillan
- [[self presentingViewController] dismissViewControllerAnimated:YES completion:nil];
- } else {
- [[self parentViewController] dismissModalViewControllerAnimated:YES];
- }
-}
-
--(IBAction) onDoneButtonPress:(id)sender
-{
- [ self closeBrowser];
-
- NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"about:blank"]];
- [webView loadRequest:request];
-}
-
-
--(IBAction) onSafariButtonPress:(id)sender
-{
-
- if(delegate != NULL)
- {
- [delegate onOpenInSafari];
- }
-
- if(isImage)
- {
- NSURL* pURL = [[ [NSURL alloc] initWithString:imageURL ] autorelease];
- [ [ UIApplication sharedApplication ] openURL:pURL ];
- }
- else
- {
- NSURLRequest *request = webView.request;
- [[UIApplication sharedApplication] openURL:request.URL];
- }
-
-
-}
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation
-{
- BOOL autoRotate = [self.supportedOrientations count] > 1; // autorotate if only more than 1 orientation supported
- if (autoRotate)
- {
- if ([self.supportedOrientations containsObject:
- [NSNumber numberWithInt:interfaceOrientation]]) {
- return YES;
- }
- }
-
- return NO;
-}
-
-
-
-
-- (void)loadURL:(NSString*)url
-{
- NSLog(@"Opening Url : %@",url);
-
- if( [url hasSuffix:@".png" ] ||
- [url hasSuffix:@".jpg" ] ||
- [url hasSuffix:@".jpeg" ] ||
- [url hasSuffix:@".bmp" ] ||
- [url hasSuffix:@".gif" ] )
- {
- [ imageURL release ];
- imageURL = [url copy];
- isImage = YES;
- NSString* htmlText = @"<html><body style='background-color:#333;margin:0px;padding:0px;'><img style='min-height:200px;margin:0px;padding:0px;width:100%;height:auto;' alt='' src='IMGSRC'/></body></html>";
- htmlText = [ htmlText stringByReplacingOccurrencesOfString:@"IMGSRC" withString:url ];
-
- [webView loadHTMLString:htmlText baseURL:[NSURL URLWithString:@""]];
-
- }
- else
- {
- imageURL = @"";
- isImage = NO;
- NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:url]];
- [webView loadRequest:request];
- }
- webView.hidden = NO;
-}
-
-
-- (void)webViewDidStartLoad:(UIWebView *)sender {
- addressLabel.text = @"Loading...";
- backBtn.enabled = webView.canGoBack;
- fwdBtn.enabled = webView.canGoForward;
-
- [ spinner startAnimating ];
-
-}
-
-- (void)webViewDidFinishLoad:(UIWebView *)sender
-{
- NSURLRequest *request = webView.request;
- NSLog(@"New Address is : %@",request.URL.absoluteString);
- addressLabel.text = request.URL.absoluteString;
- backBtn.enabled = webView.canGoBack;
- fwdBtn.enabled = webView.canGoForward;
- [ spinner stopAnimating ];
-
- if(delegate != NULL)
- {
- [delegate onChildLocationChange:request.URL.absoluteString];
- }
-
-}
-
-- (void)webView:(UIWebView *)wv didFailLoadWithError:(NSError *)error {
- NSLog (@"webView:didFailLoadWithError");
- [spinner stopAnimating];
- addressLabel.text = @"Failed";
- if (error != NULL) {
- UIAlertView *errorAlert = [[UIAlertView alloc]
- initWithTitle: [error localizedDescription]
- message: [error localizedFailureReason]
- delegate:nil
- cancelButtonTitle:@"OK"
- otherButtonTitles:nil];
- [errorAlert show];
- [errorAlert release];
- }
-}
-
-
-@end
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/ios/ChildBrowserViewController.xib
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/ios/ChildBrowserViewController.xib b/test/plugins/ChildBrowser/src/ios/ChildBrowserViewController.xib
deleted file mode 100644
index cc8dd65..0000000
--- a/test/plugins/ChildBrowser/src/ios/ChildBrowserViewController.xib
+++ /dev/null
@@ -1,875 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
- <data>
- <int key="IBDocument.SystemTarget">768</int>
- <string key="IBDocument.SystemVersion">10K540</string>
- <string key="IBDocument.InterfaceBuilderVersion">851</string>
- <string key="IBDocument.AppKitVersion">1038.36</string>
- <string key="IBDocument.HIToolboxVersion">461.00</string>
- <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
- <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string key="NS.object.0">141</string>
- </object>
- <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
- <object class="NSArray" key="IBDocument.PluginDependencies">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- </object>
- <object class="NSMutableDictionary" key="IBDocument.Metadata">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys" id="0">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
- </object>
- <object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBProxyObject" id="372490531">
- <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- </object>
- <object class="IBProxyObject" id="975951072">
- <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- </object>
- <object class="IBUIView" id="191373211">
- <nil key="NSNextResponder"/>
- <int key="NSvFlags">292</int>
- <object class="NSMutableArray" key="NSSubviews">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBUIWebView" id="345761693">
- <reference key="NSNextResponder" ref="191373211"/>
- <int key="NSvFlags">-2147483374</int>
- <string key="NSFrameSize">{480, 229}</string>
- <reference key="NSSuperview" ref="191373211"/>
- <reference key="NSNextKeyView" ref="471899933"/>
- <object class="NSColor" key="IBUIBackgroundColor">
- <int key="NSColorSpace">1</int>
- <bytes key="NSRGB">MCAwIDAAA</bytes>
- </object>
- <bool key="IBUIClipsSubviews">YES</bool>
- <bool key="IBUIMultipleTouchEnabled">YES</bool>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <int key="IBUIDataDetectorTypes">1</int>
- <bool key="IBUIDetectsPhoneNumbers">YES</bool>
- </object>
- <object class="IBUIToolbar" id="471899933">
- <reference key="NSNextResponder" ref="191373211"/>
- <int key="NSvFlags">266</int>
- <string key="NSFrame">{{0, 256}, {480, 44}}</string>
- <reference key="NSSuperview" ref="191373211"/>
- <reference key="NSNextKeyView" ref="349240355"/>
- <bool key="IBUIOpaque">NO</bool>
- <bool key="IBUIClearsContextBeforeDrawing">NO</bool>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <int key="IBUIBarStyle">1</int>
- <object class="NSMutableArray" key="IBUIItems">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBUIBarButtonItem" id="966737436">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <int key="IBUIStyle">1</int>
- <reference key="IBUIToolbar" ref="471899933"/>
- <int key="IBUISystemItemIdentifier">0</int>
- </object>
- <object class="IBUIBarButtonItem" id="312951844">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <reference key="IBUIToolbar" ref="471899933"/>
- <int key="IBUISystemItemIdentifier">5</int>
- </object>
- <object class="IBUIBarButtonItem" id="615970053">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <reference key="IBUIToolbar" ref="471899933"/>
- </object>
- <object class="IBUIBarButtonItem" id="111711024">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <reference key="IBUIToolbar" ref="471899933"/>
- <int key="IBUISystemItemIdentifier">5</int>
- </object>
- <object class="IBUIBarButtonItem" id="227415391">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <float key="IBUIWidth">32</float>
- <reference key="IBUIToolbar" ref="471899933"/>
- </object>
- <object class="IBUIBarButtonItem" id="766205236">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <reference key="IBUIToolbar" ref="471899933"/>
- <int key="IBUISystemItemIdentifier">5</int>
- </object>
- <object class="IBUIBarButtonItem" id="283287216">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <float key="IBUIWidth">32</float>
- <reference key="IBUIToolbar" ref="471899933"/>
- </object>
- <object class="IBUIBarButtonItem" id="129413107">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <reference key="IBUIToolbar" ref="471899933"/>
- <int key="IBUISystemItemIdentifier">5</int>
- </object>
- <object class="IBUIBarButtonItem" id="1046195837">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <float key="IBUIWidth">32</float>
- <reference key="IBUIToolbar" ref="471899933"/>
- </object>
- <object class="IBUIBarButtonItem" id="667527307">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <reference key="IBUIToolbar" ref="471899933"/>
- <int key="IBUISystemItemIdentifier">5</int>
- </object>
- </object>
- </object>
- <object class="IBUILabel" id="349240355">
- <reference key="NSNextResponder" ref="191373211"/>
- <int key="NSvFlags">270</int>
- <string key="NSFrame">{{5, 230}, {418, 21}}</string>
- <reference key="NSSuperview" ref="191373211"/>
- <reference key="NSNextKeyView" ref="89602979"/>
- <object class="NSColor" key="IBUIBackgroundColor">
- <int key="NSColorSpace">4</int>
- <bytes key="NSWhite">MC42NjY2NjY2OSAwAA</bytes>
- </object>
- <bool key="IBUIOpaque">NO</bool>
- <bool key="IBUIClipsSubviews">YES</bool>
- <bool key="IBUIUserInteractionEnabled">NO</bool>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <string key="IBUIText">Loading...</string>
- <object class="NSFont" key="IBUIFont">
- <string key="NSName">Helvetica</string>
- <double key="NSSize">13</double>
- <int key="NSfFlags">16</int>
- </object>
- <object class="NSColor" key="IBUITextColor">
- <int key="NSColorSpace">3</int>
- <bytes key="NSWhite">MQA</bytes>
- </object>
- <nil key="IBUIHighlightedColor"/>
- <int key="IBUIBaselineAdjustment">1</int>
- <bool key="IBUIAdjustsFontSizeToFit">NO</bool>
- <float key="IBUIMinimumFontSize">10</float>
- </object>
- <object class="IBUIActivityIndicatorView" id="89602979">
- <reference key="NSNextResponder" ref="191373211"/>
- <int key="NSvFlags">-2147483383</int>
- <string key="NSFrame">{{454, 231}, {20, 20}}</string>
- <reference key="NSSuperview" ref="191373211"/>
- <bool key="IBUIOpaque">NO</bool>
- <bool key="IBUIClearsContextBeforeDrawing">NO</bool>
- <bool key="IBUIUserInteractionEnabled">NO</bool>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- </object>
- </object>
- <string key="NSFrame">{{0, 20}, {480, 300}}</string>
- <reference key="NSNextKeyView" ref="345761693"/>
- <object class="NSColor" key="IBUIBackgroundColor">
- <int key="NSColorSpace">3</int>
- <bytes key="NSWhite">MC41AA</bytes>
- <object class="NSColorSpace" key="NSCustomColorSpace">
- <int key="NSID">2</int>
- </object>
- </object>
- <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
- <object class="IBUISimulatedOrientationMetrics" key="IBUISimulatedOrientationMetrics">
- <int key="interfaceOrientation">3</int>
- </object>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- </object>
- </object>
- <object class="IBObjectContainer" key="IBDocument.Objects">
- <object class="NSMutableArray" key="connectionRecords">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">webView</string>
- <reference key="source" ref="372490531"/>
- <reference key="destination" ref="345761693"/>
- </object>
- <int key="connectionID">17</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">addressLabel</string>
- <reference key="source" ref="372490531"/>
- <reference key="destination" ref="349240355"/>
- </object>
- <int key="connectionID">18</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">backBtn</string>
- <reference key="source" ref="372490531"/>
- <reference key="destination" ref="227415391"/>
- </object>
- <int key="connectionID">19</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">fwdBtn</string>
- <reference key="source" ref="372490531"/>
- <reference key="destination" ref="283287216"/>
- </object>
- <int key="connectionID">22</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">refreshBtn</string>
- <reference key="source" ref="372490531"/>
- <reference key="destination" ref="615970053"/>
- </object>
- <int key="connectionID">23</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchEventConnection" key="connection">
- <string key="label">onDoneButtonPress:</string>
- <reference key="source" ref="966737436"/>
- <reference key="destination" ref="372490531"/>
- </object>
- <int key="connectionID">26</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchEventConnection" key="connection">
- <string key="label">reload</string>
- <reference key="source" ref="615970053"/>
- <reference key="destination" ref="345761693"/>
- </object>
- <int key="connectionID">27</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchEventConnection" key="connection">
- <string key="label">goBack</string>
- <reference key="source" ref="227415391"/>
- <reference key="destination" ref="345761693"/>
- </object>
- <int key="connectionID">28</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchEventConnection" key="connection">
- <string key="label">goForward</string>
- <reference key="source" ref="283287216"/>
- <reference key="destination" ref="345761693"/>
- </object>
- <int key="connectionID">29</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchEventConnection" key="connection">
- <string key="label">onSafariButtonPress:</string>
- <reference key="source" ref="1046195837"/>
- <reference key="destination" ref="372490531"/>
- </object>
- <int key="connectionID">31</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">view</string>
- <reference key="source" ref="372490531"/>
- <reference key="destination" ref="191373211"/>
- </object>
- <int key="connectionID">35</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">spinner</string>
- <reference key="source" ref="372490531"/>
- <reference key="destination" ref="89602979"/>
- </object>
- <int key="connectionID">36</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">safariBtn</string>
- <reference key="source" ref="372490531"/>
- <reference key="destination" ref="1046195837"/>
- </object>
- <int key="connectionID">40</int>
- </object>
- </object>
- <object class="IBMutableOrderedSet" key="objectRecords">
- <object class="NSArray" key="orderedObjects">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBObjectRecord">
- <int key="objectID">0</int>
- <reference key="object" ref="0"/>
- <reference key="children" ref="1000"/>
- <nil key="parent"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">1</int>
- <reference key="object" ref="191373211"/>
- <object class="NSMutableArray" key="children">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <reference ref="471899933"/>
- <reference ref="349240355"/>
- <reference ref="89602979"/>
- <reference ref="345761693"/>
- </object>
- <reference key="parent" ref="0"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">-1</int>
- <reference key="object" ref="372490531"/>
- <reference key="parent" ref="0"/>
- <string key="objectName">File's Owner</string>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">-2</int>
- <reference key="object" ref="975951072"/>
- <reference key="parent" ref="0"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">4</int>
- <reference key="object" ref="345761693"/>
- <reference key="parent" ref="191373211"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">6</int>
- <reference key="object" ref="471899933"/>
- <object class="NSMutableArray" key="children">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <reference ref="966737436"/>
- <reference ref="615970053"/>
- <reference ref="227415391"/>
- <reference ref="283287216"/>
- <reference ref="1046195837"/>
- <reference ref="111711024"/>
- <reference ref="129413107"/>
- <reference ref="312951844"/>
- <reference ref="667527307"/>
- <reference ref="766205236"/>
- </object>
- <reference key="parent" ref="191373211"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">7</int>
- <reference key="object" ref="966737436"/>
- <reference key="parent" ref="471899933"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">8</int>
- <reference key="object" ref="615970053"/>
- <reference key="parent" ref="471899933"/>
- <string key="objectName">Bar Button Item (Reload)</string>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">9</int>
- <reference key="object" ref="227415391"/>
- <reference key="parent" ref="471899933"/>
- <string key="objectName">Bar Button Item (Go Back)</string>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">10</int>
- <reference key="object" ref="283287216"/>
- <reference key="parent" ref="471899933"/>
- <string key="objectName">Bar Button Item (Go Forward)</string>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">11</int>
- <reference key="object" ref="1046195837"/>
- <reference key="parent" ref="471899933"/>
- <string key="objectName">Bar Button Item (Safari)</string>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">13</int>
- <reference key="object" ref="349240355"/>
- <reference key="parent" ref="191373211"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">14</int>
- <reference key="object" ref="111711024"/>
- <reference key="parent" ref="471899933"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">15</int>
- <reference key="object" ref="129413107"/>
- <reference key="parent" ref="471899933"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">32</int>
- <reference key="object" ref="89602979"/>
- <reference key="parent" ref="191373211"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">37</int>
- <reference key="object" ref="312951844"/>
- <reference key="parent" ref="471899933"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">38</int>
- <reference key="object" ref="667527307"/>
- <reference key="parent" ref="471899933"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">39</int>
- <reference key="object" ref="766205236"/>
- <reference key="parent" ref="471899933"/>
- </object>
- </object>
- </object>
- <object class="NSMutableDictionary" key="flattenedProperties">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>-1.CustomClassName</string>
- <string>-2.CustomClassName</string>
- <string>1.IBEditorWindowLastContentRect</string>
- <string>1.IBPluginDependency</string>
- <string>10.IBPluginDependency</string>
- <string>11.IBPluginDependency</string>
- <string>13.IBPluginDependency</string>
- <string>13.IBViewBoundsToFrameTransform</string>
- <string>14.IBPluginDependency</string>
- <string>15.IBPluginDependency</string>
- <string>32.IBPluginDependency</string>
- <string>32.IBViewBoundsToFrameTransform</string>
- <string>37.IBPluginDependency</string>
- <string>38.IBPluginDependency</string>
- <string>39.IBPluginDependency</string>
- <string>4.IBPluginDependency</string>
- <string>4.IBViewBoundsToFrameTransform</string>
- <string>6.IBPluginDependency</string>
- <string>6.IBViewBoundsToFrameTransform</string>
- <string>7.IBPluginDependency</string>
- <string>8.IBPluginDependency</string>
- <string>9.IBPluginDependency</string>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>ChildBrowserViewController</string>
- <string>UIResponder</string>
- <string>{{250, 643}, {480, 320}}</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <object class="NSAffineTransform">
- <bytes key="NSTransformStruct">P4AAAL+AAABCoAAAwygAAA</bytes>
- </object>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <object class="NSAffineTransform">
- <bytes key="NSTransformStruct">P4AAAL+AAABD5gAAw3kAAA</bytes>
- </object>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <object class="NSAffineTransform">
- <bytes key="NSTransformStruct">P4AAAL+AAABB8AAAwwUAAA</bytes>
- </object>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <object class="NSAffineTransform">
- <bytes key="NSTransformStruct">P4AAAL+AAAAAAAAAw10AAA</bytes>
- </object>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- </object>
- </object>
- <object class="NSMutableDictionary" key="unlocalizedProperties">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <reference key="dict.sortedKeys" ref="0"/>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
- </object>
- <nil key="activeLocalization"/>
- <object class="NSMutableDictionary" key="localizations">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <reference key="dict.sortedKeys" ref="0"/>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
- </object>
- <nil key="sourceID"/>
- <int key="maxID">40</int>
- </object>
- <object class="IBClassDescriber" key="IBDocument.Classes">
- <object class="NSMutableArray" key="referencedPartialClassDescriptions">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBPartialClassDescription">
- <string key="className">ChildBrowserViewController</string>
- <string key="superclassName">UIViewController</string>
- <object class="NSMutableDictionary" key="actions">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>onDoneButtonPress:</string>
- <string>onSafariButtonPress:</string>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>id</string>
- <string>id</string>
- </object>
- </object>
- <object class="NSMutableDictionary" key="actionInfosByName">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>onDoneButtonPress:</string>
- <string>onSafariButtonPress:</string>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBActionInfo">
- <string key="name">onDoneButtonPress:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo">
- <string key="name">onSafariButtonPress:</string>
- <string key="candidateClassName">id</string>
- </object>
- </object>
- </object>
- <object class="NSMutableDictionary" key="outlets">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>addressLabel</string>
- <string>backBtn</string>
- <string>closeBtn</string>
- <string>delegate</string>
- <string>fwdBtn</string>
- <string>refreshBtn</string>
- <string>safariBtn</string>
- <string>spinner</string>
- <string>webView</string>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>UILabel</string>
- <string>UIBarButtonItem</string>
- <string>UIBarButtonItem</string>
- <string>id</string>
- <string>UIBarButtonItem</string>
- <string>UIBarButtonItem</string>
- <string>UIBarButtonItem</string>
- <string>UIActivityIndicatorView</string>
- <string>UIWebView</string>
- </object>
- </object>
- <object class="NSMutableDictionary" key="toOneOutletInfosByName">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>addressLabel</string>
- <string>backBtn</string>
- <string>closeBtn</string>
- <string>delegate</string>
- <string>fwdBtn</string>
- <string>refreshBtn</string>
- <string>safariBtn</string>
- <string>spinner</string>
- <string>webView</string>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBToOneOutletInfo">
- <string key="name">addressLabel</string>
- <string key="candidateClassName">UILabel</string>
- </object>
- <object class="IBToOneOutletInfo">
- <string key="name">backBtn</string>
- <string key="candidateClassName">UIBarButtonItem</string>
- </object>
- <object class="IBToOneOutletInfo">
- <string key="name">closeBtn</string>
- <string key="candidateClassName">UIBarButtonItem</string>
- </object>
- <object class="IBToOneOutletInfo">
- <string key="name">delegate</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBToOneOutletInfo">
- <string key="name">fwdBtn</string>
- <string key="candidateClassName">UIBarButtonItem</string>
- </object>
- <object class="IBToOneOutletInfo">
- <string key="name">refreshBtn</string>
- <string key="candidateClassName">UIBarButtonItem</string>
- </object>
- <object class="IBToOneOutletInfo">
- <string key="name">safariBtn</string>
- <string key="candidateClassName">UIBarButtonItem</string>
- </object>
- <object class="IBToOneOutletInfo">
- <string key="name">spinner</string>
- <string key="candidateClassName">UIActivityIndicatorView</string>
- </object>
- <object class="IBToOneOutletInfo">
- <string key="name">webView</string>
- <string key="candidateClassName">UIWebView</string>
- </object>
- </object>
- </object>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">Plugins/ChildBrowser/ChildBrowserViewController.h</string>
- </object>
- </object>
- </object>
- <object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSError.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSFileManager.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSKeyValueCoding.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSKeyValueObserving.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSKeyedArchiver.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSObject.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSRunLoop.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSThread.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSURL.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSURLConnection.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">QuartzCore.framework/Headers/CAAnimation.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">QuartzCore.framework/Headers/CALayer.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIAccessibility.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UINibLoading.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier" id="485348283">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIResponder.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIActivityIndicatorView</string>
- <string key="superclassName">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIActivityIndicatorView.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIBarButtonItem</string>
- <string key="superclassName">UIBarItem</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIBarButtonItem.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIBarItem</string>
- <string key="superclassName">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIBarItem.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UILabel</string>
- <string key="superclassName">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UILabel.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIResponder</string>
- <string key="superclassName">NSObject</string>
- <reference key="sourceIdentifier" ref="485348283"/>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UISearchBar</string>
- <string key="superclassName">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UISearchBar.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UISearchDisplayController</string>
- <string key="superclassName">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UISearchDisplayController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIToolbar</string>
- <string key="superclassName">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIToolbar.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIPrintFormatter.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UITextField.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIView</string>
- <string key="superclassName">UIResponder</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIView.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">MediaPlayer.framework/Headers/MPMoviePlayerViewController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UINavigationController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIPopoverController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UISplitViewController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UITabBarController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <string key="superclassName">UIResponder</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIViewController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIWebView</string>
- <string key="superclassName">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIWebView.h</string>
- </object>
- </object>
- </object>
- </object>
- <int key="IBDocument.localizationMode">0</int>
- <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencies">
- <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
- <integer value="768" key="NS.object.0"/>
- </object>
- <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
- <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
- <integer value="1056" key="NS.object.0"/>
- </object>
- <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
- <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
- <integer value="3000" key="NS.object.0"/>
- </object>
- <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
- <nil key="IBDocument.LastKnownRelativeProjectPath"/>
- <int key="IBDocument.defaultPropertyAccessControl">3</int>
- <string key="IBCocoaTouchPluginVersion">141</string>
- </data>
-</archive>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/ios/TargetDirTest.h
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/ios/TargetDirTest.h b/test/plugins/ChildBrowser/src/ios/TargetDirTest.h
deleted file mode 100644
index 60a1403..0000000
--- a/test/plugins/ChildBrowser/src/ios/TargetDirTest.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/ios/TargetDirTest.m
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/ios/TargetDirTest.m b/test/plugins/ChildBrowser/src/ios/TargetDirTest.m
deleted file mode 100644
index 8d1c8b6..0000000
--- a/test/plugins/ChildBrowser/src/ios/TargetDirTest.m
+++ /dev/null
@@ -1 +0,0 @@
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/ios/preserveDirs/PreserveDirsTest.h
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/ios/preserveDirs/PreserveDirsTest.h b/test/plugins/ChildBrowser/src/ios/preserveDirs/PreserveDirsTest.h
deleted file mode 100644
index 60a1403..0000000
--- a/test/plugins/ChildBrowser/src/ios/preserveDirs/PreserveDirsTest.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/ios/preserveDirs/PreserveDirsTest.m
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/ios/preserveDirs/PreserveDirsTest.m b/test/plugins/ChildBrowser/src/ios/preserveDirs/PreserveDirsTest.m
deleted file mode 100644
index 8d1c8b6..0000000
--- a/test/plugins/ChildBrowser/src/ios/preserveDirs/PreserveDirsTest.m
+++ /dev/null
@@ -1 +0,0 @@
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/wp7/ChildBrowserCommand.cs
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/wp7/ChildBrowserCommand.cs b/test/plugins/ChildBrowser/src/wp7/ChildBrowserCommand.cs
deleted file mode 100644
index 5ba37b5..0000000
--- a/test/plugins/ChildBrowser/src/wp7/ChildBrowserCommand.cs
+++ /dev/null
@@ -1,197 +0,0 @@
-using System;
-using System.Net;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-using Microsoft.Phone.Controls;
-using System.Diagnostics;
-using System.Runtime.Serialization;
-using Microsoft.Phone.Shell;
-
-namespace WPCordovaClassLib.Cordova.Commands
-{
- [DataContract]
- internal class _BrowserOptions
- {
- [DataMember]
- public string url;
-
- [DataMember]
- public bool isGeolocationEnabled;
- }
-
- public class ChildBrowserCommand : BaseCommand
- {
-
- private static WebBrowser browser;
- private static ApplicationBarIconButton backButton;
- private static ApplicationBarIconButton fwdButton;
-
- // Display an inderminate progress indicator
- public void showWebPage(string options)
- {
- _BrowserOptions opts = JSON.JsonHelper.Deserialize<_BrowserOptions>(options);
-
- Uri loc = new Uri(opts.url);
-
- Deployment.Current.Dispatcher.BeginInvoke(() =>
- {
- if (browser != null)
- {
- browser.IsGeolocationEnabled = opts.isGeolocationEnabled;
- browser.Navigate(loc);
- }
- else
- {
- PhoneApplicationFrame frame = Application.Current.RootVisual as PhoneApplicationFrame;
- if (frame != null)
- {
- PhoneApplicationPage page = frame.Content as PhoneApplicationPage;
- if (page != null)
- {
- Grid grid = page.FindName("LayoutRoot") as Grid;
- if (grid != null)
- {
- browser = new WebBrowser();
- browser.Navigate(loc);
-
- browser.LoadCompleted += new System.Windows.Navigation.LoadCompletedEventHandler(browser_LoadCompleted);
-
- browser.Navigating += new EventHandler<NavigatingEventArgs>(browser_Navigating);
- browser.NavigationFailed += new System.Windows.Navigation.NavigationFailedEventHandler(browser_NavigationFailed);
- browser.Navigated += new EventHandler<System.Windows.Navigation.NavigationEventArgs>(browser_Navigated);
- browser.IsScriptEnabled = true;
- browser.IsGeolocationEnabled = opts.isGeolocationEnabled;
- grid.Children.Add(browser);
- }
-
- ApplicationBar bar = new ApplicationBar();
- bar.BackgroundColor = Colors.Black;
- bar.IsMenuEnabled = false;
-
- backButton = new ApplicationBarIconButton();
- backButton.Text = "Back";
- backButton.IconUri = new Uri("/Images/appbar.back.rest.png", UriKind.Relative);
- backButton.Click += new EventHandler(backButton_Click);
- backButton.IsEnabled = false;
- bar.Buttons.Add(backButton);
-
-
- fwdButton = new ApplicationBarIconButton();
- fwdButton.Text = "Forward";
- fwdButton.IconUri = new Uri("/Images/appbar.next.rest.png", UriKind.Relative);
- fwdButton.Click += new EventHandler(fwdButton_Click);
- fwdButton.IsEnabled = false;
- bar.Buttons.Add(fwdButton);
-
- ApplicationBarIconButton closeBtn = new ApplicationBarIconButton();
- closeBtn.Text = "Close";
- closeBtn.IconUri = new Uri("/Images/appbar.close.rest.png", UriKind.Relative);
- closeBtn.Click += new EventHandler(closeBtn_Click);
- bar.Buttons.Add(closeBtn);
-
- page.ApplicationBar = bar;
- }
-
- }
- }
- });
- }
-
- void browser_LoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs e)
- {
-
- }
-
- void fwdButton_Click(object sender, EventArgs e)
- {
- if (browser != null)
- {
- try
- {
- browser.InvokeScript("execScript", "history.forward();");
- }
- catch(Exception)
- {
-
- }
- }
- }
-
- void backButton_Click(object sender, EventArgs e)
- {
- if (browser != null)
- {
- try
- {
- browser.InvokeScript("execScript", "history.back();");
- }
- catch (Exception)
- {
-
- }
- }
- }
-
- void closeBtn_Click(object sender, EventArgs e)
- {
- this.close();
- }
-
-
- public void close(string options="")
- {
- if (browser != null)
- {
- Deployment.Current.Dispatcher.BeginInvoke(() =>
- {
- PhoneApplicationFrame frame = Application.Current.RootVisual as PhoneApplicationFrame;
- if (frame != null)
- {
- PhoneApplicationPage page = frame.Content as PhoneApplicationPage;
- if (page != null)
- {
- Grid grid = page.FindName("LayoutRoot") as Grid;
- if (grid != null)
- {
- grid.Children.Remove(browser);
- }
- page.ApplicationBar = null;
- }
- }
- browser = null;
- });
- }
- }
-
- void browser_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
- {
- string message = "{\"type\":\"locationChanged\", \"location\":\"" + e.Uri.AbsoluteUri + "\"}";
- PluginResult result = new PluginResult(PluginResult.Status.OK, message);
- result.KeepCallback = true;
- this.DispatchCommandResult(result);
- }
-
- void browser_NavigationFailed(object sender, System.Windows.Navigation.NavigationFailedEventArgs e)
- {
- string message = "{\"type\":\"navigationError\",\"location\":\"" + e.Uri.AbsoluteUri + "\"}";
- PluginResult result = new PluginResult(PluginResult.Status.ERROR, message);
- result.KeepCallback = true;
- this.DispatchCommandResult(result);
- }
-
- void browser_Navigating(object sender, NavigatingEventArgs e)
- {
- string message = "{\"type\":\"locationAboutToChange\",\"location\":\"" + e.Uri.AbsoluteUri + "\"}";
- PluginResult result = new PluginResult(PluginResult.Status.OK, message);
- result.KeepCallback = true;
- this.DispatchCommandResult(result);
- }
-
- }
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/wp7/Images/appbar.back.rest.png
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/wp7/Images/appbar.back.rest.png b/test/plugins/ChildBrowser/src/wp7/Images/appbar.back.rest.png
deleted file mode 100644
index 4bc2b92..0000000
Binary files a/test/plugins/ChildBrowser/src/wp7/Images/appbar.back.rest.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/wp7/Images/appbar.close.rest.png
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/wp7/Images/appbar.close.rest.png b/test/plugins/ChildBrowser/src/wp7/Images/appbar.close.rest.png
deleted file mode 100644
index 8166a1c..0000000
Binary files a/test/plugins/ChildBrowser/src/wp7/Images/appbar.close.rest.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/src/wp7/Images/appbar.next.rest.png
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/src/wp7/Images/appbar.next.rest.png b/test/plugins/ChildBrowser/src/wp7/Images/appbar.next.rest.png
deleted file mode 100644
index ed577d7..0000000
Binary files a/test/plugins/ChildBrowser/src/wp7/Images/appbar.next.rest.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/www/childbrowser.js
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/www/childbrowser.js b/test/plugins/ChildBrowser/www/childbrowser.js
deleted file mode 100644
index 5263b0c..0000000
--- a/test/plugins/ChildBrowser/www/childbrowser.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/www/childbrowser/image.jpg
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/www/childbrowser/image.jpg b/test/plugins/ChildBrowser/www/childbrowser/image.jpg
deleted file mode 100644
index 257cc56..0000000
--- a/test/plugins/ChildBrowser/www/childbrowser/image.jpg
+++ /dev/null
@@ -1 +0,0 @@
-foo
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/ChildBrowser/www/childbrowser_file.html
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/www/childbrowser_file.html b/test/plugins/ChildBrowser/www/childbrowser_file.html
deleted file mode 100644
index 6de7b8c..0000000
--- a/test/plugins/ChildBrowser/www/childbrowser_file.html
+++ /dev/null
@@ -1 +0,0 @@
-This is a test file.
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/DummyPlugin/plugin.xml
----------------------------------------------------------------------
diff --git a/test/plugins/DummyPlugin/plugin.xml b/test/plugins/DummyPlugin/plugin.xml
deleted file mode 100644
index d1bf38c..0000000
--- a/test/plugins/DummyPlugin/plugin.xml
+++ /dev/null
@@ -1,100 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Copyright 2013 Anis Kadri
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-
-<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
- xmlns:android="http://schemas.android.com/apk/res/android"
- id="com.phonegap.plugins.dummyplugin"
- version="0.6.0">
-
- <name>Dummy Plugin</name>
-
- <asset src="www/dummyplugin.js" target="dummyplugin.js" />
- <asset src="www/dummyplugin" target="dummyplugin" />
-
- <access origin="build.phonegap.com" />
- <access origin="s3.amazonaws.com" />
-
- <!-- android -->
- <platform name="android">
- <config-file target="AndroidManifest.xml" parent="/manifest/application">
- <activity android:name="com.phonegap.plugins.dummyplugin.DummyPlugin"
- android:label="@string/app_name">
- <intent-filter>
- </intent-filter>
- </activity>
- </config-file>
-
- <!-- CDV < 2.0 -->
- <config-file target="res/xml/plugins.xml" parent="/plugins">
- <plugin name="DummyPlugin"
- value="com.phonegap.plugins.dummyplugin.DummyPlugin"/>
- </config-file>
-
- <!-- CDV 2.0+ (for now) -->
- <config-file target="res/xml/config.xml" parent="/cordova/plugins">
- <plugin name="DummyPlugin"
- value="com.phonegap.plugins.dummyplugin.DummyPlugin"/>
- </config-file>
-
- <source-file src="src/android/DummyPlugin.java"
- target-dir="src/com/phonegap/plugins/dummyplugin" />
- </platform>
-
- <!-- blackberry -->
- <platform name="blackberry">
- <config-file target="config.xml" parent="/widget">
- <feature id="dummyPlugin" required="true" version="1.0.0.0"/>
- </config-file>
-
- <source-file src="src/blackberry/client.js" target-dir="ext-qnx/cordova.echo" />
- <source-file src="src/blackberry/index.js" target-dir="ext-qnx/cordova.echo" />
- <source-file src="src/blackberry/manifest.json" target-dir="ext-qnx/cordova.echo" />
- </platform>
-
-
- <!-- ios -->
- <platform name="ios">
- <!-- CDV < 2.4 -->
- <plugins-plist key="com.phonegap.plugins.dummyplugin"
- string="DummyPluginCommand" />
-
- <!-- CDV 2.5+ -->
- <config-file target="config.xml" parent="/widget/plugins">
- <plugin name="DummyPlugin"
- value="DummyPluginCommand"/>
- </config-file>
-
- <resource-file src="DummyPlugin.bundle" />
- <resource-file src="DummyPluginViewController.xib" />
-
- <header-file src="DummyPluginCommand.h" />
- <header-file src="DummyPluginViewController.h" />
- <header-file src="preserveDirs/PreserveDirsTest.h" preserve-dirs="true" />
- <header-file src="TargetDirTest.h" target-dir="targetDir"/>
-
- <source-file src="DummyPluginCommand.m" />
- <source-file src="DummyPluginViewController.m" />
- <source-file src="preserveDirs/PreserveDirsTest.m" preserve-dirs="true" />
- <header-file src="TargetDirTest.m" target-dir="targetDir"/>
-
- <!-- framework for testing (not actual dependency of DummyPlugin -->
- <framework src="libsqlite3.dylib" />
- </platform>
-</plugin>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/DummyPlugin/src/android/DummyPlugin.java
----------------------------------------------------------------------
diff --git a/test/plugins/DummyPlugin/src/android/DummyPlugin.java b/test/plugins/DummyPlugin/src/android/DummyPlugin.java
deleted file mode 100644
index 5263b0c..0000000
--- a/test/plugins/DummyPlugin/src/android/DummyPlugin.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
[08/10] remove old tests. jasmine migration complete
Posted by fi...@apache.org.
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/DummyPlugin/src/blackberry/client.js
----------------------------------------------------------------------
diff --git a/test/plugins/DummyPlugin/src/blackberry/client.js b/test/plugins/DummyPlugin/src/blackberry/client.js
deleted file mode 100644
index 5263b0c..0000000
--- a/test/plugins/DummyPlugin/src/blackberry/client.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/DummyPlugin/src/blackberry/index.js
----------------------------------------------------------------------
diff --git a/test/plugins/DummyPlugin/src/blackberry/index.js b/test/plugins/DummyPlugin/src/blackberry/index.js
deleted file mode 100644
index 5263b0c..0000000
--- a/test/plugins/DummyPlugin/src/blackberry/index.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/DummyPlugin/src/blackberry/manifest.json
----------------------------------------------------------------------
diff --git a/test/plugins/DummyPlugin/src/blackberry/manifest.json b/test/plugins/DummyPlugin/src/blackberry/manifest.json
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/DummyPlugin/www/dummyplugin.js
----------------------------------------------------------------------
diff --git a/test/plugins/DummyPlugin/www/dummyplugin.js b/test/plugins/DummyPlugin/www/dummyplugin.js
deleted file mode 100644
index 5263b0c..0000000
--- a/test/plugins/DummyPlugin/www/dummyplugin.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/DummyPlugin/www/dummyplugin/image.jpg
----------------------------------------------------------------------
diff --git a/test/plugins/DummyPlugin/www/dummyplugin/image.jpg b/test/plugins/DummyPlugin/www/dummyplugin/image.jpg
deleted file mode 100644
index 257cc56..0000000
--- a/test/plugins/DummyPlugin/www/dummyplugin/image.jpg
+++ /dev/null
@@ -1 +0,0 @@
-foo
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/FaultyPlugin/plugin.xml
----------------------------------------------------------------------
diff --git a/test/plugins/FaultyPlugin/plugin.xml b/test/plugins/FaultyPlugin/plugin.xml
deleted file mode 100644
index 26473d2..0000000
--- a/test/plugins/FaultyPlugin/plugin.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Copyright 2013 Anis Kadri
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-
-<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
- xmlns:android="http://schemas.android.com/apk/res/android"
- id="com.phonegap.plugins.faultyplugin"
- version="0.6.0">
-
- <name>Faulty Plugin</name>
-
- <access origin="build.phonegap.com" />
- <access origin="s3.amazonaws.com" />
-
- <!-- android -->
- <platform name="android">
- <config-file target="AndroidManifest.xml" parent="/manifest/application">
- <activity android:name="com.phonegap.plugins.faultyplugin.FaultyPlugin"
- android:label="@string/app_name">
- <intent-filter>
- </intent-filter>
- </activity>
- </config-file>
-
- <!-- CDV < 2.0 -->
- <config-file target="res/xml/plugins.xml" parent="/plugins">
- <plugin name="FaultyPlugin"
- value="com.phonegap.plugins.faultyplugin.FaultyPlugin"/>
- </config-file>
-
- <!-- CDV 2.0+ (for now) -->
- <config-file target="res/xml/config.xml" parent="/cordova/plugins">
- <plugin name="FaultyPlugin"
- value="com.phonegap.plugins.faultyplugin.FaultyPlugin"/>
- </config-file>
-
- <source-file src="src/android/FaultyPlugin.java"
- target-dir="src/com/phonegap/plugins/faultyplugin" />
- </platform>
-
- <!-- ios -->
- <platform name="ios">
- <!-- /cordova/plugins no longer exists, it is now /widget/plugins -->
- <!-- this should fail to install on ios -->
- <config-file target="config.xml" parent="/cordova/plugins">
- <plugin name="FaultyPlugin"
- value="FaultyPlugin"/>
- </config-file>
-
- <header-file src="src/ios/FaultyPlugin.h" />
- <source-file src="src/ios/FaultyPlugin.m" />
- <!-- these files don't exist -->
- <header-file src="src/ios/FaultyPluginCommand.h" />
- <source-file src="src/ios/FaultyPluginCommand.m" />
-
- </platform>
-</plugin>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/FaultyPlugin/src/android/FaultyPlugin.java
----------------------------------------------------------------------
diff --git a/test/plugins/FaultyPlugin/src/android/FaultyPlugin.java b/test/plugins/FaultyPlugin/src/android/FaultyPlugin.java
deleted file mode 100644
index 5263b0c..0000000
--- a/test/plugins/FaultyPlugin/src/android/FaultyPlugin.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/FaultyPlugin/src/ios/FaultyPlugin.h
----------------------------------------------------------------------
diff --git a/test/plugins/FaultyPlugin/src/ios/FaultyPlugin.h b/test/plugins/FaultyPlugin/src/ios/FaultyPlugin.h
deleted file mode 100644
index 6a23ab6..0000000
--- a/test/plugins/FaultyPlugin/src/ios/FaultyPlugin.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-//
-// PhoneGap ! ChildBrowserCommand
-//
-//
-// Created by Jesse MacFadyen on 10-05-29.
-// Copyright 2010 Nitobi. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#ifdef PHONEGAP_FRAMEWORK
- #import <PhoneGap/PGPlugin.h>
-#else
- #import "PGPlugin.h"
-#endif
-#import "ChildBrowserViewController.h"
-
-
-
-@interface ChildBrowserCommand : PGPlugin <ChildBrowserDelegate> {
-
- ChildBrowserViewController* childBrowser;
-}
-
-@property (nonatomic, retain) ChildBrowserViewController *childBrowser;
-
-
-- (void) showWebPage:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
--(void) onChildLocationChange:(NSString*)newLoc;
-
-@end
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/FaultyPlugin/src/ios/FaultyPlugin.m
----------------------------------------------------------------------
diff --git a/test/plugins/FaultyPlugin/src/ios/FaultyPlugin.m b/test/plugins/FaultyPlugin/src/ios/FaultyPlugin.m
deleted file mode 100644
index 38aaf64..0000000
--- a/test/plugins/FaultyPlugin/src/ios/FaultyPlugin.m
+++ /dev/null
@@ -1,86 +0,0 @@
-//
-
-//
-//
-// Created by Jesse MacFadyen on 10-05-29.
-// Copyright 2010 Nitobi. All rights reserved.
-// Copyright (c) 2011, IBM Corporation
-// Copyright 2011, Randy McMillan
-//
-
-#import "ChildBrowserCommand.h"
-
-#ifdef PHONEGAP_FRAMEWORK
- #import <PhoneGap/PhoneGapViewController.h>
-#else
- #import "PhoneGapViewController.h"
-#endif
-
-
-@implementation ChildBrowserCommand
-
-@synthesize childBrowser;
-
-- (void) showWebPage:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options // args: url
-{
-
- if(childBrowser == NULL)
- {
- childBrowser = [[ ChildBrowserViewController alloc ] initWithScale:FALSE ];
- childBrowser.delegate = self;
- }
-
-/* // TODO: Work in progress
- NSString* strOrientations = [ options objectForKey:@"supportedOrientations"];
- NSArray* supportedOrientations = [strOrientations componentsSeparatedByString:@","];
-*/
- PhoneGapViewController* cont = (PhoneGapViewController*)[ super appViewController ];
- childBrowser.supportedOrientations = cont.supportedOrientations;
-
- if ([cont respondsToSelector:@selector(presentViewController)]) {
- //Reference UIViewController.h Line:179 for update to iOS 5 difference - @RandyMcMillan
- [cont presentViewController:childBrowser animated:YES completion:nil];
- } else {
- [ cont presentModalViewController:childBrowser animated:YES ];
- }
-
- NSString *url = (NSString*) [arguments objectAtIndex:0];
-
- [childBrowser loadURL:url ];
-
-}
-
--(void) close:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options // args: url
-{
- [ childBrowser closeBrowser];
-
-}
-
--(void) onClose
-{
- NSString* jsCallback = [NSString stringWithFormat:@"ChildBrowser._onClose();",@""];
- [self.webView stringByEvaluatingJavaScriptFromString:jsCallback];
-}
-
--(void) onOpenInSafari
-{
- NSString* jsCallback = [NSString stringWithFormat:@"ChildBrowser._onOpenExternal();",@""];
- [self.webView stringByEvaluatingJavaScriptFromString:jsCallback];
-}
-
-
--(void) onChildLocationChange:(NSString*)newLoc
-{
-
- NSString* tempLoc = [NSString stringWithFormat:@"%@",newLoc];
- NSString* encUrl = [tempLoc stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
-
- NSString* jsCallback = [NSString stringWithFormat:@"ChildBrowser._onLocationChange('%@');",encUrl];
- [self.webView stringByEvaluatingJavaScriptFromString:jsCallback];
-
-}
-
-
-
-
-@end
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WebNotifications/plugin.xml
----------------------------------------------------------------------
diff --git a/test/plugins/WebNotifications/plugin.xml b/test/plugins/WebNotifications/plugin.xml
deleted file mode 100644
index d6528a0..0000000
--- a/test/plugins/WebNotifications/plugin.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Copyright 2013 Anis Kadri
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-
-<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
- xmlns:android="http://schemas.android.com/apk/res/android"
- id="com.phonegap.plugins.webnotifications"
- version="0.0.1">
-
- <name>Web Notifications</name>
-
- <asset src="www/webnotifications.js" target="webnotifications.js" />
-
- <access origin="build.phonegap.com" />
- <access origin="s3.amazonaws.com" />
-
- <!-- ios -->
- <platform name="ios">
- <config-file target="config.xml" parent="/widget/plugins">
- <plugin name="WebNotifications"
- value="WebNotifications"/>
- </config-file>
-
- <header-file src="src/ios/WebNotifications.h" />
-
- <source-file src="src/ios/WebNotifications.m" />
-
- </platform>
-</plugin>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WebNotifications/src/ios/AppDelegate.m.diff
----------------------------------------------------------------------
diff --git a/test/plugins/WebNotifications/src/ios/AppDelegate.m.diff b/test/plugins/WebNotifications/src/ios/AppDelegate.m.diff
deleted file mode 100644
index 30a557c..0000000
--- a/test/plugins/WebNotifications/src/ios/AppDelegate.m.diff
+++ /dev/null
@@ -1,18 +0,0 @@
-- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification
-{
- // Note: if app wasn't running, you can still get a LN and then it doesn't call this function,
- // I think it calls app start but notifies you that LN caused the app start or something like that.
-
- //UIApplicationState state = [application applicationState];
- //BOOL wasForeground = (state == UIApplicationStateActive);
-
- //NSString *title = [notification.userInfo objectForKey:@"title"];
- //NSString *body = [notification.userInfo objectForKey:@"body"];
- NSString *tag = [notification.userInfo objectForKey:@"tag"];
-
- [(WebNotifications*)[self.viewController getCommandInstance:@"WebNotifications"] clickNofification:tag];
-
- application.applicationIconBadgeNumber = 0;
- application.scheduledLocalNotifications = [NSArray arrayWithArray:application.scheduledLocalNotifications]; // "hack" to clear seen notifications
-}
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WebNotifications/src/ios/WebNotifications.h
----------------------------------------------------------------------
diff --git a/test/plugins/WebNotifications/src/ios/WebNotifications.h b/test/plugins/WebNotifications/src/ios/WebNotifications.h
deleted file mode 100644
index f0f158d..0000000
--- a/test/plugins/WebNotifications/src/ios/WebNotifications.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import <Foundation/Foundation.h>
-#import <Cordova/CDVPlugin.h>
-
-@interface WebNotifications : CDVPlugin {
-}
-
-@property (nonatomic, strong) NSMutableArray* activeNotifications;
-
-- (CDVPlugin*)initWithWebView:(UIWebView*)theWebView;
-
-- (void)createNotification:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
-- (void)closeNotification:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
-
-- (void)clickNofification:(NSString*)tag;
-
-@end
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WebNotifications/src/ios/WebNotifications.m
----------------------------------------------------------------------
diff --git a/test/plugins/WebNotifications/src/ios/WebNotifications.m b/test/plugins/WebNotifications/src/ios/WebNotifications.m
deleted file mode 100644
index 46f9f55..0000000
--- a/test/plugins/WebNotifications/src/ios/WebNotifications.m
+++ /dev/null
@@ -1,124 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#define Log(fmt, ...) NSLog((@"%d: %s " fmt), __LINE__, __PRETTY_FUNCTION__, ##__VA_ARGS__);
-
-#import "WebNotifications.h"
-#import "MainViewController.h"
-
-@implementation WebNotifications
-
-@synthesize activeNotifications;
-
-- (CDVPlugin*)initWithWebView:(UIWebView*)theWebView
-{
- self = [super init];
- if (self) {
- self.activeNotifications = [NSMutableArray array];
- }
- return self;
-}
-
-- (void)createNotification:(CDVInvokedUrlCommand*)command
-{
- NSDictionary* options = [command.arguments objectAtIndex:0];
-
- // w3c options:
- NSString *title = [options objectForKey:@"title"];
- NSString *body = [options objectForKey:@"body"];
- NSString *tag = [options objectForKey:@"tag"];
- //NSString *iconUrl = [options objectForKey:@"iconUrl"]; // Not supported
-
- // cordova option extensions:
- NSUInteger delay = [[options objectForKey:@"delay"] unsignedIntegerValue];
- NSString *soundUrl = [options objectForKey:@"soundUrl"];
- NSInteger badgeNumber = [[options objectForKey:@"badgeNumber"] intValue];
-
- Log(@"addNotification title: %@ body: %@ tag: %@ delay: %u badge: %u", title, body, tag, delay, badgeNumber);
-
- //NSString *action = [options objectForKey:@"action"];
- //bool hasAction = ([[options objectForKey:@"hasAction"] intValue] == 1) ? YES : NO;
- //alertAction
-
- UILocalNotification *notif = [[UILocalNotification alloc] init];
- notif.alertBody = [NSString stringWithFormat:@"[%@] %@: %@", tag, title, body];
- notif.timeZone = [NSTimeZone defaultTimeZone];
-
- notif.soundName = soundUrl;
- notif.applicationIconBadgeNumber = badgeNumber;
-
- NSDictionary *userDict = [NSDictionary dictionaryWithObjectsAndKeys:title,@"title",body,@"body",tag,@"tag",nil];
- notif.userInfo = userDict;
-
- if (delay != 0) {
- notif.fireDate = [[NSDate date] addTimeInterval:delay];
- //notif.repeatInterval = [[repeatDict objectForKey: repeat] intValue];
-
- [[UIApplication sharedApplication] scheduleLocalNotification:notif];
- } else {
- [[UIApplication sharedApplication] presentLocalNotificationNow:notif];
- }
-
- [self.activeNotifications addObject:notif];
-}
-
-- (void)closeNotification:(CDVInvokedUrlCommand*)command
-{
-// command.callbackId;
- NSDictionary* options = [command.arguments objectAtIndex:0];
- NSString *tag = [options objectForKey:@"tag"];
-
- NSArray *notifications = [[UIApplication sharedApplication] scheduledLocalNotifications];
- for (UILocalNotification *notification in notifications) {
- if ([[notification.userInfo objectForKey:@"tag"] isEqualToString:tag]) {
- Log(@"Cancelling notification with tag: %@", tag);
- [[UIApplication sharedApplication] cancelLocalNotification:notification];
- [self.activeNotifications removeObject:notification];
- [self.commandDelegate sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsInt:0] callbackId:command.callbackId];
- }
- }
- [self.commandDelegate sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsInt:0] callbackId:command.callbackId];
-}
-
-- (void)clickNofification:(NSString*)tag {
- NSString *jsCallBack;
-
- jsCallBack = [NSString stringWithFormat:@"window.Notification.callOnclickByTag('%@')", tag];
- [((CDVViewController*)self.viewController).webView stringByEvaluatingJavaScriptFromString:jsCallBack];
-
- NSArray *scheduledNotifications = [[UIApplication sharedApplication] scheduledLocalNotifications];
- NSMutableArray *toDiscard = [NSMutableArray array];
- for (UILocalNotification *notification in self.activeNotifications) {
- if (![scheduledNotifications containsObject:notification]) {
- // This notification is active, but no longer scheduled, so it must be displayed
- jsCallBack = [NSString stringWithFormat:@"window.Notification.callOncloseByTag('%@')", [notification.userInfo objectForKey:@"tag"]];
- [((CDVViewController*)self.viewController).webView stringByEvaluatingJavaScriptFromString:jsCallBack];
- [toDiscard addObject:notification];
- }
- }
- [self.activeNotifications removeObjectsInArray:toDiscard];
-}
-
-/*
-- (void)cancelAllNotifications:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options {
- [[UIApplication sharedApplication] cancelAllLocalNotifications];
-}
-*/
-
-@end
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WebNotifications/www/webnotifications.js
----------------------------------------------------------------------
diff --git a/test/plugins/WebNotifications/www/webnotifications.js b/test/plugins/WebNotifications/www/webnotifications.js
deleted file mode 100644
index e2409b3..0000000
--- a/test/plugins/WebNotifications/www/webnotifications.js
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-/*
- * The W3C window.Notification API: http://www.w3.org/TR/notifications/
- */
-if (typeof window.Notification == 'undefined') {
-
- /**
- * Creates and shows a new notification.
- * @param title
- * @param options
- */
- window.Notification = function(title, options) {
- options = options || {};
-
- this.title = title || 'defaultTitle';
-
- // w3c options:
- this.body = options.body || '';
- this.tag = options.tag || 'defaultTag';
- this.iconUrl = options.iconUrl || '';
- // titleDir, bodyDir are not supported
-
- // cordova option extensions:
- this.delay = options.delay || 0;
- this.soundUrl = options.soundUrl || '';
- this.badgeNumber = options.badgeNumber || 0;
-
- // there must be one unique notification per tag, so close any existing outstanting notifications
- if (window.Notification.active[this.tag])
- window.Notification.active[this.tag].close();
- window.Notification.active[this.tag] = this;
-
- // Spec claims these must be defined
- this.onclick = options.onclick;
- this.onerror = options.onerror;
- this.onclose = options.onclose;
- this.onshow = options.onshow;
- if (this.onshow) {
- console.log("Warning, WebNotifications plugin will never call onshow"); // this may change on other platforms
- }
-
- var self = this;
- cordova.exec(null, function(error) {
- if (self.onerror) {
- self.onerror(error);
- }
- }, 'WebNotifications', 'createNotification', [{
- tag: this.tag,
- title: this.title,
- body: this.body,
- delay: this.delay,
- }]);
- };
-
- // TODO: change name to something internal looking?
- window.Notification.permission = 'granted';
-
- window.Notification.requestPermission = function(callback) {
- setTimeout(function() {
- callback(window.Notification.permission);
- }, 0);
- };
-
- // Not part of the W3C API. Used by the native side to call onclick handlers.
- // TODO: change name to something internal looking?
- window.Notification.callOnclickByTag = function(tag) {
- var notification = window.Notification.active[tag];
- if (notification && notification.onclick && typeof notification.onclick == 'function') {
- notification.onclick(tag);
- }
- delete window.Notification.active[tag];
- };
-
- window.Notification.callOncloseByTag = function(tag) {
- var notification = window.Notification.active[tag];
- if (notification && notification.onclose && typeof notification.onclose == 'function') {
- notification.onclose(tag);
- }
- delete window.Notification.active[tag];
- };
-
- // A global map of notifications by tag, so their onclick callbacks can be called.
- // TODO: change name to something internal looking?
- window.Notification.active = {};
-
- /**
- * Dismiss a notification.
- */
- window.Notification.prototype.close = function() {
- var self = this;
- cordova.exec(function() {
- if (self.onclose) {
- self.onclose();
- }
- delete window.Notification[self.tag];
- }, function(error) {
- if (self.onerror) {
- self.onerror(error);
- }
- delete window.Notification[self.tag];
- }, 'WebNotifications', 'closeNotification', [{
- tag: this.tag,
- }]);
- };
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WeblessPlugin/plugin.xml
----------------------------------------------------------------------
diff --git a/test/plugins/WeblessPlugin/plugin.xml b/test/plugins/WeblessPlugin/plugin.xml
deleted file mode 100644
index 0056636..0000000
--- a/test/plugins/WeblessPlugin/plugin.xml
+++ /dev/null
@@ -1,81 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Copyright 2013 Anis Kadri
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
-
--->
-
-<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
- xmlns:android="http://schemas.android.com/apk/res/android"
- id="com.phonegap.plugins.weblessplugin"
- version="0.6.0">
-
- <name>Webless Plugin</name>
-
- <access origin="build.phonegap.com" />
- <access origin="s3.amazonaws.com" />
-
- <!-- android -->
- <platform name="android">
- <config-file target="AndroidManifest.xml" parent="/manifest/application">
- <activity android:name="com.phonegap.plugins.weblessplugin.WeblessPlugin"
- android:label="@string/app_name">
- <intent-filter>
- </intent-filter>
- </activity>
- </config-file>
-
- <!-- CDV < 2.0 -->
- <config-file target="res/xml/plugins.xml" parent="/plugins">
- <plugin name="WeblessPlugin"
- value="com.phonegap.plugins.weblessplugin.WeblessPlugin"/>
- </config-file>
-
- <!-- CDV 2.0+ (for now) -->
- <config-file target="res/xml/config.xml" parent="/cordova/plugins">
- <plugin name="WeblessPlugin"
- value="com.phonegap.plugins.weblessplugin.WeblessPlugin"/>
- </config-file>
-
- <source-file src="src/android/WeblessPlugin.java"
- target-dir="src/com/phonegap/plugins/weblessplugin" />
- </platform>
-
- <!-- ios -->
- <platform name="ios">
- <!-- CDV < 2.4 -->
- <plugins-plist key="com.phonegap.plugins.weblessplugin"
- string="WeblessPluginCommand" />
- <!-- CDV 2.4 had a /cordova/plugins instead of /widget/plugins so ignored! -->
- <!-- CDV 2.5+ -->
- <config-file target="config.xml" parent="/widget/plugins">
- <plugin name="WeblessPlugin"
- value="WeblessPluginCommand"/>
- </config-file>
-
- <resource-file src="src/ios/WeblessPlugin.bundle" />
- <resource-file src="src/ios/WeblessPluginViewController.xib" />
-
- <header-file src="src/ios/WeblessPluginCommand.h" />
- <header-file src="src/ios/WeblessPluginViewController.h" />
-
- <source-file src="src/ios/WeblessPluginCommand.m" />
- <source-file src="src/ios/WeblessPluginViewController.m" />
-
- <!-- framework for testing (not actual dependency of WeblessPlugin -->
- <framework src="libsqlite3.dylib" />
- </platform>
-</plugin>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WeblessPlugin/src/android/WeblessPlugin.java
----------------------------------------------------------------------
diff --git a/test/plugins/WeblessPlugin/src/android/WeblessPlugin.java b/test/plugins/WeblessPlugin/src/android/WeblessPlugin.java
deleted file mode 100644
index 5263b0c..0000000
--- a/test/plugins/WeblessPlugin/src/android/WeblessPlugin.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_left.png
----------------------------------------------------------------------
diff --git a/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_left.png b/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_left.png
deleted file mode 100644
index 530e12b..0000000
Binary files a/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_left.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_left@2x.png
----------------------------------------------------------------------
diff --git a/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_left@2x.png b/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_left@2x.png
deleted file mode 100644
index 530e12b..0000000
Binary files a/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_left@2x.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_right.png
----------------------------------------------------------------------
diff --git a/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_right.png b/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_right.png
deleted file mode 100644
index 8b3d855..0000000
Binary files a/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_right.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_right@2x.png
----------------------------------------------------------------------
diff --git a/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_right@2x.png b/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_right@2x.png
deleted file mode 100644
index 8b3d855..0000000
Binary files a/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/arrow_right@2x.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/but_refresh.png
----------------------------------------------------------------------
diff --git a/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/but_refresh.png b/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/but_refresh.png
deleted file mode 100644
index 309b6bd..0000000
Binary files a/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/but_refresh.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/but_refresh@2x.png
----------------------------------------------------------------------
diff --git a/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/but_refresh@2x.png b/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/but_refresh@2x.png
deleted file mode 100644
index 309b6bd..0000000
Binary files a/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/but_refresh@2x.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/compass.png
----------------------------------------------------------------------
diff --git a/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/compass.png b/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/compass.png
deleted file mode 100644
index 46a8901..0000000
Binary files a/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/compass.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/compass@2x.png
----------------------------------------------------------------------
diff --git a/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/compass@2x.png b/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/compass@2x.png
deleted file mode 100644
index 46a8901..0000000
Binary files a/test/plugins/WeblessPlugin/src/ios/WeblessPlugin.bundle/compass@2x.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WeblessPlugin/src/ios/WeblessPluginCommand.h
----------------------------------------------------------------------
diff --git a/test/plugins/WeblessPlugin/src/ios/WeblessPluginCommand.h b/test/plugins/WeblessPlugin/src/ios/WeblessPluginCommand.h
deleted file mode 100644
index 6a23ab6..0000000
--- a/test/plugins/WeblessPlugin/src/ios/WeblessPluginCommand.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-//
-// PhoneGap ! ChildBrowserCommand
-//
-//
-// Created by Jesse MacFadyen on 10-05-29.
-// Copyright 2010 Nitobi. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#ifdef PHONEGAP_FRAMEWORK
- #import <PhoneGap/PGPlugin.h>
-#else
- #import "PGPlugin.h"
-#endif
-#import "ChildBrowserViewController.h"
-
-
-
-@interface ChildBrowserCommand : PGPlugin <ChildBrowserDelegate> {
-
- ChildBrowserViewController* childBrowser;
-}
-
-@property (nonatomic, retain) ChildBrowserViewController *childBrowser;
-
-
-- (void) showWebPage:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
--(void) onChildLocationChange:(NSString*)newLoc;
-
-@end
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WeblessPlugin/src/ios/WeblessPluginCommand.m
----------------------------------------------------------------------
diff --git a/test/plugins/WeblessPlugin/src/ios/WeblessPluginCommand.m b/test/plugins/WeblessPlugin/src/ios/WeblessPluginCommand.m
deleted file mode 100644
index 38aaf64..0000000
--- a/test/plugins/WeblessPlugin/src/ios/WeblessPluginCommand.m
+++ /dev/null
@@ -1,86 +0,0 @@
-//
-
-//
-//
-// Created by Jesse MacFadyen on 10-05-29.
-// Copyright 2010 Nitobi. All rights reserved.
-// Copyright (c) 2011, IBM Corporation
-// Copyright 2011, Randy McMillan
-//
-
-#import "ChildBrowserCommand.h"
-
-#ifdef PHONEGAP_FRAMEWORK
- #import <PhoneGap/PhoneGapViewController.h>
-#else
- #import "PhoneGapViewController.h"
-#endif
-
-
-@implementation ChildBrowserCommand
-
-@synthesize childBrowser;
-
-- (void) showWebPage:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options // args: url
-{
-
- if(childBrowser == NULL)
- {
- childBrowser = [[ ChildBrowserViewController alloc ] initWithScale:FALSE ];
- childBrowser.delegate = self;
- }
-
-/* // TODO: Work in progress
- NSString* strOrientations = [ options objectForKey:@"supportedOrientations"];
- NSArray* supportedOrientations = [strOrientations componentsSeparatedByString:@","];
-*/
- PhoneGapViewController* cont = (PhoneGapViewController*)[ super appViewController ];
- childBrowser.supportedOrientations = cont.supportedOrientations;
-
- if ([cont respondsToSelector:@selector(presentViewController)]) {
- //Reference UIViewController.h Line:179 for update to iOS 5 difference - @RandyMcMillan
- [cont presentViewController:childBrowser animated:YES completion:nil];
- } else {
- [ cont presentModalViewController:childBrowser animated:YES ];
- }
-
- NSString *url = (NSString*) [arguments objectAtIndex:0];
-
- [childBrowser loadURL:url ];
-
-}
-
--(void) close:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options // args: url
-{
- [ childBrowser closeBrowser];
-
-}
-
--(void) onClose
-{
- NSString* jsCallback = [NSString stringWithFormat:@"ChildBrowser._onClose();",@""];
- [self.webView stringByEvaluatingJavaScriptFromString:jsCallback];
-}
-
--(void) onOpenInSafari
-{
- NSString* jsCallback = [NSString stringWithFormat:@"ChildBrowser._onOpenExternal();",@""];
- [self.webView stringByEvaluatingJavaScriptFromString:jsCallback];
-}
-
-
--(void) onChildLocationChange:(NSString*)newLoc
-{
-
- NSString* tempLoc = [NSString stringWithFormat:@"%@",newLoc];
- NSString* encUrl = [tempLoc stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
-
- NSString* jsCallback = [NSString stringWithFormat:@"ChildBrowser._onLocationChange('%@');",encUrl];
- [self.webView stringByEvaluatingJavaScriptFromString:jsCallback];
-
-}
-
-
-
-
-@end
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.h
----------------------------------------------------------------------
diff --git a/test/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.h b/test/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.h
deleted file mode 100644
index d6fc139..0000000
--- a/test/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.h
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- *
- * Copyright 2013 Anis Kadri
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-//
-// ChildBrowserViewController.h
-//
-// Created by Jesse MacFadyen on 21/07/09.
-// Copyright 2009 Nitobi. All rights reserved.
-//
-
-#import <UIKit/UIKit.h>
-
-@protocol ChildBrowserDelegate<NSObject>
-
-
-
-/*
- * onChildLocationChanging:newLoc
- *
- * Discussion:
- * Invoked when a new page has loaded
- */
--(void) onChildLocationChange:(NSString*)newLoc;
--(void) onOpenInSafari;
--(void) onClose;
-@end
-
-
-@interface ChildBrowserViewController : UIViewController < UIWebViewDelegate > {
- IBOutlet UIWebView* webView;
- IBOutlet UIBarButtonItem* closeBtn;
- IBOutlet UIBarButtonItem* refreshBtn;
- IBOutlet UILabel* addressLabel;
- IBOutlet UIBarButtonItem* backBtn;
- IBOutlet UIBarButtonItem* fwdBtn;
- IBOutlet UIBarButtonItem* safariBtn;
- IBOutlet UIActivityIndicatorView* spinner;
- BOOL scaleEnabled;
- BOOL isImage;
- NSString* imageURL;
- NSArray* supportedOrientations;
- id <ChildBrowserDelegate> delegate;
-}
-
-@property (nonatomic, retain)id <ChildBrowserDelegate> delegate;
-@property (nonatomic, retain) NSArray* supportedOrientations;
-@property(retain) NSString* imageURL;
-@property(assign) BOOL isImage;
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation;
-- (ChildBrowserViewController*)initWithScale:(BOOL)enabled;
-- (IBAction)onDoneButtonPress:(id)sender;
-- (IBAction)onSafariButtonPress:(id)sender;
-- (void)loadURL:(NSString*)url;
--(void)closeBrowser;
-
-@end
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.m
----------------------------------------------------------------------
diff --git a/test/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.m b/test/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.m
deleted file mode 100644
index 167ef98..0000000
--- a/test/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.m
+++ /dev/null
@@ -1,239 +0,0 @@
-//
-// ChildBrowserViewController.m
-//
-// Created by Jesse MacFadyen on 21/07/09.
-// Copyright 2009 Nitobi. All rights reserved.
-// Copyright (c) 2011, IBM Corporation
-// Copyright 2011, Randy McMillan
-//
-
-#import "ChildBrowserViewController.h"
-
-
-@implementation ChildBrowserViewController
-
-@synthesize imageURL;
-@synthesize supportedOrientations;
-@synthesize isImage;
-@synthesize delegate;
-
-/*
- // The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
-- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
- if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
- // Custom initialization
- }
- return self;
-}
-*/
-
-+ (NSString*) resolveImageResource:(NSString*)resource
-{
- NSString* systemVersion = [[UIDevice currentDevice] systemVersion];
- BOOL isLessThaniOS4 = ([systemVersion compare:@"4.0" options:NSNumericSearch] == NSOrderedAscending);
-
- // the iPad image (nor retina) differentiation code was not in 3.x, and we have to explicitly set the path
- if (isLessThaniOS4)
- {
- return [NSString stringWithFormat:@"%@.png", resource];
- }
-
- return resource;
-}
-
-
-- (ChildBrowserViewController*)initWithScale:(BOOL)enabled
-{
- self = [super init];
-
-
- scaleEnabled = enabled;
-
- return self;
-}
-
-// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
-- (void)viewDidLoad {
- [super viewDidLoad];
-
- refreshBtn.image = [UIImage imageNamed:[[self class] resolveImageResource:@"ChildBrowser.bundle/but_refresh"]];
- backBtn.image = [UIImage imageNamed:[[self class] resolveImageResource:@"ChildBrowser.bundle/arrow_left"]];
- fwdBtn.image = [UIImage imageNamed:[[self class] resolveImageResource:@"ChildBrowser.bundle/arrow_right"]];
- safariBtn.image = [UIImage imageNamed:[[self class] resolveImageResource:@"ChildBrowser.bundle/compass"]];
-
- webView.delegate = self;
- webView.scalesPageToFit = TRUE;
- webView.backgroundColor = [UIColor whiteColor];
- NSLog(@"View did load");
-}
-
-
-
-
-
-- (void)didReceiveMemoryWarning {
- // Releases the view if it doesn't have a superview.
- [super didReceiveMemoryWarning];
-
- // Release any cached data, images, etc that aren't in use.
-}
-
-- (void)viewDidUnload {
- // Release any retained subviews of the main view.
- // e.g. self.myOutlet = nil;
- NSLog(@"View did UN-load");
-}
-
-
-- (void)dealloc {
-
- webView.delegate = nil;
-
- [webView release];
- [closeBtn release];
- [refreshBtn release];
- [addressLabel release];
- [backBtn release];
- [fwdBtn release];
- [safariBtn release];
- [spinner release];
- [ supportedOrientations release];
- [super dealloc];
-}
-
--(void)closeBrowser
-{
-
- if(delegate != NULL)
- {
- [delegate onClose];
- }
- if ([self respondsToSelector:@selector(presentingViewController)]) {
- //Reference UIViewController.h Line:179 for update to iOS 5 difference - @RandyMcMillan
- [[self presentingViewController] dismissViewControllerAnimated:YES completion:nil];
- } else {
- [[self parentViewController] dismissModalViewControllerAnimated:YES];
- }
-}
-
--(IBAction) onDoneButtonPress:(id)sender
-{
- [ self closeBrowser];
-
- NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"about:blank"]];
- [webView loadRequest:request];
-}
-
-
--(IBAction) onSafariButtonPress:(id)sender
-{
-
- if(delegate != NULL)
- {
- [delegate onOpenInSafari];
- }
-
- if(isImage)
- {
- NSURL* pURL = [[ [NSURL alloc] initWithString:imageURL ] autorelease];
- [ [ UIApplication sharedApplication ] openURL:pURL ];
- }
- else
- {
- NSURLRequest *request = webView.request;
- [[UIApplication sharedApplication] openURL:request.URL];
- }
-
-
-}
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation
-{
- BOOL autoRotate = [self.supportedOrientations count] > 1; // autorotate if only more than 1 orientation supported
- if (autoRotate)
- {
- if ([self.supportedOrientations containsObject:
- [NSNumber numberWithInt:interfaceOrientation]]) {
- return YES;
- }
- }
-
- return NO;
-}
-
-
-
-
-- (void)loadURL:(NSString*)url
-{
- NSLog(@"Opening Url : %@",url);
-
- if( [url hasSuffix:@".png" ] ||
- [url hasSuffix:@".jpg" ] ||
- [url hasSuffix:@".jpeg" ] ||
- [url hasSuffix:@".bmp" ] ||
- [url hasSuffix:@".gif" ] )
- {
- [ imageURL release ];
- imageURL = [url copy];
- isImage = YES;
- NSString* htmlText = @"<html><body style='background-color:#333;margin:0px;padding:0px;'><img style='min-height:200px;margin:0px;padding:0px;width:100%;height:auto;' alt='' src='IMGSRC'/></body></html>";
- htmlText = [ htmlText stringByReplacingOccurrencesOfString:@"IMGSRC" withString:url ];
-
- [webView loadHTMLString:htmlText baseURL:[NSURL URLWithString:@""]];
-
- }
- else
- {
- imageURL = @"";
- isImage = NO;
- NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:url]];
- [webView loadRequest:request];
- }
- webView.hidden = NO;
-}
-
-
-- (void)webViewDidStartLoad:(UIWebView *)sender {
- addressLabel.text = @"Loading...";
- backBtn.enabled = webView.canGoBack;
- fwdBtn.enabled = webView.canGoForward;
-
- [ spinner startAnimating ];
-
-}
-
-- (void)webViewDidFinishLoad:(UIWebView *)sender
-{
- NSURLRequest *request = webView.request;
- NSLog(@"New Address is : %@",request.URL.absoluteString);
- addressLabel.text = request.URL.absoluteString;
- backBtn.enabled = webView.canGoBack;
- fwdBtn.enabled = webView.canGoForward;
- [ spinner stopAnimating ];
-
- if(delegate != NULL)
- {
- [delegate onChildLocationChange:request.URL.absoluteString];
- }
-
-}
-
-- (void)webView:(UIWebView *)wv didFailLoadWithError:(NSError *)error {
- NSLog (@"webView:didFailLoadWithError");
- [spinner stopAnimating];
- addressLabel.text = @"Failed";
- if (error != NULL) {
- UIAlertView *errorAlert = [[UIAlertView alloc]
- initWithTitle: [error localizedDescription]
- message: [error localizedFailureReason]
- delegate:nil
- cancelButtonTitle:@"OK"
- otherButtonTitles:nil];
- [errorAlert show];
- [errorAlert release];
- }
-}
-
-
-@end
[07/10] remove old tests. jasmine migration complete
Posted by fi...@apache.org.
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.xib
----------------------------------------------------------------------
diff --git a/test/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.xib b/test/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.xib
deleted file mode 100644
index cc8dd65..0000000
--- a/test/plugins/WeblessPlugin/src/ios/WeblessPluginViewController.xib
+++ /dev/null
@@ -1,875 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
- <data>
- <int key="IBDocument.SystemTarget">768</int>
- <string key="IBDocument.SystemVersion">10K540</string>
- <string key="IBDocument.InterfaceBuilderVersion">851</string>
- <string key="IBDocument.AppKitVersion">1038.36</string>
- <string key="IBDocument.HIToolboxVersion">461.00</string>
- <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
- <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string key="NS.object.0">141</string>
- </object>
- <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
- <object class="NSArray" key="IBDocument.PluginDependencies">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- </object>
- <object class="NSMutableDictionary" key="IBDocument.Metadata">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys" id="0">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
- </object>
- <object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBProxyObject" id="372490531">
- <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- </object>
- <object class="IBProxyObject" id="975951072">
- <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- </object>
- <object class="IBUIView" id="191373211">
- <nil key="NSNextResponder"/>
- <int key="NSvFlags">292</int>
- <object class="NSMutableArray" key="NSSubviews">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBUIWebView" id="345761693">
- <reference key="NSNextResponder" ref="191373211"/>
- <int key="NSvFlags">-2147483374</int>
- <string key="NSFrameSize">{480, 229}</string>
- <reference key="NSSuperview" ref="191373211"/>
- <reference key="NSNextKeyView" ref="471899933"/>
- <object class="NSColor" key="IBUIBackgroundColor">
- <int key="NSColorSpace">1</int>
- <bytes key="NSRGB">MCAwIDAAA</bytes>
- </object>
- <bool key="IBUIClipsSubviews">YES</bool>
- <bool key="IBUIMultipleTouchEnabled">YES</bool>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <int key="IBUIDataDetectorTypes">1</int>
- <bool key="IBUIDetectsPhoneNumbers">YES</bool>
- </object>
- <object class="IBUIToolbar" id="471899933">
- <reference key="NSNextResponder" ref="191373211"/>
- <int key="NSvFlags">266</int>
- <string key="NSFrame">{{0, 256}, {480, 44}}</string>
- <reference key="NSSuperview" ref="191373211"/>
- <reference key="NSNextKeyView" ref="349240355"/>
- <bool key="IBUIOpaque">NO</bool>
- <bool key="IBUIClearsContextBeforeDrawing">NO</bool>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <int key="IBUIBarStyle">1</int>
- <object class="NSMutableArray" key="IBUIItems">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBUIBarButtonItem" id="966737436">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <int key="IBUIStyle">1</int>
- <reference key="IBUIToolbar" ref="471899933"/>
- <int key="IBUISystemItemIdentifier">0</int>
- </object>
- <object class="IBUIBarButtonItem" id="312951844">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <reference key="IBUIToolbar" ref="471899933"/>
- <int key="IBUISystemItemIdentifier">5</int>
- </object>
- <object class="IBUIBarButtonItem" id="615970053">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <reference key="IBUIToolbar" ref="471899933"/>
- </object>
- <object class="IBUIBarButtonItem" id="111711024">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <reference key="IBUIToolbar" ref="471899933"/>
- <int key="IBUISystemItemIdentifier">5</int>
- </object>
- <object class="IBUIBarButtonItem" id="227415391">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <float key="IBUIWidth">32</float>
- <reference key="IBUIToolbar" ref="471899933"/>
- </object>
- <object class="IBUIBarButtonItem" id="766205236">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <reference key="IBUIToolbar" ref="471899933"/>
- <int key="IBUISystemItemIdentifier">5</int>
- </object>
- <object class="IBUIBarButtonItem" id="283287216">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <float key="IBUIWidth">32</float>
- <reference key="IBUIToolbar" ref="471899933"/>
- </object>
- <object class="IBUIBarButtonItem" id="129413107">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <reference key="IBUIToolbar" ref="471899933"/>
- <int key="IBUISystemItemIdentifier">5</int>
- </object>
- <object class="IBUIBarButtonItem" id="1046195837">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <float key="IBUIWidth">32</float>
- <reference key="IBUIToolbar" ref="471899933"/>
- </object>
- <object class="IBUIBarButtonItem" id="667527307">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <reference key="IBUIToolbar" ref="471899933"/>
- <int key="IBUISystemItemIdentifier">5</int>
- </object>
- </object>
- </object>
- <object class="IBUILabel" id="349240355">
- <reference key="NSNextResponder" ref="191373211"/>
- <int key="NSvFlags">270</int>
- <string key="NSFrame">{{5, 230}, {418, 21}}</string>
- <reference key="NSSuperview" ref="191373211"/>
- <reference key="NSNextKeyView" ref="89602979"/>
- <object class="NSColor" key="IBUIBackgroundColor">
- <int key="NSColorSpace">4</int>
- <bytes key="NSWhite">MC42NjY2NjY2OSAwAA</bytes>
- </object>
- <bool key="IBUIOpaque">NO</bool>
- <bool key="IBUIClipsSubviews">YES</bool>
- <bool key="IBUIUserInteractionEnabled">NO</bool>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <string key="IBUIText">Loading...</string>
- <object class="NSFont" key="IBUIFont">
- <string key="NSName">Helvetica</string>
- <double key="NSSize">13</double>
- <int key="NSfFlags">16</int>
- </object>
- <object class="NSColor" key="IBUITextColor">
- <int key="NSColorSpace">3</int>
- <bytes key="NSWhite">MQA</bytes>
- </object>
- <nil key="IBUIHighlightedColor"/>
- <int key="IBUIBaselineAdjustment">1</int>
- <bool key="IBUIAdjustsFontSizeToFit">NO</bool>
- <float key="IBUIMinimumFontSize">10</float>
- </object>
- <object class="IBUIActivityIndicatorView" id="89602979">
- <reference key="NSNextResponder" ref="191373211"/>
- <int key="NSvFlags">-2147483383</int>
- <string key="NSFrame">{{454, 231}, {20, 20}}</string>
- <reference key="NSSuperview" ref="191373211"/>
- <bool key="IBUIOpaque">NO</bool>
- <bool key="IBUIClearsContextBeforeDrawing">NO</bool>
- <bool key="IBUIUserInteractionEnabled">NO</bool>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- </object>
- </object>
- <string key="NSFrame">{{0, 20}, {480, 300}}</string>
- <reference key="NSNextKeyView" ref="345761693"/>
- <object class="NSColor" key="IBUIBackgroundColor">
- <int key="NSColorSpace">3</int>
- <bytes key="NSWhite">MC41AA</bytes>
- <object class="NSColorSpace" key="NSCustomColorSpace">
- <int key="NSID">2</int>
- </object>
- </object>
- <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
- <object class="IBUISimulatedOrientationMetrics" key="IBUISimulatedOrientationMetrics">
- <int key="interfaceOrientation">3</int>
- </object>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- </object>
- </object>
- <object class="IBObjectContainer" key="IBDocument.Objects">
- <object class="NSMutableArray" key="connectionRecords">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">webView</string>
- <reference key="source" ref="372490531"/>
- <reference key="destination" ref="345761693"/>
- </object>
- <int key="connectionID">17</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">addressLabel</string>
- <reference key="source" ref="372490531"/>
- <reference key="destination" ref="349240355"/>
- </object>
- <int key="connectionID">18</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">backBtn</string>
- <reference key="source" ref="372490531"/>
- <reference key="destination" ref="227415391"/>
- </object>
- <int key="connectionID">19</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">fwdBtn</string>
- <reference key="source" ref="372490531"/>
- <reference key="destination" ref="283287216"/>
- </object>
- <int key="connectionID">22</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">refreshBtn</string>
- <reference key="source" ref="372490531"/>
- <reference key="destination" ref="615970053"/>
- </object>
- <int key="connectionID">23</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchEventConnection" key="connection">
- <string key="label">onDoneButtonPress:</string>
- <reference key="source" ref="966737436"/>
- <reference key="destination" ref="372490531"/>
- </object>
- <int key="connectionID">26</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchEventConnection" key="connection">
- <string key="label">reload</string>
- <reference key="source" ref="615970053"/>
- <reference key="destination" ref="345761693"/>
- </object>
- <int key="connectionID">27</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchEventConnection" key="connection">
- <string key="label">goBack</string>
- <reference key="source" ref="227415391"/>
- <reference key="destination" ref="345761693"/>
- </object>
- <int key="connectionID">28</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchEventConnection" key="connection">
- <string key="label">goForward</string>
- <reference key="source" ref="283287216"/>
- <reference key="destination" ref="345761693"/>
- </object>
- <int key="connectionID">29</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchEventConnection" key="connection">
- <string key="label">onSafariButtonPress:</string>
- <reference key="source" ref="1046195837"/>
- <reference key="destination" ref="372490531"/>
- </object>
- <int key="connectionID">31</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">view</string>
- <reference key="source" ref="372490531"/>
- <reference key="destination" ref="191373211"/>
- </object>
- <int key="connectionID">35</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">spinner</string>
- <reference key="source" ref="372490531"/>
- <reference key="destination" ref="89602979"/>
- </object>
- <int key="connectionID">36</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">safariBtn</string>
- <reference key="source" ref="372490531"/>
- <reference key="destination" ref="1046195837"/>
- </object>
- <int key="connectionID">40</int>
- </object>
- </object>
- <object class="IBMutableOrderedSet" key="objectRecords">
- <object class="NSArray" key="orderedObjects">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBObjectRecord">
- <int key="objectID">0</int>
- <reference key="object" ref="0"/>
- <reference key="children" ref="1000"/>
- <nil key="parent"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">1</int>
- <reference key="object" ref="191373211"/>
- <object class="NSMutableArray" key="children">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <reference ref="471899933"/>
- <reference ref="349240355"/>
- <reference ref="89602979"/>
- <reference ref="345761693"/>
- </object>
- <reference key="parent" ref="0"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">-1</int>
- <reference key="object" ref="372490531"/>
- <reference key="parent" ref="0"/>
- <string key="objectName">File's Owner</string>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">-2</int>
- <reference key="object" ref="975951072"/>
- <reference key="parent" ref="0"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">4</int>
- <reference key="object" ref="345761693"/>
- <reference key="parent" ref="191373211"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">6</int>
- <reference key="object" ref="471899933"/>
- <object class="NSMutableArray" key="children">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <reference ref="966737436"/>
- <reference ref="615970053"/>
- <reference ref="227415391"/>
- <reference ref="283287216"/>
- <reference ref="1046195837"/>
- <reference ref="111711024"/>
- <reference ref="129413107"/>
- <reference ref="312951844"/>
- <reference ref="667527307"/>
- <reference ref="766205236"/>
- </object>
- <reference key="parent" ref="191373211"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">7</int>
- <reference key="object" ref="966737436"/>
- <reference key="parent" ref="471899933"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">8</int>
- <reference key="object" ref="615970053"/>
- <reference key="parent" ref="471899933"/>
- <string key="objectName">Bar Button Item (Reload)</string>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">9</int>
- <reference key="object" ref="227415391"/>
- <reference key="parent" ref="471899933"/>
- <string key="objectName">Bar Button Item (Go Back)</string>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">10</int>
- <reference key="object" ref="283287216"/>
- <reference key="parent" ref="471899933"/>
- <string key="objectName">Bar Button Item (Go Forward)</string>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">11</int>
- <reference key="object" ref="1046195837"/>
- <reference key="parent" ref="471899933"/>
- <string key="objectName">Bar Button Item (Safari)</string>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">13</int>
- <reference key="object" ref="349240355"/>
- <reference key="parent" ref="191373211"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">14</int>
- <reference key="object" ref="111711024"/>
- <reference key="parent" ref="471899933"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">15</int>
- <reference key="object" ref="129413107"/>
- <reference key="parent" ref="471899933"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">32</int>
- <reference key="object" ref="89602979"/>
- <reference key="parent" ref="191373211"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">37</int>
- <reference key="object" ref="312951844"/>
- <reference key="parent" ref="471899933"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">38</int>
- <reference key="object" ref="667527307"/>
- <reference key="parent" ref="471899933"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">39</int>
- <reference key="object" ref="766205236"/>
- <reference key="parent" ref="471899933"/>
- </object>
- </object>
- </object>
- <object class="NSMutableDictionary" key="flattenedProperties">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>-1.CustomClassName</string>
- <string>-2.CustomClassName</string>
- <string>1.IBEditorWindowLastContentRect</string>
- <string>1.IBPluginDependency</string>
- <string>10.IBPluginDependency</string>
- <string>11.IBPluginDependency</string>
- <string>13.IBPluginDependency</string>
- <string>13.IBViewBoundsToFrameTransform</string>
- <string>14.IBPluginDependency</string>
- <string>15.IBPluginDependency</string>
- <string>32.IBPluginDependency</string>
- <string>32.IBViewBoundsToFrameTransform</string>
- <string>37.IBPluginDependency</string>
- <string>38.IBPluginDependency</string>
- <string>39.IBPluginDependency</string>
- <string>4.IBPluginDependency</string>
- <string>4.IBViewBoundsToFrameTransform</string>
- <string>6.IBPluginDependency</string>
- <string>6.IBViewBoundsToFrameTransform</string>
- <string>7.IBPluginDependency</string>
- <string>8.IBPluginDependency</string>
- <string>9.IBPluginDependency</string>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>ChildBrowserViewController</string>
- <string>UIResponder</string>
- <string>{{250, 643}, {480, 320}}</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <object class="NSAffineTransform">
- <bytes key="NSTransformStruct">P4AAAL+AAABCoAAAwygAAA</bytes>
- </object>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <object class="NSAffineTransform">
- <bytes key="NSTransformStruct">P4AAAL+AAABD5gAAw3kAAA</bytes>
- </object>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <object class="NSAffineTransform">
- <bytes key="NSTransformStruct">P4AAAL+AAABB8AAAwwUAAA</bytes>
- </object>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <object class="NSAffineTransform">
- <bytes key="NSTransformStruct">P4AAAL+AAAAAAAAAw10AAA</bytes>
- </object>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- </object>
- </object>
- <object class="NSMutableDictionary" key="unlocalizedProperties">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <reference key="dict.sortedKeys" ref="0"/>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
- </object>
- <nil key="activeLocalization"/>
- <object class="NSMutableDictionary" key="localizations">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <reference key="dict.sortedKeys" ref="0"/>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
- </object>
- <nil key="sourceID"/>
- <int key="maxID">40</int>
- </object>
- <object class="IBClassDescriber" key="IBDocument.Classes">
- <object class="NSMutableArray" key="referencedPartialClassDescriptions">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBPartialClassDescription">
- <string key="className">ChildBrowserViewController</string>
- <string key="superclassName">UIViewController</string>
- <object class="NSMutableDictionary" key="actions">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>onDoneButtonPress:</string>
- <string>onSafariButtonPress:</string>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>id</string>
- <string>id</string>
- </object>
- </object>
- <object class="NSMutableDictionary" key="actionInfosByName">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>onDoneButtonPress:</string>
- <string>onSafariButtonPress:</string>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBActionInfo">
- <string key="name">onDoneButtonPress:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo">
- <string key="name">onSafariButtonPress:</string>
- <string key="candidateClassName">id</string>
- </object>
- </object>
- </object>
- <object class="NSMutableDictionary" key="outlets">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>addressLabel</string>
- <string>backBtn</string>
- <string>closeBtn</string>
- <string>delegate</string>
- <string>fwdBtn</string>
- <string>refreshBtn</string>
- <string>safariBtn</string>
- <string>spinner</string>
- <string>webView</string>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>UILabel</string>
- <string>UIBarButtonItem</string>
- <string>UIBarButtonItem</string>
- <string>id</string>
- <string>UIBarButtonItem</string>
- <string>UIBarButtonItem</string>
- <string>UIBarButtonItem</string>
- <string>UIActivityIndicatorView</string>
- <string>UIWebView</string>
- </object>
- </object>
- <object class="NSMutableDictionary" key="toOneOutletInfosByName">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>addressLabel</string>
- <string>backBtn</string>
- <string>closeBtn</string>
- <string>delegate</string>
- <string>fwdBtn</string>
- <string>refreshBtn</string>
- <string>safariBtn</string>
- <string>spinner</string>
- <string>webView</string>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBToOneOutletInfo">
- <string key="name">addressLabel</string>
- <string key="candidateClassName">UILabel</string>
- </object>
- <object class="IBToOneOutletInfo">
- <string key="name">backBtn</string>
- <string key="candidateClassName">UIBarButtonItem</string>
- </object>
- <object class="IBToOneOutletInfo">
- <string key="name">closeBtn</string>
- <string key="candidateClassName">UIBarButtonItem</string>
- </object>
- <object class="IBToOneOutletInfo">
- <string key="name">delegate</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBToOneOutletInfo">
- <string key="name">fwdBtn</string>
- <string key="candidateClassName">UIBarButtonItem</string>
- </object>
- <object class="IBToOneOutletInfo">
- <string key="name">refreshBtn</string>
- <string key="candidateClassName">UIBarButtonItem</string>
- </object>
- <object class="IBToOneOutletInfo">
- <string key="name">safariBtn</string>
- <string key="candidateClassName">UIBarButtonItem</string>
- </object>
- <object class="IBToOneOutletInfo">
- <string key="name">spinner</string>
- <string key="candidateClassName">UIActivityIndicatorView</string>
- </object>
- <object class="IBToOneOutletInfo">
- <string key="name">webView</string>
- <string key="candidateClassName">UIWebView</string>
- </object>
- </object>
- </object>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">Plugins/ChildBrowser/ChildBrowserViewController.h</string>
- </object>
- </object>
- </object>
- <object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSError.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSFileManager.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSKeyValueCoding.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSKeyValueObserving.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSKeyedArchiver.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSObject.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSRunLoop.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSThread.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSURL.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSURLConnection.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">QuartzCore.framework/Headers/CAAnimation.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">QuartzCore.framework/Headers/CALayer.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIAccessibility.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UINibLoading.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier" id="485348283">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIResponder.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIActivityIndicatorView</string>
- <string key="superclassName">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIActivityIndicatorView.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIBarButtonItem</string>
- <string key="superclassName">UIBarItem</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIBarButtonItem.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIBarItem</string>
- <string key="superclassName">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIBarItem.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UILabel</string>
- <string key="superclassName">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UILabel.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIResponder</string>
- <string key="superclassName">NSObject</string>
- <reference key="sourceIdentifier" ref="485348283"/>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UISearchBar</string>
- <string key="superclassName">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UISearchBar.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UISearchDisplayController</string>
- <string key="superclassName">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UISearchDisplayController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIToolbar</string>
- <string key="superclassName">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIToolbar.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIPrintFormatter.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UITextField.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIView</string>
- <string key="superclassName">UIResponder</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIView.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">MediaPlayer.framework/Headers/MPMoviePlayerViewController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UINavigationController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIPopoverController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UISplitViewController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UITabBarController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <string key="superclassName">UIResponder</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIViewController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIWebView</string>
- <string key="superclassName">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIWebView.h</string>
- </object>
- </object>
- </object>
- </object>
- <int key="IBDocument.localizationMode">0</int>
- <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencies">
- <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
- <integer value="768" key="NS.object.0"/>
- </object>
- <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
- <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
- <integer value="1056" key="NS.object.0"/>
- </object>
- <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
- <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
- <integer value="3000" key="NS.object.0"/>
- </object>
- <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
- <nil key="IBDocument.LastKnownRelativeProjectPath"/>
- <int key="IBDocument.defaultPropertyAccessControl">3</int>
- <string key="IBCocoaTouchPluginVersion">141</string>
- </data>
-</archive>
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/.gitignore
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/.gitignore b/test/plugins/cordova.echo/.gitignore
deleted file mode 100644
index e43b0f9..0000000
--- a/test/plugins/cordova.echo/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-.DS_Store
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/plugin.xml
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/plugin.xml b/test/plugins/cordova.echo/plugin.xml
deleted file mode 100644
index 8468ec1..0000000
--- a/test/plugins/cordova.echo/plugin.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
- id="com.cordova.echo"
- version="1.0.0">
-
- <engines>
- <engine name="cordova" version=">=2.3.0" />
- </engines>
-
- <name>cordova echo</name>
-
-
- <platform name="blackberry">
- <config-file target="config.xml" parent="/widget">
- <feature id="cordova.echo" required="true" version="1.0.0.0"/>
- </config-file>
-
- <source-file src="src/blackberry/client.js" target-dir="ext-qnx/cordova.echo" />
- <source-file src="src/blackberry/index.js" target-dir="ext-qnx/cordova.echo" />
- <source-file src="src/blackberry/manifest.json" target-dir="ext-qnx/cordova.echo" />
- <source-file src="src/blackberry/device/echoJnext.so" target-dir="ext-qnx/cordova.echo/device" />
- <source-file src="src/blackberry/simulator/echoJnext.so" target-dir="ext-qnx/cordova.echo/simulator" />
- </platform>
-</plugin>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/client.js
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/client.js b/test/plugins/cordova.echo/src/blackberry/client.js
deleted file mode 100644
index 4e7a1b3..0000000
--- a/test/plugins/cordova.echo/src/blackberry/client.js
+++ /dev/null
@@ -1,53 +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 _self = {},
- _ID = require("./manifest.json").namespace,
- win = null,
- fail = null;
-
-function handleCallback(result) {
- if (result) {
- if(win){
- win(result);
- }
- } else {
- if(fail){
- fail(result);
- }
- }
- win = null;
- fail = null;
-}
-
-_self.doEcho = function (args, theWin, theFail) {
- var data = { "message" : args.message || "" };
-
- win = theWin;
- fail = theFail;
-
- window.webworks.event.add(_ID, "echoCallback", handleCallback);
-
- return window.webworks.execSync(_ID, "doEcho", data);
-};
-
-
-module.exports = _self;
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/device/echoJnext.so
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/device/echoJnext.so b/test/plugins/cordova.echo/src/blackberry/device/echoJnext.so
deleted file mode 100755
index 169714a..0000000
Binary files a/test/plugins/cordova.echo/src/blackberry/device/echoJnext.so and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/index.js
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/index.js b/test/plugins/cordova.echo/src/blackberry/index.js
deleted file mode 100644
index 0759a20..0000000
--- a/test/plugins/cordova.echo/src/blackberry/index.js
+++ /dev/null
@@ -1,85 +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 echoJNext,
- _event = require("../../lib/event"),
- winCallback = null,
- failCallback = null;
-
-module.exports = {
- doEcho: function (success, fail, args) {
- var invokeData = { "message" : JSON.parse(decodeURIComponent(args.message)) };
- try {
- success(echoJNext.getEchoJNext(invokeData));
- } catch (e) {
- fail(-1, e);
- }
- }
-};
-
-///////////////////////////////////////////////////////////////////
-// JavaScript wrapper for JNEXT plugin
-///////////////////////////////////////////////////////////////////
-
-JNEXT.EchoJNext = function ()
-{
- var _self = this;
-
- _self.getEchoJNext = function (args) {
- return JNEXT.invoke(_self._id, "doEcho " + JSON.stringify(args));
- };
-
- _self.getId = function () {
- return _self._id;
- };
-
- _self.init = function () {
- if (!JNEXT.require("echoJnext")) {
- return false;
- }
-
- _self._id = JNEXT.createObject("echoJnext.Echo");
-
- if (!_self._id || _self._id === "") {
- return false;
- }
-
- JNEXT.registerEvents(_self);
- };
-
- _self.onEvent = function (strData) {
- var arData = strData.split(" "),
- strEventId = arData[0],
- args = arData[1],
- info = {};
-
- if (strEventId === "cordova.echo.callback") {
- _event.trigger("echoCallback", args);
- }
-
- };
-
- _self._id = "";
-
- _self.init();
-};
-
-echoJNext = new JNEXT.EchoJNext();
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/manifest.json
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/manifest.json b/test/plugins/cordova.echo/src/blackberry/manifest.json
deleted file mode 100644
index d14e79e..0000000
--- a/test/plugins/cordova.echo/src/blackberry/manifest.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "global": false,
- "namespace": "cordova.echo",
- "dependencies": []
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/json/autolink.h
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/json/autolink.h b/test/plugins/cordova.echo/src/blackberry/public/json/autolink.h
deleted file mode 100644
index 37c9258..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/json/autolink.h
+++ /dev/null
@@ -1,19 +0,0 @@
-#ifndef JSON_AUTOLINK_H_INCLUDED
-# define JSON_AUTOLINK_H_INCLUDED
-
-# include "config.h"
-
-# ifdef JSON_IN_CPPTL
-# include <cpptl/cpptl_autolink.h>
-# endif
-
-# if !defined(JSON_NO_AUTOLINK) && !defined(JSON_DLL_BUILD) && !defined(JSON_IN_CPPTL)
-# define CPPTL_AUTOLINK_NAME "json"
-# undef CPPTL_AUTOLINK_DLL
-# ifdef JSON_DLL
-# define CPPTL_AUTOLINK_DLL
-# endif
-# include "autolink.h"
-# endif
-
-#endif // JSON_AUTOLINK_H_INCLUDED
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/json/config.h
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/json/config.h b/test/plugins/cordova.echo/src/blackberry/public/json/config.h
deleted file mode 100644
index 5d334cb..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/json/config.h
+++ /dev/null
@@ -1,43 +0,0 @@
-#ifndef JSON_CONFIG_H_INCLUDED
-# define JSON_CONFIG_H_INCLUDED
-
-/// If defined, indicates that json library is embedded in CppTL library.
-//# define JSON_IN_CPPTL 1
-
-/// If defined, indicates that json may leverage CppTL library
-//# define JSON_USE_CPPTL 1
-/// If defined, indicates that cpptl vector based map should be used instead of std::map
-/// as Value container.
-//# define JSON_USE_CPPTL_SMALLMAP 1
-/// If defined, indicates that Json specific container should be used
-/// (hash table & simple deque container with customizable allocator).
-/// THIS FEATURE IS STILL EXPERIMENTAL!
-//# define JSON_VALUE_USE_INTERNAL_MAP 1
-/// Force usage of standard new/malloc based allocator instead of memory pool based allocator.
-/// The memory pools allocator used optimization (initializing Value and ValueInternalLink
-/// as if it was a POD) that may cause some validation tool to report errors.
-/// Only has effects if JSON_VALUE_USE_INTERNAL_MAP is defined.
-//# define JSON_USE_SIMPLE_INTERNAL_ALLOCATOR 1
-
-/// If defined, indicates that Json use exception to report invalid type manipulation
-/// instead of C assert macro.
-# define JSON_USE_EXCEPTION 1
-
-# ifdef JSON_IN_CPPTL
-# include <cpptl/config.h>
-# ifndef JSON_USE_CPPTL
-# define JSON_USE_CPPTL 1
-# endif
-# endif
-
-# ifdef JSON_IN_CPPTL
-# define JSON_API CPPTL_API
-# elif defined(JSON_DLL_BUILD)
-# define JSON_API __declspec(dllexport)
-# elif defined(JSON_DLL)
-# define JSON_API __declspec(dllimport)
-# else
-# define JSON_API
-# endif
-
-#endif // JSON_CONFIG_H_INCLUDED
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/json/features.h
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/json/features.h b/test/plugins/cordova.echo/src/blackberry/public/json/features.h
deleted file mode 100644
index 5a9adec..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/json/features.h
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef CPPTL_JSON_FEATURES_H_INCLUDED
-# define CPPTL_JSON_FEATURES_H_INCLUDED
-
-# include "forwards.h"
-
-namespace Json {
-
- /** \brief Configuration passed to reader and writer.
- * This configuration object can be used to force the Reader or Writer
- * to behave in a standard conforming way.
- */
- class JSON_API Features
- {
- public:
- /** \brief A configuration that allows all features and assumes all strings are UTF-8.
- * - C & C++ comments are allowed
- * - Root object can be any JSON value
- * - Assumes Value strings are encoded in UTF-8
- */
- static Features all();
-
- /** \brief A configuration that is strictly compatible with the JSON specification.
- * - Comments are forbidden.
- * - Root object must be either an array or an object value.
- * - Assumes Value strings are encoded in UTF-8
- */
- static Features strictMode();
-
- /** \brief Initialize the configuration like JsonConfig::allFeatures;
- */
- Features();
-
- /// \c true if comments are allowed. Default: \c true.
- bool allowComments_;
-
- /// \c true if root must be either an array or an object value. Default: \c false.
- bool strictRoot_;
- };
-
-} // namespace Json
-
-#endif // CPPTL_JSON_FEATURES_H_INCLUDED
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/json/forwards.h
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/json/forwards.h b/test/plugins/cordova.echo/src/blackberry/public/json/forwards.h
deleted file mode 100644
index d0ce830..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/json/forwards.h
+++ /dev/null
@@ -1,39 +0,0 @@
-#ifndef JSON_FORWARDS_H_INCLUDED
-# define JSON_FORWARDS_H_INCLUDED
-
-# include "config.h"
-
-namespace Json {
-
- // writer.h
- class FastWriter;
- class StyledWriter;
-
- // reader.h
- class Reader;
-
- // features.h
- class Features;
-
- // value.h
- typedef int Int;
- typedef unsigned int UInt;
- class StaticString;
- class Path;
- class PathArgument;
- class Value;
- class ValueIteratorBase;
- class ValueIterator;
- class ValueConstIterator;
-#ifdef JSON_VALUE_USE_INTERNAL_MAP
- class ValueAllocator;
- class ValueMapAllocator;
- class ValueInternalLink;
- class ValueInternalArray;
- class ValueInternalMap;
-#endif // #ifdef JSON_VALUE_USE_INTERNAL_MAP
-
-} // namespace Json
-
-
-#endif // JSON_FORWARDS_H_INCLUDED
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/json/json.h
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/json/json.h b/test/plugins/cordova.echo/src/blackberry/public/json/json.h
deleted file mode 100644
index c71ed65..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/json/json.h
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifndef JSON_JSON_H_INCLUDED
-# define JSON_JSON_H_INCLUDED
-
-# include "autolink.h"
-# include "value.h"
-# include "reader.h"
-# include "writer.h"
-# include "features.h"
-
-#endif // JSON_JSON_H_INCLUDED
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/4e517820/test/plugins/cordova.echo/src/blackberry/public/json/reader.h
----------------------------------------------------------------------
diff --git a/test/plugins/cordova.echo/src/blackberry/public/json/reader.h b/test/plugins/cordova.echo/src/blackberry/public/json/reader.h
deleted file mode 100644
index ee1d6a2..0000000
--- a/test/plugins/cordova.echo/src/blackberry/public/json/reader.h
+++ /dev/null
@@ -1,196 +0,0 @@
-#ifndef CPPTL_JSON_READER_H_INCLUDED
-# define CPPTL_JSON_READER_H_INCLUDED
-
-# include "features.h"
-# include "value.h"
-# include <deque>
-# include <stack>
-# include <string>
-# include <iostream>
-
-namespace Json {
-
- /** \brief Unserialize a <a HREF="http://www.json.org">JSON</a> document into a Value.
- *
- */
- class JSON_API Reader
- {
- public:
- typedef char Char;
- typedef const Char *Location;
-
- /** \brief Constructs a Reader allowing all features
- * for parsing.
- */
- Reader();
-
- /** \brief Constructs a Reader allowing the specified feature set
- * for parsing.
- */
- Reader( const Features &features );
-
- /** \brief Read a Value from a <a HREF="http://www.json.org">JSON</a> document.
- * \param document UTF-8 encoded string containing the document to read.
- * \param root [out] Contains the root value of the document if it was
- * successfully parsed.
- * \param collectComments \c true to collect comment and allow writing them back during
- * serialization, \c false to discard comments.
- * This parameter is ignored if Features::allowComments_
- * is \c false.
- * \return \c true if the document was successfully parsed, \c false if an error occurred.
- */
- bool parse( const std::string &document,
- Value &root,
- bool collectComments = true );
-
- /** \brief Read a Value from a <a HREF="http://www.json.org">JSON</a> document.
- * \param document UTF-8 encoded string containing the document to read.
- * \param root [out] Contains the root value of the document if it was
- * successfully parsed.
- * \param collectComments \c true to collect comment and allow writing them back during
- * serialization, \c false to discard comments.
- * This parameter is ignored if Features::allowComments_
- * is \c false.
- * \return \c true if the document was successfully parsed, \c false if an error occurred.
- */
- bool parse( const char *beginDoc, const char *endDoc,
- Value &root,
- bool collectComments = true );
-
- /// \brief Parse from input stream.
- /// \see Json::operator>>(std::istream&, Json::Value&).
- bool parse( std::istream &is,
- Value &root,
- bool collectComments = true );
-
- /** \brief Returns a user friendly string that list errors in the parsed document.
- * \return Formatted error message with the list of errors with their location in
- * the parsed document. An empty string is returned if no error occurred
- * during parsing.
- */
- std::string getFormatedErrorMessages() const;
-
- private:
- enum TokenType
- {
- tokenEndOfStream = 0,
- tokenObjectBegin,
- tokenObjectEnd,
- tokenArrayBegin,
- tokenArrayEnd,
- tokenString,
- tokenNumber,
- tokenTrue,
- tokenFalse,
- tokenNull,
- tokenArraySeparator,
- tokenMemberSeparator,
- tokenComment,
- tokenError
- };
-
- class Token
- {
- public:
- TokenType type_;
- Location start_;
- Location end_;
- };
-
- class ErrorInfo
- {
- public:
- Token token_;
- std::string message_;
- Location extra_;
- };
-
- typedef std::deque<ErrorInfo> Errors;
-
- bool expectToken( TokenType type, Token &token, const char *message );
- bool readToken( Token &token );
- void skipSpaces();
- bool match( Location pattern,
- int patternLength );
- bool readComment();
- bool readCStyleComment();
- bool readCppStyleComment();
- bool readString();
- void readNumber();
- bool readValue();
- bool readObject( Token &token );
- bool readArray( Token &token );
- bool decodeNumber( Token &token );
- bool decodeString( Token &token );
- bool decodeString( Token &token, std::string &decoded );
- bool decodeDouble( Token &token );
- bool decodeUnicodeCodePoint( Token &token,
- Location ¤t,
- Location end,
- unsigned int &unicode );
- bool decodeUnicodeEscapeSequence( Token &token,
- Location ¤t,
- Location end,
- unsigned int &unicode );
- bool addError( const std::string &message,
- Token &token,
- Location extra = 0 );
- bool recoverFromError( TokenType skipUntilToken );
- bool addErrorAndRecover( const std::string &message,
- Token &token,
- TokenType skipUntilToken );
- void skipUntilSpace();
- Value ¤tValue();
- Char getNextChar();
- void getLocationLineAndColumn( Location location,
- int &line,
- int &column ) const;
- std::string getLocationLineAndColumn( Location location ) const;
- void addComment( Location begin,
- Location end,
- CommentPlacement placement );
- void skipCommentTokens( Token &token );
-
- typedef std::stack<Value *> Nodes;
- Nodes nodes_;
- Errors errors_;
- std::string document_;
- Location begin_;
- Location end_;
- Location current_;
- Location lastValueEnd_;
- Value *lastValue_;
- std::string commentsBefore_;
- Features features_;
- bool collectComments_;
- };
-
- /** \brief Read from 'sin' into 'root'.
-
- Always keep comments from the input JSON.
-
- This can be used to read a file into a particular sub-object.
- For example:
- \code
- Json::Value root;
- cin >> root["dir"]["file"];
- cout << root;
- \endcode
- Result:
- \verbatim
- {
- "dir": {
- "file": {
- // The input stream JSON would be nested here.
- }
- }
- }
- \endverbatim
- \throw std::exception on parse error.
- \see Json::operator<<()
- */
- std::istream& operator>>( std::istream&, Value& );
-
-} // namespace Json
-
-#endif // CPPTL_JSON_READER_H_INCLUDED