How to include a proguard configuration in my Android library (AAR)

后端 未结 2 1561
情歌与酒
情歌与酒 2020-12-05 18:26

Android libraries, per the AAR file spec, includes a \'proguard.txt\' file. My understanding is that this file declares how the library correctly can be obfuscated and mini

2条回答
  •  没有蜡笔的小新
    2020-12-05 18:35

    In your Gradle file's default configuration closure, specify your Proguard file with consumerProguardFiles instead of proguardFiles. For example:

    defaultConfig {
        consumerProguardFiles 'proguard.txt'
    }
    

提交回复
热议问题