Corona Enterprise on Windows

@zhongge702
I don’t use self hosted plugins in production myself, however I did test it last year and they worked fine.
I followed the instructions here: http://docs.coronalabs.com/native/hostedPlugin.html
 
I highly recommend you name your plugins to a more meaningful name of what the plugin does. (not just plugin.library)
 
As an example, my Chartboost plugins are named:
for iOS:

libChartboost.a

for Android:

plugin.chartboost.jar
 
The metadata for these looks like this:
iOS:

local metadata = { plugin = { format = "staticLibrary", -- This is the name without the 'lib' prefix. -- In this case, the static library is called: libSTATIC\_LIB\_NAME.a staticLibs = { "Chartboost" }, frameworks = { "AdSupport", "StoreKit", "Foundation", "CoreGraphics", "UIKit" }, frameworksOptional = {}, } } return metadata 

 
Android:

local metadata = { plugin = { format = 'jar', manifest = { permissions = {}, usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.ACCESS\_WIFI\_STATE" }, usesFeatures = { } } } } return metadata

thanks, I will change my plugin name.

I have one more question.

there is tgz file making way in that sepc

tar -czf myplugin.tgz myplugin.lua metadata.lua

so, my plugin name is myLibrary. I will change to plugin.library.a and plugin.library.jar to plugin.myLibrary.a and plugin.myLibrary.jar

and also I will run these command

    tar -czf iphone.tgz plugin.library.a metadata.lua

    tar -czf android.tgz plugin.library.jar metadata.lua

is that okay?

I have changed my plugin name but it is not working well.

I copy and paste 2 file - plugin.myLibrary.jar and libmyLibrary.a into ~/Simulator/plugins/

I got same error.

File: module ‘plugin_myLibrary’ not found

Module ‘plugin_myLibrary’ not found:resource (plugin_myLibrary.lu) does not exist in archive

no field package.preload[‘plugin_myLibrary’]

no file ‘/Users/kcck/Library/Application Support/Corona/Simulator/Plugins/plugin_myLibrary.lua’

no file ‘/Volumes/Data/Work/CHH/corona_plugin/getAllcontacts/Corona/plugin_myLibrary.lua’

no file ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/plugin_myLibrary.lua’

no file ‘/Users/kcck/Library/Application Support/Corona/Simulator/Plugins/plugin_myLibrary.dylib’

no file ‘./plugin_myLibrary.dylib’

no file ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/plugin_myLibrary.dylib’

it is explained for only plugin written in lua on http://docs.coronalabs.com/native/hostedPlugin.html

It is working lua plugin. not native plugin.

if you have ever made native plugin, could you let me know more detail ? ex; tar command format, directory structure of ~/Simulator/Plugins and so on.

I have so many tried and I think I need one by one explanation.

could you help me?

Thanks in advance.

So, Enterprise is still available only for OSX?  :frowning:

I’m not sure for windows.

But it is working for OSX.

I have Enterprise version. but it is not working well.

I have already made plugins for ios and android and hosted on my server.

just .jar file and .a file.

I have make iphones.tgz and android.tgz.

but it is not working well.

Is there any more detail help?

@zhongge702
I don’t use self hosted plugins in production myself, however I did test it last year and they worked fine.
I followed the instructions here: http://docs.coronalabs.com/native/hostedPlugin.html
 
I highly recommend you name your plugins to a more meaningful name of what the plugin does. (not just plugin.library)
 
As an example, my Chartboost plugins are named:
for iOS:

libChartboost.a

for Android:

plugin.chartboost.jar
 
The metadata for these looks like this:
iOS:

local metadata = { plugin = { format = "staticLibrary", -- This is the name without the 'lib' prefix. -- In this case, the static library is called: libSTATIC\_LIB\_NAME.a staticLibs = { "Chartboost" }, frameworks = { "AdSupport", "StoreKit", "Foundation", "CoreGraphics", "UIKit" }, frameworksOptional = {}, } } return metadata 

 
Android:

local metadata = { plugin = { format = 'jar', manifest = { permissions = {}, usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.ACCESS\_WIFI\_STATE" }, usesFeatures = { } } } } return metadata

thanks, I will change my plugin name.

I have one more question.

there is tgz file making way in that sepc

tar -czf myplugin.tgz myplugin.lua metadata.lua

so, my plugin name is myLibrary. I will change to plugin.library.a and plugin.library.jar to plugin.myLibrary.a and plugin.myLibrary.jar

and also I will run these command

    tar -czf iphone.tgz plugin.library.a metadata.lua

    tar -czf android.tgz plugin.library.jar metadata.lua

is that okay?

I have changed my plugin name but it is not working well.

I copy and paste 2 file - plugin.myLibrary.jar and libmyLibrary.a into ~/Simulator/plugins/

I got same error.

File: module ‘plugin_myLibrary’ not found

Module ‘plugin_myLibrary’ not found:resource (plugin_myLibrary.lu) does not exist in archive

no field package.preload[‘plugin_myLibrary’]

no file ‘/Users/kcck/Library/Application Support/Corona/Simulator/Plugins/plugin_myLibrary.lua’

no file ‘/Volumes/Data/Work/CHH/corona_plugin/getAllcontacts/Corona/plugin_myLibrary.lua’

no file ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/plugin_myLibrary.lua’

no file ‘/Users/kcck/Library/Application Support/Corona/Simulator/Plugins/plugin_myLibrary.dylib’

no file ‘./plugin_myLibrary.dylib’

no file ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/plugin_myLibrary.dylib’

it is explained for only plugin written in lua on http://docs.coronalabs.com/native/hostedPlugin.html

It is working lua plugin. not native plugin.

if you have ever made native plugin, could you let me know more detail ? ex; tar command format, directory structure of ~/Simulator/Plugins and so on.

I have so many tried and I think I need one by one explanation.

could you help me?

Thanks in advance.

So, Enterprise is still available only for OSX?  :frowning:

I’m not sure for windows.

But it is working for OSX.