2019-04-12 19:27:00 -07:00
|
|
|
|
|
|
|
|
Pod::Spec.new do |s|
|
|
|
|
|
s.name = 'GoogleDataTransportCCTSupport'
|
2020-03-31 15:08:06 -04:00
|
|
|
s.version = '2.0.2'
|
2019-04-12 19:27:00 -07:00
|
|
|
s.summary = 'Support library for the GoogleDataTransport CCT backend target.'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
s.description = <<-DESC
|
|
|
|
|
Support library to provide event prioritization and uploading for the GoogleDataTransport CCT backend target.
|
|
|
|
|
DESC
|
|
|
|
|
|
|
|
|
|
s.homepage = 'https://developers.google.com/'
|
|
|
|
|
s.license = { :type => 'Apache', :file => 'LICENSE' }
|
|
|
|
|
s.authors = 'Google, Inc.'
|
|
|
|
|
s.source = {
|
|
|
|
|
:git => 'https://github.com/firebase/firebase-ios-sdk.git',
|
2019-07-18 09:54:06 -07:00
|
|
|
:tag => 'DataTransportCCTSupport-' + s.version.to_s
|
2019-04-12 19:27:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
s.ios.deployment_target = '8.0'
|
2019-05-20 17:12:13 -07:00
|
|
|
s.osx.deployment_target = '10.11'
|
|
|
|
|
s.tvos.deployment_target = '10.0'
|
2019-12-23 16:45:19 -08:00
|
|
|
s.watchos.deployment_target = '6.0'
|
2019-04-12 19:27:00 -07:00
|
|
|
|
2019-09-10 00:12:26 -07:00
|
|
|
# To develop or run the tests, >= 1.8.0.beta.1 must be installed.
|
2019-04-12 19:27:00 -07:00
|
|
|
s.cocoapods_version = '>= 1.4.0'
|
|
|
|
|
|
|
|
|
|
s.static_framework = true
|
|
|
|
|
s.prefix_header_file = false
|
|
|
|
|
|
2019-04-19 17:23:29 -07:00
|
|
|
s.source_files = 'GoogleDataTransportCCTSupport/GDTCCTLibrary/**/*'
|
|
|
|
|
s.private_header_files = 'GoogleDataTransportCCTSupport/GDTCCTLibrary/Private/*.h'
|
2020-02-26 16:59:48 -08:00
|
|
|
s.ios.frameworks = 'SystemConfiguration', 'CoreTelephony'
|
|
|
|
|
s.osx.frameworks = 'SystemConfiguration', 'CoreTelephony'
|
|
|
|
|
s.tvos.frameworks = 'SystemConfiguration'
|
2019-04-12 19:27:00 -07:00
|
|
|
|
2019-09-18 01:11:02 -07:00
|
|
|
s.libraries = ['z']
|
|
|
|
|
|
2020-03-18 06:34:51 -07:00
|
|
|
s.dependency 'GoogleDataTransport', '~> 5.1'
|
2019-09-24 11:01:45 -04:00
|
|
|
s.dependency 'nanopb', '~> 0.3.901'
|
2019-04-12 19:27:00 -07:00
|
|
|
|
2019-04-16 09:56:06 -07:00
|
|
|
header_search_paths = {
|
|
|
|
|
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}/GoogleDataTransportCCTSupport/"'
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-12 19:27:00 -07:00
|
|
|
s.pod_target_xcconfig = {
|
|
|
|
|
'GCC_C_LANGUAGE_STANDARD' => 'c99',
|
|
|
|
|
'GCC_TREAT_WARNINGS_AS_ERRORS' => 'YES',
|
|
|
|
|
'CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY' => 'YES',
|
|
|
|
|
'GCC_PREPROCESSOR_DEFINITIONS' =>
|
|
|
|
|
# The nanopb pod sets these defs, so we must too. (We *do* require 16bit
|
|
|
|
|
# (or larger) fields, so we'd have to set at least PB_FIELD_16BIT
|
|
|
|
|
# anyways.)
|
2019-11-15 01:30:19 -08:00
|
|
|
'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1 GDTCCTSUPPORT_VERSION=' + s.version.to_s,
|
2019-04-16 09:56:06 -07:00
|
|
|
}.merge(header_search_paths)
|
2019-04-12 19:27:00 -07:00
|
|
|
|
2019-10-04 08:54:47 -07:00
|
|
|
# Test app specs
|
|
|
|
|
if ENV['GDT_DEV'] && ENV['GDT_DEV'] == '1' then
|
|
|
|
|
s.app_spec 'TestApp' do |app_spec|
|
2020-01-06 12:54:28 -08:00
|
|
|
app_spec.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
|
2019-10-04 08:54:47 -07:00
|
|
|
app_spec.source_files = 'GoogleDataTransportCCTSupport/GDTCCTTestApp/**/*.swift'
|
|
|
|
|
app_spec.ios.resources = ['GoogleDataTransportCCTSupport/GDTCCTTestApp/ios/*.storyboard']
|
|
|
|
|
app_spec.macos.resources = ['GoogleDataTransportCCTSupport/GDTCCTTestApp/macos/*.storyboard']
|
|
|
|
|
app_spec.tvos.resources = ['GoogleDataTransportCCTSupport/GDTCCTTestApp/tvos/*.storyboard']
|
|
|
|
|
app_spec.dependency 'SwiftProtobuf'
|
|
|
|
|
app_spec.info_plist = {
|
|
|
|
|
'UILaunchStoryboardName' => 'Main',
|
|
|
|
|
'UIMainStoryboardFile' => 'Main',
|
|
|
|
|
'NSMainStoryboardFile' => 'Main'
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
2019-04-12 19:27:00 -07:00
|
|
|
# Test specs
|
|
|
|
|
s.test_spec 'Tests-Unit' do |test_spec|
|
2020-01-06 12:54:28 -08:00
|
|
|
test_spec.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
|
2019-04-12 19:27:00 -07:00
|
|
|
test_spec.requires_app_host = false
|
2019-04-19 17:23:29 -07:00
|
|
|
test_spec.source_files = 'GoogleDataTransportCCTSupport/GDTCCTTests/Unit/**/*.{h,m}'
|
|
|
|
|
test_spec.resources = ['GoogleDataTransportCCTSupport/GDTCCTTests/Data/**/*']
|
2019-04-16 09:56:06 -07:00
|
|
|
test_spec.pod_target_xcconfig = header_search_paths
|
2019-04-12 19:27:00 -07:00
|
|
|
test_spec.dependency 'GCDWebServer'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
s.test_spec 'Tests-Integration' do |test_spec|
|
2020-01-06 12:54:28 -08:00
|
|
|
test_spec.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
|
2019-04-12 19:27:00 -07:00
|
|
|
test_spec.requires_app_host = false
|
2019-04-19 17:23:29 -07:00
|
|
|
test_spec.source_files = 'GoogleDataTransportCCTSupport/GDTCCTTests/Integration/**/*.{h,m}'
|
|
|
|
|
test_spec.resources = ['GoogleDataTransportCCTSupport/GDTCCTTests/Data/**/*']
|
2019-04-16 09:56:06 -07:00
|
|
|
test_spec.pod_target_xcconfig = header_search_paths
|
2019-04-12 19:27:00 -07:00
|
|
|
end
|
|
|
|
|
|
2019-10-04 08:54:47 -07:00
|
|
|
# Monkey test specs, only enabled for development.
|
|
|
|
|
if ENV['GDT_DEV'] && ENV['GDT_DEV'] == '1' then
|
|
|
|
|
s.test_spec 'Tests-Monkey' do |test_spec|
|
2020-01-06 12:54:28 -08:00
|
|
|
test_spec.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
|
2019-10-04 08:54:47 -07:00
|
|
|
test_spec.requires_app_host = true
|
|
|
|
|
test_spec.app_host_name = 'GoogleDataTransportCCTSupport/TestApp'
|
|
|
|
|
test_spec.dependency 'GoogleDataTransportCCTSupport/TestApp'
|
|
|
|
|
test_spec.source_files = ['GoogleDataTransportCCTSupport/GDTCCTTests/Monkey/**/*.{swift}']
|
|
|
|
|
test_spec.info_plist = {
|
|
|
|
|
'GDT_MONKEYTEST' => '1'
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
2019-04-12 19:27:00 -07:00
|
|
|
end
|