Skip to content

Commit

Permalink
Fix example Podfiles, and document better
Browse files Browse the repository at this point in the history
  • Loading branch information
jcanizales committed Jul 1, 2016
1 parent bb16025 commit c09854b
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 13 deletions.
18 changes: 15 additions & 3 deletions examples/objective-c/auth_sample/Podfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

pod 'Protobuf', :path => "../../../third_party/protobuf"
pod 'BoringSSL', :podspec => "../../../src/objective-c"
pod 'gRPC', :path => "../../.."
install! 'cocoapods', :deterministic_uuids => false

# Location of gRPC's repo root relative to this file.
GRPC_LOCAL_SRC = '../../..'

target 'AuthSample' do
# Depend on the generated AuthTestService library.
pod 'AuthTestService', :path => '.'

# Depend on Google's OAuth2 library
pod 'Google/SignIn'

# Use the local versions of Protobuf, BoringSSL, and gRPC. You don't need any of the following
# lines in your application.
pod 'Protobuf', :path => "#{GRPC_LOCAL_SRC}/third_party/protobuf"

pod 'BoringSSL', :podspec => "#{GRPC_LOCAL_SRC}/src/objective-c"

pod 'gRPC', :path => GRPC_LOCAL_SRC
pod 'gRPC-Core', :path => GRPC_LOCAL_SRC
pod 'gRPC-RxLibrary', :path => GRPC_LOCAL_SRC
pod 'gRPC-ProtoRPC', :path => GRPC_LOCAL_SRC
end
18 changes: 15 additions & 3 deletions examples/objective-c/helloworld/Podfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

pod 'Protobuf', :path => "../../../third_party/protobuf"
pod 'BoringSSL', :podspec => "../../../src/objective-c"
pod 'gRPC', :path => "../../.."
install! 'cocoapods', :deterministic_uuids => false

# Location of gRPC's repo root relative to this file.
GRPC_LOCAL_SRC = '../../..'

target 'HelloWorld' do
# Depend on the generated HelloWorld library.
pod 'HelloWorld', :path => '.'

# Use the local versions of Protobuf, BoringSSL, and gRPC. You don't need any of the following
# lines in your application.
pod 'Protobuf', :path => "#{GRPC_LOCAL_SRC}/third_party/protobuf"

pod 'BoringSSL', :podspec => "#{GRPC_LOCAL_SRC}/src/objective-c"

pod 'gRPC', :path => GRPC_LOCAL_SRC
pod 'gRPC-Core', :path => GRPC_LOCAL_SRC
pod 'gRPC-RxLibrary', :path => GRPC_LOCAL_SRC
pod 'gRPC-ProtoRPC', :path => GRPC_LOCAL_SRC
end
19 changes: 16 additions & 3 deletions examples/objective-c/route_guide/Podfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

install! 'cocoapods', :deterministic_uuids => false

# Location of gRPC's repo root relative to this file.
GRPC_LOCAL_SRC = '../../..'

target 'RouteGuideClient' do
pod 'Protobuf', :path => "../../../third_party/protobuf"
pod 'BoringSSL', :podspec => "../../../src/objective-c"
pod 'gRPC', :path => "../../.."
# Depend on the generated RouteGuide library.
pod 'RouteGuide', :path => '.'

# Use the local versions of Protobuf, BoringSSL, and gRPC. You don't need any of the following
# lines in your application.
pod 'Protobuf', :path => "#{GRPC_LOCAL_SRC}/third_party/protobuf"

pod 'BoringSSL', :podspec => "#{GRPC_LOCAL_SRC}/src/objective-c"

pod 'gRPC', :path => GRPC_LOCAL_SRC
pod 'gRPC-Core', :path => GRPC_LOCAL_SRC
pod 'gRPC-RxLibrary', :path => GRPC_LOCAL_SRC
pod 'gRPC-ProtoRPC', :path => GRPC_LOCAL_SRC
end
7 changes: 5 additions & 2 deletions src/objective-c/examples/Sample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ install! 'cocoapods', :deterministic_uuids => false
GRPC_LOCAL_SRC = '../../../..'

target 'Sample' do
# Depend on the generated RemoteTestClient library
pod 'RemoteTest', :path => "../RemoteTestClient"

# Use the local versions of Protobuf, BoringSSL, and gRPC. You don't need any of the following
# lines in your application.
pod 'Protobuf', :path => "#{GRPC_LOCAL_SRC}/third_party/protobuf"

pod 'BoringSSL', :podspec => "#{GRPC_LOCAL_SRC}/src/objective-c"
Expand All @@ -15,6 +20,4 @@ target 'Sample' do
pod 'gRPC-Core', :path => GRPC_LOCAL_SRC
pod 'gRPC-RxLibrary', :path => GRPC_LOCAL_SRC
pod 'gRPC-ProtoRPC', :path => GRPC_LOCAL_SRC

pod 'RemoteTest', :path => "../RemoteTestClient"
end
7 changes: 5 additions & 2 deletions src/objective-c/examples/SwiftSample/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ install! 'cocoapods', :deterministic_uuids => false
GRPC_LOCAL_SRC = '../../../..'

target 'SwiftSample' do
# Depend on the generated RemoteTestClient library
pod 'RemoteTest', :path => "../RemoteTestClient"

# Use the local versions of Protobuf, BoringSSL, and gRPC. You don't need any of the following
# lines in your application.
pod 'Protobuf', :path => "#{GRPC_LOCAL_SRC}/third_party/protobuf"

pod 'BoringSSL', :podspec => "#{GRPC_LOCAL_SRC}/src/objective-c"
Expand All @@ -15,6 +20,4 @@ target 'SwiftSample' do
pod 'gRPC-Core', :path => GRPC_LOCAL_SRC
pod 'gRPC-RxLibrary', :path => GRPC_LOCAL_SRC
pod 'gRPC-ProtoRPC', :path => GRPC_LOCAL_SRC

pod 'RemoteTest', :path => "../RemoteTestClient"
end

0 comments on commit c09854b

Please sign in to comment.