aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/tests/Podfile
blob: 6d5f94cbda148810c4c0a494618c6da3c0833b85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'

install! 'cocoapods', :deterministic_uuids => false

def shared_pods
  pod 'Protobuf', :path => "../../../third_party/protobuf", :inhibit_warnings => true
  pod 'BoringSSL', :podspec => "..", :inhibit_warnings => true
  pod 'CronetFramework', :podspec => ".."
  pod 'gRPC', :path => "../../.."
  pod 'RemoteTest', :path => "RemoteTestClient"
end

target 'Tests' do
	shared_pods
end

target 'AllTests' do
	shared_pods
end

target 'RxLibraryUnitTests' do
	shared_pods
end

target 'InteropTestsRemote' do
	shared_pods
end

target 'InteropTestsLocalSSL' do
	shared_pods
end

target 'InteropTestsLocalCleartext' do
	shared_pods
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['GCC_TREAT_WARNINGS_AS_ERRORS'] = 'YES'
    end
    if target.name == 'gRPC'
      target.build_configurations.each do |config|
        # TODO(zyc) Remove this setting after the issue is resolved
        # GPR_UNREACHABLE_CODE causes "Control may reach end of non-void
        # function" warning
        config.build_settings['GCC_WARN_ABOUT_RETURN_TYPE'] = 'NO'
      end
    end
  end
end