-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathproject.yml
More file actions
89 lines (85 loc) · 2.49 KB
/
Copy pathproject.yml
File metadata and controls
89 lines (85 loc) · 2.49 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
name: EasyQSO
options:
bundleIdPrefix: com.shadowmov
deploymentTarget:
iOS: "15.0"
xcodeVersion: "16.0"
developmentLanguage: en
defaultConfig: Release
settings:
base:
SWIFT_VERSION: "5.0"
TARGETED_DEVICE_FAMILY: "1,2"
CODE_SIGN_STYLE: Automatic
DEVELOPMENT_TEAM: 938YYDD5ZL
targets:
EasyQSO:
type: application
platform: iOS
sources:
- path: EasyQSO
excludes:
- "Preview Content"
resources:
- path: EasyQSO/Preview Content
buildPhase: none
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.shadowmov.EasyQSO
INFOPLIST_FILE: EasyQSO/Info.plist
CODE_SIGN_IDENTITY: "Apple Development"
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME: AccentColor
ENABLE_PREVIEWS: true
DEVELOPMENT_ASSET_PATHS: '"EasyQSO/Preview Content"'
MARKETING_VERSION: "1.0.3"
CURRENT_PROJECT_VERSION: "1"
postBuildScripts:
- script: |
PLIST="${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}"
COMMIT_HASH="unknown"
IS_DIRTY="false"
if git -C "$SRCROOT" rev-parse --git-dir > /dev/null 2>&1; then
COMMIT_HASH=$(git -C "$SRCROOT" rev-parse --short HEAD 2>/dev/null || echo "unknown")
if ! git -C "$SRCROOT" diff --quiet HEAD -- ':!EasyQSO/Info.plist' 2>/dev/null; then
IS_DIRTY="true"
fi
fi
/usr/libexec/PlistBuddy -c "Delete :GitCommitHash" "$PLIST" 2>/dev/null || true
/usr/libexec/PlistBuddy -c "Add :GitCommitHash string $COMMIT_HASH" "$PLIST"
/usr/libexec/PlistBuddy -c "Delete :GitIsDirty" "$PLIST" 2>/dev/null || true
/usr/libexec/PlistBuddy -c "Add :GitIsDirty bool $IS_DIRTY" "$PLIST"
name: Inject Git Info into Info.plist
basedOnDependencyAnalysis: false
scheme:
testTargets:
- EasyQSOTests
gatherCoverageData: true
EasyQSOTests:
type: bundle.unit-test
platform: iOS
sources:
- path: EasyQSOTests
dependencies:
- target: EasyQSO
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.shadowmov.EasyQSOTests
GENERATE_INFOPLIST_FILE: true
schemes:
EasyQSO:
build:
targets:
EasyQSO: all
EasyQSOTests: [test]
run:
config: Debug
test:
config: Debug
gatherCoverageData: true
targets:
- EasyQSOTests
profile:
config: Release
archive:
config: Release