Repository navigation
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 <[email protected]> Co-authored-by: Felix Horvat <[email protected]>
This was an unnecessary layer of indirection, potentially causing a memory leak by holding on to the platform instance.