-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproject.yml
68 lines (68 loc) · 1.95 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
name: TodayMood
options:
usesTabs: false
indentWidth: 4
tabWidth: 4
bundleIdPrefix: com.oboon
deploymentTarget:
iOS: '13.0'
fileGroups:
- Config
configs:
Debug: debug
Release: release
configFiles:
Debug: Config/Development.xcconfig
Release: Config/Production.xcconfig
targets:
TodayMood:
type: application
platform: iOS
deploymentTarget: '13.0'
info:
path: TodayMood/Supporting Files/Info.plist
properties:
UISupportedInterfaceOrientations: [UIInterfaceOrientationPortrait]
UILaunchStoryboardName: LaunchScreen
BaseURL: $(BASE_URL)
UIViewControllerBasedStatusBarAppearance: true
UIStatusBarStyle: UIStatusBarStyleLightContent
NSAppTransportSecurity: {
NSExceptionDomains: {
api.5boon.me: {
NSTemporaryExceptionAllowsInsecureHTTPLoads: true
}
}
}
UIUserInterfaceStyle: Light
settings:
INFOPLIST_FILE: TodayMood/Supporting Files/Info.plist
sources:
- TodayMood/Sources
- path: 'TodayMood/Supporting Files'
type: group
- path: 'TodayMood/Supporting Files/GoogleService-Info.plist'
buildPhase: resources
- path: TodayMood/Resources
type: group
scheme:
getherCoverageData: true
testTargets:
- name: TodayMoodTests
parallelizable: true
randomExecutionOrder: true
postCompileScripts:
- script: '${PODS_ROOT}/SwiftLint/swiftlint'
name: Swiftlint
- script: |
#Update build number with number of git commits if in release mode
buildNumber=$(git rev-list HEAD | wc -l | tr -d ' ')
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}"
name: Automate Build number (Git)
TodayMoodTests:
platform: iOS
type: bundle.unit-test
sources:
- TodayMoodTests
dependencies:
- target: TodayMood