实现与cocoas2d的ProGuard [英] implement proguard with cocoas2d

查看:233
本文介绍了实现与cocoas2d的ProGuard的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用了cocos2d-X开发游戏。现在我已经申请ProGuard的它,解决所有的警告。最后我导出的API。 ProGuard的工作对我罚款。但是,当我测试的API,应用程序崩溃。

I have used cocos2d-x to develop the game. now i have applied proguard to it, resolved all the warnings. Finally i exported the api. The proguard worked fine for me. But when I tested the api, the application crashed.

如果没有ProGuard的应用工程进展顺利。

Without proguard the application works smoothly.

有关如何使用cocos2dx实施ProGuard的任何解决方案?

Any solution for on how to implement proguard with cocos2dx.?

推荐答案

您可以与我们分享您的ProGuard规则?结果
你加一个规则告诉ProGuard混淆避免本地方法?

Can you share your proguard rules with us ?
Did you add a rule to tell Proguard to avoid obfuscating native methods ?

-keepclasseswithmembernames,includedescriptorclasses class * {
native <methods>;
}

ProGuard文档资料

这篇关于实现与cocoas2d的ProGuard的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