Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Building a MacOS app linked with native plugin
Started by larpoux Jul 06 2019 06:18 AM

No replies to this topic
macos native plugin
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

larpoux

[GLOBAL: userInfoPane.html]
larpoux
  • Enthusiast

  • 50 posts
  • Corona SDK

Hi everybody,

 

I am developing  a native plugin for Corona, and I am successful providing this plugin for iOS on my own server. I am very happy with that  :)

For that I have this following code in my build.settings file :

 plugins =
    {
        ["xyz.canardoux.micorazon"] =
        {
            publisherId = "xyz.canardoux",
            supportedPlatforms =
            { 
                iphone         = { url="http://canardoux.space/~larpoux/download/ios/micorazon.tgz" },
                ["iphone-sim"] = { url="http://canardoux.space/~larpoux/download/ios/micorazon.tgz" },
                android        = { url="http://canardoux.space/~larpoux/download/android/micorazon.tgz" },
                macos          = false,
                win32          = false,
                linux          = false,
            },
        },
    },

Now I would like  that my user can also build a macos App, using the great Corona Simulator build feature.

On google I only found information that must put "macos  = false" in the build.settings file, and put ourself our xxx.dylib in a correct place. But this does not permit a build from the Corona Simulator nor the Live Reload feature

 

If possible, I would be glad if the user can use the menu :

File > Build > macOS...  and have a correct macOS app built by the Corona Simulator, working with my own plugin.

 

  • Is this possible to have the xxx.dylib stored on my server ?
  • What must I put in my build.setting ?
  • Do I need to provide a metadata.lua file with my xxx.dylib ? What inside?

 

Thank you for any help.

/larpoux




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: macos, native plugin