You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/PackageDescription/Target.swift
+12-9Lines changed: 12 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -41,10 +41,13 @@ public final class Target {
41
41
case `macro`
42
42
}
43
43
44
-
/// A group a target belongs to that allows customizing access boundaries. A target is treated as
45
-
/// a client outside of the package if `excluded`, inside the package boundary if `package`.
44
+
/// A group a target belongs to that allows customizing access boundaries. By default, the target belongs
45
+
/// to the `package` group, and has access to the symbols inside the package. If the target's group is
46
+
/// `excluded`, it is essentially a client of the package.
46
47
publicenumTargetGroup{
48
+
/// Treat this target as inside the package boundary.
47
49
casepackage
50
+
/// Treat this target as outside the package boundary.
48
51
case excluded
49
52
}
50
53
/// The different types of a target's dependency on another entity.
@@ -561,7 +564,7 @@ public final class Target {
561
564
///
562
565
/// - Parameters:
563
566
/// - name: The name of the target.
564
-
/// - group: The group this target belongs to, where access to the target's group-specific APIs is not allowed from outside (package by default).
567
+
/// - group: The group this target belongs to, where access to the target's group-specific APIs is not allowed from outside. The default value is `package`.
565
568
/// - dependencies: The dependencies of the target. A dependency can be another target in the package or a product from a package dependency.
566
569
/// - path: The custom path for the target. By default, the Swift Package Manager requires a target's sources to reside at predefined search paths;
567
570
/// for example, `[PackageRoot]/Sources/[TargetName]`.
@@ -733,7 +736,7 @@ public final class Target {
733
736
///
734
737
/// - Parameters:
735
738
/// - name: The name of the target.
736
-
/// - group: The group this target belongs to, where access to the target's group-specific APIs is not allowed from outside (package by default).
739
+
/// - group: The group this target belongs to, where access to the target's group-specific APIs is not allowed from outside. The default value is `package`.
737
740
/// - dependencies: The dependencies of the target. A dependency can be another target in the package or a product from a package dependency.
738
741
/// - path: The custom path for the target. By default, the Swift Package Manager requires a target's sources to reside at predefined search paths;
739
742
/// for example, `[PackageRoot]/Sources/[TargetName]`.
@@ -980,7 +983,7 @@ public final class Target {
980
983
///
981
984
/// - Parameters:
982
985
/// - name: The name of the target.
983
-
/// - group: The group this target belongs to, where access to the target's group-specific APIs is not allowed from outside (package by default).
986
+
/// - group: The group this target belongs to, where access to the target's group-specific APIs is not allowed from outside. The default value is `package`.
984
987
/// - dependencies: The dependencies of the target. A dependency can be another target in the package or a product from a package dependency.
985
988
/// - path: The custom path for the target. By default, the Swift Package Manager requires a target's sources to reside at predefined search paths;
986
989
/// for example, `[PackageRoot]/Sources/[TargetName]`.
@@ -1217,7 +1220,7 @@ public final class Target {
1217
1220
///
1218
1221
/// - Parameters:
1219
1222
/// - name: The name of the plugin target.
1220
-
/// - group: The group this target belongs to, where access to the target's group-specific APIs is not allowed from outside (package by default).
1223
+
/// - group: The group this target belongs to, where access to the target's group-specific APIs is not allowed from outside. The default value is `package`.
1221
1224
/// - capability: The type of capability the plugin target provides.
1222
1225
/// - dependencies: The plugin target's dependencies.
1223
1226
/// - path: The path of the plugin target, relative to the package root.
@@ -1412,7 +1415,7 @@ public struct TargetDependencyCondition {
1412
1415
1413
1416
extensionTarget.PluginCapability{
1414
1417
1415
-
/// Specifies that the plugin provides a build tool capability.
1418
+
/// The plugin is a build tool.
1416
1419
///
1417
1420
/// The plugin will be applied to each target that uses it and should create commands
1418
1421
/// that will run before or during the build of the target.
@@ -1496,7 +1499,7 @@ public enum PluginPermission {
1496
1499
case writeToPackageDirectory(reason:String)
1497
1500
}
1498
1501
1499
-
/// The scope of a network permission. This can be none, local connections only or all connections.
1502
+
/// The scope of a network permission. This can be none, local connections only, or all connections.
1500
1503
@available(_PackageDescription, introduced:5.9)
1501
1504
publicenumPluginNetworkPermissionScope{
1502
1505
/// Do not allow network access.
@@ -1510,7 +1513,7 @@ public enum PluginNetworkPermissionScope {
1510
1513
/// Allow connections to any unix domain socket.
1511
1514
case unixDomainSocket
1512
1515
1513
-
/// Allow local and outgoing network connections, limited to a range of allowed ports.
1516
+
/// Allow local and outgoing network connections, limited to a range of allowed ports.
0 commit comments