问题
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