如何使用JACK编译器执行缩小和模糊处理? [英] How to perform minification and obfuscation with the JACK compiler?

查看:179
本文介绍了如何使用JACK编译器执行缩小和模糊处理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google已发布了针对Android的新 JACK编译器的测试版本. Android Studio 2.1开发人员.

Google has released a test version of their new JACK compiler for Android developers with Android Studio 2.1.

我的问题是,我们如何使用JACK对APK启用混淆功能?下面的文章说,JACK在本地执行混淆处理,而不再需要Proguard:

My question is, how do we enable obfuscation for the APK with JACK? The article below says that JACK performs obfuscation natively and eliminates the need for Proguard:

以下文章说,JACK使用Proguard配置文件(即.pro文件)来执行混淆处理:

Whereas the following article says that JACK makes use of Proguard configuration files (i.e. the .pro file) for performing obfuscation:

它也说

在此过程中,杰克还处理任何请求的代码缩小(缩小和/或混淆).

During this process Jack also handles any requested code minification (shrinking and/or obfuscation).

这到底是什么意思?我们是否必须使用minifyEnabled选项并定义一个包含Proguard选项的.pro文件?

What exactly does this mean? Do we have to use the minifyEnabled option and define a .pro file containing the Proguard options?

摘要:

  • 我们到底如何使用JACK启用混淆?我们可以吗 绕过Proguard的使用,还是Proguard在 混淆过程,即使我们使用JACK进行编译?

  • How exactly do we go about enabling obfuscation with JACK? Can we bypass the use of Proguard, or does Proguard play a de-facto role in the obfuscation process, even if we compile with JACK?

JACK当前是否支持混淆,它是否可用 在稳定的(即非Beta/canary)Android Studio版本中?

Does JACK currently support obfuscation or not, and is it available in a stable (i.e. non-beta/canary) version of Android Studio?

注意:

我已经介绍了以下帖子:

I have already referred the following posts:

错误:支持Java 8语言功能需要杰克 .

更多参考文献:

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