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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

### Remote Settings
* Add uptake telemetry support ([#7288](https://github.com/mozilla/application-services/pull/7288))
* Add v2 routes ([#7339](https://github.com/mozilla/application-services/pull/7339))

# v151.0 (_2026-04-20_)

Expand Down
14 changes: 14 additions & 0 deletions components/remote_settings/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ pub struct RemoteSettingsConfig {
#[derive(Debug, Clone, uniffi::Enum)]
pub enum RemoteSettingsServer {
Prod,
ProdV2,
Stage,
StageV2,
Dev,
DevV2,
Custom { url: String },
}

Expand Down Expand Up @@ -74,9 +77,17 @@ impl RemoteSettingsServer {

fn raw_url(&self) -> &str {
match self {
// v1 routes, current default
Self::Prod => "https://firefox.settings.services.mozilla.com/v1",
Self::Stage => "https://firefox.settings.services.allizom.org/v1",
Self::Dev => "https://remote-settings-dev.allizom.org/v1",

// v2 routes, optional for now but will be default later
Self::ProdV2 => "https://firefox.settings.services.mozilla.com/v2",
Self::StageV2 => "https://firefox.settings.services.allizom.org/v2",
Self::DevV2 => "https://remote-settings-dev.allizom.org/v2",

// custom, not currently implemented in android or iOS
Self::Custom { url } => url,
}
}
Expand All @@ -90,6 +101,9 @@ impl RemoteSettingsServer {
Self::Prod => Url::parse("https://firefox.settings.services.mozilla.com/v1")?,
Self::Stage => Url::parse("https://firefox.settings.services.allizom.org/v1")?,
Self::Dev => Url::parse("https://remote-settings-dev.allizom.org/v1")?,
Self::ProdV2 => Url::parse("https://firefox.settings.services.mozilla.com/v2")?,
Self::StageV2 => Url::parse("https://firefox.settings.services.allizom.org/v2")?,
Self::DevV2 => Url::parse("https://remote-settings-dev.allizom.org/v2")?,
Self::Custom { url } => {
let mut url = Url::parse(url)?;
// Custom URLs are weird and require a couple tricks for backwards compatibility.
Expand Down