Confusion about custom Android plugins

Hi everyone.  I love that my pro account is now enterprise and am taking some of my native apps (which are sometimes too cumbersome to change) and am converting some of them to Corona where I can make more frequent changes – and add a little pizazz to the UI.  

I’ve read through the documentation and have been looking through forums all day, but I can’t figure something out. I hope someone can help (I don’t usually post to forums).

I’ve taken some of my Android code and moved it into a custom Corona template using the App template.  It works great when I build using build.sh (and exports just fine using build.plugin.sh).  Everything works fine when using build.sh to build.

However, when I create the jar file with build.plugin.sh, should I just be able to put that jar in a libs folder in my Corona project and build for device using Corona SDK in the same way I did with pro?  Or do I need to use Ant and the Android manifest (over build.settings) going forward?  

I just want to make sure I understand the workflow.  Once I build the plugin and test it with the App template, can I take that jar and put it into a project and just build the same way I did before?  

When I put the jar in a libs folder, I’m getting errors where it is looking for the .so file (and not jar).  So either I have a problem in my code (very possible) that’s causing this problem or I am not using Enterprise the way it is meant.  I prefer to use the Corona SDK builder if possible because I like the fast workflow that affords.

So, my question is (short version), do I need to build each app that uses my plugin with Ant or can I put the jar file in a libs folder in the project an use the Corona SDK compiler?

I’m sure there are a lot more enterprise users out there now. Has anyone filmed a video tutorial on how to do this?  (if so, I couldn’t find any).

Thanks.

As a rule, you cannot use plugins using Corona SDK unless they are hosted by Corona Labs.  Since we are not hosting your plugins, you have to do an Enterprise build to use your own plugins.

Rob

To go back to this, is it possible to add enterprise plugins into a ‘vanilla’ corona sdk project? In my case I finished an app that is all just lua code but I want to add some features that can only be done through enterprise.

What would the easiest/best way to go about this?

There is a concept of a Lua plugin (Lua code) that I think works with vanilla SDK projects, but anything that needs a compiled binary library (.a file or .jar file) will require an Enterprise build, not a Corona SDK build.

Rob

As a rule, you cannot use plugins using Corona SDK unless they are hosted by Corona Labs.  Since we are not hosting your plugins, you have to do an Enterprise build to use your own plugins.

Rob

To go back to this, is it possible to add enterprise plugins into a ‘vanilla’ corona sdk project? In my case I finished an app that is all just lua code but I want to add some features that can only be done through enterprise.

What would the easiest/best way to go about this?

There is a concept of a Lua plugin (Lua code) that I think works with vanilla SDK projects, but anything that needs a compiled binary library (.a file or .jar file) will require an Enterprise build, not a Corona SDK build.

Rob