Browse Source

Also rename the "gRPC" target to "SwiftGRPC".

Daniel Alm 7 years ago
parent
commit
285d9bfed6
50 changed files with 22 additions and 22 deletions
  1. 1 1
      Examples/Echo/EchoProvider.swift
  2. 1 1
      Examples/Echo/Generated/echo.grpc.swift
  3. 1 1
      Examples/Echo/PackageManager/Package.swift
  4. 1 1
      Examples/Echo/PackageManager/Sources/main.swift
  5. 1 1
      Examples/Echo/Xcode/Echo/EchoViewController.swift
  6. 1 1
      Examples/Google/Datastore/Package.swift
  7. 1 1
      Examples/Google/Datastore/Sources/main.swift
  8. 1 1
      Examples/Google/NaturalLanguage/Package.swift
  9. 1 1
      Examples/Google/NaturalLanguage/Sources/main.swift
  10. 1 1
      Examples/Google/Spanner/Package.swift
  11. 1 1
      Examples/Google/Spanner/Sources/main.swift
  12. 1 1
      Examples/Simple/PackageManager/Package.swift
  13. 1 1
      Examples/Simple/PackageManager/main.swift
  14. 1 1
      Examples/Simple/Xcode/Simple/AppDelegate.swift
  15. 1 1
      Examples/Simple/Xcode/Simple/Document.swift
  16. 3 3
      Package.swift
  17. 0 0
      Sources/SwiftGRPC/ByteBuffer.swift
  18. 0 0
      Sources/SwiftGRPC/Call.swift
  19. 0 0
      Sources/SwiftGRPC/Channel.swift
  20. 0 0
      Sources/SwiftGRPC/CompletionQueue.swift
  21. 0 0
      Sources/SwiftGRPC/GenCodeSupport/ClientCall.swift
  22. 0 0
      Sources/SwiftGRPC/GenCodeSupport/ClientCallBidirectionalStreaming.swift
  23. 0 0
      Sources/SwiftGRPC/GenCodeSupport/ClientCallClientStreaming.swift
  24. 0 0
      Sources/SwiftGRPC/GenCodeSupport/ClientCallServerStreaming.swift
  25. 0 0
      Sources/SwiftGRPC/GenCodeSupport/ClientCallUnary.swift
  26. 0 0
      Sources/SwiftGRPC/GenCodeSupport/ClientError.swift
  27. 0 0
      Sources/SwiftGRPC/GenCodeSupport/ServerError.swift
  28. 0 0
      Sources/SwiftGRPC/GenCodeSupport/ServerSession.swift
  29. 0 0
      Sources/SwiftGRPC/GenCodeSupport/ServerSessionBidirectionalStreaming.swift
  30. 0 0
      Sources/SwiftGRPC/GenCodeSupport/ServerSessionClientStreaming.swift
  31. 0 0
      Sources/SwiftGRPC/GenCodeSupport/ServerSessionServerStreaming.swift
  32. 0 0
      Sources/SwiftGRPC/GenCodeSupport/ServerSessionUnary.swift
  33. 0 0
      Sources/SwiftGRPC/GenCodeSupport/ServiceClient.swift
  34. 0 0
      Sources/SwiftGRPC/GenCodeSupport/ServiceServer.swift
  35. 0 0
      Sources/SwiftGRPC/Handler.swift
  36. 0 0
      Sources/SwiftGRPC/Metadata.swift
  37. 0 0
      Sources/SwiftGRPC/Mutex.swift
  38. 0 0
      Sources/SwiftGRPC/Operation.swift
  39. 0 0
      Sources/SwiftGRPC/OperationGroup.swift
  40. 0 0
      Sources/SwiftGRPC/Roots.swift
  41. 0 0
      Sources/SwiftGRPC/Server.swift
  42. 0 0
      Sources/SwiftGRPC/gRPC.swift
  43. 1 1
      Sources/protoc-gen-swiftgrpc/Generator.swift
  44. 1 1
      Tests/LinuxMain.swift
  45. 0 0
      Tests/SwiftGRPCTests/EchoProvider.swift
  46. 1 1
      Tests/SwiftGRPCTests/EchoTests.swift
  47. 1 1
      Tests/SwiftGRPCTests/GRPCTests.swift
  48. 0 0
      Tests/SwiftGRPCTests/TestKeys.swift
  49. 0 0
      Tests/SwiftGRPCTests/echo.grpc.swift
  50. 0 0
      Tests/SwiftGRPCTests/echo.pb.swift

