Package.swift 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. // swift-tools-version:5.3
  2. // Copyright 2019-2023 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. .iOS(.v13),
  10. ],
  11. products: [
  12. // Products define the executables and libraries a package produces, and make them visible to other packages.
  13. .library(
  14. name: "tauri-plugin-sample",
  15. type: .static,
  16. targets: ["tauri-plugin-sample"]),
  17. ],
  18. dependencies: [
  19. // Dependencies declare other packages that this package depends on.
  20. .package(name: "Tauri", path: "../../../../../core/tauri/mobile/ios-api")
  21. ],
  22. targets: [
  23. // Targets are the basic building blocks of a package. A target can define a module or a test suite.
  24. // Targets can depend on other targets in this package, and on products in packages this package depends on.
  25. .target(
  26. name: "tauri-plugin-sample",
  27. dependencies: [
  28. .byName(name: "Tauri")
  29. ],
  30. path: "Sources")
  31. ]
  32. )