You understanding of Crosswalk is correct, exposing JS APIs. I do not understand what you need, you’re trying to understand how extensions work?
On Apr 28, 2016, at 09:46, [email protected]<mailto:[email protected]> wrote: Hi Halton, From the documents, seems the concepts mentioned more is : exposed one’s Api, Mostly is exposing HTML5 api or xwalk api to Native ? How to reflect the expose ? could you simply tell the process ? Thanks a lot ~ From: Huo, Halton [mailto:[email protected]] Sent: Wednesday, April 27, 2016 5:27 PM To: JAMIE JIN (EUCD-EUC-ISD-OOCLL/ZHA) Cc: [email protected]<mailto:[email protected]> Subject: RE: XWalk related questions https://github.com/crosswalk-project/crosswalk-website/wiki/Message-passing-extensions From: [email protected]<mailto:[email protected]> [mailto:[email protected]] Sent: Wednesday, April 27, 2016 5:22 PM To: Huo, Halton <[email protected]<mailto:[email protected]>> Cc: [email protected]<mailto:[email protected]> Subject: RE: XWalk related questions Hi halton, Would you like to answer below two marked with yellow color ? From: Huo, Halton [mailto:[email protected]] Sent: Wednesday, April 27, 2016 4:58 PM To: JAMIE JIN (EUCD-EUC-ISD-OOCLL/ZHA) Cc: [email protected]<mailto:[email protected]> Subject: RE: XWalk related questions Short answer: your case does not need Crosswalk extension or Cordova plugin. From: [email protected]<mailto:[email protected]> [mailto:[email protected]] Sent: Wednesday, April 27, 2016 4:20 PM To: Huo, Halton <[email protected]<mailto:[email protected]>> Cc: [email protected]<mailto:[email protected]> Subject: RE: XWalk related questions Hi Halton, Thanks for your reply. You said --< Actually, the Cordova support on Crosswalk is based on Crosswalk extension mechanism>, it means , the cordova crosswalk plugin is based on PostMessage mechanism? Coud you kindly tell more about the principle or handle process of PostMessage ? From our current apps, our implement process mostly like below: 1. Use weview loadUrl to load html page 2. Override the function onProgressChanged of WebChromeClient, checked when progress==100, to bind data into html page by using loadurl(“javascript:func()”); 3. Override the function shouldOverrideUrlLoading of WebViewClient, to handle url changed. For xwalkview, we could use the same function to implement same effect. Such as replace loadUrl to load function and setXwalkrResouceClient… So, In your opinion, in our app, xwalk extension is better or not ? and kindly tell the detail usage scenarios of extension? From: Huo, Halton [mailto:[email protected]] Sent: Wednesday, April 27, 2016 3:32 PM To: JAMIE JIN (EUCD-EUC-ISD-OOCLL/ZHA); Zhang, Xiaofeng Cc: [email protected]<mailto:[email protected]> Subject: RE: XWalk related questions Basically, the purpose of Crosswalk extension and Cordova plugin are same. Actually, the Cordova support on Crosswalk is based on Crosswalk extension mechanism. If you looked at the implementation, the way how native call JS is different, vice versa. Crosswalk extension are based on PostMessage, while Cordova based on url parser. This will cause major difference of the throughout. Besides, we recently introduce PostBinaryMessage, which is highly adapt by message intensive usage like RealSense. In conclusion, if your API need not too much data exchange between native and JS, just simple control messages, either way can be used. If not, Crosswalk extension is recommended. Thanks, Halton. From: Crosswalk-help [mailto:[email protected]] On Behalf Of [email protected]<mailto:[email protected]> Sent: Tuesday, April 26, 2016 3:01 PM To: Zhang, Xiaofeng <[email protected]<mailto:[email protected]>> Cc: [email protected]<mailto:[email protected]> Subject: Re: [Crosswalk-help] XWalk related questions Hi XiaoFeng, Some questions about xwalk extension, is extension used for js call java native function like cordova plugin ? if yes, what’s the different between them ? From: Zhang, Xiaofeng [mailto:[email protected]] Sent: Tuesday, April 26, 2016 11:11 AM To: JAMIE JIN (EUCD-EUC-ISD-OOCLL/ZHA) Cc: [email protected]<mailto:[email protected]>; Wei, Xiaosong Subject: RE: XWalk related questions While API version is based on what new APIs we completed and added. ------> new APIs means new interfaces and implements in xwalk runtime lib ? …………..yes Generally, if B download 20, A will still works, because we will ensure the compatibility while upgrading. -----> so, mostly, if runtime lib update to a newer version, older xwalk application could still work without upgrade ? ………….. yes, but not sure. Best Regards ☺ Xiaofeng Zhang From: [email protected]<mailto:[email protected]> [mailto:[email protected]] Sent: Tuesday, April 26, 2016 10:59 AM To: Zhang, Xiaofeng Cc: [email protected]<mailto:[email protected]>; Wei, Xiaosong Subject: RE: XWalk related questions While API version is based on what new APIs we completed and added. ------> new APIs means new interfaces and implements in xwalk runtime lib ? Generally, if B download 20, A will still works, because we will ensure the compatibility while upgrading. -----> so, mostly, if runtime lib update to a newer version, older xwalk application could still work without upgrade ? From: Zhang, Xiaofeng [mailto:[email protected]] Sent: Tuesday, April 26, 2016 10:42 AM To: JAMIE JIN (EUCD-EUC-ISD-OOCLL/ZHA); Wei, Xiaosong Cc: [email protected]<mailto:[email protected]> Subject: RE: XWalk related questions I will help to try answer some questions. Please see my comments below. Best Regards ☺ Xiaofeng Zhang From: Crosswalk-help [mailto:[email protected]] On Behalf Of [email protected]<mailto:[email protected]> Sent: Tuesday, April 26, 2016 10:03 AM To: Wei, Xiaosong Cc: [email protected]<mailto:[email protected]> Subject: Re: [Crosswalk-help] XWalk related questions Hi Xiaosong, Could you help answer version upgrade of xwalk runtime lib and app ? from the document of version checking, 1. why version is different but api is same ? [Xiaofeng] Crosswalk version is totally different with Crosswalk API version. Crosswalk version release cycle is modeled on the Chromium release cycle, follows a six week release cadence. You can see the details here: https://github.com/crosswalk-project/crosswalk-website/wiki/Release-dates and https://github.com/crosswalk-project/crosswalk-website/wiki/release-methodology. While API version is based on what new APIs we completed and added. 2. is it unable to make sure the version of xwalk runtime lib is same as app specified? [Xiaofeng] you can’t, because in shared mode, xwalk runtime lib is an independent apk, another app in device may specify a different version with your app. 3. do you have Corresponding table of version and api? [Xiaofeng] see the comments in question 1 4. Does it mean install a high xwalk runtime lib version app may need another lower xwalk runtime lib app upgrade which in same device, such as app A use runtime lib is 15, app B use runtime lib is 20, current device runtime lib is 15, if 15 is not in min api~ api, B will download version 20 to install to device, but A won’t work again, so it need to upgrade,right? [Xiaofeng] Maybe, but it depends on if app B use the new feature or api in 20. Generally, if B download 20, A will still works, because we will ensure the compatibility while upgrading. <image001.png> Below is I test : App version Lib version Result info 18.48.477.13 17.46.448.10 XWalk core version matched [App Version] build:18.48.477.13, api:5, min_api:1 [Lib Version] build:17.46.448.10, api:5, min_api:5 17.46.448.10 18.48.477.13 XWalk core version matched lib version, api:5, min api:5 app version, api:5, min api:5 From: Wei, Xiaosong [mailto:[email protected]] Sent: Monday, April 25, 2016 2:43 PM To: JAMIE JIN (EUCD-EUC-ISD-OOCLL/ZHA); [email protected]<mailto:[email protected]> Subject: RE: XWalk related questions You are right. The downloaded runtime APK in download mode won’t be installed as usual, it’s put under you app’s private storage and it’s under your fully control. That means you can upgrade it on demand and you can get the same benefit as that in embedded mode, an extra benefit compared with embedded mode is that the size of your App APK is reduced significantly. To use shared mode or download mode, it depends on your need. If you just want to shrink your app size and don’t care much about on which runtime it runs, shared mode may be a good option. From: [email protected]<mailto:[email protected]> [mailto:[email protected]] Sent: Monday, April 25, 2016 2:20 PM To: Wei, Xiaosong; [email protected]<mailto:[email protected]> Subject: RE: XWalk related questions So download mode the runtime lib won’t be installed in device after download like shared mode, but put to app storage? When downloaded into app, app size will become larger than previous ? These two modes, are there other weakness<http://www.baidu.com/link?url=hhnqYSkY5nXCziEntzHqJ9OzMxTsB5K_q7W7JbHqtPG1FXZfW35GTcRRtNG8fHy157L0g-cEt0X8Mkc1zwXCi3gZvrzS8ROTKJ43NEo9kMq> except long time waiting when first launch, and do you think which is better? From: Wei, Xiaosong [mailto:[email protected]] Sent: Monday, April 25, 2016 2:12 PM To: JAMIE JIN (EUCD-EUC-ISD-OOCLL/ZHA); [email protected]<mailto:[email protected]> Subject: RE: XWalk related questions No. the downloaded runtime is put under your app’s private storage and others won’t be able to access it. From: [email protected]<mailto:[email protected]> [mailto:[email protected]] Sent: Monday, April 25, 2016 1:49 PM To: Wei, Xiaosong; [email protected]<mailto:[email protected]> Subject: RE: XWalk related questions Hi XiaoSong, Thanks for your reply. So Download Mode couldn’t be shared by multiple Download-mode app, why? Is it unable to check run time lib existed or not ? From: Wei, Xiaosong [mailto:[email protected]] Sent: Monday, April 25, 2016 1:39 PM To: JAMIE JIN (EUCD-EUC-ISD-OOCLL/ZHA); [email protected]<mailto:[email protected]> Subject: RE: XWalk related questions 1. what’s the different between XWalk Shared Mode and Download Mode? [XS] Simply put, for App packaged in shared mode, multiple shared-mode Apps share the same runtime. For App packaged in download mode, the downloaded runtime is under your control, it’s similar to embedded mode except that the runtime is downloaded at the first launch. 2. why download mode need sign the apk same with project app? [XS] It’s for security concern, however you could disable the signing check by setting xwalk_verify=false. 3. Need xwalk_verify set to be enable when in distribute app? [XS] it’s enabled by default, if you don’t want to enforce the security check you could set it to disable. 4. What’s the different between XWalkRuntimeLib.apk and XWalkRuntimeLibLzma.apk except the size, and what should take care when using? [XS] It’s for reducing size. XWalkRuntimeLibLzma.apk is only used in download mode. From: Crosswalk-help [mailto:[email protected]] On Behalf Of [email protected]<mailto:[email protected]> Sent: Monday, April 25, 2016 11:28 AM To: [email protected]<mailto:[email protected]> Subject: [Crosswalk-help] XWalk related questions Hi support, Could you help on below questions: 1. what’s the different between XWalk Shared Mode and Download Mode? 2. why download mode need sign the apk same with project app? 3. Need xwalk_verify set to be enable when in distribute app? 4. What’s the different between XWalkRuntimeLib.apk and XWalkRuntimeLibLzma.apk except the size, and what should take care when using? Disclaimer : This email and all contents are subject to the following disclaimer: http://emaildisclaimer.oocl.com/default.html Disclaimer : This email and all contents are subject to the following disclaimer: http://emaildisclaimer.oocl.com/default.html Disclaimer : This email and all contents are subject to the following disclaimer: http://emaildisclaimer.oocl.com/default.html Disclaimer : This email and all contents are subject to the following disclaimer: http://emaildisclaimer.oocl.com/default.html Disclaimer : This email and all contents are subject to the following disclaimer: http://emaildisclaimer.oocl.com/default.html Disclaimer : This email and all contents are subject to the following disclaimer: http://emaildisclaimer.oocl.com/default.html Disclaimer : This email and all contents are subject to the following disclaimer: http://emaildisclaimer.oocl.com/default.html Disclaimer : This email and all contents are subject to the following disclaimer: http://emaildisclaimer.oocl.com/default.html Disclaimer : This email and all contents are subject to the following disclaimer: http://emaildisclaimer.oocl.com/default.html _______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
