MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / install_app

Method install_app

packages/server/src/native/bridge.rs:801–811  ·  view source on GitHub ↗
(&self, udid: &str, app_path: &str)

Source from the content-addressed store, hash-verified

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()))?;

Callers 1

install_app_pathFunction · 0.45

Calls 2

bool_resultFunction · 0.85
xcw_native_install_appFunction · 0.85

Tested by

no test coverage detected