Skip to content

Commit 2836f8e

Browse files
authored
chore(screen-reader): Add SPM to screen-reader (ionic-team#1936)
1 parent 40e812e commit 2836f8e

File tree

19 files changed

+62
-833
lines changed

19 files changed

+62
-833
lines changed

screen-reader/.gitignore

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ 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
1320

14-
15-
1621
# Based on Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore
1722

1823
# Built application files

screen-reader/CapacitorScreenReader.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}', 'screen-reader/ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
13+
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}', 'screen-reader/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'

screen-reader/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+
}

screen-reader/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: "CapacitorScreenReader",
6+
platforms: [.iOS(.v13)],
7+
products: [
8+
.library(
9+
name: "ScreenReaderPlugin",
10+
targets: ["ScreenReaderPlugin"])
11+
],
12+
dependencies: [
13+
.package(url: "https://github.com/ionic-team/capacitor6-spm-test.git", branch: "main")
14+
],
15+
targets: [
16+
.target(
17+
name: "ScreenReaderPlugin",
18+
dependencies: [
19+
.product(name: "Capacitor", package: "capacitor6-spm-test"),
20+
.product(name: "Cordova", package: "capacitor6-spm-test")
21+
],
22+
path: "ios/Sources/ScreenReaderPlugin"),
23+
.testTarget(
24+
name: "ScreenReaderPluginTests",
25+
dependencies: ["ScreenReaderPlugin"],
26+
path: "ios/Tests/ScreenReaderPluginTests")
27+
]
28+
)

0 commit comments

Comments
 (0)