Cordova 7.0.0+ integrated crosswalk, ionic2/3/4 (based on cordova) integrated crosswalk

About the integration of the cordova project

1. Create a cordova project

      cordova create hello com.example.hello HelloWorld

2. Integrated plugin

    cordova plugin add cordova-plugin-crosswalk-webview-v2

3. Compile the cordova project

     cordova build android

     You can see 5 installation packages

About the integration of the ionic project (this example uses the compilation method of ionic4)

1. Create a project

   ionic start myApp tabs --type=angular

   Configuration of this project

2. Integration and compilation

 ionic build

 ionic cordova platform add android

 cordova plugin add cordova-plugin-crosswalk-webview-v2

3. Annotate the code of the official plugin

    Comment out the Android webview

    Then run the command

     cordova prepare

     cordova build android

    

 

4. Combine five installation packages into one for easy debugging (optional)

  在config.xml =>widget下添加    <preference name="xwalkMultipleApk" value="false" />

  He will generate a package. Android sudio debugging is convenient for cordova run android to transfer directly to the phone.

  The volume of the same bag will be very large. It is recommended only for debugging. Remove this configuration later and use the armv7 package

contact me

qq:250187715

qq group: 390736068

 

     

Guess you like

Origin blog.csdn.net/m0_37609394/article/details/81907878