-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.yml
More file actions
109 lines (106 loc) · 3.27 KB
/
Copy pathproject.yml
File metadata and controls
109 lines (106 loc) · 3.27 KB
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
name: Snippets
targets:
Snippets:
type: application
platform: iOS
sources:
- Snippets
- path: Snippets/R.generated.swift
optional: true
type: file
- path: Snippets/Mock.generated.swift
optional: true
type: file
settings:
base:
INFOPLIST_FILE: Snippets/Info.plist
CODE_SIGN_ENTITLEMENTS: Snippets/Snippets.entitlements
DEVELOPMENT_LANGUAGE: en
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
SWIFT_OPTIMIZATION_LEVEL: "-Owholemodule"
preBuildScripts:
- name: Generate Resources with R.swift
script: |
xcrun --sdk macosx mint run r.swift generate "$SRCROOT/$PROJECT_NAME/R.generated.swift"
inputFiles:
- $TEMP_DIR/rswift-lastrun
outputFiles:
- $SRCROOT/$PROJECT_NAME/R.generated.swift
- name: Generate Mock with Mockolo
script: |
rm -f "$SRCROOT/$PROJECT_NAME/Mock.generated.swift"
xcrun --sdk macosx mint run mockolo --sourcedirs "$SRCROOT/$PROJECT_NAME" --destination "$SRCROOT/$PROJECT_NAME/Mock.generated.swift" --mock-final
outputFiles:
- $SRCROOT/$PROJECT_NAME/Mock.generated.swift
- name: Format Codes
script: |
xcrun --sdk macosx mint run swiftformat .
- name: SwiftLint
script: |
xcrun --sdk macosx mint run swiftlint --config "$SRCROOT/.swiftlint.yml"
dependencies:
- target: DashSourceful
- target: Entity
- target: LanguageThemeColor
- target: RxActivityIndicator
- target: RxPropertyChaining
- target: RxPropertyWrapper
DashSourceful:
templates:
- EmbeddedFramework
- EmbeddedRSwift
Entity:
templates:
- EmbeddedFramework
LanguageThemeColor:
templates:
- EmbeddedFramework
- EmbeddedRSwift
RxActivityIndicator:
templates:
- EmbeddedFramework
RxPropertyChaining:
templates:
- EmbeddedFramework
RxPropertyWrapper:
templates:
- EmbeddedFramework
options:
deploymentTarget:
iOS: "14.4"
xcodeVersion: "12.4"
bundleIdPrefix: com.zyxw
postGenCommand: pod install
targetTemplates:
EmbeddedFramework:
platform: iOS
type: framework
sources:
- path: ${target_name}
settings:
INFOPLIST_FILE: ${target_name}/Info.plist
EmbeddedRSwift:
sources:
- path: ${target_name}/${target_name}.R.generated.swift
optional: true
type: file
preBuildScripts:
- name: Generate Resources with R.swift
script: |
xcrun --sdk macosx mint run r.swift generate "$PRODUCT_NAME/$PRODUCT_NAME.R.generated.swift"
inputFiles:
- $TEMP_DIR/rswift-lastrun
outputFiles:
- "$PRODUCT_NAME/$(PRODUCT_NAME).R.generated.swift"
EmbeddedMock:
sources:
- path: ${target_name}/${target_name}.Mock.generated.swift
optional: true
type: file
preBuildScripts:
- name: Generate Mock with Mockolo
script: |
rm -f "$PRODUCT_NAME/$PRODUCT_NAME.Mock.generated.swift"
xcrun --sdk macosx mint run mockolo --sourcedirs "$PRODUCT_NAME" --destination "$PRODUCT_NAME/$PRODUCT_NAME.Mock.generated.swift" --mock-final
outputFiles:
- "$PRODUCT_NAME/($PRODUCT_NAME).Mock.generated.swift"