Skip to content

Commit 57f5771

Browse files
authored
Enable InternalImportsByDefault in remaining modules (#2042)
This PR enables `InternalImportsByDefault` on `GRPCHealth` and `InteroperabilityTests`. It also regenerates the protos with the latest version of swift-protobuf (v1.28.1), and increases its min version to 1.28.1 to make sure that we don't get build failures when using earlier generators.
1 parent c0e0eb1 commit 57f5771

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Sources/InteroperabilityTests/Generated/empty.pb.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// See the License for the specific language governing permissions and
2323
// limitations under the License.
2424

25-
import SwiftProtobuf
25+
public import SwiftProtobuf
2626

2727
// If the compiler emits an error on this type, it is because this file
2828
// was generated by a version of the `protoc` Swift plug-in that is

Sources/InteroperabilityTests/Generated/messages.pb.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
// Message definitions to be used by integration test service definitions.
2626

27-
import Foundation
28-
import SwiftProtobuf
27+
public import Foundation
28+
public import SwiftProtobuf
2929

3030
// If the compiler emits an error on this type, it is because this file
3131
// was generated by a version of the `protoc` Swift plug-in that is

Sources/InteroperabilityTests/InteroperabilityTestCase.swift

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

1818
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
1919
public protocol InteroperabilityTest {

Sources/InteroperabilityTests/InteroperabilityTestCases.swift

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

17-
import GRPCCore
17+
internal import GRPCCore
1818

19-
import struct Foundation.Data
19+
private import struct Foundation.Data
2020

2121
/// This test verifies that implementations support zero-size messages. Ideally, client
2222
/// implementations would verify that the request and response were zero bytes serialized, but

Sources/InteroperabilityTests/TestService.swift

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

17-
import Foundation
18-
import GRPCCore
17+
private import Foundation
18+
public import GRPCCore
1919

2020
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
2121
public struct TestService: Grpc_Testing_TestService.ServiceProtocol {

Sources/Services/Health/Generated/health.pb.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
// The canonical version of this proto can be found at
2626
// https://github.com/grpc/grpc-proto/blob/master/grpc/health/v1/health.proto
2727

28-
import SwiftProtobuf
28+
package import SwiftProtobuf
2929

3030
// If the compiler emits an error on this type, it is because this file
3131
// was generated by a version of the `protoc` Swift plug-in that is

0 commit comments

Comments
 (0)