2019-08-21 14:26:41 -07:00
|
|
|
Pod::Spec.new do |s|
|
|
|
|
|
s.name = 'FirebaseRemoteConfig'
|
2021-12-21 17:11:41 -08:00
|
|
|
s.version = '8.11.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'
|
|
|
|
|
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
|
2019-08-21 14:26:41 -07:00
|
|
|
}
|
|
|
|
|
s.social_media_url = 'https://twitter.com/Firebase'
|
2021-02-12 11:41:35 -08: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
|
2019-08-21 14:26:41 -07:00
|
|
|
|
|
|
|
|
s.cocoapods_version = '>= 1.4.0'
|
|
|
|
|
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',
|
2020-06-09 06:09:27 -07:00
|
|
|
'FirebaseCore/Sources/Private/*.h',
|
2020-06-25 15:54:44 -07:00
|
|
|
'FirebaseInstallations/Source/Library/Private/*.h',
|
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'
|
2019-08-21 14:26:41 -07:00
|
|
|
s.pod_target_xcconfig = {
|
|
|
|
|
'GCC_C_LANGUAGE_STANDARD' => 'c99',
|
|
|
|
|
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
|
|
|
|
|
}
|
2021-04-23 13:49:36 -07:00
|
|
|
s.dependency 'FirebaseABTesting', '~> 8.0'
|
|
|
|
|
s.dependency 'FirebaseCore', '~> 8.0'
|
|
|
|
|
s.dependency 'FirebaseInstallations', '~> 8.0'
|
2021-10-14 15:31:53 -07:00
|
|
|
s.dependency 'GoogleUtilities/Environment', '~> 7.6'
|
|
|
|
|
s.dependency 'GoogleUtilities/NSData+zlib', '~> 7.6'
|
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 }
|
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',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/Unit/RCNInstanceIDTest.m'
|
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
|
|
|
|
2020-05-26 16:14:24 -07:00
|
|
|
# Run Swift API tests on a real backend.
|
|
|
|
|
s.test_spec 'swift-api-tests' do |swift_api|
|
2020-12-30 12:50:32 -08:00
|
|
|
swift_api.scheme = { :code_coverage => true }
|
2021-12-11 10:29:32 -08:00
|
|
|
swift_api.platforms = {
|
|
|
|
|
:ios => ios_deployment_target,
|
|
|
|
|
:osx => osx_deployment_target,
|
|
|
|
|
:tvos => tvos_deployment_target
|
|
|
|
|
}
|
2020-05-26 16:14:24 -07:00
|
|
|
swift_api.source_files = 'FirebaseRemoteConfig/Tests/SwiftAPI/*.swift',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/FakeUtils/*.[hm]',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/FakeUtils/*.swift'
|
|
|
|
|
swift_api.requires_app_host = true
|
|
|
|
|
swift_api.pod_target_xcconfig = {
|
|
|
|
|
'SWIFT_OBJC_BRIDGING_HEADER' => '$(PODS_TARGET_SRCROOT)/FirebaseRemoteConfig/Tests/FakeUtils/Bridging-Header.h'
|
|
|
|
|
}
|
|
|
|
|
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|
|
2020-12-30 12:50:32 -08:00
|
|
|
fake_console.scheme = { :code_coverage => true }
|
2021-12-11 10:29:32 -08:00
|
|
|
fake_console.platforms = {
|
|
|
|
|
:ios => ios_deployment_target,
|
|
|
|
|
:osx => osx_deployment_target,
|
|
|
|
|
:tvos => tvos_deployment_target
|
|
|
|
|
}
|
2020-05-26 16:14:24 -07:00
|
|
|
fake_console.source_files = 'FirebaseRemoteConfig/Tests/SwiftAPI/*.swift',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/FakeUtils/*.[hm]',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/FakeUtils/*.swift',
|
|
|
|
|
'FirebaseRemoteConfig/Tests/FakeConsole/*.swift'
|
|
|
|
|
fake_console.requires_app_host = true
|
|
|
|
|
fake_console.pod_target_xcconfig = {
|
|
|
|
|
'SWIFT_OBJC_BRIDGING_HEADER' => '$(PODS_TARGET_SRCROOT)/FirebaseRemoteConfig/Tests/FakeUtils/Bridging-Header.h'
|
|
|
|
|
}
|
|
|
|
|
fake_console.dependency 'OCMock'
|
2020-05-13 18:00:34 -07:00
|
|
|
end
|
2019-08-21 14:26:41 -07:00
|
|
|
end
|