How To Exclude Specific Resources from an AAR Depedency?

前端 未结 4 1389
清歌不尽
清歌不尽 2020-12-03 01:04

Is there a reasonably simple way for a module\'s build.gradle file to indicate that certain files from a dependency should be excluded? I am specifically intere

4条回答
  •  难免孤独
    2020-12-03 01:45

    Yes, you can use Proguard

    buildTypes {
        release {
            proguardFiles getDefaultProguardFile('proguard-android.txt'),
            'proguard-rules.pro'
        }
    debug {
            proguardFiles getDefaultProguardFile('proguard-android.txt'),
            'proguard-rules.pro'
        }
    }
    

提交回复
热议问题