forked from danielraffel/SwiftCatalyst
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.yml.template
More file actions
88 lines (84 loc) · 2.16 KB
/
project.yml.template
File metadata and controls
88 lines (84 loc) · 2.16 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
name: ${APP_NAME}
options:
createIntermediateGroups: true
bundleIdPrefix: ${BUNDLE_ID_PREFIX}
deploymentTarget:
iOS: 18.0
indentWidth: 2
tabWidth: 2
usesTabs: false
packages:
Inject:
url: https://github.com/krzysztofzablocki/Inject.git
from: 1.5.0
targets:
${APP_NAME}:
type: application
platform: iOS
sources:
- path: Sources
dependencies:
- package: Inject
settings:
base:
INFOPLIST_FILE: Sources/Info.plist
SWIFT_ACTIVE_COMPILATION_CONDITIONS: DEBUG
ENABLE_TESTABILITY: YES
PRODUCT_BUNDLE_IDENTIFIER: ${BUNDLE_ID_PREFIX}.${APP_NAME}
DEVELOPMENT_TEAM: ${TEAM_ID}
ENABLE_USER_SCRIPT_SANDBOXING: NO
${CODE_SIGN_ENTITLEMENTS}
configs:
debug:
EMIT_FRONTEND_COMMAND_LINES: YES
OTHER_LDFLAGS:
- "-Xlinker"
- "-interposable"
preBuildScripts:
- name: SwiftLint
script: |
if which swiftlint > /dev/null; then
swiftlint
else
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi
basedOnDependencyAnalysis: false
- name: Copy Injection Bundle
script: |
export RESOURCES="/Applications/InjectionNext.app/Contents/Resources"
if [ -f "$RESOURCES/copy_bundle.sh" ]; then
"$RESOURCES/copy_bundle.sh"
fi
basedOnDependencyAnalysis: false
inputFiles:
- /Applications/InjectionNext.app/Contents/Resources/copy_bundle.sh
${APP_NAME}Tests:
type: bundle.unit-test
platform: iOS
sources:
- path: Tests
dependencies:
- target: ${APP_NAME}
settings:
base:
INFOPLIST_FILE: Tests/Info.plist
PRODUCT_BUNDLE_IDENTIFIER: ${BUNDLE_ID_PREFIX}.${APP_NAME}Tests
schemes:
${APP_NAME}:
build:
targets:
${APP_NAME}: all
run:
config: Debug
commandLineArguments:
"-FIRDebugEnabled": true
test:
config: Debug
targets:
- ${APP_NAME}Tests
profile:
config: Release
analyze:
config: Debug
archive:
config: Release