取消警告:
使用 -dontwarn + 类/包路径取消警告
# SDK代码混淆
-dontwarn com.bytedance.retrofit2.**
-dontwarn com.bytedance.JProtect.**
-dontwarn com.bytedance.framwork.**
-dontwarn com.bytedance.sdk.openadsdk.**
-dontwarn ms.bd.c.**
-dontwarn com.bytedance.embed_dr.**
-dontwarn com.bytedance.embed_dr.**
-dontwarn com.bytedance.embedapplog.**
-dontwarn com.ss.android.downloadlib.**
-dontwarn com.bytedance.mobsec.**
-dontwarn b.a.**
-dontwarn b.c.**
#保持native方法不被混淆
-keepclasseswithmembernames class * {
native <methods>;
}
混淆配置与代码保护
这篇博客介绍了如何在SDK代码混淆过程中使用-dontwarn指令来忽略特定类和包的警告,以确保代码的正常运行。同时,它也提到了保留native方法不被混淆的配置,以保持其功能完整。
371

被折叠的 条评论
为什么被折叠?



