如何配置Android的缩小,让乱舞? [英] How do I configure Android minify to allow Flurry?

查看:135
本文介绍了如何配置Android的缩小,让乱舞?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,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配置文件。

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.

这篇关于如何配置Android的缩小,让乱舞?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