2017-11-21 17:02:22 -08:00
|
|
|
Pod::Spec.new do |s|
|
|
|
|
|
s.name = 'FirebaseCore'
|
2025-11-13 22:34:32 -05:00
|
|
|
s.version = '12.7.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'
|
2022-05-09 13:23:42 +00:00
|
|
|
s.license = { :type => 'Apache-2.0', :file => 'LICENSE' }
|
2017-11-21 17:02:22 -08:00
|
|
|
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
|
|
|
|
2025-06-24 13:22:47 -04:00
|
|
|
ios_deployment_target = '15.0'
|
2024-06-05 07:39:36 -07:00
|
|
|
osx_deployment_target = '10.15'
|
2025-06-24 13:22:47 -04:00
|
|
|
tvos_deployment_target = '15.0'
|
2024-06-05 07:39:36 -07:00
|
|
|
watchos_deployment_target = '7.0'
|
2020-12-14 12:12:47 -05:00
|
|
|
|
|
|
|
|
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
|
|
|
|
2024-01-26 13:38:44 -08:00
|
|
|
s.cocoapods_version = '>= 1.12.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]',
|
2022-09-26 00:03:55 -04:00
|
|
|
'FirebaseCore/Extension/*.h'
|
2020-06-09 06:09:27 -07:00
|
|
|
]
|
2021-12-30 14:19:42 -05:00
|
|
|
|
2024-02-23 15:08:29 -08:00
|
|
|
s.resource_bundles = {
|
|
|
|
|
"#{s.module_name}_Privacy" => 'FirebaseCore/Sources/Resources/PrivacyInfo.xcprivacy'
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-05 07:39:36 -07:00
|
|
|
s.swift_version = '5.9'
|
2021-12-30 14:19:42 -05:00
|
|
|
|
2022-04-15 23:49:11 -04:00
|
|
|
s.public_header_files = 'FirebaseCore/Sources/Public/FirebaseCore/*.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'
|
2022-08-31 12:27:44 -04:00
|
|
|
s.watchos.framework = 'WatchKit'
|
2021-04-28 12:29:33 -04:00
|
|
|
|
|
|
|
|
# Remember to also update version in `cmake/external/GoogleUtilities.cmake`
|
2025-05-02 15:35:27 -04:00
|
|
|
s.dependency 'GoogleUtilities/Environment', '~> 8.1'
|
|
|
|
|
s.dependency 'GoogleUtilities/Logger', '~> 8.1'
|
2025-11-13 22:34:32 -05:00
|
|
|
s.dependency 'FirebaseCoreInternal', '~> 12.7.0'
|
2019-07-18 09:54:06 -07:00
|
|
|
|
2018-01-01 17:43:54 -08:00
|
|
|
s.pod_target_xcconfig = {
|
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
|
|
|
}
|
2021-12-30 14:19:42 -05:00
|
|
|
|
2023-06-01 13:31:39 -04:00
|
|
|
s.test_spec 'unit' do |unit_tests|
|
|
|
|
|
unit_tests.scheme = { :code_coverage => true }
|
|
|
|
|
unit_tests.platforms = {
|
|
|
|
|
:ios => ios_deployment_target,
|
|
|
|
|
:osx => '10.15',
|
|
|
|
|
:tvos => tvos_deployment_target
|
|
|
|
|
}
|
|
|
|
|
unit_tests.source_files = [
|
|
|
|
|
'FirebaseCore/Tests/Unit/**/*.[mh]',
|
|
|
|
|
'SharedTestUtilities/FIROptionsMock.[mh]',
|
|
|
|
|
]
|
2021-12-30 14:19:42 -05:00
|
|
|
|
2023-06-01 13:31:39 -04:00
|
|
|
unit_tests.requires_app_host = true
|
|
|
|
|
unit_tests.dependency 'OCMock'
|
|
|
|
|
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/*',
|
2022-03-30 13:31:25 -07:00
|
|
|
'SharedTestUtilities/ExceptionCatcher.[mh]',
|
2020-09-28 14:08:16 -07:00
|
|
|
'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
|
|
|
}
|
2023-04-27 08:12:42 -07:00
|
|
|
swift_unit_tests.requires_app_host = true
|
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
|