-
Notifications
You must be signed in to change notification settings - Fork 2
/
Package.swift
115 lines (113 loc) · 6.24 KB
/
Package.swift
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
// swift-tools-version: 5.6
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "NutritionLabelClassifier",
platforms: [
.iOS(.v15)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "NutritionLabelClassifier",
targets: ["NutritionLabelClassifier"]),
],
dependencies: [
.package(url: "https://github.com/pxlshpr/SwiftSugar", from: "0.0.49"),
.package(url: "https://github.com/pxlshpr/VisionSugar", from: "0.0.45"),
.package(url: "https://github.com/marmelroy/Zip", from: "2.1.2"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "NutritionLabelClassifier",
dependencies: [
.product(name: "SwiftSugar", package: "swiftsugar"),
.product(name: "VisionSugar", package: "visionsugar"),
.product(name: "Zip", package: "zip"),
],
resources: []
),
.testTarget(
name: "NutritionLabelClassifierTests",
dependencies: ["NutritionLabelClassifier"],
resources: [
.process("Test Data/NutritionClassifier-Test_Data.zip"),
.process("Test Data/NutritionClassifier-TestImages.zip"),
.process("Test Data/Input/1.csv"),
.process("Test Data/Input/2.csv"),
.process("Test Data/Input/3.csv"),
.process("Test Data/Input/4.csv"),
.process("Test Data/Input/5.csv"),
.process("Test Data/Input/6.csv"),
.process("Test Data/Input/7.csv"),
.process("Test Data/Input/8.csv"),
.process("Test Data/Input/9.csv"),
.process("Test Data/Input/10.csv"),
.process("Test Data/Input/11.csv"),
.process("Test Data/Input/12.csv"),
.process("Test Data/Input/13.csv"),
.process("Test Data/Input/14.csv"),
.process("Test Data/Input/15.csv"),
.process("Test Data/Input/16.csv"),
.process("Test Data/Input/17.csv"),
.process("Test Data/Input/18.csv"),
.process("Test Data/Input/19.csv"),
.process("Test Data/Input/20.csv"),
.process("Test Data/Input/21.csv"),
.process("Test Data/Input/22.csv"),
.process("Test Data/Input/23.csv"),
.process("Test Data/Input/100.csv"),
.process("Test Data/Input/1-without_language_correction.csv"),
.process("Test Data/Input/2-without_language_correction.csv"),
.process("Test Data/Input/3-without_language_correction.csv"),
.process("Test Data/Input/4-without_language_correction.csv"),
.process("Test Data/Input/5-without_language_correction.csv"),
.process("Test Data/Input/6-without_language_correction.csv"),
.process("Test Data/Input/7-without_language_correction.csv"),
.process("Test Data/Input/8-without_language_correction.csv"),
.process("Test Data/Input/9-without_language_correction.csv"),
.process("Test Data/Input/10-without_language_correction.csv"),
.process("Test Data/Input/11-without_language_correction.csv"),
.process("Test Data/Input/12-without_language_correction.csv"),
.process("Test Data/Input/13-without_language_correction.csv"),
.process("Test Data/Input/14-without_language_correction.csv"),
.process("Test Data/Input/15-without_language_correction.csv"),
.process("Test Data/Input/16-without_language_correction.csv"),
.process("Test Data/Input/17-without_language_correction.csv"),
.process("Test Data/Input/18-without_language_correction.csv"),
.process("Test Data/Input/19-without_language_correction.csv"),
.process("Test Data/Input/20-without_language_correction.csv"),
.process("Test Data/Input/21-without_language_correction.csv"),
.process("Test Data/Input/22-without_language_correction.csv"),
.process("Test Data/Input/23-without_language_correction.csv"),
.process("Test Data/Input/100-without_language_correction.csv"),
.process("Test Data/Expected/1-nutrients.csv"),
.process("Test Data/Expected/2-nutrients.csv"),
.process("Test Data/Expected/3-nutrients.csv"),
.process("Test Data/Expected/4-nutrients.csv"),
.process("Test Data/Expected/5-nutrients.csv"),
.process("Test Data/Expected/6-nutrients.csv"),
.process("Test Data/Expected/7-nutrients.csv"),
.process("Test Data/Expected/8-nutrients.csv"),
.process("Test Data/Expected/9-nutrients.csv"),
.process("Test Data/Expected/10-nutrients.csv"),
.process("Test Data/Expected/11-nutrients.csv"),
.process("Test Data/Expected/12-nutrients.csv"),
.process("Test Data/Expected/13-nutrients.csv"),
.process("Test Data/Expected/14-nutrients.csv"),
.process("Test Data/Expected/15-nutrients.csv"),
.process("Test Data/Expected/16-nutrients.csv"),
.process("Test Data/Expected/17-nutrients.csv"),
.process("Test Data/Expected/18-nutrients.csv"),
.process("Test Data/Expected/19-nutrients.csv"),
.process("Test Data/Expected/20-nutrients.csv"),
.process("Test Data/Expected/21-nutrients.csv"),
.process("Test Data/Expected/22-nutrients.csv"),
.process("Test Data/Expected/23-nutrients.csv"),
.process("Test Data/Expected/100-nutrients.csv"),
]
),
]
)