【发布时间】:2022-01-19 05:36:44
【问题描述】:
我正在阅读一篇关于 Android Studio 中 Proguard 的文章,它们是一行
Proguard 在 android Studio 中开箱即用
谁能给我解释一下?如果您有兴趣阅读完整的文章,我会将链接放在下面。
【问题讨论】:
我正在阅读一篇关于 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'
}
}
...
}
【讨论】: