-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.yml
42 lines (42 loc) · 1.31 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
name: #PROJECT_NAME#
options:
carthageExecutablePath: 'mint run carthage carthage'
targets:
#PROJECT_NAME#:
type: application
platform: iOS
deploymentTarget: 11.0
sources: [#PROJECT_NAME#]
settings:
PRODUCT_BUNDLE_IDENTIFIER: com.#PROJECT_NAME#.ios
SWIFT_VERSION: '5.0'
dependencies:
- carthage: Rswift
preBuildScripts:
- script: |
if mint list | grep -q 'R.swift'; then
mint run R.swift rswift generate "$SRCROOT/#PROJECT_NAME#/Resources/R_Swift/R.generated.swift"
else
echo "warning: R.swift not installed; run 'mint bootstrap' to install"
fi
name: R.Swift
inputFiles:
- $TEMP_DIR/rswift-lastrun
outputFiles:
- $SRCROOT/#PROJECT_NAME#/Resources/R_Swift/R.generated.swift
postCompileScripts:
- script: |
if mint list | grep -q 'SwiftLint'; then
mint run SwiftLint swiftlint autocorrect
mint run SwiftLint swiftlint
else
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi
name: Swiftlint
#PROJECT_NAME#Tests:
type: bundle.unit-test
platform: iOS
deploymentTarget: '10.0'
sources: [#PROJECT_NAME#Tests]
dependencies:
- target: #PROJECT_NAME#