├── .babelrc ├── .editorconfig ├── .eslintrc.js ├── .gitattributes ├── .gitignore ├── .npmignore ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── config.xml ├── hooks └── README.md ├── package.json ├── platforms ├── android │ ├── .gitignore │ ├── .gradle │ │ └── 2.14.1 │ │ │ ├── taskArtifacts │ │ │ ├── cache.properties │ │ │ ├── cache.properties.lock │ │ │ ├── fileHashes.bin │ │ │ ├── fileSnapshots.bin │ │ │ ├── fileSnapshotsToTreeSnapshotsIndex.bin │ │ │ └── taskArtifacts.bin │ │ │ └── tasks │ │ │ ├── _CordovaLib_compileDebugJavaWithJavac │ │ │ ├── localClassSetAnalysis │ │ │ │ ├── localClassSetAnalysis.bin │ │ │ │ └── localClassSetAnalysis.lock │ │ │ └── localJarClasspathSnapshot │ │ │ │ ├── localJarClasspathSnapshot.bin │ │ │ │ └── localJarClasspathSnapshot.lock │ │ │ └── _compileDebugJavaWithJavac │ │ │ ├── localClassSetAnalysis │ │ │ ├── localClassSetAnalysis.bin │ │ │ └── localClassSetAnalysis.lock │ │ │ └── localJarClasspathSnapshot │ │ │ ├── localJarClasspathSnapshot.bin │ │ │ └── localJarClasspathSnapshot.lock │ ├── AndroidManifest.xml │ ├── CordovaLib │ │ ├── AndroidManifest.xml │ │ ├── build.gradle │ │ ├── build │ │ │ ├── generated │ │ │ │ └── source │ │ │ │ │ └── buildConfig │ │ │ │ │ └── debug │ │ │ │ │ └── org │ │ │ │ │ └── apache │ │ │ │ │ └── cordova │ │ │ │ │ └── BuildConfig.java │ │ │ ├── intermediates │ │ │ │ ├── bundles │ │ │ │ │ └── debug │ │ │ │ │ │ ├── AndroidManifest.xml │ │ │ │ │ │ └── classes.jar │ │ │ │ ├── classes │ │ │ │ │ └── debug │ │ │ │ │ │ └── org │ │ │ │ │ │ └── apache │ │ │ │ │ │ └── cordova │ │ │ │ │ │ ├── AuthenticationToken.class │ │ │ │ │ │ ├── BuildConfig.class │ │ │ │ │ │ ├── CallbackContext.class │ │ │ │ │ │ ├── CallbackMap.class │ │ │ │ │ │ ├── Config.class │ │ │ │ │ │ ├── ConfigXmlParser.class │ │ │ │ │ │ ├── CordovaActivity$1.class │ │ │ │ │ │ ├── CordovaActivity$2.class │ │ │ │ │ │ ├── CordovaActivity$3.class │ │ │ │ │ │ ├── CordovaActivity$4$1.class │ │ │ │ │ │ ├── CordovaActivity$4.class │ │ │ │ │ │ ├── CordovaActivity.class │ │ │ │ │ │ ├── CordovaArgs.class │ │ │ │ │ │ ├── CordovaBridge.class │ │ │ │ │ │ ├── CordovaClientCertRequest.class │ │ │ │ │ │ ├── CordovaDialogsHelper$1.class │ │ │ │ │ │ ├── CordovaDialogsHelper$2.class │ │ │ │ │ │ ├── CordovaDialogsHelper$3.class │ │ │ │ │ │ ├── CordovaDialogsHelper$4.class │ │ │ │ │ │ ├── CordovaDialogsHelper$5.class │ │ │ │ │ │ ├── CordovaDialogsHelper$6.class │ │ │ │ │ │ ├── CordovaDialogsHelper$7.class │ │ │ │ │ │ ├── CordovaDialogsHelper$8.class │ │ │ │ │ │ ├── CordovaDialogsHelper$9.class │ │ │ │ │ │ ├── CordovaDialogsHelper$Result.class │ │ │ │ │ │ ├── CordovaDialogsHelper.class │ │ │ │ │ │ ├── CordovaHttpAuthHandler.class │ │ │ │ │ │ ├── CordovaInterface.class │ │ │ │ │ │ ├── CordovaInterfaceImpl$ActivityResultHolder.class │ │ │ │ │ │ ├── CordovaInterfaceImpl.class │ │ │ │ │ │ ├── CordovaPlugin.class │ │ │ │ │ │ ├── CordovaPreferences.class │ │ │ │ │ │ ├── CordovaResourceApi$OpenForReadResult.class │ │ │ │ │ │ ├── CordovaResourceApi.class │ │ │ │ │ │ ├── CordovaWebView.class │ │ │ │ │ │ ├── CordovaWebViewEngine$Client.class │ │ │ │ │ │ ├── CordovaWebViewEngine$EngineView.class │ │ │ │ │ │ ├── CordovaWebViewEngine.class │ │ │ │ │ │ ├── CordovaWebViewImpl$1.class │ │ │ │ │ │ ├── CordovaWebViewImpl$2.class │ │ │ │ │ │ ├── CordovaWebViewImpl$3.class │ │ │ │ │ │ ├── CordovaWebViewImpl$EngineClient$1$1.class │ │ │ │ │ │ ├── CordovaWebViewImpl$EngineClient$1.class │ │ │ │ │ │ ├── CordovaWebViewImpl$EngineClient.class │ │ │ │ │ │ ├── CordovaWebViewImpl.class │ │ │ │ │ │ ├── CoreAndroid$1.class │ │ │ │ │ │ ├── CoreAndroid$2.class │ │ │ │ │ │ ├── CoreAndroid$3.class │ │ │ │ │ │ ├── CoreAndroid$4.class │ │ │ │ │ │ ├── CoreAndroid$5.class │ │ │ │ │ │ ├── CoreAndroid.class │ │ │ │ │ │ ├── ExposedJsApi.class │ │ │ │ │ │ ├── ICordovaClientCertRequest.class │ │ │ │ │ │ ├── ICordovaCookieManager.class │ │ │ │ │ │ ├── ICordovaHttpAuthHandler.class │ │ │ │ │ │ ├── LOG.class │ │ │ │ │ │ ├── NativeToJsMessageQueue$BridgeMode.class │ │ │ │ │ │ ├── NativeToJsMessageQueue$EvalBridgeMode$1.class │ │ │ │ │ │ ├── NativeToJsMessageQueue$EvalBridgeMode.class │ │ │ │ │ │ ├── NativeToJsMessageQueue$JsMessage.class │ │ │ │ │ │ ├── NativeToJsMessageQueue$LoadUrlBridgeMode$1.class │ │ │ │ │ │ ├── NativeToJsMessageQueue$LoadUrlBridgeMode.class │ │ │ │ │ │ ├── NativeToJsMessageQueue$NoOpBridgeMode.class │ │ │ │ │ │ ├── NativeToJsMessageQueue$OnlineEventsBridgeMode$1.class │ │ │ │ │ │ ├── NativeToJsMessageQueue$OnlineEventsBridgeMode$2.class │ │ │ │ │ │ ├── NativeToJsMessageQueue$OnlineEventsBridgeMode$OnlineEventsBridgeModeDelegate.class │ │ │ │ │ │ ├── NativeToJsMessageQueue$OnlineEventsBridgeMode.class │ │ │ │ │ │ ├── NativeToJsMessageQueue.class │ │ │ │ │ │ ├── PluginEntry.class │ │ │ │ │ │ ├── PluginManager.class │ │ │ │ │ │ ├── PluginResult$Status.class │ │ │ │ │ │ ├── PluginResult.class │ │ │ │ │ │ ├── ResumeCallback.class │ │ │ │ │ │ ├── Whitelist$URLPattern.class │ │ │ │ │ │ ├── Whitelist.class │ │ │ │ │ │ └── engine │ │ │ │ │ │ ├── SystemCookieManager.class │ │ │ │ │ │ ├── SystemExposedJsApi.class │ │ │ │ │ │ ├── SystemWebChromeClient$1.class │ │ │ │ │ │ ├── SystemWebChromeClient$2.class │ │ │ │ │ │ ├── SystemWebChromeClient$3.class │ │ │ │ │ │ ├── SystemWebChromeClient$4.class │ │ │ │ │ │ ├── SystemWebChromeClient$5.class │ │ │ │ │ │ ├── SystemWebChromeClient.class │ │ │ │ │ │ ├── SystemWebView.class │ │ │ │ │ │ ├── SystemWebViewClient.class │ │ │ │ │ │ ├── SystemWebViewEngine$1.class │ │ │ │ │ │ ├── SystemWebViewEngine$2.class │ │ │ │ │ │ └── SystemWebViewEngine.class │ │ │ │ ├── incremental-safeguard │ │ │ │ │ └── debug │ │ │ │ │ │ └── tag.txt │ │ │ │ ├── incremental │ │ │ │ │ ├── compileDebugAidl │ │ │ │ │ │ └── dependency.store │ │ │ │ │ ├── mergeDebugAssets │ │ │ │ │ │ └── merger.xml │ │ │ │ │ ├── mergeDebugJniLibFolders │ │ │ │ │ │ └── merger.xml │ │ │ │ │ ├── mergeDebugShaders │ │ │ │ │ │ └── merger.xml │ │ │ │ │ └── packageDebugResources │ │ │ │ │ │ ├── compile-file-map.properties │ │ │ │ │ │ └── merger.xml │ │ │ │ └── manifests │ │ │ │ │ └── aapt │ │ │ │ │ └── debug │ │ │ │ │ └── AndroidManifest.xml │ │ │ └── outputs │ │ │ │ └── aar │ │ │ │ └── CordovaLib-debug.aar │ │ ├── cordova.gradle │ │ ├── project.properties │ │ └── src │ │ │ └── org │ │ │ └── apache │ │ │ └── cordova │ │ │ ├── AuthenticationToken.java │ │ │ ├── CallbackContext.java │ │ │ ├── CallbackMap.java │ │ │ ├── Config.java │ │ │ ├── ConfigXmlParser.java │ │ │ ├── CordovaActivity.java │ │ │ ├── CordovaArgs.java │ │ │ ├── CordovaBridge.java │ │ │ ├── CordovaClientCertRequest.java │ │ │ ├── CordovaDialogsHelper.java │ │ │ ├── CordovaHttpAuthHandler.java │ │ │ ├── CordovaInterface.java │ │ │ ├── CordovaInterfaceImpl.java │ │ │ ├── CordovaPlugin.java │ │ │ ├── CordovaPreferences.java │ │ │ ├── CordovaResourceApi.java │ │ │ ├── CordovaWebView.java │ │ │ ├── CordovaWebViewEngine.java │ │ │ ├── CordovaWebViewImpl.java │ │ │ ├── CoreAndroid.java │ │ │ ├── ExposedJsApi.java │ │ │ ├── ICordovaClientCertRequest.java │ │ │ ├── ICordovaCookieManager.java │ │ │ ├── ICordovaHttpAuthHandler.java │ │ │ ├── LOG.java │ │ │ ├── NativeToJsMessageQueue.java │ │ │ ├── PluginEntry.java │ │ │ ├── PluginManager.java │ │ │ ├── PluginResult.java │ │ │ ├── ResumeCallback.java │ │ │ ├── Whitelist.java │ │ │ └── engine │ │ │ ├── SystemCookieManager.java │ │ │ ├── SystemExposedJsApi.java │ │ │ ├── SystemWebChromeClient.java │ │ │ ├── SystemWebView.java │ │ │ ├── SystemWebViewClient.java │ │ │ └── SystemWebViewEngine.java │ ├── android.json │ ├── assets │ │ └── www │ │ │ ├── cordova-js-src │ │ │ ├── android │ │ │ │ ├── nativeapiprovider.js │ │ │ │ └── promptbasednativeapi.js │ │ │ ├── exec.js │ │ │ ├── platform.js │ │ │ └── plugin │ │ │ │ └── android │ │ │ │ └── app.js │ │ │ ├── cordova.js │ │ │ ├── cordova_plugins.js │ │ │ ├── dist │ │ │ ├── build.js │ │ │ ├── build.js.map │ │ │ ├── css │ │ │ │ └── index.css │ │ │ └── img │ │ │ │ └── logo.png │ │ │ ├── index.html │ │ │ └── src │ │ │ ├── App.vue │ │ │ ├── Cordova.js │ │ │ └── main.js │ ├── build.gradle │ ├── cordova │ │ ├── .jshintrc │ │ ├── Api.js │ │ ├── android_sdk_version │ │ ├── build │ │ ├── build.bat │ │ ├── check_reqs │ │ ├── check_reqs.bat │ │ ├── clean │ │ ├── clean.bat │ │ ├── defaults.xml │ │ ├── lib │ │ │ ├── Adb.js │ │ │ ├── AndroidManifest.js │ │ │ ├── AndroidProject.js │ │ │ ├── AndroidStudio.js │ │ │ ├── android_sdk_version.js │ │ │ ├── build.js │ │ │ ├── builders │ │ │ │ ├── AntBuilder.js │ │ │ │ ├── GenericBuilder.js │ │ │ │ ├── GradleBuilder.js │ │ │ │ └── builders.js │ │ │ ├── check_reqs.js │ │ │ ├── device.js │ │ │ ├── emulator.js │ │ │ ├── install-device │ │ │ ├── install-device.bat │ │ │ ├── install-emulator │ │ │ ├── install-emulator.bat │ │ │ ├── list-devices │ │ │ ├── list-devices.bat │ │ │ ├── list-emulator-images │ │ │ ├── list-emulator-images.bat │ │ │ ├── list-started-emulators │ │ │ ├── list-started-emulators.bat │ │ │ ├── log.js │ │ │ ├── plugin-build.gradle │ │ │ ├── pluginHandlers.js │ │ │ ├── prepare.js │ │ │ ├── retry.js │ │ │ ├── run.js │ │ │ ├── start-emulator │ │ │ └── start-emulator.bat │ │ ├── log │ │ ├── log.bat │ │ ├── loggingHelper.js │ │ ├── run │ │ ├── run.bat │ │ ├── version │ │ └── version.bat │ ├── platform_www │ │ ├── cordova-js-src │ │ │ ├── android │ │ │ │ ├── nativeapiprovider.js │ │ │ │ └── promptbasednativeapi.js │ │ │ ├── exec.js │ │ │ ├── platform.js │ │ │ └── plugin │ │ │ │ └── android │ │ │ │ └── app.js │ │ ├── cordova.js │ │ └── cordova_plugins.js │ ├── project.properties │ ├── res │ │ ├── drawable-land-hdpi │ │ │ └── screen.png │ │ ├── drawable-land-ldpi │ │ │ └── screen.png │ │ ├── drawable-land-mdpi │ │ │ └── screen.png │ │ ├── drawable-land-xhdpi │ │ │ └── screen.png │ │ ├── drawable-port-hdpi │ │ │ └── screen.png │ │ ├── drawable-port-ldpi │ │ │ └── screen.png │ │ ├── drawable-port-mdpi │ │ │ └── screen.png │ │ ├── drawable-port-xhdpi │ │ │ └── screen.png │ │ ├── mipmap-hdpi │ │ │ └── icon.png │ │ ├── mipmap-ldpi │ │ │ └── icon.png │ │ ├── mipmap-mdpi │ │ │ └── icon.png │ │ ├── mipmap-xhdpi │ │ │ └── icon.png │ │ ├── values │ │ │ └── strings.xml │ │ └── xml │ │ │ └── config.xml │ ├── settings.gradle │ └── src │ │ ├── com │ │ └── laesporadelhongo │ │ │ └── cordovue │ │ │ └── MainActivity.java │ │ └── org │ │ └── apache │ │ └── cordova │ │ └── whitelist │ │ └── WhitelistPlugin.java └── platforms.json ├── plugins ├── android.json ├── cordova-plugin-whitelist │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── RELEASENOTES.md │ ├── doc │ │ ├── de │ │ │ └── README.md │ │ ├── es │ │ │ └── README.md │ │ ├── fr │ │ │ └── README.md │ │ ├── it │ │ │ └── README.md │ │ ├── ja │ │ │ └── README.md │ │ ├── ko │ │ │ └── README.md │ │ ├── pl │ │ │ └── README.md │ │ └── zh │ │ │ └── README.md │ ├── package.json │ ├── plugin.xml │ └── src │ │ └── android │ │ └── WhitelistPlugin.java └── fetch.json ├── preview1.png ├── preview2.png ├── vue-loader.config.js ├── webpack.base.config.js ├── webpack.config.js └── www ├── dist ├── css │ └── index.css └── img │ └── logo.png ├── index.html └── src ├── App.vue ├── Cordova.js ├── main.js ├── router └── index.js ├── store └── index.js └── views ├── about.vue └── main.vue /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { 4 | "es2015": { "modules": false } 5 | }] 6 | ], 7 | "comments": false 8 | } 9 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_size = 2 6 | indent_style = space 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | 12 | [*.md] 13 | trim_trailing_whitespace = false -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | parser: 'babel-eslint', 4 | env: { 5 | browser: true, 6 | node: true 7 | }, 8 | extends: 'standard', 9 | // required to lint *.vue files 10 | plugins: [ 11 | 'html' 12 | ], 13 | // add your custom rules here 14 | rules: {}, 15 | globals: {} 16 | } 17 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.java linguist-language=Vue -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | npm-debug.log 4 | www/dist/build.* 5 | .idea -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.log 3 | 4 | # Mac 5 | .DS_Store -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Contributing 2 | 3 | Thank you for your interest in contributing to the Cordovue project. 4 | 5 | #### Issues 6 | 7 | One of the best contributions is filing issues in the [Issue Tracker][issue-tracker]. 8 | 9 | All contributions (feature or bug fixes) should start with an issue first. 10 | 11 | #### Pull requests 12 | 13 | - Fork the repository 14 | - Create a branch (`git checkout -b issue-nnn`) 15 | - If possible, add a failing test 16 | - Commit your fix/feature and tests (`git commit -am "fixes for issue #nnn"`) 17 | - Push to the branch (`git push -u origin issue-nnn`) 18 | - Open a [Pull Request][pull-request] 19 | 20 | 21 | [issue-tracker]: https://github.com/TheMushrr00m/cordovue/issues 22 | [pull-request]: https://github.com/TheMushrr00m/cordovue/pulls 23 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2017 Gabriel Cueto 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | CordoVue 2 | =============== 3 | A simple apache cordova sample project using Vue, Vuex, Vue-router, ESLint and Webpack. 4 | 5 | Getting Started 6 | --------------- 7 | 8 | ### Prerequisites 9 | To use this you'll need Node.js v6 or newer. 10 | 11 | ### Installation 12 | ***via Github*** 13 | ``` bash 14 | $ git clone https://github.com/TheMushrr00m/cordovue.git MyAwesomeApp 15 | $ cd MyAwesomeApp 16 | $ yarn install 17 | $ yarn build 18 | $ yarn android 19 | $ yarn ios 20 | ``` 21 | 22 | As simple as that!! 23 | 24 | Route: '/' 25 | ![Cordovue app](preview1.png) 26 | 27 | Route: '/#/about' 28 | ![Cordovue app](preview2.png) 29 | 30 | Please, change `MyAwesomeApp` with your folder name. 31 | Then, you can open the app in your browser by visiting [localhost:8888](http://localhost:8888) 32 | 33 | ### What's included 34 | - `yarn dev`: Webpack config for source map & hot-reload. 35 | - `yarn build`: Production build with HTML/CSS/JS minification. 36 | - `yarn prepare [ ios | android ]`: Set the platform. Example (`yarn prepare -- android`). 37 | - `yarn [ ios | android ]`: Run in the iOS simulator / Android emulator. (Running in another terminal). Or physical device. 38 | - `yarn compile [ ios | android ]`: Build the app for the specified platform. Example (`yarn compile -- ios`). (Coming soon). 39 | - `yarn clean`: Clean the `platforms/` and `dist/` folders. (Coming soon) 40 | 41 | ### Tutorials 42 | [Presenting Cordovue - Spanish](http://laesporadelhongo.com/cordovue/) 43 | 44 | ### TO-DO 45 | - Tests (is it necessary?). 46 | 47 | ## License 48 | MIT. Copyright (c) 2017 Gabriel Cueto <@Mushr00m_Dev>. Modified by @eugenioclrc 49 | 50 | ## Credits 51 | - [Vue Webpack-simple Boilerplate](https://github.com/vuejs-templates/webpack-simple) 52 | 53 | Created with :heart: in Cancún :sunglasses: 54 | -------------------------------------------------------------------------------- /config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Cordovue 4 | 5 | A sample Apache Cordova application using VueJS. 6 | 7 | 8 | Gabriel Cueto - @Mushr00m_Dev 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /hooks/README.md: -------------------------------------------------------------------------------- 1 | 21 | # Cordova Hooks 22 | 23 | Cordova Hooks represent special scripts which could be added by application and plugin developers or even by your own build system to customize cordova commands. See Hooks Guide for more details: http://cordova.apache.org/docs/en/edge/guide_appdev_hooks_index.md.html#Hooks%20Guide. 24 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordovue", 3 | "description": "Cordova template using VueJS, Webpack, ES2015", 4 | "version": "1.0.5", 5 | "author": { 6 | "name": "Gabriel Cueto <@Mushr00m_Dev>", 7 | "email": "funji_2302@outlook.es", 8 | "url": "https://github.com/TheMushrr00m" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/TheMushrr00m/cordovue" 13 | }, 14 | "bugs": { 15 | "url": "https://github.com/TheMushrr00m/cordovue/issues" 16 | }, 17 | "homepage": "https://github.com/TheMushrr00m/cordovue", 18 | "license": "MIT", 19 | "keywords": [ 20 | "ecosystem:phonegap", 21 | "ecosystem:cordova", 22 | "cordova:template", 23 | "phonegap:template", 24 | "vue.js", 25 | "vuejs", 26 | "webpack", 27 | "hot-reload", 28 | "eslint" 29 | ], 30 | "cordova": { 31 | "id": "cordovue", 32 | "platforms": [ 33 | "android", 34 | "browser", 35 | "ios" 36 | ], 37 | "plugins": { 38 | "cordova-plugin-whitelist": {} 39 | } 40 | }, 41 | "scripts": { 42 | "dev": "cross-env NODE_ENV=development webpack-dev-server --open --inline --hot --content-base www", 43 | "build": "cross-env NODE_ENV=production webpack --progress --hide-modules", 44 | "android": "cordova run android", 45 | "ios": "cordova run ios", 46 | "serve": "cordova serve --port 8080", 47 | "lint": "eslint --ext .js,.vue --ignore-path .gitignore .", 48 | "precommit": "npm run lint" 49 | }, 50 | "engine": "node >= 6.0.0", 51 | "dependencies": { 52 | "cordova": "^7.1.0", 53 | "cordova-android": "^6.3.0", 54 | "cordova-plugin-whitelist": "^1.3.2", 55 | "vue": "^2.5.2", 56 | "vue-router": "^3.0.1", 57 | "vuex": "^3.0.1", 58 | "vuex-router-sync": "^5.0.0" 59 | }, 60 | "devDependencies": { 61 | "autoprefixer": "^7.1.6", 62 | "babel-core": "^6.26.0", 63 | "babel-eslint": "^8.0.1", 64 | "babel-loader": "^7.1.2", 65 | "babel-plugin-syntax-dynamic-import": "^6.18.0", 66 | "babel-plugin-transform-runtime": "^6.23.0", 67 | "babel-polyfill": "^6.26.0", 68 | "babel-preset-env": "^1.6.1", 69 | "cross-env": "^5.1.1", 70 | "css-loader": "^0.28.7", 71 | "eslint": "^4.10.0", 72 | "eslint-config-standard": "^10.2.1", 73 | "eslint-loader": "^1.9.0", 74 | "eslint-plugin-html": "^3.2.2", 75 | "eslint-plugin-import": "^2.8.0", 76 | "eslint-plugin-node": "^5.2.1", 77 | "eslint-plugin-promise": "^3.6.0", 78 | "eslint-plugin-standard": "^3.0.1", 79 | "extract-text-webpack-plugin": "^3.0.2", 80 | "file-loader": "^1.1.5", 81 | "friendly-errors-webpack-plugin": "^1.6.1", 82 | "vue-loader": "^13.3.0", 83 | "vue-template-compiler": "^2.5.2", 84 | "webpack": "^3.8.1", 85 | "webpack-dev-server": "^3.1.11" 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /platforms/android/.gitignore: -------------------------------------------------------------------------------- 1 | # Non-project-specific build files: 2 | build.xml 3 | local.properties 4 | /gradlew 5 | /gradlew.bat 6 | /gradle 7 | # Ant builds 8 | ant-build 9 | ant-gen 10 | # Eclipse builds 11 | gen 12 | out 13 | # Gradle builds 14 | /build 15 | -------------------------------------------------------------------------------- /platforms/android/.gradle/2.14.1/taskArtifacts/cache.properties: -------------------------------------------------------------------------------- 1 | #Tue Feb 07 01:01:39 EST 2017 2 | -------------------------------------------------------------------------------- /platforms/android/.gradle/2.14.1/taskArtifacts/cache.properties.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/.gradle/2.14.1/taskArtifacts/cache.properties.lock -------------------------------------------------------------------------------- /platforms/android/.gradle/2.14.1/taskArtifacts/fileHashes.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/.gradle/2.14.1/taskArtifacts/fileHashes.bin -------------------------------------------------------------------------------- /platforms/android/.gradle/2.14.1/taskArtifacts/fileSnapshots.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/.gradle/2.14.1/taskArtifacts/fileSnapshots.bin -------------------------------------------------------------------------------- /platforms/android/.gradle/2.14.1/taskArtifacts/fileSnapshotsToTreeSnapshotsIndex.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/.gradle/2.14.1/taskArtifacts/fileSnapshotsToTreeSnapshotsIndex.bin -------------------------------------------------------------------------------- /platforms/android/.gradle/2.14.1/taskArtifacts/taskArtifacts.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/.gradle/2.14.1/taskArtifacts/taskArtifacts.bin -------------------------------------------------------------------------------- /platforms/android/.gradle/2.14.1/tasks/_CordovaLib_compileDebugJavaWithJavac/localClassSetAnalysis/localClassSetAnalysis.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/.gradle/2.14.1/tasks/_CordovaLib_compileDebugJavaWithJavac/localClassSetAnalysis/localClassSetAnalysis.bin -------------------------------------------------------------------------------- /platforms/android/.gradle/2.14.1/tasks/_CordovaLib_compileDebugJavaWithJavac/localClassSetAnalysis/localClassSetAnalysis.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/.gradle/2.14.1/tasks/_CordovaLib_compileDebugJavaWithJavac/localClassSetAnalysis/localClassSetAnalysis.lock -------------------------------------------------------------------------------- /platforms/android/.gradle/2.14.1/tasks/_CordovaLib_compileDebugJavaWithJavac/localJarClasspathSnapshot/localJarClasspathSnapshot.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/.gradle/2.14.1/tasks/_CordovaLib_compileDebugJavaWithJavac/localJarClasspathSnapshot/localJarClasspathSnapshot.bin -------------------------------------------------------------------------------- /platforms/android/.gradle/2.14.1/tasks/_CordovaLib_compileDebugJavaWithJavac/localJarClasspathSnapshot/localJarClasspathSnapshot.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/.gradle/2.14.1/tasks/_CordovaLib_compileDebugJavaWithJavac/localJarClasspathSnapshot/localJarClasspathSnapshot.lock -------------------------------------------------------------------------------- /platforms/android/.gradle/2.14.1/tasks/_compileDebugJavaWithJavac/localClassSetAnalysis/localClassSetAnalysis.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/.gradle/2.14.1/tasks/_compileDebugJavaWithJavac/localClassSetAnalysis/localClassSetAnalysis.bin -------------------------------------------------------------------------------- /platforms/android/.gradle/2.14.1/tasks/_compileDebugJavaWithJavac/localClassSetAnalysis/localClassSetAnalysis.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/.gradle/2.14.1/tasks/_compileDebugJavaWithJavac/localClassSetAnalysis/localClassSetAnalysis.lock -------------------------------------------------------------------------------- /platforms/android/.gradle/2.14.1/tasks/_compileDebugJavaWithJavac/localJarClasspathSnapshot/localJarClasspathSnapshot.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/.gradle/2.14.1/tasks/_compileDebugJavaWithJavac/localJarClasspathSnapshot/localJarClasspathSnapshot.bin -------------------------------------------------------------------------------- /platforms/android/.gradle/2.14.1/tasks/_compileDebugJavaWithJavac/localJarClasspathSnapshot/localJarClasspathSnapshot.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/.gradle/2.14.1/tasks/_compileDebugJavaWithJavac/localJarClasspathSnapshot/localJarClasspathSnapshot.lock -------------------------------------------------------------------------------- /platforms/android/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build.gradle: -------------------------------------------------------------------------------- 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 | 19 | 20 | 21 | buildscript { 22 | repositories { 23 | mavenCentral() 24 | jcenter(); 25 | } 26 | 27 | dependencies { 28 | classpath 'com.android.tools.build:gradle:2.2.1' 29 | } 30 | 31 | } 32 | 33 | apply plugin: 'com.android.library' 34 | 35 | ext { 36 | apply from: 'cordova.gradle' 37 | cdvCompileSdkVersion = privateHelpers.getProjectTarget() 38 | cdvBuildToolsVersion = privateHelpers.findLatestInstalledBuildTools() 39 | } 40 | 41 | android { 42 | compileSdkVersion cdvCompileSdkVersion 43 | buildToolsVersion cdvBuildToolsVersion 44 | publishNonDefault true 45 | 46 | compileOptions { 47 | sourceCompatibility JavaVersion.VERSION_1_6 48 | targetCompatibility JavaVersion.VERSION_1_6 49 | } 50 | 51 | sourceSets { 52 | main { 53 | manifest.srcFile 'AndroidManifest.xml' 54 | java.srcDirs = ['src'] 55 | resources.srcDirs = ['src'] 56 | aidl.srcDirs = ['src'] 57 | renderscript.srcDirs = ['src'] 58 | res.srcDirs = ['res'] 59 | assets.srcDirs = ['assets'] 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/generated/source/buildConfig/debug/org/apache/cordova/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Automatically generated file. DO NOT MODIFY 3 | */ 4 | package org.apache.cordova; 5 | 6 | public final class BuildConfig { 7 | public static final boolean DEBUG = Boolean.parseBoolean("true"); 8 | public static final String APPLICATION_ID = "org.apache.cordova"; 9 | public static final String BUILD_TYPE = "debug"; 10 | public static final String FLAVOR = ""; 11 | public static final int VERSION_CODE = 1; 12 | public static final String VERSION_NAME = "1.0"; 13 | } 14 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/bundles/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/bundles/debug/classes.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/bundles/debug/classes.jar -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/AuthenticationToken.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/AuthenticationToken.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/BuildConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/BuildConfig.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CallbackContext.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CallbackContext.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CallbackMap.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CallbackMap.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/Config.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/Config.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/ConfigXmlParser.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/ConfigXmlParser.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaActivity$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaActivity$1.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaActivity$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaActivity$2.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaActivity$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaActivity$3.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaActivity$4$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaActivity$4$1.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaActivity$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaActivity$4.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaActivity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaActivity.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaArgs.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaArgs.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaBridge.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaBridge.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaClientCertRequest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaClientCertRequest.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$1.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$2.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$3.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$4.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$5.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$5.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$6.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$6.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$7.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$7.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$8.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$8.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$9.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$9.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$Result.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper$Result.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaDialogsHelper.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaHttpAuthHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaHttpAuthHandler.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaInterface.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaInterface.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaInterfaceImpl$ActivityResultHolder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaInterfaceImpl$ActivityResultHolder.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaInterfaceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaInterfaceImpl.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaPlugin.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaPlugin.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaPreferences.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaPreferences.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaResourceApi$OpenForReadResult.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaResourceApi$OpenForReadResult.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaResourceApi.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaResourceApi.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebView.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebView.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewEngine$Client.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewEngine$Client.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewEngine$EngineView.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewEngine$EngineView.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewEngine.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewEngine.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewImpl$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewImpl$1.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewImpl$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewImpl$2.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewImpl$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewImpl$3.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewImpl$EngineClient$1$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewImpl$EngineClient$1$1.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewImpl$EngineClient$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewImpl$EngineClient$1.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewImpl$EngineClient.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewImpl$EngineClient.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaWebViewImpl.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CoreAndroid$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CoreAndroid$1.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CoreAndroid$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CoreAndroid$2.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CoreAndroid$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CoreAndroid$3.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CoreAndroid$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CoreAndroid$4.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CoreAndroid$5.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CoreAndroid$5.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CoreAndroid.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CoreAndroid.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/ExposedJsApi.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/ExposedJsApi.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/ICordovaClientCertRequest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/ICordovaClientCertRequest.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/ICordovaCookieManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/ICordovaCookieManager.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/ICordovaHttpAuthHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/ICordovaHttpAuthHandler.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/LOG.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/LOG.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$BridgeMode.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$BridgeMode.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$EvalBridgeMode$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$EvalBridgeMode$1.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$EvalBridgeMode.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$EvalBridgeMode.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$JsMessage.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$JsMessage.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$LoadUrlBridgeMode$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$LoadUrlBridgeMode$1.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$LoadUrlBridgeMode.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$LoadUrlBridgeMode.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$NoOpBridgeMode.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$NoOpBridgeMode.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$OnlineEventsBridgeMode$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$OnlineEventsBridgeMode$1.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$OnlineEventsBridgeMode$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$OnlineEventsBridgeMode$2.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$OnlineEventsBridgeMode$OnlineEventsBridgeModeDelegate.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$OnlineEventsBridgeMode$OnlineEventsBridgeModeDelegate.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$OnlineEventsBridgeMode.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$OnlineEventsBridgeMode.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/PluginEntry.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/PluginEntry.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/PluginManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/PluginManager.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/PluginResult$Status.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/PluginResult$Status.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/PluginResult.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/PluginResult.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/ResumeCallback.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/ResumeCallback.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/Whitelist$URLPattern.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/Whitelist$URLPattern.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/Whitelist.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/Whitelist.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemCookieManager.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemCookieManager.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemExposedJsApi.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemExposedJsApi.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebChromeClient$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebChromeClient$1.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebChromeClient$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebChromeClient$2.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebChromeClient$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebChromeClient$3.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebChromeClient$4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebChromeClient$4.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebChromeClient$5.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebChromeClient$5.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebChromeClient.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebChromeClient.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebView.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebView.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebViewClient.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebViewClient.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebViewEngine$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebViewEngine$1.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebViewEngine$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebViewEngine$2.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebViewEngine.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/engine/SystemWebViewEngine.class -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/incremental-safeguard/debug/tag.txt: -------------------------------------------------------------------------------- 1 | incremental task execution -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/incremental/compileDebugAidl/dependency.store: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/incremental/mergeDebugAssets/merger.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/incremental/mergeDebugShaders/merger.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/incremental/packageDebugResources/compile-file-map.properties: -------------------------------------------------------------------------------- 1 | #Tue Feb 07 01:01:39 EST 2017 2 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/incremental/packageDebugResources/merger.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/intermediates/manifests/aapt/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/build/outputs/aar/CordovaLib-debug.aar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/CordovaLib/build/outputs/aar/CordovaLib-debug.aar -------------------------------------------------------------------------------- /platforms/android/CordovaLib/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system use, 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Indicates whether an apk should be generated for each density. 11 | split.density=false 12 | # Project target. 13 | target=android-25 14 | apk-configurations= 15 | renderscript.opt.level=O0 16 | android.library=true 17 | -------------------------------------------------------------------------------- /platforms/android/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 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/org/apache/cordova/CallbackMap.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.util.Pair; 22 | import android.util.SparseArray; 23 | 24 | /** 25 | * Provides a collection that maps unique request codes to CordovaPlugins and Integers. 26 | * Used to ensure that when plugins make requests for runtime permissions, those requests do not 27 | * collide with requests from other plugins that use the same request code value. 28 | */ 29 | public class CallbackMap { 30 | private int currentCallbackId = 0; 31 | private SparseArray> callbacks; 32 | 33 | public CallbackMap() { 34 | this.callbacks = new SparseArray>(); 35 | } 36 | 37 | /** 38 | * Stores a CordovaPlugin and request code and returns a new unique request code to use 39 | * in a permission request. 40 | * 41 | * @param receiver The plugin that is making the request 42 | * @param requestCode The original request code used by the plugin 43 | * @return A unique request code that can be used to retrieve this callback 44 | * with getAndRemoveCallback() 45 | */ 46 | public synchronized int registerCallback(CordovaPlugin receiver, int requestCode) { 47 | int mappedId = this.currentCallbackId++; 48 | callbacks.put(mappedId, new Pair(receiver, requestCode)); 49 | return mappedId; 50 | } 51 | 52 | /** 53 | * Retrieves and removes a callback stored in the map using the mapped request code 54 | * obtained from registerCallback() 55 | * 56 | * @param mappedId The request code obtained from registerCallback() 57 | * @return The CordovaPlugin and orignal request code that correspond to the 58 | * given mappedCode 59 | */ 60 | public synchronized Pair getAndRemoveCallback(int mappedId) { 61 | Pair callback = callbacks.get(mappedId); 62 | callbacks.remove(mappedId); 63 | return callback; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/org/apache/cordova/Config.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 java.util.List; 23 | 24 | import android.app.Activity; 25 | 26 | @Deprecated // Use Whitelist, CordovaPrefences, etc. directly. 27 | public class Config { 28 | private static final String TAG = "Config"; 29 | 30 | static ConfigXmlParser parser; 31 | 32 | private Config() { 33 | } 34 | 35 | public static void init(Activity action) { 36 | parser = new ConfigXmlParser(); 37 | parser.parse(action); 38 | //TODO: Add feature to bring this back. Some preferences should be overridden by intents, but not all 39 | parser.getPreferences().setPreferencesBundle(action.getIntent().getExtras()); 40 | } 41 | 42 | // Intended to be used for testing only; creates an empty configuration. 43 | public static void init() { 44 | if (parser == null) { 45 | parser = new ConfigXmlParser(); 46 | } 47 | } 48 | 49 | public static String getStartUrl() { 50 | if (parser == null) { 51 | return "file:///android_asset/www/index.html"; 52 | } 53 | return parser.getLaunchUrl(); 54 | } 55 | 56 | public static String getErrorUrl() { 57 | return parser.getPreferences().getString("errorurl", null); 58 | } 59 | 60 | public static List getPluginEntries() { 61 | return parser.getPluginEntries(); 62 | } 63 | 64 | public static CordovaPreferences getPreferences() { 65 | return parser.getPreferences(); 66 | } 67 | 68 | public static boolean isInitialized() { 69 | return parser != null; 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/org/apache/cordova/CordovaArgs.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 org.json.JSONArray; 22 | import org.json.JSONException; 23 | import org.json.JSONObject; 24 | 25 | import android.util.Base64; 26 | 27 | public class CordovaArgs { 28 | private JSONArray baseArgs; 29 | 30 | public CordovaArgs(JSONArray args) { 31 | this.baseArgs = args; 32 | } 33 | 34 | 35 | // Pass through the basics to the base args. 36 | public Object get(int index) throws JSONException { 37 | return baseArgs.get(index); 38 | } 39 | 40 | public boolean getBoolean(int index) throws JSONException { 41 | return baseArgs.getBoolean(index); 42 | } 43 | 44 | public double getDouble(int index) throws JSONException { 45 | return baseArgs.getDouble(index); 46 | } 47 | 48 | public int getInt(int index) throws JSONException { 49 | return baseArgs.getInt(index); 50 | } 51 | 52 | public JSONArray getJSONArray(int index) throws JSONException { 53 | return baseArgs.getJSONArray(index); 54 | } 55 | 56 | public JSONObject getJSONObject(int index) throws JSONException { 57 | return baseArgs.getJSONObject(index); 58 | } 59 | 60 | public long getLong(int index) throws JSONException { 61 | return baseArgs.getLong(index); 62 | } 63 | 64 | public String getString(int index) throws JSONException { 65 | return baseArgs.getString(index); 66 | } 67 | 68 | 69 | public Object opt(int index) { 70 | return baseArgs.opt(index); 71 | } 72 | 73 | public boolean optBoolean(int index) { 74 | return baseArgs.optBoolean(index); 75 | } 76 | 77 | public double optDouble(int index) { 78 | return baseArgs.optDouble(index); 79 | } 80 | 81 | public int optInt(int index) { 82 | return baseArgs.optInt(index); 83 | } 84 | 85 | public JSONArray optJSONArray(int index) { 86 | return baseArgs.optJSONArray(index); 87 | } 88 | 89 | public JSONObject optJSONObject(int index) { 90 | return baseArgs.optJSONObject(index); 91 | } 92 | 93 | public long optLong(int index) { 94 | return baseArgs.optLong(index); 95 | } 96 | 97 | public String optString(int index) { 98 | return baseArgs.optString(index); 99 | } 100 | 101 | public boolean isNull(int index) { 102 | return baseArgs.isNull(index); 103 | } 104 | 105 | 106 | // The interesting custom helpers. 107 | public byte[] getArrayBuffer(int index) throws JSONException { 108 | String encoded = baseArgs.getString(index); 109 | return Base64.decode(encoded, Base64.DEFAULT); 110 | } 111 | } 112 | 113 | 114 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/org/apache/cordova/CordovaClientCertRequest.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.security.Principal; 22 | import java.security.PrivateKey; 23 | import java.security.cert.X509Certificate; 24 | 25 | import android.webkit.ClientCertRequest; 26 | 27 | /** 28 | * Implementation of the ICordovaClientCertRequest for Android WebView. 29 | */ 30 | public class CordovaClientCertRequest implements ICordovaClientCertRequest { 31 | 32 | private final ClientCertRequest request; 33 | 34 | public CordovaClientCertRequest(ClientCertRequest request) { 35 | this.request = request; 36 | } 37 | 38 | /** 39 | * Cancel this request 40 | */ 41 | public void cancel() 42 | { 43 | request.cancel(); 44 | } 45 | 46 | /* 47 | * Returns the host name of the server requesting the certificate. 48 | */ 49 | public String getHost() 50 | { 51 | return request.getHost(); 52 | } 53 | 54 | /* 55 | * Returns the acceptable types of asymmetric keys (can be null). 56 | */ 57 | public String[] getKeyTypes() 58 | { 59 | return request.getKeyTypes(); 60 | } 61 | 62 | /* 63 | * Returns the port number of the server requesting the certificate. 64 | */ 65 | public int getPort() 66 | { 67 | return request.getPort(); 68 | } 69 | 70 | /* 71 | * Returns the acceptable certificate issuers for the certificate matching the private key (can be null). 72 | */ 73 | public Principal[] getPrincipals() 74 | { 75 | return request.getPrincipals(); 76 | } 77 | 78 | /* 79 | * Ignore the request for now. Do not remember user's choice. 80 | */ 81 | public void ignore() 82 | { 83 | request.ignore(); 84 | } 85 | 86 | /* 87 | * Proceed with the specified private key and client certificate chain. Remember the user's positive choice and use it for future requests. 88 | * 89 | * @param privateKey The privateKey 90 | * @param chain The certificate chain 91 | */ 92 | public void proceed(PrivateKey privateKey, X509Certificate[] chain) 93 | { 94 | request.proceed(privateKey, chain); 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/org/apache/cordova/CordovaHttpAuthHandler.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.webkit.HttpAuthHandler; 22 | 23 | /** 24 | * Specifies interface for HTTP auth handler object which is used to handle auth requests and 25 | * specifying user credentials. 26 | */ 27 | public class CordovaHttpAuthHandler implements ICordovaHttpAuthHandler { 28 | 29 | private final HttpAuthHandler handler; 30 | 31 | public CordovaHttpAuthHandler(HttpAuthHandler handler) { 32 | this.handler = handler; 33 | } 34 | 35 | /** 36 | * Instructs the WebView to cancel the authentication request. 37 | */ 38 | public void cancel () { 39 | this.handler.cancel(); 40 | } 41 | 42 | /** 43 | * Instructs the WebView to proceed with the authentication with the given credentials. 44 | * 45 | * @param username 46 | * @param password 47 | */ 48 | public void proceed (String username, String password) { 49 | this.handler.proceed(username, password); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /platforms/android/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 | /** 74 | * Sends a permission request to the activity for one permission. 75 | */ 76 | public void requestPermission(CordovaPlugin plugin, int requestCode, String permission); 77 | 78 | /** 79 | * Sends a permission request to the activity for a group of permissions 80 | */ 81 | public void requestPermissions(CordovaPlugin plugin, int requestCode, String [] permissions); 82 | 83 | /** 84 | * Check for a permission. Returns true if the permission is granted, false otherwise. 85 | */ 86 | public boolean hasPermission(String permission); 87 | 88 | } 89 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/org/apache/cordova/CordovaPreferences.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 java.util.HashMap; 23 | import java.util.Locale; 24 | import java.util.Map; 25 | 26 | import org.apache.cordova.LOG; 27 | 28 | import android.app.Activity; 29 | import android.os.Bundle; 30 | 31 | public class CordovaPreferences { 32 | private HashMap prefs = new HashMap(20); 33 | private Bundle preferencesBundleExtras; 34 | 35 | public void setPreferencesBundle(Bundle extras) { 36 | preferencesBundleExtras = extras; 37 | } 38 | 39 | public void set(String name, String value) { 40 | prefs.put(name.toLowerCase(Locale.ENGLISH), value); 41 | } 42 | 43 | public void set(String name, boolean value) { 44 | set(name, "" + value); 45 | } 46 | 47 | public void set(String name, int value) { 48 | set(name, "" + value); 49 | } 50 | 51 | public void set(String name, double value) { 52 | set(name, "" + value); 53 | } 54 | 55 | public Map getAll() { 56 | return prefs; 57 | } 58 | 59 | public boolean getBoolean(String name, boolean defaultValue) { 60 | name = name.toLowerCase(Locale.ENGLISH); 61 | String value = prefs.get(name); 62 | if (value != null) { 63 | return Boolean.parseBoolean(value); 64 | } 65 | return defaultValue; 66 | } 67 | 68 | // Added in 4.0.0 69 | public boolean contains(String name) { 70 | return getString(name, null) != null; 71 | } 72 | 73 | public int getInteger(String name, int defaultValue) { 74 | name = name.toLowerCase(Locale.ENGLISH); 75 | String value = prefs.get(name); 76 | if (value != null) { 77 | // Use Integer.decode() can't handle it if the highest bit is set. 78 | return (int)(long)Long.decode(value); 79 | } 80 | return defaultValue; 81 | } 82 | 83 | public double getDouble(String name, double defaultValue) { 84 | name = name.toLowerCase(Locale.ENGLISH); 85 | String value = prefs.get(name); 86 | if (value != null) { 87 | return Double.valueOf(value); 88 | } 89 | return defaultValue; 90 | } 91 | 92 | public String getString(String name, String defaultValue) { 93 | name = name.toLowerCase(Locale.ENGLISH); 94 | String value = prefs.get(name); 95 | if (value != null) { 96 | return value; 97 | } 98 | return defaultValue; 99 | } 100 | 101 | } 102 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewEngine.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.view.KeyEvent; 22 | import android.view.View; 23 | import android.webkit.ValueCallback; 24 | 25 | /** 26 | * Interface for all Cordova engines. 27 | * No methods will be added to this class (in order to be compatible with existing engines). 28 | * Instead, we will create a new interface: e.g. CordovaWebViewEngineV2 29 | */ 30 | public interface CordovaWebViewEngine { 31 | void init(CordovaWebView parentWebView, CordovaInterface cordova, Client client, 32 | CordovaResourceApi resourceApi, PluginManager pluginManager, 33 | NativeToJsMessageQueue nativeToJsMessageQueue); 34 | 35 | CordovaWebView getCordovaWebView(); 36 | ICordovaCookieManager getCookieManager(); 37 | View getView(); 38 | 39 | void loadUrl(String url, boolean clearNavigationStack); 40 | 41 | void stopLoading(); 42 | 43 | /** Return the currently loaded URL */ 44 | String getUrl(); 45 | 46 | void clearCache(); 47 | 48 | /** After calling clearHistory(), canGoBack() should be false. */ 49 | void clearHistory(); 50 | 51 | boolean canGoBack(); 52 | 53 | /** Returns whether a navigation occurred */ 54 | boolean goBack(); 55 | 56 | /** Pauses / resumes the WebView's event loop. */ 57 | void setPaused(boolean value); 58 | 59 | /** Clean up all resources associated with the WebView. */ 60 | void destroy(); 61 | 62 | /** Add the evaulate Javascript method **/ 63 | void evaluateJavascript(String js, ValueCallback callback); 64 | 65 | /** 66 | * Used to retrieve the associated CordovaWebView given a View without knowing the type of Engine. 67 | * E.g. ((CordovaWebView.EngineView)activity.findViewById(android.R.id.webView)).getCordovaWebView(); 68 | */ 69 | public interface EngineView { 70 | CordovaWebView getCordovaWebView(); 71 | } 72 | 73 | /** 74 | * Contains methods that an engine uses to communicate with the parent CordovaWebView. 75 | * Methods may be added in future cordova versions, but never removed. 76 | */ 77 | public interface Client { 78 | Boolean onDispatchKeyEvent(KeyEvent event); 79 | void clearLoadTimeoutTimer(); 80 | void onPageStarted(String newUrl); 81 | void onReceivedError(int errorCode, String description, String failingUrl); 82 | void onPageFinishedLoading(String url); 83 | boolean onNavigationAttempt(String url); 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/org/apache/cordova/ExposedJsApi.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 org.json.JSONException; 23 | 24 | /* 25 | * Any exposed Javascript API MUST implement these three things! 26 | */ 27 | public interface ExposedJsApi { 28 | public String exec(int bridgeSecret, String service, String action, String callbackId, String arguments) throws JSONException, IllegalAccessException; 29 | public void setNativeToJsBridgeMode(int bridgeSecret, int value) throws IllegalAccessException; 30 | public String retrieveJsMessages(int bridgeSecret, boolean fromOnlineEvent) throws IllegalAccessException; 31 | } 32 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/org/apache/cordova/ICordovaClientCertRequest.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.security.Principal; 22 | import java.security.PrivateKey; 23 | import java.security.cert.X509Certificate; 24 | 25 | /** 26 | * Specifies interface for handling certificate requests. 27 | */ 28 | public interface ICordovaClientCertRequest { 29 | /** 30 | * Cancel this request 31 | */ 32 | public void cancel(); 33 | 34 | /* 35 | * Returns the host name of the server requesting the certificate. 36 | */ 37 | public String getHost(); 38 | 39 | /* 40 | * Returns the acceptable types of asymmetric keys (can be null). 41 | */ 42 | public String[] getKeyTypes(); 43 | 44 | /* 45 | * Returns the port number of the server requesting the certificate. 46 | */ 47 | public int getPort(); 48 | 49 | /* 50 | * Returns the acceptable certificate issuers for the certificate matching the private key (can be null). 51 | */ 52 | public Principal[] getPrincipals(); 53 | 54 | /* 55 | * Ignore the request for now. Do not remember user's choice. 56 | */ 57 | public void ignore(); 58 | 59 | /* 60 | * Proceed with the specified private key and client certificate chain. Remember the user's positive choice and use it for future requests. 61 | * 62 | * @param privateKey The privateKey 63 | * @param chain The certificate chain 64 | */ 65 | public void proceed(PrivateKey privateKey, X509Certificate[] chain); 66 | } -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/org/apache/cordova/ICordovaCookieManager.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 | public interface ICordovaCookieManager { 23 | 24 | public void setCookiesEnabled(boolean accept); 25 | 26 | public void setCookie(final String url, final String value); 27 | 28 | public String getCookie(final String url); 29 | 30 | public void clearCookies(); 31 | 32 | public void flush(); 33 | }; 34 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/org/apache/cordova/ICordovaHttpAuthHandler.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 | * Specifies interface for HTTP auth handler object which is used to handle auth requests and 23 | * specifying user credentials. 24 | */ 25 | public interface ICordovaHttpAuthHandler { 26 | /** 27 | * Instructs the WebView to cancel the authentication request. 28 | */ 29 | public void cancel (); 30 | 31 | /** 32 | * Instructs the WebView to proceed with the authentication with the given credentials. 33 | * 34 | * @param username The user name 35 | * @param password The password 36 | */ 37 | public void proceed (String username, String password); 38 | } -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/org/apache/cordova/PluginEntry.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 org.apache.cordova.CordovaPlugin; 22 | 23 | /** 24 | * This class represents a service entry object. 25 | */ 26 | public final class PluginEntry { 27 | 28 | /** 29 | * The name of the service that this plugin implements 30 | */ 31 | public final String service; 32 | 33 | /** 34 | * The plugin class name that implements the service. 35 | */ 36 | public final String pluginClass; 37 | 38 | /** 39 | * The pre-instantiated plugin to use for this entry. 40 | */ 41 | public final CordovaPlugin plugin; 42 | 43 | /** 44 | * Flag that indicates the plugin object should be created when PluginManager is initialized. 45 | */ 46 | public final boolean onload; 47 | 48 | /** 49 | * Constructs with a CordovaPlugin already instantiated. 50 | */ 51 | public PluginEntry(String service, CordovaPlugin plugin) { 52 | this(service, plugin.getClass().getName(), true, plugin); 53 | } 54 | 55 | /** 56 | * @param service The name of the service 57 | * @param pluginClass The plugin class name 58 | * @param onload Create plugin object when HTML page is loaded 59 | */ 60 | public PluginEntry(String service, String pluginClass, boolean onload) { 61 | this(service, pluginClass, onload, null); 62 | } 63 | 64 | private PluginEntry(String service, String pluginClass, boolean onload, CordovaPlugin plugin) { 65 | this.service = service; 66 | this.pluginClass = pluginClass; 67 | this.onload = onload; 68 | this.plugin = plugin; 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/org/apache/cordova/ResumeCallback.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 | import org.json.JSONException; 23 | import org.json.JSONObject; 24 | 25 | import java.util.ArrayList; 26 | import java.util.List; 27 | 28 | public class ResumeCallback extends CallbackContext { 29 | private final String TAG = "CordovaResumeCallback"; 30 | private String serviceName; 31 | private PluginManager pluginManager; 32 | 33 | public ResumeCallback(String serviceName, PluginManager pluginManager) { 34 | super("resumecallback", null); 35 | this.serviceName = serviceName; 36 | this.pluginManager = pluginManager; 37 | } 38 | 39 | @Override 40 | public void sendPluginResult(PluginResult pluginResult) { 41 | synchronized (this) { 42 | if (finished) { 43 | LOG.w(TAG, serviceName + " attempted to send a second callback to ResumeCallback\nResult was: " + pluginResult.getMessage()); 44 | return; 45 | } else { 46 | finished = true; 47 | } 48 | } 49 | 50 | JSONObject event = new JSONObject(); 51 | JSONObject pluginResultObject = new JSONObject(); 52 | 53 | try { 54 | pluginResultObject.put("pluginServiceName", this.serviceName); 55 | pluginResultObject.put("pluginStatus", PluginResult.StatusMessages[pluginResult.getStatus()]); 56 | 57 | event.put("action", "resume"); 58 | event.put("pendingResult", pluginResultObject); 59 | } catch (JSONException e) { 60 | LOG.e(TAG, "Unable to create resume object for Activity Result"); 61 | } 62 | 63 | PluginResult eventResult = new PluginResult(PluginResult.Status.OK, event); 64 | 65 | // We send a list of results to the js so that we don't have to decode 66 | // the PluginResult passed to this CallbackContext into JSON twice. 67 | // The results are combined into an event payload before the event is 68 | // fired on the js side of things (see platform.js) 69 | List result = new ArrayList(); 70 | result.add(eventResult); 71 | result.add(pluginResult); 72 | 73 | CoreAndroid appPlugin = (CoreAndroid) pluginManager.getPlugin(CoreAndroid.PLUGIN_NAME); 74 | appPlugin.sendResumeEvent(new PluginResult(PluginResult.Status.OK, result)); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemCookieManager.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.engine; 21 | 22 | import android.annotation.TargetApi; 23 | import android.os.Build; 24 | import android.webkit.CookieManager; 25 | import android.webkit.WebView; 26 | 27 | import org.apache.cordova.ICordovaCookieManager; 28 | 29 | class SystemCookieManager implements ICordovaCookieManager { 30 | 31 | protected final WebView webView; 32 | private final CookieManager cookieManager; 33 | 34 | //Added because lint can't see the conditional RIGHT ABOVE this 35 | @TargetApi(Build.VERSION_CODES.LOLLIPOP) 36 | public SystemCookieManager(WebView webview) { 37 | webView = webview; 38 | cookieManager = CookieManager.getInstance(); 39 | 40 | //REALLY? Nobody has seen this UNTIL NOW? 41 | cookieManager.setAcceptFileSchemeCookies(true); 42 | 43 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { 44 | cookieManager.setAcceptThirdPartyCookies(webView, true); 45 | } 46 | } 47 | 48 | public void setCookiesEnabled(boolean accept) { 49 | cookieManager.setAcceptCookie(accept); 50 | } 51 | 52 | public void setCookie(final String url, final String value) { 53 | cookieManager.setCookie(url, value); 54 | } 55 | 56 | public String getCookie(final String url) { 57 | return cookieManager.getCookie(url); 58 | } 59 | 60 | public void clearCookies() { 61 | cookieManager.removeAllCookie(); 62 | } 63 | 64 | public void flush() { 65 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { 66 | cookieManager.flush(); 67 | } 68 | } 69 | }; 70 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemExposedJsApi.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.engine; 20 | 21 | import android.webkit.JavascriptInterface; 22 | 23 | import org.apache.cordova.CordovaBridge; 24 | import org.apache.cordova.ExposedJsApi; 25 | import org.json.JSONException; 26 | 27 | /** 28 | * Contains APIs that the JS can call. All functions in here should also have 29 | * an equivalent entry in CordovaChromeClient.java, and be added to 30 | * cordova-js/lib/android/plugin/android/promptbasednativeapi.js 31 | */ 32 | class SystemExposedJsApi implements ExposedJsApi { 33 | private final CordovaBridge bridge; 34 | 35 | SystemExposedJsApi(CordovaBridge bridge) { 36 | this.bridge = bridge; 37 | } 38 | 39 | @JavascriptInterface 40 | public String exec(int bridgeSecret, String service, String action, String callbackId, String arguments) throws JSONException, IllegalAccessException { 41 | return bridge.jsExec(bridgeSecret, service, action, callbackId, arguments); 42 | } 43 | 44 | @JavascriptInterface 45 | public void setNativeToJsBridgeMode(int bridgeSecret, int value) throws IllegalAccessException { 46 | bridge.jsSetNativeToJsBridgeMode(bridgeSecret, value); 47 | } 48 | 49 | @JavascriptInterface 50 | public String retrieveJsMessages(int bridgeSecret, boolean fromOnlineEvent) throws IllegalAccessException { 51 | return bridge.jsRetrieveJsMessages(bridgeSecret, fromOnlineEvent); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebView.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.engine; 21 | 22 | import android.content.Context; 23 | import android.util.AttributeSet; 24 | import android.view.KeyEvent; 25 | import android.webkit.WebChromeClient; 26 | import android.webkit.WebView; 27 | import android.webkit.WebViewClient; 28 | 29 | import org.apache.cordova.CordovaInterface; 30 | import org.apache.cordova.CordovaWebView; 31 | import org.apache.cordova.CordovaWebViewEngine; 32 | 33 | /** 34 | * Custom WebView subclass that enables us to capture events needed for Cordova. 35 | */ 36 | public class SystemWebView extends WebView implements CordovaWebViewEngine.EngineView { 37 | private SystemWebViewClient viewClient; 38 | SystemWebChromeClient chromeClient; 39 | private SystemWebViewEngine parentEngine; 40 | private CordovaInterface cordova; 41 | 42 | public SystemWebView(Context context) { 43 | this(context, null); 44 | } 45 | 46 | public SystemWebView(Context context, AttributeSet attrs) { 47 | super(context, attrs); 48 | } 49 | 50 | // Package visibility to enforce that only SystemWebViewEngine should call this method. 51 | void init(SystemWebViewEngine parentEngine, CordovaInterface cordova) { 52 | this.cordova = cordova; 53 | this.parentEngine = parentEngine; 54 | if (this.viewClient == null) { 55 | setWebViewClient(new SystemWebViewClient(parentEngine)); 56 | } 57 | 58 | if (this.chromeClient == null) { 59 | setWebChromeClient(new SystemWebChromeClient(parentEngine)); 60 | } 61 | } 62 | 63 | @Override 64 | public CordovaWebView getCordovaWebView() { 65 | return parentEngine != null ? parentEngine.getCordovaWebView() : null; 66 | } 67 | 68 | @Override 69 | public void setWebViewClient(WebViewClient client) { 70 | viewClient = (SystemWebViewClient)client; 71 | super.setWebViewClient(client); 72 | } 73 | 74 | @Override 75 | public void setWebChromeClient(WebChromeClient client) { 76 | chromeClient = (SystemWebChromeClient)client; 77 | super.setWebChromeClient(client); 78 | } 79 | 80 | @Override 81 | public boolean dispatchKeyEvent(KeyEvent event) { 82 | Boolean ret = parentEngine.client.onDispatchKeyEvent(event); 83 | if (ret != null) { 84 | return ret.booleanValue(); 85 | } 86 | return super.dispatchKeyEvent(event); 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /platforms/android/android.json: -------------------------------------------------------------------------------- 1 | { 2 | "prepare_queue": { 3 | "installed": [], 4 | "uninstalled": [] 5 | }, 6 | "config_munge": { 7 | "files": { 8 | "res/xml/config.xml": { 9 | "parents": { 10 | "/*": [ 11 | { 12 | "xml": "", 13 | "count": 1 14 | } 15 | ] 16 | } 17 | } 18 | } 19 | }, 20 | "installed_plugins": { 21 | "cordova-plugin-whitelist": { 22 | "PACKAGE_NAME": "com.laesporadelhongo.testcordovavuewebpack" 23 | } 24 | }, 25 | "dependent_plugins": {}, 26 | "modules": [], 27 | "plugin_metadata": { 28 | "cordova-plugin-whitelist": "1.3.1" 29 | } 30 | } -------------------------------------------------------------------------------- /platforms/android/assets/www/cordova-js-src/android/nativeapiprovider.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 | 20 | /** 21 | * Exports the ExposedJsApi.java object if available, otherwise exports the PromptBasedNativeApi. 22 | */ 23 | 24 | var nativeApi = this._cordovaNative || require('cordova/android/promptbasednativeapi'); 25 | var currentApi = nativeApi; 26 | 27 | module.exports = { 28 | get: function() { return currentApi; }, 29 | setPreferPrompt: function(value) { 30 | currentApi = value ? require('cordova/android/promptbasednativeapi') : nativeApi; 31 | }, 32 | // Used only by tests. 33 | set: function(value) { 34 | currentApi = value; 35 | } 36 | }; 37 | -------------------------------------------------------------------------------- /platforms/android/assets/www/cordova-js-src/android/promptbasednativeapi.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 | 20 | /** 21 | * Implements the API of ExposedJsApi.java, but uses prompt() to communicate. 22 | * This is used pre-JellyBean, where addJavascriptInterface() is disabled. 23 | */ 24 | 25 | module.exports = { 26 | exec: function(bridgeSecret, service, action, callbackId, argsJson) { 27 | return prompt(argsJson, 'gap:'+JSON.stringify([bridgeSecret, service, action, callbackId])); 28 | }, 29 | setNativeToJsBridgeMode: function(bridgeSecret, value) { 30 | prompt(value, 'gap_bridge_mode:' + bridgeSecret); 31 | }, 32 | retrieveJsMessages: function(bridgeSecret, fromOnlineEvent) { 33 | return prompt(+fromOnlineEvent, 'gap_poll:' + bridgeSecret); 34 | } 35 | }; 36 | -------------------------------------------------------------------------------- /platforms/android/assets/www/cordova_plugins.js: -------------------------------------------------------------------------------- 1 | cordova.define('cordova/plugin_list', function(require, exports, module) { 2 | module.exports = []; 3 | module.exports.metadata = 4 | // TOP OF METADATA 5 | { 6 | "cordova-plugin-whitelist": "1.3.1" 7 | }; 8 | // BOTTOM OF METADATA 9 | }); -------------------------------------------------------------------------------- /platforms/android/assets/www/dist/css/index.css: -------------------------------------------------------------------------------- 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 | -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */ 21 | } 22 | 23 | body { 24 | -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */ 25 | -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */ 26 | -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */ 27 | background-color:#E4E4E4; 28 | background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); 29 | background-image:-webkit-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); 30 | background-image:-ms-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); 31 | background-image:-webkit-gradient( 32 | linear, 33 | left top, 34 | left bottom, 35 | color-stop(0, #A7A7A7), 36 | color-stop(0.51, #E4E4E4) 37 | ); 38 | background-attachment:fixed; 39 | font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif; 40 | font-size:12px; 41 | height:100%; 42 | margin:0px; 43 | padding:0px; 44 | text-transform:uppercase; 45 | width:100%; 46 | } 47 | 48 | /* Portrait layout (default) */ 49 | .app { 50 | background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */ 51 | position:absolute; /* position in the center of the screen */ 52 | left:50%; 53 | top:25%; 54 | height:100px; /* text area height */ 55 | width:225px; /* text area width */ 56 | text-align:center; 57 | padding:180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */ 58 | margin:-115px 0px 0px -112px; /* offset vertical: half of image height and text area height */ 59 | /* offset horizontal: half of text area width */ 60 | } 61 | 62 | /* Landscape layout (with min-width) */ 63 | @media screen and (min-aspect-ratio: 1/1) and (min-width:400px) { 64 | .app { 65 | background-position:left center; 66 | padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */ 67 | margin:-90px 0px 0px -198px; /* offset vertical: half of image height */ 68 | /* offset horizontal: half of image width and text area width */ 69 | } 70 | } 71 | 72 | h1 { 73 | font-size:24px; 74 | font-weight:normal; 75 | margin:0px; 76 | overflow:visible; 77 | padding:0px; 78 | text-align:center; 79 | } 80 | 81 | h1 { 82 | font-size:16px; 83 | font-weight:normal; 84 | margin:0px; 85 | overflow:visible; 86 | padding:0px; 87 | text-align:center; 88 | } 89 | 90 | .event { 91 | border-radius:4px; 92 | -webkit-border-radius:4px; 93 | color:#FFFFFF; 94 | font-size:12px; 95 | margin:0px 30px; 96 | padding:2px 0px; 97 | } 98 | 99 | .event.listening { 100 | background-color:#333333; 101 | display:block; 102 | } 103 | 104 | .event.received { 105 | background-color:#4B946A; 106 | display:none; 107 | } 108 | 109 | @keyframes fade { 110 | from { opacity: 1.0; } 111 | 50% { opacity: 0.4; } 112 | to { opacity: 1.0; } 113 | } 114 | 115 | @-webkit-keyframes fade { 116 | from { opacity: 1.0; } 117 | 50% { opacity: 0.4; } 118 | to { opacity: 1.0; } 119 | } 120 | 121 | .blink { 122 | animation:fade 3000ms infinite; 123 | -webkit-animation:fade 3000ms infinite; 124 | } 125 | -------------------------------------------------------------------------------- /platforms/android/assets/www/dist/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/assets/www/dist/img/logo.png -------------------------------------------------------------------------------- /platforms/android/assets/www/index.html: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 31 | 32 | 33 | 34 | 35 | 36 | Cordova + VueJS + Webpack 37 | 38 | 39 |
40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /platforms/android/assets/www/src/App.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /platforms/android/assets/www/src/Cordova.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 | export default { 20 | // Application Constructor 21 | initialize: function() { 22 | document.addEventListener('deviceready', this.onDeviceReady.bind(this), false); 23 | }, 24 | 25 | // deviceready Event Handler 26 | // 27 | // Bind any cordova events here. Common events are: 28 | // 'pause', 'resume', etc. 29 | onDeviceReady: function() { 30 | this.receivedEvent('deviceready'); 31 | }, 32 | 33 | // Update DOM on a Received Event 34 | receivedEvent: function(id) { 35 | var parentElement = document.getElementById(id); 36 | var listeningElement = parentElement.querySelector('.listening'); 37 | var receivedElement = parentElement.querySelector('.received'); 38 | 39 | listeningElement.setAttribute('style', 'display:none;'); 40 | receivedElement.setAttribute('style', 'display:block;'); 41 | 42 | console.log('Received Event: ' + id); 43 | } 44 | } -------------------------------------------------------------------------------- /platforms/android/assets/www/src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | import Cordova from './Cordova.js' 4 | 5 | // Load Vue instance 6 | new Vue({ 7 | el: '#app', 8 | render: h => h(App), 9 | mounted() { 10 | Cordova.initialize() 11 | } 12 | }) -------------------------------------------------------------------------------- /platforms/android/cordova/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "node": true 3 | , "bitwise": true 4 | , "undef": true 5 | , "trailing": true 6 | , "quotmark": true 7 | , "indent": 4 8 | , "unused": "vars" 9 | , "latedef": "nofunc" 10 | } 11 | -------------------------------------------------------------------------------- /platforms/android/cordova/android_sdk_version: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var android_sdk_version = require('./lib/android_sdk_version'); 23 | 24 | android_sdk_version.run().done(null, function(err) { 25 | console.log(err); 26 | process.exit(2); 27 | }); 28 | 29 | 30 | -------------------------------------------------------------------------------- /platforms/android/cordova/build: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var args = process.argv; 23 | var Api = require('./Api'); 24 | var nopt = require('nopt'); 25 | var path = require('path'); 26 | 27 | // Support basic help commands 28 | if(['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(process.argv[2]) >= 0) 29 | require('./lib/build').help(); 30 | 31 | // Do some basic argument parsing 32 | var buildOpts = nopt({ 33 | 'verbose' : Boolean, 34 | 'silent' : Boolean, 35 | 'debug' : Boolean, 36 | 'release' : Boolean, 37 | 'nobuild': Boolean, 38 | 'buildConfig' : path 39 | }, { 'd' : '--verbose' }); 40 | 41 | // Make buildOptions compatible with PlatformApi build method spec 42 | buildOpts.argv = buildOpts.argv.original; 43 | 44 | require('./loggingHelper').adjustLoggerLevel(buildOpts); 45 | 46 | new Api().build(buildOpts) 47 | .catch(function(err) { 48 | console.error(err.stack); 49 | process.exit(2); 50 | }); 51 | -------------------------------------------------------------------------------- /platforms/android/cordova/build.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0build" 20 | IF EXIST %script_path% ( 21 | node %script_path% %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'build' script in 'cordova' folder, aborting...>&2 25 | EXIT /B 1 26 | ) -------------------------------------------------------------------------------- /platforms/android/cordova/check_reqs: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var check_reqs = require('./lib/check_reqs'); 23 | 24 | check_reqs.run().done( 25 | function success() { 26 | console.log('Looks like your environment fully supports cordova-android development!'); 27 | }, function fail(err) { 28 | console.log(err); 29 | process.exit(2); 30 | } 31 | ); 32 | -------------------------------------------------------------------------------- /platforms/android/cordova/check_reqs.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="%~dp0check_reqs" 20 | IF EXIST %script_path% ( 21 | node "%script_path%" %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'check_reqs' script in 'bin' folder, aborting...>&2 25 | EXIT /B 1 26 | ) 27 | -------------------------------------------------------------------------------- /platforms/android/cordova/clean: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var Api = require('./Api'); 23 | var path = require('path'); 24 | var nopt = require('nopt'); 25 | 26 | // Support basic help commands 27 | if(['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(process.argv[2]) >= 0) { 28 | console.log('Usage: ' + path.relative(process.cwd(), process.argv[1])); 29 | console.log('Cleans the project directory.'); 30 | process.exit(0); 31 | } 32 | 33 | // Do some basic argument parsing 34 | var opts = nopt({ 35 | 'verbose' : Boolean, 36 | 'silent' : Boolean 37 | }, { 'd' : '--verbose' }); 38 | 39 | // Make buildOptions compatible with PlatformApi clean method spec 40 | opts.argv = opts.argv.original; 41 | 42 | // Skip cleaning prepared files when not invoking via cordova CLI. 43 | opts.noPrepare = true; 44 | 45 | require('./loggingHelper').adjustLoggerLevel(opts); 46 | 47 | new Api().clean(opts) 48 | .catch(function(err) { 49 | console.error(err.stack); 50 | process.exit(2); 51 | }); 52 | -------------------------------------------------------------------------------- /platforms/android/cordova/clean.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0clean" 20 | IF EXIST %script_path% ( 21 | node %script_path% %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'clean' script in 'cordova' folder, aborting...>&2 25 | EXIT /B 1 26 | ) -------------------------------------------------------------------------------- /platforms/android/cordova/defaults.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/AndroidStudio.js: -------------------------------------------------------------------------------- 1 | /* 2 | * This is a simple routine that checks if project is an Android Studio Project 3 | * 4 | * @param {String} root Root folder of the project 5 | */ 6 | 7 | /*jshint esnext: false */ 8 | 9 | var path = require('path'); 10 | var fs = require('fs'); 11 | var CordovaError = require('cordova-common').CordovaError; 12 | 13 | module.exports.isAndroidStudioProject = function isAndroidStudioProject(root) { 14 | var eclipseFiles = ['AndroidManifest.xml', 'libs', 'res', 'project.properties', 'platform_www']; 15 | var androidStudioFiles = ['app', 'gradle', 'app/src/main/res']; 16 | 17 | // assume it is an AS project and not an Eclipse project 18 | var isEclipse = false; 19 | var isAS = true; 20 | 21 | if(!fs.existsSync(root)) { 22 | throw new CordovaError('AndroidStudio.js:inAndroidStudioProject root does not exist: ' + root); 23 | } 24 | 25 | // if any of the following exists, then we are not an ASProj 26 | eclipseFiles.forEach(function(file) { 27 | if(fs.existsSync(path.join(root, file))) { 28 | isEclipse = true; 29 | } 30 | }); 31 | 32 | // if it is NOT an eclipse project, check that all required files exist 33 | if(!isEclipse) { 34 | androidStudioFiles.forEach(function(file){ 35 | if(!fs.existsSync(path.join(root, file))) { 36 | console.log('missing file :: ' + file); 37 | isAS = false; 38 | } 39 | }); 40 | } 41 | return (!isEclipse && isAS); 42 | }; 43 | -------------------------------------------------------------------------------- /platforms/android/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 child_process = require('child_process'), 23 | Q = require('q'); 24 | 25 | var get_highest_sdk = function(results){ 26 | var reg = /\d+/; 27 | var apiLevels = []; 28 | for(var i=0;i 2) { 26 | var install_target; 27 | if (args[2].substring(0, 9) == '--target=') { 28 | install_target = args[2].substring(9, args[2].length); 29 | device.install(install_target).done(null, function(err) { 30 | console.error('ERROR: ' + err); 31 | process.exit(2); 32 | }); 33 | } else { 34 | console.error('ERROR : argument \'' + args[2] + '\' not recognized.'); 35 | process.exit(2); 36 | } 37 | } else { 38 | device.install().done(null, function(err) { 39 | console.error('ERROR: ' + err); 40 | process.exit(2); 41 | }); 42 | } 43 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/install-device.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0install-device" 20 | IF EXIST %script_path% ( 21 | node "%script_path%" %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'install-device' script in 'cordova\lib' folder, aborting...>&2 25 | EXIT /B 1 26 | ) -------------------------------------------------------------------------------- /platforms/android/cordova/lib/install-emulator: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var emulator = require('./emulator'), 23 | args = process.argv; 24 | 25 | var install_target; 26 | if(args.length > 2) { 27 | if (args[2].substring(0, 9) == '--target=') { 28 | install_target = args[2].substring(9, args[2].length); 29 | } else { 30 | console.error('ERROR : argument \'' + args[2] + '\' not recognized.'); 31 | process.exit(2); 32 | } 33 | } 34 | 35 | emulator.install(install_target).done(null, function(err) { 36 | console.error('ERROR: ' + err); 37 | process.exit(2); 38 | }); 39 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/install-emulator.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0install-emulator" 20 | IF EXIST %script_path% ( 21 | node "%script_path%" %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'install-emulator' script in 'cordova\lib' folder, aborting...>&2 25 | EXIT /B 1 26 | ) -------------------------------------------------------------------------------- /platforms/android/cordova/lib/list-devices: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var devices = require('./device'); 23 | 24 | // Usage support for when args are given 25 | require('../lib/check_reqs').check_android().then(function() { 26 | devices.list().done(function(device_list) { 27 | device_list && device_list.forEach(function(dev) { 28 | console.log(dev); 29 | }); 30 | }, function(err) { 31 | console.error('ERROR: ' + err); 32 | process.exit(2); 33 | }); 34 | }); 35 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/list-devices.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0list-devices" 20 | IF EXIST %script_path% ( 21 | node "%script_path%" %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'list-devices' script in 'cordova\lib' folder, aborting...>&2 25 | EXIT /B 1 26 | ) -------------------------------------------------------------------------------- /platforms/android/cordova/lib/list-emulator-images: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var emulators = require('./emulator'); 23 | 24 | // Usage support for when args are given 25 | require('../lib/check_reqs').check_android().then(function() { 26 | emulators.list_images().done(function(emulator_list) { 27 | emulator_list && emulator_list.forEach(function(emu) { 28 | console.log(emu.name); 29 | }); 30 | }, function(err) { 31 | console.error('ERROR: ' + err); 32 | process.exit(2); 33 | }); 34 | }); 35 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/list-emulator-images.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0list-emulator-images" 20 | IF EXIST %script_path% ( 21 | node "%script_path%" %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'list-emulator-images' script in 'cordova\lib' folder, aborting...>&2 25 | EXIT /B 1 26 | ) 27 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/list-started-emulators: -------------------------------------------------------------------------------- 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 | require('../lib/check_reqs').check_android().then(function() { 26 | emulators.list_started().done(function(emulator_list) { 27 | emulator_list && emulator_list.forEach(function(emu) { 28 | console.log(emu); 29 | }); 30 | }, function(err) { 31 | console.error('ERROR: ' + err); 32 | process.exit(2); 33 | }); 34 | }); 35 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/list-started-emulators.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0list-started-emulators" 20 | IF EXIST %script_path% ( 21 | node "%script_path%" %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'list-started-emulators' script in 'cordova\lib' folder, aborting...>&2 25 | EXIT /B 1 26 | ) -------------------------------------------------------------------------------- /platforms/android/cordova/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 path = require('path'), 23 | os = require('os'), 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 d = Q.defer(); 34 | var adb = child_process.spawn('adb', ['logcat'], {cwd: os.tmpdir()}); 35 | 36 | adb.stdout.on('data', function(data) { 37 | var lines = data ? data.toString().split('\n') : []; 38 | var out = lines.filter(function(x) { return x.indexOf('nativeGetEnabledTags') < 0; }); 39 | console.log(out.join('\n')); 40 | }); 41 | 42 | adb.stderr.on('data', console.error); 43 | adb.on('close', function(code) { 44 | if (code > 0) { 45 | d.reject('Failed to run logcat command.'); 46 | } else d.resolve(); 47 | }); 48 | 49 | return d.promise; 50 | }; 51 | 52 | module.exports.help = function() { 53 | console.log('Usage: ' + path.relative(process.cwd(), path.join(ROOT, 'cordova', 'log'))); 54 | console.log('Gives the logcat output on the command line.'); 55 | process.exit(0); 56 | }; 57 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/plugin-build.gradle: -------------------------------------------------------------------------------- 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 | 19 | // GENERATED FILE! DO NOT EDIT! 20 | 21 | buildscript { 22 | repositories { 23 | mavenCentral() 24 | jcenter() 25 | } 26 | 27 | // Switch the Android Gradle plugin version requirement depending on the 28 | // installed version of Gradle. This dependency is documented at 29 | // http://tools.android.com/tech-docs/new-build-system/version-compatibility 30 | // and https://issues.apache.org/jira/browse/CB-8143 31 | dependencies { 32 | classpath 'com.android.tools.build:gradle:1.0.0+' 33 | } 34 | } 35 | 36 | apply plugin: 'com.android.library' 37 | 38 | dependencies { 39 | compile fileTree(dir: 'libs', include: '*.jar') 40 | debugCompile project(path: ":CordovaLib", configuration: "debug") 41 | releaseCompile project(path: ":CordovaLib", configuration: "release") 42 | } 43 | 44 | android { 45 | compileSdkVersion cdvCompileSdkVersion 46 | buildToolsVersion cdvBuildToolsVersion 47 | publishNonDefault true 48 | 49 | compileOptions { 50 | sourceCompatibility JavaVersion.VERSION_1_6 51 | targetCompatibility JavaVersion.VERSION_1_6 52 | } 53 | 54 | sourceSets { 55 | main { 56 | manifest.srcFile 'AndroidManifest.xml' 57 | java.srcDirs = ['src'] 58 | resources.srcDirs = ['src'] 59 | aidl.srcDirs = ['src'] 60 | renderscript.srcDirs = ['src'] 61 | res.srcDirs = ['res'] 62 | assets.srcDirs = ['assets'] 63 | jniLibs.srcDirs = ['libs'] 64 | } 65 | } 66 | } 67 | 68 | if (file('build-extras.gradle').exists()) { 69 | apply from: 'build-extras.gradle' 70 | } 71 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/retry.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 | /* jshint node: true */ 23 | 24 | 'use strict'; 25 | 26 | var events = require('cordova-common').events; 27 | 28 | /* 29 | * Retry a promise-returning function a number of times, propagating its 30 | * results on success or throwing its error on a failed final attempt. 31 | * 32 | * @arg {Number} attemts_left - The number of times to retry the passed call. 33 | * @arg {Function} promiseFunction - A function that returns a promise. 34 | * @arg {...} - Arguments to pass to promiseFunction. 35 | * 36 | * @returns {Promise} 37 | */ 38 | module.exports.retryPromise = function (attemts_left, promiseFunction) { 39 | 40 | // NOTE: 41 | // get all trailing arguments, by skipping the first two (attemts_left and 42 | // promiseFunction) because they shouldn't get passed to promiseFunction 43 | var promiseFunctionArguments = Array.prototype.slice.call(arguments, 2); 44 | 45 | return promiseFunction.apply(undefined, promiseFunctionArguments).then( 46 | 47 | // on success pass results through 48 | function onFulfilled(value) { 49 | return value; 50 | }, 51 | 52 | // on rejection either retry, or throw the error 53 | function onRejected(error) { 54 | 55 | attemts_left -= 1; 56 | 57 | if (attemts_left < 1) { 58 | throw error; 59 | } 60 | 61 | events.emit('verbose', 'A retried call failed. Retrying ' + attemts_left + ' more time(s).'); 62 | 63 | // retry call self again with the same arguments, except attemts_left is now lower 64 | var fullArguments = [attemts_left, promiseFunction].concat(promiseFunctionArguments); 65 | return module.exports.retryPromise.apply(undefined, fullArguments); 66 | } 67 | ); 68 | }; 69 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/start-emulator: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var emulator = require('./emulator'), 23 | args = process.argv; 24 | 25 | var install_target; 26 | if(args.length > 2) { 27 | if (args[2].substring(0, 9) == '--target=') { 28 | install_target = args[2].substring(9, args[2].length); 29 | } else { 30 | console.error('ERROR : argument \'' + args[2] + '\' not recognized.'); 31 | process.exit(2); 32 | } 33 | } 34 | 35 | emulator.start(install_target).done(null, function(err) { 36 | console.error('ERROR: ' + err); 37 | process.exit(2); 38 | }); 39 | 40 | -------------------------------------------------------------------------------- /platforms/android/cordova/lib/start-emulator.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0start-emulator" 20 | IF EXIST %script_path% ( 21 | node "%script_path%" %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'start-emulator' script in 'cordova\lib' folder, aborting...>&2 25 | EXIT /B 1 26 | ) -------------------------------------------------------------------------------- /platforms/android/cordova/log: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var log = require('./lib/log'), 23 | reqs = require('./lib/check_reqs'), 24 | args = process.argv; 25 | 26 | // Usage support for when args are given 27 | if(args.length > 2) { 28 | log.help(); 29 | } else { 30 | reqs.run().done(function() { 31 | return log.run(); 32 | }, function(err) { 33 | console.error('ERROR: ' + err); 34 | process.exit(2); 35 | }); 36 | } 37 | -------------------------------------------------------------------------------- /platforms/android/cordova/log.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0log" 20 | IF EXIST %script_path% ( 21 | node %script_path% %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'log' script in 'cordova' folder, aborting...>&2 25 | EXIT /B 1 26 | ) -------------------------------------------------------------------------------- /platforms/android/cordova/loggingHelper.js: -------------------------------------------------------------------------------- 1 | var CordovaLogger = require('cordova-common').CordovaLogger; 2 | 3 | module.exports = { 4 | adjustLoggerLevel: function (opts) { 5 | if (opts instanceof Array) { 6 | opts.silent = opts.indexOf('--silent') !== -1; 7 | opts.verbose = opts.indexOf('--verbose') !== -1; 8 | } 9 | 10 | if (opts.silent) { 11 | CordovaLogger.get().setLevel('error'); 12 | } 13 | 14 | if (opts.verbose) { 15 | CordovaLogger.get().setLevel('verbose'); 16 | } 17 | } 18 | }; 19 | -------------------------------------------------------------------------------- /platforms/android/cordova/run: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /* 4 | Licensed to the Apache Software Foundation (ASF) under one 5 | or more contributor license agreements. See the NOTICE file 6 | distributed with this work for additional information 7 | regarding copyright ownership. The ASF licenses this file 8 | to you under the Apache License, Version 2.0 (the 9 | "License"); you may not use this file except in compliance 10 | with the License. You may obtain a copy of the License at 11 | 12 | http://www.apache.org/licenses/LICENSE-2.0 13 | 14 | Unless required by applicable law or agreed to in writing, 15 | software distributed under the License is distributed on an 16 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 | KIND, either express or implied. See the License for the 18 | specific language governing permissions and limitations 19 | under the License. 20 | */ 21 | 22 | var Api = require('./Api'); 23 | var nopt = require('nopt'); 24 | var path = require('path'); 25 | 26 | // Support basic help commands 27 | if(['--help', '/?', '-h', 'help', '-help', '/help'].indexOf(process.argv[2]) >= 0) 28 | require('./lib/run').help(); 29 | 30 | // Do some basic argument parsing 31 | var runOpts = nopt({ 32 | 'verbose' : Boolean, 33 | 'silent' : Boolean, 34 | 'debug' : Boolean, 35 | 'release' : Boolean, 36 | 'nobuild': Boolean, 37 | 'buildConfig' : path, 38 | 'archs' : String, 39 | 'device' : Boolean, 40 | 'emulator': Boolean, 41 | 'target' : String 42 | }, { 'd' : '--verbose' }); 43 | 44 | // Make runOptions compatible with PlatformApi run method spec 45 | runOpts.argv = runOpts.argv.remain; 46 | 47 | require('./loggingHelper').adjustLoggerLevel(runOpts); 48 | 49 | new Api().run(runOpts) 50 | .catch(function(err) { 51 | console.error(err, err.stack); 52 | process.exit(2); 53 | }); 54 | -------------------------------------------------------------------------------- /platforms/android/cordova/run.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0run" 20 | IF EXIST %script_path% ( 21 | node %script_path% %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'run' script in 'cordova' folder, aborting...>&2 25 | EXIT /B 1 26 | ) -------------------------------------------------------------------------------- /platforms/android/cordova/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 = "6.1.2"; 24 | 25 | module.exports.version = VERSION; 26 | 27 | if (!module.parent) { 28 | console.log(VERSION); 29 | } 30 | -------------------------------------------------------------------------------- /platforms/android/cordova/version.bat: -------------------------------------------------------------------------------- 1 | :: Licensed to the Apache Software Foundation (ASF) under one 2 | :: or more contributor license agreements. See the NOTICE file 3 | :: distributed with this work for additional information 4 | :: regarding copyright ownership. The ASF licenses this file 5 | :: to you under the Apache License, Version 2.0 (the 6 | :: "License"); you may not use this file except in compliance 7 | :: with the License. You may obtain a copy of the License at 8 | :: 9 | :: http://www.apache.org/licenses/LICENSE-2.0 10 | :: 11 | :: Unless required by applicable law or agreed to in writing, 12 | :: software distributed under the License is distributed on an 13 | :: "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | :: KIND, either express or implied. See the License for the 15 | :: specific language governing permissions and limitations 16 | :: under the License. 17 | 18 | @ECHO OFF 19 | SET script_path="%~dp0version" 20 | IF EXIST %script_path% ( 21 | node %script_path% %* 22 | ) ELSE ( 23 | ECHO. 24 | ECHO ERROR: Could not find 'version' script in 'cordova' folder, aborting...>&2 25 | EXIT /B 1 26 | ) 27 | -------------------------------------------------------------------------------- /platforms/android/platform_www/cordova-js-src/android/nativeapiprovider.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 | 20 | /** 21 | * Exports the ExposedJsApi.java object if available, otherwise exports the PromptBasedNativeApi. 22 | */ 23 | 24 | var nativeApi = this._cordovaNative || require('cordova/android/promptbasednativeapi'); 25 | var currentApi = nativeApi; 26 | 27 | module.exports = { 28 | get: function() { return currentApi; }, 29 | setPreferPrompt: function(value) { 30 | currentApi = value ? require('cordova/android/promptbasednativeapi') : nativeApi; 31 | }, 32 | // Used only by tests. 33 | set: function(value) { 34 | currentApi = value; 35 | } 36 | }; 37 | -------------------------------------------------------------------------------- /platforms/android/platform_www/cordova-js-src/android/promptbasednativeapi.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 | 20 | /** 21 | * Implements the API of ExposedJsApi.java, but uses prompt() to communicate. 22 | * This is used pre-JellyBean, where addJavascriptInterface() is disabled. 23 | */ 24 | 25 | module.exports = { 26 | exec: function(bridgeSecret, service, action, callbackId, argsJson) { 27 | return prompt(argsJson, 'gap:'+JSON.stringify([bridgeSecret, service, action, callbackId])); 28 | }, 29 | setNativeToJsBridgeMode: function(bridgeSecret, value) { 30 | prompt(value, 'gap_bridge_mode:' + bridgeSecret); 31 | }, 32 | retrieveJsMessages: function(bridgeSecret, fromOnlineEvent) { 33 | return prompt(+fromOnlineEvent, 'gap_poll:' + bridgeSecret); 34 | } 35 | }; 36 | -------------------------------------------------------------------------------- /platforms/android/platform_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 | "cordova-plugin-whitelist": "1.3.1" 7 | }; 8 | // BOTTOM OF METADATA 9 | }); -------------------------------------------------------------------------------- /platforms/android/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | # Project target. 13 | target=android-25 14 | android.library.reference.1=CordovaLib 15 | -------------------------------------------------------------------------------- /platforms/android/res/drawable-land-hdpi/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/res/drawable-land-hdpi/screen.png -------------------------------------------------------------------------------- /platforms/android/res/drawable-land-ldpi/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/res/drawable-land-ldpi/screen.png -------------------------------------------------------------------------------- /platforms/android/res/drawable-land-mdpi/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/res/drawable-land-mdpi/screen.png -------------------------------------------------------------------------------- /platforms/android/res/drawable-land-xhdpi/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/res/drawable-land-xhdpi/screen.png -------------------------------------------------------------------------------- /platforms/android/res/drawable-port-hdpi/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/res/drawable-port-hdpi/screen.png -------------------------------------------------------------------------------- /platforms/android/res/drawable-port-ldpi/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/res/drawable-port-ldpi/screen.png -------------------------------------------------------------------------------- /platforms/android/res/drawable-port-mdpi/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/res/drawable-port-mdpi/screen.png -------------------------------------------------------------------------------- /platforms/android/res/drawable-port-xhdpi/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/res/drawable-port-xhdpi/screen.png -------------------------------------------------------------------------------- /platforms/android/res/mipmap-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/res/mipmap-hdpi/icon.png -------------------------------------------------------------------------------- /platforms/android/res/mipmap-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/res/mipmap-ldpi/icon.png -------------------------------------------------------------------------------- /platforms/android/res/mipmap-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/res/mipmap-mdpi/icon.png -------------------------------------------------------------------------------- /platforms/android/res/mipmap-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/platforms/android/res/mipmap-xhdpi/icon.png -------------------------------------------------------------------------------- /platforms/android/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Cordovue 4 | @string/app_name 5 | @string/launcher_name 6 | 7 | -------------------------------------------------------------------------------- /platforms/android/res/xml/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Cordovue 8 | 9 | A sample Apache Cordova application using VueJS. 10 | 11 | 12 | Gabriel Cueto - @Mushr00m_Dev 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /platforms/android/settings.gradle: -------------------------------------------------------------------------------- 1 | // GENERATED FILE - DO NOT EDIT 2 | include ":" 3 | include ":CordovaLib" 4 | -------------------------------------------------------------------------------- /platforms/android/src/com/laesporadelhongo/cordovue/MainActivity.java: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | package com.laesporadelhongo.cordovue; 21 | 22 | import android.os.Bundle; 23 | import org.apache.cordova.*; 24 | 25 | public class MainActivity extends CordovaActivity 26 | { 27 | @Override 28 | public void onCreate(Bundle savedInstanceState) 29 | { 30 | super.onCreate(savedInstanceState); 31 | 32 | // enable Cordova apps to be started in the background 33 | Bundle extras = getIntent().getExtras(); 34 | if (extras != null && extras.getBoolean("cdvStartInBackground", false)) { 35 | moveTaskToBack(true); 36 | } 37 | 38 | // Set by in config.xml 39 | loadUrl(launchUrl); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /platforms/platforms.json: -------------------------------------------------------------------------------- 1 | { 2 | "android": "6.1.2" 3 | } -------------------------------------------------------------------------------- /plugins/android.json: -------------------------------------------------------------------------------- 1 | { 2 | "prepare_queue": { 3 | "installed": [], 4 | "uninstalled": [] 5 | }, 6 | "config_munge": { 7 | "files": {} 8 | }, 9 | "installed_plugins": { 10 | "cordova-plugin-whitelist": { 11 | "PACKAGE_NAME": "com.laesporadelhongo.testcordovavuewebpack" 12 | } 13 | }, 14 | "dependent_plugins": {} 15 | } -------------------------------------------------------------------------------- /plugins/cordova-plugin-whitelist/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | # Contributing to Apache Cordova 23 | 24 | Anyone can contribute to Cordova. And we need your contributions. 25 | 26 | There are multiple ways to contribute: report bugs, improve the docs, and 27 | contribute code. 28 | 29 | For instructions on this, start with the 30 | [contribution overview](http://cordova.apache.org/contribute/). 31 | 32 | The details are explained there, but the important items are: 33 | - Sign and submit an Apache ICLA (Contributor License Agreement). 34 | - Have a Jira issue open that corresponds to your contribution. 35 | - Run the tests so your patch doesn't break existing functionality. 36 | 37 | We look forward to your contributions! 38 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-whitelist/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Cordova 2 | Copyright 2012 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-whitelist/RELEASENOTES.md: -------------------------------------------------------------------------------- 1 | 21 | # Release Notes 22 | 23 | ### 1.3.1 (Dec 07, 2016) 24 | * [CB-11917](https://issues.apache.org/jira/browse/CB-11917) - Remove pull request template checklist item: "iCLA has been submitted…" 25 | * Edit package.json license to match SPDX id 26 | * [CB-11832](https://issues.apache.org/jira/browse/CB-11832) Incremented plugin version. 27 | 28 | ### 1.3.0 (Sep 08, 2016) 29 | * [CB-11795](https://issues.apache.org/jira/browse/CB-11795) Add 'protective' entry to cordovaDependencies 30 | * Updated installation section 31 | * Plugin uses `Android Log class` and not `Cordova LOG class` 32 | * Add pull request template. 33 | * [CB-10866](https://issues.apache.org/jira/browse/CB-10866) Adding engine info to `package.json` 34 | * [CB-10996](https://issues.apache.org/jira/browse/CB-10996) Adding front matter to README.md 35 | 36 | ### 1.2.2 (Apr 15, 2016) 37 | * add note about redirects 38 | * [CB-10624](https://issues.apache.org/jira/browse/CB-10624) remove error message from `whitelist.js`, which leaves it empty 39 | 40 | ### 1.2.1 (Jan 15, 2016) 41 | * [CB-10194](https://issues.apache.org/jira/browse/CB-10194) info tag prints for ios when not applicable 42 | 43 | ### 1.2.0 (Nov 18, 2015) 44 | * removed **iOS** engine check from `plugin.xml` 45 | * [CB-10035](https://issues.apache.org/jira/browse/CB-10035) Updated `RELEASENOTES` to be newest to oldest 46 | * [CB-9972](https://issues.apache.org/jira/browse/CB-9972) - Remove **iOS** whitelist 47 | * Updated the text, it should read 4.0.x and greater, since this plugin will be required for `cordova-android 5.0` 48 | * Fixing contribute link. 49 | * Updated `plugin.xml ` tag to remove warning about not needing this plugin if you are using the **iOS 9 SDK** 50 | * [CB-9738](https://issues.apache.org/jira/browse/CB-9738) - Disable whitelist use when runtime environment is **iOS 9** 51 | * [CB-9740](https://issues.apache.org/jira/browse/CB-9740) - Add `` tag describing whitelist plugin not needed on `cordova-ios` and cordova-android 3.x` 52 | * [CB-9568](https://issues.apache.org/jira/browse/CB-9568) - Update whitelist plugin to allow all network access by default 53 | * [CB-9337](https://issues.apache.org/jira/browse/CB-9337) - enable use of `` tags for native code network requests 54 | 55 | ### 1.1.0 (Jun 17, 2015) 56 | * [CB-9128](https://issues.apache.org/jira/browse/CB-9128) cordova-plugin-whitelist documentation translation: cordova-plugin-whitelist 57 | * fix npm md issue 58 | * Usage of CDVURLRequestFilter protocol. 59 | * [CB-9089](https://issues.apache.org/jira/browse/CB-9089) - iOS whitelist plugin does not compile 60 | * [CB-9090](https://issues.apache.org/jira/browse/CB-9090) - Enable whitelist plugin for cordova-ios 4.0.0 61 | * Fixed error in Content-Security-Policy example 62 | 63 | ### 1.0.0 (Mar 25, 2015) 64 | * [CB-8739](https://issues.apache.org/jira/browse/CB-8739) added missing license headers 65 | * Add @Override to CustomConfigXmlParser methods 66 | * Change ID to cordova-plugin-whitelist rather than reverse-DNS-style 67 | * Tweak CSP examples in README 68 | * [CB-8660](https://issues.apache.org/jira/browse/CB-8660) remove extra commas from package.json 69 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-whitelist/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-whitelist", 3 | "version": "1.3.1", 4 | "description": "Cordova Whitelist Plugin", 5 | "cordova": { 6 | "platforms": [ 7 | "android" 8 | ] 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/apache/cordova-plugin-whitelist" 13 | }, 14 | "keywords": [ 15 | "cordova", 16 | "whitelist", 17 | "ecosystem:cordova", 18 | "cordova-android" 19 | ], 20 | "engines": { 21 | "cordovaDependencies": { 22 | "0.0.0": { 23 | "cordova-android": ">=4.0.0" 24 | }, 25 | "2.0.0": { 26 | "cordova": ">100" 27 | } 28 | } 29 | }, 30 | "author": "Apache Software Foundation", 31 | "license": "Apache-2.0" 32 | } 33 | -------------------------------------------------------------------------------- /plugins/cordova-plugin-whitelist/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | Whitelist 25 | Cordova Network Whitelist Plugin 26 | Apache 2.0 27 | cordova,whitelist,policy 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in. 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /plugins/fetch.json: -------------------------------------------------------------------------------- 1 | { 2 | "cordova-plugin-whitelist": { 3 | "source": { 4 | "type": "registry", 5 | "id": "cordova-plugin-whitelist@1" 6 | }, 7 | "is_top_level": true, 8 | "variables": {} 9 | } 10 | } -------------------------------------------------------------------------------- /preview1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/preview1.png -------------------------------------------------------------------------------- /preview2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/preview2.png -------------------------------------------------------------------------------- /vue-loader.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | // extractCSS: process.env.NODE_ENV === 'production', 3 | preserveWhitespace: false, 4 | postcss: [ 5 | require('autoprefixer')({ 6 | browsers: ['last 3 versions'] 7 | }) 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /webpack.base.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path') 2 | const webpack = require('webpack') 3 | const vueConfig = require('./vue-loader.config') 4 | const autoprefixer = require('autoprefixer'); 5 | const ExtractTextPlugin = require('extract-text-webpack-plugin') 6 | const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin') 7 | 8 | const isProd = process.env.NODE_ENV === 'production' 9 | 10 | module.exports = { 11 | devtool: isProd 12 | ? false 13 | : '#cheap-module-source-map', 14 | output: { 15 | path: path.resolve(__dirname, './www/dist'), 16 | publicPath: '/www/dist', 17 | filename: 'build.js' 18 | }, 19 | resolve: { 20 | alias: { 21 | 'public': path.resolve(__dirname, '../public'), 22 | }, 23 | }, 24 | module: { 25 | noParse: /es6-promise\.js$/, // avoid webpack shimming process 26 | rules: [ 27 | { 28 | test: /\.js$/, 29 | exclude: /node_modules/, 30 | use: 'babel-loader', 31 | }, 32 | { 33 | test: /\.vue$/, 34 | loader: 'vue-loader', 35 | options: vueConfig 36 | }, 37 | { 38 | test: /\.(png|jpg|gif|svg)$/, 39 | loader: 'url-loader', 40 | options: { 41 | limit: 10000, 42 | name: '[name].[ext]?[hash]' 43 | } 44 | }, 45 | { 46 | test: /\.css$/, 47 | use: isProd 48 | ? ExtractTextPlugin.extract({ 49 | use: 'css-loader?minimize', 50 | fallback: 'vue-style-loader' 51 | }) 52 | : ['vue-style-loader', 'css-loader'] 53 | } 54 | ] 55 | }, 56 | performance: { 57 | maxEntrypointSize: 300000, 58 | hints: isProd ? 'warning' : false 59 | }, 60 | plugins: isProd 61 | ? [ 62 | new webpack.optimize.UglifyJsPlugin({ 63 | compress: { warnings: false } 64 | }), 65 | new ExtractTextPlugin({ 66 | filename: 'common.[chunkhash].css' 67 | }) 68 | ] 69 | : [ 70 | new FriendlyErrorsPlugin() 71 | ] 72 | } 73 | -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path') 2 | const webpack = require('webpack') 3 | const vueConfig = require('./vue-loader.config') 4 | const autoprefixer = require('autoprefixer'); 5 | // const ExtractTextPlugin = require('extract-text-webpack-plugin') 6 | const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin') 7 | 8 | const isProd = process.env.NODE_ENV === 'production' 9 | 10 | module.exports = { 11 | devtool: isProd 12 | ? false 13 | : '#cheap-module-source-map', 14 | entry: './www/src/main.js', 15 | output: { 16 | path: path.resolve(__dirname, './www/dist'), 17 | publicPath: isProd ? '/www/dist' : '/dist', 18 | filename: 'build.js' 19 | }, 20 | resolve: { 21 | alias: { 22 | 'public': path.resolve(__dirname, '../public'), 23 | }, 24 | }, 25 | module: { 26 | noParse: /es6-promise\.js$/, // avoid webpack shimming process 27 | rules: [ 28 | { 29 | test: /\.js$/, 30 | exclude: /node_modules/, 31 | use: 'babel-loader', 32 | }, 33 | { 34 | test: /\.vue$/, 35 | loader: 'vue-loader', 36 | options: vueConfig 37 | }, 38 | { 39 | enforce: 'pre', 40 | test: /\.(js|vue)$/, 41 | loader: 'eslint-loader', 42 | exclude: /(node_modules)/ 43 | }, 44 | { 45 | test: /\.(png|jpg|gif|svg)$/, 46 | loader: 'url-loader', 47 | options: { 48 | limit: 10000, 49 | name: '[name].[ext]?[hash]' 50 | } 51 | }, 52 | { 53 | test: /\.css$/, 54 | use: /* isProd 55 | ? ExtractTextPlugin.extract({ 56 | use: 'css-loader?minimize', 57 | fallback: 'vue-style-loader' 58 | }) 59 | : */ ['vue-style-loader', 'css-loader'] 60 | } 61 | ] 62 | }, 63 | performance: { 64 | maxEntrypointSize: 300000, 65 | hints: isProd ? 'warning' : false 66 | }, 67 | plugins: isProd 68 | ? [ 69 | new webpack.optimize.UglifyJsPlugin({ 70 | compress: { warnings: false } 71 | }), 72 | /* new ExtractTextPlugin({ 73 | filename: 'common.[chunkhash].css' 74 | }), */ 75 | /*new webpack.LoaderOptionsPlugin({ 76 | minimize: true 77 | })*/ 78 | ] 79 | : [ 80 | new FriendlyErrorsPlugin() 81 | ] 82 | } 83 | 84 | -------------------------------------------------------------------------------- /www/dist/css/index.css: -------------------------------------------------------------------------------- 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 | -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */ 21 | } 22 | 23 | body { 24 | -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */ 25 | -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */ 26 | -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */ 27 | background-color:#E4E4E4; 28 | background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); 29 | background-image:-webkit-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); 30 | background-image:-ms-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); 31 | background-image:-webkit-gradient( 32 | linear, 33 | left top, 34 | left bottom, 35 | color-stop(0, #A7A7A7), 36 | color-stop(0.51, #E4E4E4) 37 | ); 38 | background-attachment:fixed; 39 | font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif; 40 | font-size:12px; 41 | height:100%; 42 | margin:0px; 43 | padding:0px; 44 | text-transform:uppercase; 45 | width:100%; 46 | } 47 | 48 | /* Portrait layout (default) */ 49 | .app { 50 | background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */ 51 | position:absolute; /* position in the center of the screen */ 52 | left:50%; 53 | top:25%; 54 | height:100px; /* text area height */ 55 | width:225px; /* text area width */ 56 | text-align:center; 57 | padding:180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */ 58 | margin:-115px 0px 0px -112px; /* offset vertical: half of image height and text area height */ 59 | /* offset horizontal: half of text area width */ 60 | } 61 | 62 | /* Landscape layout (with min-width) */ 63 | @media screen and (min-aspect-ratio: 1/1) and (min-width:400px) { 64 | .app { 65 | background-position:left center; 66 | padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */ 67 | margin:-90px 0px 0px -198px; /* offset vertical: half of image height */ 68 | /* offset horizontal: half of image width and text area width */ 69 | } 70 | } 71 | 72 | h1 { 73 | font-size:24px; 74 | font-weight:normal; 75 | margin:0px; 76 | overflow:visible; 77 | padding:0px; 78 | text-align:center; 79 | } 80 | 81 | h1 { 82 | font-size:16px; 83 | font-weight:normal; 84 | margin:0px; 85 | overflow:visible; 86 | padding:0px; 87 | text-align:center; 88 | } 89 | 90 | .event { 91 | border-radius:4px; 92 | -webkit-border-radius:4px; 93 | color:#FFFFFF; 94 | font-size:12px; 95 | margin:0px 30px; 96 | padding:2px 0px; 97 | } 98 | 99 | .event.listening { 100 | background-color:#333333; 101 | display:block; 102 | } 103 | 104 | .event.received { 105 | background-color:#4B946A; 106 | display:none; 107 | } 108 | 109 | @keyframes fade { 110 | from { opacity: 1.0; } 111 | 50% { opacity: 0.4; } 112 | to { opacity: 1.0; } 113 | } 114 | 115 | @-webkit-keyframes fade { 116 | from { opacity: 1.0; } 117 | 50% { opacity: 0.4; } 118 | to { opacity: 1.0; } 119 | } 120 | 121 | .blink { 122 | animation:fade 3000ms infinite; 123 | -webkit-animation:fade 3000ms infinite; 124 | } 125 | -------------------------------------------------------------------------------- /www/dist/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMushrr00m/cordovue/9de620bc8c6bc7f90f8ad1ecc100e86551911a6f/www/dist/img/logo.png -------------------------------------------------------------------------------- /www/index.html: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 22 | 31 | 32 | 33 | 34 | 35 | 36 | Cordova + VueJS + Webpack 37 | 38 | 39 |
40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /www/src/App.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 14 | 15 | 23 | -------------------------------------------------------------------------------- /www/src/Cordova.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 | export default { 20 | // Application Constructor 21 | initialize () { 22 | document.addEventListener('deviceready', this.onDeviceReady.bind(this), false) 23 | }, 24 | 25 | /* deviceready Event Handler 26 | // 27 | // Bind any cordova events here. Common events are: 28 | // 'pause', 'resume', etc. 29 | */ 30 | onDeviceReady () { 31 | this.receivedEvent('deviceready') 32 | }, 33 | 34 | // Update DOM on a Received Event 35 | receivedEvent (id) { 36 | const parentElement = document.getElementById(id) 37 | const listeningElement = parentElement.querySelector('.listening') 38 | const receivedElement = parentElement.querySelector('.received') 39 | 40 | listeningElement.setAttribute('style', 'display:none;') 41 | receivedElement.setAttribute('style', 'display:block;') 42 | 43 | console.log('Received Event: ' + id) 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /www/src/main.js: -------------------------------------------------------------------------------- 1 | import 'babel-polyfill' 2 | import Vue from 'vue' 3 | import App from './App.vue' 4 | import Cordova from './Cordova.js' 5 | 6 | import store from './store' 7 | import router from './router' 8 | import { sync } from 'vuex-router-sync' 9 | 10 | sync(store, router) 11 | 12 | // Load Vue instance 13 | export default new Vue({ 14 | router, 15 | store, 16 | el: '#app', 17 | render: h => h(App), 18 | mounted () { 19 | Cordova.initialize() 20 | } 21 | }) 22 | -------------------------------------------------------------------------------- /www/src/router/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Router from 'vue-router' 3 | 4 | // const Foo = resolve => require(['../views/hello.vue'], resolve); 5 | // import hello from '../views/hello.vue'; 6 | 7 | import main from '../views/main.vue' 8 | import about from '../views/about.vue' 9 | 10 | Vue.use(Router) 11 | 12 | export default new Router({ 13 | mode: 'hash', 14 | scrollBehavior: () => ({ y: 0 }), 15 | routes: [ 16 | { name: 'home', path: '/', component: main }, 17 | { name: 'about', path: '/about', component: about } 18 | ] 19 | }) 20 | -------------------------------------------------------------------------------- /www/src/store/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Vuex from 'vuex' 3 | 4 | Vue.use(Vuex) 5 | 6 | const state = { 7 | msg: 'hello from Vuex' 8 | } 9 | 10 | const modules = { } 11 | const mutations = { } 12 | const getters = { } 13 | const actions = { } 14 | 15 | export default new Vuex.Store({ 16 | state, 17 | modules, 18 | mutations, 19 | getters, 20 | actions 21 | }) 22 | -------------------------------------------------------------------------------- /www/src/views/about.vue: -------------------------------------------------------------------------------- 1 | 13 | 18 | -------------------------------------------------------------------------------- /www/src/views/main.vue: -------------------------------------------------------------------------------- 1 | 14 | 19 | --------------------------------------------------------------------------------