Can i disable Firebase plugin for specific flavor?

前端 未结 5 738
旧巷少年郎
旧巷少年郎 2021-02-13 03:16

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:45

    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
            }
    
    }
    

提交回复
热议问题