Files
firebase-ios-sdk/FirebaseFirestore.podspec
T

143 lines
5.4 KiB
Ruby
Raw Normal View History

Pod::Spec.new do |s|
s.name = 'FirebaseFirestore'
2019-10-22 11:35:29 -07:00
s.version = '1.6.1'
s.summary = 'Google Cloud Firestore for iOS'
s.description = <<-DESC
Google Cloud Firestore is a NoSQL document database built for automatic scaling, high performance, and ease of application development.
DESC
s.homepage = 'https://developers.google.com/'
s.license = { :type => 'Apache', :file => 'LICENSE' }
s.authors = 'Google, Inc.'
2018-04-17 07:02:01 -07:00
s.source = {
:git => 'https://github.com/firebase/firebase-ios-sdk.git',
:tag => 'Firestore-' + s.version.to_s
}
2018-04-17 07:02:01 -07:00
s.ios.deployment_target = '8.0'
2019-03-29 16:26:27 -07:00
s.osx.deployment_target = '10.11'
s.tvos.deployment_target = '10.0'
s.cocoapods_version = '>= 1.4.0'
s.static_framework = true
s.prefix_header_file = false
s.source_files = [
'Firestore/Source/Public/*.h',
'Firestore/Source/**/*.{m,mm}',
'Firestore/Protos/nanopb/**/*.cc',
'Firestore/Protos/objc/**/*.m',
'Firestore/core/include/**/*.{cc,mm}',
'Firestore/core/src/**/*.{cc,mm}',
]
s.preserve_paths = [
'Firestore/Source/API/*.h',
'Firestore/Source/Core/*.h',
'Firestore/Source/Local/*.h',
'Firestore/Source/Remote/*.h',
'Firestore/Source/Util/*.h',
'Firestore/Protos/nanopb/**/*.h',
'Firestore/Protos/objc/**/*.h',
'Firestore/core/include/**/*.h',
'Firestore/core/src/**/*.h',
]
s.requires_arc = [
'Firestore/Source/**/*',
'Firestore/core/src/**/*.mm',
]
s.exclude_files = [
# Exclude alternate implementations for other platforms
2019-03-28 13:19:28 -07:00
'Firestore/core/src/firebase/firestore/api/input_validation_std.cc',
'Firestore/core/src/firebase/firestore/remote/connectivity_monitor_noop.cc',
'Firestore/core/src/firebase/firestore/remote/grpc_root_certificate_finder_generated.cc',
2018-08-14 13:30:52 -07:00
'Firestore/core/src/firebase/firestore/util/filesystem_win.cc',
'Firestore/core/src/firebase/firestore/util/hard_assert_stdio.cc',
'Firestore/core/src/firebase/firestore/util/log_stdio.cc',
'Firestore/core/src/firebase/firestore/util/secure_random_openssl.cc'
]
s.public_header_files = 'Firestore/Source/Public/*.h'
s.dependency 'FirebaseAuthInterop', '~> 1.0'
2019-08-07 11:03:41 -07:00
s.dependency 'FirebaseCore', '~> 6.2'
s.dependency 'gRPC-C++', '0.0.9'
2019-08-21 08:11:21 -07:00
s.dependency 'leveldb-library', '~> 1.22'
2019-09-24 10:29:51 -07:00
s.dependency 'Protobuf', '~> 3.9', '>= 3.9.2'
s.dependency 'nanopb', '~> 0.3.901'
s.ios.frameworks = 'MobileCoreServices', 'SystemConfiguration'
s.osx.frameworks = 'SystemConfiguration'
s.tvos.frameworks = 'SystemConfiguration'
s.library = 'c++'
s.pod_target_xcconfig = {
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++0x',
2018-10-24 11:04:00 -07:00
'GCC_C_LANGUAGE_STANDARD' => 'c99',
'GCC_PREPROCESSOR_DEFINITIONS' =>
"FIRFirestore_VERSION=#{s.version} " +
'GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 ' +
# 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.)
2018-11-02 12:11:35 -07:00
'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
2017-12-11 19:50:14 -08:00
'HEADER_SEARCH_PATHS' =>
'"${PODS_TARGET_SRCROOT}" ' +
'"${PODS_TARGET_SRCROOT}/Firestore/Source/Public" ' +
2018-02-06 12:52:06 -05:00
'"${PODS_TARGET_SRCROOT}/Firestore/third_party/abseil-cpp" ' +
'"${PODS_ROOT}/nanopb" ' +
'"${PODS_TARGET_SRCROOT}/Firestore/Protos/nanopb" ' +
'"${PODS_TARGET_SRCROOT}/Firestore/Protos/objc/google/api" ' +
'"${PODS_TARGET_SRCROOT}/Firestore/Protos/objc/google/firestore/v1" ' +
'"${PODS_TARGET_SRCROOT}/Firestore/Protos/objc/google/rpc" ' +
'"${PODS_TARGET_SRCROOT}/Firestore/Protos/objc/google/type"',
}
# Generate a version of the config.h header suitable for building with
# CocoaPods.
s.prepare_command = <<-CMD
sed '/^#cmakedefine/ d' \
Firestore/core/src/firebase/firestore/util/config.h.in > \
Firestore/core/src/firebase/firestore/util/config.h
CMD
2018-09-26 10:45:57 -07:00
s.compiler_flags = '$(inherited) -Wreorder -Werror=reorder'
s.subspec 'abseil-cpp' do |ss|
ss.preserve_path = [
'Firestore/third_party/abseil-cpp/absl'
]
ss.source_files = [
'Firestore/third_party/abseil-cpp/**/*.cc'
]
ss.exclude_files = [
# Exclude tests and benchmarks from the framework.
'Firestore/third_party/abseil-cpp/**/*_benchmark.cc',
'Firestore/third_party/abseil-cpp/**/*test*.cc',
'Firestore/third_party/abseil-cpp/absl/hash/internal/print_hash_of.cc',
# Exclude CMake-related everything, including tests
'Firestore/third_party/abseil-cpp/CMake/**/*.cc',
# Avoid the debugging package which uses code that isn't portable to
# ARM (see stack_consumption.cc) and uses syscalls not available on
# tvOS (e.g. sigaltstack).
'Firestore/third_party/abseil-cpp/absl/debugging/**/*.cc',
# Dropping the debugging package prevents downstream usage of this in the
# abseil sources.
'Firestore/third_party/abseil-cpp/absl/container/internal/hashtable_debug*',
'Firestore/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler*',
# Exclude the synchronization package because it's dead weight: we don't
# write the kind of heavily threaded code that might benefit from it.
'Firestore/third_party/abseil-cpp/absl/synchronization/**/*.cc',
]
ss.library = 'c++'
ss.compiler_flags = '$(inherited) ' +
'-Wno-comma ' +
'-Wno-range-loop-analysis ' +
'-Wno-shorten-64-to-32'
end
end