Podfile 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. require 'pathname'
  2. # Uncomment the next two lines for pre-release testing on internal repo
  3. #source 'sso://cpdc-internal/firebase'
  4. #source 'https://cdn.cocoapods.org/'
  5. source 'https://cdn.cocoapods.org/'
  6. use_frameworks!
  7. install! 'cocoapods',
  8. :generate_multiple_pod_projects => true,
  9. :incremental_installation => true,
  10. # Disable input/output path checking for generated frameworks to make
  11. # incremental builds work properly. Without this, changes to the framework
  12. # may not be picked up in between test runs.
  13. #
  14. # See:
  15. # https://github.com/CocoaPods/CocoaPods/issues/8073
  16. # https://www.ralfebert.de/ios/blog/cocoapods-clean-input-output-files/
  17. :disable_input_output_paths => true
  18. post_install do |installer|
  19. sync = Pathname.new(__FILE__).dirname.join('../../scripts/sync_project.rb')
  20. system('ruby', sync.to_s)
  21. if !$?.success?
  22. raise "sync_project.rb failed with status #{$?.exitstatus}"
  23. end
  24. end
  25. target 'Firestore_Example_iOS' do
  26. platform :ios, '8.0'
  27. # The next line is the forcing function for the Firebase pod. The Firebase
  28. # version's subspecs should depend on the component versions in their
  29. # corresponding podspec's.
  30. pod 'Firebase/CoreOnly', '6.7.0'
  31. pod 'FirebaseFirestore', :path => '../../'
  32. target 'Firestore_Tests_iOS' do
  33. inherit! :search_paths
  34. pod 'GoogleBenchmark', :podspec => 'GoogleBenchmark.podspec'
  35. pod 'GoogleTest', :podspec => 'GoogleTest.podspec'
  36. pod 'ProtobufCpp', :podspec => 'ProtobufCpp.podspec'
  37. pod 'OCMock'
  38. pod 'leveldb-library'
  39. end
  40. target 'Firestore_Benchmarks_iOS' do
  41. inherit! :search_paths
  42. pod 'GoogleBenchmark', :podspec => 'GoogleBenchmark.podspec'
  43. end
  44. target 'Firestore_IntegrationTests_iOS' do
  45. inherit! :search_paths
  46. pod 'FirebaseFirestoreSwift', :path => '../../'
  47. pod 'GoogleBenchmark', :podspec => 'GoogleBenchmark.podspec'
  48. pod 'GoogleTest', :podspec => 'GoogleTest.podspec'
  49. pod 'ProtobufCpp', :podspec => 'ProtobufCpp.podspec'
  50. pod 'OCMock'
  51. pod 'leveldb-library'
  52. end
  53. target 'Firestore_SwiftTests_iOS' do
  54. pod 'FirebaseFirestoreSwift', :path => '../../'
  55. end
  56. target 'Firestore_FuzzTests_iOS' do
  57. inherit! :search_paths
  58. platform :ios, '9.0'
  59. pod 'LibFuzzer', :podspec => 'LibFuzzer.podspec', :inhibit_warnings => true
  60. pod '!ProtoCompiler'
  61. end
  62. end
  63. target 'Firestore_Example_macOS' do
  64. platform :osx, '10.11'
  65. pod 'FirebaseFirestore', :path => '../../'
  66. target 'Firestore_Tests_macOS' do
  67. inherit! :search_paths
  68. pod 'GoogleBenchmark', :podspec => 'GoogleBenchmark.podspec'
  69. pod 'GoogleTest', :podspec => 'GoogleTest.podspec'
  70. pod 'ProtobufCpp', :podspec => 'ProtobufCpp.podspec'
  71. pod 'OCMock'
  72. pod 'leveldb-library'
  73. end
  74. target 'Firestore_IntegrationTests_macOS' do
  75. inherit! :search_paths
  76. pod 'FirebaseFirestoreSwift', :path => '../../'
  77. pod 'GoogleBenchmark', :podspec => 'GoogleBenchmark.podspec'
  78. pod 'GoogleTest', :podspec => 'GoogleTest.podspec'
  79. pod 'ProtobufCpp', :podspec => 'ProtobufCpp.podspec'
  80. pod 'OCMock'
  81. pod 'leveldb-library'
  82. end
  83. end
  84. target 'Firestore_Example_tvOS' do
  85. platform :tvos, '10.0'
  86. pod 'FirebaseFirestore', :path => '../../'
  87. target 'Firestore_Tests_tvOS' do
  88. inherit! :search_paths
  89. pod 'GoogleBenchmark', :podspec => 'GoogleBenchmark.podspec'
  90. pod 'GoogleTest', :podspec => 'GoogleTest.podspec'
  91. pod 'ProtobufCpp', :podspec => 'ProtobufCpp.podspec'
  92. pod 'OCMock'
  93. pod 'leveldb-library'
  94. end
  95. target 'Firestore_IntegrationTests_tvOS' do
  96. inherit! :search_paths
  97. pod 'FirebaseFirestoreSwift', :path => '../../'
  98. pod 'GoogleBenchmark', :podspec => 'GoogleBenchmark.podspec'
  99. pod 'GoogleTest', :podspec => 'GoogleTest.podspec'
  100. pod 'ProtobufCpp', :podspec => 'ProtobufCpp.podspec'
  101. pod 'OCMock'
  102. pod 'leveldb-library'
  103. end
  104. end