Republishing the existing packages with the new one
Sometimes, you're using third party packages/plugins and the author is not updating the package anymore to be compatible with the latest flutter packages..
But you're using that package in a whole lots of your project and you don't want to use a similar packages, here is what you should do.
- Download the source code from the provided git repo or go to your project and browse the package if the git repo is not available anymore.
- Open pubspec.yaml file and change the name
- Find the old name in all files and replace it with a new name.
- Close the IDE and reopen it.
- Try to build the example project to device to make sure that the new name is working.
- Call dart pub publish --dry-run to check whether there are errors with the new name
- Finally dart pub publish to publish a new package
Comments
Post a Comment