How to integrate with crosswalk lite with ionic

2019-05-30 06:53发布

I am searching for crosswalk and it;s still making the apk above 20 mb...

Is there any workout to make it smaller ?

2条回答
▲ chillily
2楼-- · 2019-05-30 07:38

If you already have Crosswalk plugin uninstall it with Cordova CLI : cordova plugin rm cordova-plugin-crosswalk-webview

And then install Crosswalk in Lite mode : cordova plugin add cordova-plugin-crosswalk-webview --variable XWALK_MODE="lite"

APK size before : 27.9 MB, after: 15.5 MB

cf. https://crosswalk-project.org/jira/browse/XWALK-5189

查看更多
我只想做你的唯一
3楼-- · 2019-05-30 07:42

As far as I know the problem is with Chromium. The code is not modular, so the Crosswalk team can't separate specyfic features.

So the answer is NO. At this moment you can't minimalize app size :(

查看更多
登录 后发表回答