-
Notifications
You must be signed in to change notification settings - Fork 509
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
Get rid of MapboxGlPlatform.getInstance #710
Conversation
5dc4e29
to
db64074
Compare
Might there be any reason to hold onto more than one platform instance? Could this cause issues if multiple maps are shown at the same time? |
Well i got it wrong as you still create a new instance of MapboxGlPlatform for each new MapboxMap. So this is fine! LGTM |
PR looks good to me too, I just didn't yet have the time to test if it resolves the leaks completely. |
@AAverin it would be great if you could check it out and post your results |
* 710 (Get rid of MapboxGlPlatform.getInstance) flutter-mapbox-gl/maps#710 * 852( Android embedding fixes - migrate to maven) flutter-mapbox-gl/maps#852 was also required to fix compile time errors * a small fix for the platform dependency * Update CI flutter version * cherry-pick upstream#904 (fix android build issues) Co-authored-by: shroff <502644+shroff@users.noreply.github.com> Co-authored-by: Felix Horvat <24698503+felix-ht@users.noreply.github.com>
This was an unnecessary layer of indirection, potentially causing a memory leak by holding on to the platform instance.