// swift-tools-version: 6.2 import PackageDescription let package = Package( name: "VorleserKit", platforms: [ .iOS(.v18), .macOS(.v15), ], products: [ .library(name: "VorleserKit", targets: ["VorleserKit"]), .library(name: "BookParser", targets: ["BookParser"]), .library(name: "Storage", targets: ["Storage"]), .library(name: "Synthesizer", targets: ["Synthesizer"]), .library(name: "AudioEngine", targets: ["AudioEngine"]), ], dependencies: [ .package(url: "https://github.com/weichsel/ZIPFoundation.git", from: "0.9.0"), .package(url: "https://github.com/scinfu/SwiftSoup.git", from: "2.7.0"), .package(url: "https://github.com/mlalma/kokoro-ios.git", exact: "1.0.11"), .package(url: "https://github.com/mlalma/MLXUtilsLibrary.git", exact: "0.0.6"), .package(url: "https://github.com/ml-explore/mlx-swift", exact: "0.30.2"), ], targets: [ .target( name: "VorleserKit", dependencies: ["Storage", "Synthesizer"] ), .target( name: "AudioEngine", dependencies: ["VorleserKit", "Synthesizer", "BookParser"] ), .target( name: "Synthesizer", dependencies: [ .product(name: "KokoroSwift", package: "kokoro-ios"), .product(name: "MLXUtilsLibrary", package: "MLXUtilsLibrary"), .product(name: "MLX", package: "mlx-swift"), ] ), .target( name: "Storage", dependencies: [] ), .target( name: "BookParser", dependencies: ["VorleserKit", "ZIPFoundation", "SwiftSoup"] ), .testTarget( name: "StorageTests", dependencies: ["Storage"] ), .testTarget( name: "BookParserTests", dependencies: ["BookParser"], resources: [.copy("Fixtures")] ), .testTarget( name: "VorleserKitTests", dependencies: ["VorleserKit"] ), ] )