package com.demo.download下有个 DownloadManager 类
public static DownloadManager getInstance() 方法
public void startDownload(Url url, String path, Callback);
假设就以上两个方法是对外公开的,这两个方法名及类名我不想混淆,其他的方法名称及变量名称想都混淆了
该如何写混淆文件呢??
光阴似箭催人老,日月如移越少年。
1. Use @keep’s annotation2. Google how to configure @keep in the proguard file
-keep class com.demo.download.DownloadManager { public static DownloadManager getInstance(); public void startDownload(Url, java.lang.String, Callback); }
1. Use @keep’s annotation
2. Google how to configure @keep in the proguard file