2019-08-21 14:26:41 -07:00
|
|
|
Pod::Spec.new do |s|
|
|
|
|
|
s.name = 'FirebaseRemoteConfig'
|
2025-05-20 20:07:51 -04:00
|
|
|
s.version = '11.14.0'
|
2020-03-31 10:21:48 -07:00
|
|
|
s.summary = 'Firebase Remote Config'
|
2019-08-21 14:26:41 -07:00
|
|
|
|
|
|
|
|
s.description = <<-DESC
|
|
|
|
|
Firebase Remote Config is a cloud service that lets you change the
|
|
|
|
|
appearance and behavior of your app without requiring users to download an
|
|
|
|
|
app update.
|
|
|
|
|
DESC
|
|
|
|
|
|
|
|
|
|
s.homepage = 'https://firebase.google.com'
|
2022-05-09 13:23:42 +00:00
|
|
|
s.license = { :type => 'Apache-2.0', :file => 'LICENSE' }
|
2019-08-21 14:26:41 -07:00
|
|
|
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
|
2019-08-21 14:26:41 -07:00
|
|
|
}
|
|
|
|
|
s.social_media_url = 'https://twitter.com/Firebase'
|
2024-06-05 07:39:36 -07:00
|
|
|
ios_deployment_target = '13.0'
|
|
|
|
|
osx_deployment_target = '10.15'
|
|
|
|
|
tvos_deployment_target = '13.0'
|
|
|
|
|
watchos_deployment_target = '7.0'
|
2021-02-12 11:41:35 -08:00
|
|
|
|
2024-06-05 07:39:36 -07:00
|
|
|
s.swift_version = '5.9'
|
2022-03-09 16:25:39 -05:00
|
|
|
|
2021-02-12 11:41:35 -08:00
|
|
|
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-08-21 14:26:41 -07:00
|
|
|
|
2024-01-26 13:38:44 -08:00
|
|
|
s.cocoapods_version = '>= 1.12.0'
|
2019-08-21 14:26:41 -07:00
|
|
|
s.prefix_header_file = false
|
|
|
|
|
|
|
|
|
|
base_dir = "FirebaseRemoteConfig/Sources/"
|
2020-06-09 06:09:27 -07:00
|
|
|
s.source_files = [
|
|
|
|
|
base_dir + '**/*.[mh]',
|
|
|
|
|
'Interop/Analytics/Public/*.h',
|
2020-07-22 11:17:56 -07:00
|
|
|
'FirebaseABTesting/Sources/Private/*.h',
|
2022-04-07 07:35:31 -07:00
|
|
|
'FirebaseCore/Extension/*.h',
|
2020-06-25 15:54:44 -07:00
|
|
|
'FirebaseInstallations/Source/Library/Private/*.h',
|
2023-10-13 14:53:47 -04:00
|
|
|
'FirebaseRemoteConfig/Swift/**/*.swift',
|
2020-06-09 06:09:27 -07:00
|
|
|
]
|
2020-07-23 10:01:02 -07:00
|
|
|
s.public_header_files = base_dir + 'Public/FirebaseRemoteConfig/*.h'
|
2024-02-23 15:08:29 -08:00
|
|
|
s.resource_bundles = {
|
|
|
|
|
"#{s.module_name}_Privacy" => 'FirebaseRemoteConfig/Swift/Resources/PrivacyInfo.xcprivacy'
|
|
|
|
|
}
|
2019-08-21 14:26:41 -07:00
|
|
|
s.pod_target_xcconfig = {
|
|
|
|
|
'GCC_C_LANGUAGE_STANDARD' => 'c99',
|
|
|
|
|
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
|
|
|
|
|
}
|
2024-06-03 18:04:25 -04:00
|
|
|
s.dependency 'FirebaseABTesting', '~> 11.0'
|
|
|
|
|
s.dependency 'FirebaseSharedSwift', '~> 11.0'
|
2025-05-20 20:07:51 -04:00
|
|
|
s.dependency 'FirebaseCore', '~> 11.14.0'
|
2024-06-03 18:04:25 -04:00
|
|
|
s.dependency 'FirebaseInstallations', '~> 11.0'
|
2025-05-02 15:35:27 -04:00
|
|
|
s.dependency 'GoogleUtilities/Environment', '~> 8.1'
|
|
|
|
|
s.dependency 'GoogleUtilities/NSData+zlib', '~> 8.1'
|
2024-06-03 18:04:25 -04:00
|
|
|
s.dependency 'FirebaseRemoteConfigInterop', '~> 11.0'
|
2019-08-21 14:26:41 -07:00
|
|
|
|
|
|
|
|
s.test_spec 'unit' do |unit_tests|
|
2020-12-30 12:50:32 -08:00
|
|
|
unit_tests.scheme = { :code_coverage => true }
|
2022-01-18 07:25:47 -08:00
|
|
|
unit_tests.platforms = {
|
|
|
|
|
:ios => ios_deployment_target,
|
|
|
|
|
:osx => osx_deployment_target,
|
|
|
|
|
:tvos => tvos_deployment_target
|
|
|
|
|
}
|
2019-08-21 14:26:41 -07:00
|
|
|
# TODO(dmandar) - Update or delete the commented files.
|
|
|
|
|
unit_tests.source_files =
|
|
|
|
|
'FirebaseRemoteConfig/Tests/Unit/FIRRemoteConfigComponentTest.m',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/Unit/RCNConfigContentTest.m',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/Unit/RCNConfigDBManagerTest.m',
|
|
|
|
|
# 'FirebaseRemoteConfig/Tests/Unit/RCNConfigSettingsTest.m',
|
|
|
|
|
# 'FirebaseRemoteConfig/Tests/Unit/RCNConfigTest.m',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/Unit/RCNConfigExperimentTest.m',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/Unit/RCNConfigValueTest.m',
|
2020-10-22 17:19:47 -07:00
|
|
|
'FirebaseRemoteConfig/Tests/Unit/RCNPersonalizationTest.m',
|
2019-08-21 14:26:41 -07:00
|
|
|
# 'FirebaseRemoteConfig/Tests/Unit/RCNRemoteConfig+FIRAppTest.m',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/Unit/RCNRemoteConfigTest.m',
|
|
|
|
|
# 'FirebaseRemoteConfig/Tests/Unit/RCNThrottlingTests.m',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/Unit/RCNTestUtilities.m',
|
2019-08-28 17:32:13 -04:00
|
|
|
'FirebaseRemoteConfig/Tests/Unit/RCNUserDefaultsManagerTests.m',
|
2020-02-06 12:55:55 -08:00
|
|
|
'FirebaseRemoteConfig/Tests/Unit/RCNTestUtilities.h',
|
2024-03-11 16:13:04 -04:00
|
|
|
'FirebaseRemoteConfig/Tests/Unit/RCNInstanceIDTest.m',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/SwiftUnit/*.swift'
|
2019-08-21 14:26:41 -07:00
|
|
|
# Supply plist custom plist testing.
|
|
|
|
|
unit_tests.resources =
|
|
|
|
|
'FirebaseRemoteConfig/Tests/Unit/Defaults-testInfo.plist',
|
2020-07-06 13:06:39 -04:00
|
|
|
'FirebaseRemoteConfig/Tests/Unit/SecondApp-GoogleService-Info.plist',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/Unit/TestABTPayload.txt'
|
2019-08-21 14:26:41 -07:00
|
|
|
unit_tests.requires_app_host = true
|
2020-02-13 17:26:30 -08:00
|
|
|
unit_tests.dependency 'OCMock'
|
2020-03-14 16:49:16 -04:00
|
|
|
unit_tests.requires_arc = true
|
2019-08-21 14:26:41 -07:00
|
|
|
end
|
2020-05-13 18:00:34 -07:00
|
|
|
|
2024-06-06 12:44:20 -04:00
|
|
|
# Run Swift API tests on a real backend.
|
|
|
|
|
s.test_spec 'swift-api-tests' do |swift_api|
|
|
|
|
|
swift_api.scheme = { :code_coverage => true }
|
|
|
|
|
swift_api.platforms = {
|
|
|
|
|
:ios => ios_deployment_target,
|
|
|
|
|
:osx => osx_deployment_target,
|
|
|
|
|
:tvos => tvos_deployment_target
|
|
|
|
|
}
|
|
|
|
|
swift_api.source_files = ['FirebaseRemoteConfig/Tests/Swift/SwiftAPI/*.swift',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/Swift/FakeUtils/*.swift',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/Swift/ObjC/*.[hm]',
|
|
|
|
|
]
|
|
|
|
|
# Excludes tests that cannot be include in API tests because it requires fetch remote values from
|
2024-07-19 17:21:52 +03:30
|
|
|
# a real console but only one test can be run without polluting other tests' remote values.
|
2024-06-06 12:44:20 -04:00
|
|
|
swift_api.exclude_files = ['FirebaseRemoteConfig/Tests/Swift/SwiftAPI/PropertyWrapperTests.swift']
|
|
|
|
|
swift_api.resources = 'FirebaseRemoteConfig/Tests/Swift/Defaults-testInfo.plist'
|
|
|
|
|
swift_api.requires_app_host = true
|
|
|
|
|
swift_api.pod_target_xcconfig = {
|
|
|
|
|
'SWIFT_OBJC_BRIDGING_HEADER' => '$(PODS_TARGET_SRCROOT)/FirebaseRemoteConfig/Tests/Swift/ObjC/Bridging-Header.h',
|
|
|
|
|
'OTHER_SWIFT_FLAGS' => "$(inherited) #{ENV.key?('USE_REAL_CONSOLE') ? '-D USE_REAL_CONSOLE' : ''}",
|
|
|
|
|
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
|
|
|
|
|
}
|
|
|
|
|
swift_api.dependency 'OCMock'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# Run Swift API tests and tests requiring console changes on a Fake Console.
|
|
|
|
|
s.test_spec 'fake-console-tests' do |fake_console|
|
|
|
|
|
fake_console.scheme = { :code_coverage => true }
|
|
|
|
|
fake_console.platforms = {
|
|
|
|
|
:ios => ios_deployment_target,
|
|
|
|
|
:osx => osx_deployment_target,
|
|
|
|
|
:tvos => tvos_deployment_target
|
|
|
|
|
}
|
|
|
|
|
fake_console.source_files = ['FirebaseRemoteConfig/Tests/Swift/SwiftAPI/*.swift',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/Swift/FakeUtils/*.swift',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/Swift/FakeConsole/*.swift',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/Swift/ObjC/*.[hm]',
|
|
|
|
|
]
|
|
|
|
|
fake_console.resources = 'FirebaseRemoteConfig/Tests/Swift/Defaults-testInfo.plist'
|
|
|
|
|
fake_console.requires_app_host = true
|
|
|
|
|
fake_console.pod_target_xcconfig = {
|
|
|
|
|
'SWIFT_OBJC_BRIDGING_HEADER' => '$(PODS_TARGET_SRCROOT)/FirebaseRemoteConfig/Tests/Swift/ObjC/Bridging-Header.h',
|
|
|
|
|
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
|
|
|
|
|
}
|
|
|
|
|
fake_console.dependency 'OCMock'
|
|
|
|
|
end
|
|
|
|
|
|
2019-08-21 14:26:41 -07:00
|
|
|
end
|