Skip to content

Commit 8805452

Browse files
authored
[PAL-818] block mock service when simulators are not allowed (#721)
1 parent 3fe998b commit 8805452

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Loop/Managers/Service.swift

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ let staticServicesByIdentifier: [String: Service.Type] = [
1616
MockService.serviceIdentifier: MockService.self
1717
]
1818

19-
let availableStaticServices: [ServiceDescriptor] = [
20-
ServiceDescriptor(identifier: MockService.serviceIdentifier, localizedTitle: MockService.localizedTitle)
21-
]
19+
var availableStaticServices: [ServiceDescriptor] {
20+
if FeatureFlags.allowSimulators {
21+
return [
22+
ServiceDescriptor(identifier: MockService.serviceIdentifier, localizedTitle: MockService.localizedTitle)
23+
]
24+
} else {
25+
return []
26+
}
27+
}

0 commit comments

Comments
 (0)