summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2025-03-24 17:07:09 +0100
committerDavid Lönnhager <david.l@mullvad.net>2025-03-25 10:37:10 +0100
commit17318aca56f1bb9e409b5c9d8ba68e40f5a289b7 (patch)
tree1ad113b39b9d58c2ada904ae39a75f5596d40cd7
parent5b1f6858aceef7f80c12e620a586b0e6298c8bed (diff)
downloadmullvadvpn-17318aca56f1bb9e409b5c9d8ba68e40f5a289b7.tar.xz
mullvadvpn-17318aca56f1bb9e409b5c9d8ba68e40f5a289b7.zip
Add feature gate for app version client in mullvad-api
-rw-r--r--mullvad-api/Cargo.toml4
-rw-r--r--mullvad-api/src/lib.rs3
-rw-r--r--mullvad-ios/Cargo.toml2
3 files changed, 7 insertions, 2 deletions
diff --git a/mullvad-api/Cargo.toml b/mullvad-api/Cargo.toml
index 72c8370e65..f55ab02f9a 100644
--- a/mullvad-api/Cargo.toml
+++ b/mullvad-api/Cargo.toml
@@ -52,12 +52,14 @@ vec1 = { workspace = true }
mullvad-encrypted-dns-proxy = { path = "../mullvad-encrypted-dns-proxy" }
mullvad-fs = { path = "../mullvad-fs" }
mullvad-types = { path = "../mullvad-types" }
-mullvad-update = { path = "../mullvad-update", features = ["client"] }
talpid-types = { path = "../talpid-types" }
talpid-time = { path = "../talpid-time" }
shadowsocks = { workspace = true, features = ["stream-cipher"] }
+[target.'cfg(not(target_os = "ios"))'.dependencies]
+mullvad-update = { path = "../mullvad-update", features = ["client"] }
+
[dev-dependencies]
talpid-time = { path = "../talpid-time", features = ["test"] }
tokio = { workspace = true, features = ["test-util", "time"] }
diff --git a/mullvad-api/src/lib.rs b/mullvad-api/src/lib.rs
index 86f83aa842..d7f4585e79 100644
--- a/mullvad-api/src/lib.rs
+++ b/mullvad-api/src/lib.rs
@@ -700,11 +700,13 @@ impl ProblemReportProxy {
}
}
+#[cfg(not(target_os = "ios"))]
#[derive(Clone)]
pub struct AppVersionProxy {
handle: rest::MullvadRestHandle,
}
+#[cfg(not(target_os = "ios"))]
#[derive(serde::Deserialize, Debug)]
pub struct AppVersionResponse {
pub supported: bool,
@@ -713,6 +715,7 @@ pub struct AppVersionResponse {
pub latest_beta: AppVersion,
}
+#[cfg(not(target_os = "ios"))]
impl AppVersionProxy {
const VERSION_PROVIDER_PUBKEY: &str = include_str!("../../mullvad-update/stagemole-pubkey");
diff --git a/mullvad-ios/Cargo.toml b/mullvad-ios/Cargo.toml
index 8f95f148d9..aa7ee661f8 100644
--- a/mullvad-ios/Cargo.toml
+++ b/mullvad-ios/Cargo.toml
@@ -28,7 +28,7 @@ talpid-future = { path = "../talpid-future" }
talpid-types = { path = "../talpid-types" }
talpid-tunnel-config-client = { path = "../talpid-tunnel-config-client" }
mullvad-encrypted-dns-proxy = { path = "../mullvad-encrypted-dns-proxy" }
-mullvad-api = { path = "../mullvad-api" }
+mullvad-api = { path = "../mullvad-api", default-features = false }
serde_json = { workspace = true }
shadowsocks-service = { workspace = true, features = [