-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
31 lines (30 loc) · 968 Bytes
/
Package.swift
File metadata and controls
31 lines (30 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "AccessibilityDevTools",
products: [
.plugin(
name: "a11y-scan",
targets: ["a11y-scan"]
)
],
targets: [
.plugin(
name: "a11y-scan",
capability: .command(
intent: .custom(
verb: "scan",
description: "Scans your iOS project for accessibility issues"
),
permissions: [
.allowNetworkConnections(
// scope: .all(ports: []),
scope: .all(),
reason: "Please allow network connection permission to authenticate and run accessibility rules."
),
.writeToPackageDirectory(reason: "Please allow writing to package directory for logging.")
]
)
)
]
)