Skip to content

Commit 975822c

Browse files
authored
Merge pull request #182 from grpc/move-examples
move examples under Sources/Examples
2 parents c89e9ab + 12df04f commit 975822c

File tree

19 files changed

+12
-13
lines changed

19 files changed

+12
-13
lines changed

Examples/EchoXcode/Echo.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@
8484

8585
/* Begin PBXFileReference section */
8686
D315DEDF1EE8B29A007670CE /* SwiftProtobuf.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = SwiftProtobuf.xcodeproj; path = "../../third_party/swift-protobuf/SwiftProtobuf.xcodeproj"; sourceTree = "<group>"; };
87-
D353581D1E219963007FA223 /* echo.grpc.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = echo.grpc.swift; path = ../../Sources/EchoExample/Generated/echo.grpc.swift; sourceTree = "<group>"; };
88-
D353581E1E219963007FA223 /* echo.pb.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = echo.pb.swift; path = ../../Sources/EchoExample/Generated/echo.pb.swift; sourceTree = "<group>"; };
89-
D35358241E219980007FA223 /* EchoProvider.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = EchoProvider.swift; path = ../../Sources/EchoExample/EchoProvider.swift; sourceTree = "<group>"; };
87+
D353581D1E219963007FA223 /* echo.grpc.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = echo.grpc.swift; path = ../../Sources/Examples/Echo/Generated/echo.grpc.swift; sourceTree = "<group>"; };
88+
D353581E1E219963007FA223 /* echo.pb.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = echo.pb.swift; path = ../../Sources/Examples/Echo/Generated/echo.pb.swift; sourceTree = "<group>"; };
89+
D35358241E219980007FA223 /* EchoProvider.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = EchoProvider.swift; path = ../../Sources/Examples/Echo/EchoProvider.swift; sourceTree = "<group>"; };
9090
D35C9FA81D74B079000443CD /* Echo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Echo.app; sourceTree = BUILT_PRODUCTS_DIR; };
9191
D35C9FAB1D74B079000443CD /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
9292
D35C9FAD1D74B079000443CD /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ test-echo: all
2020
./Echo collect | tee -a test.out
2121
./Echo update | tee -a test.out
2222
kill -9 `cat echo.pid`
23-
diff -u test.out Sources/EchoExample/test.gold
23+
diff -u test.out Sources/Examples/Echo/test.gold
2424

2525
test-plugin: all
26-
protoc Sources/EchoExample/echo.proto --proto_path=Sources/EchoExample --plugin=.build/debug/protoc-gen-swift --plugin=.build/debug/protoc-gen-swiftgrpc --swiftgrpc_out=/tmp --swiftgrpc_opt=TestStubs=true
27-
diff -u /tmp/echo.grpc.swift Sources/EchoExample/Generated/echo.grpc.swift
26+
protoc Sources/Examples/Echo/echo.proto --proto_path=Sources/Examples/Echo --plugin=.build/debug/protoc-gen-swift --plugin=.build/debug/protoc-gen-swiftgrpc --swiftgrpc_out=/tmp --swiftgrpc_opt=TestStubs=true
27+
diff -u /tmp/echo.grpc.swift Sources/Examples/Echo/Generated/echo.grpc.swift
2828

2929
clean:
3030
rm -rf Packages

Package.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ let package = Package(
4343
dependencies: [
4444
"SwiftGRPC",
4545
"SwiftProtobuf",
46-
"Commander"
47-
],
48-
path: "Sources/EchoExample"),
46+
"Commander"],
47+
path: "Sources/Examples/Echo"),
4948
.target(name: "Simple",
5049
dependencies: ["SwiftGRPC", "Commander"],
51-
path: "Sources/SimpleExample"),
50+
path: "Sources/Examples/Simple"),
5251
.testTarget(name: "SwiftGRPCTests", dependencies: ["SwiftGRPC"])
5352
])
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../Sources/EchoExample/EchoProvider.swift
1+
../../Sources/Examples/Echo/EchoProvider.swift

Tests/SwiftGRPCTests/echo.grpc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../Sources/EchoExample/Generated/echo.grpc.swift
1+
../../Sources/Examples/Echo/Generated/echo.grpc.swift

Tests/SwiftGRPCTests/echo.pb.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../Sources/EchoExample/Generated/echo.pb.swift
1+
../../Sources/Examples/Echo/Generated/echo.pb.swift

0 commit comments

Comments
 (0)