Podfile 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. # Uncomment the next two lines for pre-release testing on internal repo
  2. #source 'sso://cpdc-internal/firebase'
  3. #source 'https://github.com/CocoaPods/Specs.git'
  4. # Uncomment the next two lines for pre-release testing on public repo
  5. #source 'https://github.com/Firebase/SpecsStaging.git'
  6. #source 'https://github.com/CocoaPods/Specs.git'
  7. use_frameworks!
  8. # Appends the given +paths+ to the HEADER_SEARCH_PATHS setting for the given
  9. # target in all build configurations.
  10. def append_header_search_path(target, *paths)
  11. setting = 'HEADER_SEARCH_PATHS'
  12. target.build_configurations.each do |config|
  13. config.build_settings[setting] ||= '$(inherited)'
  14. paths.each do |path|
  15. config.build_settings[setting] << ' '
  16. config.build_settings[setting] << path
  17. end
  18. end
  19. end
  20. post_install do |installer|
  21. installer.pods_project.targets.each do |target|
  22. # Building the FirebaseFirestore framework proper seems fragile in Xcode:
  23. # changes to public headers seem to cause weird cascading failures in the
  24. # IDE's pre-build error detection. The issue seems to be that the Pod's
  25. # public headers are found by clang at build time through a copy headers
  26. # phase, but the interactive editor won't have those in place, especially
  27. # when the build is broken by current edits.
  28. if target.name =~ /^FirebaseFirestore/
  29. append_header_search_path(target, '$(PODS_ROOT)/../../../Firestore/Source/Public')
  30. end
  31. end
  32. end
  33. target 'Firestore_Example_iOS' do
  34. platform :ios, '8.0'
  35. # The next line is the forcing function for the Firebase pod. The Firebase
  36. # version's subspecs should depend on the component versions in their
  37. # corresponding podspec's.
  38. pod 'Firebase/CoreOnly', '6.1.0'
  39. pod 'FirebaseAuth', :path => '../../'
  40. pod 'FirebaseAuthInterop', :path => '../../'
  41. pod 'FirebaseCore', :path => '../../'
  42. pod 'GoogleUtilities', :path => '../../'
  43. pod 'FirebaseFirestore', :path => '../../'
  44. target 'Firestore_Tests_iOS' do
  45. inherit! :search_paths
  46. pod 'GoogleBenchmark', :podspec => 'GoogleBenchmark.podspec'
  47. pod 'GoogleTest', :podspec => 'GoogleTest.podspec'
  48. pod 'ProtobufCpp', :podspec => 'ProtobufCpp.podspec'
  49. pod 'OCMock'
  50. pod 'leveldb-library'
  51. end
  52. target 'Firestore_Benchmarks_iOS' do
  53. inherit! :search_paths
  54. pod 'GoogleBenchmark', :podspec => 'GoogleBenchmark.podspec'
  55. end
  56. target 'Firestore_IntegrationTests_iOS' do
  57. inherit! :search_paths
  58. pod 'GoogleTest', :podspec => 'GoogleTest.podspec'
  59. pod 'OCMock'
  60. pod 'leveldb-library'
  61. end
  62. target 'Firestore_SwiftTests_iOS' do
  63. pod 'FirebaseFirestoreSwift', :path => '../../'
  64. end
  65. target 'Firestore_FuzzTests_iOS' do
  66. inherit! :search_paths
  67. platform :ios, '9.0'
  68. pod 'LibFuzzer', :podspec => 'LibFuzzer.podspec'
  69. pod '!ProtoCompiler'
  70. end
  71. end
  72. target 'Firestore_Example_macOS' do
  73. platform :osx, '10.11'
  74. pod 'FirebaseAuth', :path => '../../'
  75. pod 'FirebaseCore', :path => '../../'
  76. pod 'FirebaseFirestore', :path => '../../'
  77. target 'Firestore_Tests_macOS' do
  78. inherit! :search_paths
  79. pod 'GoogleBenchmark', :podspec => 'GoogleBenchmark.podspec'
  80. pod 'GoogleTest', :podspec => 'GoogleTest.podspec'
  81. pod 'ProtobufCpp', :podspec => 'ProtobufCpp.podspec'
  82. pod 'OCMock'
  83. pod 'leveldb-library'
  84. end
  85. target 'Firestore_IntegrationTests_macOS' do
  86. inherit! :search_paths
  87. pod 'GoogleTest', :podspec => 'GoogleTest.podspec'
  88. pod 'OCMock'
  89. pod 'leveldb-library'
  90. end
  91. end
  92. target 'Firestore_Example_tvOS' do
  93. platform :tvos, '10.0'
  94. pod 'FirebaseAuth', :path => '../../'
  95. pod 'FirebaseCore', :path => '../../'
  96. pod 'FirebaseFirestore', :path => '../../'
  97. target 'Firestore_Tests_tvOS' do
  98. inherit! :search_paths
  99. pod 'GoogleBenchmark', :podspec => 'GoogleBenchmark.podspec'
  100. pod 'GoogleTest', :podspec => 'GoogleTest.podspec'
  101. pod 'ProtobufCpp', :podspec => 'ProtobufCpp.podspec'
  102. pod 'OCMock'
  103. pod 'leveldb-library'
  104. end
  105. target 'Firestore_IntegrationTests_tvOS' do
  106. inherit! :search_paths
  107. pod 'GoogleTest', :podspec => 'GoogleTest.podspec'
  108. pod 'OCMock'
  109. pod 'leveldb-library'
  110. end
  111. end