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

fix(hosted-url): activation of package on self-hosted url #46

Merged
merged 6 commits into from Aug 7, 2023

Conversation

zoocityboy
Copy link
Contributor

Description

This pull request fixes working with customBaseUrl and package activation.
If the base url is not https://pub.dev/ it adds a parameter -u hosted-url parameter to the activation command.

add support for flutter 3.10 by increasing environment sdk range <4.0.0

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • πŸ› οΈ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • βœ… Build configuration change
  • πŸ“ Documentation
  • πŸ—‘οΈ Chore

zoocityboy and others added 3 commits May 22, 2023 21:44
….12.0 to 4.0.0

fix(pub_updater): change defaultBaseUrl to 'https://pub.dev' and add pubPackagesPath constant
feat(pub_updater): add support for custom base url in PubUpdater update method
The pubspec.yaml file is updated to support a wider range of Dart SDK versions. The defaultBaseUrl constant is changed to 'https://pub.dev' to improve consistency with the naming conventions. A new constant, pubPackagesPath, is added to represent the api query path for querying packages. The PubUpdater update method is updated to support a custom base url, which allows the user to specify a different base url for querying package versions.
The version of the package has been reverted to 0.3.0. This is because the previous version 0.3.1 was found to have a bug that caused the package to crash when run on certain systems. The bug has been fixed and the package is now stable on version 0.3.0.
fix(hosted-url): activation of package on self-hosted url VeryGoodOpenSource#45
lib/src/pub_updater.dart Outdated Show resolved Hide resolved
@renancaraujo renancaraujo self-assigned this Jul 10, 2023
@renancaraujo
Copy link
Contributor

Hello there, sorry for the huge delay.

We got a conflict on the pubspec. After that is fixed, LGTM.

@zoocityboy
Copy link
Contributor Author

zoocityboy commented Jul 30, 2023

Hello there, sorry for the huge delay.

We got a conflict on the pubspec. After that is fixed, LGTM.

Sorry for the delay from my side, you know vacation time. Pubspec conflict is resolved.

Comment on lines +75 to +80
if (_baseUrl != _defaultBaseUrl) ...[
'--hosted-url',
_baseUrl,
'--source',
'hosted'
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a nit, but technically we dont need this if statement right? It will work either way

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically you're right, we don't need this if statement. but, do we need to override the default value with the same value? but as you wrote, it'll work either way. i can create yet another PR and remove this if statement :)

@renancaraujo renancaraujo merged commit 2ee5737 into VeryGoodOpenSource:main Aug 7, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants