FirebaseInstallations.podspec 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseInstallations'
  3. s.version = '0.1.0'
  4. s.summary = 'Firebase Installations for iOS'
  5. s.description = <<-DESC
  6. Firebase Installations for iOS.
  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 => 'Installations-' + 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. s.cocoapods_version = '>= 1.4.0'
  20. s.static_framework = true
  21. s.prefix_header_file = false
  22. base_dir = "FirebaseInstallations/Source/"
  23. s.source_files = base_dir + 'Library/**/*.[mh]'
  24. s.public_header_files = base_dir + 'Library/Public/*.h'
  25. s.pod_target_xcconfig = {
  26. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  27. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  28. 'FIRInstallations_LIB_VERSION=' + String(s.version)
  29. }
  30. s.framework = 'Security'
  31. s.dependency 'FirebaseCore', '~> 6.0'
  32. s.dependency 'PromisesObjC', '~> 1.2'
  33. s.dependency 'GoogleUtilities/UserDefaults', '~> 6.2'
  34. s.test_spec 'unit' do |unit_tests|
  35. unit_tests.source_files = base_dir + 'Tests/Unit/**/*.[mh]',
  36. base_dir + 'Tests/Utils/**/*.[mh]'
  37. unit_tests.resources = base_dir + 'Tests/Fixture/**/*'
  38. unit_tests.requires_app_host = true
  39. unit_tests.dependency 'OCMock'
  40. unit_tests.dependency 'FirebaseInstanceID', '~> 4.2.0' # The version before FirebaseInstanceID updated to use FirebaseInstallations under the hood.
  41. end
  42. s.test_spec 'integration' do |int_tests|
  43. int_tests.source_files = base_dir + 'Tests/Integration/**/*.[mh]'
  44. int_tests.resources = base_dir + 'Tests/Resources/**/*'
  45. int_tests.requires_app_host = true
  46. int_tests.dependency 'OCMock'
  47. end
  48. end