-
-
Notifications
You must be signed in to change notification settings - Fork 194
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: Conflict with v6.x of connectivity_plus
dependency
#1002
fix: Conflict with v6.x of connectivity_plus
dependency
#1002
Conversation
Thanks for opening this pull request! |
I just noticed that my formatter settings changed some formatting. Are the format settings published so that I can remove the white noise from my changes? |
Could you please run the workflow? |
Yes, please change the format to normal |
I manually reversed formatting changes. Let me know if there is a way for me to change my formatter settings locally to match the repo standards. |
I noticed an issue with my commit when testing locally on my real project. I'm out of time this weekend to work on this so consider this a draft PR until I can resolve the issue on Monday. The issue is that I initialize the connectivity dependency inside the Parse initialize() method but I forgot the |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1002 +/- ##
==========================================
+ Coverage 43.37% 43.73% +0.36%
==========================================
Files 61 61
Lines 3463 3466 +3
==========================================
+ Hits 1502 1516 +14
+ Misses 1961 1950 -11 ☔ View full report in Codecov by Sentry. |
…itialized before calling the initialize method.
Refactored the dependency injection to the constructor of the Parse class. This was the right place for it and it cleaned up the test code as well. Tested in my project on iOS + Android as well. I used the dart formatter from the command line (the same way your workflow does) and it formatted correctly. I had to disabled Format on Save inside VS Code (just fyi). @mtrezza it's ready for review. |
It looks like
|
What would this mean in the context of our compatibility policy? |
It looks like the policy requires us to support back to Flutter 3.13 through October 31st 2024 and Flutter 3.10 can drop in 2 days. The Since I added unit tests around the functionality for this dependency I wouldn't wait for 3.16 to drop and do the merge on November 1st and require Flutter >= 3.16. Do you want me to leave the PR sitting here until November? Or close it? I have a work around so I can move on. |
I think it is better to keep PR until November |
|
Pull Request
Issue
#1001
Closes: #1001
Approach
Bumped connectivity_plus dependency to 6.0.3 (latest). That package now returns a List of
ConnectivityResult
so I mapped those results to theParseConnectivityResult
enum and preserved old behavior.I covered with new unit tests.
Tasks