|
| 1 | +Pod::Spec.new do |s| |
| 2 | + s.name = 'FirebaseCombineSwift' |
| 3 | + s.version = '7.6.0' |
| 4 | + s.summary = 'Swift extensions with Combine support for Firebase' |
| 5 | + |
| 6 | + s.description = <<-DESC |
| 7 | +Combine Publishers for Firebase. |
| 8 | + DESC |
| 9 | + |
| 10 | + s.homepage = 'https://firebase.google.com' |
| 11 | + s.license = { :type => 'Apache', :file => 'LICENSE' } |
| 12 | + s.authors = 'Google, Inc.' |
| 13 | + |
| 14 | + s.source = { |
| 15 | + :git => 'https://github.com/firebase/firebase-ios-sdk.git', |
| 16 | + :tag => 'CocoaPods-' + s.version.to_s |
| 17 | + } |
| 18 | + |
| 19 | + s.social_media_url = 'https://twitter.com/Firebase' |
| 20 | + |
| 21 | + s.swift_version = '5.0' |
| 22 | + |
| 23 | + ios_deployment_target = '13.0' |
| 24 | + osx_deployment_target = '10.15' |
| 25 | + tvos_deployment_target = '13.0' |
| 26 | + watchos_deployment_target = '6.0' |
| 27 | + |
| 28 | + s.ios.deployment_target = ios_deployment_target |
| 29 | + s.osx.deployment_target = osx_deployment_target |
| 30 | + s.tvos.deployment_target = tvos_deployment_target |
| 31 | + s.watchos.deployment_target = watchos_deployment_target |
| 32 | + |
| 33 | + s.cocoapods_version = '>= 1.4.0' |
| 34 | + s.prefix_header_file = false |
| 35 | + |
| 36 | + source = 'FirebaseCombineSwift/Sources/' |
| 37 | + s.exclude_files = [ |
| 38 | + source + 'Core/**/*.swift', |
| 39 | + ] |
| 40 | + s.source_files = [ |
| 41 | + source + '**/*.swift', |
| 42 | + source + '**/*.m', |
| 43 | + ] |
| 44 | + s.public_header_files = [ |
| 45 | + source + '**/*.h', |
| 46 | + ] |
| 47 | + |
| 48 | + s.framework = 'Foundation' |
| 49 | + s.ios.framework = 'UIKit' |
| 50 | + s.osx.framework = 'AppKit' |
| 51 | + s.tvos.framework = 'UIKit' |
| 52 | + |
| 53 | + s.dependency 'FirebaseCore', '~> 7.6' |
| 54 | + s.dependency 'FirebaseAuth', '~> 7.6' |
| 55 | + s.dependency 'FirebaseFunctions', '~> 7.6' |
| 56 | + s.dependency 'FirebaseStorage', '~> 7.6' |
| 57 | + s.dependency 'FirebaseStorageSwift', '~> 7.6-beta' |
| 58 | + |
| 59 | + s.pod_target_xcconfig = { |
| 60 | + 'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"', |
| 61 | + } |
| 62 | + |
| 63 | + s.test_spec 'unit' do |unit_tests| |
| 64 | + unit_tests.scheme = { :code_coverage => true } |
| 65 | + unit_tests.platforms = { |
| 66 | + :ios => ios_deployment_target, |
| 67 | + :osx => osx_deployment_target, |
| 68 | + :tvos => tvos_deployment_target |
| 69 | + } |
| 70 | + unit_tests.source_files = [ |
| 71 | + 'FirebaseCombineSwift/Tests/Unit/**/*.swift', |
| 72 | + 'FirebaseCombineSwift/Tests/Unit/**/*.h', |
| 73 | + 'SharedTestUtilities/FIROptionsMock.[mh]', |
| 74 | + 'SharedTestUtilities/FIRComponentTestUtilities.[mh]', |
| 75 | + ] |
| 76 | + unit_tests.exclude_files = 'FirebaseCombineSwift/Tests/Unit/**/*Template.swift' |
| 77 | + unit_tests.requires_app_host = true |
| 78 | + unit_tests.pod_target_xcconfig = { |
| 79 | + 'SWIFT_OBJC_BRIDGING_HEADER' => '$(PODS_TARGET_SRCROOT)/FirebaseCombineSwift/Tests/Unit/FirebaseCombine-unit-Bridging-Header.h' |
| 80 | + } |
| 81 | + unit_tests.dependency 'OCMock' |
| 82 | + unit_tests.dependency 'FirebaseAuthTestingSupport' |
| 83 | + unit_tests.dependency 'FirebaseFunctionsTestingSupport' |
| 84 | + end |
| 85 | +end |
0 commit comments