Hi I'm not a C++ developer (maybe I'm not a good developer yet at all) but I'm trying to develop a simple plugin for Flurry / BlackBerry ... I must say that I'm lost at this and also there's no documentation about Plugins for BlackBerry like we have for iOS (http://docs.unity3d.com/Documentation/Manual/PluginsForIOS.html) So far I have the Flurry SDK files (libFlurry.a and Flurry.h), a .cpp file which will communicate with the library / header files ... I have the Momentics installed but I don't know where to go now .. - How can I make the integration with Unity? - Do I need to have a .so file with my .cpp, libFlurry.a and Flurry.h together? How can I do that? This is my C# Script Code (csharp): [DllImport("mysopluginfile")]: private static extern void StartFlurrySession (string eventName); void Start (){ StartFlurrySession("APIKEY"); } This is my .cpp file "Flurry::Analytics::StartSession" is a method inside the Flurry.h file. Code (csharp): #include <Flurry.h> extern "C" { void StartFlurrySession (const char *APIKey){ Flurry::Analytics::StartSession(APIKey); } } I'm still studying this so I'm sorry if this is a stupid question. Thanks for any help.
There is actually an official documentation page which can be found here: http://docs.unity3d.com/Documentation/Manual/bb10-plugins.html Zebza posted a pretty good overview here for additional information: http://forum.unity3d.com/threads/194557-Blackberry-plugins?p=1330333&viewfull=1#post1330333
Hi Alex, thank you for your answer. I was able to create a .so file with some functions inside and that worked fine. I used Momentics with QNX QCC Toolchain (I assume that it was the default). But when I try to do the same with Flurry I just can't make it work. .. here are my steps in Momentics: 1 - New BlackBerry Project => Shared Library 2 - Add External Library => Device and Simulator (armle-v7 and x86 libFlurry.a files) 3 - Add Header file folder => Flurry.h 4 - Set Build configuration for Device-Release 5 - Hit "Build Project" Error:
The first link takes the user to a badly written example, sorry to say it seems outdated and confusing for newbies. It is missing the example project! so I can tell maybe no one has visited this for long time. Anyway I really wonder if anyone has a solution yet, I have attempted following the guide and managed to download Flurry Blackberry SDK and also needed software but just does not seem to work on Mac.