FirebaseFirestore.podspec 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseFirestore'
  3. s.version = '7.5.0'
  4. s.summary = 'Google Cloud Firestore'
  5. s.description = <<-DESC
  6. Google Cloud Firestore is a NoSQL document database built for automatic scaling, high performance, and ease of application development.
  7. DESC
  8. s.homepage = 'https://developers.google.com/'
  9. s.license = { :type => 'Apache', :file => 'LICENSE' }
  10. s.authors = 'Google, Inc.'
  11. s.source = {
  12. :git => 'https://github.com/firebase/firebase-ios-sdk.git',
  13. :tag => 'CocoaPods-' + s.version.to_s
  14. }
  15. s.ios.deployment_target = '10.0'
  16. s.osx.deployment_target = '10.12'
  17. s.tvos.deployment_target = '10.0'
  18. s.cocoapods_version = '>= 1.4.0'
  19. s.prefix_header_file = false
  20. s.source_files = [
  21. 'FirebaseCore/Sources/Private/*.h',
  22. 'Firestore/Source/Public/FirebaseFirestore/*.h',
  23. 'Firestore/Source/**/*.{m,mm}',
  24. 'Firestore/Protos/nanopb/**/*.cc',
  25. 'Firestore/core/include/**/*.{cc,mm}',
  26. 'Firestore/core/src/**/*.{cc,mm}',
  27. 'Interop/Auth/Public/*.h',
  28. ]
  29. s.preserve_paths = [
  30. 'Firestore/Source/API/*.h',
  31. 'Firestore/Source/Core/*.h',
  32. 'Firestore/Source/Local/*.h',
  33. 'Firestore/Source/Remote/*.h',
  34. 'Firestore/Source/Util/*.h',
  35. 'Firestore/Protos/nanopb/**/*.h',
  36. 'Firestore/core/include/**/*.h',
  37. 'Firestore/core/src/**/*.h',
  38. ]
  39. s.requires_arc = [
  40. 'Firestore/Source/**/*',
  41. 'Firestore/core/src/**/*.mm',
  42. ]
  43. s.exclude_files = [
  44. # Exclude alternate implementations for other platforms
  45. 'Firestore/core/src/api/input_validation_std.cc',
  46. 'Firestore/core/src/remote/connectivity_monitor_noop.cc',
  47. 'Firestore/core/src/util/filesystem_win.cc',
  48. 'Firestore/core/src/util/hard_assert_stdio.cc',
  49. 'Firestore/core/src/util/log_stdio.cc',
  50. 'Firestore/core/src/util/secure_random_openssl.cc'
  51. ]
  52. s.public_header_files = 'Firestore/Source/Public/FirebaseFirestore/*.h'
  53. s.dependency 'FirebaseCore', '~> 7.0'
  54. abseil_version = '0.20200225.0'
  55. s.dependency 'abseil/algorithm', abseil_version
  56. s.dependency 'abseil/base', abseil_version
  57. s.dependency 'abseil/memory', abseil_version
  58. s.dependency 'abseil/meta', abseil_version
  59. s.dependency 'abseil/strings/strings', abseil_version
  60. s.dependency 'abseil/time', abseil_version
  61. s.dependency 'abseil/types', abseil_version
  62. s.dependency 'gRPC-C++', '~> 1.28.0'
  63. s.dependency 'leveldb-library', '~> 1.22'
  64. s.dependency 'nanopb', '~> 2.30907.0'
  65. s.ios.frameworks = 'SystemConfiguration', 'UIKit'
  66. s.osx.frameworks = 'SystemConfiguration'
  67. s.tvos.frameworks = 'SystemConfiguration', 'UIKit'
  68. s.library = 'c++'
  69. s.pod_target_xcconfig = {
  70. 'CLANG_CXX_LANGUAGE_STANDARD' => 'c++0x',
  71. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  72. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  73. "FIRFirestore_VERSION=#{s.version} " +
  74. # The nanopb pod sets these defs, so we must too. (We *do* require 16bit
  75. # (or larger) fields, so we'd have to set at least PB_FIELD_16BIT
  76. # anyways.)
  77. 'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
  78. 'HEADER_SEARCH_PATHS' =>
  79. '"${PODS_TARGET_SRCROOT}" ' +
  80. '"${PODS_TARGET_SRCROOT}/Firestore/Source/Public/FirebaseFirestore" ' +
  81. '"${PODS_ROOT}/nanopb" ' +
  82. '"${PODS_TARGET_SRCROOT}/Firestore/Protos/nanopb"'
  83. }
  84. s.compiler_flags = '$(inherited) -Wreorder -Werror=reorder -Wno-comma'
  85. end