2017-11-21 17:02:22 -08:00
|
|
|
Pod::Spec.new do |s|
|
|
|
|
|
s.name = 'FirebaseCore'
|
2021-04-23 13:49:36 -07:00
|
|
|
s.version = '8.0.0'
|
2020-03-31 10:21:48 -07:00
|
|
|
s.summary = 'Firebase Core'
|
2017-11-21 17:02:22 -08:00
|
|
|
|
|
|
|
|
s.description = <<-DESC
|
|
|
|
|
Firebase Core includes FIRApp and FIROptions which provide central configuration for other Firebase services.
|
|
|
|
|
DESC
|
|
|
|
|
|
|
|
|
|
s.homepage = 'https://firebase.google.com'
|
|
|
|
|
s.license = { :type => 'Apache', :file => 'LICENSE' }
|
|
|
|
|
s.authors = 'Google, Inc.'
|
|
|
|
|
|
|
|
|
|
s.source = {
|
|
|
|
|
:git => 'https://github.com/firebase/firebase-ios-sdk.git',
|
2020-10-02 12:26:22 -07:00
|
|
|
:tag => 'CocoaPods-' + s.version.to_s
|
2017-11-21 17:02:22 -08:00
|
|
|
}
|
2020-10-02 12:26:22 -07:00
|
|
|
|
2017-11-21 17:02:22 -08:00
|
|
|
s.social_media_url = 'https://twitter.com/Firebase'
|
2020-12-14 12:12:47 -05:00
|
|
|
|
|
|
|
|
ios_deployment_target = '9.0'
|
|
|
|
|
osx_deployment_target = '10.12'
|
|
|
|
|
tvos_deployment_target = '10.0'
|
|
|
|
|
watchos_deployment_target = '6.0'
|
|
|
|
|
|
|
|
|
|
s.ios.deployment_target = ios_deployment_target
|
|
|
|
|
s.osx.deployment_target = osx_deployment_target
|
|
|
|
|
s.tvos.deployment_target = tvos_deployment_target
|
|
|
|
|
s.watchos.deployment_target = watchos_deployment_target
|
2017-11-21 17:02:22 -08:00
|
|
|
|
2018-02-16 07:43:20 -08:00
|
|
|
s.cocoapods_version = '>= 1.4.0'
|
2017-11-21 17:02:22 -08:00
|
|
|
s.prefix_header_file = false
|
|
|
|
|
|
2020-06-09 06:09:27 -07:00
|
|
|
s.source_files = [
|
|
|
|
|
'FirebaseCore/Sources/**/*.[mh]',
|
|
|
|
|
'Interop/CoreDiagnostics/Public/*.h',
|
|
|
|
|
]
|
2020-07-23 05:47:01 -07:00
|
|
|
s.public_header_files = [
|
|
|
|
|
'FirebaseCore/Sources/Public/FirebaseCore/*.h',
|
|
|
|
|
'FirebaseCore/Sources/Private/*.h',
|
|
|
|
|
]
|
2020-01-06 07:11:40 -08:00
|
|
|
s.private_header_files = 'FirebaseCore/Sources/Private/*.h'
|
2020-06-09 06:09:27 -07:00
|
|
|
|
2018-10-25 09:42:45 -07:00
|
|
|
s.framework = 'Foundation'
|
2019-07-29 15:50:13 -07:00
|
|
|
s.ios.framework = 'UIKit'
|
|
|
|
|
s.osx.framework = 'AppKit'
|
|
|
|
|
s.tvos.framework = 'UIKit'
|
2021-04-27 07:58:54 -07:00
|
|
|
s.dependency 'GoogleUtilities/Environment', '~> 7.4'
|
|
|
|
|
s.dependency 'GoogleUtilities/Logger', '~> 7.4'
|
2021-04-23 13:49:36 -07:00
|
|
|
s.dependency 'FirebaseCoreDiagnostics', '~> 8.0'
|
2019-07-18 09:54:06 -07:00
|
|
|
|
2018-01-01 17:43:54 -08:00
|
|
|
s.pod_target_xcconfig = {
|
2018-10-24 11:04:00 -07:00
|
|
|
'GCC_C_LANGUAGE_STANDARD' => 'c99',
|
2020-10-02 12:26:22 -07:00
|
|
|
'GCC_PREPROCESSOR_DEFINITIONS' => 'Firebase_VERSION=' + s.version.to_s,
|
2020-01-06 07:11:40 -08:00
|
|
|
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
|
2018-10-24 11:04:00 -07:00
|
|
|
'OTHER_CFLAGS' => '-fno-autolink'
|
2018-01-01 17:43:54 -08:00
|
|
|
}
|
2019-05-06 13:54:34 -07:00
|
|
|
s.test_spec 'unit' do |unit_tests|
|
2020-12-30 12:50:32 -08:00
|
|
|
unit_tests.scheme = { :code_coverage => true }
|
2021-03-18 12:22:16 -07:00
|
|
|
unit_tests.platforms = {
|
|
|
|
|
:ios => ios_deployment_target,
|
|
|
|
|
:osx => osx_deployment_target,
|
|
|
|
|
:tvos => tvos_deployment_target
|
|
|
|
|
}
|
2020-09-28 14:08:16 -07:00
|
|
|
unit_tests.source_files = [
|
|
|
|
|
'FirebaseCore/Tests/Unit/**/*.[mh]',
|
|
|
|
|
'SharedTestUtilities/FIROptionsMock.[mh]',
|
|
|
|
|
]
|
2019-05-06 13:54:34 -07:00
|
|
|
unit_tests.requires_app_host = true
|
|
|
|
|
unit_tests.dependency 'OCMock'
|
2020-01-06 07:11:40 -08:00
|
|
|
unit_tests.resources = 'FirebaseCore/Tests/Unit/Resources/GoogleService-Info.plist'
|
2019-05-06 13:54:34 -07:00
|
|
|
end
|
2019-12-06 15:45:52 -05:00
|
|
|
|
|
|
|
|
s.test_spec 'swift-unit' do |swift_unit_tests|
|
2021-03-18 12:22:16 -07:00
|
|
|
swift_unit_tests.platforms = {
|
|
|
|
|
:ios => ios_deployment_target,
|
|
|
|
|
:osx => osx_deployment_target,
|
|
|
|
|
:tvos => tvos_deployment_target
|
|
|
|
|
}
|
2020-09-28 14:08:16 -07:00
|
|
|
swift_unit_tests.source_files = [
|
|
|
|
|
'FirebaseCore/Tests/SwiftUnit/**/*.swift',
|
|
|
|
|
'FirebaseCore/Tests/SwiftUnit/**/*.h',
|
|
|
|
|
'FirebaseCore/Tests/SwiftUnit/SwiftTestingUtilities/*',
|
|
|
|
|
'SharedTestUtilities/FIROptionsMock.[mh]',
|
|
|
|
|
]
|
2019-12-06 15:45:52 -05:00
|
|
|
swift_unit_tests.pod_target_xcconfig = {
|
2020-07-06 09:29:20 -07:00
|
|
|
'SWIFT_OBJC_BRIDGING_HEADER' => '$(PODS_TARGET_SRCROOT)/FirebaseCore/Tests/SwiftUnit/FirebaseCore-unit-Bridging-Header.h'
|
2019-12-06 15:45:52 -05:00
|
|
|
}
|
2020-09-28 14:08:16 -07:00
|
|
|
swift_unit_tests.dependency 'OCMock'
|
|
|
|
|
swift_unit_tests.resources = 'FirebaseCore/Tests/Unit/Resources/GoogleService-Info.plist'
|
2019-12-06 15:45:52 -05:00
|
|
|
end
|
2017-11-21 17:02:22 -08:00
|
|
|
end
|