(
State(state): State<AppState>,
Path(udid): Path<String>,
)
| 2178 | } |
| 2179 | |
| 2180 | async fn boot_simulator( |
| 2181 | State(state): State<AppState>, |
| 2182 | Path(udid): Path<String>, |
| 2183 | ) -> Result<Json<Value>, AppError> { |
| 2184 | if android::is_android_id(&udid) { |
| 2185 | boot_android_device(state.clone(), udid.clone()).await?; |
| 2186 | return android_simulator_payload(state, udid).await; |
| 2187 | } |
| 2188 | boot_ios_device(state.clone(), udid.clone()).await?; |
| 2189 | simulator_payload(state, udid).await |
| 2190 | } |
| 2191 | |
| 2192 | async fn shutdown_simulator( |
| 2193 | State(state): State<AppState>, |
nothing calls this directly
no test coverage detected