BTW, xwalk.utils was created to share JS code. Maybe you meant sharing C++. But can be extended to share C++ code as well. But I¹d like Halton/Thiago to comment that.
Sakari On 6/6/14, 13:32, "Poussa, Sakari" <[email protected]> wrote: >Hi, > >We have created xwalk.utils extension for sharing code between >extensions. Put your code there so you can share it. > >https://github.com/crosswalk-project/tizen-extensions-crosswalk/tree/maste >r/utils > >One API using it already: >https://github.com/crosswalk-project/tizen-extensions-crosswalk/blob/maste >r/content/content_api.js > > >ContentManager.prototype.find = function(onsuccess, onerror, directoryId, >filter, sortMode, count, offset) { > if (!xwalk.utils.validateArguments('f?fsoonn', arguments)) { > throw new >tizen.WebAPIException(tizen.WebAPIException.TYPE_MISMATCH_ERR); > } > > >Sakari > >From: Romuald TEXIER-MARCADÉ ><[email protected]<mailto:romuald.texier-marcade@ >open.eurogiciel.org>> >Date: Wednesday, June 4, 2014 at 16:51 >To: crosswalk-dev ><[email protected]<mailto:[email protected] >swalk-project.org>> >Subject: [Crosswalk-dev] [Tizen] What is the best way to share code >between extensions? > >Hello, > In order to avoid duplication of effort and to make maintenance easier I >would like to reuse some code from one extension in another (in my case, >the code resolving virtual roots from the filesystem API is also needed >in the Download API). > >So what is the best practice to do so? >Could I factor the common code out and place it in common/? > >Thank you. > >Romuald. >_______________________________________________ >Crosswalk-dev mailing list >[email protected] >https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev _______________________________________________ Crosswalk-dev mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev
