├── platforms ├── ios │ ├── CordovaLib │ │ ├── VERSION │ │ ├── .gitignore │ │ ├── CordovaLib.xcodeproj │ │ │ └── xcuserdata │ │ │ │ └── cvanes.xcuserdatad │ │ │ │ └── xcschemes │ │ │ │ └── xcschememanagement.plist │ │ ├── CordovaLib_Prefix.pch │ │ └── Classes │ │ │ ├── CDVTimer.h │ │ │ ├── NSArray+Comparisons.h │ │ │ ├── NSData+Base64.h │ │ │ ├── NSMutableArray+QueueAdditions.h │ │ │ ├── CDVJSON.h │ │ │ ├── CDVDebug.h │ │ │ ├── CDVShared.h │ │ │ ├── CDVScreenOrientationDelegate.h │ │ │ ├── CDVURLProtocol.h │ │ │ ├── CDVUserAgentUtil.h │ │ │ ├── UIDevice+Extensions.h │ │ │ ├── CDVCommandDelegateImpl.h │ │ │ ├── CDVWhitelist.h │ │ │ ├── CDVConfigParser.h │ │ │ ├── NSArray+Comparisons.m │ │ │ ├── CDVCommandQueue.h │ │ │ ├── CDV.h │ │ │ ├── CDVWebViewDelegate.h │ │ │ ├── NSDictionary+Extensions.h │ │ │ └── NSMutableArray+QueueAdditions.m │ ├── .gitignore │ ├── CustomCamera │ │ ├── .gitignore │ │ ├── Resources │ │ │ ├── icons │ │ │ │ ├── icon.png │ │ │ │ ├── icon-40.png │ │ │ │ ├── icon-50.png │ │ │ │ ├── icon-60.png │ │ │ │ ├── icon-72.png │ │ │ │ ├── icon-76.png │ │ │ │ ├── icon@2x.png │ │ │ │ ├── icon-40@2x.png │ │ │ │ ├── icon-50@2x.png │ │ │ │ ├── icon-60@2x.png │ │ │ │ ├── icon-72@2x.png │ │ │ │ ├── icon-76@2x.png │ │ │ │ ├── icon-small.png │ │ │ │ └── icon-small@2x.png │ │ │ ├── splash │ │ │ │ ├── Default~iphone.png │ │ │ │ ├── Default@2x~iphone.png │ │ │ │ ├── Default-568h@2x~iphone.png │ │ │ │ ├── Default-Landscape~ipad.png │ │ │ │ ├── Default-Portrait~ipad.png │ │ │ │ ├── Default-Portrait@2x~ipad.png │ │ │ │ └── Default-Landscape@2x~ipad.png │ │ │ ├── en.lproj │ │ │ │ └── Localizable.strings │ │ │ ├── se.lproj │ │ │ │ └── Localizable.strings │ │ │ ├── es.lproj │ │ │ │ └── Localizable.strings │ │ │ └── de.lproj │ │ │ │ └── Localizable.strings │ │ ├── Classes │ │ │ ├── CustomCamera.h │ │ │ ├── CustomCameraViewController.h │ │ │ ├── MainViewController.h │ │ │ └── AppDelegate.h │ │ ├── Plugins │ │ │ └── README │ │ ├── CustomCamera-Prefix.pch │ │ ├── main.m │ │ └── config.xml │ ├── www │ │ ├── res │ │ │ ├── screen │ │ │ │ ├── tizen │ │ │ │ │ └── README.md │ │ │ │ ├── webos │ │ │ │ │ └── screen-64.png │ │ │ │ ├── bada-wac │ │ │ │ │ ├── screen-type3.png │ │ │ │ │ ├── screen-type4.png │ │ │ │ │ └── screen-type5.png │ │ │ │ ├── bada │ │ │ │ │ └── screen-portrait.png │ │ │ │ ├── blackberry │ │ │ │ │ └── screen-225.png │ │ │ │ ├── ios │ │ │ │ │ ├── screen-ipad-portrait.png │ │ │ │ │ ├── screen-ipad-landscape.png │ │ │ │ │ ├── screen-ipad-portrait-2x.png │ │ │ │ │ ├── screen-iphone-landscape.png │ │ │ │ │ ├── screen-iphone-portrait.png │ │ │ │ │ ├── screen-ipad-landscape-2x.png │ │ │ │ │ ├── screen-iphone-portrait-2x.png │ │ │ │ │ ├── screen-iphone-landscape-2x.png │ │ │ │ │ └── screen-iphone-portrait-568h-2x.png │ │ │ │ ├── android │ │ │ │ │ ├── screen-hdpi-landscape.png │ │ │ │ │ ├── screen-hdpi-portrait.png │ │ │ │ │ ├── screen-ldpi-landscape.png │ │ │ │ │ ├── screen-ldpi-portrait.png │ │ │ │ │ ├── screen-mdpi-landscape.png │ │ │ │ │ ├── screen-mdpi-portrait.png │ │ │ │ │ ├── screen-xhdpi-portrait.png │ │ │ │ │ └── screen-xhdpi-landscape.png │ │ │ │ └── windows-phone │ │ │ │ │ └── screen-portrait.jpg │ │ │ └── icon │ │ │ │ ├── ios │ │ │ │ ├── icon-57.png │ │ │ │ ├── icon-72.png │ │ │ │ ├── icon-57-2x.png │ │ │ │ └── icon-72-2x.png │ │ │ │ ├── bada │ │ │ │ └── icon-128.png │ │ │ │ ├── tizen │ │ │ │ └── icon-128.png │ │ │ │ ├── webos │ │ │ │ └── icon-64.png │ │ │ │ ├── blackberry │ │ │ │ └── icon-80.png │ │ │ │ ├── android │ │ │ │ ├── icon-36-ldpi.png │ │ │ │ ├── icon-48-mdpi.png │ │ │ │ ├── icon-72-hdpi.png │ │ │ │ └── icon-96-xhdpi.png │ │ │ │ ├── windows-phone │ │ │ │ ├── icon-48.png │ │ │ │ ├── icon-62-tile.png │ │ │ │ └── icon-173-tile.png │ │ │ │ └── bada-wac │ │ │ │ ├── icon-48-type5.png │ │ │ │ ├── icon-50-type3.png │ │ │ │ └── icon-80-type4.png │ │ ├── icon.png │ │ ├── img │ │ │ ├── logo.png │ │ │ └── cameraoverlay │ │ │ │ ├── border_top_left.png │ │ │ │ ├── capture_button.png │ │ │ │ ├── border_top_right.png │ │ │ │ ├── border_bottom_left.png │ │ │ │ ├── border_bottom_right.png │ │ │ │ └── capture_button_pressed.png │ │ ├── cordova_plugins.js │ │ ├── js │ │ │ └── customcamera.js │ │ └── spec │ │ │ ├── lib │ │ │ └── jasmine-1.2.0 │ │ │ │ └── MIT.LICENSE │ │ │ └── helper.js │ ├── CustomCamera.xcodeproj │ │ ├── xcuserdata │ │ │ └── cvanes.xcuserdatad │ │ │ │ ├── xcdebugger │ │ │ │ └── Breakpoints_v2.xcbkptlist │ │ │ │ └── xcschemes │ │ │ │ └── xcschememanagement.plist │ │ └── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcuserdata │ │ │ └── cvanes.xcuserdatad │ │ │ └── WorkspaceSettings.xcsettings │ └── cordova │ │ ├── build.xcconfig │ │ ├── log │ │ ├── lib │ │ ├── list-devices │ │ ├── sim.applescript │ │ ├── start-emulator │ │ ├── list-emulator-images │ │ └── list-started-emulators │ │ ├── check_reqs │ │ ├── version │ │ ├── clean │ │ └── defaults.xml └── android │ ├── .gitignore │ ├── cordova │ ├── node_modules │ │ ├── .bin │ │ │ └── shjs │ │ ├── shelljs │ │ │ ├── .npmignore │ │ │ ├── src │ │ │ │ ├── popd.js │ │ │ │ ├── pushd.js │ │ │ │ ├── pwd.js │ │ │ │ ├── error.js │ │ │ │ ├── cd.js │ │ │ │ ├── echo.js │ │ │ │ ├── toEnd.js │ │ │ │ ├── to.js │ │ │ │ ├── cat.js │ │ │ │ ├── sed.js │ │ │ │ ├── find.js │ │ │ │ └── grep.js │ │ │ ├── .travis.yml │ │ │ ├── .documentup.json │ │ │ ├── global.js │ │ │ ├── .jshintrc │ │ │ ├── scripts │ │ │ │ ├── generate-docs.js │ │ │ │ └── run-tests.js │ │ │ ├── make.js │ │ │ ├── bin │ │ │ │ └── shjs │ │ │ └── LICENSE │ │ └── q │ │ │ ├── queue.js │ │ │ ├── benchmark │ │ │ └── scenarios.js │ │ │ └── LICENSE │ ├── defaults.xml │ ├── version │ ├── log.bat │ ├── run.bat │ ├── build.bat │ ├── clean.bat │ ├── version.bat │ ├── lib │ │ ├── list-devices.bat │ │ ├── install-device.bat │ │ ├── start-emulator.bat │ │ ├── install-emulator.bat │ │ ├── list-emulator-images.bat │ │ ├── list-started-emulators.bat │ │ ├── list-devices │ │ ├── list-emulator-images │ │ ├── list-started-emulators │ │ ├── clean.js │ │ ├── install-emulator │ │ ├── start-emulator │ │ └── install-device │ ├── android_sdk_version │ ├── check_reqs │ ├── log │ ├── clean │ ├── run │ └── build │ ├── res │ ├── values │ │ ├── styles.xml │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── attrs.xml │ ├── drawable │ │ └── icon.png │ ├── drawable-hdpi │ │ └── icon.png │ ├── drawable-ldpi │ │ └── icon.png │ ├── drawable-mdpi │ │ └── icon.png │ ├── drawable-xhdpi │ │ └── icon.png │ ├── values-v11 │ │ └── styles.xml │ └── xml │ │ └── config.xml │ ├── assets │ └── www │ │ ├── res │ │ ├── screen │ │ │ ├── tizen │ │ │ │ └── README.md │ │ │ ├── webos │ │ │ │ └── screen-64.png │ │ │ ├── bada-wac │ │ │ │ ├── screen-type3.png │ │ │ │ ├── screen-type4.png │ │ │ │ └── screen-type5.png │ │ │ ├── bada │ │ │ │ └── screen-portrait.png │ │ │ ├── blackberry │ │ │ │ └── screen-225.png │ │ │ ├── ios │ │ │ │ ├── screen-ipad-landscape.png │ │ │ │ ├── screen-ipad-portrait.png │ │ │ │ ├── screen-iphone-portrait.png │ │ │ │ ├── screen-ipad-landscape-2x.png │ │ │ │ ├── screen-ipad-portrait-2x.png │ │ │ │ ├── screen-iphone-landscape.png │ │ │ │ ├── screen-iphone-landscape-2x.png │ │ │ │ ├── screen-iphone-portrait-2x.png │ │ │ │ └── screen-iphone-portrait-568h-2x.png │ │ │ ├── android │ │ │ │ ├── screen-hdpi-portrait.png │ │ │ │ ├── screen-ldpi-portrait.png │ │ │ │ ├── screen-mdpi-portrait.png │ │ │ │ ├── screen-hdpi-landscape.png │ │ │ │ ├── screen-ldpi-landscape.png │ │ │ │ ├── screen-mdpi-landscape.png │ │ │ │ ├── screen-xhdpi-landscape.png │ │ │ │ └── screen-xhdpi-portrait.png │ │ │ └── windows-phone │ │ │ │ └── screen-portrait.jpg │ │ └── icon │ │ │ ├── bada │ │ │ └── icon-128.png │ │ │ ├── ios │ │ │ ├── icon-57.png │ │ │ ├── icon-72.png │ │ │ ├── icon-57-2x.png │ │ │ └── icon-72-2x.png │ │ │ ├── webos │ │ │ └── icon-64.png │ │ │ ├── tizen │ │ │ └── icon-128.png │ │ │ ├── blackberry │ │ │ └── icon-80.png │ │ │ ├── android │ │ │ ├── icon-36-ldpi.png │ │ │ ├── icon-48-mdpi.png │ │ │ ├── icon-72-hdpi.png │ │ │ └── icon-96-xhdpi.png │ │ │ ├── bada-wac │ │ │ ├── icon-48-type5.png │ │ │ ├── icon-50-type3.png │ │ │ └── icon-80-type4.png │ │ │ └── windows-phone │ │ │ ├── icon-48.png │ │ │ ├── icon-173-tile.png │ │ │ └── icon-62-tile.png │ │ ├── icon.png │ │ ├── img │ │ ├── logo.png │ │ └── cameraoverlay │ │ │ ├── capture_button.png │ │ │ ├── border_top_left.png │ │ │ ├── border_top_right.png │ │ │ ├── border_bottom_left.png │ │ │ ├── border_bottom_right.png │ │ │ └── capture_button_pressed.png │ │ ├── cordova_plugins.js │ │ ├── js │ │ └── customcamera.js │ │ └── spec │ │ ├── lib │ │ └── jasmine-1.2.0 │ │ │ └── MIT.LICENSE │ │ └── helper.js │ ├── libs │ └── android-support-v4.jar │ ├── .settings │ └── org.eclipse.jdt.core.prefs │ ├── CordovaLib │ ├── gen │ │ └── org │ │ │ └── apache │ │ │ └── cordova │ │ │ └── BuildConfig.java │ ├── .settings │ │ └── org.eclipse.jdt.core.prefs │ ├── local.properties │ ├── .classpath │ ├── project.properties │ ├── proguard-project.txt │ ├── .project │ ├── AndroidManifest.xml │ └── src │ │ ├── com │ │ └── squareup │ │ │ └── okhttp │ │ │ ├── internal │ │ │ ├── Dns.java │ │ │ ├── NamedRunnable.java │ │ │ ├── http │ │ │ │ └── AbstractHttpOutputStream.java │ │ │ ├── spdy │ │ │ │ └── IncomingStreamHandler.java │ │ │ └── AbstractOutputStream.java │ │ │ ├── ResponseSource.java │ │ │ └── OkResponseCache.java │ │ └── org │ │ └── apache │ │ └── cordova │ │ ├── DroidGap.java │ │ └── JSONUtils.java │ ├── local.properties │ ├── .classpath │ ├── project.properties │ ├── proguard-project.txt │ ├── .project │ ├── src │ └── com │ │ └── performanceactive │ │ └── plugins │ │ └── camera │ │ └── MainActivity.java │ └── AndroidManifest.xml ├── www.zip ├── www ├── icon.png ├── img │ ├── logo.png │ └── cameraoverlay │ │ ├── capture_button.png │ │ ├── border_top_left.png │ │ ├── border_top_right.png │ │ ├── border_bottom_left.png │ │ ├── border_bottom_right.png │ │ └── capture_button_pressed.png ├── res │ ├── screen │ │ ├── tizen │ │ │ └── README.md │ │ ├── webos │ │ │ └── screen-64.png │ │ ├── bada-wac │ │ │ ├── screen-type3.png │ │ │ ├── screen-type4.png │ │ │ └── screen-type5.png │ │ ├── bada │ │ │ └── screen-portrait.png │ │ ├── blackberry │ │ │ └── screen-225.png │ │ ├── ios │ │ │ ├── screen-ipad-landscape.png │ │ │ ├── screen-ipad-portrait.png │ │ │ ├── screen-iphone-portrait.png │ │ │ ├── screen-ipad-landscape-2x.png │ │ │ ├── screen-ipad-portrait-2x.png │ │ │ ├── screen-iphone-landscape.png │ │ │ ├── screen-iphone-landscape-2x.png │ │ │ ├── screen-iphone-portrait-2x.png │ │ │ └── screen-iphone-portrait-568h-2x.png │ │ ├── android │ │ │ ├── screen-hdpi-portrait.png │ │ │ ├── screen-ldpi-portrait.png │ │ │ ├── screen-mdpi-portrait.png │ │ │ ├── screen-hdpi-landscape.png │ │ │ ├── screen-ldpi-landscape.png │ │ │ ├── screen-mdpi-landscape.png │ │ │ ├── screen-xhdpi-landscape.png │ │ │ └── screen-xhdpi-portrait.png │ │ └── windows-phone │ │ │ └── screen-portrait.jpg │ └── icon │ │ ├── bada │ │ └── icon-128.png │ │ ├── ios │ │ ├── icon-57.png │ │ ├── icon-72.png │ │ ├── icon-57-2x.png │ │ └── icon-72-2x.png │ │ ├── webos │ │ └── icon-64.png │ │ ├── tizen │ │ └── icon-128.png │ │ ├── blackberry │ │ └── icon-80.png │ │ ├── android │ │ ├── icon-36-ldpi.png │ │ ├── icon-48-mdpi.png │ │ ├── icon-72-hdpi.png │ │ └── icon-96-xhdpi.png │ │ ├── bada-wac │ │ ├── icon-48-type5.png │ │ ├── icon-50-type3.png │ │ └── icon-80-type4.png │ │ └── windows-phone │ │ ├── icon-48.png │ │ ├── icon-173-tile.png │ │ └── icon-62-tile.png ├── js │ └── customcamera.js └── spec │ ├── lib │ └── jasmine-1.2.0 │ │ └── MIT.LICENSE │ └── helper.js ├── plugins ├── ios.json └── android.json └── .cordova └── config.json /platforms/ios/CordovaLib/VERSION: -------------------------------------------------------------------------------- 1 | 3.3.0 2 | -------------------------------------------------------------------------------- /platforms/android/.gitignore: -------------------------------------------------------------------------------- 1 | bin/ 2 | gen/ 3 | -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/.bin/shjs: -------------------------------------------------------------------------------- 1 | ../shelljs/bin/shjs -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/.npmignore: -------------------------------------------------------------------------------- 1 | test/ 2 | tmp/ -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/src/popd.js: -------------------------------------------------------------------------------- 1 | // see dirs.js -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/src/pushd.js: -------------------------------------------------------------------------------- 1 | // see dirs.js -------------------------------------------------------------------------------- /platforms/android/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /www.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www.zip -------------------------------------------------------------------------------- /www/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/icon.png -------------------------------------------------------------------------------- /www/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/img/logo.png -------------------------------------------------------------------------------- /www/res/screen/tizen/README.md: -------------------------------------------------------------------------------- 1 | # Tizen Splash Screen 2 | 3 | Splash screens are unsupported on the Tizen platform. 4 | -------------------------------------------------------------------------------- /platforms/ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.perspectivev3 3 | *.pbxuser 4 | .DS_Store 5 | build 6 | www/phonegap.js 7 | xcuserdata/ 8 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/.gitignore: -------------------------------------------------------------------------------- 1 | build/* 2 | *.pbxuser 3 | *.perspectivev3 4 | *.mode1v3 5 | javascripts/cordova-*.js 6 | 7 | -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.perspectivev3 3 | *.pbxuser 4 | .DS_Store 5 | build 6 | www/phonegap.js 7 | -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/tizen/README.md: -------------------------------------------------------------------------------- 1 | # Tizen Splash Screen 2 | 3 | Splash screens are unsupported on the Tizen platform. 4 | -------------------------------------------------------------------------------- /plugins/ios.json: -------------------------------------------------------------------------------- 1 | {"prepare_queue":{"installed":[],"uninstalled":[]},"config_munge":{},"installed_plugins":{},"dependent_plugins":{}} -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.11" 6 | -------------------------------------------------------------------------------- /platforms/android/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #66000000 4 | 5 | 6 | -------------------------------------------------------------------------------- /platforms/ios/www/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/icon.png -------------------------------------------------------------------------------- /plugins/android.json: -------------------------------------------------------------------------------- 1 | {"prepare_queue":{"installed":[],"uninstalled":[]},"config_munge":{},"installed_plugins":{},"dependent_plugins":{}} -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/.documentup.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ShellJS", 3 | "twitter": [ 4 | "r2r" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /platforms/ios/www/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/img/logo.png -------------------------------------------------------------------------------- /www/res/icon/bada/icon-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/icon/bada/icon-128.png -------------------------------------------------------------------------------- /www/res/icon/ios/icon-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/icon/ios/icon-57.png -------------------------------------------------------------------------------- /www/res/icon/ios/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/icon/ios/icon-72.png -------------------------------------------------------------------------------- /www/res/icon/webos/icon-64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/icon/webos/icon-64.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/tizen/README.md: -------------------------------------------------------------------------------- 1 | # Tizen Splash Screen 2 | 3 | Splash screens are unsupported on the Tizen platform. 4 | -------------------------------------------------------------------------------- /www/res/icon/ios/icon-57-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/icon/ios/icon-57-2x.png -------------------------------------------------------------------------------- /www/res/icon/ios/icon-72-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/icon/ios/icon-72-2x.png -------------------------------------------------------------------------------- /www/res/icon/tizen/icon-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/icon/tizen/icon-128.png -------------------------------------------------------------------------------- /www/res/icon/blackberry/icon-80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/icon/blackberry/icon-80.png -------------------------------------------------------------------------------- /www/res/screen/webos/screen-64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/webos/screen-64.png -------------------------------------------------------------------------------- /platforms/android/assets/www/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/icon.png -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/global.js: -------------------------------------------------------------------------------- 1 | var shell = require('./shell.js'); 2 | for (var cmd in shell) 3 | global[cmd] = shell[cmd]; 4 | -------------------------------------------------------------------------------- /www/res/icon/android/icon-36-ldpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/icon/android/icon-36-ldpi.png -------------------------------------------------------------------------------- /www/res/icon/android/icon-48-mdpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/icon/android/icon-48-mdpi.png -------------------------------------------------------------------------------- /www/res/icon/android/icon-72-hdpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/icon/android/icon-72-hdpi.png -------------------------------------------------------------------------------- /platforms/android/res/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/res/drawable/icon.png -------------------------------------------------------------------------------- /www/img/cameraoverlay/capture_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/img/cameraoverlay/capture_button.png -------------------------------------------------------------------------------- /www/res/icon/android/icon-96-xhdpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/icon/android/icon-96-xhdpi.png -------------------------------------------------------------------------------- /www/res/icon/bada-wac/icon-48-type5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/icon/bada-wac/icon-48-type5.png -------------------------------------------------------------------------------- /www/res/icon/bada-wac/icon-50-type3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/icon/bada-wac/icon-50-type3.png -------------------------------------------------------------------------------- /www/res/icon/bada-wac/icon-80-type4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/icon/bada-wac/icon-80-type4.png -------------------------------------------------------------------------------- /www/res/icon/windows-phone/icon-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/icon/windows-phone/icon-48.png -------------------------------------------------------------------------------- /www/res/screen/bada-wac/screen-type3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/bada-wac/screen-type3.png -------------------------------------------------------------------------------- /www/res/screen/bada-wac/screen-type4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/bada-wac/screen-type4.png -------------------------------------------------------------------------------- /www/res/screen/bada-wac/screen-type5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/bada-wac/screen-type5.png -------------------------------------------------------------------------------- /www/res/screen/bada/screen-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/bada/screen-portrait.png -------------------------------------------------------------------------------- /www/res/screen/blackberry/screen-225.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/blackberry/screen-225.png -------------------------------------------------------------------------------- /platforms/android/assets/www/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/img/logo.png -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "loopfunc": true, 3 | "sub": true, 4 | "undef": true, 5 | "unused": true, 6 | "node": true 7 | } -------------------------------------------------------------------------------- /platforms/ios/www/res/icon/ios/icon-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/icon/ios/icon-57.png -------------------------------------------------------------------------------- /platforms/ios/www/res/icon/ios/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/icon/ios/icon-72.png -------------------------------------------------------------------------------- /www/img/cameraoverlay/border_top_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/img/cameraoverlay/border_top_left.png -------------------------------------------------------------------------------- /www/img/cameraoverlay/border_top_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/img/cameraoverlay/border_top_right.png -------------------------------------------------------------------------------- /platforms/android/libs/android-support-v4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/libs/android-support-v4.jar -------------------------------------------------------------------------------- /platforms/android/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /platforms/android/res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /platforms/android/res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /platforms/android/res/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/res/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /platforms/android/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | CustomCamera 4 | 5 | -------------------------------------------------------------------------------- /platforms/ios/www/res/icon/bada/icon-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/icon/bada/icon-128.png -------------------------------------------------------------------------------- /platforms/ios/www/res/icon/ios/icon-57-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/icon/ios/icon-57-2x.png -------------------------------------------------------------------------------- /platforms/ios/www/res/icon/ios/icon-72-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/icon/ios/icon-72-2x.png -------------------------------------------------------------------------------- /platforms/ios/www/res/icon/tizen/icon-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/icon/tizen/icon-128.png -------------------------------------------------------------------------------- /platforms/ios/www/res/icon/webos/icon-64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/icon/webos/icon-64.png -------------------------------------------------------------------------------- /www/img/cameraoverlay/border_bottom_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/img/cameraoverlay/border_bottom_left.png -------------------------------------------------------------------------------- /www/img/cameraoverlay/border_bottom_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/img/cameraoverlay/border_bottom_right.png -------------------------------------------------------------------------------- /www/res/icon/windows-phone/icon-173-tile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/icon/windows-phone/icon-173-tile.png -------------------------------------------------------------------------------- /www/res/icon/windows-phone/icon-62-tile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/icon/windows-phone/icon-62-tile.png -------------------------------------------------------------------------------- /www/res/screen/ios/screen-ipad-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/ios/screen-ipad-landscape.png -------------------------------------------------------------------------------- /www/res/screen/ios/screen-ipad-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/ios/screen-ipad-portrait.png -------------------------------------------------------------------------------- /www/res/screen/ios/screen-iphone-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/ios/screen-iphone-portrait.png -------------------------------------------------------------------------------- /www/res/screen/android/screen-hdpi-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/android/screen-hdpi-portrait.png -------------------------------------------------------------------------------- /www/res/screen/android/screen-ldpi-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/android/screen-ldpi-portrait.png -------------------------------------------------------------------------------- /www/res/screen/android/screen-mdpi-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/android/screen-mdpi-portrait.png -------------------------------------------------------------------------------- /www/res/screen/ios/screen-ipad-landscape-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/ios/screen-ipad-landscape-2x.png -------------------------------------------------------------------------------- /www/res/screen/ios/screen-ipad-portrait-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/ios/screen-ipad-portrait-2x.png -------------------------------------------------------------------------------- /www/res/screen/ios/screen-iphone-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/ios/screen-iphone-landscape.png -------------------------------------------------------------------------------- /platforms/ios/www/res/icon/blackberry/icon-80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/icon/blackberry/icon-80.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/webos/screen-64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/webos/screen-64.png -------------------------------------------------------------------------------- /www/img/cameraoverlay/capture_button_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/img/cameraoverlay/capture_button_pressed.png -------------------------------------------------------------------------------- /www/res/screen/android/screen-hdpi-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/android/screen-hdpi-landscape.png -------------------------------------------------------------------------------- /www/res/screen/android/screen-ldpi-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/android/screen-ldpi-landscape.png -------------------------------------------------------------------------------- /www/res/screen/android/screen-mdpi-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/android/screen-mdpi-landscape.png -------------------------------------------------------------------------------- /www/res/screen/android/screen-xhdpi-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/android/screen-xhdpi-landscape.png -------------------------------------------------------------------------------- /www/res/screen/android/screen-xhdpi-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/android/screen-xhdpi-portrait.png -------------------------------------------------------------------------------- /www/res/screen/ios/screen-iphone-landscape-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/ios/screen-iphone-landscape-2x.png -------------------------------------------------------------------------------- /www/res/screen/ios/screen-iphone-portrait-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/ios/screen-iphone-portrait-2x.png -------------------------------------------------------------------------------- /www/res/screen/windows-phone/screen-portrait.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/windows-phone/screen-portrait.jpg -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/icons/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/icons/icon.png -------------------------------------------------------------------------------- /platforms/ios/www/res/icon/android/icon-36-ldpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/icon/android/icon-36-ldpi.png -------------------------------------------------------------------------------- /platforms/ios/www/res/icon/android/icon-48-mdpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/icon/android/icon-48-mdpi.png -------------------------------------------------------------------------------- /platforms/ios/www/res/icon/android/icon-72-hdpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/icon/android/icon-72-hdpi.png -------------------------------------------------------------------------------- /platforms/ios/www/res/icon/android/icon-96-xhdpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/icon/android/icon-96-xhdpi.png -------------------------------------------------------------------------------- /platforms/ios/www/res/icon/windows-phone/icon-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/icon/windows-phone/icon-48.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/icon/bada/icon-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/icon/bada/icon-128.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/icon/ios/icon-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/icon/ios/icon-57.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/icon/ios/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/icon/ios/icon-72.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/icon/webos/icon-64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/icon/webos/icon-64.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/icons/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/icons/icon-40.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/icons/icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/icons/icon-50.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/icons/icon-60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/icons/icon-60.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/icons/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/icons/icon-72.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/icons/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/icons/icon-76.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/icons/icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/icons/icon@2x.png -------------------------------------------------------------------------------- /platforms/ios/www/img/cameraoverlay/border_top_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/img/cameraoverlay/border_top_left.png -------------------------------------------------------------------------------- /platforms/ios/www/img/cameraoverlay/capture_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/img/cameraoverlay/capture_button.png -------------------------------------------------------------------------------- /platforms/ios/www/res/icon/bada-wac/icon-48-type5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/icon/bada-wac/icon-48-type5.png -------------------------------------------------------------------------------- /platforms/ios/www/res/icon/bada-wac/icon-50-type3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/icon/bada-wac/icon-50-type3.png -------------------------------------------------------------------------------- /platforms/ios/www/res/icon/bada-wac/icon-80-type4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/icon/bada-wac/icon-80-type4.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/bada-wac/screen-type3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/bada-wac/screen-type3.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/bada-wac/screen-type4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/bada-wac/screen-type4.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/bada-wac/screen-type5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/bada-wac/screen-type5.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/bada/screen-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/bada/screen-portrait.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/blackberry/screen-225.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/blackberry/screen-225.png -------------------------------------------------------------------------------- /www/res/screen/ios/screen-iphone-portrait-568h-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/www/res/screen/ios/screen-iphone-portrait-568h-2x.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/icon/ios/icon-57-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/icon/ios/icon-57-2x.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/icon/ios/icon-72-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/icon/ios/icon-72-2x.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/icon/tizen/icon-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/icon/tizen/icon-128.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/icons/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/icons/icon-40@2x.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/icons/icon-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/icons/icon-50@2x.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/icons/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/icons/icon-60@2x.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/icons/icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/icons/icon-72@2x.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/icons/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/icons/icon-76@2x.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/icons/icon-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/icons/icon-small.png -------------------------------------------------------------------------------- /platforms/ios/www/img/cameraoverlay/border_top_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/img/cameraoverlay/border_top_right.png -------------------------------------------------------------------------------- /platforms/ios/www/res/icon/windows-phone/icon-62-tile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/icon/windows-phone/icon-62-tile.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/ios/screen-ipad-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/ios/screen-ipad-portrait.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/icon/blackberry/icon-80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/icon/blackberry/icon-80.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/webos/screen-64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/webos/screen-64.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/icons/icon-small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/icons/icon-small@2x.png -------------------------------------------------------------------------------- /platforms/ios/www/img/cameraoverlay/border_bottom_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/img/cameraoverlay/border_bottom_left.png -------------------------------------------------------------------------------- /platforms/ios/www/img/cameraoverlay/border_bottom_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/img/cameraoverlay/border_bottom_right.png -------------------------------------------------------------------------------- /platforms/ios/www/res/icon/windows-phone/icon-173-tile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/icon/windows-phone/icon-173-tile.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/ios/screen-ipad-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/ios/screen-ipad-landscape.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/ios/screen-ipad-portrait-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/ios/screen-ipad-portrait-2x.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/ios/screen-iphone-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/ios/screen-iphone-landscape.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/ios/screen-iphone-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/ios/screen-iphone-portrait.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/icon/android/icon-36-ldpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/icon/android/icon-36-ldpi.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/icon/android/icon-48-mdpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/icon/android/icon-48-mdpi.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/icon/android/icon-72-hdpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/icon/android/icon-72-hdpi.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/splash/Default~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/splash/Default~iphone.png -------------------------------------------------------------------------------- /platforms/ios/www/img/cameraoverlay/capture_button_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/img/cameraoverlay/capture_button_pressed.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/android/screen-hdpi-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/android/screen-hdpi-landscape.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/android/screen-hdpi-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/android/screen-hdpi-portrait.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/android/screen-ldpi-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/android/screen-ldpi-landscape.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/android/screen-ldpi-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/android/screen-ldpi-portrait.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/android/screen-mdpi-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/android/screen-mdpi-landscape.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/android/screen-mdpi-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/android/screen-mdpi-portrait.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/android/screen-xhdpi-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/android/screen-xhdpi-portrait.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/ios/screen-ipad-landscape-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/ios/screen-ipad-landscape-2x.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/ios/screen-iphone-portrait-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/ios/screen-iphone-portrait-2x.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/windows-phone/screen-portrait.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/windows-phone/screen-portrait.jpg -------------------------------------------------------------------------------- /.cordova/config.json: -------------------------------------------------------------------------------- 1 | {"lib":{"www":{"id":"phonegap","version":"3.3.0","uri":"https://github.com/phonegap/phonegap-app-hello-world/archive/3.3.0.tar.gz"}},"id":"com.performanceactive.gripcamera","name":"GripCamera"} -------------------------------------------------------------------------------- /platforms/android/assets/www/img/cameraoverlay/capture_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/img/cameraoverlay/capture_button.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/icon/android/icon-96-xhdpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/icon/android/icon-96-xhdpi.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/icon/bada-wac/icon-48-type5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/icon/bada-wac/icon-48-type5.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/icon/bada-wac/icon-50-type3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/icon/bada-wac/icon-50-type3.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/icon/bada-wac/icon-80-type4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/icon/bada-wac/icon-80-type4.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/icon/windows-phone/icon-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/icon/windows-phone/icon-48.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/bada-wac/screen-type3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/bada-wac/screen-type3.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/bada-wac/screen-type4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/bada-wac/screen-type4.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/bada-wac/screen-type5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/bada-wac/screen-type5.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/bada/screen-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/bada/screen-portrait.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/blackberry/screen-225.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/blackberry/screen-225.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/splash/Default@2x~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/splash/Default@2x~iphone.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/android/screen-xhdpi-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/android/screen-xhdpi-landscape.png -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/ios/screen-iphone-landscape-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/ios/screen-iphone-landscape-2x.png -------------------------------------------------------------------------------- /platforms/android/assets/www/img/cameraoverlay/border_top_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/img/cameraoverlay/border_top_left.png -------------------------------------------------------------------------------- /platforms/android/assets/www/img/cameraoverlay/border_top_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/img/cameraoverlay/border_top_right.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera.xcodeproj/xcuserdata/cvanes.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /platforms/ios/www/res/screen/ios/screen-iphone-portrait-568h-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/www/res/screen/ios/screen-iphone-portrait-568h-2x.png -------------------------------------------------------------------------------- /platforms/android/assets/www/img/cameraoverlay/border_bottom_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/img/cameraoverlay/border_bottom_left.png -------------------------------------------------------------------------------- /platforms/android/assets/www/img/cameraoverlay/border_bottom_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/img/cameraoverlay/border_bottom_right.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/icon/windows-phone/icon-173-tile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/icon/windows-phone/icon-173-tile.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/icon/windows-phone/icon-62-tile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/icon/windows-phone/icon-62-tile.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/ios/screen-ipad-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/ios/screen-ipad-landscape.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/ios/screen-ipad-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/ios/screen-ipad-portrait.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/ios/screen-iphone-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/ios/screen-iphone-portrait.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/splash/Default-568h@2x~iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/splash/Default-568h@2x~iphone.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/splash/Default-Landscape~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/splash/Default-Landscape~ipad.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/splash/Default-Portrait~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/splash/Default-Portrait~ipad.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/android/screen-hdpi-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/android/screen-hdpi-portrait.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/android/screen-ldpi-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/android/screen-ldpi-portrait.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/android/screen-mdpi-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/android/screen-mdpi-portrait.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/ios/screen-ipad-landscape-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/ios/screen-ipad-landscape-2x.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/ios/screen-ipad-portrait-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/ios/screen-ipad-portrait-2x.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/ios/screen-iphone-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/ios/screen-iphone-landscape.png -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/splash/Default-Portrait@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/splash/Default-Portrait@2x~ipad.png -------------------------------------------------------------------------------- /platforms/android/assets/www/img/cameraoverlay/capture_button_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/img/cameraoverlay/capture_button_pressed.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/android/screen-hdpi-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/android/screen-hdpi-landscape.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/android/screen-ldpi-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/android/screen-ldpi-landscape.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/android/screen-mdpi-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/android/screen-mdpi-landscape.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/android/screen-xhdpi-landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/android/screen-xhdpi-landscape.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/android/screen-xhdpi-portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/android/screen-xhdpi-portrait.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/ios/screen-iphone-landscape-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/ios/screen-iphone-landscape-2x.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/ios/screen-iphone-portrait-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/ios/screen-iphone-portrait-2x.png -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/windows-phone/screen-portrait.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/windows-phone/screen-portrait.jpg -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/splash/Default-Landscape@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/ios/CustomCamera/Resources/splash/Default-Landscape@2x~ipad.png -------------------------------------------------------------------------------- /platforms/ios/www/cordova_plugins.js: -------------------------------------------------------------------------------- 1 | cordova.define('cordova/plugin_list', function(require, exports, module) { 2 | module.exports = []; 3 | module.exports.metadata = 4 | // TOP OF METADATA 5 | {} 6 | // BOTTOM OF METADATA 7 | }); -------------------------------------------------------------------------------- /platforms/android/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 3 | org.eclipse.jdt.core.compiler.compliance=1.6 4 | org.eclipse.jdt.core.compiler.source=1.6 5 | -------------------------------------------------------------------------------- /platforms/android/assets/www/cordova_plugins.js: -------------------------------------------------------------------------------- 1 | cordova.define('cordova/plugin_list', function(require, exports, module) { 2 | module.exports = []; 3 | module.exports.metadata = 4 | // TOP OF METADATA 5 | {} 6 | // BOTTOM OF METADATA 7 | }); -------------------------------------------------------------------------------- /platforms/android/assets/www/res/screen/ios/screen-iphone-portrait-568h-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/performanceactive/phonegap-custom-camera-plugin/HEAD/platforms/android/assets/www/res/screen/ios/screen-iphone-portrait-568h-2x.png -------------------------------------------------------------------------------- /platforms/android/CordovaLib/gen/org/apache/cordova/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** Automatically generated file. DO NOT MODIFY */ 2 | package org.apache.cordova; 3 | 4 | public final class BuildConfig { 5 | public final static boolean DEBUG = true; 6 | } -------------------------------------------------------------------------------- /platforms/android/CordovaLib/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 3 | org.eclipse.jdt.core.compiler.compliance=1.6 4 | org.eclipse.jdt.core.compiler.source=1.6 5 | -------------------------------------------------------------------------------- /platforms/ios/CustomCamera.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Classes/CustomCamera.h: -------------------------------------------------------------------------------- 1 | // 2 | // CustomCamera.h 3 | // CustomCamera 4 | // 5 | // Created by Chris van Es on 24/02/2014. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface CustomCamera : CDVPlugin 12 | 13 | - (void)takePicture:(CDVInvokedUrlCommand*)command; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/src/pwd.js: -------------------------------------------------------------------------------- 1 | var path = require('path'); 2 | var common = require('./common'); 3 | 4 | //@ 5 | //@ ### pwd() 6 | //@ Returns the current directory. 7 | function _pwd(options) { 8 | var pwd = path.resolve(process.cwd()); 9 | return common.ShellString(pwd); 10 | } 11 | module.exports = _pwd; 12 | -------------------------------------------------------------------------------- /platforms/ios/cordova/build.xcconfig: -------------------------------------------------------------------------------- 1 | // to list all installed iOS identities, run: 2 | // security find-identity | sed -n 's/.*\("[^"]*"\).*/\1/p' | grep 'iPhone' 3 | 4 | // generic 'iPhone Developer' (no quotes) will match the right Identity with the right Provisioning Profile plus Certificate, based on the app bundle id 5 | CODE_SIGN_IDENTITY = iPhone Developer -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/src/error.js: -------------------------------------------------------------------------------- 1 | var common = require('./common'); 2 | 3 | //@ 4 | //@ ### error() 5 | //@ Tests if error occurred in the last command. Returns `null` if no error occurred, 6 | //@ otherwise returns string explaining the error 7 | function error() { 8 | return common.state.error; 9 | }; 10 | module.exports = error; 11 | -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Classes/CustomCameraViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CustomCameraViewController.h 3 | // CustomCamera 4 | // 5 | // Created by Chris van Es on 24/02/2014. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface CustomCameraViewController : UIViewController 12 | 13 | - (id)initWithCallback:(void(^)(UIImage*))callback; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /platforms/ios/CustomCamera.xcodeproj/project.xcworkspace/xcuserdata/cvanes.xcuserdatad/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges 6 | 7 | SnapshotAutomaticallyBeforeSignificantChanges 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /www/js/customcamera.js: -------------------------------------------------------------------------------- 1 | var customCamera = { 2 | getPicture: function(filename, success, failure, options) { 3 | options = options || {}; 4 | var quality = options.quality || 100; 5 | var targetWidth = options.targetWidth || -1; 6 | var targetHeight = options.targetHeight || -1; 7 | cordova.exec(success, failure, "CustomCamera", "takePicture", [filename, quality, targetWidth, targetHeight]); 8 | } 9 | }; 10 | 11 | module.exports = customCamera; 12 | -------------------------------------------------------------------------------- /platforms/ios/www/js/customcamera.js: -------------------------------------------------------------------------------- 1 | var customCamera = { 2 | getPicture: function(filename, success, failure, options) { 3 | options = options || {}; 4 | var quality = options.quality || 100; 5 | var targetWidth = options.targetWidth || -1; 6 | var targetHeight = options.targetHeight || -1; 7 | cordova.exec(success, failure, "CustomCamera", "takePicture", [filename, quality, targetWidth, targetHeight]); 8 | } 9 | }; 10 | 11 | module.exports = customCamera; 12 | -------------------------------------------------------------------------------- /platforms/android/assets/www/js/customcamera.js: -------------------------------------------------------------------------------- 1 | var customCamera = { 2 | getPicture: function(filename, success, failure, options) { 3 | options = options || {}; 4 | var quality = options.quality || 100; 5 | var targetWidth = options.targetWidth || -1; 6 | var targetHeight = options.targetHeight || -1; 7 | cordova.exec(success, failure, "CustomCamera", "takePicture", [filename, quality, targetWidth, targetHeight]); 8 | } 9 | }; 10 | 11 | module.exports = customCamera; 12 | -------------------------------------------------------------------------------- /platforms/android/local.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked into Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | 7 | # location of the SDK. This is only used by Ant 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | sdk.dir=/Users/cvanes/Dev/Tools/adt-bundle-mac-x86_64-20131030/sdk 11 | -------------------------------------------------------------------------------- /platforms/android/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/local.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked into Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | 7 | # location of the SDK. This is only used by Ant 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | sdk.dir=/Users/cvanes/Dev/Tools/adt-bundle-mac-x86_64-20131030/sdk 11 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/src/cd.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs'); 2 | var common = require('./common'); 3 | 4 | //@ 5 | //@ ### cd('dir') 6 | //@ Changes to directory `dir` for the duration of the script 7 | function _cd(options, dir) { 8 | if (!dir) 9 | common.error('directory not specified'); 10 | 11 | if (!fs.existsSync(dir)) 12 | common.error('no such file or directory: ' + dir); 13 | 14 | if (!fs.statSync(dir).isDirectory()) 15 | common.error('not a directory: ' + dir); 16 | 17 | process.chdir(dir); 18 | } 19 | module.exports = _cd; 20 | -------------------------------------------------------------------------------- /platforms/android/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/src/echo.js: -------------------------------------------------------------------------------- 1 | var common = require('./common'); 2 | 3 | //@ 4 | //@ ### echo(string [,string ...]) 5 | //@ 6 | //@ Examples: 7 | //@ 8 | //@ ```javascript 9 | //@ echo('hello world'); 10 | //@ var str = echo('hello world'); 11 | //@ ``` 12 | //@ 13 | //@ Prints string to stdout, and returns string with additional utility methods 14 | //@ like `.to()`. 15 | function _echo() { 16 | var messages = [].slice.call(arguments, 0); 17 | console.log.apply(this, messages); 18 | return common.ShellString(messages.join(' ')); 19 | } 20 | module.exports = _echo; 21 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system use, 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Indicates whether an apk should be generated for each density. 11 | split.density=false 12 | # Project target. 13 | target=android-19 14 | apk-configurations= 15 | renderscript.opt.level=O0 16 | android.library=true 17 | -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/scripts/generate-docs.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../global'); 3 | 4 | echo('Appending docs to README.md'); 5 | 6 | cd(__dirname + '/..'); 7 | 8 | // Extract docs from shell.js 9 | var docs = grep('//@', 'shell.js'); 10 | 11 | docs = docs.replace(/\/\/\@include (.+)/g, function(match, path) { 12 | var file = path.match('.js$') ? path : path+'.js'; 13 | return grep('//@', file); 14 | }); 15 | 16 | // Remove '//@' 17 | docs = docs.replace(/\/\/\@ ?/g, ''); 18 | // Append docs to README 19 | sed('-i', /## Command reference(.|\n)*/, '## Command reference\n\n' + docs, 'README.md'); 20 | 21 | echo('All done.'); 22 | -------------------------------------------------------------------------------- /platforms/ios/CustomCamera.xcodeproj/xcuserdata/cvanes.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | CustomCamera.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 1D6058900D05DD3D006BFB54 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/CordovaLib.xcodeproj/xcuserdata/cvanes.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | CordovaLib.xcscheme 8 | 9 | orderHint 10 | 1 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | D2AAC07D0554694100DB518D 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /platforms/android/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /platforms/android/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | android.library.reference.1=CordovaLib 14 | # Project target. 15 | target=android-19 16 | android.library.reference.2=CordovaLib 17 | android.library.reference.3=CordovaLib 18 | -------------------------------------------------------------------------------- /platforms/android/proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/src/toEnd.js: -------------------------------------------------------------------------------- 1 | var common = require('./common'); 2 | var fs = require('fs'); 3 | var path = require('path'); 4 | 5 | //@ 6 | //@ ### 'string'.toEnd(file) 7 | //@ 8 | //@ Examples: 9 | //@ 10 | //@ ```javascript 11 | //@ cat('input.txt').toEnd('output.txt'); 12 | //@ ``` 13 | //@ 14 | //@ Analogous to the redirect-and-append operator `>>` in Unix, but works with JavaScript strings (such as 15 | //@ those returned by `cat`, `grep`, etc). 16 | function _toEnd(options, file) { 17 | if (!file) 18 | common.error('wrong arguments'); 19 | 20 | if (!fs.existsSync( path.dirname(file) )) 21 | common.error('no such file or directory: ' + path.dirname(file)); 22 | 23 | try { 24 | fs.appendFileSync(file, this.toString(), 'utf8'); 25 | } catch(e) { 26 | common.error('could not append to file (code '+e.code+'): '+file, true); 27 | } 28 | } 29 | module.exports = _toEnd; 30 | -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/src/to.js: -------------------------------------------------------------------------------- 1 | var common = require('./common'); 2 | var fs = require('fs'); 3 | var path = require('path'); 4 | 5 | //@ 6 | //@ ### 'string'.to(file) 7 | //@ 8 | //@ Examples: 9 | //@ 10 | //@ ```javascript 11 | //@ cat('input.txt').to('output.txt'); 12 | //@ ``` 13 | //@ 14 | //@ Analogous to the redirection operator `>` in Unix, but works with JavaScript strings (such as 15 | //@ those returned by `cat`, `grep`, etc). _Like Unix redirections, `to()` will overwrite any existing file!_ 16 | function _to(options, file) { 17 | if (!file) 18 | common.error('wrong arguments'); 19 | 20 | if (!fs.existsSync( path.dirname(file) )) 21 | common.error('no such file or directory: ' + path.dirname(file)); 22 | 23 | try { 24 | fs.writeFileSync(file, this.toString(), 'utf8'); 25 | } catch(e) { 26 | common.error('could not write to file (code '+e.code+'): '+file, true); 27 | } 28 | } 29 | module.exports = _to; 30 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/CordovaLib_Prefix.pch: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #ifdef __OBJC__ 21 | #import 22 | #endif 23 | -------------------------------------------------------------------------------- /platforms/android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | CustomCamera 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Plugins/README: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | # 19 | 20 | Put the .h and .m files of your plugin here. The .js files of your plugin belong in the www folder. -------------------------------------------------------------------------------- /platforms/android/CordovaLib/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | CustomCamera-CordovaLib 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /platforms/ios/cordova/log: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | 21 | CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd -P) 22 | 23 | tail -f "$CORDOVA_PATH/console.log" 24 | -------------------------------------------------------------------------------- /platforms/android/cordova/defaults.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello Cordova 4 | 5 | A sample Apache Cordova application that responds to the deviceready event. 6 | 7 | 8 | Apache Cordova Team 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | CustomCamera 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /platforms/android/res/xml/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello Cordova 4 | 5 | A sample Apache Cordova application that responds to the deviceready event. 6 | 7 | 8 | Apache Cordova Team 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | CustomCamera 17 | CustomCamera 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/CDVTimer.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | 22 | @interface CDVTimer : NSObject 23 | 24 | + (void)start:(NSString*)name; 25 | + (void)stop:(NSString*)name; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/NSArray+Comparisons.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | 22 | @interface NSArray (Comparisons) 23 | 24 | - (id)objectAtIndex:(NSUInteger)index withDefault:(id)aDefault; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/NSData+Base64.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSData+Base64.h 3 | // base64 4 | // 5 | // Created by Matt Gallagher on 2009/06/03. 6 | // Copyright 2009 Matt Gallagher. All rights reserved. 7 | // 8 | // Permission is given to use this source code file, free of charge, in any 9 | // project, commercial or otherwise, entirely at your risk, with the condition 10 | // that any redistribution (in part or whole) of source code must retain 11 | // this copyright and permission notice. Attribution in compiled projects is 12 | // appreciated but not required. 13 | // 14 | 15 | #import 16 | 17 | void *CDVNewBase64Decode( 18 | const char* inputBuffer, 19 | size_t length, 20 | size_t * outputLength); 21 | 22 | char *CDVNewBase64Encode( 23 | const void* inputBuffer, 24 | size_t length, 25 | bool separateLines, 26 | size_t * outputLength); 27 | 28 | @interface NSData (CDVBase64) 29 | 30 | + (NSData*)dataFromBase64String:(NSString*)aString; 31 | - (NSString*)base64EncodedString; 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /platforms/android/cordova/version: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | // Coho updates this line: 23 | var VERSION = "3.3.0"; 24 | 25 | console.log(VERSION); 26 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/NSMutableArray+QueueAdditions.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | 22 | @interface NSMutableArray (QueueAdditions) 23 | 24 | - (id)pop; 25 | - (id)queueHead; 26 | - (id)dequeue; 27 | - (void)enqueue:(id)obj; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/CustomCamera-Prefix.pch: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | // 20 | // Prefix header for all source files of the 'CustomCamera' target in the 'CustomCamera' project 21 | // 22 | 23 | #ifdef __OBJC__ 24 | #import 25 | #import 26 | #endif 27 | -------------------------------------------------------------------------------- /platforms/android/cordova/log.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0log" 20 | IF EXIST %script_path% ( 21 | node %script_path% %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'log' script in 'cordova' folder, aborting...>&2 25 | EXIT /B 1 26 | ) -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/q/queue.js: -------------------------------------------------------------------------------- 1 | 2 | var Q = require("./q"); 3 | 4 | module.exports = Queue; 5 | function Queue() { 6 | var ends = Q.defer(); 7 | var closed = Q.defer(); 8 | return { 9 | put: function (value) { 10 | var next = Q.defer(); 11 | ends.resolve({ 12 | head: value, 13 | tail: next.promise 14 | }); 15 | ends.resolve = next.resolve; 16 | }, 17 | get: function () { 18 | var result = ends.promise.get("head"); 19 | ends.promise = ends.promise.get("tail"); 20 | return result.fail(function (error) { 21 | closed.resolve(error); 22 | throw error; 23 | }); 24 | }, 25 | closed: closed.promise, 26 | close: function (error) { 27 | error = error || new Error("Can't get value from closed queue"); 28 | var end = {head: Q.reject(error)}; 29 | end.tail = end; 30 | ends.resolve(end); 31 | return closed.promise; 32 | } 33 | }; 34 | } 35 | 36 | -------------------------------------------------------------------------------- /platforms/android/cordova/run.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0run" 20 | IF EXIST %script_path% ( 21 | node %script_path% %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'run' script in 'cordova' folder, aborting...>&2 25 | EXIT /B 1 26 | ) -------------------------------------------------------------------------------- /platforms/android/cordova/build.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0build" 20 | IF EXIST %script_path% ( 21 | node %script_path% %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'build' script in 'cordova' folder, aborting...>&2 25 | EXIT /B 1 26 | ) -------------------------------------------------------------------------------- /platforms/android/cordova/clean.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0clean" 20 | IF EXIST %script_path% ( 21 | node %script_path% %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'clean' script in 'cordova' folder, aborting...>&2 25 | EXIT /B 1 26 | ) -------------------------------------------------------------------------------- /platforms/android/cordova/version.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0version" 20 | IF EXIST %script_path% ( 21 | node %script_path% %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'version' script in 'cordova' folder, aborting...>&2 25 | EXIT /B 1 26 | ) 27 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/CDVJSON.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | @interface NSArray (CDVJSONSerializing) 21 | - (NSString*)JSONString; 22 | @end 23 | 24 | @interface NSDictionary (CDVJSONSerializing) 25 | - (NSString*)JSONString; 26 | @end 27 | 28 | @interface NSString (CDVJSONSerializing) 29 | - (id)JSONObject; 30 | @end 31 | -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/q/benchmark/scenarios.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var Q = require("../q"); 4 | 5 | suite("Chaining", function () { 6 | var numberToChain = 1000; 7 | 8 | bench("Chaining many already-fulfilled promises together", function (done) { 9 | var currentPromise = Q(); 10 | for (var i = 0; i < numberToChain; ++i) { 11 | currentPromise = currentPromise.then(function () { 12 | return Q(); 13 | }); 14 | } 15 | 16 | currentPromise.then(done); 17 | }); 18 | 19 | bench("Chaining and then fulfilling the end of the chain", function (done) { 20 | var deferred = Q.defer(); 21 | 22 | var currentPromise = deferred.promise; 23 | for (var i = 0; i < numberToChain; ++i) { 24 | (function () { 25 | var promiseToReturn = currentPromise; 26 | currentPromise = Q().then(function () { 27 | return promiseToReturn; 28 | }); 29 | }()); 30 | } 31 | 32 | currentPromise.then(done); 33 | 34 | deferred.resolve(); 35 | }); 36 | }); 37 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/CDVDebug.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #ifdef DEBUG 21 | #define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) 22 | #else 23 | #define DLog(...) 24 | #endif 25 | #define ALog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) 26 | -------------------------------------------------------------------------------- /www/spec/lib/jasmine-1.2.0/MIT.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2008-2011 Pivotal Labs 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/list-devices.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0list-devices" 20 | IF EXIST %script_path% ( 21 | node "%script_path%" %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'list-devices' script in 'cordova\lib' folder, aborting...>&2 25 | EXIT /B 1 26 | ) -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/CDVShared.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface NSError (JSONMethods) 24 | 25 | - (NSString*)JSONRepresentation; 26 | 27 | @end 28 | 29 | @interface CLLocation (JSONMethods) 30 | 31 | - (NSString*)JSONRepresentation; 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /platforms/ios/cordova/lib/list-devices: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | 21 | system_profiler SPUSBDataType | sed -n -e '/iPad/,/Serial/p' | grep "Serial Number:" | awk -F ": " '{print $2 " iPad"}' 22 | system_profiler SPUSBDataType | sed -n -e '/iPhone/,/Serial/p' | grep "Serial Number:" | awk -F ": " '{print $2 " iPhone"}' 23 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/install-device.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0install-device" 20 | IF EXIST %script_path% ( 21 | node "%script_path%" %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'install-device' script in 'cordova\lib' folder, aborting...>&2 25 | EXIT /B 1 26 | ) -------------------------------------------------------------------------------- /platforms/android/cordova/lib/start-emulator.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0start-emulator" 20 | IF EXIST %script_path% ( 21 | node "%script_path%" %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'start-emulator' script in 'cordova\lib' folder, aborting...>&2 25 | EXIT /B 1 26 | ) -------------------------------------------------------------------------------- /platforms/android/cordova/lib/install-emulator.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0install-emulator" 20 | IF EXIST %script_path% ( 21 | node "%script_path%" %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'install-emulator' script in 'cordova\lib' folder, aborting...>&2 25 | EXIT /B 1 26 | ) -------------------------------------------------------------------------------- /platforms/ios/www/spec/lib/jasmine-1.2.0/MIT.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2008-2011 Pivotal Labs 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /platforms/android/assets/www/spec/lib/jasmine-1.2.0/MIT.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2008-2011 Pivotal Labs 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/list-emulator-images.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0list-emulator-images" 20 | IF EXIST %script_path% ( 21 | node "%script_path%" %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'list-emulator-images' script in 'cordova\lib' folder, aborting...>&2 25 | EXIT /B 1 26 | ) 27 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/list-started-emulators.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0list-started-emulators" 20 | IF EXIST %script_path% ( 21 | node "%script_path%" %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'list-started-emulators' script in 'cordova\lib' folder, aborting...>&2 25 | EXIT /B 1 26 | ) -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/q/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Copyright 2009–2012 Kristopher Michael Kowal. All rights reserved. 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to 5 | deal in the Software without restriction, including without limitation the 6 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 7 | sell copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 18 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 19 | IN THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/CDVScreenOrientationDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | 22 | @protocol CDVScreenOrientationDelegate 23 | 24 | - (NSUInteger)supportedInterfaceOrientations; 25 | - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation; 26 | - (BOOL)shouldAutorotate; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /platforms/android/cordova/android_sdk_version: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var android_sdk_version = require('./lib/android_sdk_version'); 23 | 24 | android_sdk_version.run().done(null, function(err) { 25 | console.log(err); 26 | process.exit(2); 27 | }); 28 | 29 | 30 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/CDVURLProtocol.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | #import "CDVAvailability.h" 22 | 23 | @class CDVViewController; 24 | 25 | @interface CDVURLProtocol : NSURLProtocol {} 26 | 27 | + (void)registerViewController:(CDVViewController*)viewController; 28 | + (void)unregisterViewController:(CDVViewController*)viewController; 29 | @end 30 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/CDVUserAgentUtil.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | 22 | @interface CDVUserAgentUtil : NSObject 23 | + (NSString*)originalUserAgent; 24 | + (void)acquireLock:(void (^)(NSInteger lockToken))block; 25 | + (void)releaseLock:(NSInteger*)lockToken; 26 | + (void)setUserAgent:(NSString*)value lockToken:(NSInteger)lockToken; 27 | @end 28 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/main.m: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | // 20 | // main.m 21 | // CustomCamera 22 | // 23 | // Created by ___FULLUSERNAME___ on ___DATE___. 24 | // Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved. 25 | // 26 | 27 | #import 28 | 29 | int main(int argc, char* argv[]) 30 | { 31 | @autoreleasepool { 32 | int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate"); 33 | return retVal; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/com/squareup/okhttp/internal/Dns.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 Square, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.squareup.okhttp.internal; 17 | 18 | import java.net.InetAddress; 19 | import java.net.UnknownHostException; 20 | 21 | /** 22 | * Domain name service. Prefer this over {@link InetAddress#getAllByName} to 23 | * make code more testable. 24 | */ 25 | public interface Dns { 26 | Dns DEFAULT = new Dns() { 27 | @Override public InetAddress[] getAllByName(String host) throws UnknownHostException { 28 | return InetAddress.getAllByName(host); 29 | } 30 | }; 31 | 32 | InetAddress[] getAllByName(String host) throws UnknownHostException; 33 | } 34 | -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/src/cat.js: -------------------------------------------------------------------------------- 1 | var common = require('./common'); 2 | var fs = require('fs'); 3 | 4 | //@ 5 | //@ ### cat(file [, file ...]) 6 | //@ ### cat(file_array) 7 | //@ 8 | //@ Examples: 9 | //@ 10 | //@ ```javascript 11 | //@ var str = cat('file*.txt'); 12 | //@ var str = cat('file1', 'file2'); 13 | //@ var str = cat(['file1', 'file2']); // same as above 14 | //@ ``` 15 | //@ 16 | //@ Returns a string containing the given file, or a concatenated string 17 | //@ containing the files if more than one file is given (a new line character is 18 | //@ introduced between each file). Wildcard `*` accepted. 19 | function _cat(options, files) { 20 | var cat = ''; 21 | 22 | if (!files) 23 | common.error('no paths given'); 24 | 25 | if (typeof files === 'string') 26 | files = [].slice.call(arguments, 1); 27 | // if it's array leave it as it is 28 | 29 | files = common.expand(files); 30 | 31 | files.forEach(function(file) { 32 | if (!fs.existsSync(file)) 33 | common.error('no such file or directory: ' + file); 34 | 35 | cat += fs.readFileSync(file, 'utf8') + '\n'; 36 | }); 37 | 38 | if (cat[cat.length-1] === '\n') 39 | cat = cat.substring(0, cat.length-1); 40 | 41 | return common.ShellString(cat); 42 | } 43 | module.exports = _cat; 44 | -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/make.js: -------------------------------------------------------------------------------- 1 | require('./global'); 2 | 3 | global.config.fatal = true; 4 | global.target = {}; 5 | 6 | // This ensures we only execute the script targets after the entire script has 7 | // been evaluated 8 | var args = process.argv.slice(2); 9 | setTimeout(function() { 10 | var t; 11 | 12 | if (args.length === 1 && args[0] === '--help') { 13 | console.log('Available targets:'); 14 | for (t in global.target) 15 | console.log(' ' + t); 16 | return; 17 | } 18 | 19 | // Wrap targets to prevent duplicate execution 20 | for (t in global.target) { 21 | (function(t, oldTarget){ 22 | 23 | // Wrap it 24 | global.target[t] = function(force) { 25 | if (oldTarget.done && !force) 26 | return; 27 | oldTarget.done = true; 28 | return oldTarget.apply(oldTarget, arguments); 29 | }; 30 | 31 | })(t, global.target[t]); 32 | } 33 | 34 | // Execute desired targets 35 | if (args.length > 0) { 36 | args.forEach(function(arg) { 37 | if (arg in global.target) 38 | global.target[arg](); 39 | else { 40 | console.log('no such target: ' + arg); 41 | } 42 | }); 43 | } else if ('all' in global.target) { 44 | global.target.all(); 45 | } 46 | 47 | }, 0); 48 | -------------------------------------------------------------------------------- /platforms/android/cordova/check_reqs: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var check_reqs = require('./lib/check_reqs'); 23 | 24 | check_reqs.run().done( 25 | function success() { 26 | console.log('Looks like your environment fully supports cordova-android development!'); 27 | }, function fail(err) { 28 | console.log(err); 29 | process.exit(2); 30 | } 31 | ); 32 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/UIDevice+Extensions.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | 22 | @interface UIDevice (org_apache_cordova_UIDevice_Extension) 23 | 24 | /* 25 | Get the unique identifier from the app bundle's folder, which is already a GUID 26 | Upgrading and/or deleting the app and re-installing will get you a new GUID, so 27 | this is only unique per install per device. 28 | */ 29 | - (NSString*)uniqueAppInstanceIdentifier; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/CDVCommandDelegateImpl.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | #import "CDVCommandDelegate.h" 22 | 23 | @class CDVViewController; 24 | @class CDVCommandQueue; 25 | 26 | @interface CDVCommandDelegateImpl : NSObject { 27 | @private 28 | __weak CDVViewController* _viewController; 29 | @protected 30 | __weak CDVCommandQueue* _commandQueue; 31 | } 32 | - (id)initWithViewController:(CDVViewController*)viewController; 33 | @end 34 | -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/scripts/run-tests.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../global'); 3 | 4 | var path = require('path'); 5 | 6 | var failed = false; 7 | 8 | // 9 | // Lint 10 | // 11 | JSHINT_BIN = './node_modules/jshint/bin/jshint'; 12 | cd(__dirname + '/..'); 13 | 14 | if (!test('-f', JSHINT_BIN)) { 15 | echo('JSHint not found. Run `npm install` in the root dir first.'); 16 | exit(1); 17 | } 18 | 19 | if (exec(JSHINT_BIN + ' *.js test/*.js').code !== 0) { 20 | failed = true; 21 | echo('*** JSHINT FAILED! (return code != 0)'); 22 | echo(); 23 | } else { 24 | echo('All JSHint tests passed'); 25 | echo(); 26 | } 27 | 28 | // 29 | // Unit tests 30 | // 31 | cd(__dirname + '/../test'); 32 | ls('*.js').forEach(function(file) { 33 | echo('Running test:', file); 34 | if (exec('node ' + file).code !== 123) { // 123 avoids false positives (e.g. premature exit) 35 | failed = true; 36 | echo('*** TEST FAILED! (missing exit code "123")'); 37 | echo(); 38 | } 39 | }); 40 | 41 | if (failed) { 42 | echo(); 43 | echo('*******************************************************'); 44 | echo('WARNING: Some tests did not pass!'); 45 | echo('*******************************************************'); 46 | exit(1); 47 | } else { 48 | echo(); 49 | echo('All tests passed.'); 50 | } 51 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/list-devices: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var devices = require('./device'); 23 | 24 | // Usage support for when args are given 25 | devices.list().done(function(device_list) { 26 | device_list && device_list.forEach(function(dev) { 27 | console.log(dev); 28 | }); 29 | }, function(err) { 30 | console.error('ERROR: ' + err); 31 | process.exit(2); 32 | }); 33 | 34 | -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/en.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | // controller title for Videos 21 | "Videos title" = "Videos"; 22 | // accessibility label for recording button 23 | "toggle audio recording" = "toggle audio recording"; 24 | // notification spoken by VoiceOver when timed recording finishes 25 | "timed recording complete" = "timed recording complete"; 26 | // accessibility hint for display of recorded elapsed time 27 | "recorded time in minutes and seconds" = "recorded time in minutes and seconds"; -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/se.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | 21 | // controller title for Videos 22 | "Videos title" = "Videor"; 23 | // accessibility label for recording button 24 | "toggle audio recording" = "börja/avsluta inspelning"; 25 | // notification spoken by VoiceOver when timed recording finishes 26 | "timed recording complete" = "inspelning har avslutad"; 27 | // accessibility hint for display of recorded elapsed time 28 | "recorded time in minutes and seconds" = "inspelad tid in minuter och sekund"; -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/es.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | // controller title for Videos 21 | "Videos title" = "Videos"; 22 | // accessibility label for recording button 23 | "toggle audio recording" = "grabación de audio cambiar"; 24 | // notification spoken by VoiceOver when timed recording finishes 25 | "timed recording complete" = "tiempo de grabación completo"; 26 | // accessibility hint for display of recorded elapsed time 27 | "recorded time in minutes and seconds" = "tiempo registrado en minutos y segundos"; -------------------------------------------------------------------------------- /platforms/android/cordova/lib/list-emulator-images: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var emulators = require('./emulator'); 23 | 24 | // Usage support for when args are given 25 | emulators.list_images().done(function(emulator_list) { 26 | emulator_list && emulator_list.forEach(function(emu) { 27 | console.log(emu.name); 28 | }); 29 | }, function(err) { 30 | console.error('ERROR: ' + err); 31 | process.exit(2); 32 | }); 33 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/list-started-emulators: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var emulators = require('./emulator'); 23 | 24 | // Usage support for when args are given 25 | emulators.list_started().done(function(emulator_list) { 26 | emulator_list && emulator_list.forEach(function(emu) { 27 | console.log(emu); 28 | }); 29 | }, function(err) { 30 | console.error('ERROR: ' + err); 31 | process.exit(2); 32 | }); 33 | -------------------------------------------------------------------------------- /platforms/ios/cordova/lib/sim.applescript: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | tell application "System Events" 19 | set UI elements enabled to true 20 | end tell 21 | 22 | tell application "iPhone Simulator" 23 | activate 24 | end tell 25 | 26 | tell application "System Events" 27 | tell process "iPhone Simulator" 28 | click menu item "$DEVICE_NAME" of menu 1 of menu item "Device" of menu 1 of menu bar item "Hardware" of menu bar 1 29 | click menu item "Home" of menu 1 of menu bar item "Hardware" of menu bar 1 30 | end tell 31 | end tell 32 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/com/squareup/okhttp/internal/NamedRunnable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2013 Square, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.squareup.okhttp.internal; 18 | 19 | /** 20 | * Runnable implementation which always sets its thread name. 21 | */ 22 | public abstract class NamedRunnable implements Runnable { 23 | private String name; 24 | 25 | public NamedRunnable(String name) { 26 | this.name = name; 27 | } 28 | 29 | @Override public final void run() { 30 | String oldName = Thread.currentThread().getName(); 31 | Thread.currentThread().setName(name); 32 | try { 33 | execute(); 34 | } finally { 35 | Thread.currentThread().setName(oldName); 36 | } 37 | } 38 | 39 | protected abstract void execute(); 40 | } 41 | -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Resources/de.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | 21 | // controller title for Videos 22 | "Videos title" = "Videos"; 23 | // accessibility label for recording button 24 | "toggle audio recording" = "starten/beenden der Tonaufnahme"; 25 | // notification spoken by VoiceOver when timed recording finishes 26 | "timed recording complete" = "programmierte Aufnahme beendet"; 27 | // accessibility hint for display of recorded elapsed time 28 | "recorded time in minutes and seconds" = "aufgenommene Zeit in Minuten und Sekunden"; -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/CDVWhitelist.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | 22 | extern NSString* const kCDVDefaultWhitelistRejectionString; 23 | 24 | @interface CDVWhitelist : NSObject 25 | 26 | @property (nonatomic, copy) NSString* whitelistRejectionFormatString; 27 | 28 | - (id)initWithArray:(NSArray*)array; 29 | - (BOOL)schemeIsAllowed:(NSString*)scheme; 30 | - (BOOL)URLIsAllowed:(NSURL*)url; 31 | - (BOOL)URLIsAllowed:(NSURL*)url logFailure:(BOOL)logFailure; 32 | - (NSString*)errorStringForURL:(NSURL*)url; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /platforms/ios/cordova/lib/start-emulator: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | # Valid values for "--target" (case insensitive): 21 | # "iPhone (Retina 3.5-inch)" (default) 22 | # "iPhone (Retina 4-inch)" 23 | # "iPhone" 24 | # "iPad" 25 | # "iPad (Retina)" 26 | 27 | set -e 28 | 29 | 30 | DEFAULT_TARGET="iPhone Retina (3.5-inch)" 31 | TARGET=${1:-$DEFAULT_TARGET} 32 | LIB_PATH=$( cd "$( dirname "$0" )" && pwd -P) 33 | 34 | SCPT=`sed -e "s/\\$DEVICE_NAME/$TARGET/g" "$LIB_PATH/sim.applescript"` 35 | osascript -e "$SCPT" 36 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/CDVConfigParser.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | @interface CDVConfigParser : NSObject 21 | { 22 | NSString* featureName; 23 | } 24 | 25 | @property (nonatomic, readonly, strong) NSMutableDictionary* pluginsDict; 26 | @property (nonatomic, readonly, strong) NSMutableDictionary* settings; 27 | @property (nonatomic, readonly, strong) NSMutableArray* whitelistHosts; 28 | @property (nonatomic, readonly, strong) NSMutableArray* startupPluginNames; 29 | @property (nonatomic, readonly, strong) NSString* startPage; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /platforms/android/cordova/log: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var log = require('./lib/log'), 23 | reqs = require('./lib/check_reqs'), 24 | args = process.argv; 25 | 26 | // Usage support for when args are given 27 | if(args.length > 2) { 28 | log.help(); 29 | } else { 30 | reqs.run().done(function() { 31 | return log.run(); 32 | }, function(err) { 33 | console.error('ERROR: ' + err); 34 | process.exit(2); 35 | }); 36 | } 37 | -------------------------------------------------------------------------------- /platforms/ios/cordova/check_reqs: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | # 4 | # Licensed to the Apache Software Foundation (ASF) under one 5 | # or more contributor license agreements. See the NOTICE file 6 | # distributed with this work for additional information 7 | # regarding copyright ownership. The ASF licenses this file 8 | # to you under the Apache License, Version 2.0 (the 9 | # "License"); you may not use this file except in compliance 10 | # with the License. You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, 15 | # software distributed under the License is distributed on an 16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | # KIND, either express or implied. See the License for the 18 | # specific language governing permissions and limitations 19 | # under the License. 20 | # 21 | 22 | XCODEBUILD_LOCATION=$(which xcodebuild) 23 | if [ $? != 0 ]; then 24 | echo "Xcode is (probably) not installed, specifically the command 'xcodebuild' is unavailable." 25 | exit 2 26 | fi 27 | 28 | XCODEBUILD_MIN_VERSION="4.6" 29 | XCODEBUILD_VERSION=$(xcodebuild -version | head -n 1 | sed -e 's/Xcode //') 30 | 31 | if [[ "$XCODEBUILD_VERSION" < "$XCODEBUILD_MIN_VERSION" ]]; then 32 | echo "Cordova can only run in Xcode version $XCODEBUILD_MIN_VERSION or greater." 33 | exit 2 34 | fi 35 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/com/squareup/okhttp/ResponseSource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.squareup.okhttp; 17 | 18 | /** The source of an HTTP response. */ 19 | public enum ResponseSource { 20 | 21 | /** The response was returned from the local cache. */ 22 | CACHE, 23 | 24 | /** 25 | * The response is available in the cache but must be validated with the 26 | * network. The cache result will be used if it is still valid; otherwise 27 | * the network's response will be used. 28 | */ 29 | CONDITIONAL_CACHE, 30 | 31 | /** The response was returned from the network. */ 32 | NETWORK; 33 | 34 | public boolean requiresConnection() { 35 | return this == CONDITIONAL_CACHE || this == NETWORK; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /platforms/ios/cordova/lib/list-emulator-images: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | # Valid values for "--target" (case insensitive): 21 | # "iPhone Retina (3.5-inch)" (default) 22 | # "iPhone Retina (4-inch)" 23 | # "iPhone" 24 | # "iPad" 25 | # "iPad Retina" 26 | 27 | set -e 28 | 29 | echo \""iPhone Retina (3.5-inch)"\" 30 | echo \""iPhone Retina (4-inch)"\" 31 | 32 | # this assumes Xcode 5 minimum 33 | echo \""iPhone Retina (4-inch 64-bit)"\" 34 | 35 | echo \""iPhone"\" 36 | echo \""iPad"\" 37 | echo \""iPad Retina"\" 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /platforms/android/cordova/clean: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var clean = require('./lib/clean'), 23 | reqs = require('./lib/check_reqs'), 24 | args = process.argv; 25 | 26 | // Usage support for when args are given 27 | if(args.length > 2) { 28 | clean.help(); 29 | } else { 30 | reqs.run().done(function() { 31 | return clean.run(); 32 | }, function(err) { 33 | console.error('ERROR: ' + err); 34 | process.exit(2); 35 | }); 36 | } 37 | -------------------------------------------------------------------------------- /www/spec/helper.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | afterEach(function() { 20 | document.getElementById('stage').innerHTML = ''; 21 | }); 22 | 23 | var helper = { 24 | trigger: function(obj, name) { 25 | var e = document.createEvent('Event'); 26 | e.initEvent(name, true, true); 27 | obj.dispatchEvent(e); 28 | }, 29 | getComputedStyle: function(querySelector, property) { 30 | var element = document.querySelector(querySelector); 31 | return window.getComputedStyle(element).getPropertyValue(property); 32 | } 33 | }; 34 | -------------------------------------------------------------------------------- /platforms/ios/cordova/lib/list-started-emulators: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # 20 | # Valid values for "--target" (case insensitive): 21 | # "iPhone (Retina 3.5-inch)" (default) 22 | # "iPhone (Retina 4-inch)" 23 | # "iPhone" 24 | # "iPad" 25 | # "iPad (Retina)" 26 | 27 | set -e 28 | 29 | SIM_RUNNING=$(ps aux | grep -i "[i]Phone Simulator" | wc -l) 30 | if [ $SIM_RUNNING == 0 ]; then 31 | echo "No emulators are running." 32 | exit 1 33 | fi 34 | 35 | SIM_ID=`defaults read com.apple.iphonesimulator "SimulateDevice"` 36 | echo \"$SIM_ID\" 37 | -------------------------------------------------------------------------------- /platforms/ios/www/spec/helper.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | afterEach(function() { 20 | document.getElementById('stage').innerHTML = ''; 21 | }); 22 | 23 | var helper = { 24 | trigger: function(obj, name) { 25 | var e = document.createEvent('Event'); 26 | e.initEvent(name, true, true); 27 | obj.dispatchEvent(e); 28 | }, 29 | getComputedStyle: function(querySelector, property) { 30 | var element = document.querySelector(querySelector); 31 | return window.getComputedStyle(element).getPropertyValue(property); 32 | } 33 | }; 34 | -------------------------------------------------------------------------------- /platforms/android/assets/www/spec/helper.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | afterEach(function() { 20 | document.getElementById('stage').innerHTML = ''; 21 | }); 22 | 23 | var helper = { 24 | trigger: function(obj, name) { 25 | var e = document.createEvent('Event'); 26 | e.initEvent(name, true, true); 27 | obj.dispatchEvent(e); 28 | }, 29 | getComputedStyle: function(querySelector, property) { 30 | var element = document.querySelector(querySelector); 31 | return window.getComputedStyle(element).getPropertyValue(property); 32 | } 33 | }; 34 | -------------------------------------------------------------------------------- /platforms/ios/cordova/version: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # 4 | # Licensed to the Apache Software Foundation (ASF) under one 5 | # or more contributor license agreements. See the NOTICE file 6 | # distributed with this work for additional information 7 | # regarding copyright ownership. The ASF licenses this file 8 | # to you under the Apache License, Version 2.0 (the 9 | # "License"); you may not use this file except in compliance 10 | # with the License. You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, 15 | # software distributed under the License is distributed on an 16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | # KIND, either express or implied. See the License for the 18 | # specific language governing permissions and limitations 19 | # under the License. 20 | # 21 | 22 | # 23 | # Returns the VERSION of CordovaLib used. 24 | # Note: it does not work if the --shared option was used to create the project. 25 | # 26 | 27 | set -e 28 | 29 | CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd -P) 30 | PROJECT_PATH="$(dirname "$CORDOVA_PATH")" 31 | 32 | VERSION_FILE_PATH="$PROJECT_PATH/CordovaLib/VERSION" 33 | VERSION=$(<"$VERSION_FILE_PATH") 34 | 35 | if [ -f "$VERSION_FILE_PATH" ]; then 36 | echo $VERSION 37 | else 38 | echo "The file \"$VERSION_FILE_PATH\" does not exist." 39 | exit 1 40 | fi -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/bin/shjs: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../global'); 3 | 4 | if (process.argv.length < 3) { 5 | console.log('ShellJS: missing argument (script name)'); 6 | console.log(); 7 | process.exit(1); 8 | } 9 | 10 | var args, 11 | scriptName = process.argv[2]; 12 | env['NODE_PATH'] = __dirname + '/../..'; 13 | 14 | if (!scriptName.match(/\.js/) && !scriptName.match(/\.coffee/)) { 15 | if (test('-f', scriptName + '.js')) 16 | scriptName += '.js'; 17 | if (test('-f', scriptName + '.coffee')) 18 | scriptName += '.coffee'; 19 | } 20 | 21 | if (!test('-f', scriptName)) { 22 | console.log('ShellJS: script not found ('+scriptName+')'); 23 | console.log(); 24 | process.exit(1); 25 | } 26 | 27 | args = process.argv.slice(3); 28 | 29 | for (var i = 0, l = args.length; i < l; i++) { 30 | if (args[i][0] !== "-"){ 31 | args[i] = '"' + args[i] + '"'; // fixes arguments with multiple words 32 | } 33 | } 34 | 35 | if (scriptName.match(/\.coffee$/)) { 36 | // 37 | // CoffeeScript 38 | // 39 | if (which('coffee')) { 40 | exec('coffee ' + scriptName + ' ' + args.join(' '), { async: true }); 41 | } else { 42 | console.log('ShellJS: CoffeeScript interpreter not found'); 43 | console.log(); 44 | process.exit(1); 45 | } 46 | } else { 47 | // 48 | // JavaScript 49 | // 50 | exec('node ' + scriptName + ' ' + args.join(' '), { async: true }); 51 | } 52 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/org/apache/cordova/DroidGap.java: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | package org.apache.cordova; 21 | 22 | /** 23 | * This used to be the class that should be extended by application 24 | * developers, but everything has been moved to CordovaActivity. So 25 | * you should extend CordovaActivity instead of DroidGap. This class 26 | * will be removed at a future time. 27 | * 28 | * @see CordovaActivity 29 | * @deprecated 30 | */ 31 | @Deprecated 32 | public class DroidGap extends CordovaActivity { 33 | 34 | } 35 | -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Classes/MainViewController.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | // 21 | // MainViewController.h 22 | // CustomCamera 23 | // 24 | // Created by ___FULLUSERNAME___ on ___DATE___. 25 | // Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved. 26 | // 27 | 28 | #import 29 | #import 30 | #import 31 | 32 | @interface MainViewController : CDVViewController 33 | 34 | @end 35 | 36 | @interface MainCommandDelegate : CDVCommandDelegateImpl 37 | @end 38 | 39 | @interface MainCommandQueue : CDVCommandQueue 40 | @end 41 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/NSArray+Comparisons.m: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import "NSArray+Comparisons.h" 21 | 22 | @implementation NSArray (Comparisons) 23 | 24 | - (id)objectAtIndex:(NSUInteger)index withDefault:(id)aDefault 25 | { 26 | id obj = nil; 27 | 28 | @try { 29 | obj = [self objectAtIndex:index]; 30 | if ((obj == [NSNull null]) || (obj == nil)) { 31 | return aDefault; 32 | } 33 | } 34 | @catch(NSException* exception) { 35 | NSLog(@"Exception - Name: %@ Reason: %@", [exception name], [exception reason]); 36 | } 37 | 38 | return obj; 39 | } 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /platforms/ios/cordova/clean: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # 4 | # Licensed to the Apache Software Foundation (ASF) under one 5 | # or more contributor license agreements. See the NOTICE file 6 | # distributed with this work for additional information 7 | # regarding copyright ownership. The ASF licenses this file 8 | # to you under the Apache License, Version 2.0 (the 9 | # "License"); you may not use this file except in compliance 10 | # with the License. You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, 15 | # software distributed under the License is distributed on an 16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | # KIND, either express or implied. See the License for the 18 | # specific language governing permissions and limitations 19 | # under the License. 20 | # 21 | 22 | # 23 | # Clean a Cordova/iOS project 24 | # 25 | 26 | set -e 27 | 28 | CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd -P) 29 | PROJECT_PATH="$(dirname "$CORDOVA_PATH")" 30 | XCODEPROJ=$( ls "$PROJECT_PATH" | grep .xcodeproj ) 31 | PROJECT_NAME=$(basename "$XCODEPROJ" .xcodeproj) 32 | 33 | source "$CORDOVA_PATH/check_reqs" 34 | 35 | cd "$PROJECT_PATH" 36 | 37 | xcodebuild -project "$PROJECT_NAME.xcodeproj" -configuration Debug -alltargets clean 38 | xcodebuild -project "$PROJECT_NAME.xcodeproj" -configuration Release -alltargets clean 39 | 40 | rm -rf "build" -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/CDVCommandQueue.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | 22 | @class CDVInvokedUrlCommand; 23 | @class CDVViewController; 24 | 25 | @interface CDVCommandQueue : NSObject 26 | 27 | @property (nonatomic, readonly) BOOL currentlyExecuting; 28 | 29 | - (id)initWithViewController:(CDVViewController*)viewController; 30 | - (void)dispose; 31 | 32 | - (void)resetRequestId; 33 | - (void)enqueCommandBatch:(NSString*)batchJSON; 34 | 35 | - (void)maybeFetchCommandsFromJs:(NSNumber*)requestId; 36 | - (void)fetchCommandsFromJs; 37 | - (void)executePending; 38 | - (BOOL)execute:(CDVInvokedUrlCommand*)command; 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/CDV.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import "CDVAvailability.h" 21 | 22 | #import "CDVPlugin.h" 23 | #import "CDVViewController.h" 24 | #import "CDVCommandDelegate.h" 25 | #import "CDVURLProtocol.h" 26 | #import "CDVInvokedUrlCommand.h" 27 | 28 | #import "CDVDebug.h" 29 | #import "CDVPluginResult.h" 30 | #import "CDVWhitelist.h" 31 | #import "CDVLocalStorage.h" 32 | #import "CDVScreenOrientationDelegate.h" 33 | #import "CDVTimer.h" 34 | 35 | #import "NSArray+Comparisons.h" 36 | #import "NSData+Base64.h" 37 | #import "NSDictionary+Extensions.h" 38 | #import "NSMutableArray+QueueAdditions.h" 39 | #import "UIDevice+Extensions.h" 40 | 41 | #import "CDVJSON.h" 42 | -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/src/sed.js: -------------------------------------------------------------------------------- 1 | var common = require('./common'); 2 | var fs = require('fs'); 3 | 4 | //@ 5 | //@ ### sed([options ,] search_regex, replace_str, file) 6 | //@ Available options: 7 | //@ 8 | //@ + `-i`: Replace contents of 'file' in-place. _Note that no backups will be created!_ 9 | //@ 10 | //@ Examples: 11 | //@ 12 | //@ ```javascript 13 | //@ sed('-i', 'PROGRAM_VERSION', 'v0.1.3', 'source.js'); 14 | //@ sed(/.*DELETE_THIS_LINE.*\n/, '', 'source.js'); 15 | //@ ``` 16 | //@ 17 | //@ Reads an input string from `file` and performs a JavaScript `replace()` on the input 18 | //@ using the given search regex and replacement string. Returns the new string after replacement. 19 | function _sed(options, regex, replacement, file) { 20 | options = common.parseOptions(options, { 21 | 'i': 'inplace' 22 | }); 23 | 24 | if (typeof replacement === 'string') 25 | replacement = replacement; // no-op 26 | else if (typeof replacement === 'number') 27 | replacement = replacement.toString(); // fallback 28 | else 29 | common.error('invalid replacement string'); 30 | 31 | if (!file) 32 | common.error('no file given'); 33 | 34 | if (!fs.existsSync(file)) 35 | common.error('no such file or directory: ' + file); 36 | 37 | var result = fs.readFileSync(file, 'utf8').replace(regex, replacement); 38 | if (options.inplace) 39 | fs.writeFileSync(file, result, 'utf8'); 40 | 41 | return common.ShellString(result); 42 | } 43 | module.exports = _sed; 44 | -------------------------------------------------------------------------------- /platforms/android/cordova/run: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var run = require('./lib/run'), 23 | reqs = require('./lib/check_reqs'), 24 | args = process.argv; 25 | 26 | // Support basic help commands 27 | if (args[2] == '--help' || args[2] == '/?' || args[2] == '-h' || 28 | args[2] == 'help' || args[2] == '-help' || args[2] == '/help') { 29 | run.help(); 30 | } else { 31 | reqs.run().done(function() { 32 | return run.run(args); 33 | }, function(err) { 34 | console.error('ERROR: ' + err); 35 | process.exit(2); 36 | }); 37 | } 38 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/clean.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var exec = require('./exec'), 23 | path = require('path'), 24 | ROOT = path.join(__dirname, '..', '..'); 25 | 26 | /* 27 | * Cleans the project using ant 28 | * Returns a promise. 29 | */ 30 | module.exports.run = function() { 31 | return exec('ant clean -f "' + path.join(ROOT, 'build.xml') + '"'); 32 | } 33 | 34 | module.exports.help = function() { 35 | console.log('Usage: ' + path.relative(process.cwd(), process.argv[1])); 36 | console.log('Cleans the project directory.'); 37 | process.exit(0); 38 | } 39 | -------------------------------------------------------------------------------- /platforms/android/cordova/build: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var build = require('./lib/build'), 23 | reqs = require('./lib/check_reqs'), 24 | args = process.argv; 25 | 26 | // Support basic help commands 27 | if(args[2] == '--help' || args[2] == '/?' || args[2] == '-h' || 28 | args[2] == 'help' || args[2] == '-help' || args[2] == '/help') { 29 | build.help(); 30 | } else { 31 | reqs.run().then(function() { 32 | return build.run(args[2]); 33 | }).done(null, function(err) { 34 | console.error(err); 35 | process.exit(2); 36 | }); 37 | } 38 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/com/squareup/okhttp/internal/http/AbstractHttpOutputStream.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.squareup.okhttp.internal.http; 18 | 19 | import java.io.IOException; 20 | import java.io.OutputStream; 21 | 22 | /** 23 | * An output stream for the body of an HTTP request. 24 | * 25 | *

