瀏覽代碼

Update swift-proto dependency version to 0.9.903.

Tim Burks 8 年之前
父節點
當前提交
fb0053af64

+ 26 - 9
Examples/Echo/Generated/echo.pb.swift

@@ -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.
 // Copyright (c) 2015, Google Inc.
 //
 //
@@ -19,6 +19,7 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // See the License for the specific language governing permissions and
 // limitations under the License.
 // limitations under the License.
+
 import Foundation
 import Foundation
 import SwiftProtobuf
 import SwiftProtobuf
 
 
@@ -28,8 +29,8 @@ import SwiftProtobuf
 // Please ensure that your are building against the same version of the API
 // Please ensure that your are building against the same version of the API
 // that was used to generate this file.
 // that was used to generate this file.
 fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
 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 {
 struct Echo_EchoRequest: SwiftProtobuf.Message {
@@ -42,6 +43,10 @@ struct Echo_EchoRequest: SwiftProtobuf.Message {
 
 
   init() {}
   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 {
   mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
     while let fieldNumber = try decoder.nextFieldNumber() {
     while let fieldNumber = try decoder.nextFieldNumber() {
       switch fieldNumber {
       switch fieldNumber {
@@ -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 {
   func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
     if !self.text.isEmpty {
     if !self.text.isEmpty {
       try visitor.visitSingularStringField(value: self.text, fieldNumber: 1)
       try visitor.visitSingularStringField(value: self.text, fieldNumber: 1)
@@ -69,6 +78,10 @@ struct Echo_EchoResponse: SwiftProtobuf.Message {
 
 
   init() {}
   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 {
   mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
     while let fieldNumber = try decoder.nextFieldNumber() {
     while let fieldNumber = try decoder.nextFieldNumber() {
       switch fieldNumber {
       switch fieldNumber {
@@ -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 {
   func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
     if !self.text.isEmpty {
     if !self.text.isEmpty {
       try visitor.visitSingularStringField(value: self.text, fieldNumber: 1)
       try visitor.visitSingularStringField(value: self.text, fieldNumber: 1)

+ 1 - 1
Examples/Echo/PackageManager/Makefile

@@ -7,4 +7,4 @@ all:
 clean :
 clean :
 	rm -rf Packages
 	rm -rf Packages
 	rm -rf .build
 	rm -rf .build
-	rm Package.pins
+	rm -f Package.pins

+ 1 - 1
Examples/Echo/PackageManager/Package.swift

@@ -18,6 +18,6 @@ let package = Package (
     name: "Echo",
     name: "Echo",
     dependencies: [
     dependencies: [
         .Package(url: "https://github.com/grpc/grpc-swift.git", Version(0,1,10)),
         .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)),
     ]
     ]
 )
 )

+ 1 - 1
Plugin/Package.swift

@@ -25,7 +25,7 @@ let package = Package(
     Target(name: "TemplateEncoder")
     Target(name: "TemplateEncoder")
   ],
   ],
   dependencies: [
   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))
     .Package(url: "https://github.com/kylef/Stencil.git", Version(0,9,0))
   ]
   ]
 )
 )

+ 1 - 1
README.md

@@ -112,7 +112,7 @@ testing with the following versions:
 
 
 - Xcode 8.3.2 (8E2002) 
 - Xcode 8.3.2 (8E2002) 
 - Swift 3.1 (swiftlang-802.0.53 clang-802.0.42)
 - Swift 3.1 (swiftlang-802.0.53 clang-802.0.42)
-- swift-protobuf 0.9.901 
+- swift-protobuf 0.9.903 
 
 
 ## License
 ## License