Skip to content

Commit 0a5b822

Browse files
committed
chore: remove additional check for supporting rsd
1 parent 2ab7ca6 commit 0a5b822

3 files changed

Lines changed: 5 additions & 21 deletions

File tree

apps/plumeimpactor/src/screen/utilties.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ impl StatusMessage {
3636
}
3737
}
3838

39+
#[allow(unused)]
3940
#[derive(Debug, Clone)]
4041
pub enum Message {
4142
RefreshApps(bool),
@@ -79,7 +80,7 @@ impl UtilitiesScreen {
7980

8081
pub fn update(&mut self, message: Message) -> Task<Message> {
8182
match message {
82-
Message::RefreshApps(supports_remote_pairing) => {
83+
Message::RefreshApps(_) => {
8384
self.loading = true;
8485
self.status_message = None;
8586
self.app_statuses.clear();
@@ -95,7 +96,7 @@ impl UtilitiesScreen {
9596
let rt = tokio::runtime::Runtime::new().unwrap();
9697
let result = rt.block_on(async move {
9798
device
98-
.installed_apps(supports_remote_pairing)
99+
.installed_apps()
99100
.await
100101
.map_err(|e| format!("Failed to load apps: {}", e))
101102
});

crates/plume_utils/src/device.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@ impl Device {
6969
Ok(get_dict_string!(values, "DeviceName"))
7070
}
7171

72-
pub async fn installed_apps(
73-
&self,
74-
supports_remote_pairing: bool,
75-
) -> Result<Vec<SignerAppReal>, Error> {
72+
pub async fn installed_apps(&self) -> Result<Vec<SignerAppReal>, Error> {
7673
let device = match &self.usbmuxd_device {
7774
Some(dev) => dev,
7875
None => return Err(Error::Other("Device is not connected via USB".to_string())),
@@ -95,13 +92,7 @@ impl Device {
9592
app_name.as_deref(),
9693
);
9794

98-
let should_include = if supports_remote_pairing {
99-
signer_app.app.supports_rsd()
100-
} else {
101-
signer_app.app.supports_pairing_file_alt()
102-
};
103-
104-
if should_include
95+
if signer_app.app.supports_pairing_file_alt()
10596
&& !found_apps
10697
.iter()
10798
.any(|a: &SignerAppReal| a.bundle_id == signer_app.bundle_id)

crates/plume_utils/src/options.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,6 @@ impl SignerApp {
274274
!matches!(self, Default | AltStore)
275275
}
276276

277-
pub fn supports_rsd(&self) -> bool {
278-
use SignerApp::*;
279-
matches!(
280-
self,
281-
StikDebug | Feather | Protokolle | Antrag | SideStore | LiveContainerAndSideStore
282-
)
283-
}
284-
285277
pub fn pairing_file_path(&self) -> Option<&'static str> {
286278
use SignerApp::*;
287279
match self {

0 commit comments

Comments
 (0)