| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- // swift-tools-version: 6.0
- import PackageDescription
- let package = Package(
- name: "PluginExamples",
- dependencies: [
- .package(path: "../")
- ],
- targets: [
- .target(
- name: "Simple",
- dependencies: [
- .product(name: "SwiftProtobuf", package: "swift-protobuf")
- ],
- plugins: [
- .plugin(name: "SwiftProtobufPlugin", package: "swift-protobuf")
- ]
- ),
- .target(
- name: "Nested",
- dependencies: [
- .product(name: "SwiftProtobuf", package: "swift-protobuf")
- ],
- plugins: [
- .plugin(name: "SwiftProtobufPlugin", package: "swift-protobuf")
- ]
- ),
- .target(
- name: "Import",
- dependencies: [
- .product(name: "SwiftProtobuf", package: "swift-protobuf")
- ],
- plugins: [
- .plugin(name: "SwiftProtobufPlugin", package: "swift-protobuf")
- ]
- ),
- .target(
- name: "AccessLevelOnImport",
- dependencies: [
- .product(name: "SwiftProtobuf", package: "swift-protobuf")
- ],
- swiftSettings: [
- .enableExperimentalFeature("AccessLevelOnImport")
- ],
- plugins: [
- .plugin(name: "SwiftProtobufPlugin", package: "swift-protobuf")
- ]
- ),
- .testTarget(
- name: "ExampleTests",
- dependencies: [
- .target(name: "Simple"),
- .target(name: "Nested"),
- .target(name: "Import"),
- .target(name: "AccessLevelOnImport"),
- ]
- ),
- ],
- swiftLanguageModes: [.v6]
- )
|