问题描述
我想在我的titanium项目中使用现有SDK提供的功能( deezer sdk ).
I know I must deal with modules, so I found a lot of tutorials that explain well
有人可以帮助我如何进行吗? 预先感谢
dario 创建香草模块后,您必须在捆绑包中包含要包装的框架(So Deezer SDK). Then follow these steps to add the framework到编译器指令.本质上,您只需添加以下内容: 其他_ldflags = $(继承)-framework deezersdk to module.xconfig文件.只需检查SDK的确切名称. 之后,您可以像常规的本机Xcode开发一样使用deezersdk. 编辑: 如果库只是一个 *.a文件,那么您可以建模钛为Google Admob做了模块.最好只检查他们的项目,BT本质上您需要做的就是创建香草钛模块,放入 *.a文件和标题,然后像本机项目一样使用它.推荐答案
问题描述
I want to use into my titanium project the functionalities provided by an existing sdk (deezer sdk).
I know I must deal with modules, so I found a lot of tutorials that explain well how to create a titanium module from scratch. But I didn't find something about to explain how to "wrap" an existing ios project within a titanium module. I just need the login/signup functionality and to retrieve the logged user (functionalities provided by the deezer ios sdk, of course).
can anybody help me on how to proceed?
thanks in advance Dario
推荐答案
After creating the vanilla module, you have to include the framework you are wrapping (so deezer SDK) inside the bundle. Then follow these steps to add the framework to the compiler directives. Essentially you just add this:
OTHER_LDFLAGS=$(inherited) -framework DeezerSDK
To the module.xconfig file. Just check what the exact name is of the SDK.
After that, you can use the DeezerSDK just like you would in regular native Xcode development.
EDIT:
If the library is just a *.a file, then you can model what Titanium did for the Google Admob module. Its best to just inspect their project, bt essentially all that you need to do is create the vanilla titanium module, drop in the *.a file, and the headers, and then use it just like a native project.