electron currently does not support the plugin definitions and this is a bit of an architectural oversight, and my next steps when I find time.
currently plugins are required to implement a tag ala <platformName/> which defines their source files that get added to a project, and lately we have found ourselves with overlap. cordova-electron technically can use the same plugin code as cordova-browser, but there is no way to make this happen currently. The key parts of implementing a platform for cordova are to create an exec bridge, and implement a platformAPI (js) that the tooling can use to create/build/run your platform. A bare minimum platform can be found here: https://github.com/ apache/cordova-test-platform The platform API def: https://github.com/apache/cordova-discuss/blob/master/proposals/cordova-lib%20refactoring/PlatformApi.js Info on creating a plugin can be found here: http://cordova.apache. org/docs/en/7.x/guide/hybrid/plugins/index.html Some discussion on platform API and how platforms can be added: https://github.com/apache/cordova-discuss/pull/12 @purplecabbage risingj.com On Thu, Jan 4, 2018 at 2:35 PM, Pat Deegan <pat.cordova...@psychogenic.com> wrote: > Hi, > > On 2018-01-04 05:24 PM, Darryl Pogue wrote: > > Are there benefits to Coraline over > > something like Electron? > > Honestly, I don't know electron--I'm an embedded guy, mostly using > cordova (and ionic atop of it) for talking BLE from Android to hardware. > > Just had a very cursory look but the main thing I'm interested is > _plugins_... I talk to stuff, over bluetooth, over serial USB, etc. > > Does electron actually support the cordova plugin system? > > You can run an ionic app in a browser, no problem, but if you want to > access the filesystem, use bluetooth, etc, you need something like cordova. > > That's why I wanted my cordova-ubuntu replacement--both for distributing > apps, and so I can dev my Android etc under Linux. > > I'll take a deeper look at your links and the Api.js. > > Thanks, > P > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org > For additional commands, e-mail: dev-h...@cordova.apache.org > >