Skip to content

Commit

Permalink
Update SwiftProtobuf to 1.5.0 (#440)
Browse files Browse the repository at this point in the history
Updates SwiftProtobuf to 1.5.0, which brings full support for Swift 5.

After building/running on this branch, no warnings are emitted with Swift 5 mode.
  • Loading branch information
rebello95 authored Apr 18, 2019
1 parent 0f2af51 commit 2d822f1
Show file tree
Hide file tree
Showing 12 changed files with 2,779 additions and 2,731 deletions.
2 changes: 0 additions & 2 deletions Docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ The following commands push the image to Google Container Registry.

docker tag grpc/swift gcr.io/swift-services/grpc
gcloud docker -- push gcr.io/swift-services/grpc


2 changes: 1 addition & 1 deletion Examples/Google/Datastore/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let package = Package(
name: "Datastore",
dependencies: [
.package(url: "../../..", .branch("HEAD")),
.package(url: "https://github.com/apple/swift-protobuf.git", .upToNextMinor(from: "1.3.1")),
.package(url: "https://github.com/apple/swift-protobuf.git", .upToNextMinor(from: "1.5.0")),
.package(url: "https://github.com/kylef/Commander.git", from: "0.8.0"),
.package(url: "https://github.com/google/auth-library-swift.git", from: "0.3.6")
],
Expand Down
2 changes: 1 addition & 1 deletion Examples/Google/Spanner/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let package = Package(
name: "Spanner",
dependencies: [
.package(url: "../../..", .branch("HEAD")),
.package(url: "https://github.com/apple/swift-protobuf.git", .upToNextMinor(from: "1.3.1")),
.package(url: "https://github.com/apple/swift-protobuf.git", .upToNextMinor(from: "1.5.0")),
.package(url: "https://github.com/kylef/Commander.git", from: "0.8.0"),
.package(url: "https://github.com/google/auth-library-swift.git", from: "0.3.6")
],
Expand Down
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
"repositoryURL": "https://github.com/apple/swift-protobuf.git",
"state": {
"branch": null,
"revision": "6520fb185db88c0774a929acea1f7d5981a30d3a",
"version": "1.4.0"
"revision": "7bf52ab1f5ee87aeb89f2a6b9bfc6369408476f7",
"version": "1.5.0"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Foundation

var packageDependencies: [Package.Dependency] = [
// Official SwiftProtobuf library, for [de]serializing data to send on the wire.
.package(url: "https://github.com/apple/swift-protobuf.git", .upToNextMajor(from: "1.3.1")),
.package(url: "https://github.com/apple/swift-protobuf.git", .upToNextMajor(from: "1.5.0")),

// Command line argument parser for our auxiliary command line tools.
.package(url: "https://github.com/kylef/Commander.git", .upToNextMinor(from: "0.8.0")),
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ Original SwiftGRPC issue: https://github.com/grpc/grpc-swift/issues/337.
grpc-swift depends on Swift, Xcode, and swift-protobuf. We are currently
testing with the following versions:

- Xcode 10.0 / 10.2
- Xcode 10.2
- Swift 4.2 / 5.0
- swift-protobuf 1.3.1
- swift-protobuf 1.5.0

## `SwiftGRPCNIO` package

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module CNIONghttp2 {
umbrella "/Users/timburks/Desktop/grpc-swift/.build/checkouts/swift-nio-http2/Sources/CNIONghttp2/include"
umbrella "/Users/mrebello/Development/grpc-swift/.build/checkouts/swift-nio-http2.git-1684232237084789971/Sources/CNIONghttp2/include"
export *
}
5,394 changes: 2,702 additions & 2,692 deletions SwiftGRPC-Carthage.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BuildableName = "'$(TARGET_NAME)'"
BlueprintName = "SwiftGRPCNIOTests"
BlueprintName = "SwiftGRPCTests"
ReferencedContainer = "container:SwiftGRPC-Carthage.xcodeproj">
</BuildableReference>
</TestableReference>
Expand All @@ -33,7 +33,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BuildableName = "'$(TARGET_NAME)'"
BlueprintName = "SwiftGRPCTests"
BlueprintName = "SwiftGRPCNIOTests"
ReferencedContainer = "container:SwiftGRPC-Carthage.xcodeproj">
</BuildableReference>
</TestableReference>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "9999"
version = "1.3">
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
Expand Down Expand Up @@ -32,8 +32,9 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BuildableName = "'$(TARGET_NAME)'"
BlueprintName = "Simple"
BlueprintIdentifier = "SwiftGRPC::SwiftGRPC"
BuildableName = "SwiftGRPC.framework"
BlueprintName = "SwiftGRPC"
ReferencedContainer = "container:SwiftGRPC-Carthage.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand All @@ -45,8 +46,8 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BuildableName = "'lib$(TARGET_NAME)'"
BlueprintName = "SwiftGRPCNIO"
BuildableName = "&apos;$(TARGET_NAME)&apos;"
BlueprintName = "Echo"
ReferencedContainer = "container:SwiftGRPC-Carthage.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand All @@ -58,7 +59,8 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BuildableName = "'lib$(TARGET_NAME)'"
BlueprintIdentifier = "SwiftGRPC::CgRPC"
BuildableName = "CgRPC.framework"
BlueprintName = "CgRPC"
ReferencedContainer = "container:SwiftGRPC-Carthage.xcodeproj">
</BuildableReference>
Expand All @@ -71,8 +73,9 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BuildableName = "'$(TARGET_NAME)'"
BlueprintName = "Echo"
BlueprintIdentifier = "SwiftGRPC::BoringSSL"
BuildableName = "BoringSSL.framework"
BlueprintName = "BoringSSL"
ReferencedContainer = "container:SwiftGRPC-Carthage.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand All @@ -84,8 +87,8 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BuildableName = "'$(TARGET_NAME)'"
BlueprintName = "protoc-gen-swiftgrpc"
BuildableName = "&apos;$(TARGET_NAME)&apos;"
BlueprintName = "Simple"
ReferencedContainer = "container:SwiftGRPC-Carthage.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand All @@ -97,8 +100,8 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BuildableName = "'lib$(TARGET_NAME)'"
BlueprintName = "SwiftGRPC"
BuildableName = "&apos;$(TARGET_NAME)&apos;"
BlueprintName = "protoc-gen-swiftgrpc"
ReferencedContainer = "container:SwiftGRPC-Carthage.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand All @@ -110,7 +113,7 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BuildableName = "'$(TARGET_NAME)'"
BuildableName = "&apos;$(TARGET_NAME)&apos;"
BlueprintName = "RootsEncoder"
ReferencedContainer = "container:SwiftGRPC-Carthage.xcodeproj">
</BuildableReference>
Expand All @@ -123,8 +126,8 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BuildableName = "'lib$(TARGET_NAME)'"
BlueprintName = "BoringSSL"
BuildableName = "&apos;$(TARGET_NAME)&apos;"
BlueprintName = "EchoNIO"
ReferencedContainer = "container:SwiftGRPC-Carthage.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand All @@ -136,23 +139,23 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BuildableName = "'$(TARGET_NAME)'"
BlueprintName = "EchoNIO"
BuildableName = "&apos;lib$(TARGET_NAME)&apos;"
BlueprintName = "SwiftGRPCNIO"
ReferencedContainer = "container:SwiftGRPC-Carthage.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForAnalyzing = "YES"
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES">
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "SwiftProtobuf::SwiftProtobuf"
BuildableName = "SwiftProtobuf.framework"
BlueprintName = "SwiftProtobuf"
ReferencedContainer = "container:SwiftGRPC-Carthage.xcodeproj"
BuildableName = "SwiftProtobuf.framework">
ReferencedContainer = "container:SwiftGRPC-Carthage.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand All @@ -161,14 +164,13 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "NO">
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BuildableName = "'$(TARGET_NAME)'"
BuildableName = "&apos;$(TARGET_NAME)&apos;"
BlueprintName = "SwiftGRPCNIOTests"
ReferencedContainer = "container:SwiftGRPC-Carthage.xcodeproj">
</BuildableReference>
Expand All @@ -177,11 +179,49 @@
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BuildableName = "'$(TARGET_NAME)'"
BuildableName = "&apos;$(TARGET_NAME)&apos;"
BlueprintName = "SwiftGRPCTests"
ReferencedContainer = "container:SwiftGRPC-Carthage.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "SwiftGRPC::SwiftGRPC"
BuildableName = "SwiftGRPC.framework"
BlueprintName = "SwiftGRPC"
ReferencedContainer = "container:SwiftGRPC-Carthage.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
2 changes: 1 addition & 1 deletion SwiftGRPC.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ Pod::Spec.new do |s|

s.dependency 'gRPC-Core', '~> 1.19.0'
s.dependency 'BoringSSL', '~> 10.0'
s.dependency 'SwiftProtobuf', '~> 1.3.1'
s.dependency 'SwiftProtobuf', '~> 1.5.0'
end
2 changes: 1 addition & 1 deletion Tests/SwiftGRPCTests/ChannelConnectivityTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ extension ChannelConnectivityTests {
completionHandlerExpectation.fulfill()
}

waitForExpectations(timeout: 0.5)
waitForExpectations(timeout: 1.0)
XCTAssertTrue(firstObserverCalled)
XCTAssertTrue(secondObserverCalled)
}
Expand Down

0 comments on commit 2d822f1

Please sign in to comment.