Skip to content

Commit 7ed6f7d

Browse files
rnroglbrntt
andauthored
Enable MemberImportVisibility check on all targets (#2142)
Enable MemberImportVisibility check on all targets. Use a standard string header and footer to bracket the new block for ease of updating in the future with scripts. --------- Co-authored-by: George Barnett <[email protected]>
1 parent e390c85 commit 7ed6f7d

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ let defaultSwiftSettings: [SwiftSetting] = [
4949
.swiftLanguageMode(.v6),
5050
.enableUpcomingFeature("ExistentialAny"),
5151
.enableUpcomingFeature("InternalImportsByDefault"),
52+
.enableUpcomingFeature("MemberImportVisibility"),
5253
]
5354

5455
let targets: [Target] = [

Sources/GRPCCodeGen/CodeGenerationRequest.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
import Foundation
18+
1719
/// Describes the services, dependencies and trivia from an IDL file,
1820
/// and the IDL itself through its specific serializer and deserializer.
1921
public struct CodeGenerationRequest {

Sources/GRPCCodeGen/Internal/Translator/Docs.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
import Foundation
18+
1719
package enum Docs {
1820
package static func suffix(_ header: String, withDocs footer: String) -> String {
1921
if footer.isEmpty {

Tests/GRPCCoreTests/Configuration/ServiceConfigCodingTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import Foundation
1818
import GRPCCore
19+
import SwiftProtobuf
1920
import XCTest
2021

2122
final class ServiceConfigCodingTests: XCTestCase {

Tests/GRPCCoreTests/Test Utilities/Services/HelloWorld.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
import Foundation
1617
import GRPCCore
1718

1819
struct HelloWorld: RegistrableRPCService {

0 commit comments

Comments
 (0)