-
Notifications
You must be signed in to change notification settings - Fork 85
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
Adding a plugin to Analytics causes a circular reference #326
Labels
Comments
Looks like an issue with the amplitude plugin not marking the analytics var as weak. Will address it over there. Thanks for finding that @kmpa! |
Thanks @sergiymomot ! I'll go get that one updated. |
done! |
@bsneed thanks for the quick fix 💯 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that when an Amplitude plugin is added to Analytics using
.add(plugin:)
method it will cause a circular reference to Analytics.This becomes a problem in our application as we need to be able free all services that are used in the application. Now because of the circular reference the application will crash, starting from the version 1.5.3 onwards. This version introduced a check in Analytics init method for multiple instances having the same write key.
In case no plugins are added there is no circular reference and Analytics can be freed normally.
Operating system: iOS
Reproduced: Every time
The text was updated successfully, but these errors were encountered: