2017-11-21 17:02:22 -08:00
|
|
|
Pod::Spec.new do |s|
|
|
|
|
|
s.name = 'FirebaseMessaging'
|
2020-09-14 11:32:04 -07:00
|
|
|
s.version = '4.99.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',
|
2018-04-17 07:02:01 -07:00
|
|
|
:tag => 'Messaging-' + s.version.to_s
|
2017-11-21 17:02:22 -08:00
|
|
|
}
|
|
|
|
|
s.social_media_url = 'https://twitter.com/Firebase'
|
2020-09-22 15:11:35 -07:00
|
|
|
s.ios.deployment_target = '10.0'
|
|
|
|
|
s.osx.deployment_target = '10.12'
|
2019-03-05 11:57:10 -08:00
|
|
|
s.tvos.deployment_target = '10.0'
|
2019-12-23 16:45:19 -08:00
|
|
|
s.watchos.deployment_target = '6.0'
|
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 = [
|
|
|
|
|
base_dir + 'Sources/**/*.[mh]',
|
|
|
|
|
'Interop/Analytics/Public/*.h',
|
|
|
|
|
'FirebaseCore/Sources/Private/*.h',
|
2020-09-23 13:55:15 -07:00
|
|
|
'Firebase/InstanceID/Private/*.h',
|
|
|
|
|
'Firebase/InstanceID/Public/*.h',
|
2020-06-25 15:54:44 -07:00
|
|
|
'FirebaseInstallations/Source/Library/Private/*.h',
|
2020-06-16 09:05:29 -07:00
|
|
|
'GoogleUtilities/AppDelegateSwizzler/Private/*.h',
|
|
|
|
|
'GoogleUtilities/Environment/Private/*.h',
|
|
|
|
|
'GoogleUtilities/Reachability/Private/*.h',
|
|
|
|
|
'GoogleUtilities/UserDefaults/Private/*.h',
|
2020-06-09 06:09:27 -07:00
|
|
|
]
|
2020-04-23 14:43:47 -07:00
|
|
|
s.requires_arc = base_dir + 'Sources/*.m'
|
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',
|
2017-11-21 17:02:22 -08:00
|
|
|
'GCC_PREPROCESSOR_DEFINITIONS' =>
|
2019-08-07 17:00:01 -07:00
|
|
|
'FIRMessaging_LIB_VERSION=' + String(s.version),
|
|
|
|
|
# Unit tests do library imports using repo-root relative paths.
|
|
|
|
|
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
|
|
|
|
|
}
|
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'
|
2020-08-04 12:27:12 -07:00
|
|
|
s.dependency 'FirebaseCore', '~> 6.10'
|
2020-09-14 16:45:55 -07:00
|
|
|
s.dependency 'FirebaseInstanceID', '~> 4.7'
|
2020-06-16 09:05:29 -07:00
|
|
|
s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 6.7'
|
|
|
|
|
s.dependency 'GoogleUtilities/Reachability', '~> 6.7'
|
|
|
|
|
s.dependency 'GoogleUtilities/Environment', '~> 6.7'
|
|
|
|
|
s.dependency 'GoogleUtilities/UserDefaults', '~> 6.7'
|
2019-05-28 11:36:31 -07:00
|
|
|
|
|
|
|
|
s.test_spec 'unit' do |unit_tests|
|
2020-09-22 15:11:35 -07:00
|
|
|
unit_tests.platforms = {:ios => '10.0', :osx => '10.12', :tvos => '10.0'}
|
2020-09-23 13:55:15 -07:00
|
|
|
unit_tests.source_files = 'FirebaseMessaging/Tests/UnitTests*/*.{m,h,swift}'
|
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-09-22 15:11:35 -07:00
|
|
|
int_tests.platforms = {:ios => '10.0', :osx => '10.12', :tvos => '10.0'}
|
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
|