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

#1434: Add namespace to gradle; #1437: Remove deprecated code now causing build errors #1438

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cohenadair
Copy link

Flutter 3.29.0 requires an updated AGP, which required the following changes:

  • Set a "namespace" in the build.gradle file (Building to android fails (flutter 3.27.0) #1434)
  • Update location and device_info_plus dependencies (for "namespace" requirement changes)
  • Migration to the new plugin declaration method for the example project

Flutter 3.29.0 also removed deprecated code that caused build errors for this plugin (#1437). The actual migration and use of new APIs was done long ago, but the deprecated code was kept, but unused, meaning it could be removed without actually affecting the functionality of the plugin.

@manukumarsb7
Copy link

Hey @cohenadair, is there any chance this package will be maintained? It's been quite a while since there have been any updates for this package.

@cohenadair
Copy link
Author

cohenadair commented Mar 7, 2025

@manukumarsb7, I've been using this package for years and it was maintained for a while, but since Mapbox released their official Flutter plugin, maintenance has fallen off (understandably). My long term plan is to move to the official plugin; I just haven't had the time yet.

I would recommend moving to the official plugin if all you need is Android and iOS support.

@manukumarsb7
Copy link

@cohenadair Thanks for your response.

I have been using mapbox_gl for many years, particularly its features for adding and updating symbols on the map. However, after updating to the latest version of Flutter, I am encountering build errors on Android.

I have now started working on migrating to the official mapbox_maps_flutter package. Could you please share any posts or documentation on migrating from mapbox_gl to mapbox_maps_flutter? Your guidance would be greatly appreciated.

@cohenadair
Copy link
Author

@manukumarsb7, there aren't any as far as I'm aware, but I haven't actually looked. My approach would be to just remove mapbox_gl from my project and go through the build errors one-by-one, replacing each with the mapbox_maps_flutter equivalent as needed, while keeping track of everything that needs to be tested.

@manukumarsb7
Copy link

manukumarsb7 commented Mar 8, 2025 via email

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