如何在 Visual Studio 中手动添加 proguard 文件
How to add proguard file manually in Visual Studio
我正在使用 Xamarin.Forms
。我想在我的 Xamarin.Android 项目中添加 Proguard 文件。
我需要哪个文件proguard.cfg或progards.txt.
我们使用 -downwarn
和 .dll 或 class 名称吗?
我得到了答案。
- 首先我们需要将
proguard.cfg
文件添加到我们的 android 项目中。
- 将文件生成操作更改为
ProguardConfiguaration
- 打开
proguard.cfg
文件到 Notepad++ 并将 Ecoding 更改为 UTF-8(无 BOM)
- 如果您收到警告,请添加
-dontwarn
属性,后跟包名称。
喜欢 -dontwarn com.appdynamics.eumagent.**
而不使用关键字 class
.
- 添加
.cfg
文件后清理项目
现在 ProGuard 应该可以工作了。
我正在使用 Xamarin.Forms
。我想在我的 Xamarin.Android 项目中添加 Proguard 文件。
我需要哪个文件proguard.cfg或progards.txt.
我们使用 -downwarn
和 .dll 或 class 名称吗?
我得到了答案。
- 首先我们需要将
proguard.cfg
文件添加到我们的 android 项目中。 - 将文件生成操作更改为
ProguardConfiguaration
- 打开
proguard.cfg
文件到 Notepad++ 并将 Ecoding 更改为 UTF-8(无 BOM) - 如果您收到警告,请添加
-dontwarn
属性,后跟包名称。 喜欢-dontwarn com.appdynamics.eumagent.**
而不使用关键字class
. - 添加
.cfg
文件后清理项目
现在 ProGuard 应该可以工作了。