FirebaseCommunity.podspec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseCommunity'
  3. s.version = '0.0.1'
  4. s.summary = 'Firebase Open Source Libraries for iOS.'
  5. s.description = <<-DESC
  6. Firebase Development CocoaPod including experimental and community supported features.
  7. DESC
  8. s.homepage = 'https://firebase.google.com'
  9. s.license = { :type => 'Apache', :file => 'LICENSE' }
  10. s.authors = 'Google, Inc.'
  11. # NOTE that the FirebaseCommunity pod is neither publicly deployed nor yet interchangeable with the
  12. # Firebase pod
  13. s.source = { :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => s.version.to_s }
  14. s.social_media_url = 'https://twitter.com/Firebase'
  15. s.ios.deployment_target = '8.0'
  16. s.osx.deployment_target = '10.10'
  17. s.default_subspec = 'Root'
  18. s.preserve_paths = 'README.md'
  19. s.subspec 'Root' do |sp|
  20. sp.source_files = 'Firebase/Firebase/Firebase.h'
  21. sp.public_header_files = 'Firebase/Firebase/Firebase.h'
  22. sp.user_target_xcconfig = { 'HEADER_SEARCH_PATHS' => '$(inherited) "${PODS_ROOT}/Firebase/Firebase/Firebase"' }
  23. end
  24. s.subspec 'Core' do |sp|
  25. sp.source_files = 'Firebase/Core/**/*.[mh]'
  26. sp.public_header_files = 'Firebase/Core/Public/*.h'
  27. sp.dependency 'GoogleToolboxForMac/NSData+zlib', '~> 2.1'
  28. sp.dependency 'FirebaseCommunity/Root'
  29. end
  30. s.subspec 'Auth' do |sp|
  31. sp.source_files = 'Firebase/Auth/Source/**/*.[mh]'
  32. sp.osx.exclude_files =
  33. 'Firebase/Auth/Source/**/FIRAuthAppDelegateProxy.[mh]',
  34. 'Firebase/Auth/Source/**/FIRAuthNotificationManager.[mh]',
  35. 'Firebase/Auth/Source/**/FIRAuthAppCredentialManager.[mh]',
  36. 'Firebase/Auth/Source/**/FIRAuthAPNSTokenManager.[mh]',
  37. 'Firebase/Auth/Source/**/FIRAuthAPNSTokenType.[mh]',
  38. 'Firebase/Auth/Source/**/FIRAuthAPNSToken.[mh]',
  39. 'Firebase/Auth/Source/**/FIRPhoneAuthProvider.[mh]'
  40. sp.public_header_files = 'Firebase/Auth/Source/Public/*.h'
  41. sp.preserve_paths =
  42. 'Firebase/Auth/README.md',
  43. 'Firebase/Auth/CHANGELOG.md'
  44. sp.xcconfig = { 'OTHER_CFLAGS' => '-DFIRAuth_VERSION=' + s.version.to_s +
  45. ' -DFIRAuth_MINOR_VERSION=' + s.version.to_s.split(".")[0] + "." + s.version.to_s.split(".")[1]
  46. }
  47. sp.framework = 'Security'
  48. sp.dependency 'FirebaseCommunity/Core'
  49. sp.dependency 'GTMSessionFetcher/Core', '~> 1.1'
  50. sp.dependency 'GoogleToolboxForMac/NSDictionary+URLArguments', '~> 2.1'
  51. end
  52. s.subspec 'Database' do |sp|
  53. sp.source_files = 'Firebase/Database/**/*.[mh]',
  54. 'Firebase/Database/third_party/Wrap-leveldb/APLevelDB.mm',
  55. 'Firebase/Database/third_party/SocketRocket/fbase64.c'
  56. sp.public_header_files = 'Firebase/Database/Public/*.h'
  57. sp.library = 'c++'
  58. sp.library = 'icucore'
  59. sp.framework = 'CFNetwork'
  60. sp.framework = 'Security'
  61. sp.framework = 'SystemConfiguration'
  62. sp.dependency 'leveldb-library'
  63. sp.dependency 'FirebaseCommunity/Core'
  64. sp.xcconfig = { 'OTHER_CFLAGS' => '-DFIRDatabase_VERSION=' + s.version.to_s }
  65. end
  66. s.subspec 'Messaging' do |sp|
  67. sp.platform = 'ios'
  68. sp.source_files = 'Firebase/Messaging/**/*.[mh]'
  69. sp.requires_arc = 'Firebase/Messaging/*.m'
  70. sp.public_header_files = 'Firebase/Messaging/Public/*.h'
  71. sp.library = 'sqlite3'
  72. sp.xcconfig ={ 'GCC_PREPROCESSOR_DEFINITIONS' =>
  73. '$(inherited) ' +
  74. 'GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 ' +
  75. 'FIRMessaging_LIB_VERSION=' + String(s.version)
  76. }
  77. sp.framework = 'AddressBook'
  78. sp.framework = 'SystemConfiguration'
  79. sp.dependency 'FirebaseCommunity/Core'
  80. sp.dependency 'GoogleToolboxForMac/Logger', '~> 2.1'
  81. sp.dependency 'Protobuf', '~> 3.1'
  82. end
  83. s.subspec 'Storage' do |sp|
  84. sp.source_files = 'Firebase/Storage/**/*.[mh]'
  85. sp.public_header_files = 'Firebase/Storage/Public/*.h'
  86. sp.ios.framework = 'MobileCoreServices'
  87. sp.osx.framework = 'CoreServices'
  88. sp.dependency 'FirebaseCommunity/Core'
  89. sp.dependency 'GTMSessionFetcher/Core', '~> 1.1'
  90. sp.xcconfig = { 'OTHER_CFLAGS' => '-DFIRStorage_VERSION=' + s.version.to_s }
  91. end
  92. end