FirebaseFirestore.podspec 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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.0'
  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/src/**/*.{h,cc,mm}',
  29. 'Firestore/third_party/Immutable/*.[mh]',
  30. 'Firestore/third_party/abseil-cpp/absl/*.{h,cc}'
  31. ]
  32. s.requires_arc = [
  33. 'Firestore/Source/**/*',
  34. 'Firestore/core/src/**/*.mm',
  35. 'Firestore/third_party/Immutable/*.[mh]'
  36. ]
  37. s.exclude_files = [
  38. 'Firestore/Port/*test.cc',
  39. 'Firestore/third_party/Immutable/Tests/**',
  40. # Exclude alternate implementations for other platforms
  41. 'Firestore/core/src/firebase/firestore/util/log_stdio.cc'
  42. ]
  43. s.public_header_files = 'Firestore/Source/Public/*.h'
  44. s.ios.dependency 'FirebaseAnalytics', '~> 4.0'
  45. s.dependency 'FirebaseCore', '~> 4.0'
  46. s.dependency 'gRPC-ProtoRPC', '~> 1.0'
  47. s.dependency 'leveldb-library', '~> 1.18'
  48. s.dependency 'Protobuf', '~> 3.1'
  49. s.frameworks = 'MobileCoreServices'
  50. s.library = 'c++'
  51. s.pod_target_xcconfig = {
  52. 'GCC_PREPROCESSOR_DEFINITIONS' => 'GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 ',
  53. 'HEADER_SEARCH_PATHS' =>
  54. '"${PODS_TARGET_SRCROOT}" ' +
  55. '"${PODS_TARGET_SRCROOT}/Firestore/third_party/abseil-cpp"',
  56. 'OTHER_CFLAGS' => '-DFIRFirestore_VERSION=' + s.version.to_s
  57. }
  58. end