如果我有一個Class B
實現Interface A
和Proguard不知道該接口的存在,我如何保留實現接口A的抽象方法的方法的名稱?如何保持類方法名稱覆蓋實現另一種方法被混淆?
請注意,我想保留方法名稱,但我確實希望他們的內容被模糊處理。
更新: 這是我有什麼(請注意評論):
public class MyService extends Service {
// an anonymous class that implements ServiceConnection
private ServiceConnection myConnection = new ServiceConnection()
{
// don't change the following method's name
@Override
public void onServiceConnected(ComponentName className, IBinder service)
{
// I want this section to be obfuscated
}
}
我想對於這些種情況下的通用解決方案 - 在狀態界面名字,我不想ProGuard配置。
@Raghunandan您發佈的評論是irrelavant!你在這裏回答別人的問題!請在http://techspreadwithshraddha.wordpress.com/2013/03/26/android-progaurd/ – Shraddha
@Shraddha感謝提醒,找到我的Progaurd博客。可能打開了我的瀏覽器的錯誤標籤。 – Raghunandan