(config?: ProjectConfig)
| 154 | } |
| 155 | |
| 156 | function normalizeExistingDefaults(config?: ProjectConfig): { |
| 157 | projectPath?: string; |
| 158 | workspacePath?: string; |
| 159 | scheme?: string; |
| 160 | deviceId?: string; |
| 161 | simulatorId?: string; |
| 162 | simulatorName?: string; |
| 163 | } { |
| 164 | const sessionDefaults = config?.sessionDefaults ?? {}; |
| 165 | return { |
| 166 | projectPath: sessionDefaults.projectPath, |
| 167 | workspacePath: sessionDefaults.workspacePath, |
| 168 | scheme: sessionDefaults.scheme, |
| 169 | deviceId: sessionDefaults.deviceId, |
| 170 | simulatorId: sessionDefaults.simulatorId, |
| 171 | simulatorName: sessionDefaults.simulatorName, |
| 172 | }; |
| 173 | } |
| 174 | |
| 175 | function inferPlatformsFromExisting(config?: ProjectConfig): SetupPlatform[] { |
| 176 | if (!config) return []; |
no outgoing calls
no test coverage detected