Testing Native Plugin with Corona Simulator

Hi all,

I’m trying to develop a new plugging for submission.

I can run and test the code in Android Studio, but, need to test outside, at a corona code.

Is there any way to local test my plugin without use the Android Studio?

I have try to copy the LuaLoader.java file to a subfolder at the Corona project, but, the simulator give me that can’t load the plugin.

Please, give me some light. Can I create the .jar file with Android Studio, and then, copy it to external folder and call it from require at my lua project ?

Can someone guide me about to how build and create plugin ?

I need to submit the plugin to corona, for test it ?

I have revised all the provided doc, and it is a pretty confused. For example, say:

https://docs.coronalabs.com/native/plugin/index.html

Android

In the android folder, the contents include:

app — This module builds the .apk that installs on the device. The app module automatically builds the plugin as an explicit dependency per this entry in the dependencies block of the build.gradle script for the app module (compile project(’:plugin’)).

plugin — This module builds the plugin as a .jar file, only including the Java files under plugin/src/main/java in your project. You can use this project directly if you want to share your plugin outside of the App project.

so, if I want to share the plugin outside of the app project, I can build the .jar file with Android Studio and then, copy it to any place? Where can I found this .jar file? Where to copy?

Thanks so much in advance.

Regards,

Cesar

Any know if it is possible to test a plugin I’m developing with the simulator?

I have try to include some corona code at the native plugin sample, but, nothing happen. The corona code (for example create text or an image) don’t run. Only the call to the android code and the event receiver at the terminal.

Any good guide to build an android plugin ?

Thanks so much,

You have two options.

  1. If you intended to submit this to the Marketplace. Then just test in Android Studio and/or Xcode and when you’re comfortable with the functionality, you can submit it to the store. The ingest process includes us setting up a hidden asset page so you can activate the plugin in the marketplace and once the plugin is on the server, it’s live, but only testers can access it. You can then simulator test there.

  2. We have an option designed for large teams that’s was part of the Enterprise Unlimited Plan called “self-hosted plugins”. This feature is designed for large teams that mostly use the simulator for their work. We have included this feature as part of our Priority Plus support plan ($999 https://marketplace.coronalabs.com/support). This would allow you to host your plugins at your own website.

Rob

Rob as a plugin developer I use hosted plugins way more then you think. If you guys are going to not allow us to use hosted plugins then you guys better update the plugin severs every 20 seconds. Because it is annoying waiting an hour to see if my code is fixed. “Scott just test in Xcode or Android studio” I always test in android studio and Xcode but just because it works in android studio or Xcode doesn’t mean it will work in Corona builds. Another great idea is allow for only one hosted plugin so plugin developers can test. Let’s be real Rob, Corona uses hosted plugins to test there plugins and you want us to pay 1000$ to be able to use the same tools Corona uses?

Dear Rob, thanks for your clear answer.

I will test my plugin into the Android Studio and ones happy with it, I will send it to submission. If you have a system for I can test it prior to publish it it is fantastic dear.

Thanks so much.

Any know if it is possible to test a plugin I’m developing with the simulator?

I have try to include some corona code at the native plugin sample, but, nothing happen. The corona code (for example create text or an image) don’t run. Only the call to the android code and the event receiver at the terminal.

Any good guide to build an android plugin ?

Thanks so much,

You have two options.

  1. If you intended to submit this to the Marketplace. Then just test in Android Studio and/or Xcode and when you’re comfortable with the functionality, you can submit it to the store. The ingest process includes us setting up a hidden asset page so you can activate the plugin in the marketplace and once the plugin is on the server, it’s live, but only testers can access it. You can then simulator test there.

  2. We have an option designed for large teams that’s was part of the Enterprise Unlimited Plan called “self-hosted plugins”. This feature is designed for large teams that mostly use the simulator for their work. We have included this feature as part of our Priority Plus support plan ($999 https://marketplace.coronalabs.com/support). This would allow you to host your plugins at your own website.

Rob

Rob as a plugin developer I use hosted plugins way more then you think. If you guys are going to not allow us to use hosted plugins then you guys better update the plugin severs every 20 seconds. Because it is annoying waiting an hour to see if my code is fixed. “Scott just test in Xcode or Android studio” I always test in android studio and Xcode but just because it works in android studio or Xcode doesn’t mean it will work in Corona builds. Another great idea is allow for only one hosted plugin so plugin developers can test. Let’s be real Rob, Corona uses hosted plugins to test there plugins and you want us to pay 1000$ to be able to use the same tools Corona uses?

Dear Rob, thanks for your clear answer.

I will test my plugin into the Android Studio and ones happy with it, I will send it to submission. If you have a system for I can test it prior to publish it it is fantastic dear.

Thanks so much.