Files
firebase-ios-sdk/FirebaseMessaging.podspec
T

96 lines
3.5 KiB
Ruby
Raw Normal View History

Pod::Spec.new do |s|
s.name = 'FirebaseMessaging'
2021-10-07 19:09:40 -07:00
s.version = '8.9.0'
s.summary = 'Firebase Messaging'
s.description = <<-DESC
Firebase Messaging is a service that allows you to send data from your server to your users'
iOS device, and also to receive messages from devices on the same connection. The service handles
all aspects of queueing of messages and delivery to the target application running on the target
device, and it is completely free.
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
}
s.social_media_url = 'https://twitter.com/Firebase'
ios_deployment_target = '10.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
s.cocoapods_version = '>= 1.4.0'
s.prefix_header_file = false
2020-04-23 14:43:47 -07:00
base_dir = "FirebaseMessaging/"
s.source_files = [
base_dir + 'Sources/**/*',
base_dir + 'Sources/Protogen/nanopb/*.h',
'Interop/Analytics/Public/*.h',
'FirebaseCore/Sources/Private/*.h',
2021-03-31 09:52:55 -07:00
'FirebaseInstallations/Source/Library/Private/*.h',
]
2020-09-23 13:55:15 -07:00
s.public_header_files = base_dir + 'Sources/Public/FirebaseMessaging/*.h'
s.library = 'sqlite3'
s.pod_target_xcconfig = {
2018-10-24 11:04:00 -07:00
'GCC_C_LANGUAGE_STANDARD' => 'c99',
'GCC_PREPROCESSOR_DEFINITIONS' =>
# for nanopb:
'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
# Unit tests do library imports using repo-root relative paths.
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
}
s.ios.framework = 'SystemConfiguration'
s.tvos.framework = 'SystemConfiguration'
s.osx.framework = 'SystemConfiguration'
s.weak_framework = 'UserNotifications'
2021-04-23 13:49:36 -07:00
s.dependency 'FirebaseInstallations', '~> 8.0'
s.dependency 'FirebaseCore', '~> 8.0'
s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 7.5'
s.dependency 'GoogleUtilities/Reachability', '~> 7.5'
s.dependency 'GoogleUtilities/Environment', '~> 7.5'
s.dependency 'GoogleUtilities/UserDefaults', '~> 7.5'
2021-10-01 12:00:49 -07:00
s.dependency 'GoogleDataTransport', '~> 9.1'
s.dependency 'nanopb', '~> 2.30908.0'
2019-05-28 11:36:31 -07:00
s.test_spec 'unit' do |unit_tests|
2020-12-30 12:50:32 -08:00
unit_tests.scheme = { :code_coverage => true }
unit_tests.platforms = {
:ios => ios_deployment_target,
:osx => osx_deployment_target,
:tvos => tvos_deployment_target
}
2021-03-31 09:52:55 -07:00
unit_tests.source_files = [
'FirebaseMessaging/Tests/UnitTests*/*.{m,h,swift}',
'SharedTestUtilities/URLSession/*.[mh]',
]
2019-05-28 11:36:31 -07:00
unit_tests.requires_app_host = true
unit_tests.pod_target_xcconfig = {
'CLANG_ENABLE_OBJC_WEAK' => 'YES'
2019-05-28 11:36:31 -07:00
}
unit_tests.dependency 'OCMock'
2019-05-28 11:36:31 -07:00
end
s.test_spec 'integration' do |int_tests|
2020-12-30 12:50:32 -08:00
int_tests.scheme = { :code_coverage => true }
int_tests.platforms = {
:ios => ios_deployment_target,
:osx => osx_deployment_target,
:tvos => tvos_deployment_target
}
2020-04-23 14:43:47 -07:00
int_tests.source_files = 'FirebaseMessaging/Tests/IntegrationTests/*.swift'
int_tests.requires_app_host = true
2020-04-23 14:43:47 -07:00
int_tests.resources = 'FirebaseMessaging/Tests/IntegrationTests/Resources/GoogleService-Info.plist'
end
end