(&self, udid: &str, bundle_id: &str)
| 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()))?; |
| 815 | let bundle_id = |
| 816 | CString::new(bundle_id).map_err(|e| AppError::bad_request(e.to_string()))?; |
| 817 | unsafe { |
| 818 | let mut error = ptr::null_mut(); |
| 819 | bool_result( |
| 820 | ffi::xcw_native_uninstall_app(udid.as_ptr(), bundle_id.as_ptr(), &mut error), |
| 821 | error, |
| 822 | ) |
| 823 | } |
| 824 | } |
| 825 | |
| 826 | pub fn set_pasteboard_text(&self, udid: &str, text: &str) -> Result<(), AppError> { |
| 827 | let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?; |
no test coverage detected