Package.swift 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // This source file is part of the Foundation Models open source project.
  4. //
  5. // Copyright © 2024-2027 Apple Inc. and the Foundation Models project authors.
  6. //
  7. // Licensed under the Apache License v2.0
  8. //
  9. // See LICENSE.txt for license information
  10. //
  11. //===----------------------------------------------------------------------===//
  12. // swift-tools-version: 6.2
  13. import PackageDescription
  14. let package = Package(
  15. name: "foundation-models-utilities",
  16. platforms: [
  17. .macOS("27.0"),
  18. .iOS("27.0"),
  19. .visionOS("27.0"),
  20. .watchOS("27.0")
  21. ],
  22. products: [
  23. .library(
  24. name: "FoundationModelsUtilities",
  25. targets: ["FoundationModelsUtilities"]
  26. )
  27. ],
  28. targets: [
  29. .target(
  30. name: "FoundationModelsUtilities",
  31. dependencies: [],
  32. swiftSettings: [
  33. .enableExperimentalFeature("InternalImportsByDefault"),
  34. .enableExperimentalFeature("NonisolatedNonsendingByDefault"),
  35. .enableUpcomingFeature("MemberImportVisibility")
  36. ]
  37. ),
  38. .testTarget(
  39. name: "FoundationModelsUtilitiesTests",
  40. dependencies: [
  41. "FoundationModelsUtilities",
  42. ],
  43. swiftSettings: [
  44. .enableExperimentalFeature("InternalImportsByDefault"),
  45. .enableExperimentalFeature("NonisolatedNonsendingByDefault"),
  46. .enableUpcomingFeature("MemberImportVisibility")
  47. ]
  48. ),
  49. .testTarget(
  50. name: "FoundationModelsUtilitiesIntegrationTests",
  51. dependencies: [
  52. "FoundationModelsUtilities",
  53. ],
  54. swiftSettings: [
  55. .enableExperimentalFeature("InternalImportsByDefault"),
  56. .enableExperimentalFeature("NonisolatedNonsendingByDefault"),
  57. .enableUpcomingFeature("MemberImportVisibility")
  58. ]
  59. ),
  60. ],
  61. swiftLanguageModes: [.v6]
  62. )