Skip to content

Commit

Permalink
Add SAM servers in settings (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyby authored Sep 9, 2022
1 parent dec8f71 commit 957e96c
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion Application/Sources/Settings/Service.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,25 @@ struct Service: Identifiable, Equatable {
return URL(string: mmfUrlString)!
}()

static var services: [Service] = [production, stage, test, mmf]
static var samProduction = Service(
id: "sam production",
name: "SAM \(NSLocalizedString("Production", comment: "Server setting name"))",
url: SRGIntegrationLayerProductionServiceURL().appendingPathComponent("sam")
)

static var samStage = Service(
id: "sam stage",
name: "SAM \(NSLocalizedString("Stage", comment: "Server setting name"))",
url: SRGIntegrationLayerStagingServiceURL().appendingPathComponent("sam")
)

static var samTest = Service(
id: "sam test",
name: "SAM \(NSLocalizedString("Test", comment: "Server setting name"))",
url: SRGIntegrationLayerTestServiceURL().appendingPathComponent("sam")
)

static var services: [Service] = [production, stage, test, mmf, samProduction, samStage, samTest]

static func service(forId id: String?) -> Service {
#if DEBUG || NIGHTLY || BETA
Expand Down

0 comments on commit 957e96c

Please sign in to comment.