Package.swift 861 B

1234567891011121314151617181920212223242526272829303132
  1. // swift-tools-version:5.1
  2. // The swift-tools-version declares the minimum version of Swift required to build this package.
  3. import PackageDescription
  4. let package = Package(
  5. name: "DGCharts",
  6. platforms: [
  7. .iOS(.v12),
  8. .tvOS(.v12),
  9. .macOS(.v10_12),
  10. ],
  11. products: [
  12. .library(
  13. name: "DGCharts",
  14. targets: ["DGCharts"]),
  15. .library(
  16. name: "DGChartsDynamic",
  17. type: .dynamic,
  18. targets: ["DGCharts"])
  19. ],
  20. dependencies: [
  21. .package(url: "https://github.com/apple/swift-algorithms", from: "1.0.0")
  22. ],
  23. targets: [
  24. .target(
  25. name: "DGCharts",
  26. dependencies: [.product(name: "Algorithms", package: "swift-algorithms")],
  27. path: "Source/Charts"
  28. )
  29. ],
  30. swiftLanguageVersions: [.v5]
  31. )