Native iOS plugins with resources

Hi,

I’m looking at the documentation about plugins submission: http://docs.coronalabs.com/native/plugin/submission.html And it explicitly says - “Resources cannot be included directly in an Android plugin…”, but what about iOS?

I’m potring the native iOS SDK for Corona, it will be iOS and iOS-sym only with lua stubs for other platfoms. Its deliverable consist originally from MySdk.framework file and MySdk.bundle file. I can “wrap” framework into the static library and also add exports required by Corona. But resources issue might become a blocker. What’s the intended way of dealing with resources for iOS?

Any information would be appreciated.

Thanks.

For iOS, the developer that uses your plugin would have to manually copy those resources (e.g. bundle files) to each project that uses the plugin.

So, basically, if png images that I need in my SDK will be just put to the root folder of the application sources (where the main.lua file is located), they will be accessible by calling:

[[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:“myImage” ofType:@“png”]];

Is that correct?

For iOS, the developer that uses your plugin would have to manually copy those resources (e.g. bundle files) to each project that uses the plugin.

So, basically, if png images that I need in my SDK will be just put to the root folder of the application sources (where the main.lua file is located), they will be accessible by calling:

[[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:“myImage” ofType:@“png”]];

Is that correct?