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

feat: Support latest versions of the plus plugins. #148

Merged
merged 5 commits into from Mar 27, 2024

Conversation

maxlapides
Copy link
Contributor

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines
  • I have validated my changes against all supported platform versions

Related issues

It's not currently possible to upgrade the Flutter plus plugins in projects that require the LaunchDarkly SDK until the LaunchDarkly SDK upgrades its dependencies.

Describe the solution you've provided

Upgraded the dependencies.

Describe alternatives you've considered

N/A

Additional context

N/A

@maxlapides maxlapides requested a review from a team as a code owner March 26, 2024 22:39
@maxlapides maxlapides changed the title deps: upgrade plus plugins chore: upgrade plus plugins Mar 26, 2024
@@ -23,7 +23,8 @@ final class FlutterStateDetector implements StateDetector {
Stream<NetworkState> get networkState => _networkStateController.stream;

late final LDAppLifecycleListener _lifecycleListener;
late final StreamSubscription<ConnectivityResult> _connectivitySubscription;
Copy link
Member

Choose a reason for hiding this comment

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

I am a little concerned about also requiring an upgrade to a package that has only been out a few days.

Ideally we could support both for a bit. Probably not elegant, but I wonder if we could wrap these couple contact points. Accept a dynamic, if the item is not a list, then turn it into a list of one, if it is a list then forward it along.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Definitely not elegant, but it's not a bad idea! I just updated this PR, it should do the trick.

I thought about writing a wrapper as you suggested, but it looks like it's really just this one little spot in the code that needs to handle connectivity_plus v5, so I thought I'd keep it simple.

Copy link
Member

Choose a reason for hiding this comment

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

@maxlapides Looks great. Thank you for the contribution!

@kinyoklion
Copy link
Member

@maxlapides Thank you for the contribution! I've added a couple comments, and we will need a little time to consider.

@kinyoklion kinyoklion changed the title chore: upgrade plus plugins feat: Support latest versions of the plus plugins. Mar 26, 2024
@kinyoklion
Copy link
Member

I changed the PR title to ensure that it is releasable via release-please. It is a "feat" which would correspond to a minor version bump.

@kinyoklion kinyoklion merged commit 98dbbed into launchdarkly:main Mar 27, 2024
2 checks passed
kinyoklion pushed a commit that referenced this pull request Mar 28, 2024
🤖 I have created a release *beep* *boop*
---


##
[4.4.0](4.3.0...4.4.0)
(2024-03-27)


### Features

* Support latest versions of the plus plugins.
([#148](#148))
([98dbbed](98dbbed))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
@kinyoklion
Copy link
Member

@maxlapides This has been released in 4.4.0. Thanks again for the contribution!

@maxlapides
Copy link
Contributor Author

Thanks so much @kinyoklion!

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.

None yet

2 participants