Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,7 @@ public final class InfoPlistProcessorTaskAction: TaskAction
"processing": .supportedOnlyOn(["iOS", "tvOS", "xrOS"]),
"push-to-talk": .supportedOnlyOn(["iOS"]),
"nearby-interaction": .supportedOnlyOn(["iOS"]),
"screen-capture": .supportedOnlyOn(["iOS", "xrOS"]),
]
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,7 @@ fileprivate struct InfoPlistProcessorTaskTests: CoreBasedTests {
"nearby-interaction",
"processing",
"push-to-talk",
"screen-capture"
]
]

Expand Down Expand Up @@ -926,6 +927,7 @@ fileprivate struct InfoPlistProcessorTaskTests: CoreBasedTests {
#expect(backgroundModes.contains("nearby-interaction"))
#expect(backgroundModes.contains("processing"))
#expect(backgroundModes.contains("push-to-talk"))
#expect(backgroundModes.contains("screen-capture"))

// Check that there were no issues.
#expect(outputDelegate.errors == [])
Expand Down Expand Up @@ -980,6 +982,7 @@ fileprivate struct InfoPlistProcessorTaskTests: CoreBasedTests {
#expect(!backgroundModes.contains("nearby-interaction"))
#expect(backgroundModes.contains("processing"))
#expect(!backgroundModes.contains("push-to-talk"))
#expect(!backgroundModes.contains("screen-capture"))

// Check that there were no issues.
#expect(outputDelegate.errors == [])
Expand All @@ -997,6 +1000,7 @@ fileprivate struct InfoPlistProcessorTaskTests: CoreBasedTests {
XCTAssertMatch(output, .contains("removing value \"newsstand-content\" for \"UIBackgroundModes\" - only supported on iOS"))
XCTAssertMatch(output, .contains("removing value \"push-to-talk\" for \"UIBackgroundModes\" - only supported on iOS"))
XCTAssertMatch(output, .contains("removing value \"voip\" for \"UIBackgroundModes\" - not supported on tvOS"))
XCTAssertMatch(output, .contains("removing value \"screen-capture\" for \"UIBackgroundModes\" - not supported on tvOS"))
}
}

Expand Down Expand Up @@ -1032,6 +1036,7 @@ fileprivate struct InfoPlistProcessorTaskTests: CoreBasedTests {
#expect(!backgroundModes.contains("nearby-interaction"))
#expect(backgroundModes.contains("processing"))
#expect(!backgroundModes.contains("push-to-talk"))
#expect(backgroundModes.contains("screen-capture"))

// Check that there were no issues.
#expect(outputDelegate.errors == [])
Expand Down Expand Up @@ -1104,6 +1109,7 @@ fileprivate struct InfoPlistProcessorTaskTests: CoreBasedTests {
#expect(backgroundModes.contains("nearby-interaction"))
#expect(backgroundModes.contains("processing"))
#expect(backgroundModes.contains("push-to-talk"))
#expect(backgroundModes.contains("screen-capture"))

// Check that there were no issues.
#expect(outputDelegate.errors == [])
Expand Down Expand Up @@ -1141,6 +1147,7 @@ fileprivate struct InfoPlistProcessorTaskTests: CoreBasedTests {
#expect(!backgroundModes.contains("nearby-interaction"))
#expect(!backgroundModes.contains("processing"))
#expect(!backgroundModes.contains("push-to-talk"))
#expect(!backgroundModes.contains("screen-capture"))

// Check that there were no issues.
#expect(outputDelegate.errors == [])
Expand Down
Loading