Changes for iloader

This commit is contained in:
nab138
2026-02-14 23:45:00 -05:00
parent 936c280c7d
commit 6f70524aef
6 changed files with 13 additions and 8 deletions

2
Cargo.lock generated
View File

@@ -1831,7 +1831,7 @@ checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
[[package]]
name = "isideload"
version = "0.2.2"
version = "0.2.3"
dependencies = [
"aes 0.9.0-rc.4",
"aes-gcm",

View File

@@ -3,7 +3,7 @@ name = "isideload"
description = "Sideload iOS/iPadOS applications"
license = "MIT"
authors = ["Nicholas Sharp <nab@nabdev.me>"]
version = "0.2.2"
version = "0.2.3"
edition = "2024"
repository = "https://github.com/nab138/isideload"
documentation = "https://docs.rs/isideload"

View File

@@ -675,7 +675,7 @@ impl std::fmt::Display for AppleAccount {
}
}
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct AppToken {
pub token: String,
pub duration: u64,

View File

@@ -10,9 +10,9 @@ use plist::{Data, Date, Dictionary, Value};
use plist_macro::plist;
use reqwest::header::HeaderValue;
use rootcause::prelude::*;
use serde::Deserialize;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct AppId {
pub app_id_id: String,
@@ -22,7 +22,7 @@ pub struct AppId {
pub expiration_date: Option<Date>,
}
#[derive(Debug, Clone, Deserialize)]
#[derive(Debug, Clone, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct ListAppIdsResponse {
pub app_ids: Vec<AppId>,
@@ -133,12 +133,12 @@ pub trait AppIdsApi {
async fn delete_app_id(
&mut self,
team: &DeveloperTeam,
app_id: &AppId,
app_id_id: &str,
device_type: impl Into<Option<DeveloperDeviceType>> + Send,
) -> Result<(), Report> {
let body = plist!(dict {
"teamId": &team.team_id,
"appIdId": &app_id.app_id_id,
"appIdId": app_id_id,
});
self.developer_session()

View File

@@ -25,6 +25,7 @@ pub use super::device_type::DeveloperDeviceType;
pub use super::devices::*;
pub use super::teams::*;
#[derive(Clone)]
pub struct DeveloperSession {
token: AppToken,
adsid: String,

View File

@@ -258,4 +258,8 @@ impl Sideloader {
pub fn get_dev_session(&mut self) -> &mut DeveloperSession {
&mut self.dev_session
}
pub fn get_email(&self) -> &str {
&self.apple_email
}
}