Cordova

Apache Cordova允许使用HTML、CSS和JavaScript构建原生移动应用程序。(Apache Cordova allows for building native mobile applications using HTML, CSS and JavaScript.)

Github星跟踪图

Apache Cordova是一个开源的移动开发框架。 它允许您使用标准Web技术 —— HTML5、CSS3和JavaScript进行跨平台开发。 应用程序在针对每个平台的包装器中执行,并且依赖于符合标准的API绑定来访问每个设备的功能,如传感器、数据、网络状态等。

如果您使用Apache Cordova:
  • 一个移动开发人员,并希望通过多个平台扩展应用程序,而无需使用每个平台的语言和工具集来重新实现。
  • 一个Web开发人员,并希望部署一个打包在各种应用商店门户网站中的网络应用程序。
  • 有兴趣将本地应用程序组件与可以访问设备级API的WebView(特殊浏览器窗口)混合的移动开发人员,或者是要在本机和WebView组件之间开发插件接口。

主要指标

概览
名称与所有者apache/cordova-android
主编程语言JavaScript
编程语言JavaScript (语言数: 5)
平台
许可证Apache License 2.0
所有者活动
创建于2012-11-28 08:00:22
推送于2025-04-30 05:30:28
最后一次提交2025-04-24 13:05:52
发布数163
最新版本名称14.0.1 (发布于 )
第一版名称0.9.0 (发布于 )
用户参与
星数3.7k
关注者数283
派生数1.6k
提交数4.1k
已启用问题?
问题数848
打开的问题数83
拉请求数499
打开的拉请求数4
关闭的拉请求数420
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

Build Status
codecov.io

Cordova Android

Cordova Android is an Android application library that allows for Cordova-based
projects to be built for the Android Platform. Cordova based applications are,
at the core, applications written with web technology: HTML, CSS and JavaScript.

Apache Cordova is a project of The Apache Software Foundation (ASF).

Requires

Cordova Android Developer Tools

We recommend using the Cordova command-line tool to create projects and be able to easily install plugins.

However, the following scripts can be used instead:

./bin/create [path package activity] ... creates the ./example app or a cordova android project
./bin/check_reqs ....................... checks that your environment is set up for cordova-android development
./bin/update [path] .................... updates an existing cordova-android project to the version of the framework

These commands live in a generated Cordova Android project. Any interactions with the emulator require you to have an AVD defined.

./cordova/clean ........................ cleans the project
./cordova/build ........................ calls `clean` then compiles the project
./cordova/log   ........................ streams device or emulator logs to STDOUT
./cordova/run   ........................ calls `build` then deploys to a connected Android device. If no Android device is detected, will launch an emulator and deploy to it.
./cordova/version ...................... returns the cordova-android version of the current project

Using Android Studio

  1. Create a project
  2. Import it via "Non-Android Studio Project"

Running the Native Tests

The test/ directory in this project contains an Android test project that can
be used to run different kinds of native tests. Check out the
README contained therein for more details!