├── .appveyor.yml ├── .asf.yaml ├── .eslintrc.yml ├── .gitattributes ├── .github ├── ISSUE_TEMPLATE.md ├── ISSUE_TEMPLATE │ ├── BUG_REPORT.md │ ├── FEATURE_REQUEST.md │ └── SUPPORT_QUESTION.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .npmignore ├── .travis.yml ├── CONTRIBUTING.md ├── LICENSE ├── NOTICE ├── README.md ├── RELEASENOTES.md ├── package-lock.json ├── package.json ├── plugin.xml ├── src ├── ios │ ├── CDVWKProcessPoolFactory.h │ ├── CDVWKProcessPoolFactory.m │ ├── CDVWKWebViewEngine.h │ ├── CDVWKWebViewEngine.m │ ├── CDVWKWebViewUIDelegate.h │ └── CDVWKWebViewUIDelegate.m └── www │ └── ios │ ├── ios-wkwebview-exec.js │ └── ios-wkwebview.js └── tests ├── ios ├── CDVWKWebViewEngineTest.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── CDVWKWebViewEngineTest.xccheckout │ │ └── xcschemes │ │ └── CordovaLib.xcscheme ├── CDVWKWebViewEngineTest │ ├── .gitignore │ ├── CDVWKWebViewEngineLibTests │ │ ├── CDVWKWebViewEngineTest.m │ │ └── Info.plist │ └── CDVWKWebViewEngineTest.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── CDVWKWebViewEngineTest.xccheckout │ │ └── xcshareddata │ │ └── xcschemes │ │ ├── CDVWKWebViewEngineLib.xcscheme │ │ └── CDVWKWebViewEngineLibTests.xcscheme ├── README.md ├── package.json └── test.xcconfig ├── package.json ├── plugin.xml └── tests.js /.appveyor.yml: -------------------------------------------------------------------------------- 1 | # appveyor file 2 | # http://www.appveyor.com/docs/appveyor-yml 3 | 4 | max_jobs: 1 5 | 6 | shallow_clone: true 7 | 8 | init: 9 | - git config --global core.autocrlf true 10 | 11 | image: 12 | - Visual Studio 2017 13 | 14 | environment: 15 | matrix: 16 | - nodejs_version: "10" 17 | - nodejs_version: "12" 18 | 19 | platform: 20 | - x86 21 | - x64 22 | 23 | install: 24 | - ps: Install-Product node $env:nodejs_version 25 | - node --version 26 | - npm install -g cordova-paramedic@https://github.com/apache/cordova-paramedic.git 27 | - npm install -g cordova 28 | 29 | build: "off" 30 | 31 | test_script: 32 | - cordova-paramedic --config pr\windows-10-store --plugin . --justBuild 33 | -------------------------------------------------------------------------------- /.asf.yaml: -------------------------------------------------------------------------------- 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 | notifications: 19 | commits: commits@cordova.apache.org 20 | issues: issues@cordova.apache.org 21 | pullrequests_status: issues@cordova.apache.org 22 | pullrequests_comment: issues@cordova.apache.org 23 | -------------------------------------------------------------------------------- /.eslintrc.yml: -------------------------------------------------------------------------------- 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 | root: true 19 | extends: "@cordova/eslint-config/browser" 20 | 21 | overrides: 22 | - files: [tests/**/*.js] 23 | extends: "@cordova/eslint-config/node-tests" 24 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text eol=lf -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 5 | 6 | ### Issue Type 7 | 8 | 9 | - [ ] Bug Report 10 | - [ ] Feature Request 11 | - [ ] Support Question 12 | 13 | ## Description 14 | 15 | ## Information 16 | 17 | 18 | ### Command or Code 19 | 20 | 21 | ### Environment, Platform, Device 22 | 23 | 24 | 25 | 26 | ### Version information 27 | 34 | 35 | 36 | 37 | ## Checklist 38 | 39 | 40 | - [ ] I searched for already existing GitHub issues about this 41 | - [ ] I updated all Cordova tooling to their most recent version 42 | - [ ] I included all the necessary information above 43 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/BUG_REPORT.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 🐛 Bug Report 3 | about: If something isn't working as expected. 4 | 5 | --- 6 | 7 | # Bug Report 8 | 9 | ## Problem 10 | 11 | ### What is expected to happen? 12 | 13 | 14 | 15 | ### What does actually happen? 16 | 17 | 18 | 19 | ## Information 20 | 21 | 22 | 23 | 24 | ### Command or Code 25 | 26 | 27 | 28 | 29 | ### Environment, Platform, Device 30 | 31 | 32 | 33 | 34 | ### Version information 35 | 42 | 43 | 44 | 45 | ## Checklist 46 | 47 | 48 | - [ ] I searched for existing GitHub issues 49 | - [ ] I updated all Cordova tooling to most recent version 50 | - [ ] I included all the necessary information above 51 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 🚀 Feature Request 3 | about: A suggestion for a new functionality 4 | 5 | --- 6 | 7 | # Feature Request 8 | 9 | ## Motivation Behind Feature 10 | 11 | 12 | 13 | 14 | ## Feature Description 15 | 20 | 21 | 22 | 23 | ## Alternatives or Workarounds 24 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/SUPPORT_QUESTION.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 💬 Support Question 3 | about: If you have a question, please check out our Slack or StackOverflow! 4 | 5 | --- 6 | 7 | 8 | 9 | Apache Cordova uses GitHub Issues as a feature request and bug tracker _only_. 10 | For usage and support questions, please check out the resources below. Thanks! 11 | 12 | --- 13 | 14 | You can get answers to your usage and support questions about **Apache Cordova** on: 15 | 16 | * Slack Community Chat: https://cordova.slack.com (you can sign-up at http://slack.cordova.io/) 17 | * StackOverflow: https://stackoverflow.com/questions/tagged/cordova using the tag `cordova` 18 | 19 | --- 20 | 21 | If you are using a tool that uses Cordova internally, like e.g. Ionic, check their support channels: 22 | 23 | * **Ionic Framework** 24 | * [Ionic Community Forum](https://forum.ionicframework.com/) 25 | * [Ionic Worldwide Slack](https://ionicworldwide.herokuapp.com/) 26 | * **PhoneGap** 27 | * [PhoneGap Developer Community](https://forums.adobe.com/community/phonegap) 28 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 8 | 9 | ### Platforms affected 10 | 11 | 12 | 13 | ### Motivation and Context 14 | 15 | 16 | 17 | 18 | 19 | ### Description 20 | 21 | 22 | 23 | 24 | ### Testing 25 | 26 | 27 | 28 | 29 | ### Checklist 30 | 31 | - [ ] I've run the tests to see all new and existing tests pass 32 | - [ ] I added automated test coverage as appropriate for this change 33 | - [ ] Commit is prefixed with `(platform)` if this change only applies to one platform (e.g. `(android)`) 34 | - [ ] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct [keyword to close issues using keywords](https://help.github.com/articles/closing-issues-using-keywords/)) 35 | - [ ] I've updated the documentation if necessary 36 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | #If ignorance is bliss, then somebody knock the smile off my face 2 | 3 | *.csproj.user 4 | *.suo 5 | *.cache 6 | Thumbs.db 7 | *.DS_Store 8 | 9 | *.bak 10 | *.cache 11 | *.log 12 | *.swp 13 | *.user 14 | 15 | node_modules 16 | xcuserdata 17 | 18 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | .* 2 | appveyor.yml 3 | tests 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # This Travis configuration file is built after a Cordova Paramedic 2 | # specific template with minimal modifications and adaptations: 3 | # https://github.com/apache/cordova-paramedic/blob/master/.travis.yml 4 | 5 | sudo: false 6 | 7 | addons: 8 | jwt: 9 | # SAUCE_ACCESS_KEY 10 | secure: rjC2avwYWiw+oTHleXcJPlehTA2j0jRZj+UJHq7fRCJRYIsraKy2j9q3fOSjWR7MEvf+/hUwhmf4gFk2zrDukbc0x3rMdt47BwNtbpCTN05KbHebl5AH0xx0ZPkJ5N0tJqG2t4Bl9wqNRINOMES77Souduh4udQdtGfA9IBmhb0FPNHmW0J++essbNjd5b5MgitqgTi30x7Tvf9QYMmsTKpN8pdfbE29dgqiY/HTKbxyOU+X2Ed5mcMi/bGhSGU78JU3u91S0VA+w+bmNZIU4VeXEFbDkjIboPR41aIbsfHrk/41+k6BAcOurKJ1TxBNEVxL8ouZfAuPDWhJVABxdbtYAiem309nuUJ0fR05qtX9AO1mmMh+0xByyme2xjSjTvt6bzZLNm2EdS6dO5FmG8aBVX4JJCHkTM5wrA5MgRFbEcgfv5jp3ynvY7dNasfaOLFa+IxZ5qzPdzkXnTEwvwe7ioo5phMGbpefFrimDl/vy1QJdTTCUcvaXkqumQdJwaySYDq3Nsns10yDPEATI1NtZGHLbUM+W+ZOaoTZRKwRelLHF5oyOQnyIu2HzBfJS7pHlIbQaxtigWHuSWuee+sfmTPjj40y4uUqQAEDxmawKb6Y6xqQr+QpvI9pvpzeZYHdApNBe6mPDVh4hwgjlFhE3/iusnU+aeZHIUJEmME= 11 | 12 | env: 13 | global: 14 | - SAUCE_USERNAME=snay 15 | - TRAVIS_NODE_VERSION=12 16 | 17 | language: node_js 18 | node_js: 12 19 | 20 | # yaml anchor/alias: https://medium.com/@tommyvn/travis-yml-dry-with-anchors-8b6a3ac1b027 21 | 22 | _ios: &_ios 23 | os: osx 24 | osx_image: xcode10.3 25 | 26 | matrix: 27 | include: 28 | # additional `npm test` in directory 29 | - env: ADDITIONAL_TESTS_DIR=./tests/ios 30 | <<: *_ios 31 | 32 | # many tests with saucelabs 33 | - env: PLATFORM=ios-11.3 34 | <<: *_ios 35 | - env: PLATFORM=ios-12.0 36 | <<: *_ios 37 | - env: PLATFORM=ios-12.2 38 | <<: *_ios 39 | 40 | before_install: 41 | # manually install Node for `language: android` 42 | - if [[ "$PLATFORM" =~ android ]]; then nvm install $TRAVIS_NODE_VERSION; fi 43 | - node --version 44 | - if [[ "$PLATFORM" =~ android ]]; then gradle --version; fi 45 | - if [[ "$PLATFORM" =~ ios ]]; then npm install -g ios-deploy; fi 46 | - npm install -g cordova 47 | # install paramedic if not running on paramedic repo 48 | - if ! [[ "$TRAVIS_REPO_SLUG" =~ cordova-paramedic ]]; then npm install -g github:apache/cordova-paramedic; fi 49 | 50 | install: 51 | - npm install 52 | 53 | before_script: 54 | - | 55 | if [[ "$TRAVIS_REPO_SLUG" =~ cordova-paramedic ]]; then 56 | # when used in the cordova-paramedic repo 57 | TEST_COMMAND="npm run eslint" 58 | PARAMEDIC_PLUGIN_TO_TEST="./spec/testable-plugin/" 59 | PARAMEDIC_COMMAND="node main.js" 60 | else 61 | # when used in any other (plugin) repo 62 | TEST_COMMAND="npm test" 63 | PARAMEDIC_PLUGIN_TO_TEST=$(pwd) 64 | PARAMEDIC_COMMAND="cordova-paramedic" 65 | fi 66 | - PARAMEDIC_BUILDNAME=travis-$TRAVIS_REPO_SLUG-$TRAVIS_JOB_NUMBER 67 | - | 68 | echo "Variables now are set to:" 69 | echo "TEST_COMMAND=$TEST_COMMAND" 70 | echo "ADDITIONAL_TESTS=$ADDITIONAL_TESTS" 71 | echo "PARAMEDIC_COMMAND=$PARAMEDIC_COMMAND" 72 | echo "PLATFORM=$PLATFORM" 73 | echo "PARAMEDIC_PLUGIN_TO_TEST=$PARAMEDIC_PLUGIN_TO_TEST" 74 | echo "PARAMEDIC_BUILDNAME=$PARAMEDIC_BUILDNAME" 75 | script: 76 | - $TEST_COMMAND 77 | - | 78 | if [[ "$ADDITIONAL_TESTS_DIR" != "" ]]; then 79 | cd $ADDITIONAL_TESTS_DIR && npm install && npm test; 80 | else 81 | $PARAMEDIC_COMMAND --config ./pr/$PLATFORM --plugin $PARAMEDIC_PLUGIN_TO_TEST --buildName $PARAMEDIC_BUILDNAME; 82 | fi 83 | -------------------------------------------------------------------------------- /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 | - Check for Github issues that corresponds to your contribution and link or create them if necessary. 34 | - Run the tests so your patch doesn't break existing functionality. 35 | 36 | We look forward to your contributions! 37 | 38 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Apache Cordova 2 | Copyright 2015 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | |AppVeyor|Travis CI| 21 | |:-:|:-:| 22 | |[![Build status](https://ci.appveyor.com/api/projects/status/github/apache/cordova-plugin-wkwebview-engine?branch=master)](https://ci.appveyor.com/project/ApacheSoftwareFoundation/cordova-plugin-wkwebview-engine)|[![Build Status](https://travis-ci.org/apache/cordova-plugin-wkwebview-engine.svg?branch=master)](https://travis-ci.org/apache/cordova-plugin-wkwebview-engine)| 23 | 24 | Cordova WKWebView Engine 25 | ====== 26 | 27 | This plugin makes `Cordova` use the `WKWebView` component instead of the default `UIWebView` component, and is installable only on a system with the iOS 9.0 SDK. 28 | 29 | In iOS 9, Apple has fixed the [issue](http://www.openradar.me/18039024) present through iOS 8 where you cannot load locale files using file://, and must resort to using a local webserver. **However, you are still not able to use XHR from the file:// protocol without [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS) enabled on your server.** 30 | 31 | ### Deprecation Notice 32 | 33 | This plugin is now deprecated as it's implementation has been moved to `cordova-ios` platform making this plugin redundent. When migrating to `cordova-ios@6`, you should remove this plugin. 34 | 35 | This plugin should still work as is on `cordova-ios@5.1.1` for the foreseeable future, however it is recommended to remove this plugin and upgrade to `cordova-ios@6` or later. 36 | 37 | Installation 38 | ----------- 39 | 40 | This plugin needs cordova-ios 4.0.0 - 5.x. This plugin is not supported on cordova-ios >6.0.0. 41 | 42 | To install the current release: 43 | 44 | cordova create wkwvtest my.project.id wkwvtest 45 | cd wkwvtest 46 | cordova platform add ios@4 47 | cordova plugin add cordova-plugin-wkwebview-engine 48 | 49 | To test the development version: 50 | 51 | cordova create wkwvtest my.project.id wkwvtest 52 | cd wkwvtest 53 | cordova platform add https://github.com/apache/cordova-ios.git#master 54 | cordova plugin add https://github.com/apache/cordova-plugin-wkwebview-engine.git#master 55 | 56 | You also must have at least Xcode 7 (iOS 9 SDK) installed. Check your Xcode version by running: 57 | 58 | xcode-select --print-path 59 | 60 | Required Permissions 61 | ----------- 62 | WKWebView may not fully launch (the deviceready event may not fire) unless if the following is included in config.xml. This should already be installed by Cordova in your platform config.xml when the plugin is installed. 63 | 64 | #### config.xml 65 | 66 | ```xml 67 | 68 | 69 | 70 | 71 | 72 | ``` 73 | 74 | If using `cordova-ios >= 5.1.0`, it is recommended to include the following `preference` tag to only use the `WKWebView` which is a requirement for new App submissions to the AppStore: 75 | 76 | ```xml 77 | 78 | ``` 79 | 80 | Notes 81 | ------ 82 | This plugin creates a shared `WKProcessPool` which ensures the cookie sharing happens correctly across `WKWebView` instances. `CDVWKProcessPoolFactory` class can be used to obtain the shared `WKProcessPool` instance if app creates `WKWebView` outside of this plugin. 83 | 84 | On an iOS 8 system, Apache Cordova during runtime will switch to using the UIWebView engine instead of using this plugin. If you want to use WKWebView on both iOS 8 and iOS 9 platforms, you will have to resort to using a local webserver. 85 | 86 | We have an [experimental plugin](https://github.com/apache/cordova-plugins/tree/wkwebview-engine-localhost) that does this. You would use that plugin instead of this one. 87 | 88 | Application Transport Security (ATS) in iOS 9 89 | ----------- 90 | 91 | Starting with [cordova-cli 5.4.0](https://www.npmjs.com/package/cordova), it will support automatic conversion of the [<access>](http://cordova.apache.org/docs/en/edge/guide/appdev/whitelist/index.html) tags in config.xml to Application Transport Security [ATS](https://developer.apple.com/library/prerelease/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW33) directives. 92 | 93 | Upgrade to at least version 5.4.0 of the cordova-cli to use this new functionality. 94 | 95 | Enabling Navigation Gestures ("Swipe Navigation") 96 | ----------- 97 | 98 | In order to allow swiping backwards and forwards in browser history like Safari does, you can set the following preference in your `config.xml`: 99 | 100 | ```xml 101 | 102 | ``` 103 | 104 | You can also set this preference dynamically from JavaScript: 105 | 106 | ```js 107 | window.WkWebView.allowsBackForwardNavigationGestures(true) 108 | window.WkWebView.allowsBackForwardNavigationGestures(false) 109 | ``` 110 | 111 | Disabling 3D Touch Link Previews 112 | ----------- 113 | 114 | In order to disable preview popups when hard pressing links in iOS, you can set the following preference in your `config.xml`: 115 | 116 | ```xml 117 | 118 | ``` 119 | 120 | Limitations 121 | -------- 122 | 123 | If you are upgrading from UIWebView, please note the limitations of using WKWebView as outlined in our [issue tracker](https://issues.apache.org/jira/issues/?jql=project%20%3D%20CB%20AND%20labels%20%3D%20wkwebview-known-issues). 124 | 125 | Apple Issues 126 | ------- 127 | 128 | The `AllowInlineMediaPlayback` preference will not work because of this [Apple bug](http://openradar.appspot.com/radar?id=6673091526656000). This bug [has been fixed](https://issues.apache.org/jira/browse/CB-11452) in [iOS 10](https://twitter.com/shazron/status/745546355796389889). 129 | 130 | 131 | 132 | Supported Platforms 133 | ------------------- 134 | 135 | - iOS 136 | -------------------------------------------------------------------------------- /RELEASENOTES.md: -------------------------------------------------------------------------------- 1 | 21 | 22 | # Release Notes 23 | 24 | ### 1.2.2 (Feb 02, 2021) 25 | * chore: adds package-lock file ([#165](https://github.com/apache/cordova-plugin-wkwebview-engine/pull/165)) 26 | * refactor(eslint): use cordova-eslint /w fix ([#164](https://github.com/apache/cordova-plugin-wkwebview-engine/pull/164)) 27 | * chore(npm): use short notation in `package.json` ([#163](https://github.com/apache/cordova-plugin-wkwebview-engine/pull/163)) 28 | * added WKWebViewOnly to `README` ([#161](https://github.com/apache/cordova-plugin-wkwebview-engine/pull/161)) 29 | * Added **iOS** platform version restrictions ([#158](https://github.com/apache/cordova-plugin-wkwebview-engine/pull/158)) 30 | * chore(asf): update git notification settings ([306a0ee](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/306a0eeea63ac69da85b9518b34855e9e618aff4)) 31 | * Update CONTRIBUTING.md ([6c4cd10](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/6c4cd10f087fa95d272307d8fde932628b36f4ac)) 32 | * ci: updates Node.js versions ([#136](https://github.com/apache/cordova-plugin-wkwebview-engine/pull/136)) 33 | * chore(npm): improve ignore list ([#137](https://github.com/apache/cordova-plugin-wkwebview-engine/pull/137)) 34 | 35 | ### 1.2.1 (Jul 20, 2019) 36 | 37 | - fix: Revert "CB-13987: (ios) Fix WKWebView doesn't layout properly at… ([#107](https://github.com/apache/cordova-plugin-wkwebview-engine/issues/107)) ([`dc8b277`](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/dc8b277)) 38 | - ci(travis): upgrade to node8 ([`d8c8b3f`](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/d8c8b3f)) 39 | - ci(appveyor): replace node 6 with node 12 ([`557e275`](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/557e275)) 40 | 41 | 42 | ### 1.2.0 (Jun 27, 2019) 43 | 44 | - build: add `.gitattributes` to force LF (instead of possible CRLF on Windows) ([`797f088`](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/797f088)) 45 | - build: add `.npmignore` to remove unneeded files from npm package ([`2ddcf98`](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/2ddcf98)) 46 | - chore: add CONTRBUTING.md and NOTICE files that were missing ([`a8390a2`](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/a8390a2)) 47 | - chore: fix repo and issue urls and license in package.json and plugin.xml ([`9d7c120`](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/9d7c120)) 48 | - ci(travis): Update Travis CI configuration for new paramedic ([#93](https://github.com/apache/cordova-plugin-wkwebview-engine/issues/93)) ([`3697ee1`](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/3697ee1)) 49 | - chore: add `ecosystem:cordova` to package.json keywords ([`4b14897`](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/4b14897)) 50 | - chore: drop Node.js v4 support ([#91](https://github.com/apache/cordova-plugin-wkwebview-engine/issues/91)) ([`1f1a888`](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/1f1a888)) 51 | - chore: remove leftover .jshintrc ([#90](https://github.com/apache/cordova-plugin-wkwebview-engine/issues/90)) ([`54af786`](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/54af786)) 52 | - fix(ios): Bug fix in recent change in iOSExec.nativeCallback ([#78](https://github.com/apache/cordova-plugin-wkwebview-engine/issues/78)) ([`6f468f4`](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/6f468f4)) 53 | - chore(github): Add or update GitHub pull request and issue template ([`76bca66`](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/76bca66)) 54 | - feat(ios): [GH-68](https://github.com/apache/cordova-plugin-wkwebview-engine/issues/68) (ios): Support for disabling 3D Touch link previews ([#69](https://github.com/apache/cordova-plugin-wkwebview-engine/issues/69)) ([`d0bd80a`](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/d0bd80a)) 55 | - fix(ios): [CB-12815](https://issues.apache.org/jira/browse/CB-12815) (ios) Fix bug nativeCallback not executed when app is in background ([#49](https://github.com/apache/cordova-plugin-wkwebview-engine/issues/49)) ([`bf0f236`](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/bf0f236)) 56 | - chore: Add cordova-ios in plugin keyword for npm plugin searching ([#47](https://github.com/apache/cordova-plugin-wkwebview-engine/issues/47)) ([`4f8503d`](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/4f8503d)) 57 | - fix(ios): [CB-13987](https://issues.apache.org/jira/browse/CB-13987) (ios) Fix WKWebView doesn't layout properly at launch on iPhone X ([`7684545`](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/7684545), [`81eeade`](https://github.com/apache/cordova-plugin-wkwebview-engine/commit/81eeade)) 58 | 59 | 60 | ### 1.1.4 (Nov 06, 2017) 61 | * added missing license header 62 | * [CB-13519](https://issues.apache.org/jira/browse/CB-13519) (all): Add 'protective' entry to `cordovaDependencies` 63 | * [CB-12895](https://issues.apache.org/jira/browse/CB-12895) added `eslint` and removed `jshint` 64 | * [CB-12847](https://issues.apache.org/jira/browse/CB-12847) fixed `bugs` entry in `package.json`. 65 | 66 | ### 1.1.3 (Apr 27, 2017) 67 | * [CB-12696](https://issues.apache.org/jira/browse/CB-12696) (iOS) Fixing some Xcode warnings 68 | * [CB-12685](https://issues.apache.org/jira/browse/CB-12685) added `package.json` to tests folder 69 | * [CB-12575](https://issues.apache.org/jira/browse/CB-12575) cordova-plugin-wkwebview-engine missing LICENSE file 70 | * [CB-12519](https://issues.apache.org/jira/browse/CB-12519) added missing license header 71 | 72 | ### 1.1.2 (Feb 28, 2017) 73 | * [CB-12497](https://issues.apache.org/jira/browse/CB-12497) `location.href` links are silently disallowed 74 | * [CB-12490](https://issues.apache.org/jira/browse/CB-12490) - Updated experimental plugin link 75 | * Allow to configure navigation by gestures 76 | * [CB-12297](https://issues.apache.org/jira/browse/CB-12297) Support `WKProcessPool` for cookie sharing 77 | * [CB-12414](https://issues.apache.org/jira/browse/CB-12414) **iOS:** Forward error from provisional load error to standard load error 78 | 79 | ### 1.1.1 (Dec 07, 2016) 80 | * [CB-12224](https://issues.apache.org/jira/browse/CB-12224) Updated version and RELEASENOTES.md for release 1.1.1 81 | * [CB-10228](https://issues.apache.org/jira/browse/CB-10228) - AppendUserAgent not working with WKWebView 82 | * [CB-11997](https://issues.apache.org/jira/browse/CB-11997) - Add crash recovery for iOS 8 83 | * [CB-11917](https://issues.apache.org/jira/browse/CB-11917) - Remove pull request template checklist item: "iCLA has been submitted…" 84 | * [CB-11818](https://issues.apache.org/jira/browse/CB-11818) - Avoid retain cycle: WKUserContentController retains its message handler, to break it we cannot pass directly CDVWKWebViewEngine's instance 85 | * [CB-11832](https://issues.apache.org/jira/browse/CB-11832) Incremented plugin version. 86 | 87 | 88 | ### 1.1.0 (Sep 08, 2016) 89 | * [CB-11824](https://issues.apache.org/jira/browse/CB-11824) - Update tests to include objective-c tests 90 | * [CB-11554](https://issues.apache.org/jira/browse/CB-11554) - fixed unit tests 91 | * [CB-11815](https://issues.apache.org/jira/browse/CB-11815) (**iOS**) Fix hard-coded bridge name "cordova" 92 | * [CB-11554](https://issues.apache.org/jira/browse/CB-11554) - too 'brutal' app reload when title is empty 93 | * [CB-11074](https://issues.apache.org/jira/browse/CB-11074) - Ensure settings from `config.xml` are taken into consideration 94 | * Add ability to set the deceleration rate for the scrollview to 'fast' 95 | * [CB-11496](https://issues.apache.org/jira/browse/CB-11496) - Add obj-c unit tests for `WKWebViewConfiguration`, `WKPreference` 96 | * [CB-11496](https://issues.apache.org/jira/browse/CB-11496) - Create Obj-C unit-tests for `wkwebview-engine` (fix linker error) 97 | * [CB-11452](https://issues.apache.org/jira/browse/CB-11452) - Update README.md with latest news about `AllowInlineMediaPlayback` fix 98 | * [CB-9888](https://issues.apache.org/jira/browse/CB-9888) (**iOS**) check & reload `WKWebView` 99 | * [CB-11375](https://issues.apache.org/jira/browse/CB-11375) - `onReset` method of `CDVPlugin` is never called 100 | * Add pull request template. 101 | * [CB-10818](https://issues.apache.org/jira/browse/CB-10818) - Support the scroll deceleration speed preference. 102 | * [CB-10817](https://issues.apache.org/jira/browse/CB-10817) - Will now reload the `webView` if a crash occurs 103 | 104 | ### 1.0.3 (Apr 15, 2016) 105 | * [CB-10636](https://issues.apache.org/jira/browse/CB-10636) Add `JSHint` for plugins 106 | 107 | ### 1.0.2 (Feb 09, 2016) 108 | * [CB-10269](https://issues.apache.org/jira/browse/CB-10269) - Replace cordova exec only when present in wkwebview 109 | * [CB-10202](https://issues.apache.org/jira/browse/CB-10202) - Add README quirk about WKWebview does not work with the AllowInlineMediaPlayback preference 110 | 111 | 112 | ### 1.0.1 (Dec 11, 2015) 113 | 114 | * [CB-10190](https://issues.apache.org/jira/browse/CB-10190) - WKWebView engine is not releasing the user-agent lock 115 | 116 | ### 1.0.0 (Dec 04, 2015) 117 | 118 | * [CB-10146](https://issues.apache.org/jira/browse/CB-10146) - Add to README WKWebViewEngine quirks that will affect migration from UIWebView 119 | * [CB-10133](https://issues.apache.org/jira/browse/CB-10133) - DataClone DOM Exception 25 thrown for postMessage 120 | * [CB-10106](https://issues.apache.org/jira/browse/CB-10106) - added bridge proxy 121 | * [CB-10107](https://issues.apache.org/jira/browse/CB-10107) - nativeEvalAndFetch called for all bridges 122 | * [CB-10106](https://issues.apache.org/jira/browse/CB-10106) - iOS bridges need to take into account bridge changes 123 | * [CB-10073](https://issues.apache.org/jira/browse/CB-10073) - WKWebViewEngine should post CDVPluginResetNotification 124 | * [CB-10035](https://issues.apache.org/jira/browse/CB-10035) Updated RELEASENOTES to be newest to oldest 125 | * [CB-10002](https://issues.apache.org/jira/browse/CB-10002) - WKWebView should propagate shouldOverrideLoadWithRequest to plugins 126 | * [CB-9979](https://issues.apache.org/jira/browse/CB-9979) [CB-9972](https://issues.apache.org/jira/browse/CB-9972) Change ATS link to new link 127 | * [CB-9636](https://issues.apache.org/jira/browse/CB-9636) - Plugin should detect at runtime iOS 8 and use of file:// url and present an error 128 | * [CB-8839](https://issues.apache.org/jira/browse/CB-8839) - WKWebView ignores DisallowOverscroll preference 129 | * [CB-8556](https://issues.apache.org/jira/browse/CB-8556) - fix handleOpenURL for WKWebViewEngine plugin 130 | * [CB-8666](https://issues.apache.org/jira/browse/CB-8666) - Update CDVWKWebViewEngine plugin to use 4.0.x branch code 131 | 132 | 133 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-wkwebview-engine", 3 | "version": "1.2.2-dev", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@babel/code-frame": { 8 | "version": "7.10.4", 9 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz", 10 | "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==", 11 | "dev": true, 12 | "requires": { 13 | "@babel/highlight": "^7.10.4" 14 | } 15 | }, 16 | "@babel/helper-validator-identifier": { 17 | "version": "7.10.4", 18 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz", 19 | "integrity": "sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==", 20 | "dev": true 21 | }, 22 | "@babel/highlight": { 23 | "version": "7.10.4", 24 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz", 25 | "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==", 26 | "dev": true, 27 | "requires": { 28 | "@babel/helper-validator-identifier": "^7.10.4", 29 | "chalk": "^2.0.0", 30 | "js-tokens": "^4.0.0" 31 | } 32 | }, 33 | "@cordova/eslint-config": { 34 | "version": "3.0.0", 35 | "resolved": "https://registry.npmjs.org/@cordova/eslint-config/-/eslint-config-3.0.0.tgz", 36 | "integrity": "sha512-YOZn/G5foKFzZc8R/oBM+BLG6vHufOmZiJtiZHNxifsrqzORwyjq1EiUSvQ6s0bm6Ydh3zwwyuGVbYyDBil67w==", 37 | "dev": true, 38 | "requires": { 39 | "eslint": "^6.8.0", 40 | "eslint-config-standard": "^14.1.1", 41 | "eslint-plugin-import": "^2.20.1", 42 | "eslint-plugin-node": "^11.0.0", 43 | "eslint-plugin-promise": "^4.2.1", 44 | "eslint-plugin-standard": "^4.0.1" 45 | } 46 | }, 47 | "@types/color-name": { 48 | "version": "1.1.1", 49 | "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", 50 | "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", 51 | "dev": true 52 | }, 53 | "@types/json5": { 54 | "version": "0.0.29", 55 | "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", 56 | "integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=", 57 | "dev": true 58 | }, 59 | "acorn": { 60 | "version": "7.3.1", 61 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.3.1.tgz", 62 | "integrity": "sha512-tLc0wSnatxAQHVHUapaHdz72pi9KUyHjq5KyHjGg9Y8Ifdc79pTh2XvI6I1/chZbnM7QtNKzh66ooDogPZSleA==", 63 | "dev": true 64 | }, 65 | "acorn-jsx": { 66 | "version": "5.2.0", 67 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.2.0.tgz", 68 | "integrity": "sha512-HiUX/+K2YpkpJ+SzBffkM/AQ2YE03S0U1kjTLVpoJdhZMOWy8qvXVN9JdLqv2QsaQ6MPYQIuNmwD8zOiYUofLQ==", 69 | "dev": true 70 | }, 71 | "ajv": { 72 | "version": "6.12.3", 73 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.3.tgz", 74 | "integrity": "sha512-4K0cK3L1hsqk9xIb2z9vs/XU+PGJZ9PNpJRDS9YLzmNdX6jmVPfamLvTJr0aDAusnHyCHO6MjzlkAsgtqp9teA==", 75 | "dev": true, 76 | "requires": { 77 | "fast-deep-equal": "^3.1.1", 78 | "fast-json-stable-stringify": "^2.0.0", 79 | "json-schema-traverse": "^0.4.1", 80 | "uri-js": "^4.2.2" 81 | } 82 | }, 83 | "ansi-escapes": { 84 | "version": "4.3.1", 85 | "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz", 86 | "integrity": "sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==", 87 | "dev": true, 88 | "requires": { 89 | "type-fest": "^0.11.0" 90 | }, 91 | "dependencies": { 92 | "type-fest": { 93 | "version": "0.11.0", 94 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.11.0.tgz", 95 | "integrity": "sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==", 96 | "dev": true 97 | } 98 | } 99 | }, 100 | "ansi-regex": { 101 | "version": "5.0.0", 102 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", 103 | "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", 104 | "dev": true 105 | }, 106 | "ansi-styles": { 107 | "version": "3.2.1", 108 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 109 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 110 | "dev": true, 111 | "requires": { 112 | "color-convert": "^1.9.0" 113 | } 114 | }, 115 | "argparse": { 116 | "version": "1.0.10", 117 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 118 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 119 | "dev": true, 120 | "requires": { 121 | "sprintf-js": "~1.0.2" 122 | } 123 | }, 124 | "array-includes": { 125 | "version": "3.1.1", 126 | "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.1.tgz", 127 | "integrity": "sha512-c2VXaCHl7zPsvpkFsw4nxvFie4fh1ur9bpcgsVkIjqn0H/Xwdg+7fv3n2r/isyS8EBj5b06M9kHyZuIr4El6WQ==", 128 | "dev": true, 129 | "requires": { 130 | "define-properties": "^1.1.3", 131 | "es-abstract": "^1.17.0", 132 | "is-string": "^1.0.5" 133 | } 134 | }, 135 | "array.prototype.flat": { 136 | "version": "1.2.3", 137 | "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.3.tgz", 138 | "integrity": "sha512-gBlRZV0VSmfPIeWfuuy56XZMvbVfbEUnOXUvt3F/eUUUSyzlgLxhEX4YAEpxNAogRGehPSnfXyPtYyKAhkzQhQ==", 139 | "dev": true, 140 | "requires": { 141 | "define-properties": "^1.1.3", 142 | "es-abstract": "^1.17.0-next.1" 143 | } 144 | }, 145 | "astral-regex": { 146 | "version": "1.0.0", 147 | "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", 148 | "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", 149 | "dev": true 150 | }, 151 | "balanced-match": { 152 | "version": "1.0.0", 153 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 154 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 155 | "dev": true 156 | }, 157 | "brace-expansion": { 158 | "version": "1.1.11", 159 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 160 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 161 | "dev": true, 162 | "requires": { 163 | "balanced-match": "^1.0.0", 164 | "concat-map": "0.0.1" 165 | } 166 | }, 167 | "callsites": { 168 | "version": "3.1.0", 169 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 170 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 171 | "dev": true 172 | }, 173 | "chalk": { 174 | "version": "2.4.2", 175 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 176 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 177 | "dev": true, 178 | "requires": { 179 | "ansi-styles": "^3.2.1", 180 | "escape-string-regexp": "^1.0.5", 181 | "supports-color": "^5.3.0" 182 | } 183 | }, 184 | "chardet": { 185 | "version": "0.7.0", 186 | "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", 187 | "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", 188 | "dev": true 189 | }, 190 | "cli-cursor": { 191 | "version": "3.1.0", 192 | "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", 193 | "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", 194 | "dev": true, 195 | "requires": { 196 | "restore-cursor": "^3.1.0" 197 | } 198 | }, 199 | "cli-width": { 200 | "version": "3.0.0", 201 | "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", 202 | "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", 203 | "dev": true 204 | }, 205 | "color-convert": { 206 | "version": "1.9.3", 207 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 208 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 209 | "dev": true, 210 | "requires": { 211 | "color-name": "1.1.3" 212 | } 213 | }, 214 | "color-name": { 215 | "version": "1.1.3", 216 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 217 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", 218 | "dev": true 219 | }, 220 | "concat-map": { 221 | "version": "0.0.1", 222 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 223 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 224 | "dev": true 225 | }, 226 | "contains-path": { 227 | "version": "0.1.0", 228 | "resolved": "https://registry.npmjs.org/contains-path/-/contains-path-0.1.0.tgz", 229 | "integrity": "sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo=", 230 | "dev": true 231 | }, 232 | "cross-spawn": { 233 | "version": "6.0.5", 234 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", 235 | "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", 236 | "dev": true, 237 | "requires": { 238 | "nice-try": "^1.0.4", 239 | "path-key": "^2.0.1", 240 | "semver": "^5.5.0", 241 | "shebang-command": "^1.2.0", 242 | "which": "^1.2.9" 243 | }, 244 | "dependencies": { 245 | "semver": { 246 | "version": "5.7.1", 247 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 248 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", 249 | "dev": true 250 | } 251 | } 252 | }, 253 | "debug": { 254 | "version": "4.1.1", 255 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", 256 | "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", 257 | "dev": true, 258 | "requires": { 259 | "ms": "^2.1.1" 260 | } 261 | }, 262 | "deep-is": { 263 | "version": "0.1.3", 264 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", 265 | "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", 266 | "dev": true 267 | }, 268 | "define-properties": { 269 | "version": "1.1.3", 270 | "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", 271 | "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", 272 | "dev": true, 273 | "requires": { 274 | "object-keys": "^1.0.12" 275 | } 276 | }, 277 | "doctrine": { 278 | "version": "3.0.0", 279 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", 280 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", 281 | "dev": true, 282 | "requires": { 283 | "esutils": "^2.0.2" 284 | } 285 | }, 286 | "emoji-regex": { 287 | "version": "8.0.0", 288 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 289 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 290 | "dev": true 291 | }, 292 | "error-ex": { 293 | "version": "1.3.2", 294 | "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", 295 | "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", 296 | "dev": true, 297 | "requires": { 298 | "is-arrayish": "^0.2.1" 299 | } 300 | }, 301 | "es-abstract": { 302 | "version": "1.17.6", 303 | "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.6.tgz", 304 | "integrity": "sha512-Fr89bON3WFyUi5EvAeI48QTWX0AyekGgLA8H+c+7fbfCkJwRWRMLd8CQedNEyJuoYYhmtEqY92pgte1FAhBlhw==", 305 | "dev": true, 306 | "requires": { 307 | "es-to-primitive": "^1.2.1", 308 | "function-bind": "^1.1.1", 309 | "has": "^1.0.3", 310 | "has-symbols": "^1.0.1", 311 | "is-callable": "^1.2.0", 312 | "is-regex": "^1.1.0", 313 | "object-inspect": "^1.7.0", 314 | "object-keys": "^1.1.1", 315 | "object.assign": "^4.1.0", 316 | "string.prototype.trimend": "^1.0.1", 317 | "string.prototype.trimstart": "^1.0.1" 318 | } 319 | }, 320 | "es-to-primitive": { 321 | "version": "1.2.1", 322 | "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", 323 | "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", 324 | "dev": true, 325 | "requires": { 326 | "is-callable": "^1.1.4", 327 | "is-date-object": "^1.0.1", 328 | "is-symbol": "^1.0.2" 329 | } 330 | }, 331 | "escape-string-regexp": { 332 | "version": "1.0.5", 333 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 334 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 335 | "dev": true 336 | }, 337 | "eslint": { 338 | "version": "6.8.0", 339 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.8.0.tgz", 340 | "integrity": "sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig==", 341 | "dev": true, 342 | "requires": { 343 | "@babel/code-frame": "^7.0.0", 344 | "ajv": "^6.10.0", 345 | "chalk": "^2.1.0", 346 | "cross-spawn": "^6.0.5", 347 | "debug": "^4.0.1", 348 | "doctrine": "^3.0.0", 349 | "eslint-scope": "^5.0.0", 350 | "eslint-utils": "^1.4.3", 351 | "eslint-visitor-keys": "^1.1.0", 352 | "espree": "^6.1.2", 353 | "esquery": "^1.0.1", 354 | "esutils": "^2.0.2", 355 | "file-entry-cache": "^5.0.1", 356 | "functional-red-black-tree": "^1.0.1", 357 | "glob-parent": "^5.0.0", 358 | "globals": "^12.1.0", 359 | "ignore": "^4.0.6", 360 | "import-fresh": "^3.0.0", 361 | "imurmurhash": "^0.1.4", 362 | "inquirer": "^7.0.0", 363 | "is-glob": "^4.0.0", 364 | "js-yaml": "^3.13.1", 365 | "json-stable-stringify-without-jsonify": "^1.0.1", 366 | "levn": "^0.3.0", 367 | "lodash": "^4.17.14", 368 | "minimatch": "^3.0.4", 369 | "mkdirp": "^0.5.1", 370 | "natural-compare": "^1.4.0", 371 | "optionator": "^0.8.3", 372 | "progress": "^2.0.0", 373 | "regexpp": "^2.0.1", 374 | "semver": "^6.1.2", 375 | "strip-ansi": "^5.2.0", 376 | "strip-json-comments": "^3.0.1", 377 | "table": "^5.2.3", 378 | "text-table": "^0.2.0", 379 | "v8-compile-cache": "^2.0.3" 380 | } 381 | }, 382 | "eslint-config-standard": { 383 | "version": "14.1.1", 384 | "resolved": "https://registry.npmjs.org/eslint-config-standard/-/eslint-config-standard-14.1.1.tgz", 385 | "integrity": "sha512-Z9B+VR+JIXRxz21udPTL9HpFMyoMUEeX1G251EQ6e05WD9aPVtVBn09XUmZ259wCMlCDmYDSZG62Hhm+ZTJcUg==", 386 | "dev": true 387 | }, 388 | "eslint-import-resolver-node": { 389 | "version": "0.3.4", 390 | "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.4.tgz", 391 | "integrity": "sha512-ogtf+5AB/O+nM6DIeBUNr2fuT7ot9Qg/1harBfBtaP13ekEWFQEEMP94BCB7zaNW3gyY+8SHYF00rnqYwXKWOA==", 392 | "dev": true, 393 | "requires": { 394 | "debug": "^2.6.9", 395 | "resolve": "^1.13.1" 396 | }, 397 | "dependencies": { 398 | "debug": { 399 | "version": "2.6.9", 400 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 401 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 402 | "dev": true, 403 | "requires": { 404 | "ms": "2.0.0" 405 | } 406 | }, 407 | "ms": { 408 | "version": "2.0.0", 409 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 410 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", 411 | "dev": true 412 | } 413 | } 414 | }, 415 | "eslint-module-utils": { 416 | "version": "2.6.0", 417 | "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.6.0.tgz", 418 | "integrity": "sha512-6j9xxegbqe8/kZY8cYpcp0xhbK0EgJlg3g9mib3/miLaExuuwc3n5UEfSnU6hWMbT0FAYVvDbL9RrRgpUeQIvA==", 419 | "dev": true, 420 | "requires": { 421 | "debug": "^2.6.9", 422 | "pkg-dir": "^2.0.0" 423 | }, 424 | "dependencies": { 425 | "debug": { 426 | "version": "2.6.9", 427 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 428 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 429 | "dev": true, 430 | "requires": { 431 | "ms": "2.0.0" 432 | } 433 | }, 434 | "ms": { 435 | "version": "2.0.0", 436 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 437 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", 438 | "dev": true 439 | } 440 | } 441 | }, 442 | "eslint-plugin-es": { 443 | "version": "3.0.1", 444 | "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-3.0.1.tgz", 445 | "integrity": "sha512-GUmAsJaN4Fc7Gbtl8uOBlayo2DqhwWvEzykMHSCZHU3XdJ+NSzzZcVhXh3VxX5icqQ+oQdIEawXX8xkR3mIFmQ==", 446 | "dev": true, 447 | "requires": { 448 | "eslint-utils": "^2.0.0", 449 | "regexpp": "^3.0.0" 450 | }, 451 | "dependencies": { 452 | "eslint-utils": { 453 | "version": "2.1.0", 454 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", 455 | "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", 456 | "dev": true, 457 | "requires": { 458 | "eslint-visitor-keys": "^1.1.0" 459 | } 460 | }, 461 | "regexpp": { 462 | "version": "3.1.0", 463 | "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", 464 | "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==", 465 | "dev": true 466 | } 467 | } 468 | }, 469 | "eslint-plugin-import": { 470 | "version": "2.22.0", 471 | "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.22.0.tgz", 472 | "integrity": "sha512-66Fpf1Ln6aIS5Gr/55ts19eUuoDhAbZgnr6UxK5hbDx6l/QgQgx61AePq+BV4PP2uXQFClgMVzep5zZ94qqsxg==", 473 | "dev": true, 474 | "requires": { 475 | "array-includes": "^3.1.1", 476 | "array.prototype.flat": "^1.2.3", 477 | "contains-path": "^0.1.0", 478 | "debug": "^2.6.9", 479 | "doctrine": "1.5.0", 480 | "eslint-import-resolver-node": "^0.3.3", 481 | "eslint-module-utils": "^2.6.0", 482 | "has": "^1.0.3", 483 | "minimatch": "^3.0.4", 484 | "object.values": "^1.1.1", 485 | "read-pkg-up": "^2.0.0", 486 | "resolve": "^1.17.0", 487 | "tsconfig-paths": "^3.9.0" 488 | }, 489 | "dependencies": { 490 | "debug": { 491 | "version": "2.6.9", 492 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 493 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 494 | "dev": true, 495 | "requires": { 496 | "ms": "2.0.0" 497 | } 498 | }, 499 | "doctrine": { 500 | "version": "1.5.0", 501 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-1.5.0.tgz", 502 | "integrity": "sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=", 503 | "dev": true, 504 | "requires": { 505 | "esutils": "^2.0.2", 506 | "isarray": "^1.0.0" 507 | } 508 | }, 509 | "ms": { 510 | "version": "2.0.0", 511 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 512 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", 513 | "dev": true 514 | } 515 | } 516 | }, 517 | "eslint-plugin-node": { 518 | "version": "11.1.0", 519 | "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz", 520 | "integrity": "sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g==", 521 | "dev": true, 522 | "requires": { 523 | "eslint-plugin-es": "^3.0.0", 524 | "eslint-utils": "^2.0.0", 525 | "ignore": "^5.1.1", 526 | "minimatch": "^3.0.4", 527 | "resolve": "^1.10.1", 528 | "semver": "^6.1.0" 529 | }, 530 | "dependencies": { 531 | "eslint-utils": { 532 | "version": "2.1.0", 533 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", 534 | "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", 535 | "dev": true, 536 | "requires": { 537 | "eslint-visitor-keys": "^1.1.0" 538 | } 539 | }, 540 | "ignore": { 541 | "version": "5.1.8", 542 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", 543 | "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", 544 | "dev": true 545 | } 546 | } 547 | }, 548 | "eslint-plugin-promise": { 549 | "version": "4.2.1", 550 | "resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-4.2.1.tgz", 551 | "integrity": "sha512-VoM09vT7bfA7D+upt+FjeBO5eHIJQBUWki1aPvB+vbNiHS3+oGIJGIeyBtKQTME6UPXXy3vV07OL1tHd3ANuDw==", 552 | "dev": true 553 | }, 554 | "eslint-plugin-standard": { 555 | "version": "4.0.1", 556 | "resolved": "https://registry.npmjs.org/eslint-plugin-standard/-/eslint-plugin-standard-4.0.1.tgz", 557 | "integrity": "sha512-v/KBnfyaOMPmZc/dmc6ozOdWqekGp7bBGq4jLAecEfPGmfKiWS4sA8sC0LqiV9w5qmXAtXVn4M3p1jSyhY85SQ==", 558 | "dev": true 559 | }, 560 | "eslint-scope": { 561 | "version": "5.1.0", 562 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.0.tgz", 563 | "integrity": "sha512-iiGRvtxWqgtx5m8EyQUJihBloE4EnYeGE/bz1wSPwJE6tZuJUtHlhqDM4Xj2ukE8Dyy1+HCZ4hE0fzIVMzb58w==", 564 | "dev": true, 565 | "requires": { 566 | "esrecurse": "^4.1.0", 567 | "estraverse": "^4.1.1" 568 | } 569 | }, 570 | "eslint-utils": { 571 | "version": "1.4.3", 572 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.3.tgz", 573 | "integrity": "sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==", 574 | "dev": true, 575 | "requires": { 576 | "eslint-visitor-keys": "^1.1.0" 577 | } 578 | }, 579 | "eslint-visitor-keys": { 580 | "version": "1.3.0", 581 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", 582 | "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", 583 | "dev": true 584 | }, 585 | "espree": { 586 | "version": "6.2.1", 587 | "resolved": "https://registry.npmjs.org/espree/-/espree-6.2.1.tgz", 588 | "integrity": "sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw==", 589 | "dev": true, 590 | "requires": { 591 | "acorn": "^7.1.1", 592 | "acorn-jsx": "^5.2.0", 593 | "eslint-visitor-keys": "^1.1.0" 594 | } 595 | }, 596 | "esprima": { 597 | "version": "4.0.1", 598 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 599 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 600 | "dev": true 601 | }, 602 | "esquery": { 603 | "version": "1.3.1", 604 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.3.1.tgz", 605 | "integrity": "sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ==", 606 | "dev": true, 607 | "requires": { 608 | "estraverse": "^5.1.0" 609 | }, 610 | "dependencies": { 611 | "estraverse": { 612 | "version": "5.1.0", 613 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.1.0.tgz", 614 | "integrity": "sha512-FyohXK+R0vE+y1nHLoBM7ZTyqRpqAlhdZHCWIWEviFLiGB8b04H6bQs8G+XTthacvT8VuwvteiP7RJSxMs8UEw==", 615 | "dev": true 616 | } 617 | } 618 | }, 619 | "esrecurse": { 620 | "version": "4.2.1", 621 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", 622 | "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", 623 | "dev": true, 624 | "requires": { 625 | "estraverse": "^4.1.0" 626 | } 627 | }, 628 | "estraverse": { 629 | "version": "4.3.0", 630 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", 631 | "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", 632 | "dev": true 633 | }, 634 | "esutils": { 635 | "version": "2.0.3", 636 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 637 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 638 | "dev": true 639 | }, 640 | "external-editor": { 641 | "version": "3.1.0", 642 | "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", 643 | "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", 644 | "dev": true, 645 | "requires": { 646 | "chardet": "^0.7.0", 647 | "iconv-lite": "^0.4.24", 648 | "tmp": "^0.0.33" 649 | } 650 | }, 651 | "fast-deep-equal": { 652 | "version": "3.1.3", 653 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 654 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 655 | "dev": true 656 | }, 657 | "fast-json-stable-stringify": { 658 | "version": "2.1.0", 659 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 660 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 661 | "dev": true 662 | }, 663 | "fast-levenshtein": { 664 | "version": "2.0.6", 665 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 666 | "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", 667 | "dev": true 668 | }, 669 | "figures": { 670 | "version": "3.2.0", 671 | "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", 672 | "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", 673 | "dev": true, 674 | "requires": { 675 | "escape-string-regexp": "^1.0.5" 676 | } 677 | }, 678 | "file-entry-cache": { 679 | "version": "5.0.1", 680 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz", 681 | "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", 682 | "dev": true, 683 | "requires": { 684 | "flat-cache": "^2.0.1" 685 | } 686 | }, 687 | "find-up": { 688 | "version": "2.1.0", 689 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", 690 | "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", 691 | "dev": true, 692 | "requires": { 693 | "locate-path": "^2.0.0" 694 | } 695 | }, 696 | "flat-cache": { 697 | "version": "2.0.1", 698 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz", 699 | "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", 700 | "dev": true, 701 | "requires": { 702 | "flatted": "^2.0.0", 703 | "rimraf": "2.6.3", 704 | "write": "1.0.3" 705 | } 706 | }, 707 | "flatted": { 708 | "version": "2.0.2", 709 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.2.tgz", 710 | "integrity": "sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==", 711 | "dev": true 712 | }, 713 | "fs.realpath": { 714 | "version": "1.0.0", 715 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 716 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 717 | "dev": true 718 | }, 719 | "function-bind": { 720 | "version": "1.1.1", 721 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 722 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", 723 | "dev": true 724 | }, 725 | "functional-red-black-tree": { 726 | "version": "1.0.1", 727 | "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", 728 | "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", 729 | "dev": true 730 | }, 731 | "glob": { 732 | "version": "7.1.6", 733 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", 734 | "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", 735 | "dev": true, 736 | "requires": { 737 | "fs.realpath": "^1.0.0", 738 | "inflight": "^1.0.4", 739 | "inherits": "2", 740 | "minimatch": "^3.0.4", 741 | "once": "^1.3.0", 742 | "path-is-absolute": "^1.0.0" 743 | } 744 | }, 745 | "glob-parent": { 746 | "version": "5.1.1", 747 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", 748 | "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", 749 | "dev": true, 750 | "requires": { 751 | "is-glob": "^4.0.1" 752 | } 753 | }, 754 | "globals": { 755 | "version": "12.4.0", 756 | "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", 757 | "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", 758 | "dev": true, 759 | "requires": { 760 | "type-fest": "^0.8.1" 761 | } 762 | }, 763 | "graceful-fs": { 764 | "version": "4.2.4", 765 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", 766 | "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", 767 | "dev": true 768 | }, 769 | "has": { 770 | "version": "1.0.3", 771 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 772 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 773 | "dev": true, 774 | "requires": { 775 | "function-bind": "^1.1.1" 776 | } 777 | }, 778 | "has-flag": { 779 | "version": "3.0.0", 780 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 781 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 782 | "dev": true 783 | }, 784 | "has-symbols": { 785 | "version": "1.0.1", 786 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", 787 | "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", 788 | "dev": true 789 | }, 790 | "hosted-git-info": { 791 | "version": "2.8.8", 792 | "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz", 793 | "integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==", 794 | "dev": true 795 | }, 796 | "iconv-lite": { 797 | "version": "0.4.24", 798 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 799 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 800 | "dev": true, 801 | "requires": { 802 | "safer-buffer": ">= 2.1.2 < 3" 803 | } 804 | }, 805 | "ignore": { 806 | "version": "4.0.6", 807 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", 808 | "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", 809 | "dev": true 810 | }, 811 | "import-fresh": { 812 | "version": "3.2.1", 813 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", 814 | "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", 815 | "dev": true, 816 | "requires": { 817 | "parent-module": "^1.0.0", 818 | "resolve-from": "^4.0.0" 819 | } 820 | }, 821 | "imurmurhash": { 822 | "version": "0.1.4", 823 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 824 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", 825 | "dev": true 826 | }, 827 | "inflight": { 828 | "version": "1.0.6", 829 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 830 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 831 | "dev": true, 832 | "requires": { 833 | "once": "^1.3.0", 834 | "wrappy": "1" 835 | } 836 | }, 837 | "inherits": { 838 | "version": "2.0.4", 839 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 840 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 841 | "dev": true 842 | }, 843 | "inquirer": { 844 | "version": "7.3.0", 845 | "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.3.0.tgz", 846 | "integrity": "sha512-K+LZp6L/6eE5swqIcVXrxl21aGDU4S50gKH0/d96OMQnSBCyGyZl/oZhbkVmdp5sBoINHd4xZvFSARh2dk6DWA==", 847 | "dev": true, 848 | "requires": { 849 | "ansi-escapes": "^4.2.1", 850 | "chalk": "^4.1.0", 851 | "cli-cursor": "^3.1.0", 852 | "cli-width": "^3.0.0", 853 | "external-editor": "^3.0.3", 854 | "figures": "^3.0.0", 855 | "lodash": "^4.17.15", 856 | "mute-stream": "0.0.8", 857 | "run-async": "^2.4.0", 858 | "rxjs": "^6.6.0", 859 | "string-width": "^4.1.0", 860 | "strip-ansi": "^6.0.0", 861 | "through": "^2.3.6" 862 | }, 863 | "dependencies": { 864 | "ansi-styles": { 865 | "version": "4.2.1", 866 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", 867 | "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", 868 | "dev": true, 869 | "requires": { 870 | "@types/color-name": "^1.1.1", 871 | "color-convert": "^2.0.1" 872 | } 873 | }, 874 | "chalk": { 875 | "version": "4.1.0", 876 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", 877 | "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", 878 | "dev": true, 879 | "requires": { 880 | "ansi-styles": "^4.1.0", 881 | "supports-color": "^7.1.0" 882 | } 883 | }, 884 | "color-convert": { 885 | "version": "2.0.1", 886 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 887 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 888 | "dev": true, 889 | "requires": { 890 | "color-name": "~1.1.4" 891 | } 892 | }, 893 | "color-name": { 894 | "version": "1.1.4", 895 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 896 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 897 | "dev": true 898 | }, 899 | "has-flag": { 900 | "version": "4.0.0", 901 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 902 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 903 | "dev": true 904 | }, 905 | "strip-ansi": { 906 | "version": "6.0.0", 907 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", 908 | "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", 909 | "dev": true, 910 | "requires": { 911 | "ansi-regex": "^5.0.0" 912 | } 913 | }, 914 | "supports-color": { 915 | "version": "7.1.0", 916 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", 917 | "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", 918 | "dev": true, 919 | "requires": { 920 | "has-flag": "^4.0.0" 921 | } 922 | } 923 | } 924 | }, 925 | "is-arrayish": { 926 | "version": "0.2.1", 927 | "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", 928 | "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", 929 | "dev": true 930 | }, 931 | "is-callable": { 932 | "version": "1.2.0", 933 | "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.0.tgz", 934 | "integrity": "sha512-pyVD9AaGLxtg6srb2Ng6ynWJqkHU9bEM087AKck0w8QwDarTfNcpIYoU8x8Hv2Icm8u6kFJM18Dag8lyqGkviw==", 935 | "dev": true 936 | }, 937 | "is-date-object": { 938 | "version": "1.0.2", 939 | "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz", 940 | "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==", 941 | "dev": true 942 | }, 943 | "is-extglob": { 944 | "version": "2.1.1", 945 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 946 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", 947 | "dev": true 948 | }, 949 | "is-fullwidth-code-point": { 950 | "version": "3.0.0", 951 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 952 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 953 | "dev": true 954 | }, 955 | "is-glob": { 956 | "version": "4.0.1", 957 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", 958 | "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", 959 | "dev": true, 960 | "requires": { 961 | "is-extglob": "^2.1.1" 962 | } 963 | }, 964 | "is-regex": { 965 | "version": "1.1.0", 966 | "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.0.tgz", 967 | "integrity": "sha512-iI97M8KTWID2la5uYXlkbSDQIg4F6o1sYboZKKTDpnDQMLtUL86zxhgDet3Q2SriaYsyGqZ6Mn2SjbRKeLHdqw==", 968 | "dev": true, 969 | "requires": { 970 | "has-symbols": "^1.0.1" 971 | } 972 | }, 973 | "is-string": { 974 | "version": "1.0.5", 975 | "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.5.tgz", 976 | "integrity": "sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ==", 977 | "dev": true 978 | }, 979 | "is-symbol": { 980 | "version": "1.0.3", 981 | "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", 982 | "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", 983 | "dev": true, 984 | "requires": { 985 | "has-symbols": "^1.0.1" 986 | } 987 | }, 988 | "isarray": { 989 | "version": "1.0.0", 990 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 991 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", 992 | "dev": true 993 | }, 994 | "isexe": { 995 | "version": "2.0.0", 996 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 997 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 998 | "dev": true 999 | }, 1000 | "js-tokens": { 1001 | "version": "4.0.0", 1002 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 1003 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", 1004 | "dev": true 1005 | }, 1006 | "js-yaml": { 1007 | "version": "3.14.0", 1008 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz", 1009 | "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==", 1010 | "dev": true, 1011 | "requires": { 1012 | "argparse": "^1.0.7", 1013 | "esprima": "^4.0.0" 1014 | } 1015 | }, 1016 | "json-schema-traverse": { 1017 | "version": "0.4.1", 1018 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1019 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 1020 | "dev": true 1021 | }, 1022 | "json-stable-stringify-without-jsonify": { 1023 | "version": "1.0.1", 1024 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 1025 | "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", 1026 | "dev": true 1027 | }, 1028 | "json5": { 1029 | "version": "1.0.1", 1030 | "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", 1031 | "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", 1032 | "dev": true, 1033 | "requires": { 1034 | "minimist": "^1.2.0" 1035 | } 1036 | }, 1037 | "levn": { 1038 | "version": "0.3.0", 1039 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", 1040 | "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", 1041 | "dev": true, 1042 | "requires": { 1043 | "prelude-ls": "~1.1.2", 1044 | "type-check": "~0.3.2" 1045 | } 1046 | }, 1047 | "load-json-file": { 1048 | "version": "2.0.0", 1049 | "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", 1050 | "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", 1051 | "dev": true, 1052 | "requires": { 1053 | "graceful-fs": "^4.1.2", 1054 | "parse-json": "^2.2.0", 1055 | "pify": "^2.0.0", 1056 | "strip-bom": "^3.0.0" 1057 | } 1058 | }, 1059 | "locate-path": { 1060 | "version": "2.0.0", 1061 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", 1062 | "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", 1063 | "dev": true, 1064 | "requires": { 1065 | "p-locate": "^2.0.0", 1066 | "path-exists": "^3.0.0" 1067 | } 1068 | }, 1069 | "lodash": { 1070 | "version": "4.17.15", 1071 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", 1072 | "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", 1073 | "dev": true 1074 | }, 1075 | "mimic-fn": { 1076 | "version": "2.1.0", 1077 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", 1078 | "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", 1079 | "dev": true 1080 | }, 1081 | "minimatch": { 1082 | "version": "3.0.4", 1083 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1084 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1085 | "dev": true, 1086 | "requires": { 1087 | "brace-expansion": "^1.1.7" 1088 | } 1089 | }, 1090 | "minimist": { 1091 | "version": "1.2.5", 1092 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 1093 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", 1094 | "dev": true 1095 | }, 1096 | "mkdirp": { 1097 | "version": "0.5.5", 1098 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", 1099 | "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", 1100 | "dev": true, 1101 | "requires": { 1102 | "minimist": "^1.2.5" 1103 | } 1104 | }, 1105 | "ms": { 1106 | "version": "2.1.2", 1107 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1108 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1109 | "dev": true 1110 | }, 1111 | "mute-stream": { 1112 | "version": "0.0.8", 1113 | "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", 1114 | "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", 1115 | "dev": true 1116 | }, 1117 | "natural-compare": { 1118 | "version": "1.4.0", 1119 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 1120 | "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", 1121 | "dev": true 1122 | }, 1123 | "nice-try": { 1124 | "version": "1.0.5", 1125 | "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", 1126 | "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", 1127 | "dev": true 1128 | }, 1129 | "normalize-package-data": { 1130 | "version": "2.5.0", 1131 | "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", 1132 | "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", 1133 | "dev": true, 1134 | "requires": { 1135 | "hosted-git-info": "^2.1.4", 1136 | "resolve": "^1.10.0", 1137 | "semver": "2 || 3 || 4 || 5", 1138 | "validate-npm-package-license": "^3.0.1" 1139 | }, 1140 | "dependencies": { 1141 | "semver": { 1142 | "version": "5.7.1", 1143 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 1144 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", 1145 | "dev": true 1146 | } 1147 | } 1148 | }, 1149 | "object-inspect": { 1150 | "version": "1.8.0", 1151 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.8.0.tgz", 1152 | "integrity": "sha512-jLdtEOB112fORuypAyl/50VRVIBIdVQOSUUGQHzJ4xBSbit81zRarz7GThkEFZy1RceYrWYcPcBFPQwHyAc1gA==", 1153 | "dev": true 1154 | }, 1155 | "object-keys": { 1156 | "version": "1.1.1", 1157 | "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", 1158 | "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", 1159 | "dev": true 1160 | }, 1161 | "object.assign": { 1162 | "version": "4.1.0", 1163 | "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", 1164 | "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", 1165 | "dev": true, 1166 | "requires": { 1167 | "define-properties": "^1.1.2", 1168 | "function-bind": "^1.1.1", 1169 | "has-symbols": "^1.0.0", 1170 | "object-keys": "^1.0.11" 1171 | } 1172 | }, 1173 | "object.values": { 1174 | "version": "1.1.1", 1175 | "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.1.tgz", 1176 | "integrity": "sha512-WTa54g2K8iu0kmS/us18jEmdv1a4Wi//BZ/DTVYEcH0XhLM5NYdpDHja3gt57VrZLcNAO2WGA+KpWsDBaHt6eA==", 1177 | "dev": true, 1178 | "requires": { 1179 | "define-properties": "^1.1.3", 1180 | "es-abstract": "^1.17.0-next.1", 1181 | "function-bind": "^1.1.1", 1182 | "has": "^1.0.3" 1183 | } 1184 | }, 1185 | "once": { 1186 | "version": "1.4.0", 1187 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1188 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1189 | "dev": true, 1190 | "requires": { 1191 | "wrappy": "1" 1192 | } 1193 | }, 1194 | "onetime": { 1195 | "version": "5.1.0", 1196 | "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz", 1197 | "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==", 1198 | "dev": true, 1199 | "requires": { 1200 | "mimic-fn": "^2.1.0" 1201 | } 1202 | }, 1203 | "optionator": { 1204 | "version": "0.8.3", 1205 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", 1206 | "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", 1207 | "dev": true, 1208 | "requires": { 1209 | "deep-is": "~0.1.3", 1210 | "fast-levenshtein": "~2.0.6", 1211 | "levn": "~0.3.0", 1212 | "prelude-ls": "~1.1.2", 1213 | "type-check": "~0.3.2", 1214 | "word-wrap": "~1.2.3" 1215 | } 1216 | }, 1217 | "os-tmpdir": { 1218 | "version": "1.0.2", 1219 | "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", 1220 | "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", 1221 | "dev": true 1222 | }, 1223 | "p-limit": { 1224 | "version": "1.3.0", 1225 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", 1226 | "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", 1227 | "dev": true, 1228 | "requires": { 1229 | "p-try": "^1.0.0" 1230 | } 1231 | }, 1232 | "p-locate": { 1233 | "version": "2.0.0", 1234 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", 1235 | "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", 1236 | "dev": true, 1237 | "requires": { 1238 | "p-limit": "^1.1.0" 1239 | } 1240 | }, 1241 | "p-try": { 1242 | "version": "1.0.0", 1243 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", 1244 | "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", 1245 | "dev": true 1246 | }, 1247 | "parent-module": { 1248 | "version": "1.0.1", 1249 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 1250 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 1251 | "dev": true, 1252 | "requires": { 1253 | "callsites": "^3.0.0" 1254 | } 1255 | }, 1256 | "parse-json": { 1257 | "version": "2.2.0", 1258 | "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", 1259 | "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", 1260 | "dev": true, 1261 | "requires": { 1262 | "error-ex": "^1.2.0" 1263 | } 1264 | }, 1265 | "path-exists": { 1266 | "version": "3.0.0", 1267 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", 1268 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", 1269 | "dev": true 1270 | }, 1271 | "path-is-absolute": { 1272 | "version": "1.0.1", 1273 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1274 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 1275 | "dev": true 1276 | }, 1277 | "path-key": { 1278 | "version": "2.0.1", 1279 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", 1280 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", 1281 | "dev": true 1282 | }, 1283 | "path-parse": { 1284 | "version": "1.0.6", 1285 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", 1286 | "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", 1287 | "dev": true 1288 | }, 1289 | "path-type": { 1290 | "version": "2.0.0", 1291 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz", 1292 | "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", 1293 | "dev": true, 1294 | "requires": { 1295 | "pify": "^2.0.0" 1296 | } 1297 | }, 1298 | "pify": { 1299 | "version": "2.3.0", 1300 | "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", 1301 | "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", 1302 | "dev": true 1303 | }, 1304 | "pkg-dir": { 1305 | "version": "2.0.0", 1306 | "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", 1307 | "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", 1308 | "dev": true, 1309 | "requires": { 1310 | "find-up": "^2.1.0" 1311 | } 1312 | }, 1313 | "prelude-ls": { 1314 | "version": "1.1.2", 1315 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", 1316 | "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", 1317 | "dev": true 1318 | }, 1319 | "progress": { 1320 | "version": "2.0.3", 1321 | "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", 1322 | "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", 1323 | "dev": true 1324 | }, 1325 | "punycode": { 1326 | "version": "2.1.1", 1327 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 1328 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", 1329 | "dev": true 1330 | }, 1331 | "read-pkg": { 1332 | "version": "2.0.0", 1333 | "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", 1334 | "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", 1335 | "dev": true, 1336 | "requires": { 1337 | "load-json-file": "^2.0.0", 1338 | "normalize-package-data": "^2.3.2", 1339 | "path-type": "^2.0.0" 1340 | } 1341 | }, 1342 | "read-pkg-up": { 1343 | "version": "2.0.0", 1344 | "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", 1345 | "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", 1346 | "dev": true, 1347 | "requires": { 1348 | "find-up": "^2.0.0", 1349 | "read-pkg": "^2.0.0" 1350 | } 1351 | }, 1352 | "regexpp": { 1353 | "version": "2.0.1", 1354 | "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", 1355 | "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", 1356 | "dev": true 1357 | }, 1358 | "resolve": { 1359 | "version": "1.17.0", 1360 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", 1361 | "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", 1362 | "dev": true, 1363 | "requires": { 1364 | "path-parse": "^1.0.6" 1365 | } 1366 | }, 1367 | "resolve-from": { 1368 | "version": "4.0.0", 1369 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 1370 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 1371 | "dev": true 1372 | }, 1373 | "restore-cursor": { 1374 | "version": "3.1.0", 1375 | "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", 1376 | "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", 1377 | "dev": true, 1378 | "requires": { 1379 | "onetime": "^5.1.0", 1380 | "signal-exit": "^3.0.2" 1381 | } 1382 | }, 1383 | "rimraf": { 1384 | "version": "2.6.3", 1385 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", 1386 | "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", 1387 | "dev": true, 1388 | "requires": { 1389 | "glob": "^7.1.3" 1390 | } 1391 | }, 1392 | "run-async": { 1393 | "version": "2.4.1", 1394 | "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", 1395 | "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", 1396 | "dev": true 1397 | }, 1398 | "rxjs": { 1399 | "version": "6.6.0", 1400 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.0.tgz", 1401 | "integrity": "sha512-3HMA8z/Oz61DUHe+SdOiQyzIf4tOx5oQHmMir7IZEu6TMqCLHT4LRcmNaUS0NwOz8VLvmmBduMsoaUvMaIiqzg==", 1402 | "dev": true, 1403 | "requires": { 1404 | "tslib": "^1.9.0" 1405 | } 1406 | }, 1407 | "safer-buffer": { 1408 | "version": "2.1.2", 1409 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1410 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", 1411 | "dev": true 1412 | }, 1413 | "semver": { 1414 | "version": "6.3.0", 1415 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 1416 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", 1417 | "dev": true 1418 | }, 1419 | "shebang-command": { 1420 | "version": "1.2.0", 1421 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", 1422 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", 1423 | "dev": true, 1424 | "requires": { 1425 | "shebang-regex": "^1.0.0" 1426 | } 1427 | }, 1428 | "shebang-regex": { 1429 | "version": "1.0.0", 1430 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", 1431 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", 1432 | "dev": true 1433 | }, 1434 | "signal-exit": { 1435 | "version": "3.0.3", 1436 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", 1437 | "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", 1438 | "dev": true 1439 | }, 1440 | "slice-ansi": { 1441 | "version": "2.1.0", 1442 | "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", 1443 | "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", 1444 | "dev": true, 1445 | "requires": { 1446 | "ansi-styles": "^3.2.0", 1447 | "astral-regex": "^1.0.0", 1448 | "is-fullwidth-code-point": "^2.0.0" 1449 | }, 1450 | "dependencies": { 1451 | "is-fullwidth-code-point": { 1452 | "version": "2.0.0", 1453 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 1454 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 1455 | "dev": true 1456 | } 1457 | } 1458 | }, 1459 | "spdx-correct": { 1460 | "version": "3.1.1", 1461 | "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", 1462 | "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", 1463 | "dev": true, 1464 | "requires": { 1465 | "spdx-expression-parse": "^3.0.0", 1466 | "spdx-license-ids": "^3.0.0" 1467 | } 1468 | }, 1469 | "spdx-exceptions": { 1470 | "version": "2.3.0", 1471 | "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", 1472 | "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", 1473 | "dev": true 1474 | }, 1475 | "spdx-expression-parse": { 1476 | "version": "3.0.1", 1477 | "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", 1478 | "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", 1479 | "dev": true, 1480 | "requires": { 1481 | "spdx-exceptions": "^2.1.0", 1482 | "spdx-license-ids": "^3.0.0" 1483 | } 1484 | }, 1485 | "spdx-license-ids": { 1486 | "version": "3.0.5", 1487 | "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz", 1488 | "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==", 1489 | "dev": true 1490 | }, 1491 | "sprintf-js": { 1492 | "version": "1.0.3", 1493 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 1494 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", 1495 | "dev": true 1496 | }, 1497 | "string-width": { 1498 | "version": "4.2.0", 1499 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", 1500 | "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", 1501 | "dev": true, 1502 | "requires": { 1503 | "emoji-regex": "^8.0.0", 1504 | "is-fullwidth-code-point": "^3.0.0", 1505 | "strip-ansi": "^6.0.0" 1506 | }, 1507 | "dependencies": { 1508 | "strip-ansi": { 1509 | "version": "6.0.0", 1510 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", 1511 | "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", 1512 | "dev": true, 1513 | "requires": { 1514 | "ansi-regex": "^5.0.0" 1515 | } 1516 | } 1517 | } 1518 | }, 1519 | "string.prototype.trimend": { 1520 | "version": "1.0.1", 1521 | "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.1.tgz", 1522 | "integrity": "sha512-LRPxFUaTtpqYsTeNKaFOw3R4bxIzWOnbQ837QfBylo8jIxtcbK/A/sMV7Q+OAV/vWo+7s25pOE10KYSjaSO06g==", 1523 | "dev": true, 1524 | "requires": { 1525 | "define-properties": "^1.1.3", 1526 | "es-abstract": "^1.17.5" 1527 | } 1528 | }, 1529 | "string.prototype.trimstart": { 1530 | "version": "1.0.1", 1531 | "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.1.tgz", 1532 | "integrity": "sha512-XxZn+QpvrBI1FOcg6dIpxUPgWCPuNXvMD72aaRaUQv1eD4e/Qy8i/hFTe0BUmD60p/QA6bh1avmuPTfNjqVWRw==", 1533 | "dev": true, 1534 | "requires": { 1535 | "define-properties": "^1.1.3", 1536 | "es-abstract": "^1.17.5" 1537 | } 1538 | }, 1539 | "strip-ansi": { 1540 | "version": "5.2.0", 1541 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 1542 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 1543 | "dev": true, 1544 | "requires": { 1545 | "ansi-regex": "^4.1.0" 1546 | }, 1547 | "dependencies": { 1548 | "ansi-regex": { 1549 | "version": "4.1.0", 1550 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 1551 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 1552 | "dev": true 1553 | } 1554 | } 1555 | }, 1556 | "strip-bom": { 1557 | "version": "3.0.0", 1558 | "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", 1559 | "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", 1560 | "dev": true 1561 | }, 1562 | "strip-json-comments": { 1563 | "version": "3.1.0", 1564 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.0.tgz", 1565 | "integrity": "sha512-e6/d0eBu7gHtdCqFt0xJr642LdToM5/cN4Qb9DbHjVx1CP5RyeM+zH7pbecEmDv/lBqb0QH+6Uqq75rxFPkM0w==", 1566 | "dev": true 1567 | }, 1568 | "supports-color": { 1569 | "version": "5.5.0", 1570 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1571 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1572 | "dev": true, 1573 | "requires": { 1574 | "has-flag": "^3.0.0" 1575 | } 1576 | }, 1577 | "table": { 1578 | "version": "5.4.6", 1579 | "resolved": "https://registry.npmjs.org/table/-/table-5.4.6.tgz", 1580 | "integrity": "sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug==", 1581 | "dev": true, 1582 | "requires": { 1583 | "ajv": "^6.10.2", 1584 | "lodash": "^4.17.14", 1585 | "slice-ansi": "^2.1.0", 1586 | "string-width": "^3.0.0" 1587 | }, 1588 | "dependencies": { 1589 | "emoji-regex": { 1590 | "version": "7.0.3", 1591 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", 1592 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", 1593 | "dev": true 1594 | }, 1595 | "is-fullwidth-code-point": { 1596 | "version": "2.0.0", 1597 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 1598 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 1599 | "dev": true 1600 | }, 1601 | "string-width": { 1602 | "version": "3.1.0", 1603 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 1604 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 1605 | "dev": true, 1606 | "requires": { 1607 | "emoji-regex": "^7.0.1", 1608 | "is-fullwidth-code-point": "^2.0.0", 1609 | "strip-ansi": "^5.1.0" 1610 | } 1611 | } 1612 | } 1613 | }, 1614 | "text-table": { 1615 | "version": "0.2.0", 1616 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 1617 | "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", 1618 | "dev": true 1619 | }, 1620 | "through": { 1621 | "version": "2.3.8", 1622 | "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", 1623 | "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", 1624 | "dev": true 1625 | }, 1626 | "tmp": { 1627 | "version": "0.0.33", 1628 | "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", 1629 | "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", 1630 | "dev": true, 1631 | "requires": { 1632 | "os-tmpdir": "~1.0.2" 1633 | } 1634 | }, 1635 | "tsconfig-paths": { 1636 | "version": "3.9.0", 1637 | "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz", 1638 | "integrity": "sha512-dRcuzokWhajtZWkQsDVKbWyY+jgcLC5sqJhg2PSgf4ZkH2aHPvaOY8YWGhmjb68b5qqTfasSsDO9k7RUiEmZAw==", 1639 | "dev": true, 1640 | "requires": { 1641 | "@types/json5": "^0.0.29", 1642 | "json5": "^1.0.1", 1643 | "minimist": "^1.2.0", 1644 | "strip-bom": "^3.0.0" 1645 | } 1646 | }, 1647 | "tslib": { 1648 | "version": "1.13.0", 1649 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", 1650 | "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==", 1651 | "dev": true 1652 | }, 1653 | "type-check": { 1654 | "version": "0.3.2", 1655 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", 1656 | "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", 1657 | "dev": true, 1658 | "requires": { 1659 | "prelude-ls": "~1.1.2" 1660 | } 1661 | }, 1662 | "type-fest": { 1663 | "version": "0.8.1", 1664 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", 1665 | "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", 1666 | "dev": true 1667 | }, 1668 | "uri-js": { 1669 | "version": "4.2.2", 1670 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", 1671 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", 1672 | "dev": true, 1673 | "requires": { 1674 | "punycode": "^2.1.0" 1675 | } 1676 | }, 1677 | "v8-compile-cache": { 1678 | "version": "2.1.1", 1679 | "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.1.1.tgz", 1680 | "integrity": "sha512-8OQ9CL+VWyt3JStj7HX7/ciTL2V3Rl1Wf5OL+SNTm0yK1KvtReVulksyeRnCANHHuUxHlQig+JJDlUhBt1NQDQ==", 1681 | "dev": true 1682 | }, 1683 | "validate-npm-package-license": { 1684 | "version": "3.0.4", 1685 | "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", 1686 | "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", 1687 | "dev": true, 1688 | "requires": { 1689 | "spdx-correct": "^3.0.0", 1690 | "spdx-expression-parse": "^3.0.0" 1691 | } 1692 | }, 1693 | "which": { 1694 | "version": "1.3.1", 1695 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", 1696 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", 1697 | "dev": true, 1698 | "requires": { 1699 | "isexe": "^2.0.0" 1700 | } 1701 | }, 1702 | "word-wrap": { 1703 | "version": "1.2.3", 1704 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", 1705 | "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", 1706 | "dev": true 1707 | }, 1708 | "wrappy": { 1709 | "version": "1.0.2", 1710 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1711 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 1712 | "dev": true 1713 | }, 1714 | "write": { 1715 | "version": "1.0.3", 1716 | "resolved": "https://registry.npmjs.org/write/-/write-1.0.3.tgz", 1717 | "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==", 1718 | "dev": true, 1719 | "requires": { 1720 | "mkdirp": "^0.5.1" 1721 | } 1722 | } 1723 | } 1724 | } 1725 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-wkwebview-engine", 3 | "version": "1.2.3-dev", 4 | "description": "The official Apache Cordova WKWebView Engine Plugin", 5 | "main": "index.js", 6 | "repository": "github:apache/cordova-plugin-wkwebview-engine", 7 | "bugs": "https://github.com/apache/cordova-plugin-wkwebview-engine/issues", 8 | "keywords": [ 9 | "cordova", 10 | "wkwebview", 11 | "cordova-ios", 12 | "ecosystem:cordova" 13 | ], 14 | "scripts": { 15 | "test": "npm run lint && npm run objc-tests", 16 | "objc-tests": "cd tests/ios && npm test", 17 | "preobjc-tests": "cd tests/ios && npm install", 18 | "lint": "eslint ." 19 | }, 20 | "author": "Apache Software Foundation", 21 | "license": "Apache-2.0", 22 | "engines": { 23 | "cordovaDependencies": { 24 | "2.0.0": { 25 | "cordova": ">100", 26 | "cordova-ios": "<6.0.0" 27 | } 28 | } 29 | }, 30 | "devDependencies": { 31 | "@cordova/eslint-config": "^3.0.0" 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | 26 | Cordova WKWebView Engine 27 | Cordova WKWebView Engine Plugin 28 | Apache 2.0 29 | cordova,wkwebview,webview 30 | https://github.com/apache/cordova-plugin-wkwebview-engine 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /src/ios/CDVWKProcessPoolFactory.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | 22 | @interface CDVWKProcessPoolFactory : NSObject 23 | @property (nonatomic, retain) WKProcessPool* sharedPool; 24 | 25 | +(instancetype) sharedFactory; 26 | -(WKProcessPool*) sharedProcessPool; 27 | @end 28 | -------------------------------------------------------------------------------- /src/ios/CDVWKProcessPoolFactory.m: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | #import 22 | #import "CDVWKProcessPoolFactory.h" 23 | 24 | static CDVWKProcessPoolFactory *factory = nil; 25 | 26 | @implementation CDVWKProcessPoolFactory 27 | 28 | + (instancetype)sharedFactory 29 | { 30 | static dispatch_once_t onceToken; 31 | dispatch_once(&onceToken, ^{ 32 | factory = [[CDVWKProcessPoolFactory alloc] init]; 33 | }); 34 | 35 | return factory; 36 | } 37 | 38 | - (instancetype)init 39 | { 40 | if (self = [super init]) { 41 | _sharedPool = [[WKProcessPool alloc] init]; 42 | } 43 | return self; 44 | } 45 | 46 | - (WKProcessPool*) sharedProcessPool { 47 | return _sharedPool; 48 | } 49 | @end 50 | -------------------------------------------------------------------------------- /src/ios/CDVWKWebViewEngine.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | #import 22 | 23 | @interface CDVWKWebViewEngine : CDVPlugin 24 | 25 | @property (nonatomic, strong, readonly) id uiDelegate; 26 | 27 | - (void)allowsBackForwardNavigationGestures:(CDVInvokedUrlCommand*)command; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /src/ios/CDVWKWebViewEngine.m: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import "CDVWKWebViewEngine.h" 21 | #import "CDVWKWebViewUIDelegate.h" 22 | #import "CDVWKProcessPoolFactory.h" 23 | #import 24 | 25 | #import 26 | 27 | #define CDV_BRIDGE_NAME @"cordova" 28 | #define CDV_WKWEBVIEW_FILE_URL_LOAD_SELECTOR @"loadFileURL:allowingReadAccessToURL:" 29 | 30 | @interface CDVWKWeakScriptMessageHandler : NSObject 31 | 32 | @property (nonatomic, weak, readonly) idscriptMessageHandler; 33 | 34 | - (instancetype)initWithScriptMessageHandler:(id)scriptMessageHandler; 35 | 36 | @end 37 | 38 | 39 | @interface CDVWKWebViewEngine () 40 | 41 | @property (nonatomic, strong, readwrite) UIView* engineWebView; 42 | @property (nonatomic, strong, readwrite) id uiDelegate; 43 | @property (nonatomic, weak) id weakScriptMessageHandler; 44 | 45 | @end 46 | 47 | // see forwardingTargetForSelector: selector comment for the reason for this pragma 48 | #pragma clang diagnostic ignored "-Wprotocol" 49 | 50 | @implementation CDVWKWebViewEngine 51 | 52 | @synthesize engineWebView = _engineWebView; 53 | 54 | - (instancetype)initWithFrame:(CGRect)frame 55 | { 56 | self = [super init]; 57 | if (self) { 58 | if (NSClassFromString(@"WKWebView") == nil) { 59 | return nil; 60 | } 61 | 62 | self.engineWebView = [[WKWebView alloc] initWithFrame:frame]; 63 | } 64 | 65 | return self; 66 | } 67 | 68 | - (WKWebViewConfiguration*) createConfigurationFromSettings:(NSDictionary*)settings 69 | { 70 | WKWebViewConfiguration* configuration = [[WKWebViewConfiguration alloc] init]; 71 | configuration.processPool = [[CDVWKProcessPoolFactory sharedFactory] sharedProcessPool]; 72 | if (settings == nil) { 73 | return configuration; 74 | } 75 | 76 | configuration.allowsInlineMediaPlayback = [settings cordovaBoolSettingForKey:@"AllowInlineMediaPlayback" defaultValue:NO]; 77 | configuration.mediaPlaybackRequiresUserAction = [settings cordovaBoolSettingForKey:@"MediaPlaybackRequiresUserAction" defaultValue:YES]; 78 | configuration.suppressesIncrementalRendering = [settings cordovaBoolSettingForKey:@"SuppressesIncrementalRendering" defaultValue:NO]; 79 | configuration.mediaPlaybackAllowsAirPlay = [settings cordovaBoolSettingForKey:@"MediaPlaybackAllowsAirPlay" defaultValue:YES]; 80 | return configuration; 81 | } 82 | 83 | - (void)pluginInitialize 84 | { 85 | // viewController would be available now. we attempt to set all possible delegates to it, by default 86 | NSDictionary* settings = self.commandDelegate.settings; 87 | 88 | self.uiDelegate = [[CDVWKWebViewUIDelegate alloc] initWithTitle:[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"]]; 89 | 90 | CDVWKWeakScriptMessageHandler *weakScriptMessageHandler = [[CDVWKWeakScriptMessageHandler alloc] initWithScriptMessageHandler:self]; 91 | 92 | WKUserContentController* userContentController = [[WKUserContentController alloc] init]; 93 | [userContentController addScriptMessageHandler:weakScriptMessageHandler name:CDV_BRIDGE_NAME]; 94 | 95 | WKWebViewConfiguration* configuration = [self createConfigurationFromSettings:settings]; 96 | configuration.userContentController = userContentController; 97 | 98 | // re-create WKWebView, since we need to update configuration 99 | WKWebView* wkWebView = [[WKWebView alloc] initWithFrame:self.engineWebView.frame configuration:configuration]; 100 | wkWebView.UIDelegate = self.uiDelegate; 101 | self.engineWebView = wkWebView; 102 | 103 | if (IsAtLeastiOSVersion(@"9.0") && [self.viewController isKindOfClass:[CDVViewController class]]) { 104 | wkWebView.customUserAgent = ((CDVViewController*) self.viewController).userAgent; 105 | } 106 | 107 | if ([self.viewController conformsToProtocol:@protocol(WKUIDelegate)]) { 108 | wkWebView.UIDelegate = (id )self.viewController; 109 | } 110 | 111 | if ([self.viewController conformsToProtocol:@protocol(WKNavigationDelegate)]) { 112 | wkWebView.navigationDelegate = (id )self.viewController; 113 | } else { 114 | wkWebView.navigationDelegate = (id )self; 115 | } 116 | 117 | if ([self.viewController conformsToProtocol:@protocol(WKScriptMessageHandler)]) { 118 | [wkWebView.configuration.userContentController addScriptMessageHandler:(id < WKScriptMessageHandler >)self.viewController name:CDV_BRIDGE_NAME]; 119 | } 120 | 121 | [self updateSettings:settings]; 122 | 123 | // check if content thread has died on resume 124 | NSLog(@"%@", @"CDVWKWebViewEngine will reload WKWebView if required on resume"); 125 | [[NSNotificationCenter defaultCenter] 126 | addObserver:self 127 | selector:@selector(onAppWillEnterForeground:) 128 | name:UIApplicationWillEnterForegroundNotification object:nil]; 129 | 130 | NSLog(@"Using WKWebView"); 131 | 132 | [self addURLObserver]; 133 | } 134 | 135 | - (void)onReset { 136 | [self addURLObserver]; 137 | } 138 | 139 | static void * KVOContext = &KVOContext; 140 | 141 | - (void)addURLObserver { 142 | if(!IsAtLeastiOSVersion(@"9.0")){ 143 | [self.webView addObserver:self forKeyPath:@"URL" options:0 context:KVOContext]; 144 | } 145 | } 146 | 147 | - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context 148 | { 149 | if (context == KVOContext) { 150 | if (object == [self webView] && [keyPath isEqualToString: @"URL"] && [object valueForKeyPath:keyPath] == nil){ 151 | NSLog(@"URL is nil. Reloading WKWebView"); 152 | [(WKWebView*)_engineWebView reload]; 153 | } 154 | } else { 155 | [super observeValueForKeyPath:keyPath ofObject:object change:change context:context]; 156 | } 157 | } 158 | 159 | - (void) onAppWillEnterForeground:(NSNotification*)notification { 160 | if ([self shouldReloadWebView]) { 161 | NSLog(@"%@", @"CDVWKWebViewEngine reloading!"); 162 | [(WKWebView*)_engineWebView reload]; 163 | } 164 | } 165 | 166 | - (BOOL)shouldReloadWebView 167 | { 168 | WKWebView* wkWebView = (WKWebView*)_engineWebView; 169 | return [self shouldReloadWebView:wkWebView.URL title:wkWebView.title]; 170 | } 171 | 172 | - (BOOL)shouldReloadWebView:(NSURL*)location title:(NSString*)title 173 | { 174 | BOOL title_is_nil = (title == nil); 175 | BOOL location_is_blank = [[location absoluteString] isEqualToString:@"about:blank"]; 176 | 177 | BOOL reload = (title_is_nil || location_is_blank); 178 | 179 | #ifdef DEBUG 180 | NSLog(@"%@", @"CDVWKWebViewEngine shouldReloadWebView::"); 181 | NSLog(@"CDVWKWebViewEngine shouldReloadWebView title: %@", title); 182 | NSLog(@"CDVWKWebViewEngine shouldReloadWebView location: %@", [location absoluteString]); 183 | NSLog(@"CDVWKWebViewEngine shouldReloadWebView reload: %u", reload); 184 | #endif 185 | 186 | return reload; 187 | } 188 | 189 | 190 | - (id)loadRequest:(NSURLRequest*)request 191 | { 192 | if ([self canLoadRequest:request]) { // can load, differentiate between file urls and other schemes 193 | if (request.URL.fileURL) { 194 | SEL wk_sel = NSSelectorFromString(CDV_WKWEBVIEW_FILE_URL_LOAD_SELECTOR); 195 | NSURL* readAccessUrl = [request.URL URLByDeletingLastPathComponent]; 196 | return ((id (*)(id, SEL, id, id))objc_msgSend)(_engineWebView, wk_sel, request.URL, readAccessUrl); 197 | } else { 198 | return [(WKWebView*)_engineWebView loadRequest:request]; 199 | } 200 | } else { // can't load, print out error 201 | NSString* errorHtml = [NSString stringWithFormat: 202 | @"" 203 | @"Error" 204 | @"
" 205 | @"

The WebView engine '%@' is unable to load the request: %@

" 206 | @"

Most likely the cause of the error is that the loading of file urls is not supported in iOS %@.

" 207 | @"
", 208 | NSStringFromClass([self class]), 209 | [request.URL description], 210 | [[UIDevice currentDevice] systemVersion] 211 | ]; 212 | return [self loadHTMLString:errorHtml baseURL:nil]; 213 | } 214 | } 215 | 216 | - (id)loadHTMLString:(NSString*)string baseURL:(NSURL*)baseURL 217 | { 218 | return [(WKWebView*)_engineWebView loadHTMLString:string baseURL:baseURL]; 219 | } 220 | 221 | - (NSURL*) URL 222 | { 223 | return [(WKWebView*)_engineWebView URL]; 224 | } 225 | 226 | - (BOOL) canLoadRequest:(NSURLRequest*)request 227 | { 228 | // See: https://issues.apache.org/jira/browse/CB-9636 229 | SEL wk_sel = NSSelectorFromString(CDV_WKWEBVIEW_FILE_URL_LOAD_SELECTOR); 230 | 231 | // if it's a file URL, check whether WKWebView has the selector (which is in iOS 9 and up only) 232 | if (request.URL.fileURL) { 233 | return [_engineWebView respondsToSelector:wk_sel]; 234 | } else { 235 | return YES; 236 | } 237 | } 238 | 239 | - (void)updateSettings:(NSDictionary*)settings 240 | { 241 | WKWebView* wkWebView = (WKWebView*)_engineWebView; 242 | 243 | wkWebView.configuration.preferences.minimumFontSize = [settings cordovaFloatSettingForKey:@"MinimumFontSize" defaultValue:0.0]; 244 | 245 | /* 246 | wkWebView.configuration.preferences.javaScriptEnabled = [settings cordovaBoolSettingForKey:@"JavaScriptEnabled" default:YES]; 247 | wkWebView.configuration.preferences.javaScriptCanOpenWindowsAutomatically = [settings cordovaBoolSettingForKey:@"JavaScriptCanOpenWindowsAutomatically" default:NO]; 248 | */ 249 | 250 | // By default, DisallowOverscroll is false (thus bounce is allowed) 251 | BOOL bounceAllowed = !([settings cordovaBoolSettingForKey:@"DisallowOverscroll" defaultValue:NO]); 252 | 253 | // prevent webView from bouncing 254 | if (!bounceAllowed) { 255 | if ([wkWebView respondsToSelector:@selector(scrollView)]) { 256 | ((UIScrollView*)[wkWebView scrollView]).bounces = NO; 257 | } else { 258 | for (id subview in wkWebView.subviews) { 259 | if ([[subview class] isSubclassOfClass:[UIScrollView class]]) { 260 | ((UIScrollView*)subview).bounces = NO; 261 | } 262 | } 263 | } 264 | } 265 | 266 | NSString* decelerationSetting = [settings cordovaSettingForKey:@"WKWebViewDecelerationSpeed"]; 267 | if (!decelerationSetting) { 268 | // Fallback to the UIWebView-named preference 269 | decelerationSetting = [settings cordovaSettingForKey:@"UIWebViewDecelerationSpeed"]; 270 | } 271 | 272 | if (![@"fast" isEqualToString:decelerationSetting]) { 273 | [wkWebView.scrollView setDecelerationRate:UIScrollViewDecelerationRateNormal]; 274 | } else { 275 | [wkWebView.scrollView setDecelerationRate:UIScrollViewDecelerationRateFast]; 276 | } 277 | 278 | wkWebView.allowsBackForwardNavigationGestures = [settings cordovaBoolSettingForKey:@"AllowBackForwardNavigationGestures" defaultValue:NO]; 279 | wkWebView.allowsLinkPreview = [settings cordovaBoolSettingForKey:@"Allow3DTouchLinkPreview" defaultValue:YES]; 280 | } 281 | 282 | - (void)updateWithInfo:(NSDictionary*)info 283 | { 284 | NSDictionary* scriptMessageHandlers = [info objectForKey:kCDVWebViewEngineScriptMessageHandlers]; 285 | NSDictionary* settings = [info objectForKey:kCDVWebViewEngineWebViewPreferences]; 286 | id navigationDelegate = [info objectForKey:kCDVWebViewEngineWKNavigationDelegate]; 287 | id uiDelegate = [info objectForKey:kCDVWebViewEngineWKUIDelegate]; 288 | 289 | WKWebView* wkWebView = (WKWebView*)_engineWebView; 290 | 291 | if (scriptMessageHandlers && [scriptMessageHandlers isKindOfClass:[NSDictionary class]]) { 292 | NSArray* allKeys = [scriptMessageHandlers allKeys]; 293 | 294 | for (NSString* key in allKeys) { 295 | id object = [scriptMessageHandlers objectForKey:key]; 296 | if ([object conformsToProtocol:@protocol(WKScriptMessageHandler)]) { 297 | [wkWebView.configuration.userContentController addScriptMessageHandler:object name:key]; 298 | } 299 | } 300 | } 301 | 302 | if (navigationDelegate && [navigationDelegate conformsToProtocol:@protocol(WKNavigationDelegate)]) { 303 | wkWebView.navigationDelegate = navigationDelegate; 304 | } 305 | 306 | if (uiDelegate && [uiDelegate conformsToProtocol:@protocol(WKUIDelegate)]) { 307 | wkWebView.UIDelegate = uiDelegate; 308 | } 309 | 310 | if (settings && [settings isKindOfClass:[NSDictionary class]]) { 311 | [self updateSettings:settings]; 312 | } 313 | } 314 | 315 | // This forwards the methods that are in the header that are not implemented here. 316 | // Both WKWebView and UIWebView implement the below: 317 | // loadHTMLString:baseURL: 318 | // loadRequest: 319 | - (id)forwardingTargetForSelector:(SEL)aSelector 320 | { 321 | return _engineWebView; 322 | } 323 | 324 | - (UIView*)webView 325 | { 326 | return self.engineWebView; 327 | } 328 | 329 | #pragma mark WKScriptMessageHandler implementation 330 | 331 | - (void)userContentController:(WKUserContentController*)userContentController didReceiveScriptMessage:(WKScriptMessage*)message 332 | { 333 | if (![message.name isEqualToString:CDV_BRIDGE_NAME]) { 334 | return; 335 | } 336 | 337 | CDVViewController* vc = (CDVViewController*)self.viewController; 338 | 339 | NSArray* jsonEntry = message.body; // NSString:callbackId, NSString:service, NSString:action, NSArray:args 340 | CDVInvokedUrlCommand* command = [CDVInvokedUrlCommand commandFromJson:jsonEntry]; 341 | CDV_EXEC_LOG(@"Exec(%@): Calling %@.%@", command.callbackId, command.className, command.methodName); 342 | 343 | if (![vc.commandQueue execute:command]) { 344 | #ifdef DEBUG 345 | NSError* error = nil; 346 | NSString* commandJson = nil; 347 | NSData* jsonData = [NSJSONSerialization dataWithJSONObject:jsonEntry 348 | options:0 349 | error:&error]; 350 | 351 | if (error == nil) { 352 | commandJson = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]; 353 | } 354 | 355 | static NSUInteger maxLogLength = 1024; 356 | NSString* commandString = ([commandJson length] > maxLogLength) ? 357 | [NSString stringWithFormat : @"%@[...]", [commandJson substringToIndex:maxLogLength]] : 358 | commandJson; 359 | 360 | NSLog(@"FAILED pluginJSON = %@", commandString); 361 | #endif 362 | } 363 | } 364 | 365 | #pragma mark WKNavigationDelegate implementation 366 | 367 | - (void)webView:(WKWebView*)webView didStartProvisionalNavigation:(WKNavigation*)navigation 368 | { 369 | [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginResetNotification object:webView]]; 370 | } 371 | 372 | - (void)webView:(WKWebView*)webView didFinishNavigation:(WKNavigation*)navigation 373 | { 374 | CDVViewController* vc = (CDVViewController*)self.viewController; 375 | [CDVUserAgentUtil releaseLock:vc.userAgentLockToken]; 376 | 377 | [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPageDidLoadNotification object:webView]]; 378 | } 379 | 380 | - (void)webView:(WKWebView*)theWebView didFailProvisionalNavigation:(WKNavigation*)navigation withError:(NSError*)error 381 | { 382 | [self webView:theWebView didFailNavigation:navigation withError:error]; 383 | } 384 | 385 | - (void)webView:(WKWebView*)theWebView didFailNavigation:(WKNavigation*)navigation withError:(NSError*)error 386 | { 387 | CDVViewController* vc = (CDVViewController*)self.viewController; 388 | [CDVUserAgentUtil releaseLock:vc.userAgentLockToken]; 389 | 390 | NSString* message = [NSString stringWithFormat:@"Failed to load webpage with error: %@", [error localizedDescription]]; 391 | NSLog(@"%@", message); 392 | 393 | NSURL* errorUrl = vc.errorURL; 394 | if (errorUrl) { 395 | errorUrl = [NSURL URLWithString:[NSString stringWithFormat:@"?error=%@", [message stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]] relativeToURL:errorUrl]; 396 | NSLog(@"%@", [errorUrl absoluteString]); 397 | [theWebView loadRequest:[NSURLRequest requestWithURL:errorUrl]]; 398 | } 399 | } 400 | 401 | - (void)webViewWebContentProcessDidTerminate:(WKWebView *)webView 402 | { 403 | [webView reload]; 404 | } 405 | 406 | - (BOOL)defaultResourcePolicyForURL:(NSURL*)url 407 | { 408 | // all file:// urls are allowed 409 | if ([url isFileURL]) { 410 | return YES; 411 | } 412 | 413 | return NO; 414 | } 415 | 416 | - (void) webView: (WKWebView *) webView decidePolicyForNavigationAction: (WKNavigationAction*) navigationAction decisionHandler: (void (^)(WKNavigationActionPolicy)) decisionHandler 417 | { 418 | NSURL* url = [navigationAction.request URL]; 419 | CDVViewController* vc = (CDVViewController*)self.viewController; 420 | 421 | /* 422 | * Give plugins the chance to handle the url 423 | */ 424 | BOOL anyPluginsResponded = NO; 425 | BOOL shouldAllowRequest = NO; 426 | 427 | for (NSString* pluginName in vc.pluginObjects) { 428 | CDVPlugin* plugin = [vc.pluginObjects objectForKey:pluginName]; 429 | SEL selector = NSSelectorFromString(@"shouldOverrideLoadWithRequest:navigationType:"); 430 | if ([plugin respondsToSelector:selector]) { 431 | anyPluginsResponded = YES; 432 | // https://issues.apache.org/jira/browse/CB-12497 433 | int navType = (int)navigationAction.navigationType; 434 | if (WKNavigationTypeOther == navigationAction.navigationType) { 435 | navType = (int)UIWebViewNavigationTypeOther; 436 | } 437 | shouldAllowRequest = (((BOOL (*)(id, SEL, id, int))objc_msgSend)(plugin, selector, navigationAction.request, navType)); 438 | if (!shouldAllowRequest) { 439 | break; 440 | } 441 | } 442 | } 443 | 444 | if (anyPluginsResponded) { 445 | return decisionHandler(shouldAllowRequest); 446 | } 447 | 448 | /* 449 | * Handle all other types of urls (tel:, sms:), and requests to load a url in the main webview. 450 | */ 451 | BOOL shouldAllowNavigation = [self defaultResourcePolicyForURL:url]; 452 | if (shouldAllowNavigation) { 453 | return decisionHandler(YES); 454 | } else { 455 | [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]]; 456 | } 457 | 458 | return decisionHandler(NO); 459 | } 460 | 461 | #pragma mark - Plugin interface 462 | 463 | - (void)allowsBackForwardNavigationGestures:(CDVInvokedUrlCommand*)command; 464 | { 465 | id value = [command argumentAtIndex:0]; 466 | if (!([value isKindOfClass:[NSNumber class]])) { 467 | value = [NSNumber numberWithBool:NO]; 468 | } 469 | 470 | WKWebView* wkWebView = (WKWebView*)_engineWebView; 471 | wkWebView.allowsBackForwardNavigationGestures = [value boolValue]; 472 | } 473 | 474 | @end 475 | 476 | #pragma mark - CDVWKWeakScriptMessageHandler 477 | 478 | @implementation CDVWKWeakScriptMessageHandler 479 | 480 | - (instancetype)initWithScriptMessageHandler:(id)scriptMessageHandler 481 | { 482 | self = [super init]; 483 | if (self) { 484 | _scriptMessageHandler = scriptMessageHandler; 485 | } 486 | return self; 487 | } 488 | 489 | - (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message 490 | { 491 | [self.scriptMessageHandler userContentController:userContentController didReceiveScriptMessage:message]; 492 | } 493 | 494 | @end 495 | -------------------------------------------------------------------------------- /src/ios/CDVWKWebViewUIDelegate.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | 22 | @interface CDVWKWebViewUIDelegate : NSObject 23 | 24 | @property (nonatomic, copy) NSString* title; 25 | 26 | - (instancetype)initWithTitle:(NSString*)title; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /src/ios/CDVWKWebViewUIDelegate.m: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import "CDVWKWebViewUIDelegate.h" 21 | 22 | @implementation CDVWKWebViewUIDelegate 23 | 24 | - (instancetype)initWithTitle:(NSString*)title 25 | { 26 | self = [super init]; 27 | if (self) { 28 | self.title = title; 29 | } 30 | 31 | return self; 32 | } 33 | 34 | - (void) webView:(WKWebView*)webView runJavaScriptAlertPanelWithMessage:(NSString*)message 35 | initiatedByFrame:(WKFrameInfo*)frame completionHandler:(void (^)(void))completionHandler 36 | { 37 | UIAlertController* alert = [UIAlertController alertControllerWithTitle:self.title 38 | message:message 39 | preferredStyle:UIAlertControllerStyleAlert]; 40 | 41 | UIAlertAction* ok = [UIAlertAction actionWithTitle:NSLocalizedString(@"OK", @"OK") 42 | style:UIAlertActionStyleDefault 43 | handler:^(UIAlertAction* action) 44 | { 45 | completionHandler(); 46 | [alert dismissViewControllerAnimated:YES completion:nil]; 47 | }]; 48 | 49 | [alert addAction:ok]; 50 | 51 | UIViewController* rootController = [UIApplication sharedApplication].delegate.window.rootViewController; 52 | 53 | [rootController presentViewController:alert animated:YES completion:nil]; 54 | } 55 | 56 | - (void) webView:(WKWebView*)webView runJavaScriptConfirmPanelWithMessage:(NSString*)message 57 | initiatedByFrame:(WKFrameInfo*)frame completionHandler:(void (^)(BOOL result))completionHandler 58 | { 59 | UIAlertController* alert = [UIAlertController alertControllerWithTitle:self.title 60 | message:message 61 | preferredStyle:UIAlertControllerStyleAlert]; 62 | 63 | UIAlertAction* ok = [UIAlertAction actionWithTitle:NSLocalizedString(@"OK", @"OK") 64 | style:UIAlertActionStyleDefault 65 | handler:^(UIAlertAction* action) 66 | { 67 | completionHandler(YES); 68 | [alert dismissViewControllerAnimated:YES completion:nil]; 69 | }]; 70 | 71 | [alert addAction:ok]; 72 | 73 | UIAlertAction* cancel = [UIAlertAction actionWithTitle:NSLocalizedString(@"Cancel", @"Cancel") 74 | style:UIAlertActionStyleDefault 75 | handler:^(UIAlertAction* action) 76 | { 77 | completionHandler(NO); 78 | [alert dismissViewControllerAnimated:YES completion:nil]; 79 | }]; 80 | [alert addAction:cancel]; 81 | 82 | UIViewController* rootController = [UIApplication sharedApplication].delegate.window.rootViewController; 83 | 84 | [rootController presentViewController:alert animated:YES completion:nil]; 85 | } 86 | 87 | - (void) webView:(WKWebView*)webView runJavaScriptTextInputPanelWithPrompt:(NSString*)prompt 88 | defaultText:(NSString*)defaultText initiatedByFrame:(WKFrameInfo*)frame 89 | completionHandler:(void (^)(NSString* result))completionHandler 90 | { 91 | UIAlertController* alert = [UIAlertController alertControllerWithTitle:self.title 92 | message:prompt 93 | preferredStyle:UIAlertControllerStyleAlert]; 94 | 95 | UIAlertAction* ok = [UIAlertAction actionWithTitle:NSLocalizedString(@"OK", @"OK") 96 | style:UIAlertActionStyleDefault 97 | handler:^(UIAlertAction* action) 98 | { 99 | completionHandler(((UITextField*)alert.textFields[0]).text); 100 | [alert dismissViewControllerAnimated:YES completion:nil]; 101 | }]; 102 | 103 | [alert addAction:ok]; 104 | 105 | UIAlertAction* cancel = [UIAlertAction actionWithTitle:NSLocalizedString(@"Cancel", @"Cancel") 106 | style:UIAlertActionStyleDefault 107 | handler:^(UIAlertAction* action) 108 | { 109 | completionHandler(nil); 110 | [alert dismissViewControllerAnimated:YES completion:nil]; 111 | }]; 112 | [alert addAction:cancel]; 113 | 114 | [alert addTextFieldWithConfigurationHandler:^(UITextField* textField) { 115 | textField.text = defaultText; 116 | }]; 117 | 118 | UIViewController* rootController = [UIApplication sharedApplication].delegate.window.rootViewController; 119 | 120 | [rootController presentViewController:alert animated:YES completion:nil]; 121 | } 122 | 123 | @end 124 | -------------------------------------------------------------------------------- /src/www/ios/ios-wkwebview-exec.js: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | 22 | /** 23 | * Creates the exec bridge used to notify the native code of 24 | * commands. 25 | */ 26 | var cordova = require('cordova'); 27 | var utils = require('cordova/utils'); 28 | var base64 = require('cordova/base64'); 29 | 30 | function massageArgsJsToNative (args) { 31 | if (!args || utils.typeName(args) !== 'Array') { 32 | return args; 33 | } 34 | var ret = []; 35 | args.forEach(function (arg, i) { 36 | if (utils.typeName(arg) === 'ArrayBuffer') { 37 | ret.push({ 38 | CDVType: 'ArrayBuffer', 39 | data: base64.fromArrayBuffer(arg) 40 | }); 41 | } else { 42 | ret.push(arg); 43 | } 44 | }); 45 | return ret; 46 | } 47 | 48 | function massageMessageNativeToJs (message) { 49 | if (message.CDVType === 'ArrayBuffer') { 50 | var stringToArrayBuffer = function (str) { 51 | var ret = new Uint8Array(str.length); 52 | for (var i = 0; i < str.length; i++) { 53 | ret[i] = str.charCodeAt(i); 54 | } 55 | return ret.buffer; 56 | }; 57 | var base64ToArrayBuffer = function (b64) { 58 | return stringToArrayBuffer(atob(b64)); // eslint-disable-line no-undef 59 | }; 60 | message = base64ToArrayBuffer(message.data); 61 | } 62 | return message; 63 | } 64 | 65 | function convertMessageToArgsNativeToJs (message) { 66 | var args = []; 67 | if (!message || !Object.prototype.hasOwnProperty.call(message, 'CDVType')) { 68 | args.push(message); 69 | } else if (message.CDVType === 'MultiPart') { 70 | message.messages.forEach(function (e) { 71 | args.push(massageMessageNativeToJs(e)); 72 | }); 73 | } else { 74 | args.push(massageMessageNativeToJs(message)); 75 | } 76 | return args; 77 | } 78 | 79 | var iOSExec = function () { 80 | // detect change in bridge, if there is a change, we forward to new bridge 81 | 82 | // if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.cordova && window.webkit.messageHandlers.cordova.postMessage) { 83 | // bridgeMode = jsToNativeModes.WK_WEBVIEW_BINDING; 84 | // } 85 | 86 | var successCallback, failCallback, service, action, actionArgs; 87 | var callbackId = null; 88 | if (typeof arguments[0] !== 'string') { 89 | // FORMAT ONE 90 | successCallback = arguments[0]; 91 | failCallback = arguments[1]; 92 | service = arguments[2]; 93 | action = arguments[3]; 94 | actionArgs = arguments[4]; 95 | 96 | // Since we need to maintain backwards compatibility, we have to pass 97 | // an invalid callbackId even if no callback was provided since plugins 98 | // will be expecting it. The Cordova.exec() implementation allocates 99 | // an invalid callbackId and passes it even if no callbacks were given. 100 | callbackId = 'INVALID'; 101 | } else { 102 | throw new Error( 103 | 'The old format of this exec call has been removed (deprecated since 2.1). Change to: ' + // eslint-disable-line 104 | "cordova.exec(null, null, 'Service', 'action', [ arg1, arg2 ]);" 105 | ); 106 | } 107 | 108 | // If actionArgs is not provided, default to an empty array 109 | actionArgs = actionArgs || []; 110 | 111 | // Register the callbacks and add the callbackId to the positional 112 | // arguments if given. 113 | if (successCallback || failCallback) { 114 | callbackId = service + cordova.callbackId++; 115 | cordova.callbacks[callbackId] = { success: successCallback, fail: failCallback }; 116 | } 117 | 118 | actionArgs = massageArgsJsToNative(actionArgs); 119 | 120 | // CB-10133 DataClone DOM Exception 25 guard (fast function remover) 121 | var command = [callbackId, service, action, JSON.parse(JSON.stringify(actionArgs))]; 122 | window.webkit.messageHandlers.cordova.postMessage(command); 123 | }; 124 | 125 | iOSExec.nativeCallback = function (callbackId, status, message, keepCallback, debug) { 126 | var success = status === 0 || status === 1; 127 | var args = convertMessageToArgsNativeToJs(message); 128 | Promise.resolve().then(function () { 129 | cordova.callbackFromNative(callbackId, success, status, args, keepCallback); // eslint-disable-line 130 | }); 131 | }; 132 | 133 | // for backwards compatibility 134 | iOSExec.nativeEvalAndFetch = function (func) { 135 | try { 136 | func(); 137 | } catch (e) { 138 | console.log(e); 139 | } 140 | }; 141 | 142 | // Proxy the exec for bridge changes. See CB-10106 143 | 144 | function cordovaExec () { 145 | var cexec = require('cordova/exec'); 146 | var cexec_valid = 147 | typeof cexec.nativeFetchMessages === 'function' && 148 | typeof cexec.nativeEvalAndFetch === 'function' && 149 | typeof cexec.nativeCallback === 'function'; 150 | return cexec_valid && execProxy !== cexec ? cexec : iOSExec; 151 | } 152 | 153 | function execProxy () { 154 | cordovaExec().apply(null, arguments); 155 | } 156 | 157 | execProxy.nativeFetchMessages = function () { 158 | return cordovaExec().nativeFetchMessages.apply(null, arguments); 159 | }; 160 | 161 | execProxy.nativeEvalAndFetch = function () { 162 | return cordovaExec().nativeEvalAndFetch.apply(null, arguments); 163 | }; 164 | 165 | execProxy.nativeCallback = function () { 166 | return cordovaExec().nativeCallback.apply(null, arguments); 167 | }; 168 | 169 | module.exports = execProxy; 170 | 171 | if ( 172 | window.webkit && 173 | window.webkit.messageHandlers && 174 | window.webkit.messageHandlers.cordova && 175 | window.webkit.messageHandlers.cordova.postMessage 176 | ) { 177 | // unregister the old bridge 178 | cordova.define.remove('cordova/exec'); 179 | // redefine bridge to our new bridge 180 | cordova.define('cordova/exec', function (require, exports, module) { 181 | module.exports = execProxy; 182 | }); 183 | } 184 | -------------------------------------------------------------------------------- /src/www/ios/ios-wkwebview.js: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | 22 | var exec = require('cordova/exec'); 23 | 24 | var WkWebKit = { 25 | allowsBackForwardNavigationGestures: function (allow) { 26 | exec(null, null, 'CDVWKWebViewEngine', 'allowsBackForwardNavigationGestures', [allow]); 27 | } 28 | }; 29 | 30 | module.exports = WkWebKit; 31 | -------------------------------------------------------------------------------- /tests/ios/CDVWKWebViewEngineTest.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /tests/ios/CDVWKWebViewEngineTest.xcworkspace/xcshareddata/CDVWKWebViewEngineTest.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | 6BE9AD73-1B9F-4362-98D7-DC631BEC6185 9 | IDESourceControlProjectName 10 | CDVWKWebViewEngineTest 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | BEF5A5D0FF64801E558286389440357A9233D7DB 14 | https://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine.git 15 | 16 | IDESourceControlProjectPath 17 | tests/ios/CDVWKWebViewEngineTest/CDVWKWebViewEngineTest.xcodeproj 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | BEF5A5D0FF64801E558286389440357A9233D7DB 21 | ../../../../.. 22 | 23 | IDESourceControlProjectURL 24 | https://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | BEF5A5D0FF64801E558286389440357A9233D7DB 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | BEF5A5D0FF64801E558286389440357A9233D7DB 36 | IDESourceControlWCCName 37 | cordova-plugin-wkwebview-engine 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /tests/ios/CDVWKWebViewEngineTest.xcworkspace/xcshareddata/xcschemes/CordovaLib.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 70 | 71 | 72 | 73 | 75 | 76 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /tests/ios/CDVWKWebViewEngineTest/.gitignore: -------------------------------------------------------------------------------- 1 | build -------------------------------------------------------------------------------- /tests/ios/CDVWKWebViewEngineTest/CDVWKWebViewEngineLibTests/CDVWKWebViewEngineTest.m: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | #import 22 | #import "CDVWKWebViewEngine.h" 23 | #import "CDVWKProcessPoolFactory.h" 24 | #import 25 | #import 26 | 27 | @interface CDVWKWebViewEngineTest : XCTestCase 28 | 29 | @property (nonatomic, strong) CDVWKWebViewEngine* plugin; 30 | @property (nonatomic, strong) CDVViewController* viewController; 31 | 32 | @end 33 | 34 | @interface CDVWKWebViewEngine () 35 | 36 | // TODO: expose private interface, if needed 37 | - (BOOL)shouldReloadWebView; 38 | - (BOOL)shouldReloadWebView:(NSURL*)location title:(NSString*)title; 39 | 40 | @end 41 | 42 | @interface CDVViewController () 43 | 44 | // expose property as readwrite, for test purposes 45 | @property (nonatomic, readwrite, strong) NSMutableDictionary* settings; 46 | 47 | @end 48 | 49 | @implementation CDVWKWebViewEngineTest 50 | 51 | - (void)setUp { 52 | [super setUp]; 53 | // Put setup code here. This method is called before the invocation of each test method in the class. 54 | 55 | // NOTE: no app settings are set, so it will rely on default WKWebViewConfiguration settings 56 | self.plugin = [[CDVWKWebViewEngine alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; 57 | self.viewController = [[CDVViewController alloc] init]; 58 | [self.viewController registerPlugin:self.plugin withClassName:NSStringFromClass([self.plugin class])]; 59 | 60 | XCTAssert([self.plugin conformsToProtocol:@protocol(CDVWebViewEngineProtocol)], @"Plugin does not conform to CDVWebViewEngineProtocol"); 61 | } 62 | 63 | - (void)tearDown { 64 | // Put teardown code here. This method is called after the invocation of each test method in the class. 65 | [super tearDown]; 66 | } 67 | 68 | - (void) testCanLoadRequest { 69 | NSURLRequest* fileUrlRequest = [NSURLRequest requestWithURL:[NSURL fileURLWithPath:@"path/to/file.html"]]; 70 | NSURLRequest* httpUrlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://apache.org"]]; 71 | NSURLRequest* miscUrlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"foo://bar"]]; 72 | id webViewEngineProtocol = self.plugin; 73 | 74 | SEL wk_sel = NSSelectorFromString(@"loadFileURL:allowingReadAccessToURL:"); 75 | if ([self.plugin.engineWebView respondsToSelector:wk_sel]) { 76 | XCTAssertTrue([webViewEngineProtocol canLoadRequest:fileUrlRequest]); 77 | } else { 78 | XCTAssertFalse([webViewEngineProtocol canLoadRequest:fileUrlRequest]); 79 | } 80 | 81 | XCTAssertTrue([webViewEngineProtocol canLoadRequest:httpUrlRequest]); 82 | XCTAssertTrue([webViewEngineProtocol canLoadRequest:miscUrlRequest]); 83 | } 84 | 85 | - (void) testUpdateInfo { 86 | // Add -ObjC to Other Linker Flags to test project, to load Categories 87 | // Update objc test template generator as well 88 | 89 | id webViewEngineProtocol = self.plugin; 90 | WKWebView* wkWebView = (WKWebView*)self.plugin.engineWebView; 91 | 92 | // iOS >=10 defaults to NO, < 10 defaults to YES. 93 | BOOL mediaPlaybackRequiresUserActionDefault = IsAtLeastiOSVersion(@"10.0")? NO : YES; 94 | 95 | NSDictionary* preferences = @{ 96 | [@"MinimumFontSize" lowercaseString] : @1.1, // default is 0.0 97 | [@"AllowInlineMediaPlayback" lowercaseString] : @YES, // default is NO 98 | [@"MediaPlaybackRequiresUserAction" lowercaseString] : @(!mediaPlaybackRequiresUserActionDefault), // default is NO on iOS >= 10, YES for < 10 99 | [@"SuppressesIncrementalRendering" lowercaseString] : @YES, // default is NO 100 | [@"MediaPlaybackAllowsAirPlay" lowercaseString] : @NO, // default is YES 101 | [@"DisallowOverscroll" lowercaseString] : @YES, // so bounces is to be NO. defaults to NO 102 | [@"WKWebViewDecelerationSpeed" lowercaseString] : @"fast" // default is 'normal' 103 | }; 104 | NSDictionary* info = @{ 105 | kCDVWebViewEngineWebViewPreferences : preferences 106 | }; 107 | [webViewEngineProtocol updateWithInfo:info]; 108 | 109 | // the only preference we can set, we **can** change this during runtime 110 | XCTAssertEqualWithAccuracy(wkWebView.configuration.preferences.minimumFontSize, 1.1, 0.0001); 111 | 112 | // the WKWebViewConfiguration properties, we **cannot** change outside of initialization 113 | if (IsAtLeastiOSVersion(@"10.0")) { 114 | XCTAssertFalse(wkWebView.configuration.mediaPlaybackRequiresUserAction); 115 | } else { 116 | XCTAssertTrue(wkWebView.configuration.mediaPlaybackRequiresUserAction); 117 | } 118 | XCTAssertFalse(wkWebView.configuration.allowsInlineMediaPlayback); 119 | XCTAssertFalse(wkWebView.configuration.suppressesIncrementalRendering); 120 | XCTAssertTrue(wkWebView.configuration.mediaPlaybackAllowsAirPlay); 121 | 122 | // in the test above, DisallowOverscroll is YES, so no bounce 123 | if ([wkWebView respondsToSelector:@selector(scrollView)]) { 124 | XCTAssertFalse(((UIScrollView*)[wkWebView scrollView]).bounces); 125 | } else { 126 | for (id subview in wkWebView.subviews) { 127 | if ([[subview class] isSubclassOfClass:[UIScrollView class]]) { 128 | XCTAssertFalse(((UIScrollView*)subview).bounces = NO); 129 | } 130 | } 131 | } 132 | 133 | XCTAssertTrue(wkWebView.scrollView.decelerationRate == UIScrollViewDecelerationRateFast); 134 | } 135 | 136 | - (void) testConfigurationFromSettings { 137 | // we need to re-set the plugin from the "setup" to take in the app settings we need 138 | self.plugin = [[CDVWKWebViewEngine alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; 139 | self.viewController = [[CDVViewController alloc] init]; 140 | 141 | // generate the app settings 142 | // iOS >=10 defaults to NO, < 10 defaults to YES. 143 | BOOL mediaPlaybackRequiresUserActionDefault = IsAtLeastiOSVersion(@"10.0")? NO : YES; 144 | 145 | NSDictionary* settings = @{ 146 | [@"MinimumFontSize" lowercaseString] : @1.1, // default is 0.0 147 | [@"AllowInlineMediaPlayback" lowercaseString] : @YES, // default is NO 148 | [@"MediaPlaybackRequiresUserAction" lowercaseString] : @(!mediaPlaybackRequiresUserActionDefault), // default is NO on iOS >= 10, YES for < 10 149 | [@"SuppressesIncrementalRendering" lowercaseString] : @YES, // default is NO 150 | [@"MediaPlaybackAllowsAirPlay" lowercaseString] : @NO, // default is YES 151 | [@"DisallowOverscroll" lowercaseString] : @YES, // so bounces is to be NO. defaults to NO 152 | [@"WKWebViewDecelerationSpeed" lowercaseString] : @"fast" // default is 'normal' 153 | }; 154 | // this can be set because of the Category at the top of the file 155 | self.viewController.settings = [settings mutableCopy]; 156 | 157 | // app settings are read after you register the plugin 158 | [self.viewController registerPlugin:self.plugin withClassName:NSStringFromClass([self.plugin class])]; 159 | XCTAssert([self.plugin conformsToProtocol:@protocol(CDVWebViewEngineProtocol)], @"Plugin does not conform to CDVWebViewEngineProtocol"); 160 | 161 | // after registering (thus plugin initialization), we can grab the webview configuration 162 | WKWebView* wkWebView = (WKWebView*)self.plugin.engineWebView; 163 | 164 | // the only preference we can set, we **can** change this during runtime 165 | XCTAssertEqualWithAccuracy(wkWebView.configuration.preferences.minimumFontSize, 1.1, 0.0001); 166 | 167 | // the WKWebViewConfiguration properties, we **cannot** change outside of initialization 168 | if (IsAtLeastiOSVersion(@"10.0")) { 169 | XCTAssertTrue(wkWebView.configuration.mediaPlaybackRequiresUserAction); 170 | } else { 171 | XCTAssertFalse(wkWebView.configuration.mediaPlaybackRequiresUserAction); 172 | } 173 | XCTAssertTrue(wkWebView.configuration.allowsInlineMediaPlayback); 174 | XCTAssertTrue(wkWebView.configuration.suppressesIncrementalRendering); 175 | // The test case below is in a separate test "testConfigurationWithMediaPlaybackAllowsAirPlay" (Apple bug) 176 | // XCTAssertFalse(wkWebView.configuration.mediaPlaybackAllowsAirPlay); 177 | 178 | // in the test above, DisallowOverscroll is YES, so no bounce 179 | if ([wkWebView respondsToSelector:@selector(scrollView)]) { 180 | XCTAssertFalse(((UIScrollView*)[wkWebView scrollView]).bounces); 181 | } else { 182 | for (id subview in wkWebView.subviews) { 183 | if ([[subview class] isSubclassOfClass:[UIScrollView class]]) { 184 | XCTAssertFalse(((UIScrollView*)subview).bounces = NO); 185 | } 186 | } 187 | } 188 | 189 | XCTAssertTrue(wkWebView.scrollView.decelerationRate == UIScrollViewDecelerationRateFast); 190 | } 191 | 192 | - (void) testShouldReloadWebView { 193 | WKWebView* wkWebView = (WKWebView*)self.plugin.engineWebView; 194 | 195 | NSURL* about_blank = [NSURL URLWithString:@"about:blank"]; 196 | NSURL* real_site = [NSURL URLWithString:@"https://cordova.apache.org"]; 197 | NSString* empty_title_document = @""; 198 | 199 | // about:blank should reload 200 | [wkWebView loadRequest:[NSURLRequest requestWithURL:about_blank]]; 201 | XCTAssertTrue([self.plugin shouldReloadWebView]); 202 | 203 | // a network location should *not* reload 204 | [wkWebView loadRequest:[NSURLRequest requestWithURL:real_site]]; 205 | XCTAssertFalse([self.plugin shouldReloadWebView]); 206 | 207 | // document with empty title should *not* reload 208 | // baseURL:nil results in about:blank, so we use a dummy here 209 | [wkWebView loadHTMLString:empty_title_document baseURL:[NSURL URLWithString:@"about:"]]; 210 | XCTAssertFalse([self.plugin shouldReloadWebView]); 211 | 212 | // Anecdotal assertion that when the WKWebView process has died, 213 | // the title is nil, should always reload 214 | XCTAssertTrue([self.plugin shouldReloadWebView:about_blank title:nil]); 215 | XCTAssertTrue([self.plugin shouldReloadWebView:real_site title:nil]); 216 | 217 | // about:blank should always reload 218 | XCTAssertTrue([self.plugin shouldReloadWebView:about_blank title:@"some title"]); 219 | 220 | // non about:blank with a non-nil title should **not** reload 221 | XCTAssertFalse([self.plugin shouldReloadWebView:real_site title:@""]); 222 | } 223 | 224 | - (void) testConfigurationWithMediaPlaybackAllowsAirPlay { 225 | WKWebViewConfiguration* configuration = [WKWebViewConfiguration new]; 226 | configuration.allowsAirPlayForMediaPlayback = NO; 227 | 228 | WKWebView* wkWebView = [[WKWebView alloc] initWithFrame:CGRectMake(0, 0, 100, 100) configuration:configuration]; 229 | 230 | XCTAssertFalse(configuration.allowsAirPlayForMediaPlayback); 231 | // Uh-oh, bug in WKWebView below. Tested on iOS 9, iOS 10 beta 3 232 | XCTAssertFalse(wkWebView.configuration.allowsAirPlayForMediaPlayback); 233 | } 234 | 235 | - (void) testWKProcessPoolFactory { 236 | WKProcessPool* shared = [[CDVWKProcessPoolFactory sharedFactory] sharedProcessPool]; 237 | XCTAssertTrue(shared != nil); 238 | } 239 | 240 | @end 241 | -------------------------------------------------------------------------------- /tests/ios/CDVWKWebViewEngineTest/CDVWKWebViewEngineLibTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /tests/ios/CDVWKWebViewEngineTest/CDVWKWebViewEngineTest.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 7E9F51AB19DA10AE00DA31AC /* CDVWKWebViewEngine.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E9F51A919DA10AE00DA31AC /* CDVWKWebViewEngine.m */; }; 11 | 7E9F51B119DA114400DA31AC /* CDVWKWebViewEngineTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E9F51B019DA114400DA31AC /* CDVWKWebViewEngineTest.m */; }; 12 | 7E9F51B319DA116500DA31AC /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E9F51B219DA116500DA31AC /* Foundation.framework */; }; 13 | 7E9F51B519DA127E00DA31AC /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E9F51B419DA127E00DA31AC /* UIKit.framework */; }; 14 | 7E9F51B919DA1B1600DA31AC /* libCDVWKWebViewEngineLib.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E9F519519DA102000DA31AC /* libCDVWKWebViewEngineLib.a */; }; 15 | 7E9F51BA19DA1B2000DA31AC /* libCordova.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E9F519019DA0F8300DA31AC /* libCordova.a */; }; 16 | 7EACDCE71D234E2A00494C9E /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7EACDCE61D234E2A00494C9E /* WebKit.framework */; }; 17 | 7EACDCEB1D234FB300494C9E /* CDVWKWebViewUIDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7EACDCEA1D234FB300494C9E /* CDVWKWebViewUIDelegate.m */; }; 18 | A9CC1CED1E0D42F50083E165 /* CDVWKProcessPoolFactory.m in Sources */ = {isa = PBXBuildFile; fileRef = A9CC1CEC1E0D42F50083E165 /* CDVWKProcessPoolFactory.m */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXContainerItemProxy section */ 22 | 3050280F1E2973F700CF9F12 /* PBXContainerItemProxy */ = { 23 | isa = PBXContainerItemProxy; 24 | containerPortal = 7E9F518B19DA0F8300DA31AC /* CordovaLib.xcodeproj */; 25 | proxyType = 1; 26 | remoteGlobalIDString = D2AAC07D0554694100DB518D; 27 | remoteInfo = CordovaLib; 28 | }; 29 | 7E9F518F19DA0F8300DA31AC /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 7E9F518B19DA0F8300DA31AC /* CordovaLib.xcodeproj */; 32 | proxyType = 2; 33 | remoteGlobalIDString = 68A32D7114102E1C006B237C; 34 | remoteInfo = CordovaLib; 35 | }; 36 | 7E9F51AC19DA10DE00DA31AC /* PBXContainerItemProxy */ = { 37 | isa = PBXContainerItemProxy; 38 | containerPortal = 7E9F517219DA09CE00DA31AC /* Project object */; 39 | proxyType = 1; 40 | remoteGlobalIDString = 7E9F519419DA102000DA31AC; 41 | remoteInfo = CDVWKWebViewEngineLib; 42 | }; 43 | 7E9F51AE19DA10E100DA31AC /* PBXContainerItemProxy */ = { 44 | isa = PBXContainerItemProxy; 45 | containerPortal = 7E9F518B19DA0F8300DA31AC /* CordovaLib.xcodeproj */; 46 | proxyType = 1; 47 | remoteGlobalIDString = D2AAC07D0554694100DB518D; 48 | remoteInfo = CordovaLib; 49 | }; 50 | /* End PBXContainerItemProxy section */ 51 | 52 | /* Begin PBXCopyFilesBuildPhase section */ 53 | 7E9F519319DA102000DA31AC /* CopyFiles */ = { 54 | isa = PBXCopyFilesBuildPhase; 55 | buildActionMask = 2147483647; 56 | dstPath = "include/$(PRODUCT_NAME)"; 57 | dstSubfolderSpec = 16; 58 | files = ( 59 | ); 60 | runOnlyForDeploymentPostprocessing = 0; 61 | }; 62 | /* End PBXCopyFilesBuildPhase section */ 63 | 64 | /* Begin PBXFileReference section */ 65 | 7E9F518B19DA0F8300DA31AC /* CordovaLib.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = CordovaLib.xcodeproj; path = "../node_modules/cordova-ios/CordovaLib/CordovaLib.xcodeproj"; sourceTree = ""; }; 66 | 7E9F519519DA102000DA31AC /* libCDVWKWebViewEngineLib.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libCDVWKWebViewEngineLib.a; sourceTree = BUILT_PRODUCTS_DIR; }; 67 | 7E9F519F19DA102000DA31AC /* CDVWKWebViewEngineLibTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CDVWKWebViewEngineLibTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 68 | 7E9F51A219DA102000DA31AC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 69 | 7E9F51A919DA10AE00DA31AC /* CDVWKWebViewEngine.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVWKWebViewEngine.m; path = ../../../src/ios/CDVWKWebViewEngine.m; sourceTree = SOURCE_ROOT; }; 70 | 7E9F51AA19DA10AE00DA31AC /* CDVWKWebViewEngine.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVWKWebViewEngine.h; path = ../../../src/ios/CDVWKWebViewEngine.h; sourceTree = SOURCE_ROOT; }; 71 | 7E9F51B019DA114400DA31AC /* CDVWKWebViewEngineTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CDVWKWebViewEngineTest.m; sourceTree = ""; }; 72 | 7E9F51B219DA116500DA31AC /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 73 | 7E9F51B419DA127E00DA31AC /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; 74 | 7EACDCE61D234E2A00494C9E /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/Frameworks/WebKit.framework; sourceTree = DEVELOPER_DIR; }; 75 | 7EACDCE91D234FB300494C9E /* CDVWKWebViewUIDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVWKWebViewUIDelegate.h; path = ../../../src/ios/CDVWKWebViewUIDelegate.h; sourceTree = SOURCE_ROOT; }; 76 | 7EACDCEA1D234FB300494C9E /* CDVWKWebViewUIDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVWKWebViewUIDelegate.m; path = ../../../src/ios/CDVWKWebViewUIDelegate.m; sourceTree = SOURCE_ROOT; }; 77 | A9CC1CEB1E0D42F50083E165 /* CDVWKProcessPoolFactory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CDVWKProcessPoolFactory.h; path = ../../../src/ios/CDVWKProcessPoolFactory.h; sourceTree = SOURCE_ROOT; }; 78 | A9CC1CEC1E0D42F50083E165 /* CDVWKProcessPoolFactory.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CDVWKProcessPoolFactory.m; path = ../../../src/ios/CDVWKProcessPoolFactory.m; sourceTree = SOURCE_ROOT; }; 79 | /* End PBXFileReference section */ 80 | 81 | /* Begin PBXFrameworksBuildPhase section */ 82 | 7E9F519219DA102000DA31AC /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | 7EACDCE71D234E2A00494C9E /* WebKit.framework in Frameworks */, 87 | ); 88 | runOnlyForDeploymentPostprocessing = 0; 89 | }; 90 | 7E9F519C19DA102000DA31AC /* Frameworks */ = { 91 | isa = PBXFrameworksBuildPhase; 92 | buildActionMask = 2147483647; 93 | files = ( 94 | 7E9F51BA19DA1B2000DA31AC /* libCordova.a in Frameworks */, 95 | 7E9F51B919DA1B1600DA31AC /* libCDVWKWebViewEngineLib.a in Frameworks */, 96 | 7E9F51B519DA127E00DA31AC /* UIKit.framework in Frameworks */, 97 | 7E9F51B319DA116500DA31AC /* Foundation.framework in Frameworks */, 98 | ); 99 | runOnlyForDeploymentPostprocessing = 0; 100 | }; 101 | /* End PBXFrameworksBuildPhase section */ 102 | 103 | /* Begin PBXGroup section */ 104 | 7E9F517119DA09CE00DA31AC = { 105 | isa = PBXGroup; 106 | children = ( 107 | 7EACDCE61D234E2A00494C9E /* WebKit.framework */, 108 | 7E9F51B419DA127E00DA31AC /* UIKit.framework */, 109 | 7E9F51B219DA116500DA31AC /* Foundation.framework */, 110 | 7E9F518B19DA0F8300DA31AC /* CordovaLib.xcodeproj */, 111 | 7E9F519619DA102000DA31AC /* CDVWKWebViewEngineLib */, 112 | 7E9F51A019DA102000DA31AC /* CDVWKWebViewEngineLibTests */, 113 | 7E9F517D19DA0A0A00DA31AC /* Products */, 114 | ); 115 | sourceTree = ""; 116 | }; 117 | 7E9F517D19DA0A0A00DA31AC /* Products */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 7E9F519519DA102000DA31AC /* libCDVWKWebViewEngineLib.a */, 121 | 7E9F519F19DA102000DA31AC /* CDVWKWebViewEngineLibTests.xctest */, 122 | ); 123 | name = Products; 124 | sourceTree = ""; 125 | }; 126 | 7E9F518C19DA0F8300DA31AC /* Products */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | 7E9F519019DA0F8300DA31AC /* libCordova.a */, 130 | ); 131 | name = Products; 132 | sourceTree = ""; 133 | }; 134 | 7E9F519619DA102000DA31AC /* CDVWKWebViewEngineLib */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | A9CC1CEB1E0D42F50083E165 /* CDVWKProcessPoolFactory.h */, 138 | A9CC1CEC1E0D42F50083E165 /* CDVWKProcessPoolFactory.m */, 139 | 7EACDCE91D234FB300494C9E /* CDVWKWebViewUIDelegate.h */, 140 | 7EACDCEA1D234FB300494C9E /* CDVWKWebViewUIDelegate.m */, 141 | 7E9F51A919DA10AE00DA31AC /* CDVWKWebViewEngine.m */, 142 | 7E9F51AA19DA10AE00DA31AC /* CDVWKWebViewEngine.h */, 143 | ); 144 | path = CDVWKWebViewEngineLib; 145 | sourceTree = SOURCE_ROOT; 146 | }; 147 | 7E9F51A019DA102000DA31AC /* CDVWKWebViewEngineLibTests */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | 7E9F51A119DA102000DA31AC /* Supporting Files */, 151 | 7E9F51B019DA114400DA31AC /* CDVWKWebViewEngineTest.m */, 152 | ); 153 | path = CDVWKWebViewEngineLibTests; 154 | sourceTree = ""; 155 | }; 156 | 7E9F51A119DA102000DA31AC /* Supporting Files */ = { 157 | isa = PBXGroup; 158 | children = ( 159 | 7E9F51A219DA102000DA31AC /* Info.plist */, 160 | ); 161 | name = "Supporting Files"; 162 | sourceTree = ""; 163 | }; 164 | /* End PBXGroup section */ 165 | 166 | /* Begin PBXNativeTarget section */ 167 | 7E9F519419DA102000DA31AC /* CDVWKWebViewEngineLib */ = { 168 | isa = PBXNativeTarget; 169 | buildConfigurationList = 7E9F51A319DA102000DA31AC /* Build configuration list for PBXNativeTarget "CDVWKWebViewEngineLib" */; 170 | buildPhases = ( 171 | 7E9F519119DA102000DA31AC /* Sources */, 172 | 7E9F519219DA102000DA31AC /* Frameworks */, 173 | 7E9F519319DA102000DA31AC /* CopyFiles */, 174 | ); 175 | buildRules = ( 176 | ); 177 | dependencies = ( 178 | 305028101E2973F700CF9F12 /* PBXTargetDependency */, 179 | ); 180 | name = CDVWKWebViewEngineLib; 181 | productName = CDVWKWebViewEngineLib; 182 | productReference = 7E9F519519DA102000DA31AC /* libCDVWKWebViewEngineLib.a */; 183 | productType = "com.apple.product-type.library.static"; 184 | }; 185 | 7E9F519E19DA102000DA31AC /* CDVWKWebViewEngineLibTests */ = { 186 | isa = PBXNativeTarget; 187 | buildConfigurationList = 7E9F51A619DA102000DA31AC /* Build configuration list for PBXNativeTarget "CDVWKWebViewEngineLibTests" */; 188 | buildPhases = ( 189 | 7E9F519B19DA102000DA31AC /* Sources */, 190 | 7E9F519C19DA102000DA31AC /* Frameworks */, 191 | 7E9F519D19DA102000DA31AC /* Resources */, 192 | ); 193 | buildRules = ( 194 | ); 195 | dependencies = ( 196 | 7E9F51AF19DA10E100DA31AC /* PBXTargetDependency */, 197 | 7E9F51AD19DA10DE00DA31AC /* PBXTargetDependency */, 198 | ); 199 | name = CDVWKWebViewEngineLibTests; 200 | productName = CDVWKWebViewEngineLibTests; 201 | productReference = 7E9F519F19DA102000DA31AC /* CDVWKWebViewEngineLibTests.xctest */; 202 | productType = "com.apple.product-type.bundle.unit-test"; 203 | }; 204 | /* End PBXNativeTarget section */ 205 | 206 | /* Begin PBXProject section */ 207 | 7E9F517219DA09CE00DA31AC /* Project object */ = { 208 | isa = PBXProject; 209 | attributes = { 210 | LastUpgradeCheck = 0830; 211 | TargetAttributes = { 212 | 7E9F519419DA102000DA31AC = { 213 | CreatedOnToolsVersion = 6.0; 214 | }; 215 | 7E9F519E19DA102000DA31AC = { 216 | CreatedOnToolsVersion = 6.0; 217 | }; 218 | }; 219 | }; 220 | buildConfigurationList = 7E9F517519DA09CE00DA31AC /* Build configuration list for PBXProject "CDVWKWebViewEngineTest" */; 221 | compatibilityVersion = "Xcode 3.2"; 222 | developmentRegion = English; 223 | hasScannedForEncodings = 0; 224 | knownRegions = ( 225 | en, 226 | ); 227 | mainGroup = 7E9F517119DA09CE00DA31AC; 228 | productRefGroup = 7E9F517D19DA0A0A00DA31AC /* Products */; 229 | projectDirPath = ""; 230 | projectReferences = ( 231 | { 232 | ProductGroup = 7E9F518C19DA0F8300DA31AC /* Products */; 233 | ProjectRef = 7E9F518B19DA0F8300DA31AC /* CordovaLib.xcodeproj */; 234 | }, 235 | ); 236 | projectRoot = ""; 237 | targets = ( 238 | 7E9F519419DA102000DA31AC /* CDVWKWebViewEngineLib */, 239 | 7E9F519E19DA102000DA31AC /* CDVWKWebViewEngineLibTests */, 240 | ); 241 | }; 242 | /* End PBXProject section */ 243 | 244 | /* Begin PBXReferenceProxy section */ 245 | 7E9F519019DA0F8300DA31AC /* libCordova.a */ = { 246 | isa = PBXReferenceProxy; 247 | fileType = archive.ar; 248 | path = libCordova.a; 249 | remoteRef = 7E9F518F19DA0F8300DA31AC /* PBXContainerItemProxy */; 250 | sourceTree = BUILT_PRODUCTS_DIR; 251 | }; 252 | /* End PBXReferenceProxy section */ 253 | 254 | /* Begin PBXResourcesBuildPhase section */ 255 | 7E9F519D19DA102000DA31AC /* Resources */ = { 256 | isa = PBXResourcesBuildPhase; 257 | buildActionMask = 2147483647; 258 | files = ( 259 | ); 260 | runOnlyForDeploymentPostprocessing = 0; 261 | }; 262 | /* End PBXResourcesBuildPhase section */ 263 | 264 | /* Begin PBXSourcesBuildPhase section */ 265 | 7E9F519119DA102000DA31AC /* Sources */ = { 266 | isa = PBXSourcesBuildPhase; 267 | buildActionMask = 2147483647; 268 | files = ( 269 | A9CC1CED1E0D42F50083E165 /* CDVWKProcessPoolFactory.m in Sources */, 270 | 7EACDCEB1D234FB300494C9E /* CDVWKWebViewUIDelegate.m in Sources */, 271 | 7E9F51AB19DA10AE00DA31AC /* CDVWKWebViewEngine.m in Sources */, 272 | ); 273 | runOnlyForDeploymentPostprocessing = 0; 274 | }; 275 | 7E9F519B19DA102000DA31AC /* Sources */ = { 276 | isa = PBXSourcesBuildPhase; 277 | buildActionMask = 2147483647; 278 | files = ( 279 | 7E9F51B119DA114400DA31AC /* CDVWKWebViewEngineTest.m in Sources */, 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | }; 283 | /* End PBXSourcesBuildPhase section */ 284 | 285 | /* Begin PBXTargetDependency section */ 286 | 305028101E2973F700CF9F12 /* PBXTargetDependency */ = { 287 | isa = PBXTargetDependency; 288 | name = CordovaLib; 289 | targetProxy = 3050280F1E2973F700CF9F12 /* PBXContainerItemProxy */; 290 | }; 291 | 7E9F51AD19DA10DE00DA31AC /* PBXTargetDependency */ = { 292 | isa = PBXTargetDependency; 293 | target = 7E9F519419DA102000DA31AC /* CDVWKWebViewEngineLib */; 294 | targetProxy = 7E9F51AC19DA10DE00DA31AC /* PBXContainerItemProxy */; 295 | }; 296 | 7E9F51AF19DA10E100DA31AC /* PBXTargetDependency */ = { 297 | isa = PBXTargetDependency; 298 | name = CordovaLib; 299 | targetProxy = 7E9F51AE19DA10E100DA31AC /* PBXContainerItemProxy */; 300 | }; 301 | /* End PBXTargetDependency section */ 302 | 303 | /* Begin XCBuildConfiguration section */ 304 | 7E9F517619DA09CE00DA31AC /* Debug */ = { 305 | isa = XCBuildConfiguration; 306 | buildSettings = { 307 | CLANG_WARN_BOOL_CONVERSION = YES; 308 | CLANG_WARN_CONSTANT_CONVERSION = YES; 309 | CLANG_WARN_EMPTY_BODY = YES; 310 | CLANG_WARN_ENUM_CONVERSION = YES; 311 | CLANG_WARN_INFINITE_RECURSION = YES; 312 | CLANG_WARN_INT_CONVERSION = YES; 313 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 314 | CLANG_WARN_UNREACHABLE_CODE = YES; 315 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 316 | ENABLE_STRICT_OBJC_MSGSEND = YES; 317 | ENABLE_TESTABILITY = YES; 318 | GCC_NO_COMMON_BLOCKS = YES; 319 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 320 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 321 | GCC_WARN_UNDECLARED_SELECTOR = YES; 322 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 323 | GCC_WARN_UNUSED_FUNCTION = YES; 324 | GCC_WARN_UNUSED_VARIABLE = YES; 325 | ONLY_ACTIVE_ARCH = YES; 326 | OTHER_LDFLAGS = "-ObjC"; 327 | }; 328 | name = Debug; 329 | }; 330 | 7E9F517719DA09CE00DA31AC /* Release */ = { 331 | isa = XCBuildConfiguration; 332 | buildSettings = { 333 | CLANG_WARN_BOOL_CONVERSION = YES; 334 | CLANG_WARN_CONSTANT_CONVERSION = YES; 335 | CLANG_WARN_EMPTY_BODY = YES; 336 | CLANG_WARN_ENUM_CONVERSION = YES; 337 | CLANG_WARN_INFINITE_RECURSION = YES; 338 | CLANG_WARN_INT_CONVERSION = YES; 339 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 340 | CLANG_WARN_UNREACHABLE_CODE = YES; 341 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 342 | ENABLE_STRICT_OBJC_MSGSEND = YES; 343 | GCC_NO_COMMON_BLOCKS = YES; 344 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 345 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 346 | GCC_WARN_UNDECLARED_SELECTOR = YES; 347 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 348 | GCC_WARN_UNUSED_FUNCTION = YES; 349 | GCC_WARN_UNUSED_VARIABLE = YES; 350 | OTHER_LDFLAGS = "-ObjC"; 351 | }; 352 | name = Release; 353 | }; 354 | 7E9F51A419DA102000DA31AC /* Debug */ = { 355 | isa = XCBuildConfiguration; 356 | buildSettings = { 357 | ALWAYS_SEARCH_USER_PATHS = NO; 358 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 359 | CLANG_CXX_LIBRARY = "libc++"; 360 | CLANG_ENABLE_MODULES = YES; 361 | CLANG_ENABLE_OBJC_ARC = YES; 362 | CLANG_WARN_BOOL_CONVERSION = YES; 363 | CLANG_WARN_CONSTANT_CONVERSION = YES; 364 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 365 | CLANG_WARN_EMPTY_BODY = YES; 366 | CLANG_WARN_ENUM_CONVERSION = YES; 367 | CLANG_WARN_INT_CONVERSION = YES; 368 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 369 | CLANG_WARN_UNREACHABLE_CODE = YES; 370 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 371 | COPY_PHASE_STRIP = NO; 372 | ENABLE_STRICT_OBJC_MSGSEND = YES; 373 | GCC_C_LANGUAGE_STANDARD = gnu99; 374 | GCC_DYNAMIC_NO_PIC = NO; 375 | GCC_OPTIMIZATION_LEVEL = 0; 376 | GCC_PREPROCESSOR_DEFINITIONS = ( 377 | "DEBUG=1", 378 | "$(inherited)", 379 | ); 380 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 381 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 382 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 383 | GCC_WARN_UNDECLARED_SELECTOR = YES; 384 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 385 | GCC_WARN_UNUSED_FUNCTION = YES; 386 | GCC_WARN_UNUSED_VARIABLE = YES; 387 | HEADER_SEARCH_PATHS = "$(inherited)"; 388 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 389 | MTL_ENABLE_DEBUG_INFO = YES; 390 | ONLY_ACTIVE_ARCH = YES; 391 | OTHER_LDFLAGS = "-ObjC"; 392 | PRODUCT_NAME = "$(TARGET_NAME)"; 393 | SDKROOT = iphoneos; 394 | SKIP_INSTALL = YES; 395 | }; 396 | name = Debug; 397 | }; 398 | 7E9F51A519DA102000DA31AC /* Release */ = { 399 | isa = XCBuildConfiguration; 400 | buildSettings = { 401 | ALWAYS_SEARCH_USER_PATHS = NO; 402 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 403 | CLANG_CXX_LIBRARY = "libc++"; 404 | CLANG_ENABLE_MODULES = YES; 405 | CLANG_ENABLE_OBJC_ARC = YES; 406 | CLANG_WARN_BOOL_CONVERSION = YES; 407 | CLANG_WARN_CONSTANT_CONVERSION = YES; 408 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 409 | CLANG_WARN_EMPTY_BODY = YES; 410 | CLANG_WARN_ENUM_CONVERSION = YES; 411 | CLANG_WARN_INT_CONVERSION = YES; 412 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 413 | CLANG_WARN_UNREACHABLE_CODE = YES; 414 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 415 | COPY_PHASE_STRIP = YES; 416 | ENABLE_NS_ASSERTIONS = NO; 417 | ENABLE_STRICT_OBJC_MSGSEND = YES; 418 | GCC_C_LANGUAGE_STANDARD = gnu99; 419 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 420 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 421 | GCC_WARN_UNDECLARED_SELECTOR = YES; 422 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 423 | GCC_WARN_UNUSED_FUNCTION = YES; 424 | GCC_WARN_UNUSED_VARIABLE = YES; 425 | HEADER_SEARCH_PATHS = "$(inherited)"; 426 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 427 | MTL_ENABLE_DEBUG_INFO = NO; 428 | OTHER_LDFLAGS = "-ObjC"; 429 | PRODUCT_NAME = "$(TARGET_NAME)"; 430 | SDKROOT = iphoneos; 431 | SKIP_INSTALL = YES; 432 | VALIDATE_PRODUCT = YES; 433 | }; 434 | name = Release; 435 | }; 436 | 7E9F51A719DA102000DA31AC /* Debug */ = { 437 | isa = XCBuildConfiguration; 438 | buildSettings = { 439 | ALWAYS_SEARCH_USER_PATHS = NO; 440 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 441 | CLANG_CXX_LIBRARY = "libc++"; 442 | CLANG_ENABLE_MODULES = YES; 443 | CLANG_ENABLE_OBJC_ARC = YES; 444 | CLANG_WARN_BOOL_CONVERSION = YES; 445 | CLANG_WARN_CONSTANT_CONVERSION = YES; 446 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 447 | CLANG_WARN_EMPTY_BODY = YES; 448 | CLANG_WARN_ENUM_CONVERSION = YES; 449 | CLANG_WARN_INT_CONVERSION = YES; 450 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 451 | CLANG_WARN_UNREACHABLE_CODE = YES; 452 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 453 | COPY_PHASE_STRIP = NO; 454 | ENABLE_STRICT_OBJC_MSGSEND = YES; 455 | FRAMEWORK_SEARCH_PATHS = ( 456 | "$(SDKROOT)/Developer/Library/Frameworks", 457 | "$(inherited)", 458 | ); 459 | GCC_C_LANGUAGE_STANDARD = gnu99; 460 | GCC_DYNAMIC_NO_PIC = NO; 461 | GCC_OPTIMIZATION_LEVEL = 0; 462 | GCC_PREPROCESSOR_DEFINITIONS = ( 463 | "DEBUG=1", 464 | "$(inherited)", 465 | ); 466 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 467 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 468 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 469 | GCC_WARN_UNDECLARED_SELECTOR = YES; 470 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 471 | GCC_WARN_UNUSED_FUNCTION = YES; 472 | GCC_WARN_UNUSED_VARIABLE = YES; 473 | INFOPLIST_FILE = CDVWKWebViewEngineLibTests/Info.plist; 474 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 475 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 476 | MTL_ENABLE_DEBUG_INFO = YES; 477 | ONLY_ACTIVE_ARCH = YES; 478 | PRODUCT_BUNDLE_IDENTIFIER = "org.apache.cordova.$(PRODUCT_NAME:rfc1034identifier)"; 479 | PRODUCT_NAME = "$(TARGET_NAME)"; 480 | SDKROOT = iphoneos; 481 | }; 482 | name = Debug; 483 | }; 484 | 7E9F51A819DA102000DA31AC /* Release */ = { 485 | isa = XCBuildConfiguration; 486 | buildSettings = { 487 | ALWAYS_SEARCH_USER_PATHS = NO; 488 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 489 | CLANG_CXX_LIBRARY = "libc++"; 490 | CLANG_ENABLE_MODULES = YES; 491 | CLANG_ENABLE_OBJC_ARC = YES; 492 | CLANG_WARN_BOOL_CONVERSION = YES; 493 | CLANG_WARN_CONSTANT_CONVERSION = YES; 494 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 495 | CLANG_WARN_EMPTY_BODY = YES; 496 | CLANG_WARN_ENUM_CONVERSION = YES; 497 | CLANG_WARN_INT_CONVERSION = YES; 498 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 499 | CLANG_WARN_UNREACHABLE_CODE = YES; 500 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 501 | COPY_PHASE_STRIP = YES; 502 | ENABLE_NS_ASSERTIONS = NO; 503 | ENABLE_STRICT_OBJC_MSGSEND = YES; 504 | FRAMEWORK_SEARCH_PATHS = ( 505 | "$(SDKROOT)/Developer/Library/Frameworks", 506 | "$(inherited)", 507 | ); 508 | GCC_C_LANGUAGE_STANDARD = gnu99; 509 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 510 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 511 | GCC_WARN_UNDECLARED_SELECTOR = YES; 512 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 513 | GCC_WARN_UNUSED_FUNCTION = YES; 514 | GCC_WARN_UNUSED_VARIABLE = YES; 515 | INFOPLIST_FILE = CDVWKWebViewEngineLibTests/Info.plist; 516 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 517 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 518 | MTL_ENABLE_DEBUG_INFO = NO; 519 | PRODUCT_BUNDLE_IDENTIFIER = "org.apache.cordova.$(PRODUCT_NAME:rfc1034identifier)"; 520 | PRODUCT_NAME = "$(TARGET_NAME)"; 521 | SDKROOT = iphoneos; 522 | VALIDATE_PRODUCT = YES; 523 | }; 524 | name = Release; 525 | }; 526 | /* End XCBuildConfiguration section */ 527 | 528 | /* Begin XCConfigurationList section */ 529 | 7E9F517519DA09CE00DA31AC /* Build configuration list for PBXProject "CDVWKWebViewEngineTest" */ = { 530 | isa = XCConfigurationList; 531 | buildConfigurations = ( 532 | 7E9F517619DA09CE00DA31AC /* Debug */, 533 | 7E9F517719DA09CE00DA31AC /* Release */, 534 | ); 535 | defaultConfigurationIsVisible = 0; 536 | defaultConfigurationName = Release; 537 | }; 538 | 7E9F51A319DA102000DA31AC /* Build configuration list for PBXNativeTarget "CDVWKWebViewEngineLib" */ = { 539 | isa = XCConfigurationList; 540 | buildConfigurations = ( 541 | 7E9F51A419DA102000DA31AC /* Debug */, 542 | 7E9F51A519DA102000DA31AC /* Release */, 543 | ); 544 | defaultConfigurationIsVisible = 0; 545 | defaultConfigurationName = Release; 546 | }; 547 | 7E9F51A619DA102000DA31AC /* Build configuration list for PBXNativeTarget "CDVWKWebViewEngineLibTests" */ = { 548 | isa = XCConfigurationList; 549 | buildConfigurations = ( 550 | 7E9F51A719DA102000DA31AC /* Debug */, 551 | 7E9F51A819DA102000DA31AC /* Release */, 552 | ); 553 | defaultConfigurationIsVisible = 0; 554 | defaultConfigurationName = Release; 555 | }; 556 | /* End XCConfigurationList section */ 557 | }; 558 | rootObject = 7E9F517219DA09CE00DA31AC /* Project object */; 559 | } 560 | -------------------------------------------------------------------------------- /tests/ios/CDVWKWebViewEngineTest/CDVWKWebViewEngineTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /tests/ios/CDVWKWebViewEngineTest/CDVWKWebViewEngineTest.xcodeproj/project.xcworkspace/xcshareddata/CDVWKWebViewEngineTest.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | 6BE9AD73-1B9F-4362-98D7-DC631BEC6185 9 | IDESourceControlProjectName 10 | CDVWKWebViewEngineTest 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | BEF5A5D0FF64801E558286389440357A9233D7DB 14 | https://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine.git 15 | 16 | IDESourceControlProjectPath 17 | tests/ios/CDVWKWebViewEngineTest/CDVWKWebViewEngineTest.xcodeproj 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | BEF5A5D0FF64801E558286389440357A9233D7DB 21 | ../../../../.. 22 | 23 | IDESourceControlProjectURL 24 | https://git-wip-us.apache.org/repos/asf/cordova-plugin-wkwebview-engine.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | BEF5A5D0FF64801E558286389440357A9233D7DB 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | BEF5A5D0FF64801E558286389440357A9233D7DB 36 | IDESourceControlWCCName 37 | cordova-plugin-wkwebview-engine 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /tests/ios/CDVWKWebViewEngineTest/CDVWKWebViewEngineTest.xcodeproj/xcshareddata/xcschemes/CDVWKWebViewEngineLib.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 70 | 71 | 72 | 73 | 75 | 76 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /tests/ios/CDVWKWebViewEngineTest/CDVWKWebViewEngineTest.xcodeproj/xcshareddata/xcschemes/CDVWKWebViewEngineLibTests.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 44 | 45 | 46 | 47 | 48 | 54 | 55 | 56 | 57 | 58 | 59 | 69 | 70 | 76 | 77 | 78 | 79 | 80 | 81 | 87 | 88 | 94 | 95 | 96 | 97 | 99 | 100 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /tests/ios/README.md: -------------------------------------------------------------------------------- 1 | 19 | 20 | # iOS Tests for CDVWKWebViewEngine 21 | 22 | You need to install `node.js` to pull in `cordova-ios`. 23 | 24 | First install cordova-ios: 25 | 26 | npm install 27 | 28 | ... in the current folder. 29 | 30 | 31 | # Testing from Xcode 32 | 33 | 1. Launch the `CDVWKWebViewEngineTest.xcworkspace` file. 34 | 2. Choose "CDVWKWebViewEngineLibTests" from the scheme drop-down menu 35 | 3. Click and hold on the `Play` button, and choose the `Wrench` icon to run the tests 36 | 37 | 38 | # Testing from the command line 39 | 40 | npm test 41 | -------------------------------------------------------------------------------- /tests/ios/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-wkwebview-engine-test-ios", 3 | "version": "1.0.0", 4 | "description": "iOS Unit Tests for cordova-plugin-wkwebview-engine Plugin", 5 | "author": "Apache Software Foundation", 6 | "license": "Apache-2.0", 7 | "dependencies": { 8 | "cordova-ios": "^5.1.1" 9 | }, 10 | "scripts": { 11 | "test": "xcodebuild test -workspace CDVWKWebViewEngineTest.xcworkspace -scheme CDVWKWebViewEngineLibTests -destination 'platform=iOS Simulator,name=iPhone 5' -xcconfig test.xcconfig" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /tests/ios/test.xcconfig: -------------------------------------------------------------------------------- 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 | HEADER_SEARCH_PATHS = $(TARGET_BUILD_DIR)/include 21 | -------------------------------------------------------------------------------- /tests/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cordova-plugin-wkwebview-engine-tests", 3 | "version": "1.2.3-dev", 4 | "description": "", 5 | "cordova": { 6 | "id": "cordova-plugin-wkwebview-engine-tests", 7 | "platforms": [] 8 | }, 9 | "keywords": [ 10 | "ecosystem:cordova" 11 | ], 12 | "author": "Apache Software Foundation", 13 | "license": "Apache-2.0" 14 | } 15 | -------------------------------------------------------------------------------- /tests/plugin.xml: -------------------------------------------------------------------------------- 1 | 2 | 20 | 21 | 24 | cordova-plugin-wkwebview-engine Tests 25 | Apache 2.0 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /tests/tests.js: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * Licensed to the Apache Software Foundation (ASF) under one 4 | * or more contributor license agreements. See the NOTICE file 5 | * distributed with this work for additional information 6 | * regarding copyright ownership. The ASF licenses this file 7 | * to you under the Apache License, Version 2.0 (the 8 | * "License"); you may not use this file except in compliance 9 | * with the License. You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, 14 | * software distributed under the License is distributed on an 15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | * KIND, either express or implied. See the License for the 17 | * specific language governing permissions and limitations 18 | * under the License. 19 | * 20 | */ 21 | 22 | exports.defineAutoTests = function () { 23 | describe('cordova-plugin-wkwebview-engine (cordova)', function () { 24 | it('cordova-plugin-wkwebview-engine.spec.1 should exist', function () { 25 | expect(window).toBeDefined(); 26 | }); 27 | }); 28 | }; 29 | 30 | exports.defineManualTests = function (contentEl, createActionButton) { 31 | contentEl.innerHTML = 'Your HTML instructions here'; 32 | 33 | createActionButton( 34 | 'Do something 1', 35 | function () { 36 | // do something 1; 37 | }, 38 | 'do-something-1' 39 | ); 40 | 41 | createActionButton( 42 | 'Do something 2', 43 | function () { 44 | // do something 2; 45 | }, 46 | 'do-something-2' 47 | ); 48 | }; 49 | --------------------------------------------------------------------------------