├── gen └── .gitignore ├── .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 │ │ │ ├── tempdir.js │ │ │ ├── mkdir.js │ │ │ ├── which.js │ │ │ ├── test.js │ │ │ └── mv.js │ │ ├── .documentup.json │ │ ├── .travis.yml │ │ ├── global.js │ │ ├── .jshintrc │ │ ├── scripts │ │ │ ├── generate-docs.js │ │ │ └── run-tests.js │ │ ├── make.js │ │ ├── bin │ │ │ └── shjs │ │ └── LICENSE │ └── q │ │ ├── queue.js │ │ ├── benchmark │ │ ├── scenarios.js │ │ └── compare-with-callbacks.js │ │ ├── LICENSE │ │ └── CONTRIBUTING.md ├── 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 │ ├── exec.js │ ├── appinfo.js │ ├── log.js │ └── android_sdk_version.js ├── android_sdk_version ├── check_reqs ├── log ├── clean ├── run ├── build └── defaults.xml ├── bin ├── R.txt ├── proguard.txt ├── AndroidManifest.xml.d ├── classes │ └── ios │ │ ├── SpinnerPlugin.h │ │ └── SpinnerPlugin.m └── AndroidManifest.xml ├── screenshot.png ├── res ├── drawable │ └── icon.png ├── drawable-hdpi │ └── icon.png ├── drawable-ldpi │ └── icon.png ├── drawable-mdpi │ └── icon.png ├── drawable-xhdpi │ └── icon.png ├── values │ └── strings.xml └── xml │ └── config.xml ├── assets └── www │ ├── img │ └── logo.png │ ├── cordova_plugins.js │ ├── config.xml │ ├── index.html │ └── js │ └── index.js ├── ChangeLog.md ├── CordovaLib ├── bin │ ├── classes │ │ ├── org │ │ │ └── apache │ │ │ │ └── cordova │ │ │ │ ├── App.class │ │ │ │ ├── LOG.class │ │ │ │ ├── App$1.class │ │ │ │ ├── App$2.class │ │ │ │ ├── App$3.class │ │ │ │ ├── Config.class │ │ │ │ ├── DroidGap.class │ │ │ │ ├── JSONUtils.class │ │ │ │ ├── Whitelist.class │ │ │ │ ├── BuildConfig.class │ │ │ │ ├── CordovaArgs.class │ │ │ │ ├── ExifHelper.class │ │ │ │ ├── ExposedJsApi.class │ │ │ │ ├── FileHelper.class │ │ │ │ ├── PluginEntry.class │ │ │ │ ├── PluginResult.class │ │ │ │ ├── ScrollEvent.class │ │ │ │ ├── CordovaPlugin.class │ │ │ │ ├── CordovaWebView.class │ │ │ │ ├── PluginManager.class │ │ │ │ ├── CallbackContext.class │ │ │ │ ├── CordovaActivity$1.class │ │ │ │ ├── CordovaActivity$2.class │ │ │ │ ├── CordovaActivity$3.class │ │ │ │ ├── CordovaActivity$4.class │ │ │ │ ├── CordovaActivity$5.class │ │ │ │ ├── CordovaActivity.class │ │ │ │ ├── CordovaInterface.class │ │ │ │ ├── CordovaWebView$1.class │ │ │ │ ├── CordovaWebView$2.class │ │ │ │ ├── CordovaWebView$3.class │ │ │ │ ├── CordovaWebView$4.class │ │ │ │ ├── DirectoryManager.class │ │ │ │ ├── PluginManager$1.class │ │ │ │ ├── AuthenticationToken.class │ │ │ │ ├── CordovaActivity$4$1.class │ │ │ │ ├── CordovaActivity$5$1.class │ │ │ │ ├── CordovaChromeClient.class │ │ │ │ ├── CordovaResourceApi.class │ │ │ │ ├── PluginResult$Status.class │ │ │ │ ├── CordovaChromeClient$1.class │ │ │ │ ├── CordovaChromeClient$2.class │ │ │ │ ├── CordovaChromeClient$3.class │ │ │ │ ├── CordovaChromeClient$4.class │ │ │ │ ├── CordovaChromeClient$5.class │ │ │ │ ├── CordovaChromeClient$6.class │ │ │ │ ├── CordovaChromeClient$7.class │ │ │ │ ├── CordovaChromeClient$8.class │ │ │ │ ├── CordovaChromeClient$9.class │ │ │ │ ├── CordovaWebViewClient$1.class │ │ │ │ ├── CordovaWebViewClient.class │ │ │ │ ├── NativeToJsMessageQueue.class │ │ │ │ ├── Whitelist$URLPattern.class │ │ │ │ ├── CordovaWebViewClient$1$1.class │ │ │ │ ├── CordovaWebView$Level16Apis.class │ │ │ │ ├── CordovaWebView$ActivityResult.class │ │ │ │ ├── IceCreamCordovaWebViewClient.class │ │ │ │ ├── LinearLayoutSoftKeyboardDetect.class │ │ │ │ ├── NativeToJsMessageQueue$JsMessage.class │ │ │ │ ├── NativeToJsMessageQueue$BridgeMode.class │ │ │ │ ├── PluginManager$PluginManagerService.class │ │ │ │ ├── CordovaResourceApi$OpenForReadResult.class │ │ │ │ ├── PluginManager$PluginManagerService$1.class │ │ │ │ ├── NativeToJsMessageQueue$LoadUrlBridgeMode$1.class │ │ │ │ ├── NativeToJsMessageQueue$LoadUrlBridgeMode.class │ │ │ │ ├── NativeToJsMessageQueue$PrivateApiBridgeMode.class │ │ │ │ ├── NativeToJsMessageQueue$OnlineEventsBridgeMode$1.class │ │ │ │ └── NativeToJsMessageQueue$OnlineEventsBridgeMode.class │ │ └── com │ │ │ └── squareup │ │ │ └── okhttp │ │ │ ├── Route.class │ │ │ ├── Address.class │ │ │ ├── Connection.class │ │ │ ├── OkHttpClient.class │ │ │ ├── TunnelRequest.class │ │ │ ├── internal │ │ │ ├── Dns.class │ │ │ ├── Util.class │ │ │ ├── Base64.class │ │ │ ├── Dns$1.class │ │ │ ├── Platform.class │ │ │ ├── spdy │ │ │ │ ├── Ping.class │ │ │ │ ├── Settings.class │ │ │ │ ├── SpdyReader$1.class │ │ │ │ ├── SpdyReader$2.class │ │ │ │ ├── SpdyReader.class │ │ │ │ ├── SpdyStream.class │ │ │ │ ├── SpdyWriter.class │ │ │ │ ├── SpdyConnection.class │ │ │ │ ├── SpdyConnection$1.class │ │ │ │ ├── SpdyConnection$2.class │ │ │ │ ├── SpdyConnection$3.class │ │ │ │ ├── SpdyReader$Handler.class │ │ │ │ ├── IncomingStreamHandler.class │ │ │ │ ├── SpdyConnection$Builder.class │ │ │ │ ├── SpdyConnection$Reader.class │ │ │ │ ├── IncomingStreamHandler$1.class │ │ │ │ ├── SpdyConnection$Reader$1.class │ │ │ │ ├── SpdyStream$SpdyDataInputStream.class │ │ │ │ └── SpdyStream$SpdyDataOutputStream.class │ │ │ ├── DiskLruCache.class │ │ │ ├── DiskLruCache$1.class │ │ │ ├── DiskLruCache$2.class │ │ │ ├── NamedRunnable.class │ │ │ ├── Platform$Java5.class │ │ │ ├── http │ │ │ │ ├── HttpDate.class │ │ │ │ ├── Transport.class │ │ │ │ ├── HeaderParser.class │ │ │ │ ├── HttpDate$1.class │ │ │ │ ├── HttpEngine$1.class │ │ │ │ ├── HttpEngine.class │ │ │ │ ├── RawHeaders$1.class │ │ │ │ ├── RawHeaders.class │ │ │ │ ├── HttpTransport.class │ │ │ │ ├── RequestHeaders.class │ │ │ │ ├── RouteSelector.class │ │ │ │ ├── SpdyTransport.class │ │ │ │ ├── HttpAuthenticator.class │ │ │ │ ├── HttpResponseCache.class │ │ │ │ ├── OkResponseCache.class │ │ │ │ ├── RequestHeaders$1.class │ │ │ │ ├── ResponseHeaders$1.class │ │ │ │ ├── ResponseHeaders.class │ │ │ │ ├── HttpResponseCache$1.class │ │ │ │ ├── HttpURLConnectionImpl.class │ │ │ │ ├── HttpsURLConnectionImpl.class │ │ │ │ ├── OkResponseCacheAdapter.class │ │ │ │ ├── RetryableOutputStream.class │ │ │ │ ├── AbstractHttpInputStream.class │ │ │ │ ├── AbstractHttpOutputStream.class │ │ │ │ ├── HttpResponseCache$Entry.class │ │ │ │ ├── HttpURLConnectionImpl$1.class │ │ │ │ ├── HttpAuthenticator$Challenge.class │ │ │ │ ├── HttpURLConnectionImpl$Retry.class │ │ │ │ ├── UnknownLengthHttpInputStream.class │ │ │ │ ├── HeaderParser$CacheControlHandler.class │ │ │ │ ├── HttpTransport$ChunkedInputStream.class │ │ │ │ ├── HttpResponseCache$CacheRequestImpl.class │ │ │ │ ├── HttpTransport$ChunkedOutputStream.class │ │ │ │ ├── HttpsURLConnectionImpl$HttpsEngine.class │ │ │ │ ├── HttpResponseCache$CacheRequestImpl$1.class │ │ │ │ ├── HttpResponseCache$EntryCacheResponse.class │ │ │ │ ├── HttpTransport$FixedLengthInputStream.class │ │ │ │ ├── HttpTransport$FixedLengthOutputStream.class │ │ │ │ ├── HttpResponseCache$EntrySecureCacheResponse.class │ │ │ │ └── HttpsURLConnectionImpl$HttpUrlConnectionDelegate.class │ │ │ ├── StrictLineReader.class │ │ │ ├── DiskLruCache$Editor.class │ │ │ ├── DiskLruCache$Entry.class │ │ │ ├── Platform$Android23.class │ │ │ ├── Platform$Android41.class │ │ │ ├── StrictLineReader$1.class │ │ │ ├── AbstractOutputStream.class │ │ │ ├── DiskLruCache$Snapshot.class │ │ │ ├── FaultRecoveringOutputStream.class │ │ │ ├── Platform$JettyNpnProvider.class │ │ │ ├── Platform$JdkWithJettyNpnPlatform.class │ │ │ └── DiskLruCache$Editor$FaultHidingOutputStream.class │ │ │ ├── ConnectionPool$1.class │ │ │ ├── ConnectionPool$2.class │ │ │ ├── ConnectionPool.class │ │ │ ├── OkResponseCache.class │ │ │ ├── ResponseSource.class │ │ │ ├── HttpResponseCache.class │ │ │ ├── HttpResponseCache$1.class │ │ │ ├── HttpResponseCache$2.class │ │ │ ├── HttpResponseCache$Entry.class │ │ │ ├── HttpResponseCache$CacheRequestImpl$1.class │ │ │ ├── HttpResponseCache$CacheRequestImpl.class │ │ │ ├── HttpResponseCache$EntryCacheResponse.class │ │ │ └── HttpResponseCache$EntrySecureCacheResponse.class │ └── AndroidManifest.xml ├── .settings │ ├── org.eclipse.wst.common.project.facet.core.xml │ └── org.eclipse.jdt.core.prefs ├── gen │ └── org │ │ └── apache │ │ └── cordova │ │ └── BuildConfig.java ├── local.properties ├── project.properties ├── .classpath ├── proguard-project.txt ├── .project ├── AndroidManifest.xml └── src │ ├── com │ └── squareup │ │ └── okhttp │ │ ├── internal │ │ ├── Dns.java │ │ ├── NamedRunnable.java │ │ ├── http │ │ │ ├── AbstractHttpOutputStream.java │ │ │ ├── OkResponseCacheAdapter.java │ │ │ ├── UnknownLengthHttpInputStream.java │ │ │ ├── OkResponseCache.java │ │ │ ├── RetryableOutputStream.java │ │ │ └── Transport.java │ │ ├── spdy │ │ │ ├── IncomingStreamHandler.java │ │ │ └── Ping.java │ │ └── AbstractOutputStream.java │ │ ├── ResponseSource.java │ │ ├── OkResponseCache.java │ │ └── TunnelRequest.java │ └── org │ └── apache │ └── cordova │ ├── DroidGap.java │ ├── JSONUtils.java │ ├── ScrollEvent.java │ ├── AuthenticationToken.java │ └── CordovaInterface.java ├── .settings └── org.eclipse.jdt.core.prefs ├── local.properties ├── .classpath ├── src ├── ios │ └── SpinnerPlugin.h └── it │ └── mobimentum │ └── phonegapspinnerplugin │ ├── SpinnerPlugin.java │ └── ProgressActivity.java ├── www └── spinnerplugin.js ├── project.properties ├── proguard-project.txt ├── .project ├── AndroidManifest.xml ├── plugin.xml └── README.md /gen/.gitignore: -------------------------------------------------------------------------------- 1 | /it 2 | /.gitignore 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | CordovaLib/ 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /cordova/node_modules/.bin/shjs: -------------------------------------------------------------------------------- 1 | ../shelljs/bin/shjs -------------------------------------------------------------------------------- /cordova/node_modules/shelljs/.npmignore: -------------------------------------------------------------------------------- 1 | test/ 2 | tmp/ -------------------------------------------------------------------------------- /cordova/node_modules/shelljs/src/popd.js: -------------------------------------------------------------------------------- 1 | // see dirs.js -------------------------------------------------------------------------------- /cordova/node_modules/shelljs/src/pushd.js: -------------------------------------------------------------------------------- 1 | // see dirs.js -------------------------------------------------------------------------------- /bin/R.txt: -------------------------------------------------------------------------------- 1 | int drawable icon 0x7f020000 2 | int string app_name 0x7f040000 3 | int xml config 0x7f030000 4 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/screenshot.png -------------------------------------------------------------------------------- /cordova/node_modules/shelljs/.documentup.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ShellJS", 3 | "twitter": [ 4 | "r2r" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /cordova/node_modules/shelljs/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.11" 6 | -------------------------------------------------------------------------------- /res/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/res/drawable/icon.png -------------------------------------------------------------------------------- /assets/www/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/assets/www/img/logo.png -------------------------------------------------------------------------------- /res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/res/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /cordova/node_modules/shelljs/global.js: -------------------------------------------------------------------------------- 1 | var shell = require('./shell.js'); 2 | for (var cmd in shell) 3 | global[cmd] = shell[cmd]; 4 | -------------------------------------------------------------------------------- /bin/proguard.txt: -------------------------------------------------------------------------------- 1 | # view AndroidManifest.xml #generated:7 2 | -keep class it.mobimentum.phonegapspinnerplugin.ProgressActivity { (...); } 3 | 4 | -------------------------------------------------------------------------------- /cordova/node_modules/shelljs/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "loopfunc": true, 3 | "sub": true, 4 | "undef": true, 5 | "unused": true, 6 | "node": true 7 | } -------------------------------------------------------------------------------- /res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | SpinnerPlugin 4 | 5 | -------------------------------------------------------------------------------- /ChangeLog.md: -------------------------------------------------------------------------------- 1 | 1.1.0 2 | ----- 3 | 4 | * Added fullscreen option 5 | 6 | 7 | 8 | 1.0.3 9 | ----- 10 | 11 | * Android: added "timeout" param support 12 | 13 | -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/App.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/App.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/LOG.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/LOG.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/Route.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/Route.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/App$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/App$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/App$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/App$2.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/App$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/App$3.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/Config.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/Config.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/Address.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/Address.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/DroidGap.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/DroidGap.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/JSONUtils.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/JSONUtils.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/Whitelist.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/Whitelist.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/Connection.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/Connection.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/BuildConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/BuildConfig.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaArgs.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaArgs.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/ExifHelper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/ExifHelper.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/ExposedJsApi.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/ExposedJsApi.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/FileHelper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/FileHelper.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/PluginEntry.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/PluginEntry.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/PluginResult.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/PluginResult.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/ScrollEvent.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/ScrollEvent.class -------------------------------------------------------------------------------- /CordovaLib/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/OkHttpClient.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/OkHttpClient.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/TunnelRequest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/TunnelRequest.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/Dns.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/Dns.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/Util.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/Util.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaPlugin.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaPlugin.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaWebView.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaWebView.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/PluginManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/PluginManager.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/ConnectionPool$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/ConnectionPool$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/ConnectionPool$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/ConnectionPool$2.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/ConnectionPool.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/ConnectionPool.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/OkResponseCache.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/OkResponseCache.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/ResponseSource.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/ResponseSource.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/Base64.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/Base64.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/Dns$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/Dns$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CallbackContext.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CallbackContext.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaActivity$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaActivity$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaActivity$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaActivity$2.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaActivity$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaActivity$3.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaActivity$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaActivity$4.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaActivity$5.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaActivity$5.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaActivity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaActivity.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaInterface.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaInterface.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaWebView$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaWebView$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaWebView$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaWebView$2.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaWebView$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaWebView$3.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaWebView$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaWebView$4.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/DirectoryManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/DirectoryManager.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/PluginManager$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/PluginManager$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/HttpResponseCache.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/HttpResponseCache.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/Platform.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/Platform.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/Ping.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/Ping.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/AuthenticationToken.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/AuthenticationToken.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaActivity$4$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaActivity$4$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaActivity$5$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaActivity$5$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaResourceApi.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaResourceApi.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/PluginResult$Status.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/PluginResult$Status.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/HttpResponseCache$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/HttpResponseCache$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/HttpResponseCache$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/HttpResponseCache$2.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/DiskLruCache.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/DiskLruCache.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient$2.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient$3.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient$4.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient$5.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient$5.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient$6.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient$6.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient$7.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient$7.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient$8.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient$8.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient$9.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaChromeClient$9.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaWebViewClient$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaWebViewClient$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaWebViewClient.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaWebViewClient.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/NativeToJsMessageQueue.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/NativeToJsMessageQueue.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/Whitelist$URLPattern.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/Whitelist$URLPattern.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/HttpResponseCache$Entry.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/HttpResponseCache$Entry.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/DiskLruCache$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/DiskLruCache$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/DiskLruCache$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/DiskLruCache$2.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/NamedRunnable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/NamedRunnable.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/Platform$Java5.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/Platform$Java5.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpDate.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpDate.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/Transport.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/Transport.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/Settings.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/Settings.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaWebViewClient$1$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaWebViewClient$1$1.class -------------------------------------------------------------------------------- /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 | }); -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/StrictLineReader.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/StrictLineReader.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HeaderParser.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HeaderParser.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpDate$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpDate$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpEngine$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpEngine$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpEngine.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpEngine.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/RawHeaders$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/RawHeaders$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/RawHeaders.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/RawHeaders.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyReader$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyReader$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyReader$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyReader$2.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyReader.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyReader.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyStream.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyWriter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyWriter.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaWebView$Level16Apis.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaWebView$Level16Apis.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/DiskLruCache$Editor.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/DiskLruCache$Editor.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/DiskLruCache$Entry.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/DiskLruCache$Entry.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/Platform$Android23.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/Platform$Android23.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/Platform$Android41.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/Platform$Android41.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/StrictLineReader$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/StrictLineReader$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpTransport.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpTransport.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/RequestHeaders.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/RequestHeaders.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/RouteSelector.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/RouteSelector.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/SpdyTransport.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/SpdyTransport.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyConnection.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyConnection.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaWebView$ActivityResult.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaWebView$ActivityResult.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/IceCreamCordovaWebViewClient.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/IceCreamCordovaWebViewClient.class -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/AbstractOutputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/AbstractOutputStream.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/DiskLruCache$Snapshot.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/DiskLruCache$Snapshot.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpAuthenticator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpAuthenticator.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpResponseCache.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpResponseCache.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/OkResponseCache.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/OkResponseCache.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/RequestHeaders$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/RequestHeaders$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/ResponseHeaders$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/ResponseHeaders$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/ResponseHeaders.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/ResponseHeaders.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyConnection$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyConnection$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyConnection$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyConnection$2.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyConnection$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyConnection$3.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/LinearLayoutSoftKeyboardDetect.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/LinearLayoutSoftKeyboardDetect.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/NativeToJsMessageQueue$JsMessage.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/NativeToJsMessageQueue$JsMessage.class -------------------------------------------------------------------------------- /bin/AndroidManifest.xml.d: -------------------------------------------------------------------------------- 1 | /home/maurix/Projects/PhoneGapSpinnerPlugin/SpinnerPlugin/platforms/android/bin/AndroidManifest.xml : \ 2 | /home/maurix/Projects/PhoneGapSpinnerPlugin/SpinnerPlugin/platforms/android/AndroidManifest.xml \ 3 | -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpResponseCache$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpResponseCache$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyReader$Handler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyReader$Handler.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/NativeToJsMessageQueue$BridgeMode.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/NativeToJsMessageQueue$BridgeMode.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/PluginManager$PluginManagerService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/PluginManager$PluginManagerService.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/HttpResponseCache$CacheRequestImpl$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/HttpResponseCache$CacheRequestImpl$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/HttpResponseCache$CacheRequestImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/HttpResponseCache$CacheRequestImpl.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/HttpResponseCache$EntryCacheResponse.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/HttpResponseCache$EntryCacheResponse.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/FaultRecoveringOutputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/FaultRecoveringOutputStream.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/Platform$JettyNpnProvider.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/Platform$JettyNpnProvider.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpURLConnectionImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpURLConnectionImpl.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpsURLConnectionImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpsURLConnectionImpl.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/OkResponseCacheAdapter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/OkResponseCacheAdapter.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/RetryableOutputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/RetryableOutputStream.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/IncomingStreamHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/IncomingStreamHandler.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyConnection$Builder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyConnection$Builder.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyConnection$Reader.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyConnection$Reader.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/CordovaResourceApi$OpenForReadResult.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/CordovaResourceApi$OpenForReadResult.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/PluginManager$PluginManagerService$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/PluginManager$PluginManagerService$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/AbstractHttpInputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/AbstractHttpInputStream.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/AbstractHttpOutputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/AbstractHttpOutputStream.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpResponseCache$Entry.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpResponseCache$Entry.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpURLConnectionImpl$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpURLConnectionImpl$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/IncomingStreamHandler$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/IncomingStreamHandler$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyConnection$Reader$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyConnection$Reader$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/Platform$JdkWithJettyNpnPlatform.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/Platform$JdkWithJettyNpnPlatform.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpAuthenticator$Challenge.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpAuthenticator$Challenge.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpURLConnectionImpl$Retry.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpURLConnectionImpl$Retry.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/NativeToJsMessageQueue$LoadUrlBridgeMode$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/NativeToJsMessageQueue$LoadUrlBridgeMode$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/NativeToJsMessageQueue$LoadUrlBridgeMode.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/NativeToJsMessageQueue$LoadUrlBridgeMode.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/HttpResponseCache$EntrySecureCacheResponse.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/HttpResponseCache$EntrySecureCacheResponse.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/UnknownLengthHttpInputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/UnknownLengthHttpInputStream.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/NativeToJsMessageQueue$PrivateApiBridgeMode.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/NativeToJsMessageQueue$PrivateApiBridgeMode.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HeaderParser$CacheControlHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HeaderParser$CacheControlHandler.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpTransport$ChunkedInputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpTransport$ChunkedInputStream.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyStream$SpdyDataInputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyStream$SpdyDataInputStream.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyStream$SpdyDataOutputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/spdy/SpdyStream$SpdyDataOutputStream.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/NativeToJsMessageQueue$OnlineEventsBridgeMode$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/NativeToJsMessageQueue$OnlineEventsBridgeMode$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/org/apache/cordova/NativeToJsMessageQueue$OnlineEventsBridgeMode.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/org/apache/cordova/NativeToJsMessageQueue$OnlineEventsBridgeMode.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpResponseCache$CacheRequestImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpResponseCache$CacheRequestImpl.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpTransport$ChunkedOutputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpTransport$ChunkedOutputStream.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpsURLConnectionImpl$HttpsEngine.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpsURLConnectionImpl$HttpsEngine.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpResponseCache$CacheRequestImpl$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpResponseCache$CacheRequestImpl$1.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpResponseCache$EntryCacheResponse.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpResponseCache$EntryCacheResponse.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpTransport$FixedLengthInputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpTransport$FixedLengthInputStream.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpTransport$FixedLengthOutputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpTransport$FixedLengthOutputStream.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/DiskLruCache$Editor$FaultHidingOutputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/DiskLruCache$Editor$FaultHidingOutputStream.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpResponseCache$EntrySecureCacheResponse.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpResponseCache$EntrySecureCacheResponse.class -------------------------------------------------------------------------------- /CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpsURLConnectionImpl$HttpUrlConnectionDelegate.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobimentum/phonegap-plugin-loading-spinner/HEAD/CordovaLib/bin/classes/com/squareup/okhttp/internal/http/HttpsURLConnectionImpl$HttpUrlConnectionDelegate.class -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /CordovaLib/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 4 | org.eclipse.jdt.core.compiler.compliance=1.6 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.6 8 | -------------------------------------------------------------------------------- /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=/opt/android-sdks 11 | -------------------------------------------------------------------------------- /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=/opt/android-sdks 11 | -------------------------------------------------------------------------------- /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /bin/classes/ios/SpinnerPlugin.h: -------------------------------------------------------------------------------- 1 | // 2 | // SpinnerPlugin.h 3 | // IMG Cinema 4 | // 5 | // Created by Andrea Maschio on 24/12/13. 6 | // 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface SpinnerPlugin : CDVPlugin{ 13 | UIActivityIndicatorView * indicator; 14 | UIView *background; 15 | BOOL showOverlay; 16 | int connectionTimeout; 17 | 18 | } 19 | 20 | -(void)hide:(CDVInvokedUrlCommand*)options; 21 | -(void)show:(CDVInvokedUrlCommand*)options; 22 | @end 23 | -------------------------------------------------------------------------------- /src/ios/SpinnerPlugin.h: -------------------------------------------------------------------------------- 1 | // 2 | // SpinnerPlugin.h 3 | // IMG Cinema 4 | // 5 | // Created by Andrea Maschio on 24/12/13. 6 | // 7 | // Updated by Modern Alchemists OG on 23/04/2014. 8 | // 9 | 10 | #import 11 | #import 12 | 13 | @interface SpinnerPlugin : CDVPlugin 14 | { 15 | UIActivityIndicatorView* indicator; 16 | BOOL showOverlay; 17 | int connectionTimeout; 18 | } 19 | 20 | -(void)hide:(CDVInvokedUrlCommand*)options; 21 | -(void)show:(CDVInvokedUrlCommand*)options; 22 | @end 23 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /assets/www/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | SpinnerPlugin 4 | 5 | A sample Apache Cordova application that responds to the deviceready event. 6 | 7 | 8 | Apache Cordova Team 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /www/spinnerplugin.js: -------------------------------------------------------------------------------- 1 | // Spinner plugin 2 | var spinnerplugin = { 3 | show: function(args, successCallback, errorCallback) { 4 | 5 | if (typeof(args) === 'undefined') args = {}; 6 | 7 | cordova.exec( 8 | successCallback, 9 | errorCallback, 10 | 'SpinnerPlugin', 11 | 'show', 12 | [args] 13 | ); 14 | }, 15 | hide: function(successCallback, errorCallback) { 16 | cordova.exec( 17 | successCallback, 18 | errorCallback, 19 | 'SpinnerPlugin', 20 | 'hide', 21 | [] 22 | ); 23 | }, 24 | } 25 | 26 | // Exports 27 | module.exports = spinnerplugin; 28 | -------------------------------------------------------------------------------- /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=../../../TestProject/platforms/android/CordovaLib 14 | # Project target. 15 | target=android-19 16 | -------------------------------------------------------------------------------- /CordovaLib/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /res/xml/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello Cordova 4 | 5 | 6 | 7 | 8 | SpinnerPlugin 9 | 10 | A sample Apache Cordova application that responds to the deviceready event. 11 | 12 | 13 | Apache Cordova Team 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | SpinnerPlugin 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | ) -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | ) -------------------------------------------------------------------------------- /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 | ) -------------------------------------------------------------------------------- /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 | ) -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | ) -------------------------------------------------------------------------------- /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 | ) -------------------------------------------------------------------------------- /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 | ) -------------------------------------------------------------------------------- /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 | ) -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | ) -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /CordovaLib/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | SpinnerPlugin-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 | org.eclipse.wst.common.project.facet.core.builder 25 | 26 | 27 | 28 | 29 | com.android.ide.eclipse.adt.ApkBuilder 30 | 31 | 32 | 33 | 34 | 35 | com.android.ide.eclipse.adt.AndroidNature 36 | org.eclipse.wst.common.project.facet.core.nature 37 | org.eclipse.jdt.core.javanature 38 | 39 | 40 | -------------------------------------------------------------------------------- /CordovaLib/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /CordovaLib/bin/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /bin/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /cordova/lib/exec.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 child_process = require('child_process'), 23 | Q = require('q'); 24 | 25 | // Takes a command and optional current working directory. 26 | // Returns a promise that either resolves with the stdout, or 27 | // rejects with an error message and the stderr. 28 | module.exports = function(cmd, opt_cwd) { 29 | var d = Q.defer(); 30 | console.log('exec: ' + cmd); 31 | try { 32 | child_process.exec(cmd, {cwd: opt_cwd}, function(err, stdout, stderr) { 33 | console.log([cmd, err, stdout, stderr]); 34 | if (err) d.reject('Error executing "' + cmd + '": ' + stderr); 35 | else d.resolve(stdout); 36 | }); 37 | } catch(e) { 38 | console.error('error caught: ' + e); 39 | d.reject(e); 40 | } 41 | return d.promise; 42 | } 43 | 44 | -------------------------------------------------------------------------------- /cordova/node_modules/q/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 2 | For pull requests: 3 | 4 | - Be consistent with prevalent style and design decisions. 5 | - Add a Jasmine spec to `specs/q-spec.js`. 6 | - Use `npm test` to avoid regressions. 7 | - Run tests in `q-spec/run.html` in as many supported browsers as you 8 | can find the will to deal with. 9 | - Do not build minified versions; we do this each release. 10 | - If you would be so kind, add a note to `CHANGES.md` in an 11 | appropriate section: 12 | 13 | - `Next Major Version` if it introduces backward incompatibilities 14 | to code in the wild using documented features. 15 | - `Next Minor Version` if it adds a new feature. 16 | - `Next Patch Version` if it fixes a bug. 17 | 18 | For releases: 19 | 20 | - Run `npm test`. 21 | - Run tests in `q-spec/run.html` in a representative sample of every 22 | browser under the sun. 23 | - Run `npm run cover` and make sure you're happy with the results. 24 | - Run `npm run minify` and be sure to commit the resulting `q.min.js`. 25 | - Note the Gzipped size output by the previous command, and update 26 | `README.md` if it has changed to 1 significant digit. 27 | - Stash any local changes. 28 | - Update `CHANGES.md` to reflect all changes in the differences 29 | between `HEAD` and the previous tagged version. Give credit where 30 | credit is due. 31 | - Update `README.md` to address all new, non-experimental features. 32 | - Update the API reference on the Wiki to reflect all non-experimental 33 | features. 34 | - Use `npm version major|minor|patch` to update `package.json`, 35 | commit, and tag the new version. 36 | - Use `npm publish` to send up a new release. 37 | - Send an email to the q-continuum mailing list announcing the new 38 | release and the notes from the change log. This helps folks 39 | maintaining other package ecosystems. 40 | 41 | -------------------------------------------------------------------------------- /CordovaLib/src/org/apache/cordova/ScrollEvent.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 | import android.view.View; 23 | 24 | /* 25 | * This can be used by any view, including native views 26 | * 27 | */ 28 | 29 | 30 | public class ScrollEvent { 31 | 32 | public int l, t, nl, nt; 33 | private View targetView; 34 | 35 | /* 36 | * ScrollEvent constructor 37 | * No idea why it uses l and t instead of x and y 38 | * 39 | * @param x 40 | * @param y 41 | * @param nx 42 | * @param ny 43 | * @param view 44 | */ 45 | 46 | ScrollEvent(int nx, int ny, int x, int y, View view) 47 | { 48 | l = x; y = t; nl = nx; nt = ny; 49 | targetView = view; 50 | } 51 | 52 | public int dl() 53 | { 54 | return nl - l; 55 | } 56 | 57 | public int dt() 58 | { 59 | return nt - t; 60 | } 61 | 62 | public View getTargetView() 63 | { 64 | return targetView; 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /cordova/node_modules/shelljs/src/tempdir.js: -------------------------------------------------------------------------------- 1 | var common = require('./common'); 2 | var os = require('os'); 3 | var fs = require('fs'); 4 | 5 | // Returns false if 'dir' is not a writeable directory, 'dir' otherwise 6 | function writeableDir(dir) { 7 | if (!dir || !fs.existsSync(dir)) 8 | return false; 9 | 10 | if (!fs.statSync(dir).isDirectory()) 11 | return false; 12 | 13 | var testFile = dir+'/'+common.randomFileName(); 14 | try { 15 | fs.writeFileSync(testFile, ' '); 16 | common.unlinkSync(testFile); 17 | return dir; 18 | } catch (e) { 19 | return false; 20 | } 21 | } 22 | 23 | 24 | //@ 25 | //@ ### tempdir() 26 | //@ 27 | //@ Examples: 28 | //@ 29 | //@ ```javascript 30 | //@ var tmp = tempdir(); // "/tmp" for most *nix platforms 31 | //@ ``` 32 | //@ 33 | //@ Searches and returns string containing a writeable, platform-dependent temporary directory. 34 | //@ Follows Python's [tempfile algorithm](http://docs.python.org/library/tempfile.html#tempfile.tempdir). 35 | function _tempDir() { 36 | var state = common.state; 37 | if (state.tempDir) 38 | return state.tempDir; // from cache 39 | 40 | state.tempDir = writeableDir(os.tempDir && os.tempDir()) || // node 0.8+ 41 | writeableDir(process.env['TMPDIR']) || 42 | writeableDir(process.env['TEMP']) || 43 | writeableDir(process.env['TMP']) || 44 | writeableDir(process.env['Wimp$ScrapDir']) || // RiscOS 45 | writeableDir('C:\\TEMP') || // Windows 46 | writeableDir('C:\\TMP') || // Windows 47 | writeableDir('\\TEMP') || // Windows 48 | writeableDir('\\TMP') || // Windows 49 | writeableDir('/tmp') || 50 | writeableDir('/var/tmp') || 51 | writeableDir('/usr/tmp') || 52 | writeableDir('.'); // last resort 53 | 54 | return state.tempDir; 55 | } 56 | module.exports = _tempDir; 57 | -------------------------------------------------------------------------------- /cordova/lib/appinfo.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 path = require('path'); 23 | var fs = require('fs'); 24 | var cachedAppInfo = null; 25 | 26 | function readAppInfoFromManifest() { 27 | var manifestPath = path.join(__dirname, '..', '..', 'AndroidManifest.xml'); 28 | var manifestData = fs.readFileSync(manifestPath, {encoding:'utf8'}); 29 | var packageName = /\bpackage\s*=\s*"(.+?)"/.exec(manifestData); 30 | if (!packageName) throw new Error('Could not find package name within ' + manifestPath); 31 | var activityTag = //.exec(manifestData); 32 | if (!activityTag) throw new Error('Could not find within ' + manifestPath); 33 | var activityName = /\bandroid:name\s*=\s*"(.+?)"/.exec(activityTag); 34 | if (!activityName) throw new Error('Could not find android:name within ' + manifestPath); 35 | 36 | return packageName[1] + '/.' + activityName[1]; 37 | } 38 | 39 | exports.getActivityName = function() { 40 | return cachedAppInfo = cachedAppInfo || readAppInfoFromManifest(); 41 | }; 42 | -------------------------------------------------------------------------------- /cordova/node_modules/shelljs/src/mkdir.js: -------------------------------------------------------------------------------- 1 | var common = require('./common'); 2 | var fs = require('fs'); 3 | var path = require('path'); 4 | 5 | // Recursively creates 'dir' 6 | function mkdirSyncRecursive(dir) { 7 | var baseDir = path.dirname(dir); 8 | 9 | // Base dir exists, no recursion necessary 10 | if (fs.existsSync(baseDir)) { 11 | fs.mkdirSync(dir, parseInt('0777', 8)); 12 | return; 13 | } 14 | 15 | // Base dir does not exist, go recursive 16 | mkdirSyncRecursive(baseDir); 17 | 18 | // Base dir created, can create dir 19 | fs.mkdirSync(dir, parseInt('0777', 8)); 20 | } 21 | 22 | //@ 23 | //@ ### mkdir([options ,] dir [, dir ...]) 24 | //@ ### mkdir([options ,] dir_array) 25 | //@ Available options: 26 | //@ 27 | //@ + `p`: full path (will create intermediate dirs if necessary) 28 | //@ 29 | //@ Examples: 30 | //@ 31 | //@ ```javascript 32 | //@ mkdir('-p', '/tmp/a/b/c/d', '/tmp/e/f/g'); 33 | //@ mkdir('-p', ['/tmp/a/b/c/d', '/tmp/e/f/g']); // same as above 34 | //@ ``` 35 | //@ 36 | //@ Creates directories. 37 | function _mkdir(options, dirs) { 38 | options = common.parseOptions(options, { 39 | 'p': 'fullpath' 40 | }); 41 | if (!dirs) 42 | common.error('no paths given'); 43 | 44 | if (typeof dirs === 'string') 45 | dirs = [].slice.call(arguments, 1); 46 | // if it's array leave it as it is 47 | 48 | dirs.forEach(function(dir) { 49 | if (fs.existsSync(dir)) { 50 | if (!options.fullpath) 51 | common.error('path already exists: ' + dir, true); 52 | return; // skip dir 53 | } 54 | 55 | // Base dir does not exist, and no -p option given 56 | var baseDir = path.dirname(dir); 57 | if (!fs.existsSync(baseDir) && !options.fullpath) { 58 | common.error('no such file or directory: ' + baseDir, true); 59 | return; // skip dir 60 | } 61 | 62 | if (options.fullpath) 63 | mkdirSyncRecursive(dir); 64 | else 65 | fs.mkdirSync(dir, parseInt('0777', 8)); 66 | }); 67 | } // mkdir 68 | module.exports = _mkdir; 69 | -------------------------------------------------------------------------------- /CordovaLib/src/com/squareup/okhttp/internal/http/OkResponseCacheAdapter.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 | package com.squareup.okhttp.internal.http; 17 | 18 | import com.squareup.okhttp.ResponseSource; 19 | import java.io.IOException; 20 | import java.net.CacheRequest; 21 | import java.net.CacheResponse; 22 | import java.net.HttpURLConnection; 23 | import java.net.ResponseCache; 24 | import java.net.URI; 25 | import java.net.URLConnection; 26 | import java.util.List; 27 | import java.util.Map; 28 | 29 | public final class OkResponseCacheAdapter implements OkResponseCache { 30 | private final ResponseCache responseCache; 31 | public OkResponseCacheAdapter(ResponseCache responseCache) { 32 | this.responseCache = responseCache; 33 | } 34 | 35 | @Override public CacheResponse get(URI uri, String requestMethod, 36 | Map> requestHeaders) throws IOException { 37 | return responseCache.get(uri, requestMethod, requestHeaders); 38 | } 39 | 40 | @Override public CacheRequest put(URI uri, URLConnection urlConnection) throws IOException { 41 | return responseCache.put(uri, urlConnection); 42 | } 43 | 44 | @Override public void update(CacheResponse conditionalCacheHit, HttpURLConnection connection) 45 | throws IOException { 46 | } 47 | 48 | @Override public void trackConditionalCacheHit() { 49 | } 50 | 51 | @Override public void trackResponse(ResponseSource source) { 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /assets/www/index.html: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | Hello World 28 | 29 | 30 |

