-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathproject.yml
123 lines (118 loc) · 3.35 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
name: RIBsReactorKit
attributes:
ORGANIZATIONNAME: Elon
options:
bundleIdPrefix: com.elonparks
deploymentTarget:
iOS: 13.0
defaultConfig: Release
indentWidth: 2
tabWidth: 2
useBaseInternationalization: true
createIntermediateGroups: true
groupSortPosition: top
groupOrdering:
- order: [Source, Resource]
settings:
base:
VERSIONING_SYSTEM: Apple Generic
"EXCLUDED_ARCHS[sdk=iphonesimulator*]": arm64
targets:
RIBsReactorKit:
type: application
platform: iOS
settings:
base:
INFOPLIST_FILE: RIBsReactorKit/Resource/SupportingFiles/Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.elonparks.RIBsReactorKit
PRODUCT_NAME: $(TARGET_NAME)
FRAMEWORK_SEARCH_PATHS: $(inherited)
CODE_SIGN_STYLE: Automatic
configs:
debug:
DEVELOPMENT_TEAM: M77W68G9P5
SWIFT_ACTIVE_COMPILATION_CONDITIONS: DEBUG
release:
DEVELOPMENT_TEAM: M77W68G9P5
sources:
- path: RIBsReactorKit
preBuildScripts:
- name: SwiftGen
script: |
export PATH="$PATH:/opt/homebrew/bin"
if which swiftgen > /dev/null; then
if [[ "$(uname -m)" == 'arm64' ]]; then
arch -x86_64 swiftgen
else
swiftgen
fi
else
echo "warning: SwiftGen not installed, download it from https://github.com/SwiftGen/SwiftGen"
fi
- name: Needle
script: |
SOURCE_ROOT="RIBsReactorKit/Source"
FILE_PATH="${SOURCE_ROOT}/Presentation/Utilities/Generated"
export PATH="$PATH:/opt/homebrew/bin"
export SOURCEKIT_LOGGING=0 && needle generate ${FILE_PATH}/NeedleGenerated.swift ${SOURCE_ROOT}/
postBuildScripts:
- name: SwiftFormat
script: |
export PATH="$PATH:/opt/homebrew/bin"
if which swiftformat >/dev/null; then
swiftformat .
else
echo "warning: SwiftFormat not installed, download from https://github.com/nicklockwood/SwiftFormat"
fi
- name: SwiftLint
script: |
export PATH="$PATH:/opt/homebrew/bin"
if which swiftlint > /dev/null; then
swiftlint
else
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi
- name: Acknowledgements
script: "${SRCROOT}/Scripts/AckAck/ackack.py"
scheme:
testTargets:
- RIBsReactorKitTests
stopOnEveryMainThreadCheckerIssue: true
gatherCoverageData: true
RIBsReactorKitTests:
type: bundle.unit-test
platform: iOS
settings:
base:
CODE_SIGN_STYLE: Automatic
sources:
- RIBsReactorKitTests
dependencies:
- target: RIBsReactorKit
RIBsReactorKitUITests:
type: bundle.ui-testing
platform: iOS
settings:
base:
INFOPLIST_FILE: RIBsReactorKitUITests/Info.plist
PRODUCT_NAME: $(TARGET_NAME)
sources:
- RIBsReactorKitUITests
dependencies:
- target: RIBsReactorKit
schemes:
RIBsReactorKitTests:
build:
targets:
RIBsReactorKitTests: [test]
test:
targets:
- name: RIBsReactorKitTests
parallelizable: true
RIBsReactorKitUITests:
build:
targets:
RIBsReactorKitUITests: [test]
test:
targets:
- RIBsReactorKitUITests