Thanks a lot He ke, you helped to complete my project. For now its ok with the installation, but in future I might need and I ll bug you.
*Niraj Chauhan* [email protected] *GreyKite* http://www.greykite.com On Thu, Jan 14, 2016 at 1:49 PM, He, Ke <[email protected]> wrote: > Hi, > > In crosswalk-lite the native libraries is compressed, and they need > to be decompressed it during the first installation. That’s the reason of > the alert dialog(installing crosswalk). > > Crosswalk-lite is different from the crosswalk shared mode. In > crosswalk shared mode, after your app get launched, it will download the > whole web engine from a remote server. So your app is much smaller(no web > engine embedded), but need further download. In crosswalk lite, the web > engine is customized, compressed, and embedded in your app. > > 1) I can disable the compressing function, then the alert dialog > will disappear. But the size will increase from your 14.8M to maybe ~19M. > > 2) Sorry I know nothing about the angular. You can refer to > https://github.com/crosswalk-project/crosswalk-website/wiki/Crosswalk-Lite-Disabled-Feature-List > , then see which feature is needed by angular. I can enable the feature > flag for you and try again. > > BRs, > > He,Ke > > > > *From:* Niraj Chauhan [mailto:[email protected]] > *Sent:* Thursday, January 14, 2016 3:47 PM > > *To:* He, Ke > *Subject:* Re: [Crosswalk-help] Crosswalk Lite With Cordova > > > > Thanks He Ke. > > My app finally started, found an angular module (angular-carousel > <https://github.com/revolunet/angular-carousel>) which aint working with > lite version, don't know why its not, but any ways this brought my app size > to 14.8MB which is cool compared to 28MB. > > Also just wanted to know is there any way to hide the alert box for first > installation (Installing crosswalk) > > My colleagues are telling me that, it only comes if crosswalk is in shared > version, is it true with lite version also? > > > > > > * Niraj Chauhan* > [email protected] > > *GreyKite* > http://www.greykite.com > > > > On Thu, Jan 14, 2016 at 12:33 PM, He, Ke <[email protected]> wrote: > > Sorry for the build failed. > > In your cordova app folder, find the file XWalkCordovaUiClient.java, > change the definition of “onJsAlert, onJsConfirm, onJsPrompt” from > “private boolean xxx” into “public boolean xxx“ > > > > BRs, > > He,Ke > > > > *From:* Niraj Chauhan [mailto:[email protected]] > *Sent:* Thursday, January 14, 2016 2:00 PM > *To:* He, Ke > > > *Subject:* Re: [Crosswalk-help] Crosswalk Lite With Cordova > > > > Hi, > > I tried and this time build failed > > :processDebugResources > :generateDebugSources > :compileDebugJava > /Users/apple/Desktop/GreyKite/mathsapp/platforms/android/src/org/crosswalk/engine/XWalkCordovaUiClient.java:71: > error: onJsAlert(XWalkView,String,String,XWalkJavascriptResult) in > XWalkCordovaUiClient cannot override > onJsAlert(XWalkView,String,String,XWalkJavascriptResult) in XWalkUIClient > private boolean onJsAlert(XWalkView view, String url, String message, > ^ > attempting to assign weaker access privileges; was public > /Users/apple/Desktop/GreyKite/mathsapp/platforms/android/src/org/crosswalk/engine/XWalkCordovaUiClient.java:89: > error: onJsConfirm(XWalkView,String,String,XWalkJavascriptResult) in > XWalkCordovaUiClient cannot override > onJsConfirm(XWalkView,String,String,XWalkJavascriptResult) in XWalkUIClient > private boolean onJsConfirm(XWalkView view, String url, String message, > ^ > attempting to assign weaker access privileges; was public > /Users/apple/Desktop/GreyKite/mathsapp/platforms/android/src/org/crosswalk/engine/XWalkCordovaUiClient.java:112: > error: onJsPrompt(XWalkView,String,String,String,XWalkJavascriptResult) in > XWalkCordovaUiClient cannot override > onJsPrompt(XWalkView,String,String,String,XWalkJavascriptResult) in > XWalkUIClient > private boolean onJsPrompt(XWalkView view, String origin, String > message, String defaultValue, > ^ > attempting to assign weaker access privileges; was public > Note: Some input files use or override a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > 3 errors > :compileDebugJava FAILED > > FAILURE: Build failed with an exception. > > * What went wrong: > Execution failed for task ':compileDebugJava'. > > Compilation failed; see the compiler error output for details. > > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or > --debug option to get more log output. > > BUILD FAILED > > Total time: 28.893 secs > > > /Users/apple/Desktop/GreyKite/mathsapp/platforms/android/cordova/node_modules/q/q.js:126 > throw e; > ^ > Error code 1 for command: > /Users/apple/Desktop/GreyKite/mathsapp/platforms/android/gradlew with args: > cdvBuildDebug,-b,/Users/apple/Desktop/GreyKite/mathsapp/platforms/android/build.gradle,-Dorg.gradle.daemon=true > ERROR building one of the platforms: Error: > /Users/apple/Desktop/GreyKite/mathsapp/platforms/android/cordova/build: > Command failed with exit code 1 > You may not have the required environment or OS to build this project > > > > * Niraj Chauhan* > [email protected] > > *GreyKite* > http://www.greykite.com > > > > On Thu, Jan 14, 2016 at 11:16 AM, Niraj Chauhan <[email protected]> > wrote: > > Thanks, I ll quickly test it out. > > > > * Niraj Chauhan* > [email protected] > > *GreyKite* > http://www.greykite.com > > > > On Thu, Jan 14, 2016 at 11:13 AM, He, Ke <[email protected]> wrote: > > Hi, > > Dev-tools is enabled in the attached aar. > > > > BRs, > > He,Ke > > *From:* Niraj Chauhan [mailto:[email protected]] > *Sent:* Thursday, January 14, 2016 1:05 PM > *To:* He, Ke > *Cc:* [email protected] > *Subject:* RE: [Crosswalk-help] Crosswalk Lite With Cordova > > > > That will be really great. Please do that :) > > On Jan 14, 2016 10:33 AM, "He, Ke" <[email protected]> wrote: > > Hi, Niraj, > > I’m afraid in crosswalk-lite, the dev-tools was disabled. So you > cannot debug in “chrome://inspect/#devices”. > > How about I enable the debugging functions and rebuild another > lite.aar for you? > > > > BRs, > > He,Ke > > > > *From:* Niraj Chauhan [mailto:[email protected]] > *Sent:* Wednesday, January 13, 2016 2:18 PM > *To:* He, Ke > *Cc:* [email protected] > *Subject:* Re: [Crosswalk-help] Crosswalk Lite With Cordova > > > > Hi, > > So I tested with simple HTML page and the app worked. My app is also > working but the angular js is not getting loaded I guess. Its because of > some javascript error, I tried debugging it in chrome://inspect/#devices > but its not displaying my app, though it displays my device. > > Any workaround for this? > > > > > > * Niraj Chauhan* > [email protected] > > *GreyKite* > http://www.greykite.com > > > > On Wed, Jan 13, 2016 at 9:38 AM, Niraj Chauhan <[email protected]> > wrote: > > Hi He Ke, > > Is there any way to debug why the app is not getting loaded, can I see the > logs? > > > > * Niraj Chauhan* > [email protected] > > *GreyKite* > http://www.greykite.com > > > > On Wed, Jan 13, 2016 at 8:06 AM, He, Ke <[email protected]> wrote: > > Hi, > > The dialog of installing is expected. It only shows the first time > you start the app. > > To reduce binary size, in crosswalk-lite we add some flags to > enable/disable features such as video/audio/ICU/plugins/ etc. It is > possible that those feature-cuttings break you app. Different users want > different flag groups, we are considering how to deliver several binaries > and how to let user configure those flags conveniently. > > You can put a very simple html pages in the www folder, if shows > successfully, then it means crosswalk-lite was installed successfully but > the feature-cuttings break your app. > > > > BRs, > > He,Ke > > *From:* Niraj Chauhan [mailto:[email protected]] > *Sent:* Tuesday, January 12, 2016 8:06 PM > *To:* He, Ke > *Cc:* [email protected] > *Subject:* Re: [Crosswalk-help] Crosswalk Lite With Cordova > > > > Hi, > > Sorry it was my mistake, I didn't delete lib file from res folder. After > deleting that build went successful, but on starting the app it showed a > dialog of crosswalk installing and then just a white splash screen comes, > my app doesn't shows up. I tried killing and starting app again, but next > time only white splash screen comes. PFA screenshots > > On Jan 12, 2016 4:10 PM, "Niraj Chauhan" <[email protected]> wrote: > > Hi, > > I tried again, first I deleted xwalk from my m2 folder, then updated the > aar file. Updated config xml file(xwalkMultipleApk = false) > Removed android platform and added again in cordova and finally ran build. > > Got same error > > > Users/apple/Desktop/GreyKite/mathsapp/platforms/android/build/intermediates/exploded-aar/org.xwalk/xwalk_core_library/ > 1.0.0.1/res/raw/libxwalkcore.so.x86: Error: Duplicate resources: > /Users/apple/Desktop/GreyKite/mathsapp/platforms/android/build/intermediates/exploded-aar/org.xwalk/xwalk_core_library/ > 1.0.0.1/res/raw/libxwalkcore.so.x86:raw/libxwalkcore, > /Users/apple/Desktop/GreyKite/mathsapp/platforms/android/build/intermediates/exploded-aar/org.xwalk/xwalk_core_library/ > 1.0.0.1/res/raw/libxwalkcore.so.armeabi_v7a:raw/libxwalkcore > > My aar extracted contents screenshot attached. > > [image: cid:ii_ijb9o21i0_152356b86eb2a99a] > > > > > > > * Niraj Chauhan* > [email protected] > > *GreyKite* > http://www.greykite.com > > > > On Tue, Jan 12, 2016 at 3:41 PM, Niraj Chauhan <[email protected]> > wrote: > > Ok let me try and see. > > > > * Niraj Chauhan* > [email protected] > > *GreyKite* > http://www.greykite.com > > > > On Tue, Jan 12, 2016 at 3:40 PM, He, Ke <[email protected]> wrote: > > Hi, > > Sorry, my develop-PC is not connected with my laptop now. > > -rw-r--r-- 1 Minato staff 20M Jan 12 12:03 > xwalk_core_library-1.0.0.1.aar > > This xwalk_core_library-1.0.0.1.aar is a simple zip format file. In > Ubuntu, I can open it directly by archive-manager and delete its file. I > guess there are also some tools in Mac. Or you can just unzip it, then > delete files, then re-zip it, I think this way should be fine too. > > > > BRs, > > He,Ke > > *From:* Niraj Chauhan [mailto:[email protected]] > *Sent:* Tuesday, January 12, 2016 6:01 PM > > > *To:* He, Ke > *Cc:* [email protected] > *Subject:* Re: [Crosswalk-help] Crosswalk Lite With Cordova > > > > Hi He Ke, > > In my maven directory i.e. > /Users/apple/.m2/repository/org/xwalk/xwalk_core_library/1.0.0.1 I dont > see folders of extracted aar file. > > My contents are: > -rw-r--r-- 1 Minato staff 199B Jan 12 12:06 _remote.repositories > -rw-r--r-- 1 Minato staff 20M Jan 12 12:03 > xwalk_core_library-1.0.0.1.aar > -rw-r--r-- 1 Minato staff 502B Jan 12 12:06 > xwalk_core_library-1.0.0.1.pom > > How do I remove file from aar file? > > If you have already tested then can you send me your aar file? > > > > > > * Niraj Chauhan* > [email protected] > > *GreyKite* > http://www.greykite.com > > > > On Tue, Jan 12, 2016 at 3:20 PM, He, Ke <[email protected]> wrote: > > Hi, Niraj, > > This error only reproduces when you want to build multiple apks(for > both arm and x86). > > Here is a workaround solution: > > 1) In you cordova app directory, open the config.xml, change the > value of “xwalkMultipleApk” into “false”. > > 2) Edit the crosswalk-lite.aar file, aar is simple zip format. It > is OK If you edit directly in the maven repo folder, in my pc it is > ~/.m2/repository/org/xwalk/…., or you can edit the aar first then > reinstall. Assume you want the apk for arm: delete the x86 folder in the > aar/jni/ , delete the file libxwalkcore.so.x86 in aar/res/raw/ . > > 3) Run cordova clean, cordova build. Done. > > 4) If you want apk for x86, then delete those armeabi-v7a contents > and keep x86 contents. > > > > > > Best Regards > > He,Ke > > > > *From:* Niraj Chauhan [mailto:[email protected]] > *Sent:* Tuesday, January 12, 2016 3:18 PM > > > *To:* He, Ke > *Cc:* [email protected] > *Subject:* Re: [Crosswalk-help] Crosswalk Lite With Cordova > > > > Ok, > > Thanks for helping me out, but do let me know as soon as its done. > > > > * Niraj Chauhan* > [email protected] > > *GreyKite* > http://www.greykite.com > > > > On Tue, Jan 12, 2016 at 12:38 PM, He, Ke <[email protected]> wrote: > > Hi, > > Same error happened on my PC. Even delete libxwalkcore.* cannot > resolve this problem. > > In crosswalk, the libxwalkcore.so is placed in JNI folder as a > library, but in crosswalk-lite we set the libxwalkcore.* file in the res > folder as a resource and decompress it in runtime. Seems this difference > brings problems. Sorry, I’ll try to fix it. > > > > Best Regards > > He,Ke > > > > *From:* Niraj Chauhan [mailto:[email protected]] > *Sent:* Tuesday, January 12, 2016 2:23 PM > > > *To:* He, Ke > *Cc:* [email protected] > *Subject:* Re: [Crosswalk-help] Crosswalk Lite With Cordova > > > > Hi, > > Thanks now I am using version 15.44 but still I am getting the same error. > How do I delete libxwalkcore.* file from aar file? I have not worked that > much in android. Is there any tool available for this? > > > > * Niraj Chauhan* > [email protected] > > *GreyKite* > http://www.greykite.com > > > > On Tue, Jan 12, 2016 at 8:36 AM, He, Ke <[email protected]> wrote: > > Hi, Niraj > > I see in your aar it contains libs for both x86 and arm. I guess > that’s why it complains “Error: Duplicate resources”. I’ll follow this bug. > As a workaround, you can delete either libxwalkcore.so.x86 or > libxwalkcore.so.armeabi_v7a in your aar, only keep one lib and try again. > > By the way, the crosswalk-17 is still in testing and bug-fixing. And > the crosswalk-lite for cordova is ongoing, this manual way is only for > experimental purpose. > > > > Best Regards > > He,Ke > > > > *From:* Niraj Chauhan [mailto:[email protected]] > *Sent:* Monday, January 11, 2016 11:44 PM > *To:* He, Ke > *Cc:* [email protected] > *Subject:* Re: [Crosswalk-help] Crosswalk Lite With Cordova > > > > Hi He Ke, > > I followed your steps. > > Downloaded crosswalk-17.46.449.1.aar > <https://download.01.org/crosswalk/releases/crosswalk-lite/android/canary/latest/crosswalk-17.46.449.1.aar> > file. After download I renamed aar file to crosswalk-lite-17.46.aar and > hosted it on my local maven repository using this command: > > mvn install:install-file -Dfile=crosswalk-lite-17.46.aar > -DgroupId=org.xwalk -DartifactId=xwalk_core_library -Dversion=1.0.0.1 > -Dpackaging=aar > bck-i-search: mvn > > Now in my xwalk.gradle file I made following changes: > > repositories { > mavenLocal() > } > > def xwalkSpec = xwalkVersion > > def liteSpec = org.xwalk:xwalk_core_library:1.0.0.1 > if ((xwalkSpec =~ /:/).count == 1) { > xwalkSpec = DEFAULT_GROUP_ID + xwalkSpec > } else if ((xwalkSpec =~ /:/).count == 0) { > if (xwalkSpec ==~ /\d+/) { > xwalkSpec = "${xwalkSpec}+" > } > xwalkSpec = DEFAULT_GROUP_ID + artifactid + xwalkSpec > } > println xwalkSpec > > dependencies { > compile liteSpec > } > > Before building, I removed my android platform, added again and then > finally build. > > Its throwing me following error: > > FAILURE: Build failed with an exception. > > * What went wrong: > Execution failed for task ':mergeDebugResources'. > > > /Users/apple/Desktop/GreyKite/mathsapp/platforms/android/build/intermediates/exploded-aar/org.xwalk/xwalk_core_library/ > 1.0.0.1/res/raw/libxwalkcore.so.x86: Error: Duplicate resources: > /Users/apple/Desktop/GreyKite/mathsapp/platforms/android/build/intermediates/exploded-aar/org.xwalk/xwalk_core_library/ > 1.0.0.1/res/raw/libxwalkcore.so.x86:raw/libxwalkcore, > /Users/apple/Desktop/GreyKite/mathsapp/platforms/android/build/intermediates/exploded-aar/org.xwalk/xwalk_core_library/ > 1.0.0.1/res/raw/libxwalkcore.so.armeabi_v7a:raw/libxwalkcore > > PFA log file. > > > > * Niraj Chauhan* > [email protected] > > *GreyKite* > http://www.greykite.com > > > > On Mon, Jan 11, 2016 at 11:00 AM, He, Ke <[email protected]> wrote: > > Hi, > > Thanks for your attention to crosswalk project. The crosswalk-lite support > for cordova is still ongoing, So currently it cannot be integrated easily > by running “cordova plug add” command. we plan to finish it by Q1 2016. > Before that we cannot guarantee the crosswalk-lite is stable. > > Only for experimental purpose you can integrate crosswalk-lite manually as > below: > > 1) Follow the > https://crosswalk-project.org/documentation/cordova/dordova_4.html , > create your helloworld.apk for example. Now the crosswalk(not > crosswalk-lite) is integrated. > > 2) Change the crosswalk into crosswalk-lite: from the folder > helloworld/plugins/, find the .…/xwalk.gradle and open it. You can find the > maven url is set as https://download.01.org/crosswalk/..../maven2/, this > url is for crosswalk, not crosswalk-lite, the maven repo setup for > crosswalk-lite is still ongoing. So you have to set up a maven repo for > crosswalk-lite. > > 3) From > https://download.01.org/crosswalk/releases/crosswalk-lite/android/canary/ > you can find all versions of crosswalk-lite release. Download the > crosswalk-15.44.397.7.aar(maybe it should be named as > crosswalk-lite-15.xxxx). create your maven repo. > > 4) Edit the xwalk.gradle file: > > Change the maven url as your new created maven repo url. In > “Repositories{ maven{ xxx }} > > Change “compile xwalkSpec” into “compile liteSpec”, add the def of > liteSpec based on your maven repo: > > “def liteSpec = org.xwalk:xwalk_core_library:1.0.0.1 ” for example. > > Then rebuild your app, done. > > > > Best Regards, > > He, Ke > > > > > > > > *From:* Crosswalk-help [ > mailto:[email protected] > <[email protected]>] *On Behalf Of *Niraj > Chauhan > *Sent:* Friday, January 08, 2016 7:10 PM > *To:* [email protected] > *Subject:* [Crosswalk-help] Crosswalk Lite With Cordova > > > > Hi, > > Is there any way to integrate crosswalk lite with cordova. This wiki > <https://github.com/crosswalk-project/crosswalk-website/wiki/Crosswalk-Project-Lite> > does not help, is there any better tutorial available on internet? > > Thank you > > > * Niraj Chauhan* > [email protected] > > *GreyKite* > http://www.greykite.com > > > > > > > > > > > > > > > > > > > > > > >
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
