-
-
Notifications
You must be signed in to change notification settings - Fork 973
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
refactor(battery_plus)!: platform implementation refactor into a single package #1169
Conversation
Windows build is not working, will try to fix tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious, is there a technical reason to have battery_plus_web.dart
in lib/
instead of lib/src/
?
Yayy the tests are passing 😊 |
This has been addressed ;) |
I am happy that I didn't need to do any CI changes! Only to make sure that the projects compiled. I had to switch to my Windows PC to fix the Windows build but that was it. |
The folders will still exist on your local copy, a
I believe so, since the Linux implementation is purely in Dart. The |
It was a temporary workaround that is probably not needed anymore: flutter/flutter#57497 |
EDIT: What @nohli just said above :) |
Very nice! 👍 LGTM but we need Majid's blessing for this... |
Right. Also, we can now export the |
LGTM! ❤️ Also letting @mhadaily give the approval 🙂 |
|
||
dependencies: | ||
flutter: | ||
sdk: flutter | ||
flutter_web_plugins: | ||
sdk: flutter | ||
battery_plus_platform_interface: 1.2.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as decided, the platform_interface is going to be referenced by exact version, not by "^
"
@@ -37,7 +39,7 @@ class Battery { | |||
|
|||
/// check if device is on battery save mode | |||
/// | |||
/// Currently only impemented on Android, IOS and Windows. | |||
/// Currently only implemented on Android, IOS and Windows. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we're fixing typos, iOS
would be better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't let it go, been seeing the typo the whole day 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the spirit!
I wonder if we should modify this CI check:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Description
After multiple discussions of the maintainer team, we came to the conclusion that maintaining a federated plugin architecture was more painful than brought any advantages.
This PR includes the work to "unfederate" battery_plus.
I decided to pick this package since there are no open PRs targeting this plugin.
Note to reviewers: The PR is easier to see if you checkout the branch.
Work Done
To perform the "unfederation":
battery_plus_linux
becamebattery_plus
.Update:
Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?