forked from openfoodfacts/openfoodfacts-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.yml
163 lines (150 loc) · 4.99 KB
/
project.yml
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
name: OpenFoodFacts
fileGroups: [Cartfile, CONTRIBUTING.md, crowdin.yml, fastlane, ISSUE_TEMPLATE.md, LICENSE, project.yml, PULL_REQUEST_TEMPLATE.md, README.md, Snapshots, scripts, .swiftlint.yml, .gitignore]
options:
minimumXcodeGenVersion: 2.14.0
bundleIdPrefix: org.openfoodfacts
transitivelyLinkDependencies: true
deploymentTarget:
iOS: "10.0"
settingGroups:
testing-endpoints:
GET_ENDPOINT: "http:/$()/localhost:8080"
POST_ENDPOINT: "http:/$()/localhost:8080"
LOGIN_ENDPOINT: "http:/$()/localhost:8080/cgi/session.pl"
ROBOTOFF_ENDPOINT: "https:/$()/localhost:8080"
release-endpoints:
GET_ENDPOINT: "https:/$()/ssl-api.openfoodfacts.org"
POST_ENDPOINT: "https:/$()/ssl-api.openfoodfacts.org"
LOGIN_ENDPOINT: "https:/$()/world.openfoodfacts.org/cgi/session.pl"
ROBOTOFF_ENDPOINT: "https:/$()/robotoff.openfoodfacts.org"
settings:
base:
SWIFT_VERSION: 5
CODE_SIGN_IDENTITY: iPhone Developer
configs:
Debug:
groups:
- testing-endpoints
Release:
groups:
- release-endpoints
targets:
OpenFoodFacts:
type: application
platform: iOS
sources:
- path: Sources
excludes:
- Frameworks/*
settings:
base:
INFOPLIST_FILE: Sources/Info.plist
PRODUCT_BUNDLE_IDENTIFIER: org.openfoodfacts.scanner
MARKETING_VERSION: 3.3
CURRENT_PROJECT_VERSION: 44
DEVELOPMENT_TEAM: ZC9CYWD334
dependencies:
- sdk: MobileCoreServices.framework
- sdk: AVFoundation.framework
- framework: Carthage/Build/Alamofire.xcframework
- framework: Carthage/Build/AlamofireImage.xcframework
- framework: Carthage/Build/AlamofireObjectMapper.xcframework
- framework: Carthage/Build/BLTNBoard.xcframework
- framework: Carthage/Build/Cartography.xcframework
- framework: Carthage/Build/FloatingPanel.xcframework
- framework: Carthage/Build/IBLocalizable.xcframework
- framework: Carthage/Build/ImageViewer.xcframework
- framework: Carthage/Build/IQKeyboardManagerSwift.xcframework
- framework: Carthage/Build/KeychainAccess.xcframework
- framework: Carthage/Build/Kingfisher.xcframework
- framework: Carthage/Build/MarqueeLabel.xcframework
- framework: Carthage/Build/NotificationBanner.xcframework
- framework: Carthage/Build/ObjcExceptionBridging.xcframework
- framework: Carthage/Build/ObjectMapper.xcframework
- framework: Carthage/Build/Realm.xcframework
- framework: Carthage/Build/RealmSwift.xcframework
- framework: Carthage/Build/Sentry.xcframework
- framework: Carthage/Build/SnapKit.xcframework
- framework: Carthage/Build/SVProgressHUD.xcframework
- framework: Carthage/Build/TOCropViewController.xcframework
- framework: Carthage/Build/XCGLogger.xcframework
- framework: Carthage/Build/XLPagerTabStrip.xcframework
- framework: Carthage/Build/Zip.xcframework
preBuildScripts:
- script: |
if which swiftlint >/dev/null; then
swiftlint
else
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi
name: SwiftLint
OpenFoodFactsTests:
type: bundle.unit-test
platform: iOS
sources:
- path: Tests
- path: TestResources
dependencies:
- target: OpenFoodFacts
- framework: Carthage/Build/Nimble.xcframework
- framework: Carthage/Build/Quick.xcframework
- framework: Carthage/Build/OHHTTPStubs.xcframework
OpenFoodFactsUITests:
type: bundle.ui-testing
platform: iOS
sources:
- path: UITests
- path: TestResources
- path: Sources/Helpers/AccessibilityIdentifiers.swift
dependencies:
- target: OpenFoodFacts
- framework: Carthage/Build/Swifter.xcframework
OpenFoodFactsSnapshots:
type: bundle.ui-testing
platform: iOS
sources:
- path: Snapshots
- path: Sources/Helpers/AccessibilityIdentifiers.swift
dependencies:
- target: OpenFoodFacts
schemes:
OpenFoodFacts:
build:
targets:
OpenFoodFacts: all
test:
gatherCoverageData: true
targets:
- name: OpenFoodFactsTests
randomExecutionOrder: true
- name: OpenFoodFactsUITests
randomExecutionOrder: true
- name: OpenFoodFactsSnapshots
randomExecutionOrder: true
OpenFoodFactsTests:
build:
targets:
OpenFoodFactsTests: all
test:
gatherCoverageData: true
targets:
- name: OpenFoodFactsTests
randomExecutionOrder: true
OpenFoodFactsUITests:
build:
targets:
OpenFoodFactsUITests: all
test:
gatherCoverageData: true
targets:
- name: OpenFoodFactsUITests
randomExecutionOrder: true
OpenFoodFactsSnapshots:
build:
targets:
OpenFoodFactsSnapshots: all
test:
gatherCoverageData: true
targets:
- name: OpenFoodFactsSnapshots
randomExecutionOrder: true