Files
firebase-ios-sdk/Firestore/Example/Podfile
T
Gil c42bf815a5 Fix Firestore builds under Xcode 8 (#3647)
* Fix Firestore builds under Xcode 8

* FirebaseCore must be a local pod

Otherwise pod install won't pick up local edits to that podspec
2019-08-21 17:15:57 -07:00

145 lines
3.9 KiB
Ruby

require 'pathname'
# Uncomment the next two lines for pre-release testing on internal repo
#source 'sso://cpdc-internal/firebase'
#source 'https://cdn.cocoapods.org/'
source 'https://cdn.cocoapods.org/'
use_frameworks!
install! 'cocoapods',
:generate_multiple_pod_projects => true,
:incremental_installation => true,
# Disable input/output path checking for generated frameworks to make
# incremental builds work properly. Without this, changes to the framework
# may not be picked up in between test runs.
#
# See:
# https://github.com/CocoaPods/CocoaPods/issues/8073
# https://www.ralfebert.de/ios/blog/cocoapods-clean-input-output-files/
:disable_input_output_paths => true
post_install do |installer|
sync = Pathname.new(__FILE__).dirname.join('../../scripts/sync_project.rb')
system('ruby', sync.to_s)
if !$?.success?
raise "sync_project.rb failed with status #{$?.exitstatus}"
end
end
target 'Firestore_Example_iOS' do
platform :ios, '8.0'
# The next line is the forcing function for the Firebase pod. The Firebase
# version's subspecs should depend on the component versions in their
# corresponding podspec's.
pod 'Firebase/CoreOnly', '6.7.0'
pod 'FirebaseFirestore', :path => '../../'
pod 'FirebaseCore', :path => '../../'
target 'Firestore_Tests_iOS' do
inherit! :search_paths
pod 'GoogleBenchmark', :podspec => 'GoogleBenchmark.podspec'
pod 'GoogleTest', :podspec => 'GoogleTest.podspec'
pod 'ProtobufCpp', :podspec => 'ProtobufCpp.podspec'
pod 'OCMock'
pod 'leveldb-library'
end
target 'Firestore_Benchmarks_iOS' do
inherit! :search_paths
pod 'GoogleBenchmark', :podspec => 'GoogleBenchmark.podspec'
end
target 'Firestore_IntegrationTests_iOS' do
inherit! :search_paths
pod 'FirebaseFirestoreSwift', :path => '../../'
pod 'GoogleBenchmark', :podspec => 'GoogleBenchmark.podspec'
pod 'GoogleTest', :podspec => 'GoogleTest.podspec'
pod 'ProtobufCpp', :podspec => 'ProtobufCpp.podspec'
pod 'OCMock'
pod 'leveldb-library'
end
target 'Firestore_SwiftTests_iOS' do
pod 'FirebaseFirestoreSwift', :path => '../../'
end
target 'Firestore_FuzzTests_iOS' do
inherit! :search_paths
platform :ios, '9.0'
pod 'LibFuzzer', :podspec => 'LibFuzzer.podspec', :inhibit_warnings => true
pod '!ProtoCompiler'
end
end
target 'Firestore_Example_macOS' do
platform :osx, '10.11'
pod 'FirebaseFirestore', :path => '../../'
pod 'FirebaseCore', :path => '../../'
target 'Firestore_Tests_macOS' do
inherit! :search_paths
pod 'GoogleBenchmark', :podspec => 'GoogleBenchmark.podspec'
pod 'GoogleTest', :podspec => 'GoogleTest.podspec'
pod 'ProtobufCpp', :podspec => 'ProtobufCpp.podspec'
pod 'OCMock'
pod 'leveldb-library'
end
target 'Firestore_IntegrationTests_macOS' do
inherit! :search_paths
pod 'FirebaseFirestoreSwift', :path => '../../'
pod 'GoogleBenchmark', :podspec => 'GoogleBenchmark.podspec'
pod 'GoogleTest', :podspec => 'GoogleTest.podspec'
pod 'ProtobufCpp', :podspec => 'ProtobufCpp.podspec'
pod 'OCMock'
pod 'leveldb-library'
end
end
target 'Firestore_Example_tvOS' do
platform :tvos, '10.0'
pod 'FirebaseFirestore', :path => '../../'
pod 'FirebaseCore', :path => '../../'
target 'Firestore_Tests_tvOS' do
inherit! :search_paths
pod 'GoogleBenchmark', :podspec => 'GoogleBenchmark.podspec'
pod 'GoogleTest', :podspec => 'GoogleTest.podspec'
pod 'ProtobufCpp', :podspec => 'ProtobufCpp.podspec'
pod 'OCMock'
pod 'leveldb-library'
end
target 'Firestore_IntegrationTests_tvOS' do
inherit! :search_paths
pod 'FirebaseFirestoreSwift', :path => '../../'
pod 'GoogleBenchmark', :podspec => 'GoogleBenchmark.podspec'
pod 'GoogleTest', :podspec => 'GoogleTest.podspec'
pod 'ProtobufCpp', :podspec => 'ProtobufCpp.podspec'
pod 'OCMock'
pod 'leveldb-library'
end
end