简体   繁体   English

是否将Cordova-Crosswalk-Android应用程序更新到新的Crosswalk版本?

[英]Update Cordova-Crosswalk-Android App to a new Crosswalk version?

I use the Crosswalk runtime to build a Crosswalk Cordova App for Android 我使用Crosswalk运行时来构建AndroidCrosswalk Cordova应用

How can I update such an app to a new version of crosswalk? 如何将这样的应用程序更新为人行横道的新版本?

Downloading the new crosswalk project manager (or whatever the official name is) contains not only a create script, but also an update script. 下载新的人行横道项目管理器(或任何正式名称)不仅包含create脚本,还包含update脚本。

> update
Usage: update <path_to_project> [--shared]
    --shared will use the CordovaLib project directly instead of making a copy.

Can't say over how many versions this works, but at least in my most recent attempt it worked quite neatly. 无法说出它可以运行多少个版本,但至少在我最近的尝试中,它运行得非常好。

Assuming you have not modified Crosswalk or Cordova directly ie are using the CordovaLib as a Library Project and not modified it directly, then... 假设您尚未直接修改Crosswalk或Cordova,即将CordovaLib用作库项目并且未直接对其进行修改,则...

The framework folder that is inside the download from the CrossWalk website contains the Cordova Android project (the "framework" folder). 从CrossWalk网站下载的文件中的framework文件夹包含Cordova Android项目(“ framework”文件夹)。 Inside this project is another project, the xwalk_core_library project. 在该项目中的另一个项目是xwalk_core_library项目。 You should be able to just swap these two folders with your current versions. 您应该能够将这两个文件夹与当前版本交换。

Lastly you will need to import the cordova.js into your app project. 最后,您需要将cordova.js导入到您的应用程序项目中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM