How to perform minification and obfuscation with the JACK compiler?

前端 未结 2 707
小鲜肉
小鲜肉 2020-11-30 10:58

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

My question is, how do we enable obfuscation for the AP

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-30 11:30

    You can have a look here: https://source.android.com/source/jack.html

    From the official documentation:

    (Jack) Handles shrinking, obfuscation, repackaging and multidex. Using a separate package such as ProGuard is no longer necessary.

    Please notice especially the section "Shrinking and Obfuscation" where it's mentioned that:

    Jack has shrinking and obfuscation support and uses proguard configuration files to enable shrinking and obfuscation features.

    And also the supported and ignored options are presented too.

提交回复
热议问题