Package.swift 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. // swift-tools-version: 5.9
  2. import PackageDescription
  3. let package = Package(
  4. name: "FilesystemCapacitor",
  5. platforms: [.iOS(.v14)],
  6. products: [
  7. .library(
  8. name: "FilesystemCapacitor",
  9. targets: ["FilesystemPlugin"])
  10. ],
  11. dependencies: [
  12. .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", exact: "7.1.0")
  13. ],
  14. targets: [
  15. .binaryTarget(
  16. name: "IONFilesystemLib",
  17. url: "https://github.com/ionic-team/ion-ios-filesystem/releases/download/1.0.0/IONFilesystemLib.zip",
  18. checksum: "0279cb09ba79c2c917b049a6e388f37f025846886ecc86b0a09320da46ed2c33" // sha-256
  19. ),
  20. .target(
  21. name: "FilesystemPlugin",
  22. dependencies: [
  23. .product(name: "Capacitor", package: "capacitor-swift-pm"),
  24. .product(name: "Cordova", package: "capacitor-swift-pm"),
  25. "IONFilesystemLib"
  26. ],
  27. path: "ios/Sources/FilesystemPlugin"),
  28. .testTarget(
  29. name: "FilesystemPluginTests",
  30. dependencies: ["FilesystemPlugin"],
  31. path: "ios/Tests/FilesystemPluginTests")
  32. ]
  33. )