如何配置Android的缩小,让乱舞?Android、让乱舞

2023-09-06 07:38:58 作者:迁就你一生

现在,ProGuard的德precated,我们有再压缩应用程序操作建议的替代,而不是,我碰到乱舞破裂的老问题(再次)。在过去的一个排除可以添加到用于乱舞库proguard.cfg文件。不过,我一直无法找到相应的配置文件做同样的缩小系统。

如何配置的Andr​​oid工作室/缩减大小的电流(1.0RC2)版本排除乱舞库(com.flurry。**)?

修改

proguard.cfg有乱舞的支持以下内容:

  -keep类com.flurry ** {*。 }-dontwarn com.flurry。**-keepattributes *注释*,EnclosingMethod-keepclasseswithmembers类* {公众和LT; INIT>(android.content.Context,android.util.AttributeSet,INT);} 

解决方案

这已经改变了(到目前为止)是gradle这个选项的名称(从 runProguard 的唯一一件事到 minifyEnabled ) - 一切是一样的。这意味着您可以继续通过 proguardFile 选项,之前排除乱舞库来传递自己的ProGuard配置文件。

三国之乱舞安卓版下载 三国之乱舞手游安卓版 v2.0.0 清风手游网

Now that proguard is deprecated and we have the "minify" app operation as the suggested replacement instead, I've run into the old problem (again) of Flurry breaking. In the past an exclusion could be added to the proguard.cfg file for the Flurry libraries. However, I've been unable to find the appropriate configuration file to do the same for the minify system.

How do I configure the current (1.0RC2) version of Android Studio/Minify to exclude the Flurry libraries (com.flurry.**)?

edit

proguard.cfg has the following for Flurry support:

-keep class com.flurry.** { *; }
-dontwarn com.flurry.**
-keepattributes *Annotation*,EnclosingMethod
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}

解决方案

The only thing that has changed (so far) is the name of the gradle option (from runProguard to minifyEnabled) - everything else is the same. This means you can continue to pass your own proguard configuration files via the proguardFile option to exclude Flurry libraries as before.