简体   繁体   中英

Update Cordova-Crosswalk-Android App to a new Crosswalk version?

I use the Crosswalk runtime to build a Crosswalk Cordova App for Android

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.

> 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...

The framework folder that is inside the download from the CrossWalk website contains the Cordova Android project (the "framework" folder). Inside this project is another project, the xwalk_core_library project. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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