2017-11-21 17:02:22 -08:00
|
|
|
Pod::Spec.new do |s|
|
|
|
|
|
s.name = 'FirebaseMessaging'
|
2021-10-07 19:09:40 -07:00
|
|
|
s.version = '8.9.0'
|
2020-03-31 10:21:48 -07:00
|
|
|
s.summary = 'Firebase Messaging'
|
2017-11-21 17:02:22 -08:00
|
|
|
|
|
|
|
|
s.description = <<-DESC
|
2020-03-31 10:21:48 -07:00
|
|
|
Firebase Messaging is a service that allows you to send data from your server to your users'
|
2017-11-21 17:02:22 -08:00
|
|
|
iOS device, and also to receive messages from devices on the same connection. The service handles
|
2020-03-31 10:21:48 -07:00
|
|
|
all aspects of queueing of messages and delivery to the target application running on the target
|
2017-11-21 17:02:22 -08:00
|
|
|
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
|
2017-11-21 17:02:22 -08:00
|
|
|
}
|
|
|
|
|
s.social_media_url = 'https://twitter.com/Firebase'
|
2021-03-18 12:22:16 -07:00
|
|
|
|
|
|
|
|
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
|
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-04-23 14:43:47 -07:00
|
|
|
base_dir = "FirebaseMessaging/"
|
2020-06-09 06:09:27 -07:00
|
|
|
s.source_files = [
|
2021-07-29 18:30:50 -07:00
|
|
|
base_dir + 'Sources/**/*',
|
|
|
|
|
base_dir + 'Sources/Protogen/nanopb/*.h',
|
2020-06-09 06:09:27 -07:00
|
|
|
'Interop/Analytics/Public/*.h',
|
|
|
|
|
'FirebaseCore/Sources/Private/*.h',
|
2021-03-31 09:52:55 -07:00
|
|
|
'FirebaseInstallations/Source/Library/Private/*.h',
|
2020-06-09 06:09:27 -07:00
|
|
|
]
|
2020-09-23 13:55:15 -07:00
|
|
|
s.public_header_files = base_dir + 'Sources/Public/FirebaseMessaging/*.h'
|
2017-11-21 17:02:22 -08:00
|
|
|
s.library = 'sqlite3'
|
|
|
|
|
s.pod_target_xcconfig = {
|
2018-10-24 11:04:00 -07:00
|
|
|
'GCC_C_LANGUAGE_STANDARD' => 'c99',
|
2021-07-29 18:30:50 -07:00
|
|
|
'GCC_PREPROCESSOR_DEFINITIONS' =>
|
|
|
|
|
# for nanopb:
|
|
|
|
|
'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
|
2019-08-07 17:00:01 -07:00
|
|
|
# Unit tests do library imports using repo-root relative paths.
|
|
|
|
|
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
|
2021-07-29 18:30:50 -07:00
|
|
|
}
|
2019-12-23 16:45:19 -08:00
|
|
|
s.ios.framework = 'SystemConfiguration'
|
|
|
|
|
s.tvos.framework = 'SystemConfiguration'
|
|
|
|
|
s.osx.framework = 'SystemConfiguration'
|
2019-05-01 19:32:25 -07:00
|
|
|
s.weak_framework = 'UserNotifications'
|
2021-04-23 13:49:36 -07:00
|
|
|
s.dependency 'FirebaseInstallations', '~> 8.0'
|
|
|
|
|
s.dependency 'FirebaseCore', '~> 8.0'
|
2021-10-01 22:54:18 +07:00
|
|
|
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'
|
2021-07-29 18:30:50 -07:00
|
|
|
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 }
|
2021-03-18 12:22:16 -07:00
|
|
|
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 = {
|
2019-08-07 17:00:01 -07:00
|
|
|
'CLANG_ENABLE_OBJC_WEAK' => 'YES'
|
2019-05-28 11:36:31 -07:00
|
|
|
}
|
2019-11-19 19:21:26 -08:00
|
|
|
unit_tests.dependency 'OCMock'
|
2019-05-28 11:36:31 -07:00
|
|
|
end
|
2020-04-15 11:39:34 -07:00
|
|
|
|
|
|
|
|
s.test_spec 'integration' do |int_tests|
|
2020-12-30 12:50:32 -08:00
|
|
|
int_tests.scheme = { :code_coverage => true }
|
2021-03-18 12:22:16 -07:00
|
|
|
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'
|
2020-04-15 11:39:34 -07:00
|
|
|
int_tests.requires_app_host = true
|
2020-04-23 14:43:47 -07:00
|
|
|
int_tests.resources = 'FirebaseMessaging/Tests/IntegrationTests/Resources/GoogleService-Info.plist'
|
2020-04-15 11:39:34 -07:00
|
|
|
end
|
2017-11-21 17:02:22 -08:00
|
|
|
end
|