2019-07-17 20:07:35 -04:00
|
|
|
Pod::Spec.new do |s|
|
2019-11-07 13:26:52 -05:00
|
|
|
s.name = 'FirebaseInstallations'
|
2021-03-31 07:22:34 -07:00
|
|
|
s.version = '7.10.0'
|
2020-03-31 10:21:48 -07:00
|
|
|
s.summary = 'Firebase Installations'
|
2019-07-17 20:07:35 -04:00
|
|
|
|
2019-11-07 13:26:52 -05:00
|
|
|
s.description = <<-DESC
|
2020-03-31 10:21:48 -07:00
|
|
|
Firebase Installations.
|
2019-11-07 13:26:52 -05:00
|
|
|
DESC
|
2019-07-17 20:07:35 -04:00
|
|
|
|
2019-11-07 13:26:52 -05:00
|
|
|
s.homepage = 'https://firebase.google.com'
|
|
|
|
|
s.license = { :type => 'Apache', :file => 'LICENSE' }
|
|
|
|
|
s.authors = 'Google, Inc.'
|
2019-07-17 20:07:35 -04:00
|
|
|
|
2019-11-07 13:26:52 -05:00
|
|
|
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
|
2019-11-07 13:26:52 -05:00
|
|
|
}
|
|
|
|
|
s.social_media_url = 'https://twitter.com/Firebase'
|
2021-03-18 12:22:16 -07:00
|
|
|
|
|
|
|
|
ios_deployment_target = '9.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
|
2019-07-17 20:07:35 -04:00
|
|
|
|
2019-11-07 13:26:52 -05:00
|
|
|
s.cocoapods_version = '>= 1.4.0'
|
|
|
|
|
s.prefix_header_file = false
|
2019-07-17 20:07:35 -04:00
|
|
|
|
2019-11-07 13:26:52 -05:00
|
|
|
base_dir = "FirebaseInstallations/Source/"
|
2020-06-09 06:09:27 -07:00
|
|
|
s.source_files = [
|
|
|
|
|
base_dir + 'Library/**/*.[mh]',
|
2020-06-16 09:05:29 -07:00
|
|
|
'FirebaseCore/Sources/Private/*.h',
|
2020-06-09 06:09:27 -07:00
|
|
|
]
|
2020-06-17 07:26:40 -07:00
|
|
|
s.public_header_files = [
|
2020-07-31 07:40:55 -07:00
|
|
|
base_dir + 'Library/Public/FirebaseInstallations/*.h',
|
2020-06-17 07:26:40 -07:00
|
|
|
]
|
2019-07-17 20:07:35 -04:00
|
|
|
|
2019-11-07 13:26:52 -05:00
|
|
|
s.framework = 'Security'
|
2020-10-02 12:26:22 -07:00
|
|
|
s.dependency 'FirebaseCore', '~> 7.0'
|
2019-11-07 13:26:52 -05:00
|
|
|
s.dependency 'PromisesObjC', '~> 1.2'
|
2020-10-02 12:26:22 -07:00
|
|
|
s.dependency 'GoogleUtilities/Environment', '~> 7.0'
|
|
|
|
|
s.dependency 'GoogleUtilities/UserDefaults', '~> 7.0'
|
2019-07-17 20:07:35 -04:00
|
|
|
|
2020-10-02 12:26:22 -07:00
|
|
|
preprocessor_definitions = ''
|
2019-11-07 13:26:52 -05:00
|
|
|
if ENV['FIS_ALLOWS_INCOMPATIBLE_IID_VERSION'] && ENV['FIS_ALLOWS_INCOMPATIBLE_IID_VERSION'] == '1' then
|
|
|
|
|
# Disable FirebaseInstanceID compatibility assert to test IID migration.
|
|
|
|
|
preprocessor_definitions += ' FIR_INSTALLATIONS_ALLOWS_INCOMPATIBLE_IID_VERSION=1'
|
|
|
|
|
end
|
|
|
|
|
s.pod_target_xcconfig = {
|
|
|
|
|
'GCC_C_LANGUAGE_STANDARD' => 'c99',
|
2020-06-09 05:21:28 -07:00
|
|
|
'GCC_PREPROCESSOR_DEFINITIONS' => preprocessor_definitions,
|
|
|
|
|
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
|
2019-11-07 13:26:52 -05: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
|
|
|
|
|
}
|
2020-10-01 16:08:39 -04:00
|
|
|
unit_tests.source_files = base_dir + 'Tests/Unit/*.[mh]',
|
|
|
|
|
base_dir + 'Tests/Utils/*.[mh]'
|
2019-11-07 13:26:52 -05:00
|
|
|
unit_tests.resources = base_dir + 'Tests/Fixture/**/*'
|
|
|
|
|
unit_tests.requires_app_host = true
|
2019-11-27 12:08:47 -05:00
|
|
|
unit_tests.dependency 'OCMock'
|
2020-10-01 16:08:39 -04:00
|
|
|
|
|
|
|
|
if ENV['FIS_IID_MIGRATION_TESTING'] && ENV['FIS_IID_MIGRATION_TESTING'] == '1' then
|
|
|
|
|
unit_tests.source_files += base_dir + 'Tests/Unit/IIDStoreTests/*.[mh]'
|
|
|
|
|
unit_tests.dependency 'FirebaseInstanceID', '~> 4.2.0' # The version before FirebaseInstanceID updated to use FirebaseInstallations under the hood.
|
|
|
|
|
end
|
2020-10-02 12:26:22 -07:00
|
|
|
end
|
2019-11-07 13:26:52 -05:00
|
|
|
|
|
|
|
|
s.test_spec 'integration' do |int_tests|
|
2020-12-30 12:50:32 -08:00
|
|
|
int_tests.scheme = { :code_coverage => true }
|
2020-09-22 15:11:35 -07:00
|
|
|
int_tests.platforms = {:ios => '9.0', :osx => '10.12', :tvos => '10.0'}
|
2019-11-07 13:26:52 -05:00
|
|
|
int_tests.source_files = base_dir + 'Tests/Integration/**/*.[mh]'
|
|
|
|
|
int_tests.resources = base_dir + 'Tests/Resources/**/*'
|
|
|
|
|
if ENV['FIS_INTEGRATION_TESTS_REQUIRED'] && ENV['FIS_INTEGRATION_TESTS_REQUIRED'] == '1' then
|
|
|
|
|
int_tests.pod_target_xcconfig = {
|
2019-08-27 17:43:49 -04:00
|
|
|
'GCC_PREPROCESSOR_DEFINITIONS' =>
|
|
|
|
|
'FIR_INSTALLATIONS_INTEGRATION_TESTS_REQUIRED=1'
|
2019-11-07 13:26:52 -05:00
|
|
|
}
|
2019-07-17 20:07:35 -04:00
|
|
|
end
|
2019-11-07 13:26:52 -05:00
|
|
|
int_tests.requires_app_host = true
|
2019-11-27 12:08:47 -05:00
|
|
|
int_tests.dependency 'OCMock'
|
2019-07-17 20:07:35 -04:00
|
|
|
end
|
2019-11-07 13:26:52 -05:00
|
|
|
end
|