Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Allow standalone Analytics import #647

Merged
merged 3 commits into from
Apr 24, 2018

Conversation

DickSmith
Copy link

I wanted to be able to stick all my analytics stuff onto a worker thread, but for iOS was unable to because several of the delegates were being duplicated, even though those delegates aren't directly related to analytics.
This setup is backwards compatible so that analytics can either be used off the main firebase module, or as a standalone module, with typings being correctly exported for both usages as well.

The same thing could probably be done for some of the other portions of the plugin as well, like firestore, etc.

This branch is an extension of my fork from #549, which I assume you'll merge before this one, so those changes are present here as well.

Dick Smith added 2 commits March 19, 2018 18:53
I wanted to be able to stick all my analytics stuff onto a worker thread, but for iOS was unable to because several of the delegates were being duplicated.
This setup is backwards compatible so that `analytics` can either be used off the main `firebase` module, or as a standalone module, with typings being correctly exported for both usages as well

The same thing could probably be done for some of the other portions of the plugin as well, like `firestore`, etc.
@EddyVerbruggen EddyVerbruggen added this to the 5.3.0 milestone Apr 24, 2018
@EddyVerbruggen EddyVerbruggen self-assigned this Apr 24, 2018
@EddyVerbruggen EddyVerbruggen merged commit cf53fff into EddyVerbruggen:master Apr 24, 2018
EddyVerbruggen added a commit that referenced this pull request Apr 24, 2018
@EddyVerbruggen
Copy link
Owner

Thanks @DickSmith! This is a good starting point for further decoupling. FYI I had to change the export of analytics a little to satisfy my IDE, but it was an easy fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants