What is the state of plugin builds for distribution?

Hi,

With the HTML5 builds getting so awesome, I am curious what the status is on actually building marketplace enabled plugins?

I currently have a “hybrid” plugin that has support for both device and HTML5 and would like to package them up like we do for device plugins now. Currently I would need to provide the JS plugin separately, but would prefer to just have it packed up into a single hybrid plugin that can be distributed through the marketplace. Is this possible yet?

-dev

JS plugin can be packed into a single multi-platform “hybrid” plugin.

Attached a sample of such plugin.

Hi,

Thank you for providing this example of packing plugins, but I’m still a little confused.

The plugins that I am building are pure Lua plugins, using the method outlined here https://docs.coronalabs.com/native/plugin/luaplugin.html

The working build structure looks like:

development/ lua/ plugin/ myplugin.lua metadata.json

So if I wanted to add the JS plugin would I do?

development/ lua/ plugin/ myplugin.lua metadata.json web/ metadata.lua plugin\_myplugin\_js.js plugin\_myplugin.lua

And then package that all up using the build.sh script? This is for a store hosted plugin type.

Thanks in advance.

-dev

>>So if I wanted to add the JS plugin would I do?

Yes, just add the following new node

   web/

      metadata.lua
      plugin_myplugin_js.js
      plugin_myplugin.lua

in your existing package

JS plugin can be packed into a single multi-platform “hybrid” plugin.

Attached a sample of such plugin.

Hi,

Thank you for providing this example of packing plugins, but I’m still a little confused.

The plugins that I am building are pure Lua plugins, using the method outlined here https://docs.coronalabs.com/native/plugin/luaplugin.html

The working build structure looks like:

development/ lua/ plugin/ myplugin.lua metadata.json

So if I wanted to add the JS plugin would I do?

development/ lua/ plugin/ myplugin.lua metadata.json web/ metadata.lua plugin\_myplugin\_js.js plugin\_myplugin.lua

And then package that all up using the build.sh script? This is for a store hosted plugin type.

Thanks in advance.

-dev

>>So if I wanted to add the JS plugin would I do?

Yes, just add the following new node

   web/

      metadata.lua
      plugin_myplugin_js.js
      plugin_myplugin.lua

in your existing package