31 |

Apache Cordova

32 | 36 |
37 | 38 | 39 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /cordova/defaults.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 23 | Hello Cordova 24 | 25 | 26 | A sample Apache Cordova application that responds to the deviceready event. 27 | 28 | 29 | 30 | Apache Cordova Team 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /assets/www/js/index.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 | var app = { 20 | // Application Constructor 21 | initialize: function() { 22 | this.bindEvents(); 23 | }, 24 | // Bind Event Listeners 25 | // 26 | // Bind any events that are required on startup. Common events are: 27 | // 'load', 'deviceready', 'offline', and 'online'. 28 | bindEvents: function() { 29 | document.addEventListener('deviceready', this.onDeviceReady, false); 30 | }, 31 | // deviceready Event Handler 32 | // 33 | // The scope of 'this' is the event. In order to call the 'receivedEvent' 34 | // function, we must explicity call 'app.receivedEvent(...);' 35 | onDeviceReady: function() { 36 | app.receivedEvent('deviceready'); 37 | }, 38 | // Update DOM on a Received Event 39 | receivedEvent: function(id) { 40 | var parentElement = document.getElementById(id); 41 | var listeningElement = parentElement.querySelector('.listening'); 42 | var receivedElement = parentElement.querySelector('.received'); 43 | 44 | listeningElement.setAttribute('style', 'display:none;'); 45 | receivedElement.setAttribute('style', 'display:block;'); 46 | 47 | console.log('Received Event: ' + id); 48 | } 49 | }; 50 | -------------------------------------------------------------------------------- /CordovaLib/src/org/apache/cordova/AuthenticationToken.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 | /** 22 | * The Class AuthenticationToken defines the userName and password to be used for authenticating a web resource 23 | */ 24 | public class AuthenticationToken { 25 | private String userName; 26 | private String password; 27 | 28 | /** 29 | * Gets the user name. 30 | * 31 | * @return the user name 32 | */ 33 | public String getUserName() { 34 | return userName; 35 | } 36 | 37 | /** 38 | * Sets the user name. 39 | * 40 | * @param userName 41 | * the new user name 42 | */ 43 | public void setUserName(String userName) { 44 | this.userName = userName; 45 | } 46 | 47 | /** 48 | * Gets the password. 49 | * 50 | * @return the password 51 | */ 52 | public String getPassword() { 53 | return password; 54 | } 55 | 56 | /** 57 | * Sets the password. 58 | * 59 | * @param password 60 | * the new password 61 | */ 62 | public void setPassword(String password) { 63 | this.password = password; 64 | } 65 | 66 | 67 | 68 | 69 | } 70 | -------------------------------------------------------------------------------- /plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | SpinnerPlugin 9 | 10 | A native loading indicator 11 | MIT 12 | phonegap,loading,indicator,spinner 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /cordova/node_modules/q/benchmark/compare-with-callbacks.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var Q = require("../q"); 4 | var fs = require("fs"); 5 | 6 | suite("A single simple async operation", function () { 7 | bench("with an immediately-fulfilled promise", function (done) { 8 | Q().then(done); 9 | }); 10 | 11 | bench("with direct setImmediate usage", function (done) { 12 | setImmediate(done); 13 | }); 14 | 15 | bench("with direct setTimeout(…, 0)", function (done) { 16 | setTimeout(done, 0); 17 | }); 18 | }); 19 | 20 | suite("A fs.readFile", function () { 21 | var denodeified = Q.denodeify(fs.readFile); 22 | 23 | set("iterations", 1000); 24 | set("delay", 1000); 25 | 26 | bench("directly, with callbacks", function (done) { 27 | fs.readFile(__filename, done); 28 | }); 29 | 30 | bench("with Q.nfcall", function (done) { 31 | Q.nfcall(fs.readFile, __filename).then(done); 32 | }); 33 | 34 | bench("with a Q.denodeify'ed version", function (done) { 35 | denodeified(__filename).then(done); 36 | }); 37 | 38 | bench("with manual usage of deferred.makeNodeResolver", function (done) { 39 | var deferred = Q.defer(); 40 | fs.readFile(__filename, deferred.makeNodeResolver()); 41 | deferred.promise.then(done); 42 | }); 43 | }); 44 | 45 | suite("1000 operations in parallel", function () { 46 | function makeCounter(desiredCount, ultimateCallback) { 47 | var soFar = 0; 48 | return function () { 49 | if (++soFar === desiredCount) { 50 | ultimateCallback(); 51 | } 52 | }; 53 | } 54 | var numberOfOps = 1000; 55 | 56 | bench("with immediately-fulfilled promises", function (done) { 57 | var counter = makeCounter(numberOfOps, done); 58 | 59 | for (var i = 0; i < numberOfOps; ++i) { 60 | Q().then(counter); 61 | } 62 | }); 63 | 64 | bench("with direct setImmediate usage", function (done) { 65 | var counter = makeCounter(numberOfOps, done); 66 | 67 | for (var i = 0; i < numberOfOps; ++i) { 68 | setImmediate(counter); 69 | } 70 | }); 71 | }); 72 | -------------------------------------------------------------------------------- /cordova/lib/log.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 shell = require('shelljs'), 23 | path = require('path'), 24 | Q = require('q'), 25 | child_process = require('child_process'), 26 | ROOT = path.join(__dirname, '..', '..'); 27 | 28 | /* 29 | * Starts running logcat in the shell. 30 | * Returns a promise. 31 | */ 32 | module.exports.run = function() { 33 | var cmd = 'adb logcat | grep -v nativeGetEnabledTags'; 34 | var d = Q.defer(); 35 | var adb = child_process.spawn('adb', ['logcat']); 36 | 37 | adb.stdout.on('data', function(data) { 38 | var lines = data ? data.toString().split('\n') : []; 39 | var out = lines.filter(function(x) { return x.indexOf('nativeGetEnabledTags') < 0; }); 40 | console.log(out.join('\n')); 41 | }); 42 | 43 | adb.stderr.on('data', console.error); 44 | adb.on('close', function(code) { 45 | if (code > 0) { 46 | d.reject('Failed to run logcat command.'); 47 | } else d.resolve(); 48 | }); 49 | 50 | return d.promise; 51 | } 52 | 53 | module.exports.help = function() { 54 | console.log('Usage: ' + path.relative(process.cwd(), path.join(ROOT, 'corodva', 'log'))); 55 | console.log('Gives the logcat output on the command line.'); 56 | process.exit(0); 57 | } 58 | -------------------------------------------------------------------------------- /cordova/node_modules/shelljs/src/which.js: -------------------------------------------------------------------------------- 1 | var common = require('./common'); 2 | var fs = require('fs'); 3 | var path = require('path'); 4 | 5 | // Cross-platform method for splitting environment PATH variables 6 | function splitPath(p) { 7 | for (i=1;i<2;i++) {} 8 | 9 | if (!p) 10 | return []; 11 | 12 | if (common.platform === 'win') 13 | return p.split(';'); 14 | else 15 | return p.split(':'); 16 | } 17 | 18 | //@ 19 | //@ ### which(command) 20 | //@ 21 | //@ Examples: 22 | //@ 23 | //@ ```javascript 24 | //@ var nodeExec = which('node'); 25 | //@ ``` 26 | //@ 27 | //@ Searches for `command` in the system's PATH. On Windows looks for `.exe`, `.cmd`, and `.bat` extensions. 28 | //@ Returns string containing the absolute path to the command. 29 | function _which(options, cmd) { 30 | if (!cmd) 31 | common.error('must specify command'); 32 | 33 | var pathEnv = process.env.path || process.env.Path || process.env.PATH, 34 | pathArray = splitPath(pathEnv), 35 | where = null; 36 | 37 | // No relative/absolute paths provided? 38 | if (cmd.search(/\//) === -1) { 39 | // Search for command in PATH 40 | pathArray.forEach(function(dir) { 41 | if (where) 42 | return; // already found it 43 | 44 | var attempt = path.resolve(dir + '/' + cmd); 45 | if (fs.existsSync(attempt)) { 46 | where = attempt; 47 | return; 48 | } 49 | 50 | if (common.platform === 'win') { 51 | var baseAttempt = attempt; 52 | attempt = baseAttempt + '.exe'; 53 | if (fs.existsSync(attempt)) { 54 | where = attempt; 55 | return; 56 | } 57 | attempt = baseAttempt + '.cmd'; 58 | if (fs.existsSync(attempt)) { 59 | where = attempt; 60 | return; 61 | } 62 | attempt = baseAttempt + '.bat'; 63 | if (fs.existsSync(attempt)) { 64 | where = attempt; 65 | return; 66 | } 67 | } // if 'win' 68 | }); 69 | } 70 | 71 | // Command not found anywhere? 72 | if (!fs.existsSync(cmd) && !where) 73 | return null; 74 | 75 | where = where || path.resolve(cmd); 76 | 77 | return common.ShellString(where); 78 | } 79 | module.exports = _which; 80 | -------------------------------------------------------------------------------- /CordovaLib/src/com/squareup/okhttp/internal/http/UnknownLengthHttpInputStream.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.internal.http; 17 | 18 | import java.io.IOException; 19 | import java.io.InputStream; 20 | import java.net.CacheRequest; 21 | 22 | import static com.squareup.okhttp.internal.Util.checkOffsetAndCount; 23 | 24 | /** An HTTP message body terminated by the end of the underlying stream. */ 25 | final class UnknownLengthHttpInputStream extends AbstractHttpInputStream { 26 | private boolean inputExhausted; 27 | 28 | UnknownLengthHttpInputStream(InputStream is, CacheRequest cacheRequest, HttpEngine httpEngine) 29 | throws IOException { 30 | super(is, httpEngine, cacheRequest); 31 | } 32 | 33 | @Override public int read(byte[] buffer, int offset, int count) throws IOException { 34 | checkOffsetAndCount(buffer.length, offset, count); 35 | checkNotClosed(); 36 | if (in == null || inputExhausted) { 37 | return -1; 38 | } 39 | int read = in.read(buffer, offset, count); 40 | if (read == -1) { 41 | inputExhausted = true; 42 | endOfInput(false); 43 | return -1; 44 | } 45 | cacheWrite(buffer, offset, read); 46 | return read; 47 | } 48 | 49 | @Override public int available() throws IOException { 50 | checkNotClosed(); 51 | return in == null ? 0 : in.available(); 52 | } 53 | 54 | @Override public void close() throws IOException { 55 | if (closed) { 56 | return; 57 | } 58 | closed = true; 59 | if (!inputExhausted) { 60 | unexpectedEndOfInput(); 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | phonegap-plugin-loading-spinner 2 | =============================== 3 | 4 | PhoneGap 3 plugin to show a loading spinner with optional dark overlay. 5 | 6 | ![screenshot](https://raw.github.com/mobimentum/phonegap-plugin-loading-spinner/master/screenshot.png "Screenshot") 7 | 8 | Compatibility 9 | ============= 10 | 11 | This plugin works on PhoneGap/Cordova 3.x. It's currently not tested against PhoneGap 4.x and known not to be working on PhoneGap/Cordova 5.x and above. 12 | 13 | Usage 14 | ===== 15 | 16 | Add plugin to your project: 17 | 18 | cordova plugin add https://github.com/mobimentum/phonegap-plugin-loading-spinner.git 19 | 20 | Add the following to your config.xml to use version 1.0.0 of this plugin (recommended): 21 | 22 | 23 | 24 | You can also omit the version tag to always use the most recent version of this plugin. Note that this will result in your app being automatically updated with new versions of this plugin as they are released, and may result in unexpected behaviour. 25 | 26 | Show spinner with default arguments: 27 | 28 | spinnerplugin.show(); 29 | 30 | Show spinner with optional arguments: 31 | 32 | spinnerplugin.show({ 33 | overlay: false, // defaults to true 34 | timeout: 30, // defaults to 0 (no timeout) 35 | fullscreen: true, // defaults to false 36 | }); 37 | 38 | Hide spinner: 39 | 40 | spinnerplugin.hide(); 41 | 42 | Usage with jQuery Mobile 43 | ======================== 44 | 45 | I encourage you to use the following code to gracefully replace the default jQM loader: 46 | 47 | onDeviceReady: function() { 48 | // Native loading spinner 49 | if (window.spinnerplugin) { 50 | $.extend($.mobile, { 51 | loading: function() { 52 | // Show/hide spinner 53 | var arg = arguments ? arguments[0] : ''; 54 | if (arg == 'show') spinnerplugin.show({'overlay':true}); 55 | else if (arg == 'hide') spinnerplugin.hide(); 56 | 57 | // Compatibility with jQM 1.4 58 | return { loader: function() { } } 59 | } 60 | }); 61 | } 62 | } 63 | 64 | Thus, if the SpinnerPlugin is added and working the native spinner would be used, otherwise the standard jQM loader is fired. 65 | -------------------------------------------------------------------------------- /cordova/node_modules/shelljs/src/test.js: -------------------------------------------------------------------------------- 1 | var common = require('./common'); 2 | var fs = require('fs'); 3 | 4 | //@ 5 | //@ ### test(expression) 6 | //@ Available expression primaries: 7 | //@ 8 | //@ + `'-b', 'path'`: true if path is a block device 9 | //@ + `'-c', 'path'`: true if path is a character device 10 | //@ + `'-d', 'path'`: true if path is a directory 11 | //@ + `'-e', 'path'`: true if path exists 12 | //@ + `'-f', 'path'`: true if path is a regular file 13 | //@ + `'-L', 'path'`: true if path is a symboilc link 14 | //@ + `'-p', 'path'`: true if path is a pipe (FIFO) 15 | //@ + `'-S', 'path'`: true if path is a socket 16 | //@ 17 | //@ Examples: 18 | //@ 19 | //@ ```javascript 20 | //@ if (test('-d', path)) { /* do something with dir */ }; 21 | //@ if (!test('-f', path)) continue; // skip if it's a regular file 22 | //@ ``` 23 | //@ 24 | //@ Evaluates expression using the available primaries and returns corresponding value. 25 | function _test(options, path) { 26 | if (!path) 27 | common.error('no path given'); 28 | 29 | // hack - only works with unary primaries 30 | options = common.parseOptions(options, { 31 | 'b': 'block', 32 | 'c': 'character', 33 | 'd': 'directory', 34 | 'e': 'exists', 35 | 'f': 'file', 36 | 'L': 'link', 37 | 'p': 'pipe', 38 | 'S': 'socket' 39 | }); 40 | 41 | var canInterpret = false; 42 | for (var key in options) 43 | if (options[key] === true) { 44 | canInterpret = true; 45 | break; 46 | } 47 | 48 | if (!canInterpret) 49 | common.error('could not interpret expression'); 50 | 51 | if (options.link) { 52 | try { 53 | return fs.lstatSync(path).isSymbolicLink(); 54 | } catch(e) { 55 | return false; 56 | } 57 | } 58 | 59 | if (!fs.existsSync(path)) 60 | return false; 61 | 62 | if (options.exists) 63 | return true; 64 | 65 | var stats = fs.statSync(path); 66 | 67 | if (options.block) 68 | return stats.isBlockDevice(); 69 | 70 | if (options.character) 71 | return stats.isCharacterDevice(); 72 | 73 | if (options.directory) 74 | return stats.isDirectory(); 75 | 76 | if (options.file) 77 | return stats.isFile(); 78 | 79 | if (options.pipe) 80 | return stats.isFIFO(); 81 | 82 | if (options.socket) 83 | return stats.isSocket(); 84 | } // test 85 | module.exports = _test; 86 | -------------------------------------------------------------------------------- /CordovaLib/src/com/squareup/okhttp/internal/spdy/Ping.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.spdy; 17 | 18 | import java.util.concurrent.CountDownLatch; 19 | import java.util.concurrent.TimeUnit; 20 | 21 | /** 22 | * A locally-originated ping. 23 | */ 24 | public final class Ping { 25 | private final CountDownLatch latch = new CountDownLatch(1); 26 | private long sent = -1; 27 | private long received = -1; 28 | 29 | Ping() { 30 | } 31 | 32 | void send() { 33 | if (sent != -1) throw new IllegalStateException(); 34 | sent = System.nanoTime(); 35 | } 36 | 37 | void receive() { 38 | if (received != -1 || sent == -1) throw new IllegalStateException(); 39 | received = System.nanoTime(); 40 | latch.countDown(); 41 | } 42 | 43 | void cancel() { 44 | if (received != -1 || sent == -1) throw new IllegalStateException(); 45 | received = sent - 1; 46 | latch.countDown(); 47 | } 48 | 49 | /** 50 | * Returns the round trip time for this ping in nanoseconds, waiting for the 51 | * response to arrive if necessary. Returns -1 if the response was 52 | * cancelled. 53 | */ 54 | public long roundTripTime() throws InterruptedException { 55 | latch.await(); 56 | return received - sent; 57 | } 58 | 59 | /** 60 | * Returns the round trip time for this ping in nanoseconds, or -1 if the 61 | * response was cancelled, or -2 if the timeout elapsed before the round 62 | * trip completed. 63 | */ 64 | public long roundTripTime(long timeout, TimeUnit unit) throws InterruptedException { 65 | if (latch.await(timeout, unit)) { 66 | return received - sent; 67 | } else { 68 | return -2; 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /CordovaLib/src/com/squareup/okhttp/internal/http/OkResponseCache.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 | package com.squareup.okhttp.internal.http; 17 | 18 | import com.squareup.okhttp.ResponseSource; 19 | import java.io.IOException; 20 | import java.net.CacheRequest; 21 | import java.net.CacheResponse; 22 | import java.net.HttpURLConnection; 23 | import java.net.URI; 24 | import java.net.URLConnection; 25 | import java.util.List; 26 | import java.util.Map; 27 | 28 | /** 29 | * An extended response cache API. Unlike {@link java.net.ResponseCache}, this 30 | * interface supports conditional caching and statistics. 31 | * 32 | *

Along with the rest of the {@code internal} package, this is not a public 33 | * API. Applications wishing to supply their own caches must use the more 34 | * limited {@link java.net.ResponseCache} interface. 35 | */ 36 | public interface OkResponseCache { 37 | CacheResponse get(URI uri, String requestMethod, Map> requestHeaders) 38 | throws IOException; 39 | 40 | CacheRequest put(URI uri, URLConnection urlConnection) throws IOException; 41 | 42 | /** 43 | * Handles a conditional request hit by updating the stored cache response 44 | * with the headers from {@code httpConnection}. The cached response body is 45 | * not updated. If the stored response has changed since {@code 46 | * conditionalCacheHit} was returned, this does nothing. 47 | */ 48 | void update(CacheResponse conditionalCacheHit, HttpURLConnection connection) throws IOException; 49 | 50 | /** Track an conditional GET that was satisfied by this cache. */ 51 | void trackConditionalCacheHit(); 52 | 53 | /** Track an HTTP response being satisfied by {@code source}. */ 54 | void trackResponse(ResponseSource source); 55 | } 56 | -------------------------------------------------------------------------------- /cordova/lib/android_sdk_version.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 shell = require('shelljs'), 23 | child_process = require('child_process'), 24 | Q = require('q'); 25 | 26 | get_highest_sdk = function(results){ 27 | var reg = /\d+/; 28 | var apiLevels = []; 29 | for(var i=0;i and/or '); 29 | } else if (arguments.length > 3) { 30 | sources = [].slice.call(arguments, 1, arguments.length - 1); 31 | dest = arguments[arguments.length - 1]; 32 | } else if (typeof sources === 'string') { 33 | sources = [sources]; 34 | } else if ('length' in sources) { 35 | sources = sources; // no-op for array 36 | } else { 37 | common.error('invalid arguments'); 38 | } 39 | 40 | sources = common.expand(sources); 41 | 42 | var exists = fs.existsSync(dest), 43 | stats = exists && fs.statSync(dest); 44 | 45 | // Dest is not existing dir, but multiple sources given 46 | if ((!exists || !stats.isDirectory()) && sources.length > 1) 47 | common.error('dest is not a directory (too many sources)'); 48 | 49 | // Dest is an existing file, but no -f given 50 | if (exists && stats.isFile() && !options.force) 51 | common.error('dest file already exists: ' + dest); 52 | 53 | sources.forEach(function(src) { 54 | if (!fs.existsSync(src)) { 55 | common.error('no such file or directory: '+src, true); 56 | return; // skip file 57 | } 58 | 59 | // If here, src exists 60 | 61 | // When copying to '/path/dir': 62 | // thisDest = '/path/dir/file1' 63 | var thisDest = dest; 64 | if (fs.existsSync(dest) && fs.statSync(dest).isDirectory()) 65 | thisDest = path.normalize(dest + '/' + path.basename(src)); 66 | 67 | if (fs.existsSync(thisDest) && !options.force) { 68 | common.error('dest file already exists: ' + thisDest, true); 69 | return; // skip file 70 | } 71 | 72 | if (path.resolve(src) === path.dirname(path.resolve(thisDest))) { 73 | common.error('cannot move to self: '+src, true); 74 | return; // skip file 75 | } 76 | 77 | fs.renameSync(src, thisDest); 78 | }); // forEach(src) 79 | } // mv 80 | module.exports = _mv; 81 | -------------------------------------------------------------------------------- /CordovaLib/src/com/squareup/okhttp/internal/http/RetryableOutputStream.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 com.squareup.okhttp.internal.AbstractOutputStream; 20 | import java.io.ByteArrayOutputStream; 21 | import java.io.IOException; 22 | import java.io.OutputStream; 23 | import java.net.ProtocolException; 24 | 25 | import static com.squareup.okhttp.internal.Util.checkOffsetAndCount; 26 | 27 | /** 28 | * An HTTP request body that's completely buffered in memory. This allows 29 | * the post body to be transparently re-sent if the HTTP request must be 30 | * sent multiple times. 31 | */ 32 | final class RetryableOutputStream extends AbstractOutputStream { 33 | private final int limit; 34 | private final ByteArrayOutputStream content; 35 | 36 | public RetryableOutputStream(int limit) { 37 | this.limit = limit; 38 | this.content = new ByteArrayOutputStream(limit); 39 | } 40 | 41 | public RetryableOutputStream() { 42 | this.limit = -1; 43 | this.content = new ByteArrayOutputStream(); 44 | } 45 | 46 | @Override public synchronized void close() throws IOException { 47 | if (closed) { 48 | return; 49 | } 50 | closed = true; 51 | if (content.size() < limit) { 52 | throw new ProtocolException( 53 | "content-length promised " + limit + " bytes, but received " + content.size()); 54 | } 55 | } 56 | 57 | @Override public synchronized void write(byte[] buffer, int offset, int count) 58 | throws IOException { 59 | checkNotClosed(); 60 | checkOffsetAndCount(buffer.length, offset, count); 61 | if (limit != -1 && content.size() > limit - count) { 62 | throw new ProtocolException("exceeded content-length limit of " + limit + " bytes"); 63 | } 64 | content.write(buffer, offset, count); 65 | } 66 | 67 | public synchronized int contentLength() throws IOException { 68 | close(); 69 | return content.size(); 70 | } 71 | 72 | public void writeToSocket(OutputStream socketOut) throws IOException { 73 | content.writeTo(socketOut); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /CordovaLib/src/com/squareup/okhttp/internal/http/Transport.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 | 17 | package com.squareup.okhttp.internal.http; 18 | 19 | import java.io.IOException; 20 | import java.io.InputStream; 21 | import java.io.OutputStream; 22 | import java.net.CacheRequest; 23 | 24 | interface Transport { 25 | /** 26 | * Returns an output stream where the request body can be written. The 27 | * returned stream will of one of two types: 28 | *

    29 | *
  • Direct. Bytes are written to the socket and 30 | * forgotten. This is most efficient, particularly for large request 31 | * bodies. The returned stream may be buffered; the caller must call 32 | * {@link #flushRequest} before reading the response.
  • 33 | *
  • Buffered. Bytes are written to an in memory 34 | * buffer, and must be explicitly flushed with a call to {@link 35 | * #writeRequestBody}. This allows HTTP authorization (401, 407) 36 | * responses to be retransmitted transparently.
  • 37 | *
38 | */ 39 | // TODO: don't bother retransmitting the request body? It's quite a corner 40 | // case and there's uncertainty whether Firefox or Chrome do this 41 | OutputStream createRequestBody() throws IOException; 42 | 43 | /** This should update the HTTP engine's sentRequestMillis field. */ 44 | void writeRequestHeaders() throws IOException; 45 | 46 | /** 47 | * Sends the request body returned by {@link #createRequestBody} to the 48 | * remote peer. 49 | */ 50 | void writeRequestBody(RetryableOutputStream requestBody) throws IOException; 51 | 52 | /** Flush the request body to the underlying socket. */ 53 | void flushRequest() throws IOException; 54 | 55 | /** Read response headers and update the cookie manager. */ 56 | ResponseHeaders readResponseHeaders() throws IOException; 57 | 58 | // TODO: make this the content stream? 59 | InputStream getTransferStream(CacheRequest cacheRequest) throws IOException; 60 | 61 | /** Returns true if the underlying connection can be recycled. */ 62 | boolean makeReusable(boolean streamReusable, OutputStream requestBodyOut, 63 | InputStream responseBodyIn); 64 | } 65 | -------------------------------------------------------------------------------- /CordovaLib/src/org/apache/cordova/CordovaInterface.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 android.app.Activity; 22 | import android.content.Intent; 23 | 24 | import org.apache.cordova.CordovaPlugin; 25 | 26 | import java.util.concurrent.ExecutorService; 27 | 28 | /** 29 | * The Activity interface that is implemented by CordovaActivity. 30 | * It is used to isolate plugin development, and remove dependency on entire Cordova library. 31 | */ 32 | public interface CordovaInterface { 33 | 34 | /** 35 | * Launch an activity for which you would like a result when it finished. When this activity exits, 36 | * your onActivityResult() method will be called. 37 | * 38 | * @param command The command object 39 | * @param intent The intent to start 40 | * @param requestCode The request code that is passed to callback to identify the activity 41 | */ 42 | abstract public void startActivityForResult(CordovaPlugin command, Intent intent, int requestCode); 43 | 44 | /** 45 | * Set the plugin to be called when a sub-activity exits. 46 | * 47 | * @param plugin The plugin on which onActivityResult is to be called 48 | */ 49 | abstract public void setActivityResultCallback(CordovaPlugin plugin); 50 | 51 | /** 52 | * Get the Android activity. 53 | * 54 | * @return the Activity 55 | */ 56 | public abstract Activity getActivity(); 57 | 58 | 59 | /** 60 | * Called when a message is sent to plugin. 61 | * 62 | * @param id The message id 63 | * @param data The message data 64 | * @return Object or null 65 | */ 66 | public Object onMessage(String id, Object data); 67 | 68 | /** 69 | * Returns a shared thread pool that can be used for background tasks. 70 | */ 71 | public ExecutorService getThreadPool(); 72 | } 73 | -------------------------------------------------------------------------------- /src/it/mobimentum/phonegapspinnerplugin/SpinnerPlugin.java: -------------------------------------------------------------------------------- 1 | package it.mobimentum.phonegapspinnerplugin; 2 | 3 | import org.apache.cordova.CallbackContext; 4 | import org.apache.cordova.CordovaPlugin; 5 | import org.json.JSONArray; 6 | import org.json.JSONException; 7 | import org.json.JSONObject; 8 | 9 | import android.R.bool; 10 | import android.app.Activity; 11 | import android.content.Intent; 12 | import android.os.Handler; 13 | 14 | public class SpinnerPlugin extends CordovaPlugin { 15 | 16 | private static final String PARAM_SHOW_OVERLAY = "overlay"; 17 | private static final String PARAM_SHOW_TIMEOUT = "timeout"; 18 | private static final String PARAM_IS_FULLSCREEN = "fullscreen"; 19 | 20 | private boolean isShown = false; 21 | 22 | @Override 23 | public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException { 24 | 25 | final Activity context = this.cordova.getActivity(); 26 | 27 | if (action.equals("show")) 28 | { 29 | if( !isShown ) 30 | { 31 | isShown = true; 32 | 33 | // Args 34 | JSONObject argsObj = args.getJSONObject(0); 35 | Boolean showOverlay = argsObj.has(PARAM_SHOW_OVERLAY) ? argsObj.getBoolean(PARAM_SHOW_OVERLAY) : null; 36 | Integer hideTimeout = argsObj.has(PARAM_SHOW_TIMEOUT) ? argsObj.getInt(PARAM_SHOW_TIMEOUT) : null; 37 | Boolean isFullScreen = argsObj.has(PARAM_IS_FULLSCREEN) ? argsObj.getBoolean(PARAM_IS_FULLSCREEN) : null; 38 | 39 | // Show 40 | show(context, showOverlay, hideTimeout, isFullScreen); 41 | } 42 | 43 | callbackContext.success(); 44 | return true; 45 | } 46 | else if (action.equals("hide")) 47 | { 48 | if( isShown ) 49 | { 50 | isShown = false; 51 | 52 | // Hide 53 | hide(context); 54 | } 55 | 56 | callbackContext.success(); 57 | return true; 58 | } 59 | 60 | callbackContext.error("Spinner received invalid action '"+action+"'"); 61 | return false; 62 | } 63 | 64 | private boolean show(final Activity context, Boolean showOverlay, Integer hideTimeout, Boolean isFullscreen) { 65 | // Loading spinner 66 | Intent intent = new Intent(context, ProgressActivity.class); 67 | if (showOverlay != null) intent.putExtra(ProgressActivity.EXTRA_SHOW_OVERLAY, showOverlay); 68 | if (isFullscreen != null) intent.putExtra(ProgressActivity.EXTRA_IS_FULLSCREEN, isFullscreen); 69 | context.startActivity(intent); 70 | 71 | if (hideTimeout != null) { 72 | new Handler().postDelayed(new Runnable() { 73 | @Override 74 | public void run() { hide(context); } 75 | }, hideTimeout*1000); 76 | } 77 | 78 | return true; 79 | } 80 | 81 | private boolean hide(Activity context) { 82 | // Loading spinner 83 | Intent intent = new Intent(context, ProgressActivity.class); 84 | intent.putExtra(ProgressActivity.ACTION_HIDE_PROGRESS, true); 85 | context.startActivity(intent); 86 | 87 | return true; 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /src/it/mobimentum/phonegapspinnerplugin/ProgressActivity.java: -------------------------------------------------------------------------------- 1 | package it.mobimentum.phonegapspinnerplugin; 2 | 3 | import android.app.Activity; 4 | import android.content.Intent; 5 | import android.graphics.Color; 6 | import android.os.Bundle; 7 | import android.util.Log; 8 | import android.view.Window; 9 | import android.view.WindowManager; 10 | import android.widget.ProgressBar; 11 | import android.widget.RelativeLayout; 12 | import android.widget.RelativeLayout.LayoutParams; 13 | 14 | public class ProgressActivity extends Activity { 15 | 16 | public static final String ACTION_HIDE_PROGRESS = "ProgressActivity.ACTION_HIDE_PROGRESS"; 17 | 18 | public static final String EXTRA_SHOW_OVERLAY = "ProgressActivity.EXTRA_SHOW_OVERLAY"; 19 | 20 | public static final String EXTRA_IS_FULLSCREEN = "ProgressActivity.EXTRA_IS_FULLSCREEN"; 21 | 22 | private static final String TAG = ProgressActivity.class.getSimpleName(); 23 | 24 | @Override 25 | protected void onCreate(Bundle savedInstanceState) { 26 | super.onCreate(savedInstanceState); 27 | 28 | // Remove title bar 29 | this.requestWindowFeature(Window.FEATURE_NO_TITLE); 30 | 31 | // Intent 32 | Intent intent = getIntent(); 33 | Log.i(TAG, "Intent: "+intent.getAction()+" / "+intent.hasExtra(ACTION_HIDE_PROGRESS)); 34 | if (intent.hasExtra(ACTION_HIDE_PROGRESS)) { 35 | finish(); 36 | this.overridePendingTransition(0, 0); 37 | 38 | return; 39 | } 40 | 41 | // Parameters 42 | Bundle extras = intent.getExtras(); 43 | boolean showOverlay = extras == null || extras.getBoolean(EXTRA_SHOW_OVERLAY, true); 44 | boolean isFullscreen = extras != null && extras.getBoolean(EXTRA_IS_FULLSCREEN, false); 45 | 46 | // Fullscreen 47 | if (isFullscreen) { 48 | requestWindowFeature(Window.FEATURE_NO_TITLE); 49 | getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); 50 | } 51 | 52 | // ProgressBar 53 | ProgressBar bar = new ProgressBar(this, null, android.R.attr.progressBarStyleLarge); 54 | RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); 55 | params.addRule(RelativeLayout.CENTER_IN_PARENT); 56 | bar.setLayoutParams(params); 57 | bar.setBackgroundColor(Color.TRANSPARENT); 58 | 59 | // Layout 60 | RelativeLayout layout = new RelativeLayout(this); 61 | if (showOverlay) layout.setBackgroundColor(Color.parseColor("#aa000000")); 62 | layout.addView(bar); 63 | 64 | // Theme 65 | setTheme(android.R.style.Theme_Translucent_NoTitleBar); 66 | setContentView(layout); 67 | } 68 | 69 | @Override 70 | protected void onNewIntent(Intent intent) { 71 | Log.i(TAG, "Intent: "+intent.getAction()+" / "+intent.hasExtra(ACTION_HIDE_PROGRESS)); 72 | if (intent.hasExtra(ACTION_HIDE_PROGRESS)) { 73 | finish(); 74 | this.overridePendingTransition(0, 0); 75 | 76 | return; 77 | } 78 | 79 | super.onNewIntent(intent); 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /CordovaLib/src/com/squareup/okhttp/TunnelRequest.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 com.squareup.okhttp.internal.http.RawHeaders; 19 | 20 | import static com.squareup.okhttp.internal.Util.getDefaultPort; 21 | 22 | /** 23 | * Routing and authentication information sent to an HTTP proxy to create a 24 | * HTTPS to an origin server. Everything in the tunnel request is sent 25 | * unencrypted to the proxy server. 26 | * 27 | *

See RFC 2817, Section 28 | * 5.2. 29 | */ 30 | public final class TunnelRequest { 31 | final String host; 32 | final int port; 33 | final String userAgent; 34 | final String proxyAuthorization; 35 | 36 | /** 37 | * @param host the origin server's hostname. Not null. 38 | * @param port the origin server's port, like 80 or 443. 39 | * @param userAgent the client's user-agent. Not null. 40 | * @param proxyAuthorization proxy authorization, or null if the proxy is 41 | * used without an authorization header. 42 | */ 43 | public TunnelRequest(String host, int port, String userAgent, String proxyAuthorization) { 44 | if (host == null) throw new NullPointerException("host == null"); 45 | if (userAgent == null) throw new NullPointerException("userAgent == null"); 46 | this.host = host; 47 | this.port = port; 48 | this.userAgent = userAgent; 49 | this.proxyAuthorization = proxyAuthorization; 50 | } 51 | 52 | /** 53 | * If we're creating a TLS tunnel, send only the minimum set of headers. 54 | * This avoids sending potentially sensitive data like HTTP cookies to 55 | * the proxy unencrypted. 56 | */ 57 | RawHeaders getRequestHeaders() { 58 | RawHeaders result = new RawHeaders(); 59 | result.setRequestLine("CONNECT " + host + ":" + port + " HTTP/1.1"); 60 | 61 | // Always set Host and User-Agent. 62 | result.set("Host", port == getDefaultPort("https") ? host : (host + ":" + port)); 63 | result.set("User-Agent", userAgent); 64 | 65 | // Copy over the Proxy-Authorization header if it exists. 66 | if (proxyAuthorization != null) { 67 | result.set("Proxy-Authorization", proxyAuthorization); 68 | } 69 | 70 | // Always set the Proxy-Connection to Keep-Alive for the benefit of 71 | // HTTP/1.0 proxies like Squid. 72 | result.set("Proxy-Connection", "Keep-Alive"); 73 | return result; 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /bin/classes/ios/SpinnerPlugin.m: -------------------------------------------------------------------------------- 1 | // 2 | // SpinnerPlugin.m 3 | // IMG Cinema 4 | // 5 | // Created by Andrea Maschio on 24/12/13. 6 | // 7 | // 8 | 9 | #import "SpinnerPlugin.h" 10 | #import 11 | #define PARAM_SHOW_OVERLAY @"overlay" 12 | #define PARAM_AUTO_HIDE_TIMEOUT @"timeout" 13 | 14 | @implementation SpinnerPlugin 15 | - (void)pluginInitialize{ 16 | //params init 17 | showOverlay = YES; 18 | connectionTimeout = 0; 19 | } 20 | -(void)show:(CDVInvokedUrlCommand*)options{ 21 | NSMutableDictionary* params = [options.arguments objectAtIndex:0]; 22 | 23 | ; 24 | 25 | if([params objectForKey:PARAM_AUTO_HIDE_TIMEOUT]){ 26 | id connectiontimeout =[params objectForKey:PARAM_AUTO_HIDE_TIMEOUT]; 27 | 28 | if([connectiontimeout isKindOfClass:[NSString class]]){ 29 | NSScanner*scan = [NSScanner scannerWithString:(NSString*)connectiontimeout]; 30 | [scan scanInt:&connectionTimeout]; 31 | }else if([connectiontimeout isKindOfClass:[NSNumber class]]){ 32 | connectionTimeout = [connectiontimeout intValue]; 33 | } 34 | } 35 | 36 | 37 | id overlayParam = [params objectForKey:PARAM_SHOW_OVERLAY]; 38 | 39 | if ([overlayParam isKindOfClass:[NSString class]]) 40 | { 41 | if ([overlayParam isEqualToString:@"false"]) 42 | showOverlay = NO; 43 | } 44 | else if (![overlayParam boolValue]) 45 | showOverlay = NO; 46 | 47 | if(!indicator){ 48 | indicator = [[UIActivityIndicatorView alloc]initWithFrame:[UIScreen mainScreen].bounds]; 49 | [indicator setActivityIndicatorViewStyle:UIActivityIndicatorViewStyleWhiteLarge]; 50 | 51 | }else{ 52 | [indicator removeFromSuperview]; 53 | } 54 | if(showOverlay){ 55 | if(!background){ 56 | background = [[UIView alloc]initWithFrame:[UIScreen mainScreen].bounds]; 57 | }else{ 58 | [background removeFromSuperview]; 59 | } 60 | } 61 | 62 | if(connectionTimeout>0){ 63 | NSTimer *timer __attribute__((unused))= [NSTimer scheduledTimerWithTimeInterval:connectionTimeout target:self selector:@selector(hideAfterTimeout:) userInfo:Nil repeats:NO]; 64 | } 65 | [self.viewController.view addSubview:background]; 66 | 67 | 68 | [background setBackgroundColor:[UIColor blackColor]]; 69 | [background setAlpha:0.4f]; 70 | background.userInteractionEnabled=NO; 71 | 72 | [self.viewController.view addSubview:indicator]; 73 | [indicator startAnimating]; 74 | } 75 | -(void)hideAfterTimeout:(NSTimer*)timer{ 76 | //NSLog(@"Hiding"); 77 | [timer invalidate]; 78 | [self hide:nil]; 79 | } 80 | -(void)hide:(CDVInvokedUrlCommand*)options{ 81 | //NSLog(@"Hiding2"); 82 | [indicator stopAnimating]; 83 | [background removeFromSuperview]; 84 | [indicator removeFromSuperview]; 85 | 86 | 87 | } 88 | -(void)dispose{ 89 | [super dispose]; 90 | //NSLog(@"disposing plugin"); 91 | indicator=nil; 92 | background = nil; 93 | } 94 | @end 95 | --------------------------------------------------------------------------------