From 0cda940f62a1228a39731fb20cffc7df1ce6fc66 Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Tue, 6 Aug 2019 15:26:23 -0700 Subject: [PATCH] Clean up Podfile. --- Podfile | 32 +++++++------------------------- 1 file changed, 7 insertions(+), 25 deletions(-) diff --git a/Podfile b/Podfile index 2fbe0a8..0b13ad9 100644 --- a/Podfile +++ b/Podfile @@ -1,4 +1,4 @@ -# Copyright 2018 Google Inc. +# Copyright 2018 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,32 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. # -platform :ios, '9.0' - -target 'TestsHost' do - pod 'OCMock', '3.4.1' -end -target 'TestsBundle' do - pod 'OCMock', '3.4.1' -end - -target 'ServiceTests' do - pod 'OCMock', '3.4.1' -end +platform :ios, '9.0' -target 'ServicePerfTests' do - pod 'OCMock', '3.4.1' -end +ocmock_targets = %w(TestsHost TestsBundle ServiceTests ServicePerfTests DeviceUnitTests) -target 'DeviceUnitTests' do - pod 'OCMock', '3.4.1' -end - -post_install do |installer_representation| - installer_representation.pods_project.targets.each do |target| - target.build_configurations.each do |config| - config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO' - end +ocmock_targets.each do |t| + target t do + pod 'OCMock', '3.4.1' end end +