FirebaseFirestore.podspec 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #
  2. # Be sure to run `pod lib lint FirebaseFirestore.podspec' to ensure this is a
  3. # valid spec before submitting.
  4. #
  5. # Any lines starting with a # are optional, but their use is encouraged
  6. # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
  7. #
  8. Pod::Spec.new do |s|
  9. s.name = 'FirebaseFirestore'
  10. s.version = '0.10.1'
  11. s.summary = 'Google Cloud Firestore for iOS'
  12. s.description = <<-DESC
  13. Google Cloud Firestore is a NoSQL document database built for automatic scaling, high performance, and ease of application development.
  14. DESC
  15. s.homepage = 'https://developers.google.com/'
  16. s.license = { :type => 'Apache', :file => 'LICENSE' }
  17. s.authors = 'Google, Inc.'
  18. s.source = { :git => 'https://github.com/TBD/Firestore.git', :tag => s.version.to_s }
  19. # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
  20. s.ios.deployment_target = '7.0'
  21. s.cocoapods_version = '>= 1.4.0.beta.2'
  22. s.static_framework = true
  23. s.prefix_header_file = false
  24. s.source_files = [
  25. 'Firestore/Source/**/*',
  26. 'Firestore/Port/**/*',
  27. 'Firestore/Protos/objc/**/*.[hm]',
  28. 'Firestore/core/include/**/*.{h,cc,mm}',
  29. 'Firestore/core/src/**/*.{h,cc,mm}',
  30. 'Firestore/third_party/Immutable/*.[mh]',
  31. 'Firestore/third_party/abseil-cpp/**/*.{h,cc}'
  32. ]
  33. s.requires_arc = [
  34. 'Firestore/Source/**/*',
  35. 'Firestore/core/src/**/*.mm',
  36. 'Firestore/third_party/Immutable/*.[mh]'
  37. ]
  38. s.exclude_files = [
  39. 'Firestore/Port/*test.cc',
  40. 'Firestore/third_party/Immutable/Tests/**',
  41. 'Firestore/third_party/abseil-cpp/**/*_test.{h,cc}',
  42. # Exclude alternate implementations for other platforms
  43. 'Firestore/core/src/firebase/firestore/util/assert_stdio.cc',
  44. 'Firestore/core/src/firebase/firestore/util/log_stdio.cc',
  45. 'Firestore/core/src/firebase/firestore/util/secure_random_openssl.cc'
  46. ]
  47. s.public_header_files = 'Firestore/Source/Public/*.h'
  48. s.ios.dependency 'FirebaseAnalytics', '~> 4.0'
  49. s.dependency 'FirebaseCore', '~> 4.0'
  50. s.dependency 'gRPC-ProtoRPC', '~> 1.0'
  51. s.dependency 'leveldb-library', '~> 1.18'
  52. s.dependency 'Protobuf', '~> 3.1'
  53. s.frameworks = 'MobileCoreServices'
  54. s.library = 'c++'
  55. s.pod_target_xcconfig = {
  56. 'GCC_PREPROCESSOR_DEFINITIONS' => 'GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 ',
  57. 'HEADER_SEARCH_PATHS' =>
  58. '"${PODS_TARGET_SRCROOT}" ' +
  59. '"${PODS_TARGET_SRCROOT}/Firestore/third_party/abseil-cpp" ' +
  60. '"${PODS_ROOT}/nanopb" ' +
  61. '"${PODS_TARGET_SRCROOT}/Firestore/Protos/nanopb"',
  62. 'OTHER_CFLAGS' => '-DFIRFirestore_VERSION=' + s.version.to_s
  63. }
  64. s.prepare_command = <<-CMD
  65. # Generate a version of the config.h header suitable for building with
  66. # CocoaPods.
  67. sed '/^#cmakedefine/ d' \
  68. Firestore/core/src/firebase/firestore/util/config.h.in > \
  69. Firestore/core/src/firebase/firestore/util/config.h
  70. CMD
  71. end