Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
118 lines (116 loc) · 3.69 KB
/
Copy pathPackage.swift
File metadata and controls
118 lines (116 loc) · 3.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// swift-tools-version: 5.10
import PackageDescription
let package = Package(
name: "OpenMedKit",
platforms: [
.iOS(.v17),
.macOS(.v14),
.watchOS(.v10),
.visionOS(.v1),
],
products: [
.library(name: "OpenMedSpeech", targets: ["OpenMedSpeech"]),
.library(
name: "OpenMedKit",
targets: ["OpenMedKit"]
),
.library(
name: "OpenMedExtensionSupport",
targets: ["OpenMedExtensionSupport"]
),
.library(
name: "OpenMedShareExtension",
targets: ["OpenMedShareExtension"]
),
.library(
name: "OpenMedActionExtension",
targets: ["OpenMedActionExtension"]
),
],
dependencies: [
.package(url: "https://github.com/argmaxinc/argmax-oss-swift.git", exact: "1.1.1"),
.package(
url: "https://github.com/huggingface/swift-transformers.git",
exact: "1.0.0"
),
.package(
url: "https://github.com/ml-explore/mlx-swift.git",
exact: "0.31.3"
),
.package(
url: "https://github.com/weichsel/ZIPFoundation.git",
from: "0.9.19"
),
],
targets: [
.target(
name: "OpenMedSpeech",
dependencies: ["OpenMedKit", .product(name: "WhisperKit", package: "argmax-oss-swift")],
path: "swift/OpenMedKit/Sources/OpenMedSpeech"
),
.testTarget(
name: "OpenMedSpeechTests",
dependencies: ["OpenMedSpeech", "OpenMedKit"],
path: "swift/OpenMedKit/Tests/OpenMedSpeechTests"
),
.target(
name: "OpenMedKit",
dependencies: [
.product(
name: "Transformers",
package: "swift-transformers",
condition: .when(platforms: [.iOS, .macOS])
),
.product(
name: "MLX",
package: "mlx-swift",
condition: .when(platforms: [.iOS, .macOS])
),
.product(
name: "MLXNN",
package: "mlx-swift",
condition: .when(platforms: [.iOS, .macOS])
),
.product(
name: "ZIPFoundation",
package: "ZIPFoundation",
condition: .when(platforms: [.iOS, .macOS])
),
],
path: "swift/OpenMedKit/Sources/OpenMedKit",
resources: [
.process("Resources")
]
),
.target(
name: "OpenMedExtensionSupport",
dependencies: ["OpenMedKit"],
path: "swift/OpenMedKit/Sources/OpenMedExtensionSupport"
),
.target(
name: "OpenMedShareExtension",
dependencies: ["OpenMedExtensionSupport", "OpenMedKit"],
path: "swift/OpenMedKit/Sources/ShareExtension"
),
.target(
name: "OpenMedActionExtension",
dependencies: ["OpenMedExtensionSupport"],
path: "swift/OpenMedKit/Sources/ActionExtension"
),
.testTarget(
name: "OpenMedKitTests",
dependencies: ["OpenMedKit"],
path: "swift/OpenMedKit/Tests/OpenMedKitTests"
),
.testTarget(
name: "ExtensionTests",
dependencies: [
"OpenMedKit",
"OpenMedExtensionSupport",
"OpenMedShareExtension",
"OpenMedActionExtension",
],
path: "swift/OpenMedKit/Tests/ExtensionTests"
),
]
)