mirror of
https://github.com/nab138/isideload.git
synced 2026-03-02 06:26:16 +01:00
Changes for iloader
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -1831,7 +1831,7 @@ checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "isideload"
|
name = "isideload"
|
||||||
version = "0.2.2"
|
version = "0.2.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aes 0.9.0-rc.4",
|
"aes 0.9.0-rc.4",
|
||||||
"aes-gcm",
|
"aes-gcm",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name = "isideload"
|
|||||||
description = "Sideload iOS/iPadOS applications"
|
description = "Sideload iOS/iPadOS applications"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
authors = ["Nicholas Sharp <nab@nabdev.me>"]
|
authors = ["Nicholas Sharp <nab@nabdev.me>"]
|
||||||
version = "0.2.2"
|
version = "0.2.3"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
repository = "https://github.com/nab138/isideload"
|
repository = "https://github.com/nab138/isideload"
|
||||||
documentation = "https://docs.rs/isideload"
|
documentation = "https://docs.rs/isideload"
|
||||||
|
|||||||
@@ -675,7 +675,7 @@ impl std::fmt::Display for AppleAccount {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct AppToken {
|
pub struct AppToken {
|
||||||
pub token: String,
|
pub token: String,
|
||||||
pub duration: u64,
|
pub duration: u64,
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ use plist::{Data, Date, Dictionary, Value};
|
|||||||
use plist_macro::plist;
|
use plist_macro::plist;
|
||||||
use reqwest::header::HeaderValue;
|
use reqwest::header::HeaderValue;
|
||||||
use rootcause::prelude::*;
|
use rootcause::prelude::*;
|
||||||
use serde::Deserialize;
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Deserialize)]
|
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct AppId {
|
pub struct AppId {
|
||||||
pub app_id_id: String,
|
pub app_id_id: String,
|
||||||
@@ -22,7 +22,7 @@ pub struct AppId {
|
|||||||
pub expiration_date: Option<Date>,
|
pub expiration_date: Option<Date>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Deserialize)]
|
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct ListAppIdsResponse {
|
pub struct ListAppIdsResponse {
|
||||||
pub app_ids: Vec<AppId>,
|
pub app_ids: Vec<AppId>,
|
||||||
@@ -133,12 +133,12 @@ pub trait AppIdsApi {
|
|||||||
async fn delete_app_id(
|
async fn delete_app_id(
|
||||||
&mut self,
|
&mut self,
|
||||||
team: &DeveloperTeam,
|
team: &DeveloperTeam,
|
||||||
app_id: &AppId,
|
app_id_id: &str,
|
||||||
device_type: impl Into<Option<DeveloperDeviceType>> + Send,
|
device_type: impl Into<Option<DeveloperDeviceType>> + Send,
|
||||||
) -> Result<(), Report> {
|
) -> Result<(), Report> {
|
||||||
let body = plist!(dict {
|
let body = plist!(dict {
|
||||||
"teamId": &team.team_id,
|
"teamId": &team.team_id,
|
||||||
"appIdId": &app_id.app_id_id,
|
"appIdId": app_id_id,
|
||||||
});
|
});
|
||||||
|
|
||||||
self.developer_session()
|
self.developer_session()
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ pub use super::device_type::DeveloperDeviceType;
|
|||||||
pub use super::devices::*;
|
pub use super::devices::*;
|
||||||
pub use super::teams::*;
|
pub use super::teams::*;
|
||||||
|
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct DeveloperSession {
|
pub struct DeveloperSession {
|
||||||
token: AppToken,
|
token: AppToken,
|
||||||
adsid: String,
|
adsid: String,
|
||||||
|
|||||||
@@ -258,4 +258,8 @@ impl Sideloader {
|
|||||||
pub fn get_dev_session(&mut self) -> &mut DeveloperSession {
|
pub fn get_dev_session(&mut self) -> &mut DeveloperSession {
|
||||||
&mut self.dev_session
|
&mut self.dev_session
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn get_email(&self) -> &str {
|
||||||
|
&self.apple_email
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user