How to use analytics (Flurry) with enterprise project?

Is there any documentation that explains how to use “pro” plugins with Enterprise?  I’m trying to move a pro project over to enterprise which uses the analytics plugin.    There some vague mention of adding .a files at http://docs.coronalabs.com/native/plugin/index.html.

Can I use the keep the existing lua analytics code in my app or do I have to scrap that and build an analytics plugin myself?

I’m getting errors like:

ERROR: Could not load provider (flurry) due to the following reason: module ‘CoronaProvider.analytics.flurry’ not found:resource (CoronaProvider.analytics.flurry.lu) does not exist in archive

no field package.preload[‘CoronaProvider.analytics.flurry’]

no file './CoronaProvider.analytics.flurry.so’

no file './CoronaProvider.so’

I should add that I’m on an eval version of Enterprise – is the extra plugin data not provided for an eval version?

Hey nandgate,

From my understanding you need to add the static library (*.a) to your build phase which allows you to use the plugin.  I found it easier to just drag the .a file to your /CoronaEnterprise/lib folder in your template and allow XCode to create a copy of the .a file for you.  XCode will then automatically update the project for you. You may need to run a clean and build and there could be other frameworks missing as dependancies. I found searching for the errors online usually provided the missing framework(s) to add as well.

I was able to add other plugins from the Enterprise folder (libads-iads.a for iAds and libnative-popup-twitter.a for native Twitter support) to my project without issue using the above mentioned technique.

Unfortunately I’m having a similar issue trying to implement the AdMob plugin (http://forums.coronalabs.com/topic/40849-couldnt-load-plugin-in-xcode/#entry253545) which I hope someone on the forums could provide a bit more information about it.

Anyway I hope this helps. /Topher.

Thanks – it turns out that the evaluation version that I was provided (by Corona) was missing the plugin libraries.  Now that I have the full version I have the ios and java libraries so I’m good.  

I should add that I’m on an eval version of Enterprise – is the extra plugin data not provided for an eval version?

Hey nandgate,

From my understanding you need to add the static library (*.a) to your build phase which allows you to use the plugin.  I found it easier to just drag the .a file to your /CoronaEnterprise/lib folder in your template and allow XCode to create a copy of the .a file for you.  XCode will then automatically update the project for you. You may need to run a clean and build and there could be other frameworks missing as dependancies. I found searching for the errors online usually provided the missing framework(s) to add as well.

I was able to add other plugins from the Enterprise folder (libads-iads.a for iAds and libnative-popup-twitter.a for native Twitter support) to my project without issue using the above mentioned technique.

Unfortunately I’m having a similar issue trying to implement the AdMob plugin (http://forums.coronalabs.com/topic/40849-couldnt-load-plugin-in-xcode/#entry253545) which I hope someone on the forums could provide a bit more information about it.

Anyway I hope this helps. /Topher.

Thanks – it turns out that the evaluation version that I was provided (by Corona) was missing the plugin libraries.  Now that I have the full version I have the ios and java libraries so I’m good.