FirebaseDatabase.podspec 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. Pod::Spec.new do |s|
  2. s.name = 'FirebaseDatabase'
  3. s.version = '6.0.0'
  4. s.summary = 'Firebase Open Source Libraries for iOS (plus community support for macOS and tvOS)'
  5. s.description = <<-DESC
  6. Simplify your iOS development, grow your user base, and monetize more effectively with Firebase.
  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 => 'Database-' + 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 = "Firebase/Database/"
  23. s.source_files = base_dir + '**/*.[mh]',
  24. base_dir + 'third_party/Wrap-leveldb/APLevelDB.mm',
  25. base_dir + 'third_party/SocketRocket/fbase64.c'
  26. s.public_header_files = base_dir + 'Public/*.h'
  27. s.libraries = ['c++', 'icucore']
  28. s.frameworks = 'CFNetwork', 'Security', 'SystemConfiguration'
  29. s.dependency 'leveldb-library', '~> 1.18'
  30. s.dependency 'FirebaseAuthInterop', '~> 1.0'
  31. s.dependency 'FirebaseCore', '~> 6.0'
  32. s.pod_target_xcconfig = {
  33. 'GCC_C_LANGUAGE_STANDARD' => 'c99',
  34. 'GCC_PREPROCESSOR_DEFINITIONS' =>
  35. 'FIRDatabase_VERSION=' + s.version.to_s
  36. }
  37. s.test_spec 'unit' do |unit_tests|
  38. unit_tests.source_files = 'Example/Database/Tests/Unit/*.[mh]',
  39. 'Example/Database/Tests/Helpers/*.[mh]',
  40. 'Example/Database/Tests/third_party/*.[mh]',
  41. 'Example/Shared/FIRAuthInteropFake.[mh]',
  42. 'Example/Shared/FIRComponentTestUtilities.h'
  43. unit_tests.resources = 'Example/Database/Tests/infoPlist.strings',
  44. 'Example/Database/Tests/syncPointSpec.json',
  45. 'Example/Database/App/GoogleService-Info.plist'
  46. end
  47. s.test_spec 'integration' do |int_tests|
  48. int_tests.source_files = 'Example/Database/Tests/Integration/*.[mh]',
  49. 'Example/Database/Tests/Helpers/*.[mh]',
  50. 'Example/Shared/FIRAuthInteropFake.[mh]'
  51. int_tests.resources = 'Example/Database/App/GoogleService-Info.plist'
  52. end
  53. end