diff options
author | Paul Beusterien <paulbeusterien@google.com> | 2018-05-13 19:10:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-13 19:10:35 -0700 |
commit | 97dc3a3f6717ab2932ceb7975367f3f4fe6fbce6 (patch) | |
tree | 03a5d617143cb3ed9f1136f8cc7ea0bed269358a /Firestore/Example/Podfile | |
parent | 450d7a18ffffbaeb8722b2d84ec181fbff7e91bb (diff) |
Update travis to use CocoaPods 1.5.2 (#1103)
* Update travis to use CocoaPods 1.5.2
* CODE_SIGNING_ALLOWED=YES
* Remove workaround and iPhone 8
* Remove #1210 static library Podfile workaround
* Add -all_load to Firestore Example so all C++ is available for tests
Diffstat (limited to 'Firestore/Example/Podfile')
-rw-r--r-- | Firestore/Example/Podfile | 67 |
1 files changed, 18 insertions, 49 deletions
diff --git a/Firestore/Example/Podfile b/Firestore/Example/Podfile index c1e02c8..5adb6b7 100644 --- a/Firestore/Example/Podfile +++ b/Firestore/Example/Podfile @@ -10,63 +10,32 @@ pod 'Firebase/Core', '5.0.0' use_frameworks! -pod 'FirebaseAuth', :path => '../../' -pod 'FirebaseCore', :path => '../../' -pod 'FirebaseFirestore', :path => '../../' - target 'Firestore_Example_iOS' do platform :ios, '8.0' - # Test targets are below to avoid problems with duplicate symbols when - # building as a static library (see comments below). -end + pod 'FirebaseAuth', :path => '../../' + pod 'FirebaseCore', :path => '../../' + pod 'FirebaseFirestore', :path => '../../' -target 'Firestore_Tests_iOS' do - platform :ios, '8.0' + target 'Firestore_Tests_iOS' do + inherit! :search_paths - pod 'leveldb-library' - pod 'OCMock' - pod 'GoogleTest', :podspec => 'Tests/GoogleTest/GoogleTest.podspec' -end - -target 'Firestore_IntegrationTests_iOS' do - platform :ios, '8.0' -end + pod 'leveldb-library' + pod 'OCMock' + pod 'GoogleTest', :podspec => 'Tests/GoogleTest/GoogleTest.podspec' + end -target 'Firestore_SwiftTests_iOS' do - platform :ios, '8.0' - pod 'FirebaseFirestoreSwift', :path => '../../' -end + target 'Firestore_IntegrationTests_iOS' do + inherit! :search_paths -target 'SwiftBuildTest' do - platform :ios, '8.0' -end + pod 'OCMock' + end -# Firestore includes both Objective-C and C++ code, and the Firestore tests -# consist of both XCTest-based tests in Objective-C and GoogleTest-based tests -# in C++. The C++ tests must resolve the classes under test at link time, so -# CocoaPods usual strategy linking Frameworks to the app and then resolving -# those classes through run-time loading does not work in all cases. -# -# If use_frameworks! is disabled above, the project will encounter a ton of -# duplicate Objective-C class warnings during test runs. Some of the tests will -# fail too because duplicate classes also get duplicate static data and this -# violates the expectations of code we depend upon. -# -# The workaround is to strip duplicate dependencies out of the example app, -# which does not need them since it doesn't do anything other than act as a -# host to the tests. This is based on the workaround posted here: -# -# https://github.com/CocoaPods/CocoaPods/issues/7155 -# -# TODO(wilhuff): Reevaluate if this is needed once we require CocoaPods 1.5.1 -# which may address this. -pre_install do |installer| - test_target = installer.aggregate_targets.find do |target| - target.name == 'Pods-Firestore_Tests_iOS' + target 'Firestore_SwiftTests_iOS' do + pod 'FirebaseFirestoreSwift', :path => '../../' end - app_target = installer.aggregate_targets.find do |target| - target.name == 'Pods-Firestore_Example_iOS' + + target 'SwiftBuildTest' do + platform :ios, '8.0' end - app_target.pod_targets = app_target.pod_targets - test_target.pod_targets end |