Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #318 from facebook/nlutsenko.cocoapods
Browse files Browse the repository at this point in the history
Update Podfile to be compatible with CocoaPods 1.0.0
  • Loading branch information
nlutsenko committed May 12, 2016
2 parents 234aeb8 + d31d029 commit 3f2c758
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 117 deletions.
44 changes: 10 additions & 34 deletions Podfile
Original file line number Diff line number Diff line change
@@ -1,39 +1,15 @@
platform :ios, '6.0'

target :'pop-tests-ios', :exclusive => true do
pod 'OCMock', '~> 2.2'
end

target :'pop-tests-tvos', :exclusive => true do
platform :tvos, "9.0"

pod 'OCMock', '~> 2.2'
end

target :'pop-tests-osx', :exclusive => true do
platform :osx, '10.8'
abstract_target 'Tests' do
pod 'OCMock', '~> 2.2'
end

# Add XCTests to generated xcconfigs
post_install do
pop_test_xcconfigs = [
"./Pods/Target Support Files/Pods-pop-tests-ios/Pods-pop-tests-ios.debug.xcconfig",
"./Pods/Target Support Files/Pods-pop-tests-ios/Pods-pop-tests-ios.profile.xcconfig",
"./Pods/Target Support Files/Pods-pop-tests-ios/Pods-pop-tests-ios.release.xcconfig",
"./Pods/Target Support Files/Pods-pop-tests-tvos/Pods-pop-tests-tvos.debug.xcconfig",
"./Pods/Target Support Files/Pods-pop-tests-tvos/Pods-pop-tests-tvos.profile.xcconfig",
"./Pods/Target Support Files/Pods-pop-tests-tvos/Pods-pop-tests-tvos.release.xcconfig",
"./Pods/Target Support Files/Pods-pop-tests-osx/Pods-pop-tests-osx.debug.xcconfig",
"./Pods/Target Support Files/Pods-pop-tests-osx/Pods-pop-tests-osx.profile.xcconfig",
"./Pods/Target Support Files/Pods-pop-tests-osx/Pods-pop-tests-osx.release.xcconfig",
]

target :'pop-tests-ios' do
platform :ios, '6.0'
end

pop_test_xcconfigs.each do |pop_test_xcconfig|
new_xcconfig = File.read(pop_test_xcconfig).gsub(/OTHER_LDFLAGS/, "POD_OTHER_LDFLAGS")
new_xcconfig << "\nOTHER_LDFLAGS = $(POD_OTHER_LDFLAGS) -framework XCTest"
new_xcconfig << "\nFRAMEWORK_SEARCH_PATHS = $(inherited) \"$(PLATFORM_DIR)/Developer/Library/Frameworks\""
File.write(pop_test_xcconfig, new_xcconfig)
target :'pop-tests-tvos' do
platform :tvos, '9.0'
end

target :'pop-tests-osx' do
platform :osx, '10.8'
end
end
4 changes: 3 additions & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ DEPENDENCIES:
SPEC CHECKSUMS:
OCMock: a6a7dc0e3997fb9f35d99f72528698ebf60d64f2

COCOAPODS: 0.39.0
PODFILE CHECKSUM: 06e2f62938dff5782de5abf2adf6966a85f24637

COCOAPODS: 1.0.0
10 changes: 10 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
coverage:
ignore:
- pop-tests/*
status:
patch: false
changes: false
project:
default:
target: 50
comment: false
Loading

0 comments on commit 3f2c758

Please sign in to comment.