Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplified Analytics References #19

Merged
merged 1 commit into from
Mar 18, 2022
Merged

Simplified Analytics References #19

merged 1 commit into from
Mar 18, 2022

Conversation

richardpiazza
Copy link
Contributor

Updates how the Analytics class is referenced. There were multiple instances of cross-referencing singletons:

  • Flagsmith > FlagsmithAnalytics
  • FlagsmithAnalytics > Flagsmith.

This PR simplifies the implementation by removing the shared analytics instance, and in place directly instantiates an analytics reference in the main Flagsmith class. This now functions much more like the APIManager. Since analytics requires access to the api, the a reference is passed through the initializer.

Also addressed is the line indentations to match the rest of the codebase.

@dabeeeenster dabeeeenster merged commit 775d93b into Flagsmith:main Mar 18, 2022
@dabeeeenster
Copy link
Collaborator

Thanks so much!

@richardpiazza richardpiazza deleted the feature/analytics-simplification branch March 18, 2022 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants