0 Star 10 Fork 5

yadong.zhang / cordova-study

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

cordova-study

Cordova学习记录,Cordova插件的使用,热更新、media、device、集成x5内核等等。

目录简介

hooks:存放自定义cordova命令的脚本文件。每个project命令都可以定义before和after的Hook,比如:before_build、after_build

platforms:平台目录,各自的平台代码就放在这里,可以放一下平台专属的代码

plugins:Cordova插件目录,安装的插件会放在这里,cordova提供的原生API也是以插件的形式提供的

www:源代码目录。在cordova prepare的时候会被copy到各个平台工程的assets\www目录中

config.xml:主要是cordova的一些配置,比如:项目使用了哪些插件、应用图标icon和启动页面

常用命令

# 创建Cordova项目
cordova create [projectName] [packageName]
# 添加平台
cordova platform add android
cordova platform add ios
# 移除android平台
cordova platform rm android
# 查看已添加的平台
cordova platform ls
# 添加插件
cordova plugin add [plugin-full-name]
# 删除插件
cordova plugin rm [plugin-full-name]
# 查看已添加的插件
cordova plugin ls
# 打包cordova项目到Android平台
cordova build android

项目中集成的插件

  1. cordova-plugin-whitelist 1.3.3 白名单
  2. cordova-hot-code-push-plugin 1.5.3 热更新
  3. cordova-plugin-device 2.0.2 "Device" 获取设备信息
  4. cordova-plugin-local-notification 0.9.0-beta.2 "LocalNotification" 本地通知
  5. cordova-plugin-badge 0.8.7 "Badge" 未读消息数徽章显示
  6. cordova-plugin-appavailability 0.4.2 "AppAvailability" 检测第三方app是否存在
  7. cordova-plugin-file 6.0.1 "File" 文件操作相关
  8. cordova-plugin-file-opener2 2.0.19 "File Opener2" 文件打开
  9. cordova-plugin-file-transfer 1.7.1 "File Transfer" 文件下载
  10. cordova-plugin-inappbrowser 3.0.0 "InAppBrowser" 应用内置浏览器
  11. com.lampa.startapp 6.1.6 "startApp" 打开第三方app

生命不息,折腾不止! 更多信息,请关注:

  1. 我的博客
  2. 我的微博
  3. 我的头条号
  4. 我的mooc

有任何问题可以

如果喜欢,请多多分享、多多Star

开源协议

MIT

MIT License Copyright (c) 2018 yadong.zhang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Cordova学习记录,Cordova插件的使用,热更新、media、device、集成x5内核、消息推送等等。 展开 收起
Android
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Android
1
https://gitee.com/yadong.zhang/cordova-study.git
git@gitee.com:yadong.zhang/cordova-study.git
yadong.zhang
cordova-study
cordova-study
master

搜索帮助