FirebaseFirestore.podspec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseFirestore'
  3. s.version = '1.16.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/*.h',
  24. 'Firestore/Source/**/*.{m,mm}',
  25. 'Firestore/Protos/nanopb/**/*.cc',
  26. 'Firestore/Protos/objc/**/*.m',
  27. 'Firestore/core/include/**/*.{cc,mm}',
  28. 'Firestore/core/src/**/*.{cc,mm}',
  29. 'Interop/Auth/Public/*.h',
  30. ]
  31. s.preserve_paths = [
  32. 'Firestore/Source/API/*.h',
  33. 'Firestore/Source/Core/*.h',
  34. 'Firestore/Source/Local/*.h',
  35. 'Firestore/Source/Remote/*.h',
  36. 'Firestore/Source/Util/*.h',
  37. 'Firestore/Protos/nanopb/**/*.h',
  38. 'Firestore/Protos/objc/**/*.h',
  39. 'Firestore/core/include/**/*.h',
  40. 'Firestore/core/src/**/*.h',
  41. ]
  42. s.requires_arc = [
  43. 'Firestore/Source/**/*',
  44. 'Firestore/core/src/**/*.mm',
  45. ]
  46. s.exclude_files = [
  47. # Exclude alternate implementations for other platforms
  48. 'Firestore/core/src/api/input_validation_std.cc',
  49. 'Firestore/core/src/remote/connectivity_monitor_noop.cc',
  50. 'Firestore/core/src/util/filesystem_win.cc',
  51. 'Firestore/core/src/util/hard_assert_stdio.cc',
  52. 'Firestore/core/src/util/log_stdio.cc',
  53. 'Firestore/core/src/util/secure_random_openssl.cc'
  54. ]
  55. s.public_header_files = 'Firestore/Source/Public/*.h'
  56. s.dependency 'FirebaseCore', '~> 6.8'
  57. abseil_version = '0.20200225.0'
  58. s.dependency 'abseil/algorithm', abseil_version
  59. s.dependency 'abseil/base', abseil_version
  60. s.dependency 'abseil/memory', abseil_version
  61. s.dependency 'abseil/meta', abseil_version
  62. s.dependency 'abseil/strings/strings', abseil_version
  63. s.dependency 'abseil/time', abseil_version
  64. s.dependency 'abseil/types', abseil_version
  65. s.dependency 'gRPC-C++', '~> 1.28.0'
  66. s.dependency 'leveldb-library', '~> 1.22'
  67. s.dependency 'nanopb', '~> 1.30905.0'
  68. s.ios.frameworks = 'MobileCoreServices', 'SystemConfiguration', 'UIKit'
  69. s.osx.frameworks = 'SystemConfiguration'
  70. s.tvos.frameworks = 'SystemConfiguration', 'UIKit'
  71. s.library = 'c++'
  72. s.pod_target_xcconfig = {
  73. 'CLANG_CXX_LANGUAGE_STANDARD' => 'c++0x',
  74. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  75. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  76. "FIRFirestore_VERSION=#{s.version} " +
  77. # The nanopb pod sets these defs, so we must too. (We *do* require 16bit
  78. # (or larger) fields, so we'd have to set at least PB_FIELD_16BIT
  79. # anyways.)
  80. 'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
  81. 'HEADER_SEARCH_PATHS' =>
  82. '"${PODS_TARGET_SRCROOT}" ' +
  83. '"${PODS_TARGET_SRCROOT}/Firestore/Source/Public" ' +
  84. '"${PODS_ROOT}/nanopb" ' +
  85. '"${PODS_TARGET_SRCROOT}/Firestore/Protos/nanopb" ' +
  86. '"${PODS_TARGET_SRCROOT}/Firestore/Protos/objc/google/api" ' +
  87. '"${PODS_TARGET_SRCROOT}/Firestore/Protos/objc/google/firestore/v1" ' +
  88. '"${PODS_TARGET_SRCROOT}/Firestore/Protos/objc/google/rpc" ' +
  89. '"${PODS_TARGET_SRCROOT}/Firestore/Protos/objc/google/type"',
  90. }
  91. # Generate a version of the config.h header suitable for building with
  92. # CocoaPods.
  93. s.prepare_command = <<-CMD
  94. sed '/^#cmakedefine/ d' \
  95. Firestore/core/src/util/config.h.in > \
  96. Firestore/core/src/util/config.h
  97. CMD
  98. s.compiler_flags = '$(inherited) -Wreorder -Werror=reorder -Wno-comma'
  99. end