Package.swift 744 B

123456789101112131415161718192021222324252627282930313233
  1. // swift-tools-version: 5.9
  2. import PackageDescription
  3. let package = Package(
  4. name: "CapabilityPush",
  5. platforms: [
  6. .iOS(.v15)
  7. ],
  8. products: [
  9. .library(
  10. name: "CapabilityPush",
  11. targets: ["CapabilityPush"]
  12. )
  13. ],
  14. dependencies: [
  15. // 依赖 BaseCore(本地路径)
  16. .package(path: "../BaseCore")
  17. ],
  18. targets: [
  19. .target(
  20. name: "CapabilityPush",
  21. dependencies: [
  22. .product(name: "BaseCore", package: "BaseCore")
  23. ]
  24. ),
  25. .testTarget(
  26. name: "CapabilityPushTests",
  27. dependencies: ["CapabilityPush"],
  28. path: "Tests/CapabilityPushTests"
  29. )
  30. ]
  31. )