Skip to content

Commit ad42300

Browse files
authored
Merge pull request #1 from browserstack/DEV A11Y
SPM Plugin implementation
2 parents 3489734 + 26643d8 commit ad42300

File tree

8 files changed

+827
-0
lines changed

8 files changed

+827
-0
lines changed

.gitignore

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
.AppleDouble
2+
.DS_Store
3+
.env
4+
.env.*
5+
.eslintcache
6+
.grunt
7+
.history
8+
.history.DS_Store
9+
.idea/
10+
.lock-wscript
11+
.LSOverride
12+
.node_repl_history
13+
.npm
14+
.nyc_output
15+
.vim/
16+
.vimspector.json
17+
.vscode-test/
18+
.vscode/
19+
.vscode/mcp.json
20+
.vscode/settings.json
21+
.yarn-integrity
22+
*.bak
23+
*.log
24+
*.orig
25+
*.pid
26+
*.pid.lock
27+
*.rej
28+
*.seed
29+
*.swo
30+
*.swp
31+
*.test.ts.snap
32+
*.tgz
33+
*.tmp
34+
*.tsbuildinfo
35+
*.vsix
36+
**.bundle
37+
**/Package.resolved
38+
**build
39+
**dist/**
40+
**out/**
41+
$RECYCLE.BIN/
42+
bower_components
43+
build.config.json
44+
build/Release
45+
config/config.json
46+
config/dbConfig.json
47+
config/keys.json
48+
coverage
49+
coverage/
50+
Desktop.ini
51+
dist/
52+
jspm_packages/
53+
lib-cov
54+
logs
55+
node_modules/
56+
npm-debug.log*
57+
out/
58+
pids
59+
src/build.config.json
60+
Thumbs.db
61+
typings/
62+
yarn-debug.log*
63+
yarn-error.log*
64+
TestProject/

Package.swift

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// swift-tools-version: 5.9
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "AccessibilityDevTools",
6+
products: [
7+
.plugin(
8+
name: "a11y-scan",
9+
targets: ["a11y-scan"]
10+
)
11+
],
12+
targets: [
13+
.plugin(
14+
name: "a11y-scan",
15+
capability: .command(
16+
intent: .custom(
17+
verb: "scan",
18+
description: "Scans your iOS project for accessibility issues"
19+
),
20+
permissions: [
21+
.allowNetworkConnections(
22+
// scope: .all(ports: []),
23+
scope: .all(),
24+
reason: "Please allow network connection permission to authenticate and run accessibility rules."
25+
),
26+
]
27+
)
28+
)
29+
]
30+
)

0 commit comments

Comments
 (0)