FirebaseFirestore.podspec 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseFirestore'
  3. s.version = '1.17.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 => 'Firestore-' + s.version.to_s
  14. }
  15. s.ios.deployment_target = '8.0'
  16. s.osx.deployment_target = '10.11'
  17. s.tvos.deployment_target = '10.0'
  18. s.cocoapods_version = '>= 1.4.0'
  19. s.static_framework = true
  20. s.prefix_header_file = false
  21. s.source_files = [
  22. 'FirebaseCore/Sources/Private/*.h',
  23. 'Firestore/Source/Public/FirebaseFirestore/*.h',
  24. 'Firestore/Source/**/*.{m,mm}',
  25. 'Firestore/Protos/nanopb/**/*.cc',
  26. 'Firestore/core/include/**/*.{cc,mm}',
  27. 'Firestore/core/src/**/*.{cc,mm}',
  28. 'Interop/Auth/Public/*.h',
  29. ]
  30. s.preserve_paths = [
  31. 'Firestore/Source/API/*.h',
  32. 'Firestore/Source/Core/*.h',
  33. 'Firestore/Source/Local/*.h',
  34. 'Firestore/Source/Remote/*.h',
  35. 'Firestore/Source/Util/*.h',
  36. 'Firestore/Protos/nanopb/**/*.h',
  37. 'Firestore/core/include/**/*.h',
  38. 'Firestore/core/src/**/*.h',
  39. ]
  40. s.requires_arc = [
  41. 'Firestore/Source/**/*',
  42. 'Firestore/core/src/**/*.mm',
  43. ]
  44. s.exclude_files = [
  45. # Exclude alternate implementations for other platforms
  46. 'Firestore/core/src/api/input_validation_std.cc',
  47. 'Firestore/core/src/remote/connectivity_monitor_noop.cc',
  48. 'Firestore/core/src/util/filesystem_win.cc',
  49. 'Firestore/core/src/util/hard_assert_stdio.cc',
  50. 'Firestore/core/src/util/log_stdio.cc',
  51. 'Firestore/core/src/util/secure_random_openssl.cc'
  52. ]
  53. s.public_header_files = 'Firestore/Source/Public/FirebaseFirestore/*.h'
  54. s.dependency 'FirebaseCore', '~> 6.10'
  55. abseil_version = '0.20200225.0'
  56. s.dependency 'abseil/algorithm', abseil_version
  57. s.dependency 'abseil/base', abseil_version
  58. s.dependency 'abseil/memory', abseil_version
  59. s.dependency 'abseil/meta', abseil_version
  60. s.dependency 'abseil/strings/strings', abseil_version
  61. s.dependency 'abseil/time', abseil_version
  62. s.dependency 'abseil/types', abseil_version
  63. s.dependency 'gRPC-C++', '~> 1.28.0'
  64. s.dependency 'leveldb-library', '~> 1.22'
  65. s.dependency 'nanopb', '~> 1.30906.0'
  66. s.ios.frameworks = 'MobileCoreServices', 'SystemConfiguration', 'UIKit'
  67. s.osx.frameworks = 'SystemConfiguration'
  68. s.tvos.frameworks = 'SystemConfiguration', 'UIKit'
  69. s.library = 'c++'
  70. s.pod_target_xcconfig = {
  71. 'CLANG_CXX_LANGUAGE_STANDARD' => 'c++0x',
  72. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  73. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  74. "FIRFirestore_VERSION=#{s.version} " +
  75. # The nanopb pod sets these defs, so we must too. (We *do* require 16bit
  76. # (or larger) fields, so we'd have to set at least PB_FIELD_16BIT
  77. # anyways.)
  78. 'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
  79. 'HEADER_SEARCH_PATHS' =>
  80. '"${PODS_TARGET_SRCROOT}" ' +
  81. '"${PODS_TARGET_SRCROOT}/Firestore/Source/Public/FirebaseFirestore" ' +
  82. '"${PODS_ROOT}/nanopb" ' +
  83. '"${PODS_TARGET_SRCROOT}/Firestore/Protos/nanopb"'
  84. }
  85. s.compiler_flags = '$(inherited) -Wreorder -Werror=reorder -Wno-comma'
  86. end