-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathproject.yml
158 lines (158 loc) · 4.39 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
name: Pokedex
configs:
Debug: debug
Adhoc: debug
Release: release
configFiles:
Debug: Configs/Debug.xcconfig
Adhoc: Configs/Adhoc.xcconfig
Release: Configs/Release.xcconfig
options:
defaultConfig: Debug
deploymentTarget:
iOS: 13.0
settingGroups:
MainSettings:
CURRENT_PROJECT_VERSION: 1
CODE_SIGN_STYLE: Manual
SWIFT_VERSION: 5.0
DISABLE_DIAMOND_PROBLEM_DIAGNOSTIC: YES #Read: https://forums.swift.org/t/adding-a-package-to-two-targets-in-one-projects-results-in-an-error/35007
packages:
Alamofire:
url: https://github.com/Alamofire/Alamofire.git
version: 5.5.0
Nuke:
url: https://github.com/kean/Nuke.git
version: 10.5.2
fileGroups:
targets:
Pokedex:
type: application
platform: iOS
sources: [Pokedex]
settings:
groups: [MainSettings]
configs:
Debug:
CODE_SIGN_IDENTITY: Apple Development
DEVELOPMENT_TEAM: NG4PAUE398
PROVISIONING_PROFILE_SPECIFIER: Pokedex.Debug
DEBUG_INFORMATION_FORMAT: dwarf
Adhoc:
CODE_SIGN_IDENTITY: Apple Distribution
DEVELOPMENT_TEAM: NG4PAUE398
PROVISIONING_PROFILE_SPECIFIER: Pokedex.Adhoc
DEBUG_INFORMATION_FORMAT: dwarf
Release:
CODE_SIGN_IDENTITY: Apple Distribution
DEVELOPMENT_TEAM: NG4PAUE398
PROVISIONING_PROFILE_SPECIFIER: Pokedex
DEBUG_INFORMATION_FORMAT: dwarf-with-dsym
dependencies:
- target: DataStore
- target: Domain
- target: Presentation
- target: QuizTodayExtension
codeSign: false
embed: true
prebuildScripts:
postbuildScripts:
- script: |
if which mint >/dev/null; then
mint run swiftlint swiftlint autocorrect --format
mint run swiftlint swiftlint
else
echo "warning: Mint not installed, download from https://github.com/yonaskolb/Mint"
fi
name: Run SwiftLint
DataStore:
type: framework
platform: iOS
sources: [DataStore]
settings:
PRODUCT_BUNDLE_IDENTIFIER: TomosukeOkada.Pokedex.DataStore
CODE_SIGN_STYLE: Automatic
APPLICATION_EXTENSION_API_ONLY: true
dependencies:
- package: Alamofire
- package: Nuke
Presentation:
type: framework
platform: iOS
sources: [Presentation]
settings:
PRODUCT_BUNDLE_IDENTIFIER: TomosukeOkada.Pokedex.Presentation
CODE_SIGN_STYLE: Automatic
dependencies:
- target: Domain
- package: Nuke
Domain:
type: framework
platform: iOS
sources: [Domain]
settings:
PRODUCT_BUNDLE_IDENTIFIER: TomosukeOkada.Pokedex.Domain
CODE_SIGN_STYLE: Automatic
APPLICATION_EXTENSION_API_ONLY: true
dependencies:
- target: DataStore
QuizTodayExtension:
type: app-extension
platform: iOS
sources: [QuizTodayExtension]
settings:
PRODUCT_NAME: Who is That Pokémon?
CODE_SIGN_STYLE: Manual
configs:
Debug:
CODE_SIGN_IDENTITY: Apple Development
PRODUCT_BUNDLE_IDENTIFIER: TomosukeOkada.Pokedex.Debug.QuizTodayExtension
DEVELOPMENT_TEAM: NG4PAUE398
PROVISIONING_PROFILE_SPECIFIER: Pokedex.QuizTodayExtension.Debug
Adhoc:
CODE_SIGN_IDENTITY: Apple Distribution
PRODUCT_BUNDLE_IDENTIFIER: TomosukeOkada.Pokedex.Adhoc.QuizTodayExtension
DEVELOPMENT_TEAM: NG4PAUE398
PROVISIONING_PROFILE_SPECIFIER: Pokedex.QuizTodayExtension.Adhoc
Release:
CODE_SIGN_IDENTITY: Apple Distribution
PRODUCT_BUNDLE_IDENTIFIER: TomosukeOkada.Pokedex.QuizTodayExtension
DEVELOPMENT_TEAM: NG4PAUE398
PROVISIONING_PROFILE_SPECIFIER: Pokedex.QuizTodayExtension
dependencies:
- target: Domain
- package: Nuke
- sdk: NotificationCenter.framework
PokedexTests:
type: bundle.unit-test
platform: iOS
sources:
- PokedexTests
settings:
base:
INFOPLIST_FILE: PokedexTests/Info.plist
dependencies:
- target: Pokedex
schemes:
Pokedex:
build:
targets:
Pokedex: all
PokedexTests: [test]
run:
config: Debug
test:
config: Debug
targets:
- PokedexTests
gatherCoverageData: true
coverageTargets:
- Domain
- DataStore
- Presentation
profile:
config: Release
analyze:
config: Debug
archive:
config: Release