FirebaseInstallations.podspec 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseInstallations'
  3. s.version = '1.0.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.watchos.deployment_target = '6.0'
  20. s.cocoapods_version = '>= 1.4.0'
  21. s.static_framework = true
  22. s.prefix_header_file = false
  23. base_dir = "FirebaseInstallations/Source/"
  24. s.source_files = base_dir + 'Library/**/*.[mh]'
  25. s.public_header_files = base_dir + 'Library/Public/*.h'
  26. s.framework = 'Security'
  27. s.dependency 'FirebaseCore', '~> 6.6'
  28. s.dependency 'PromisesObjC', '~> 1.2'
  29. s.dependency 'GoogleUtilities/UserDefaults', '~> 6.5'
  30. preprocessor_definitions = 'FIRInstallations_LIB_VERSION=' + String(s.version)
  31. if ENV['FIS_ALLOWS_INCOMPATIBLE_IID_VERSION'] && ENV['FIS_ALLOWS_INCOMPATIBLE_IID_VERSION'] == '1' then
  32. # Disable FirebaseInstanceID compatibility assert to test IID migration.
  33. preprocessor_definitions += ' FIR_INSTALLATIONS_ALLOWS_INCOMPATIBLE_IID_VERSION=1'
  34. end
  35. s.pod_target_xcconfig = {
  36. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  37. 'GCC_PREPROCESSOR_DEFINITIONS' => preprocessor_definitions
  38. }
  39. s.test_spec 'unit' do |unit_tests|
  40. unit_tests.source_files = base_dir + 'Tests/Unit/**/*.[mh]',
  41. base_dir + 'Tests/Utils/**/*.[mh]'
  42. unit_tests.resources = base_dir + 'Tests/Fixture/**/*'
  43. unit_tests.requires_app_host = true
  44. unit_tests.dependency 'OCMock'
  45. unit_tests.dependency 'FirebaseInstanceID', '~> 4.2.0' # The version before FirebaseInstanceID updated to use FirebaseInstallations under the hood.
  46. end
  47. s.test_spec 'integration' do |int_tests|
  48. int_tests.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
  49. int_tests.source_files = base_dir + 'Tests/Integration/**/*.[mh]'
  50. int_tests.resources = base_dir + 'Tests/Resources/**/*'
  51. if ENV['FIS_INTEGRATION_TESTS_REQUIRED'] && ENV['FIS_INTEGRATION_TESTS_REQUIRED'] == '1' then
  52. int_tests.pod_target_xcconfig = {
  53. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  54. 'FIR_INSTALLATIONS_INTEGRATION_TESTS_REQUIRED=1'
  55. }
  56. end
  57. int_tests.requires_app_host = true
  58. int_tests.dependency 'OCMock'
  59. end
  60. end