Add events to the storage independent of Analytics being enabled or not.
The idea is that the user can later decide to enable the analytics and
send all the old events.
Lets keep the analytics completely separate from everything else. I
don't want to have the ability to map analytics with IAP. The latter can
have personally identifiable information.
Platform from dart:io cannot be used on the web for reasons. And this
way we get a fake File/Directory class which we can use for atleast
running the web version, even if it won't work.
Sadly, even when firebase analytics is disabled, it still sends some
data to Google's servers and there seems to be no way to disable it.
GitJournal gives its users an option to disable all analytics, which
clearly can't be implemented as long as we use Firebase.
Therefore there are 2 options -
1. Remove the option of disabling all analytics
2. Remove firebase analytics.
I'm choosing option (2), as it seems wrong to remove the option to
disable analytics, as I know a number of users who have disabled
analytics.
Currently I'm mostly using analytics to measure how well the marketting
is doing, and to see which settings are being used. Disabling the
analytics would make this much much harder, but I guess it's a greater
push for me to find an alternative / create one.
Fixes#506
Related to #105
The anlaytics fuctions do not do anything when analytics collection is
disabled, and I've verified that I do not get any events in the firebase
dashboard.
However, to be on the safer side lets not even touch the code.
Related to #506