My android app uses two firebase projects, one for development, and the other for the production.
I have placed the google-services.json of each firebase project in following directories.
Debug config: <app_root>/app/google-services.json
Prod config: <app_root>/app/src/release/google-services.json
I was using com.google.gms:google-services:4.3.2 and this setup worked fine. When I am developing, the config at <app_root>/app/google-services.json was used and when generating a signed release bundle, the config at <app_root>/app/src/release/google-services.json was picked automatically by Android Studio.
I upgraded google-services version to 4.3.4 today, and it seems <app_root>/app/src/release/google-services.json is not picked when doing a signed release bundle build. It uses <app_root>/app/google-services.json instead.
Why is this? Can this be a bug in com.google.gms:google-services:4.3.2? or overriding configs at build types directory is not supported anymore?