FirebaseFirestoreInternal.podspec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseFirestoreInternal'
  3. s.version = '12.6.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-2.0', :file => 'Firestore/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 = '15.0'
  16. s.osx.deployment_target = '10.15'
  17. s.tvos.deployment_target = '15.0'
  18. s.swift_version = '5.9'
  19. s.cocoapods_version = '>= 1.12.0'
  20. s.prefix_header_file = false
  21. # Header files that constitute the interface to this module. Only Objective-C
  22. # headers belong here, since FirebaseFirestore is primarily an Objective-C
  23. # framework.
  24. s.public_header_files = 'Firestore/Source/Public/FirebaseFirestore/*.h'
  25. # source_files contains most of the header and source files for the project.
  26. # This includes files named in `public_header_files`.
  27. #
  28. # Each header in this list must be globally unique, even within customer
  29. # projects. This generally means that only Objective-C Headers with a `FIR`
  30. # or `FST` prefix can be in `source_files`. Non-public C++ headers that have
  31. # no filename prefix must be in `preserve_paths`. See
  32. # https://github.com/firebase/firebase-ios-sdk/issues/4035 for more details.
  33. #
  34. # Note: headers from FirebaseCore can be in this list because while they're
  35. # not globally unique, each copy will be the same. It doesn't matter which
  36. # version wins in the global header map. The benefit of keeping them here is
  37. # that "quick open" by filename in Xcode will continue to work.
  38. s.source_files = [
  39. 'FirebaseCore/Extension/*.h',
  40. 'Firestore/Source/Public/FirebaseFirestore/*.h',
  41. 'Firestore/Source/**/*.{m,mm}',
  42. 'Firestore/Protos/nanopb/**/*.cc',
  43. 'Firestore/core/include/**/*.{cc,mm}',
  44. 'Firestore/core/src/**/*.{cc,mm}',
  45. 'FirebaseAuth/Interop/**/*.h',
  46. ]
  47. # Internal headers that aren't necessarily globally unique. Most C++ internal
  48. # headers should be here to avoid polluting the global header map with
  49. # unprefixed filenames.
  50. #
  51. # These filenames won't be available in Xcode's "quick open" but the types
  52. # inside these files will be available.
  53. s.preserve_paths = [
  54. 'Firestore/Source/API/*.h',
  55. 'Firestore/Source/Core/*.h',
  56. 'Firestore/Source/Local/*.h',
  57. 'Firestore/Source/Remote/*.h',
  58. 'Firestore/Source/Util/*.h',
  59. 'Firestore/Protos/nanopb/**/*.h',
  60. 'Firestore/core/include/**/*.h',
  61. 'Firestore/core/src/**/*.h',
  62. 'Firestore/third_party/nlohmann_json/json.hpp',
  63. ]
  64. s.requires_arc = [
  65. 'Firestore/Source/**/*',
  66. 'Firestore/core/src/**/*.mm',
  67. ]
  68. # Exclude alternate implementations for other platforms. These types depend
  69. # upon link-time substitution, and there's no provision within CocoaPods for
  70. # selecting files dynamically.
  71. s.exclude_files = [
  72. 'Firestore/core/src/api/input_validation_std.cc',
  73. 'Firestore/core/src/remote/connectivity_monitor_noop.cc',
  74. 'Firestore/core/src/util/filesystem_win.cc',
  75. 'Firestore/core/src/util/hard_assert_stdio.cc',
  76. 'Firestore/core/src/util/log_stdio.cc',
  77. 'Firestore/core/src/util/secure_random_openssl.cc'
  78. ]
  79. s.resource_bundles = {
  80. "#{s.module_name}_Privacy" => 'Firestore/Source/Resources/PrivacyInfo.xcprivacy'
  81. }
  82. s.dependency 'FirebaseAppCheckInterop', '~> 12.6.0'
  83. s.dependency 'FirebaseCore', '~> 12.6.0'
  84. abseil_version = '~> 1.20240722.0'
  85. s.dependency 'abseil/algorithm', abseil_version
  86. s.dependency 'abseil/base', abseil_version
  87. s.dependency 'abseil/container/flat_hash_map', abseil_version
  88. s.dependency 'abseil/memory', abseil_version
  89. s.dependency 'abseil/meta', abseil_version
  90. s.dependency 'abseil/strings/strings', abseil_version
  91. s.dependency 'abseil/time', abseil_version
  92. s.dependency 'abseil/types', abseil_version
  93. s.dependency 'gRPC-Core', '~> 1.69.0'
  94. s.dependency 'gRPC-C++', '~> 1.69.0'
  95. s.dependency 'leveldb-library', '~> 1.22'
  96. s.dependency 'nanopb', '~> 3.30910.0'
  97. s.ios.frameworks = 'SystemConfiguration', 'UIKit'
  98. s.osx.frameworks = 'SystemConfiguration'
  99. s.tvos.frameworks = 'SystemConfiguration', 'UIKit'
  100. s.library = 'c++'
  101. s.pod_target_xcconfig = {
  102. 'CLANG_CXX_LANGUAGE_STANDARD' => 'c++14',
  103. 'CLANG_CXX_LIBRARY' => 'libc++',
  104. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  105. "FIRFirestore_VERSION=#{s.version} " +
  106. # The nanopb pod sets these defs, so we must too. (We *do* require 16bit
  107. # (or larger) fields, so we'd have to set at least PB_FIELD_16BIT
  108. # anyways.)
  109. 'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
  110. 'HEADER_SEARCH_PATHS' =>
  111. '"${PODS_TARGET_SRCROOT}" ' +
  112. '"${PODS_TARGET_SRCROOT}/Firestore/Source/Public" ' +
  113. '"${PODS_ROOT}/nanopb" ' +
  114. '"${PODS_TARGET_SRCROOT}/Firestore/Protos/nanopb"'
  115. }
  116. s.compiler_flags = '$(inherited) -Wreorder -Werror=reorder -Wno-comma'
  117. end