繁体   English   中英

Proguard 在 android Studio 中开箱即用? 这是什么意思?

[英]Proguard comes out of the box in android Studio? What does it means?

我在 Android Studio 中阅读了一篇关于 Proguard 的文章,它们是一行

Proguard 在 android Studio 中开箱即用

谁能给我解释一下? 如果您有兴趣阅读完整的文章,我会将链接放在下面。

文章链接

这意味着 proguard 与您的默认 android 项目捆绑在一起,您无需通过 gradle 或 maven 从外部下载它

android {
    buildTypes {
        release {
            // Enables code shrinking, obfuscation, and optimization for only
            // your project's release build type.
            minifyEnabled true// Enables resource shrinking, which is performed by the
            // Android Gradle plugin.
            shrinkResources true// Includes the default ProGuard rules files that are packaged with
            // the Android Gradle plugin. To learn more, go to the section about
            // R8 configuration files.
            proguardFiles getDefaultProguardFile(
                    'proguard-android.txt'),
                    'proguard-rules.pro'
        }
    }
    ...
}

参考: android 中有关 proguard 用法的更多信息

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM