forked from openfoodfacts/openfoodfacts-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.yml
169 lines (156 loc) · 4.59 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
164
165
166
167
168
169
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, .travis.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: Sources/Frameworks/Crashlytics.framework
- framework: Sources/Frameworks/Fabric.framework
- carthage: Alamofire
- carthage: AlamofireImage
- carthage: AlamofireObjectMapper
- carthage: BLTNBoard
- carthage: Cartography
- carthage: FloatingPanel
- carthage: IBLocalizable
- carthage: ImageViewer
- carthage: IQKeyboardManagerSwift
- carthage: KeychainAccess
- carthage: Kingfisher
- carthage: MarqueeLabel
- carthage: NotificationBanner
- carthage: ObjcExceptionBridging
- carthage: ObjectMapper
- carthage: Realm
- carthage: RealmSwift
- carthage: SnapKit
- carthage: SVProgressHUD
- carthage: TOCropViewController
- carthage: XCGLogger
- carthage: XLPagerTabStrip
- carthage: Zip
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
postBuildScripts:
- script: |
"${PROJECT_DIR}/Sources/Frameworks/Fabric.framework/run" 2a83bde9cbf98b48f34f2f27fdb7baa31cf9b5f8 8edbf06d5de27983cb0bf34ca9e266b949a15616bfd9e7a3f6ee013b97cc3d46
name: Fabric
runOnlyWhenInstalling: true
OpenFoodFactsTests:
type: bundle.unit-test
platform: iOS
sources:
- path: Tests
- path: TestResources
dependencies:
- target: OpenFoodFacts
- carthage: Nimble
- carthage: Quick
- carthage: OHHTTPStubs
OpenFoodFactsUITests:
type: bundle.ui-testing
platform: iOS
sources:
- path: UITests
- path: TestResources
- path: Sources/Helpers/AccessibilityIdentifiers.swift
dependencies:
- target: OpenFoodFacts
- carthage: Swifter
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