Skip to content

Commit

Permalink
Update swift-proto dependency version to 0.9.903.
Browse files Browse the repository at this point in the history
  • Loading branch information
timburks committed Jun 5, 2017
1 parent b4dc0a0 commit fb0053a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 13 deletions.
35 changes: 26 additions & 9 deletions Examples/Echo/Generated/echo.pb.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
* DO NOT EDIT.
*
* Generated by the protocol buffer compiler.
* Source: echo.proto
*
*/
// DO NOT EDIT.
//
// Generated by the Swift generator plugin for the protocol buffer compiler.
// Source: echo.proto
//
// For information on using the generated types, please see the documenation:
// https://github.com/apple/swift-protobuf/

// Copyright (c) 2015, Google Inc.
//
Expand All @@ -19,6 +19,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import Foundation
import SwiftProtobuf

Expand All @@ -28,8 +29,8 @@ import SwiftProtobuf
// Please ensure that your are building against the same version of the API
// that was used to generate this file.
fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
struct _1: SwiftProtobuf.ProtobufAPIVersion_1 {}
typealias Version = _1
struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
typealias Version = _2
}

struct Echo_EchoRequest: SwiftProtobuf.Message {
Expand All @@ -42,6 +43,10 @@ struct Echo_EchoRequest: SwiftProtobuf.Message {

init() {}

/// Used by the decoding initializers in the SwiftProtobuf library, not generally
/// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
/// initializers are defined in the SwiftProtobuf library. See the Message and
/// Message+*Additions` files.
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
Expand All @@ -51,6 +56,10 @@ struct Echo_EchoRequest: SwiftProtobuf.Message {
}
}

/// Used by the encoding methods of the SwiftProtobuf library, not generally
/// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
/// other serializer methods are defined in the SwiftProtobuf library. See the
/// `Message` and `Message+*Additions` files.
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.text.isEmpty {
try visitor.visitSingularStringField(value: self.text, fieldNumber: 1)
Expand All @@ -69,6 +78,10 @@ struct Echo_EchoResponse: SwiftProtobuf.Message {

init() {}

/// Used by the decoding initializers in the SwiftProtobuf library, not generally
/// used directly. `init(serializedData:)`, `init(jsonUTF8Data:)`, and other decoding
/// initializers are defined in the SwiftProtobuf library. See the Message and
/// Message+*Additions` files.
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
Expand All @@ -78,6 +91,10 @@ struct Echo_EchoResponse: SwiftProtobuf.Message {
}
}

/// Used by the encoding methods of the SwiftProtobuf library, not generally
/// used directly. `Message.serializedData()`, `Message.jsonUTF8Data()`, and
/// other serializer methods are defined in the SwiftProtobuf library. See the
/// `Message` and `Message+*Additions` files.
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.text.isEmpty {
try visitor.visitSingularStringField(value: self.text, fieldNumber: 1)
Expand Down
2 changes: 1 addition & 1 deletion Examples/Echo/PackageManager/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ all:
clean :
rm -rf Packages
rm -rf .build
rm Package.pins
rm -f Package.pins
2 changes: 1 addition & 1 deletion Examples/Echo/PackageManager/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ let package = Package (
name: "Echo",
dependencies: [
.Package(url: "https://github.com/grpc/grpc-swift.git", Version(0,1,10)),
.Package(url: "https://github.com/apple/swift-protobuf.git", Version(0,9,901)),
.Package(url: "https://github.com/apple/swift-protobuf.git", Version(0,9,903)),
]
)
2 changes: 1 addition & 1 deletion Plugin/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ let package = Package(
Target(name: "TemplateEncoder")
],
dependencies: [
.Package(url: "https://github.com/apple/swift-protobuf.git", Version(0,9,901)),
.Package(url: "https://github.com/apple/swift-protobuf.git", Version(0,9,903)),
.Package(url: "https://github.com/kylef/Stencil.git", Version(0,9,0))
]
)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ testing with the following versions:

- Xcode 8.3.2 (8E2002)
- Swift 3.1 (swiftlang-802.0.53 clang-802.0.42)
- swift-protobuf 0.9.901
- swift-protobuf 0.9.903

## License

Expand Down

0 comments on commit fb0053a

Please sign in to comment.