-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(battery_plus)!: platform implementation refactor into a sing…
…le package (#1169) * unfederate battery_plus_linux * unfederate battery_plus_macos * unfederate battery_plus_web * unfederate battery_plus_windows * Unfederate the platform interface * move all files one dir below * fix dependency * bump version * add missing flutter_web_plugins * windows naming fix * Fix windows build * Move battery_plus_web.dart to src folder * remove pluginClass: none * moving all files to src * export platform interface * remove unnecessary import * cleanup * sort imports * move battery_plus_platform_interface.dart to root * export enums directly instead of the battery_plus_platform_interface * rename BatteryPlusWebPlugin * renamed BatteryPlusLinux to BatteryPlusLinuxPlugin for consistency * move battery_plus into battery_plus * re-add battery_plus_platform_interface * fix battery_plus dependency to the platform interface * typo * format * remove new line from changelog, let's try melos release process * revert forcing package version BREAKING CHANGE: battery_plus plugin architecture changed
- Loading branch information
1 parent
aeadfca
commit 143204b
Showing
44 changed files
with
125 additions
and
684 deletions.
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
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.