-
-
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.
feat(battery_plus): Add Swift Package Manager support (#3154)
Co-authored-by: Volodymyr <[email protected]>
- Loading branch information
Showing
12 changed files
with
59 additions
and
8 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
Empty file.
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 |
---|---|---|
|
@@ -14,11 +14,11 @@ Downloaded by pub (not CocoaPods). | |
s.author = { 'Flutter Community Team' => '[email protected]' } | ||
s.source = { :http => 'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/battery_plus' } | ||
s.documentation_url = 'https://pub.dev/packages/battery_plus' | ||
s.source_files = 'Classes/**/*' | ||
s.public_header_files = 'Classes/**/*.h' | ||
s.source_files = 'battery_plus/Sources/battery_plus/**/*.{h,m}' | ||
s.public_header_files = 'battery_plus/Sources/battery_plus/include/**/*.h' | ||
s.dependency 'Flutter' | ||
|
||
s.platform = :ios, '12.0' | ||
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } | ||
s.resource_bundles = {'batery_plus_privacy' => ['PrivacyInfo.xcprivacy']} | ||
s.resource_bundles = {'battery_plus_privacy' => ['battery_plus/Sources/battery_plus/PrivacyInfo.xcprivacy']} | ||
end |
27 changes: 27 additions & 0 deletions
27
packages/battery_plus/battery_plus/ios/battery_plus/Package.swift
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// swift-tools-version: 5.9 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "battery_plus", | ||
platforms: [ | ||
.iOS("12.0") | ||
], | ||
products: [ | ||
.library(name: "battery-plus", targets: ["battery_plus"]) | ||
], | ||
dependencies: [], | ||
targets: [ | ||
.target( | ||
name: "battery_plus", | ||
dependencies: [], | ||
resources: [ | ||
.process("PrivacyInfo.xcprivacy") | ||
], | ||
cSettings: [ | ||
.headerSearchPath("include/battery_plus") | ||
] | ||
) | ||
] | ||
) |
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.
File renamed without changes.
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 |
---|---|---|
|
@@ -13,11 +13,11 @@ A Flutter plugin for accessing information about the battery state(full, chargin | |
s.license = { :file => '../LICENSE' } | ||
s.author = { 'Flutter Community' => '[email protected]' } | ||
s.source = { :path => 'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/battery_plus' } | ||
s.source_files = 'Classes/**/*' | ||
s.source_files = 'battery_plus/Sources/battery_plus/**/*.swift' | ||
s.dependency 'FlutterMacOS' | ||
|
||
s.platform = :osx, '10.14' | ||
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } | ||
s.swift_version = '5.0' | ||
s.resource_bundles = {'batery_plus_privacy' => ['PrivacyInfo.xcprivacy']} | ||
s.resource_bundles = {'battery_plus_privacy' => ['battery_plus/Sources/battery_plus/PrivacyInfo.xcprivacy']} | ||
end |
24 changes: 24 additions & 0 deletions
24
packages/battery_plus/battery_plus/macos/battery_plus/Package.swift
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// swift-tools-version: 5.9 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "battery_plus", | ||
platforms: [ | ||
.macOS("10.14") | ||
], | ||
products: [ | ||
.library(name: "battery-plus", targets: ["battery_plus"]) | ||
], | ||
dependencies: [], | ||
targets: [ | ||
.target( | ||
name: "battery_plus", | ||
dependencies: [], | ||
resources: [ | ||
.process("PrivacyInfo.xcprivacy") | ||
] | ||
) | ||
] | ||
) |
File renamed without changes.
File renamed without changes.
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