Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion isideload/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ plist-macro = "0.1.4"
reqwest = { version = "0.13.2", default-features = false, features = ["json", "gzip", "rustls-no-provider", "http2", "charset", "system-proxy"] }
thiserror = "2.0.17"
async-trait = "0.1.89"
serde = "1.0.228"
serde = { version = "1.0.228", features = ["derive"] }
rand = "0.8.5"
uuid = {version = "1.20.0", features = ["v4"] }
tracing = "0.1.44"
Expand Down
2 changes: 2 additions & 0 deletions isideload/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#[cfg(feature = "install")]
use idevice::IdeviceError;
use rootcause::{
hooks::{Hooks, context_formatter::ContextFormatterHook},
Expand All @@ -24,6 +25,7 @@ pub enum SideloadError {
#[error("Invalid bundle: {0}")]
InvalidBundle(String),

#[cfg(feature = "install")]
#[error("{0}")]
IdeviceError(#[from] IdeviceError),
}
Expand Down
7 changes: 5 additions & 2 deletions isideload/src/sideload/sideloader.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#[cfg(feature = "install")]
use crate::{dev::devices::DevicesApi, util::device::IdeviceInfo};
use crate::{
dev::{
app_groups::AppGroupsApi,
app_ids::{AppIdsApi, Profile},
developer_session::DeveloperSession,
devices::DevicesApi,
teams::{DeveloperTeam, TeamsApi},
},
sideload::{
Expand All @@ -15,14 +16,14 @@ use crate::{
},
util::{
callbacks::{ExtensionsBehaviorCallback, MaxCertsCallback},
device::IdeviceInfo,
storage::SideloadingStorage,
},
};

use std::path::PathBuf;

use apple_codesign_quick::ProvisioningProfile;
#[cfg(feature = "install")]
use idevice::provider::IdeviceProvider;
use plist::Dictionary;
use rootcause::{option_ext::OptionExt, prelude::*};
Expand All @@ -36,6 +37,8 @@ pub struct Sideloader<C: MaxCertsCallback, E: ExtensionsBehaviorCallback> {
apple_email: String,
max_certs_behavior: MaxCertsBehavior<C>,
extensions_behavior: ExtensionsBehaviorSelection<E>,
// Only `install_app` reads it.
#[cfg_attr(not(feature = "install"), allow(dead_code))]
delete_app_after_install: bool,
team: Option<DeveloperTeam>,
}
Expand Down
1 change: 1 addition & 0 deletions isideload/src/util/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pub mod callbacks;
#[cfg(feature = "install")]
pub mod device;
#[cfg(feature = "fs-storage")]
pub mod fs_storage;
Expand Down