Files
firebase-ios-sdk/FirebaseFirestore.podspec
T
Konstantin Varlamov 8b1efabd82 gRPC: replace Objective-C implementation with the new C++ implementation (#2068)
* Revert "Revert "gRPC: replace Objective-C implementation with the new C++ implementation (#1968)" (#2030)"

This reverts commit ea567dca47.

* gRPC: fix bugs found during testing (#2039)

All in `GrpcStream`:
* make sure there are no pending completions when "finish" operation is enqueued;
* always finish gRPC calls;
* when connectivity changes, reset not just the calls, but the underlying channel as well.

* Revert "Partially revert "Update CHANGELOG for Firestore v0.14.0 (#2025)" (#2031)"

This reverts commit b2437b80f6.

* Update changelog for v0.15.0.

* gRPC: add gRPC wrapper classes to CMake build (#2015)

* add a C++ equivalent of `FIRFirestoreVersionString`. This eliminates the only Objective-C dependency of `grpc_connection.mm` and allows making it a pure C++ file;
* open-source `binary_to_array.py` script and use it in the build to embed `roots.pem` certificate file from gRPC into the Firestore binary. The embedded char array is then used to load certificate at runtime.

* Revert local change -- do not enable sanitizers by default
2018-11-13 11:51:06 -08:00

112 lines
3.9 KiB
Ruby

Pod::Spec.new do |s|
s.name = 'FirebaseFirestore'
s.version = '0.14.0'
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.'
s.source = {
:git => 'https://github.com/firebase/firebase-ios-sdk.git',
:tag => 'Firestore-' + s.version.to_s
}
s.ios.deployment_target = '8.0'
s.cocoapods_version = '>= 1.4.0'
s.static_framework = true
s.prefix_header_file = false
s.source_files = [
'Firestore/Source/**/*',
'Firestore/Protos/nanopb/**/*.{h,cc}',
'Firestore/Protos/objc/**/*.[hm]',
'Firestore/core/include/**/*.{h,cc,mm}',
'Firestore/core/src/**/*.{h,cc,mm}',
'Firestore/third_party/Immutable/*.[mh]',
]
s.requires_arc = [
'Firestore/Source/**/*',
'Firestore/core/src/**/*.mm',
'Firestore/third_party/Immutable/*.[mh]'
]
s.exclude_files = [
'Firestore/third_party/Immutable/Tests/**',
# Exclude alternate implementations for other platforms
'Firestore/core/src/firebase/firestore/remote/connectivity_monitor_noop.cc',
'Firestore/core/src/firebase/firestore/remote/grpc_root_certificate_finder_generated.cc',
'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'
# TODO(varconst): remove once https://github.com/grpc/grpc/pull/16962 makes it
# into a release.
s.resource_bundles = { 'gRPCCertificates' => ['Firestore/etc/roots.pem'] }
s.dependency 'FirebaseAuthInterop', '~> 1.0'
s.dependency 'FirebaseCore', '~> 5.1'
s.dependency 'gRPC-C++', '~> 0.0.3'
s.dependency 'leveldb-library', '~> 1.20'
s.dependency 'Protobuf', '~> 3.1'
s.dependency 'nanopb', '~> 0.3.8'
s.frameworks = 'MobileCoreServices', 'SystemConfiguration'
s.library = 'c++'
s.pod_target_xcconfig = {
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++0x',
'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.)
'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
'HEADER_SEARCH_PATHS' =>
'"${PODS_TARGET_SRCROOT}" ' +
'"${PODS_TARGET_SRCROOT}/Firestore/third_party/abseil-cpp" ' +
'"${PODS_ROOT}/nanopb" ' +
'"${PODS_TARGET_SRCROOT}/Firestore/Protos/nanopb"',
}
# 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
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 = [
'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',
'Firestore/third_party/abseil-cpp/absl/synchronization/internal/mutex_nonprod.cc',
]
ss.library = 'c++'
ss.compiler_flags = '$(inherited) ' +
'-Wno-comma ' +
'-Wno-range-loop-analysis ' +
'-Wno-shorten-64-to-32'
end
end