Configure Firebase Analaytics + Google Tag Manager (GTM) per build variant

前端 未结 2 1998
灰色年华
灰色年华 2021-02-20 01:59

Before Firebase Analytics became available we use a multi flavour, multi build type Android Gradle project setup, and supply a different GTM container ID for each build variant,

2条回答
  •  南旧
    南旧 (楼主)
    2021-02-20 02:33

    The container ID is derived from the container file name, as you surmised. To use a per-build variant you can use gradle copy task to stage the correct container.

提交回复
热议问题