Since a single socket's output stream may be used to write multiple HTTP 26 | * requests to the same server, subclasses should not close the socket stream. 27 | */ 28 | abstract class AbstractHttpOutputStream extends OutputStream { 29 | protected boolean closed; 30 | 31 | @Override public final void write(int data) throws IOException { 32 | write(new byte[] { (byte) data }); 33 | } 34 | 35 | protected final void checkNotClosed() throws IOException { 36 | if (closed) { 37 | throw new IOException("stream closed"); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/install-emulator: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var emulator = require('./emulator'), 23 | args = process.argv; 24 | 25 | var install_target; 26 | if(args.length > 2) { 27 | if (args[2].substring(0, 9) == '--target=') { 28 | install_target = args[2].substring(9, args[2].length); 29 | } else { 30 | console.error('ERROR : argument \'' + args[2] + '\' not recognized.'); 31 | process.exit(2); 32 | } 33 | } 34 | 35 | emulator.install(install_target).done(null, function(err) { 36 | console.error('ERROR: ' + err); 37 | process.exit(2); 38 | }); 39 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/start-emulator: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var emulator = require('./emulator'), 23 | args = process.argv; 24 | 25 | var install_target; 26 | if(args.length > 2) { 27 | if (args[2].substring(0, 9) == '--target=') { 28 | install_target = args[2].substring(9, args[2].length); 29 | } else { 30 | console.error('ERROR : argument \'' + args[2] + '\' not recognized.'); 31 | process.exit(2); 32 | } 33 | } 34 | 35 | emulator.start(install_target).done(null, function(err) { 36 | console.error('ERROR: ' + err); 37 | process.exit(2); 38 | }); 39 | 40 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/com/squareup/okhttp/internal/spdy/IncomingStreamHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.squareup.okhttp.internal.spdy; 18 | 19 | import java.io.IOException; 20 | 21 | /** Listener to be notified when a connected peer creates a new stream. */ 22 | public interface IncomingStreamHandler { 23 | IncomingStreamHandler REFUSE_INCOMING_STREAMS = new IncomingStreamHandler() { 24 | @Override public void receive(SpdyStream stream) throws IOException { 25 | stream.close(SpdyStream.RST_REFUSED_STREAM); 26 | } 27 | }; 28 | 29 | /** 30 | * Handle a new stream from this connection's peer. Implementations should 31 | * respond by either {@link SpdyStream#reply replying to the stream} or 32 | * {@link SpdyStream#close closing it}. This response does not need to be 33 | * synchronous. 34 | */ 35 | void receive(SpdyStream stream) throws IOException; 36 | } 37 | -------------------------------------------------------------------------------- /platforms/android/src/com/performanceactive/plugins/camera/MainActivity.java: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | package com.performanceactive.plugins.camera; 21 | 22 | import android.os.Bundle; 23 | 24 | import org.apache.cordova.Config; 25 | import org.apache.cordova.CordovaActivity; 26 | 27 | public class MainActivity extends CordovaActivity { 28 | @Override 29 | public void onCreate(Bundle savedInstanceState) { 30 | super.onCreate(savedInstanceState); 31 | super.init(); 32 | // Set by in config.xml 33 | super.loadUrl(Config.getStartUrl()); 34 | //super.loadUrl("file:///android_asset/www/index.html") 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/com/squareup/okhttp/OkResponseCache.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.squareup.okhttp; 17 | 18 | import java.io.IOException; 19 | import java.net.CacheResponse; 20 | import java.net.HttpURLConnection; 21 | 22 | /** 23 | * A response cache that supports statistics tracking and updating stored 24 | * responses. Implementations of {@link java.net.ResponseCache} should implement 25 | * this interface to receive additional support from the HTTP engine. 26 | */ 27 | public interface OkResponseCache { 28 | 29 | /** Track an HTTP response being satisfied by {@code source}. */ 30 | void trackResponse(ResponseSource source); 31 | 32 | /** Track an conditional GET that was satisfied by this cache. */ 33 | void trackConditionalCacheHit(); 34 | 35 | /** Updates stored HTTP headers using a hit on a conditional GET. */ 36 | void update(CacheResponse conditionalCacheHit, HttpURLConnection httpConnection) 37 | throws IOException; 38 | } 39 | -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/src/find.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs'); 2 | var common = require('./common'); 3 | var _ls = require('./ls'); 4 | 5 | //@ 6 | //@ ### find(path [,path ...]) 7 | //@ ### find(path_array) 8 | //@ Examples: 9 | //@ 10 | //@ ```javascript 11 | //@ find('src', 'lib'); 12 | //@ find(['src', 'lib']); // same as above 13 | //@ find('.').filter(function(file) { return file.match(/\.js$/); }); 14 | //@ ``` 15 | //@ 16 | //@ Returns array of all files (however deep) in the given paths. 17 | //@ 18 | //@ The main difference from `ls('-R', path)` is that the resulting file names 19 | //@ include the base directories, e.g. `lib/resources/file1` instead of just `file1`. 20 | function _find(options, paths) { 21 | if (!paths) 22 | common.error('no path specified'); 23 | else if (typeof paths === 'object') 24 | paths = paths; // assume array 25 | else if (typeof paths === 'string') 26 | paths = [].slice.call(arguments, 1); 27 | 28 | var list = []; 29 | 30 | function pushFile(file) { 31 | if (common.platform === 'win') 32 | file = file.replace(/\\/g, '/'); 33 | list.push(file); 34 | } 35 | 36 | // why not simply do ls('-R', paths)? because the output wouldn't give the base dirs 37 | // to get the base dir in the output, we need instead ls('-R', 'dir/*') for every directory 38 | 39 | paths.forEach(function(file) { 40 | pushFile(file); 41 | 42 | if (fs.statSync(file).isDirectory()) { 43 | _ls('-RA', file+'/*').forEach(function(subfile) { 44 | pushFile(subfile); 45 | }); 46 | } 47 | }); 48 | 49 | return list; 50 | } 51 | module.exports = _find; 52 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/CDVWebViewDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | 22 | /** 23 | * Distinguishes top-level navigations from sub-frame navigations. 24 | * shouldStartLoadWithRequest is called for every request, but didStartLoad 25 | * and didFinishLoad is called only for top-level navigations. 26 | * Relevant bug: CB-2389 27 | */ 28 | @interface CDVWebViewDelegate : NSObject { 29 | __weak NSObject * _delegate; 30 | NSInteger _loadCount; 31 | NSInteger _state; 32 | NSInteger _curLoadToken; 33 | NSInteger _loadStartPollCount; 34 | } 35 | 36 | - (id)initWithDelegate:(NSObject *)delegate; 37 | - (BOOL)request:(NSURLRequest*)newRequest isFragmentIdentifierToRequest:(NSURLRequest*)originalRequest; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/com/squareup/okhttp/internal/AbstractOutputStream.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.squareup.okhttp.internal; 18 | 19 | import java.io.IOException; 20 | import java.io.OutputStream; 21 | 22 | /** 23 | * An output stream for an HTTP request body. 24 | * 25 | *

Since a single socket's output stream may be used to write multiple HTTP 26 | * requests to the same server, subclasses should not close the socket stream. 27 | */ 28 | public abstract class AbstractOutputStream extends OutputStream { 29 | protected boolean closed; 30 | 31 | @Override public final void write(int data) throws IOException { 32 | write(new byte[] { (byte) data }); 33 | } 34 | 35 | protected final void checkNotClosed() throws IOException { 36 | if (closed) { 37 | throw new IOException("stream closed"); 38 | } 39 | } 40 | 41 | /** Returns true if this stream was closed locally. */ 42 | public boolean isClosed() { 43 | return closed; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/src/grep.js: -------------------------------------------------------------------------------- 1 | var common = require('./common'); 2 | var fs = require('fs'); 3 | 4 | //@ 5 | //@ ### grep([options ,] regex_filter, file [, file ...]) 6 | //@ ### grep([options ,] regex_filter, file_array) 7 | //@ Available options: 8 | //@ 9 | //@ + `-v`: Inverse the sense of the regex and print the lines not matching the criteria. 10 | //@ 11 | //@ Examples: 12 | //@ 13 | //@ ```javascript 14 | //@ grep('-v', 'GLOBAL_VARIABLE', '*.js'); 15 | //@ grep('GLOBAL_VARIABLE', '*.js'); 16 | //@ ``` 17 | //@ 18 | //@ Reads input string from given files and returns a string containing all lines of the 19 | //@ file that match the given `regex_filter`. Wildcard `*` accepted. 20 | function _grep(options, regex, files) { 21 | options = common.parseOptions(options, { 22 | 'v': 'inverse' 23 | }); 24 | 25 | if (!files) 26 | common.error('no paths given'); 27 | 28 | if (typeof files === 'string') 29 | files = [].slice.call(arguments, 2); 30 | // if it's array leave it as it is 31 | 32 | files = common.expand(files); 33 | 34 | var grep = ''; 35 | files.forEach(function(file) { 36 | if (!fs.existsSync(file)) { 37 | common.error('no such file or directory: ' + file, true); 38 | return; 39 | } 40 | 41 | var contents = fs.readFileSync(file, 'utf8'), 42 | lines = contents.split(/\r*\n/); 43 | lines.forEach(function(line) { 44 | var matched = line.match(regex); 45 | if ((options.inverse && !matched) || (!options.inverse && matched)) 46 | grep += line + '\n'; 47 | }); 48 | }); 49 | 50 | return common.ShellString(grep); 51 | } 52 | module.exports = _grep; 53 | -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/Classes/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | // 21 | // AppDelegate.h 22 | // CustomCamera 23 | // 24 | // Created by ___FULLUSERNAME___ on ___DATE___. 25 | // Copyright ___ORGANIZATIONNAME___ ___YEAR___. All rights reserved. 26 | // 27 | 28 | #import 29 | 30 | #import 31 | 32 | @interface AppDelegate : NSObject {} 33 | 34 | // invoke string is passed to your app on launch, this is only valid if you 35 | // edit CustomCamera-Info.plist to add a protocol 36 | // a simple tutorial can be found here : 37 | // http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html 38 | 39 | @property (nonatomic, strong) IBOutlet UIWindow* window; 40 | @property (nonatomic, strong) IBOutlet CDVViewController* viewController; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/NSDictionary+Extensions.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | 22 | @interface NSDictionary (org_apache_cordova_NSDictionary_Extension) 23 | 24 | - (bool)existsValue:(NSString*)expectedValue forKey:(NSString*)key; 25 | - (NSInteger)integerValueForKey:(NSString*)key defaultValue:(NSInteger)defaultValue withRange:(NSRange)range; 26 | - (NSInteger)integerValueForKey:(NSString*)key defaultValue:(NSInteger)defaultValue; 27 | - (BOOL)typeValueForKey:(NSString*)key isArray:(BOOL*)bArray isNull:(BOOL*)bNull isNumber:(BOOL*)bNumber isString:(BOOL*)bString; 28 | - (BOOL)valueForKeyIsArray:(NSString*)key; 29 | - (BOOL)valueForKeyIsNull:(NSString*)key; 30 | - (BOOL)valueForKeyIsString:(NSString*)key; 31 | - (BOOL)valueForKeyIsNumber:(NSString*)key; 32 | 33 | - (NSDictionary*)dictionaryWithLowercaseKeys; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/org/apache/cordova/JSONUtils.java: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | package org.apache.cordova; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | import org.json.JSONArray; 25 | import org.json.JSONException; 26 | 27 | @Deprecated // Deprecated in 3.1. To be removed in 4.0. 28 | public class JSONUtils { 29 | public static List toStringList(JSONArray array) throws JSONException { 30 | if(array == null) { 31 | return null; 32 | } 33 | else { 34 | List list = new ArrayList(); 35 | 36 | for (int i = 0; i < array.length(); i++) { 37 | list.add(array.get(i).toString()); 38 | } 39 | 40 | return list; 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/install-device: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var device = require('./device'), 23 | args = process.argv; 24 | 25 | if(args.length > 2) { 26 | var install_target; 27 | if (args[2].substring(0, 9) == '--target=') { 28 | install_target = args[2].substring(9, args[2].length); 29 | device.install(install_target).done(null, function(err) { 30 | console.error('ERROR: ' + err); 31 | process.exit(2); 32 | }); 33 | } else { 34 | console.error('ERROR : argument \'' + args[2] + '\' not recognized.'); 35 | process.exit(2); 36 | } 37 | } else { 38 | device.install().done(null, function(err) { 39 | console.error('ERROR: ' + err); 40 | process.exit(2); 41 | }); 42 | } 43 | -------------------------------------------------------------------------------- /platforms/android/cordova/node_modules/shelljs/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012, Artur Adib 2 | All rights reserved. 3 | 4 | You may use this project under the terms of the New BSD license as follows: 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions are met: 8 | * Redistributions of source code must retain the above copyright 9 | notice, this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright 11 | notice, this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | * Neither the name of Artur Adib nor the 14 | names of the contributors may be used to endorse or promote products 15 | derived from this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | ARE DISCLAIMED. IN NO EVENT SHALL ARTUR ADIB BE LIABLE FOR ANY 21 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /platforms/ios/CordovaLib/Classes/NSMutableArray+QueueAdditions.m: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import "NSMutableArray+QueueAdditions.h" 21 | 22 | @implementation NSMutableArray (QueueAdditions) 23 | 24 | - (id)queueHead 25 | { 26 | if ([self count] == 0) { 27 | return nil; 28 | } 29 | 30 | return [self objectAtIndex:0]; 31 | } 32 | 33 | - (__autoreleasing id)dequeue 34 | { 35 | if ([self count] == 0) { 36 | return nil; 37 | } 38 | 39 | id head = [self objectAtIndex:0]; 40 | if (head != nil) { 41 | // [[head retain] autorelease]; ARC - the __autoreleasing on the return value should so the same thing 42 | [self removeObjectAtIndex:0]; 43 | } 44 | 45 | return head; 46 | } 47 | 48 | - (id)pop 49 | { 50 | return [self dequeue]; 51 | } 52 | 53 | - (void)enqueue:(id)object 54 | { 55 | [self addObject:object]; 56 | } 57 | 58 | @end 59 | -------------------------------------------------------------------------------- /platforms/android/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /platforms/ios/cordova/defaults.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello Cordova 4 | 5 | A sample Apache Cordova application that responds to the deviceready event. 6 | 7 | 8 | Apache Cordova Team 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | CustomCamera 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /platforms/ios/CustomCamera/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello Cordova 4 | 5 | A sample Apache Cordova application that responds to the deviceready event. 6 | 7 | 8 | Apache Cordova Team 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | CustomCamera 28 | CustomCamera 29 | 30 | 31 | 32 | 33 | 34 | --------------------------------------------------------------------------------