ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

Crosswalk lite?

Open pewh opened this issue 11 years ago • 32 comments

When I compile APK using Crosswalk, the size is too big. I think using crosswalk lite will reduce the size of compiled APK. But I have no idea to hack ionic-cli to use crosswalk lite.

My question is:

  1. Will this support crosswalk lite?
  2. Is there any hack (or temporary solution) to use crosswalk lite?

Thanks.

pewh avatar Apr 10 '15 02:04 pewh

+1

wfsm avatar Apr 27 '15 08:04 wfsm

+1

piernik avatar May 04 '15 16:05 piernik

+1

Stiveknx avatar May 04 '15 17:05 Stiveknx

Hello all,

I've added this in the Ionic CLI beta.

Go ahead and try it out - npm install -g ionic@beta

ionic browser add crosswalk-lite

I can't promise it works 100%, since its marked as experimental from the Crosswalk team.

jbavari avatar May 08 '15 19:05 jbavari

It builds, but doesn't run on any devices ... logcat: http://pastebin.com/TmSKUP22

Also, it's missing on browser list

Stiveknx avatar May 08 '15 21:05 Stiveknx

I've added it to browser list, just hadn't pushed that out to beta. I'll do that here shortly.

As far as not running on any devices, I dont have any handy right now to run on other than the simulator im using, Genymotion. It's working just fine on that.

jbavari avatar May 08 '15 22:05 jbavari

I'm keen to test this, please let me know when the beta goes out. We're having issues with Android 4.1.2 freezing up on older devices when textboxes get focus and I'm hoping for a miracle that this fixes the issue. I know it doesn't make an logical sense that it would fix the problem we're having, but I'm keen to try in any event.

ghost avatar May 13 '15 07:05 ghost

I got same errors like @Stiveknx too although I use ionic starter & genymotion.

ionic start myApp tabs
npm install
bower install
ionic serve # <-- I test on browser & it's work
ionic browser add crosswalk-lite
ionic build android # <-- success to compile
ionic run android # <-- run on genymotion, and it's crash

I build with:

  • node v0.10.36
  • ionic 1.4.5
  • cordova 4.3.0

Plugin:

  • com.ionic.keyboard 1.0.4
  • cordova-plugin-crosswalk-webview 1.0.1-dev
  • cordova-plugin-whitelist 1.0.0
  • org.apache.cordova.console 0.2.13
  • org.apache.cordova.device 0.3.0
  • org.apache.cordova.splashcsreen 1.0.0

pewh avatar May 26 '15 08:05 pewh

@johannds Crosswalk lite is out in latest CLI version.

@pewh What happens when you replace ionic with cordova and run those run and build commands?

jbavari avatar May 26 '15 14:05 jbavari

When I use cordova, it's work but the size of APK is not like crosswalk-lite. It seems cordova build with crosswalk although I use crosswalk-lite. Below is what I do:

ionic browser add crosswalk-lite
cordova build android  # <-- generate APK with size 20 MB
cordova  run android

and

ionic browse revert android
ionic browser add crosswalk-lite
cordova build android   # <-- still generate APK with size 20 MB
cordova  run android

pewh avatar May 27 '15 04:05 pewh

The browser.js of ionic cli 1.5.0 is ignoring version parameter and isLiteVersion parameter If you are cordova 5.0.x installed. ( https://github.com/driftyco/ionic-app-lib/blob/master/lib/browser.js#L453 )

Workaround: just comment L453.

This will install correct version of crosswalk. But, I tried crosswalk-lite, it's still over 20MB. I don't know why ┐(´д`)┌

junkoro avatar Jun 12 '15 08:06 junkoro

crosswalk-lite dont reduce the size, confirm still above 20M for blank project

Cordova CLI: 5.1.1 Gulp version: Requiring external module coffee-script/register Gulp local: CLI version 3.8.11 Ionic CLI Version: 1.5.5 Ionic App Lib Version: 0.2.2 ios-deploy version: 1.4.0 ios-sim version: 3.1.1 OS: Mac OS X Yosemite Node Version: v0.12.1 Xcode version: Xcode 6.3.2 Build version 6D2105

janckerchen avatar Jun 28 '15 10:06 janckerchen

Would love an update on this issue :)..

ouani avatar Jul 04 '15 11:07 ouani

+1

ffabreti avatar Jul 06 '15 14:07 ffabreti

still an issue on Jul/2015 ionic info:

Cordova CLI: 4.3.1 Ionic Version: 1.0.1 Ionic CLI Version: 1.5.0 Ionic App Lib Version: 0.1.0 OS: Distributor ID: Fedora Description: Fedora release 21 (Twenty One) Node Version: v0.12.6

ffabreti avatar Jul 06 '15 19:07 ffabreti

+1

cihadhoruzoglu avatar Nov 04 '15 07:11 cihadhoruzoglu

+1

souly1 avatar Nov 04 '15 22:11 souly1

+1

gaguirre avatar Nov 13 '15 21:11 gaguirre

+1 same problem here...

Cordova CLI: 5.3.3 Gulp version: CLI version 3.9.0 Gulp local: Local version 3.9.0 Ionic Version: 1.0.1 Ionic CLI Version: 1.7.10 Ionic App Lib Version: 0.6.5 ios-deploy version: 1.7.0 ios-sim version: 5.0.1 OS: Mac OS X El Capitan Node Version: v0.12.7 Xcode version: Xcode 7.1.1 Build version 7B1005

nicon-dev avatar Nov 23 '15 18:11 nicon-dev

+1

bleuscyther avatar Dec 21 '15 03:12 bleuscyther