// swift-tools-version: 6.2 import PackageDescription import Foundation // rastrillo/native with grant-bound sign-in lifetime handling. OFICINA_NATIVE_PACKAGE_PATH // points at a local checkout instead, for work on the kit itself. let sharedNative: Package.Dependency = ProcessInfo.processInfo.environment["OFICINA_NATIVE_PACKAGE_PATH"].map { .package(name: "native", path: $0) } ?? .package(url: "https://amadan.net/rastrillo/native", revision: "a18c32b3584ab5cadb8327f8f52a6186721f58dd") let package = Package( name: "EquipoNative", defaultLocalization: "en", platforms: [.macOS(.v26), .iOS(.v26)], products: [ .library(name: "EquipoKit", targets: ["EquipoKit"]), // The Live Activity's attributes and views, for the iPhone's widget // extension: no dependencies, so the extension stays small. .library(name: "EquipoActivity", targets: ["EquipoActivity"]), .executable(name: "EquipoMac", targets: ["EquipoMac"]), ], dependencies: [.package(path: "../share"), sharedNative, .package(url: "https://github.com/swiftlang/swift-cmark", revision: "08ddb528923cc1a6527e02b7a1aee9e516ca749a")], targets: [ .target(name: "EquipoActivity", resources: [.process("Resources")]), .target(name: "EquipoKit", dependencies: [.product(name: "EquipoShareCore", package: "share"), "EquipoActivity", .product(name: "cmark-gfm", package: "swift-cmark"), .product(name: "RastrilloApple", package: "native"), .product(name: "RastrilloNative", package: "native")], resources: [.process("Resources")]), .executableTarget(name: "EquipoMac", dependencies: ["EquipoKit", .product(name: "EquipoShareUI", package: "share"), .product(name: "RastrilloApple", package: "native"), .product(name: "RastrilloMacUpdates", package: "native", condition: .when(platforms: [.macOS]))], path: "Sources/EquipoMac"), .testTarget(name: "EquipoKitTests", dependencies: ["EquipoKit", "EquipoActivity", .target(name: "EquipoMac", condition: .when(platforms: [.macOS])), .product(name: "RastrilloTestSupport", package: "native"), .product(name: "RastrilloNative", package: "native")], resources: [.copy("Fixtures")]), ] )