Can i disable Firebase plugin for specific flavor?

前端 未结 5 1977
执笔经年
执笔经年 2021-02-13 03:01

I\'m currently trying out the Firebase analytics suit, but, i have faced one small issue, my app is distributed on both google play and amazon store (which doesn\'t support goog

5条回答
  •  北恋
    北恋 (楼主)
    2021-02-13 03:29

    With answers above I was receiving an error that task doesn't exist (?it was generated during build?). What worked for me was to simply ask tasks to correct themselves. In my case I was disabling Fabric on UAT builds.

    tasks.all {
    
            if (it.name.contains("Uat") && (
                    it.name.contains("GoogleServices") ||
                    it.name.contains("fabric"))
            ){
                it.enabled = false
            }
    
    }
    

提交回复
热议问题