Skip to content

Commit 5fac335

Browse files
authored
chore(action-sheet): Adding SPM support to action-sheet (ionic-team#1925)
1 parent 01f3e7c commit 5fac335

22 files changed

+80
-848
lines changed

action-sheet/.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ Pods
77
Podfile.lock
88
Build
99
xcuserdata
10+
/.build
11+
/Packages
12+
xcuserdata/
13+
DerivedData/
14+
.swiftpm/configuration/registries.json
15+
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
16+
.netrc
1017

1118
# macOS files
1219
.DS_Store

action-sheet/CapacitorActionSheet.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
1010
s.homepage = 'https://capacitorjs.com'
1111
s.author = package['author']
1212
s.source = { :git => 'https://github.com/ionic-team/capacitor-plugins.git', :tag => package['name'] + '@' + package['version'] }
13-
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}', 'action-sheet/ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
13+
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}', 'action-sheet/ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
1414
s.ios.deployment_target = '13.0'
1515
s.dependency 'Capacitor'
1616
s.swift_version = '5.1'

action-sheet/Package.resolved

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"pins" : [
3+
{
4+
"identity" : "capacitor6-spm-test",
5+
"kind" : "remoteSourceControl",
6+
"location" : "https://github.com/ionic-team/capacitor6-spm-test.git",
7+
"state" : {
8+
"branch" : "main",
9+
"revision" : "cf4ff2bc1dffb14adc27b1e5a09ac37e85424b99"
10+
}
11+
}
12+
],
13+
"version" : 2
14+
}

action-sheet/Package.swift

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// swift-tools-version: 5.9
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "CapacitorActionSheet",
6+
platforms: [.iOS(.v13)],
7+
products: [
8+
.library(
9+
name: "ActionSheetPlugin",
10+
targets: ["ActionSheetPlugin"])
11+
],
12+
dependencies: [
13+
.package(url: "https://github.com/ionic-team/capacitor6-spm-test.git", branch: "main")
14+
],
15+
targets: [
16+
.target(
17+
name: "ActionSheetPlugin",
18+
dependencies: [
19+
.product(name: "Capacitor", package: "capacitor6-spm-test"),
20+
.product(name: "Cordova", package: "capacitor6-spm-test")
21+
],
22+
path: "ios/Sources/ActionSheetPlugin"),
23+
.testTarget(
24+
name: "ActionSheetPluginTests",
25+
dependencies: ["ActionSheetPlugin"],
26+
path: "ios/Tests/ActionSheetPluginTests")
27+
]
28+
)

action-sheet/ios/.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.DS_Store
2+
/.build
3+
/Packages
4+
xcuserdata/
5+
DerivedData/
6+
.swiftpm/configuration/registries.json
7+
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
8+
.netrc

0 commit comments

Comments
 (0)