implement proguard with cocoas2d

前提是你 提交于 2019-12-25 06:28:09

问题


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

Without proguard the application works smoothly.

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


回答1:


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 Documentation



来源:https://stackoverflow.com/questions/17343213/implement-proguard-with-cocoas2d

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!