-
-
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(share_plus): Add Swift Package Manager support (#3169)
Co-authored-by: Volodymyr Buberenko <[email protected]> Co-authored-by: Volodymyr <[email protected]>
- Loading branch information
1 parent
6a347cb
commit b397022
Showing
10 changed files
with
533 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
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,13 +14,12 @@ Downloaded by pub (not CocoaPods). | |
s.author = { 'Flutter Community Team' => '[email protected]' } | ||
s.source = { :http => 'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/share_plus/share_plus' } | ||
s.documentation_url = 'https://pub.dev/packages/share_plus' | ||
s.source_files = 'Classes/**/*' | ||
s.public_header_files = 'Classes/**/*.h' | ||
s.source_files = 'share_plus/Sources/share_plus/**/*.{h,m}' | ||
s.public_header_files = 'share_plus/Sources/share_plus/include/**/*.h' | ||
s.dependency 'Flutter' | ||
s.ios.weak_framework = 'LinkPresentation' | ||
|
||
s.platform = :ios, '12.0' | ||
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } | ||
s.resource_bundles = {'share_plus_privacy' => ['PrivacyInfo.xcprivacy']} | ||
s.resource_bundles = {'share_plus_privacy' => ['share_plus/Sources/share_plus/PrivacyInfo.xcprivacy']} | ||
end | ||
|
27 changes: 27 additions & 0 deletions
27
packages/share_plus/share_plus/ios/share_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: "share_plus", | ||
platforms: [ | ||
.iOS("12.0"), | ||
], | ||
products: [ | ||
.library(name: "share-plus", targets: ["share_plus"]) | ||
], | ||
dependencies: [], | ||
targets: [ | ||
.target( | ||
name: "share_plus", | ||
dependencies: [], | ||
resources: [ | ||
.process("PrivacyInfo.xcprivacy"), | ||
], | ||
cSettings: [ | ||
.headerSearchPath("include/share_plus") | ||
] | ||
) | ||
] | ||
) |
Oops, something went wrong.