FirebaseCommunity.podspec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseCommunity'
  3. s.version = '0.1.0'
  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.module_map = 'Firebase/Firebase/module.modulemap'
  20. s.subspec 'Root' do |sp|
  21. sp.source_files = 'Firebase/Firebase/FirebaseCommunity.h'
  22. sp.public_header_files = 'Firebase/Firebase/FirebaseCommunity.h'
  23. end
  24. s.subspec 'Core' do |sp|
  25. sp.source_files = 'Firebase/Core/**/*.[mh]'
  26. sp.public_header_files = 'Firebase/Core/Public/*.h','Firebase/Core/Private/*.h',
  27. sp.private_header_files = 'Firebase/Core/Private/*.h'
  28. sp.dependency 'GoogleToolboxForMac/NSData+zlib', '~> 2.1'
  29. sp.dependency 'FirebaseCommunity/Root'
  30. end
  31. s.subspec 'Auth' do |sp|
  32. sp.source_files = 'Firebase/Auth/Source/**/*.[mh]'
  33. sp.osx.exclude_files =
  34. 'Firebase/Auth/Source/**/FIRAuthAppDelegateProxy.[mh]',
  35. 'Firebase/Auth/Source/**/FIRAuthNotificationManager.[mh]',
  36. 'Firebase/Auth/Source/**/FIRAuthAppCredentialManager.[mh]',
  37. 'Firebase/Auth/Source/**/FIRAuthAPNSTokenManager.[mh]',
  38. 'Firebase/Auth/Source/**/FIRAuthAPNSTokenType.[mh]',
  39. 'Firebase/Auth/Source/**/FIRAuthAPNSToken.[mh]',
  40. 'Firebase/Auth/Source/**/FIRPhoneAuthCredential.[mh]',
  41. 'Firebase/Auth/Source/**/FIRPhoneAuthProvider.[mh]'
  42. sp.public_header_files = 'Firebase/Auth/Source/Public/*.h'
  43. sp.preserve_paths =
  44. 'Firebase/Auth/README.md',
  45. 'Firebase/Auth/CHANGELOG.md'
  46. sp.xcconfig = { 'OTHER_CFLAGS' => '-DFIRAuth_VERSION=' + s.version.to_s +
  47. ' -DFIRAuth_MINOR_VERSION=' + s.version.to_s.split(".")[0] + "." + s.version.to_s.split(".")[1]
  48. }
  49. sp.framework = 'Security'
  50. sp.dependency 'FirebaseCommunity/Core'
  51. sp.dependency 'GTMSessionFetcher/Core', '~> 1.1'
  52. sp.dependency 'GoogleToolboxForMac/NSDictionary+URLArguments', '~> 2.1'
  53. end
  54. s.subspec 'Database' do |sp|
  55. sp.source_files = 'Firebase/Database/**/*.[mh]',
  56. 'Firebase/Database/third_party/Wrap-leveldb/APLevelDB.mm',
  57. 'Firebase/Database/third_party/SocketRocket/fbase64.c'
  58. sp.public_header_files = 'Firebase/Database/Public/*.h'
  59. sp.library = 'c++'
  60. sp.library = 'icucore'
  61. sp.framework = 'CFNetwork'
  62. sp.framework = 'Security'
  63. sp.framework = 'SystemConfiguration'
  64. sp.dependency 'leveldb-library'
  65. sp.dependency 'FirebaseCommunity/Core'
  66. sp.xcconfig = { 'OTHER_CFLAGS' => '-DFIRDatabase_VERSION=' + s.version.to_s }
  67. end
  68. s.subspec 'Messaging' do |sp|
  69. sp.platform = 'ios'
  70. sp.source_files = 'Firebase/Messaging/**/*.[mh]'
  71. sp.requires_arc = 'Firebase/Messaging/*.m'
  72. sp.public_header_files = 'Firebase/Messaging/Public/*.h'
  73. sp.library = 'sqlite3'
  74. sp.xcconfig ={ 'GCC_PREPROCESSOR_DEFINITIONS' =>
  75. '$(inherited) ' +
  76. 'GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 ' +
  77. 'FIRMessaging_LIB_VERSION=' + String(s.version)
  78. }
  79. sp.framework = 'AddressBook'
  80. sp.framework = 'SystemConfiguration'
  81. sp.dependency 'FirebaseCommunity/Core'
  82. sp.dependency 'GoogleToolboxForMac/Logger', '~> 2.1'
  83. sp.dependency 'Protobuf', '~> 3.1'
  84. end
  85. s.subspec 'Storage' do |sp|
  86. sp.source_files = 'Firebase/Storage/**/*.[mh]'
  87. sp.public_header_files = 'Firebase/Storage/Public/*.h'
  88. sp.ios.framework = 'MobileCoreServices'
  89. sp.osx.framework = 'CoreServices'
  90. sp.dependency 'FirebaseCommunity/Core'
  91. sp.dependency 'GTMSessionFetcher/Core', '~> 1.1'
  92. sp.xcconfig = { 'OTHER_CFLAGS' => '-DFIRStorage_VERSION=' + s.version.to_s }
  93. end
  94. end