Skip to content

Commit

Permalink
[PAL-818] block mock service when simulators are not allowed (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhamming authored Oct 29, 2024
1 parent 3fe998b commit 8805452
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Loop/Managers/Service.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ let staticServicesByIdentifier: [String: Service.Type] = [
MockService.serviceIdentifier: MockService.self
]

let availableStaticServices: [ServiceDescriptor] = [
ServiceDescriptor(identifier: MockService.serviceIdentifier, localizedTitle: MockService.localizedTitle)
]
var availableStaticServices: [ServiceDescriptor] {
if FeatureFlags.allowSimulators {
return [
ServiceDescriptor(identifier: MockService.serviceIdentifier, localizedTitle: MockService.localizedTitle)
]
} else {
return []
}
}

0 comments on commit 8805452

Please sign in to comment.