-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(analytics): add support for analytics_auto_collection_enabled in…
… firebase.json (#4730)
- Loading branch information
gewfy
authored
Dec 30, 2020
1 parent
2efb5c2
commit 9a24ecd
Showing
4 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9a24ecd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
9a24ecd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is something wrong with this commit, for some reason the analytics_auto_collection_enabled value is set to false by default if you don't set it in the firebase.json file, I am not sure why this happens to me but analytics didn't work when I dont set its value in the
firebase.json
I had to release a new version for it.
I tried logging the value of
analytics_auto_collection_enabled
from the gradle file, but I had no luck with it due to my weak experience with them9a24ecd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After investigating : here are my notes :
-
isFlagEnabled(key)
infirebase-json.gradle
returns true if the (key) exists in firebase.json & its value is equal to true, so(rootProject.ext.firebaseJson.isFlagEnabled("analytics_auto_collectadmob_delay_app_measurement_initon_enabled") == false)
this expression will be evaluated as true if the keyanalytics_auto_collectadmob_delay_app_measurement_initon_enabled
is not specefied infirebase.json
which will set it tofalse
hence analytics will be disabled.