-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.yml
More file actions
153 lines (147 loc) · 4.45 KB
/
Copy pathproject.yml
File metadata and controls
153 lines (147 loc) · 4.45 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
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
name: PrecioLuzApp
options:
minimumXcodeGenVersion: 2.45.0
deploymentTarget:
iOS: "26.0"
settings:
base:
SWIFT_STRICT_CONCURRENCY: complete
SWIFT_VERSION: 6.0
IPHONEOS_DEPLOYMENT_TARGET: 26.0
packages:
CasePaths:
url: https://github.com/pointfreeco/swift-case-paths
from: 1.7.3
ComposableArchitecture:
url: https://github.com/pointfreeco/swift-composable-architecture
from: 1.9.3
Perception:
url: https://github.com/pointfreeco/swift-perception
from: 2.0.10
SQLiteData:
url: https://github.com/pointfreeco/sqlite-data
from: 1.6.1
SnapshotTesting:
url: https://github.com/pointfreeco/swift-snapshot-testing
from: 1.19.2
targets:
PrecioLuzApp:
type: application
platform: iOS
deploymentTarget: "26.0"
sources:
- path: Sources
- path: Resources
buildPhase: resources
excludes:
- Info.plist
settings:
base:
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES: AppIconDark
CODE_SIGN_STYLE: Automatic
DEVELOPMENT_TEAM: R55L2F35DV
PRODUCT_BUNDLE_IDENTIFIER: com.michelgoni.PrecioLuzApp
INFOPLIST_FILE: Resources/Info.plist
TARGETED_DEVICE_FAMILY: "1"
dependencies:
- package: CasePaths
product: CasePaths
- package: ComposableArchitecture
product: ComposableArchitecture
- package: Perception
product: PerceptionCore
- package: Perception
product: Perception
- package: SQLiteData
product: SQLiteData
- target: PrecioLuzWidgetExtension
embed: true
postBuildScripts:
- name: Copy Local Debug Secrets
outputFiles:
- $(TARGET_BUILD_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/PrecioLuzLocal.env
script: |
LOCAL_ENV_FILE="${SRCROOT}/.env"
BUNDLED_ENV_FILE="${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/PrecioLuzLocal.env"
rm -f "$BUNDLED_ENV_FILE"
if [ "$CONFIGURATION" = "Debug" ] && [ -f "$LOCAL_ENV_FILE" ]; then
cp "$LOCAL_ENV_FILE" "$BUNDLED_ENV_FILE"
fi
PrecioLuzWidgetExtension:
type: app-extension
platform: iOS
deploymentTarget: "26.0"
sources:
- path: Sources/Clients/PricingClient.swift
- path: Sources/Domain/DomainModels.swift
- path: Sources/Domain/REEPublicationWindowPolicy.swift
- path: Sources/Features/WidgetFeature/PricesMediumWidgetMapper.swift
- path: Sources/Features/WidgetFeature/PricesMediumWidgetView.swift
- path: Widgets
- path: Resources
buildPhase: resources
excludes:
- Info.plist
settings:
base:
CODE_SIGN_STYLE: Automatic
DEVELOPMENT_TEAM: R55L2F35DV
PRODUCT_BUNDLE_IDENTIFIER: com.michelgoni.PrecioLuzApp.WidgetExtension
INFOPLIST_FILE: Widgets/Info.plist
postBuildScripts:
- name: Copy Local Debug Secrets
outputFiles:
- $(TARGET_BUILD_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/PrecioLuzLocal.env
script: |
LOCAL_ENV_FILE="${SRCROOT}/.env"
BUNDLED_ENV_FILE="${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/PrecioLuzLocal.env"
rm -f "$BUNDLED_ENV_FILE"
if [ "$CONFIGURATION" = "Debug" ] && [ -f "$LOCAL_ENV_FILE" ]; then
cp "$LOCAL_ENV_FILE" "$BUNDLED_ENV_FILE"
fi
PrecioLuzAppTests:
type: bundle.unit-test
platform: iOS
deploymentTarget: "26.0"
sources:
- path: Tests
settings:
base:
GENERATE_INFOPLIST_FILE: YES
dependencies:
- target: PrecioLuzApp
- package: ComposableArchitecture
product: ComposableArchitecture
- package: SnapshotTesting
product: SnapshotTesting
PrecioLuzAppUITests:
type: bundle.ui-testing
platform: iOS
deploymentTarget: "26.0"
sources:
- path: UITests
settings:
base:
GENERATE_INFOPLIST_FILE: YES
dependencies:
- target: PrecioLuzApp
schemes:
PrecioLuzApp:
build:
targets:
PrecioLuzApp: all
PrecioLuzWidgetExtension: all
PrecioLuzAppTests: [test]
PrecioLuzAppUITests: [test]
run:
config: Debug
environmentVariables:
PRECIOLUZ_ENV_FILE: $(SRCROOT)/.env
test:
config: Debug
targets:
- name: PrecioLuzAppTests
- name: PrecioLuzAppUITests
environmentVariables:
PRECIOLUZ_ENV_FILE: $(SRCROOT)/.env