Skip to content

Commit b397022

Browse files
charafauvbuberen
andauthored
feat(share_plus): Add Swift Package Manager support (#3169)
Co-authored-by: Volodymyr Buberenko <vbuberen@users.noreply.github.com> Co-authored-by: Volodymyr <v.buberenko@gmail.com>
1 parent 6a347cb commit b397022

File tree

10 files changed

+533
-8
lines changed

10 files changed

+533
-8
lines changed

packages/share_plus/share_plus/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ flutter_export_environment.sh
1111

1212
examples/all_plugins/pubspec.yaml
1313

14+
.build/
1415
Podfile
1516
Podfile.lock
1617
Pods/
18+
.swiftpm/
1719
.symlinks/
1820
**/Flutter/App.framework/
1921
**/Flutter/ephemeral/

packages/share_plus/share_plus/ios/share_plus.podspec

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ Downloaded by pub (not CocoaPods).
1414
s.author = { 'Flutter Community Team' => 'authors@fluttercommunity.dev' }
1515
s.source = { :http => 'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/share_plus/share_plus' }
1616
s.documentation_url = 'https://pub.dev/packages/share_plus'
17-
s.source_files = 'Classes/**/*'
18-
s.public_header_files = 'Classes/**/*.h'
17+
s.source_files = 'share_plus/Sources/share_plus/**/*.{h,m}'
18+
s.public_header_files = 'share_plus/Sources/share_plus/include/**/*.h'
1919
s.dependency 'Flutter'
2020
s.ios.weak_framework = 'LinkPresentation'
2121

2222
s.platform = :ios, '12.0'
2323
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
24-
s.resource_bundles = {'share_plus_privacy' => ['PrivacyInfo.xcprivacy']}
24+
s.resource_bundles = {'share_plus_privacy' => ['share_plus/Sources/share_plus/PrivacyInfo.xcprivacy']}
2525
end
26-
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// swift-tools-version: 5.9
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "share_plus",
8+
platforms: [
9+
.iOS("12.0"),
10+
],
11+
products: [
12+
.library(name: "share-plus", targets: ["share_plus"])
13+
],
14+
dependencies: [],
15+
targets: [
16+
.target(
17+
name: "share_plus",
18+
dependencies: [],
19+
resources: [
20+
.process("PrivacyInfo.xcprivacy"),
21+
],
22+
cSettings: [
23+
.headerSearchPath("include/share_plus")
24+
]
25+
)
26+
]
27+
)

0 commit comments

Comments
 (0)