(&self, udid: &str, app_path: &str)
| 799 | } |
| 800 | |
| 801 | pub fn install_app(&self, udid: &str, app_path: &str) -> Result<(), AppError> { |
| 802 | let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?; |
| 803 | let app_path = CString::new(app_path).map_err(|e| AppError::bad_request(e.to_string()))?; |
| 804 | unsafe { |
| 805 | let mut error = ptr::null_mut(); |
| 806 | bool_result( |
| 807 | ffi::xcw_native_install_app(udid.as_ptr(), app_path.as_ptr(), &mut error), |
| 808 | error, |
| 809 | ) |
| 810 | } |
| 811 | } |
| 812 | |
| 813 | pub fn uninstall_app(&self, udid: &str, bundle_id: &str) -> Result<(), AppError> { |
| 814 | let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?; |
no test coverage detected