Package.swift 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // swift-tools-version:5.3
  2. // Copyright 2019-2024 Tauri Programme within The Commons Conservancy
  3. // SPDX-License-Identifier: Apache-2.0
  4. // SPDX-License-Identifier: MIT
  5. import PackageDescription
  6. let package = Package(
  7. name: "tauri-plugin-sample",
  8. platforms: [
  9. .macOS(.v10_13),
  10. .iOS(.v13),
  11. ],
  12. products: [
  13. // Products define the executables and libraries a package produces, and make them visible to other packages.
  14. .library(
  15. name: "tauri-plugin-sample",
  16. type: .static,
  17. targets: ["tauri-plugin-sample"]),
  18. ],
  19. dependencies: [
  20. // Dependencies declare other packages that this package depends on.
  21. .package(name: "Tauri", path: "../../../../../core/tauri/mobile/ios-api")
  22. ],
  23. targets: [
  24. // Targets are the basic building blocks of a package. A target can define a module or a test suite.
  25. // Targets can depend on other targets in this package, and on products in packages this package depends on.
  26. .target(
  27. name: "tauri-plugin-sample",
  28. dependencies: [
  29. .byName(name: "Tauri")
  30. ],
  31. path: "Sources")
  32. ]
  33. )