FirebaseStorage.podspec 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseStorage'
  3. s.version = '3.7.0'
  4. s.summary = 'Firebase Storage'
  5. s.description = <<-DESC
  6. Firebase Storage provides robust, secure file uploads and downloads from Firebase SDKs, powered by Google Cloud Storage.
  7. DESC
  8. s.homepage = 'https://firebase.google.com'
  9. s.license = { :type => 'Apache', :file => 'LICENSE' }
  10. s.authors = 'Google, Inc.'
  11. s.source = {
  12. :git => 'https://github.com/firebase/firebase-ios-sdk.git',
  13. :tag => 'Storage-' + s.version.to_s
  14. }
  15. s.social_media_url = 'https://twitter.com/Firebase'
  16. s.ios.deployment_target = '8.0'
  17. s.osx.deployment_target = '10.11'
  18. s.tvos.deployment_target = '10.0'
  19. # spec won't validate or push with FirebaseAuth as a test spec dependency.
  20. s.watchos.deployment_target = '6.0'
  21. s.cocoapods_version = '>= 1.4.0'
  22. s.static_framework = true
  23. s.prefix_header_file = false
  24. s.source_files = [
  25. 'FirebaseStorage/Sources/**/*.[mh]',
  26. 'Interop/Auth/Public/*.h',
  27. 'FirebaseCore/Sources/Private/*.h',
  28. ]
  29. s.public_header_files = 'FirebaseStorage/Sources/Public/*.h'
  30. s.ios.framework = 'MobileCoreServices'
  31. s.osx.framework = 'CoreServices'
  32. s.dependency 'FirebaseCore', '~> 6.8'
  33. s.dependency 'GTMSessionFetcher/Core', '~> 1.1'
  34. s.pod_target_xcconfig = {
  35. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  36. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  37. 'FIRStorage_VERSION=' + s.version.to_s,
  38. 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
  39. }
  40. s.test_spec 'unit' do |unit_tests|
  41. unit_tests.source_files = 'FirebaseStorage/Tests/Unit/*.[mh]',
  42. 'Example/Shared/FIRComponentTestUtilities.*',
  43. 'Example/Shared/FIRAuthInteropFake.*'
  44. unit_tests.dependency 'OCMock'
  45. end
  46. s.test_spec 'integration' do |int_tests|
  47. int_tests.source_files = 'FirebaseStorage/Tests/Integration/*.[mh]'
  48. int_tests.requires_app_host = true
  49. int_tests.resources = 'FirebaseStorage/Tests/Integration/Resources/1mb.dat',
  50. 'FirebaseStorage/Tests/Integration/Resources/GoogleService-Info.plist'
  51. int_tests.dependency 'FirebaseAuth', '~> 6.5'
  52. end
  53. s.test_spec 'swift-integration' do |swift_int_tests|
  54. swift_int_tests.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  55. swift_int_tests.source_files = 'FirebaseStorage/Tests/SwiftIntegration/*.swift'
  56. swift_int_tests.requires_app_host = true
  57. swift_int_tests.resources = 'FirebaseStorage/Tests/Integration/Resources/1mb.dat',
  58. 'FirebaseStorage/Tests/Integration/Resources/GoogleService-Info.plist'
  59. swift_int_tests.dependency 'FirebaseAuth', '~> 6.5'
  60. end
  61. end