Proguard ignores config file of library

前端 未结 4 1311
挽巷
挽巷 2020-11-27 14:31

I\'m facing a really weird problem for days now...

I have a Gradle app with two modules, one main module and one library module.

  • In both modules I have
4条回答
  •  天涯浪人
    2020-11-27 15:27

    The only thing that worked for me is to define both options in my library:

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

提交回复
热议问题