+ 1 - 1
Examples/Echo/EchoProvider.swift

@@ -15,7 +15,7 @@
  */
 import Dispatch
 import Foundation
-import gRPC
+import SwiftGRPC
 
 class EchoProvider: Echo_EchoProvider {
   // get returns requests as they were received.

+ 1 - 1
Examples/Echo/Generated/echo.grpc.swift

@@ -22,7 +22,7 @@
 //
 import Foundation
 import Dispatch
-import gRPC
+import SwiftGRPC
 import SwiftProtobuf
 
 internal protocol Echo_EchoGetCall: ClientCallUnary {}

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

@@ -27,7 +27,7 @@ let package = Package(
   targets: [
     .target(name: "Echo",
             dependencies: [
-              "gRPC",
+              "SwiftGRPC",
               "SwiftProtobuf",
               "Commander"
             ],

+ 1 - 1
Examples/Echo/PackageManager/Sources/main.swift

@@ -16,7 +16,7 @@
 import Commander
 import Dispatch
 import Foundation
-import gRPC
+import SwiftGRPC
 
 // Common flags and options
 let sslFlag = Flag("ssl", description: "if true, use SSL for connections")

+ 1 - 1
Examples/Echo/Xcode/Echo/EchoViewController.swift

@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 import AppKit
-import gRPC
+import SwiftGRPC
 
 class EchoViewController: NSViewController, NSTextFieldDelegate {
   @IBOutlet var messageField: NSTextField!

+ 1 - 1
Examples/Google/Datastore/Package.swift

@@ -28,7 +28,7 @@ let package = Package(
   targets: [
     .target(name: "Datastore",
             dependencies: [
-              "gRPC",
+              "SwiftGRPC",
               "SwiftProtobuf",
               "Commander",
 	            "OAuth2"

+ 1 - 1
Examples/Google/Datastore/Sources/main.swift

@@ -16,7 +16,7 @@
 import Commander
 import Dispatch
 import Foundation
-import gRPC
+import SwiftGRPC
 import OAuth2
 
 // Convert Encodable objects to dictionaries of property-value pairs.

+ 1 - 1
Examples/Google/NaturalLanguage/Package.swift

@@ -28,7 +28,7 @@ let package = Package(
   targets: [
     .target(name: "NaturalLanguage",
             dependencies: [
-              "gRPC",
+              "SwiftGRPC",
               "SwiftProtobuf",
               "Commander",
 	            "OAuth2"

+ 1 - 1
Examples/Google/NaturalLanguage/Sources/main.swift

@@ -15,7 +15,7 @@
  */
 import Dispatch
 import Foundation
-import gRPC
+import SwiftGRPC
 import OAuth2
 
 let scopes = ["https://www.googleapis.com/auth/cloud-language"]

+ 1 - 1
Examples/Google/Spanner/Package.swift

@@ -28,7 +28,7 @@ let package = Package(
   targets: [
     .target(name: "Spanner",
             dependencies: [
-              "gRPC",
+              "SwiftGRPC",
               "SwiftProtobuf",
               "Commander",
 	            "OAuth2"

+ 1 - 1
Examples/Google/Spanner/Sources/main.swift

@@ -15,7 +15,7 @@
  */
 import Commander
 import Foundation
-import gRPC
+import SwiftGRPC
 import OAuth2
 
 Group {

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

@@ -26,7 +26,7 @@ let package = Package(
   targets: [
     .target(name: "Simple",
             dependencies: [
-              "gRPC",
+              "SwiftGRPC",
               "Commander"
             ],
 	    path: ".")

+ 1 - 1
Examples/Simple/PackageManager/main.swift

@@ -16,7 +16,7 @@
 import Commander
 import Dispatch
 import Foundation
-import gRPC
+import SwiftGRPC
 
 let address = "localhost:8001"
 let host = "foo.test.google.fr"

+ 1 - 1
Examples/Simple/Xcode/Simple/AppDelegate.swift

@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 import Cocoa
-import gRPC
+import SwiftGRPC
 
 @NSApplicationMain
 class AppDelegate: NSObject, NSApplicationDelegate {

+ 1 - 1
Examples/Simple/Xcode/Simple/Document.swift

@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 import Cocoa
-import gRPC
+import SwiftGRPC
 
 // https://gist.github.com/rickw/cc198001f5f3aa59ae9f
 extension NSTextView {

+ 3 - 3
Package.swift

@@ -20,14 +20,14 @@ import PackageDescription
 let package = Package(
   name: "SwiftGRPC",
   products: [
-    .library(name: "gRPC", targets: ["gRPC"]),
+    .library(name: "SwiftGRPC", targets: ["SwiftGRPC"]),
   ],
   dependencies: [
     .package(url: "https://github.com/Zewo/zlib.git", from: "0.4.0"),
     .package(url: "https://github.com/apple/swift-protobuf.git", from: "1.0.2")
   ],
   targets: [
-    .target(name: "gRPC",
+    .target(name: "SwiftGRPC",
             dependencies: ["CgRPC", "SwiftProtobuf"]),
     .target(name: "CgRPC",
             dependencies: ["BoringSSL", "zlib"]),
@@ -38,5 +38,5 @@ let package = Package(
               "SwiftProtobufPluginLibrary",
               "protoc-gen-swift"]),
     .target(name: "BoringSSL"),
-    .testTarget(name: "gRPCTests", dependencies: ["gRPC"])
+    .testTarget(name: "SwiftGRPCTests", dependencies: ["SwiftGRPC"])
   ])

+ 0 - 0
Sources/gRPC/ByteBuffer.swift → Sources/SwiftGRPC/ByteBuffer.swift


+ 0 - 0
Sources/gRPC/Call.swift → Sources/SwiftGRPC/Call.swift


+ 0 - 0
Sources/gRPC/Channel.swift → Sources/SwiftGRPC/Channel.swift


+ 0 - 0
Sources/gRPC/CompletionQueue.swift → Sources/SwiftGRPC/CompletionQueue.swift


+ 0 - 0
Sources/gRPC/GenCodeSupport/ClientCall.swift → Sources/SwiftGRPC/GenCodeSupport/ClientCall.swift


+ 0 - 0
Sources/gRPC/GenCodeSupport/ClientCallBidirectionalStreaming.swift → Sources/SwiftGRPC/GenCodeSupport/ClientCallBidirectionalStreaming.swift


+ 0 - 0
Sources/gRPC/GenCodeSupport/ClientCallClientStreaming.swift → Sources/SwiftGRPC/GenCodeSupport/ClientCallClientStreaming.swift


+ 0 - 0
Sources/gRPC/GenCodeSupport/ClientCallServerStreaming.swift → Sources/SwiftGRPC/GenCodeSupport/ClientCallServerStreaming.swift


+ 0 - 0
Sources/gRPC/GenCodeSupport/ClientCallUnary.swift → Sources/SwiftGRPC/GenCodeSupport/ClientCallUnary.swift


+ 0 - 0
Sources/gRPC/GenCodeSupport/ClientError.swift → Sources/SwiftGRPC/GenCodeSupport/ClientError.swift


+ 0 - 0
Sources/gRPC/GenCodeSupport/ServerError.swift → Sources/SwiftGRPC/GenCodeSupport/ServerError.swift


+ 0 - 0
Sources/gRPC/GenCodeSupport/ServerSession.swift → Sources/SwiftGRPC/GenCodeSupport/ServerSession.swift


+ 0 - 0
Sources/gRPC/GenCodeSupport/ServerSessionBidirectionalStreaming.swift → Sources/SwiftGRPC/GenCodeSupport/ServerSessionBidirectionalStreaming.swift


+ 0 - 0
Sources/gRPC/GenCodeSupport/ServerSessionClientStreaming.swift → Sources/SwiftGRPC/GenCodeSupport/ServerSessionClientStreaming.swift


+ 0 - 0
Sources/gRPC/GenCodeSupport/ServerSessionServerStreaming.swift → Sources/SwiftGRPC/GenCodeSupport/ServerSessionServerStreaming.swift


+ 0 - 0
Sources/gRPC/GenCodeSupport/ServerSessionUnary.swift → Sources/SwiftGRPC/GenCodeSupport/ServerSessionUnary.swift


+ 0 - 0
Sources/gRPC/GenCodeSupport/ServiceClient.swift → Sources/SwiftGRPC/GenCodeSupport/ServiceClient.swift


+ 0 - 0
Sources/gRPC/GenCodeSupport/ServiceServer.swift → Sources/SwiftGRPC/GenCodeSupport/ServiceServer.swift


+ 0 - 0
Sources/gRPC/Handler.swift → Sources/SwiftGRPC/Handler.swift


+ 0 - 0
Sources/gRPC/Metadata.swift → Sources/SwiftGRPC/Metadata.swift


+ 0 - 0
Sources/gRPC/Mutex.swift → Sources/SwiftGRPC/Mutex.swift


+ 0 - 0
Sources/gRPC/Operation.swift → Sources/SwiftGRPC/Operation.swift


+ 0 - 0
Sources/gRPC/OperationGroup.swift → Sources/SwiftGRPC/OperationGroup.swift


+ 0 - 0
Sources/gRPC/Roots.swift → Sources/SwiftGRPC/Roots.swift


+ 0 - 0
Sources/gRPC/Server.swift → Sources/SwiftGRPC/Server.swift


+ 0 - 0
Sources/gRPC/gRPC.swift → Sources/SwiftGRPC/gRPC.swift


+ 1 - 1
Sources/protoc-gen-swiftgrpc/Generator.swift

@@ -73,7 +73,7 @@ class Generator {
       //\n
       """)
     
-    for moduleName in ["Foundation", "Dispatch", "gRPC", "SwiftProtobuf"] {
+    for moduleName in ["Foundation", "Dispatch", "SwiftGRPC", "SwiftProtobuf"] {
       println("import \(moduleName)")
     }
     println()

+ 1 - 1
Tests/LinuxMain.swift

@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 import XCTest
-@testable import gRPCTests
+@testable import SwiftGRPCTests
 
 XCTMain([
   testCase(gRPCTests.allTests),

+ 0 - 0
Tests/gRPCTests/EchoProvider.swift → Tests/SwiftGRPCTests/EchoProvider.swift


+ 1 - 1
Tests/gRPCTests/EchoTests.swift → Tests/SwiftGRPCTests/EchoTests.swift

@@ -15,7 +15,7 @@
  */
 import Dispatch
 import Foundation
-@testable import gRPC
+@testable import SwiftGRPC
 import XCTest
 
 extension Echo_EchoRequest {

+ 1 - 1
Tests/gRPCTests/GRPCTests.swift → Tests/SwiftGRPCTests/GRPCTests.swift

@@ -15,7 +15,7 @@
  */
 import Dispatch
 import Foundation
-@testable import gRPC
+@testable import SwiftGRPC
 import XCTest
 
 class gRPCTests: XCTestCase {

+ 0 - 0
Tests/gRPCTests/TestKeys.swift → Tests/SwiftGRPCTests/TestKeys.swift


+ 0 - 0
Tests/gRPCTests/echo.grpc.swift → Tests/SwiftGRPCTests/echo.grpc.swift


+ 0 - 0
Tests/gRPCTests/echo.pb.swift → Tests/SwiftGRPCTests/echo.pb.swift