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
Merged
Merged
Changes from 25 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
e40d37c
unfederate battery_plus_linux
miquelbeltran d41abcc
unfederate battery_plus_macos
miquelbeltran 5fd724f
unfederate battery_plus_web
miquelbeltran 76604bc
unfederate battery_plus_windows
miquelbeltran 1357c3a
Unfederate the platform interface
miquelbeltran b8a94a9
move all files one dir below
miquelbeltran 8739d55
fix dependency
miquelbeltran ffc60c7
bump version
miquelbeltran 281a2d6
add missing flutter_web_plugins
miquelbeltran 20b02b7
windows naming fix
miquelbeltran 9ca606a
Fix windows build
miquelbeltran 27e5143
Move battery_plus_web.dart to src folder
miquelbeltran fee455a
remove pluginClass: none
miquelbeltran 868a15a
moving all files to src
miquelbeltran 32af1d3
export platform interface
miquelbeltran e936a4d
remove unnecessary import
miquelbeltran 17eb4ed
cleanup
miquelbeltran 47cc155
sort imports
miquelbeltran 0f1dd77
move battery_plus_platform_interface.dart to root
miquelbeltran d622afd
export enums directly instead of the battery_plus_platform_interface
miquelbeltran 66ef252
rename BatteryPlusWebPlugin
miquelbeltran 92e12f9
renamed BatteryPlusLinux to BatteryPlusLinuxPlugin for consistency
miquelbeltran d695aaf
move battery_plus into battery_plus
miquelbeltran 5139ab6
re-add battery_plus_platform_interface
miquelbeltran 5d9e504
fix battery_plus dependency to the platform interface
miquelbeltran 0a18675
typo
miquelbeltran 1a69268
format
miquelbeltran 6c51388
remove new line from changelog, let's try melos release process
miquelbeltran 3395fcd
revert forcing package version
miquelbeltran File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 3.0.0 | ||
|
||
- New plugin architecture | ||
|
||
## 2.2.1 | ||
|
||
- Fix: batteryState always return unknown on API < 26 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/battery_plus/battery_plus/example/macos/Runner.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
23 changes: 12 additions & 11 deletions
23
packages/battery_plus/battery_plus/macos/battery_plus.podspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
# | ||
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html | ||
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. | ||
# Run `pod lib lint battery_plus_macos.podspec' to validate before publishing. | ||
# | ||
Pod::Spec.new do |s| | ||
s.name = 'battery_plus' | ||
s.version = '0.0.1' | ||
s.summary = 'No-op implementation of the macos battery_plus to avoid build issues on macos' | ||
s.summary = 'Flutter Battery Plus' | ||
s.description = <<-DESC | ||
No-op implementation of the battery_plus plugin to avoid build issues on macos. | ||
https://github.com/flutter/flutter/issues/46618 | ||
DESC | ||
s.homepage = 'https://github.com/fluttercommunity/plus_plugins/tree/master/packages/battery_plus' | ||
A Flutter plugin for accessing information about the battery state(full, charging, discharging). | ||
DESC | ||
s.homepage = 'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/battery_plus' | ||
s.license = { :file => '../LICENSE' } | ||
s.author = { 'Flutter Community' => 'authors@fluttercommunity.dev' } | ||
s.source = { :path => '.' } | ||
s.source_files = 'Classes/**/*' | ||
s.public_header_files = 'Classes/**/*.h' | ||
s.source = { :path => 'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/battery_plus' } | ||
s.source_files = 'Classes/**/*' | ||
s.dependency 'FlutterMacOS' | ||
|
||
s.platform = :osx | ||
s.osx.deployment_target = '10.11' | ||
s.platform = :osx, '10.11' | ||
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } | ||
s.swift_version = '5.0' | ||
end |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 betterThere 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!