Download this file
| 1 | // swift-tools-version: 5.9 |
| 2 | import PackageDescription |
| 3 | import Foundation |
| 4 | |
| 5 | let sharedNative: Package.Dependency = ProcessInfo.processInfo.environment["OFICINA_NATIVE_PACKAGE_PATH"].map { .package(name: "native", path: $0) } |
| 6 | ?? .package(url: "https://amadan.net/rastrillo/native", revision: "2a5d07b2c8d3dfb3fd8526dc7e1c802f97865c67") |
| 7 | |
| 8 | let package = Package(name: "MemoriaNative", platforms: [.macOS(.v14), .iOS(.v17)], |
| 9 | products: [.library(name: "MemoriaKit", targets: ["MemoriaKit"]), .executable(name: "MemoriaMac", targets: ["MemoriaMac"])], |
| 10 | dependencies: [sharedNative], |
| 11 | targets: [ |
| 12 | .executableTarget(name: "MemoriaReview", dependencies: ["MemoriaKit", .product(name: "RastrilloApple", package: "native")]), |
| 13 | .target(name: "MemoriaKit", dependencies: [.product(name: "RastrilloApple", package: "native")]), |
| 14 | .executableTarget(name: "MemoriaMac", dependencies: [.product(name: "RastrilloMacUpdates", package: "native", condition: .when(platforms: [.macOS])), "MemoriaKit", .product(name: "RastrilloApple", package: "native")], path: "Sources/MemoriaApp")]) |
| 15 | |