FirebaseCommunity.podspec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseCommunity'
  3. s.version = '0.1.2'
  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 NOT yet interchangeable with the Firebase pod
  12. s.source = { :git => 'https://github.com/firebase/firebase-ios-sdk.git', :tag => s.version.to_s }
  13. s.social_media_url = 'https://twitter.com/Firebase'
  14. s.ios.deployment_target = '8.0'
  15. s.osx.deployment_target = '10.10'
  16. s.default_subspec = 'Root'
  17. s.preserve_paths = 'README.md'
  18. s.module_map = 'Firebase/Firebase/module.modulemap'
  19. s.subspec 'Root' do |sp|
  20. sp.source_files = 'Firebase/Firebase/FirebaseCommunity.h'
  21. sp.public_header_files = 'Firebase/Firebase/FirebaseCommunity.h'
  22. end
  23. s.subspec 'Core' do |sp|
  24. sp.source_files = 'Firebase/Core/**/*.[mh]'
  25. sp.public_header_files = 'Firebase/Core/Public/*.h','Firebase/Core/Private/*.h',
  26. sp.private_header_files = 'Firebase/Core/Private/*.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/**/FIRAuthDefaultUIDelegate.[mh]',
  40. 'Firebase/Auth/Source/**/FIRAuthUIDelegate.h',
  41. 'Firebase/Auth/Source/**/FIRAuthURLPresenter.[mh]',
  42. 'Firebase/Auth/Source/**/FIRAuthWebView.[mh]',
  43. 'Firebase/Auth/Source/**/FIRAuthWebViewController.[mh]',
  44. 'Firebase/Auth/Source/**/FIRPhoneAuthCredential.[mh]',
  45. 'Firebase/Auth/Source/**/FIRPhoneAuthProvider.[mh]'
  46. sp.public_header_files = 'Firebase/Auth/Source/Public/*.h'
  47. sp.preserve_paths =
  48. 'Firebase/Auth/README.md',
  49. 'Firebase/Auth/CHANGELOG.md'
  50. sp.xcconfig = { 'OTHER_CFLAGS' => '-DFIRAuth_VERSION=' + s.version.to_s +
  51. ' -DFIRAuth_MINOR_VERSION=' + s.version.to_s.split(".")[0] + "." + s.version.to_s.split(".")[1]
  52. }
  53. sp.framework = 'SafariServices'
  54. sp.framework = 'Security'
  55. sp.dependency 'FirebaseCommunity/Core'
  56. sp.dependency 'GTMSessionFetcher/Core', '~> 1.1'
  57. sp.dependency 'GoogleToolboxForMac/NSDictionary+URLArguments', '~> 2.1'
  58. end
  59. s.subspec 'Database' do |sp|
  60. sp.source_files = 'Firebase/Database/**/*.[mh]',
  61. 'Firebase/Database/third_party/Wrap-leveldb/APLevelDB.mm',
  62. 'Firebase/Database/third_party/SocketRocket/fbase64.c'
  63. sp.public_header_files = 'Firebase/Database/Public/*.h'
  64. sp.library = 'c++'
  65. sp.library = 'icucore'
  66. sp.framework = 'CFNetwork'
  67. sp.framework = 'Security'
  68. sp.framework = 'SystemConfiguration'
  69. sp.dependency 'leveldb-library'
  70. sp.dependency 'FirebaseCommunity/Core'
  71. sp.xcconfig = { 'OTHER_CFLAGS' => '-DFIRDatabase_VERSION=' + s.version.to_s }
  72. end
  73. s.subspec 'Messaging' do |sp|
  74. sp.platform = 'ios'
  75. sp.source_files = 'Firebase/Messaging/**/*.[mh]'
  76. sp.requires_arc = 'Firebase/Messaging/*.m'
  77. sp.public_header_files = 'Firebase/Messaging/Public/*.h'
  78. sp.library = 'sqlite3'
  79. sp.xcconfig ={ 'GCC_PREPROCESSOR_DEFINITIONS' =>
  80. '$(inherited) ' +
  81. 'GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 ' +
  82. 'FIRMessaging_LIB_VERSION=' + String(s.version)
  83. }
  84. sp.framework = 'AddressBook'
  85. sp.framework = 'SystemConfiguration'
  86. sp.dependency 'FirebaseCommunity/Core'
  87. sp.dependency 'GoogleToolboxForMac/Logger', '~> 2.1'
  88. sp.dependency 'Protobuf', '~> 3.1'
  89. end
  90. s.subspec 'Storage' do |sp|
  91. sp.source_files = 'Firebase/Storage/**/*.[mh]'
  92. sp.public_header_files = 'Firebase/Storage/Public/*.h'
  93. sp.ios.framework = 'MobileCoreServices'
  94. sp.osx.framework = 'CoreServices'
  95. sp.dependency 'FirebaseCommunity/Core'
  96. sp.dependency 'GTMSessionFetcher/Core', '~> 1.1'
  97. sp.xcconfig = { 'OTHER_CFLAGS' => '-DFIRStorage_VERSION=' + s.version.to_s }
  98. end
  99. end