How to Dynamically Switch Between Test and Production Firebase Analytics Environments in Defold

How would you do this in a Java based app or in some other game engine with support for Firebase Analytics?