aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore
Commit message (Collapse)AuthorAge
* Eliminate -Wimplicit-fallthrough triggersHEADmasterGravatar Benjamin Barenblat2018-07-18
| | | | | Replace fallthrough comments with `ABSL_FALLTHROUGH_INTENDED`, allowing clean building with -Wimplicit-fallthrough.
* Fix broken build under linux (#1551)Gravatar rsgowman2018-07-18
| | | | | FirebaseAuthInterop isn't defined as a target under linux (since it comes from the podfiles) so defining a source file for the target causes cmake to error.
* Port Query::testNaNFilter() from java (#1549)Gravatar rsgowman2018-07-18
| | | | | | Note that this works even though we haven't ported the NanFilter class yet. (The RelationFilter handles nan's just fine. Though also doesn't restrict nan's in cases where they shouldn't be used, i.e. anything except equality.)
* Update changelog to mention performance improvements in write batches (#1534)Gravatar Konstantin Varlamov2018-07-17
| | | Reflects #1505, #1507, #1533.
* Implement a CMake build for FirebaseAuthInterop (#1532)Gravatar Gil2018-07-17
| | | | | | | | * Add a CMake build for FirebaseAuthInterop * Avoid cluttering the symbol table * Trigger Firestore-cmake checks on cmake script changes
* Port PrimitiveValueTest test for core::Query (#1530)Gravatar rsgowman2018-07-17
| | | | | (From java.) Also fix a bug uncovered by the test. (oops)
* Minimize rereading of batches in FSTLocalDocumentsView ↵Gravatar Konstantin Varlamov2018-07-16
| | | | | | | documentsMatchingCollectionQuery (#1533) Previously in `documentsMatchingCollectionQuery`, write batches were read three times; in fact, all relevant batches will always be contained inside `allMutationBatchesAffectingQuery` (which is also more efficient); the other two calls were redundant.
* Use CMake to build LevelDB (#1542)Gravatar Gil2018-07-16
|
* Generate CMake frameworks from podspecs (#1531)Gravatar Gil2018-07-16
| | | | | | | | | | | | | * Rename utils.cmake to cc_rules.cmake This makes it less of a dumping ground * Fix sign mismatch in FIRApp * Implement a podspec_framework CMake function ... that generates a CMake framework library target from a podspec. * Remove manual CMake scripts for xcodebuild
* Fuzz testing uses protoc from a pod dependency (#1538)Gravatar Mina Farid2018-07-16
|
* Convert grpc and protobuf CMake builds to add_subdirectory (#1537)Gravatar Gil2018-07-16
| | | | | | | | | | | | | | | | * Build zlib with grpc's add_subdirectory * Build grpc and its children with add_subdirectory. * Build c-ares with grpc's add_subdirectory * Convert protobuf to a download-only ExternalProject * Temporarily break protobuf within grpc This works because libgrpc has no actual dependency on protobuf * Update boringssl to master@{2018-07-10}
* Migrate contents of SwiftBuildTest to Firestore_SwiftTests_iOS (#1524)Gravatar Gil2018-07-15
| | | | | | | | * Move main.swift to BasicCompileTests.swift * Remove SwiftBuildTest from the Podfile, Xcode project, build.sh Add Firestore_SwiftTests_iOS, but only if building with Xcode 9 or better.
* Suppress uninitialized read error under VS2017 (#1523)Gravatar Gil2018-07-13
| | | | | | | | * Suppress uninitialized read error under VS2017. * Default-initialize Tag instead of requiring users to remember to do so. * Add constructors to match usage
* Initial (incomplete) implementation of f:f:core::Filter (#1495)Gravatar rsgowman2018-07-13
| | | | | And RelationFilter subclass. Used to implement the next step in core::Query.
* Fuzz testing Serializer with a dictionary and corpus (#1513)Gravatar Mina Farid2018-07-13
| | | | Added functionality to read dictionary file and seed input corpus from bundle
* Convert googletest and nanopb CMake builds to add_subdirectory (#1522)Gravatar Gil2018-07-13
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add a download-only boringssl ExternalProject Match boringssl version to grpc submodule version Note: not yet in use * Split grpc into separate download and build tasks This allows other external targets to download into the gRPC source tree before grpc is actually built. * Convert grpc to an http download * Build googletest with add_subdirectory Also: * Revert library-name modifications in the abseil-cpp build * Move abseil-cpp add_subdirectory build into place * Build nanopb with add_subdirectory * Force nanopb first to work around ODR violations This is a temporary work-around for b/111328563.
* Fix Firestore when compiled with Xcode 8.3 (#1519)Gravatar Gil2018-07-11
| | | | | | | | | | | | | * Add a travis stage that tests building Firestore with Xcode 8.3. * Simulate on a device available in Xcode 8 * Fix compile errors under Xcode 8.3.3 * Remove Firestore_SwiftTests_iOS from the Firestore_Tests_iOS Scheme I'll create a new target for this but in another PR. * Add an entry to CHANGELOG.md
* Move creation of FSTFilter objects to static create method on FSTFilter. (#1512)Gravatar rsgowman2018-07-11
| | | | | | | Rather than previously inlining it in the calling code. This is to unify filter creation across platforms. (This change involves altering FSTFilter from a protocol to an abstract class.)
* Firestore CMake cleanup (#1510)Gravatar Gil2018-07-11
| | | | | | | | | | | | | | | * Pull out sanitizer options into a separate file * Reorder packages * Remove the extra "external/$target" directory from PREFIX Instead of BINARY_DIR/external/foo/src/foo the contents will be in BINARY_DIR/src/foo. * Make libprotobuf-nanopb targets line up with nanopb's CMakeLists.txt * Fix CMake style
* Fix Firestore source errors under VS2017 (#1515)Gravatar Gil2018-07-11
| | | | | | | | | | | | | | | | * Project file updates from sync_project.rb * Fix misc compile errors under VS2017 * Fix util/hashing under VS2017 std::hash<int> is not just a pass through in Microsoft's STL. * Disable unsafe code warnings in VS2017 ... where comparing against a reference implementation that has no easy safe equivalent. * Handle drive letters in paths on Windows
* Add Auth interoperability library. (#1501)Gravatar Ryan Wilson2018-07-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Auth interoperability library. This allows other SDKs to retrieve the user ID and fetch a new Auth token in a type-safe way through the Core container. * Remove unnecessary import. * Add missing copyright. * Resolve comments. - Remove unnecessary umbrella header. - Move to version 1.0. - Add tvOS support for app lifecycle changes. * Move public interop headers to private. * Add public_header_files too. * Moved headers back into public. * Shorten Interoperability and Interoperable to Interop. * Add AuthInterop to travis linting. * Fixed tag format in AuthInterop.podspec. * Add AuthInterop path to Firestore Podfile.
* Expose array transforms and array contains queries. (#1514)Gravatar Michael Lehenbauer2018-07-10
| | | | | Also remove test code that was combining multiple array contains queries since those were disallowed in https://github.com/firebase/firebase-ios-sdk/commit/0ec836f9ca71b27fa54a11ae9e07e60b8c5cc002
* C++ migration: add a C++ implementation of `FSTExponentialBackoff` (#1465)Gravatar Konstantin Varlamov2018-07-10
| | | | | | | | | | | This is a pretty close port of `FSTExponentialBackoff`. The changes are pretty minor: * delay is calculated using <chrono> duration types, not plain numbers, which should be a little more type-safe; * split a piece of code into a ClampDelay function, because it's reasonably close to std::clamp; * rephrased the class-level comment to make it clearer that the first attempt always has delay = 0; * added simple tests (other platforms don't have tests for this). Also make sure that canceling a DelayedOperation is always valid.
* Eliminate unnecessary DocumentKey->FSTDocumentKey conversions (#1507)Gravatar Konstantin Varlamov2018-07-10
|
* In FSTLocalDocumentsView, search for all batches affecting a set of keys in ↵Gravatar Konstantin Varlamov2018-07-10
| | | | | | one go (#1505) This uses the newly-added allMutationBatchesAffectingDocumentKeys to find/deserialize all such batches in one go and then reuse the batches while processing a set of keys.
* Check CMake files for copyrights (#1509)Gravatar Gil2018-07-10
| | | | | * Check CMake files for copyrights * Add missing copyright
* pod update for the addition of GoogleUtilities (#1506)Gravatar Gil2018-07-09
|
* C++: for immutable data structures, forbid ignoring result of insert/eraseGravatar Konstantin Varlamov2018-07-09
|
* Add allMutationsAffectingDocumentKeys to FSTMutationQueue (#1479)Gravatar Gil2018-07-09
| | | | | * Pod updates for Cocapods 1.5.3 * Add allMutationsAffectingDocumentKeys
* Add spec test support for target-scoped resume tokens (#1498)Gravatar Sebastian Schmidt2018-07-06
|
* Split GoogleUtilities from FirebaseCore (#1370)Gravatar Paul Beusterien2018-07-06
|
* Add support for NoDocument in the local serializer (#1484)Gravatar rsgowman2018-07-03
|
* Fuzz test Serializer to decode FieldValue (#1485)Gravatar Mina Farid2018-07-03
|
* Initial (incomplete) implementation of f:f::core::Query (#1471)Gravatar rsgowman2018-06-29
|
* Update versions for Release 5.4.0Gravatar Paul Beusterien2018-06-27
|
* Install protobuf during CMake build (#1460)Gravatar Gil2018-06-26
| | | | | | | | | | | | | | * Install protobuf * Use the built-in FindProtobuf.cmake * Add additional build configuration flags * Preserve generator configuration in the protobuf sub-build Without this, the build fails on Win64 because the default configuration builds a Win32 libprotobuf and the Win64 build rejects it. * Wire the installed protobuf into the gRPC build. * Install nanopb
* Install googletest (#1461)Gravatar Gil2018-06-26
| | | Also add FindGMock to Find gmock after installation
* Update CHANGELOG for Firestore v0.12.5 (#1463)Gravatar Gil2018-06-26
|
* Improves "Could not reach Firestore backend." log message. (#1455)Gravatar Michael Lehenbauer2018-06-26
| | | Port of https://github.com/firebase/firebase-js-sdk/pull/864
* Prepare for installed sub-projects (#1459)Gravatar Gil2018-06-26
| | | | | | | | | | | | | | | * Ignore vim backup files * Prepare for installed subprojects This adds FIREBASE_BINARY_DIR to point to the out-of-source build directory (which previously was passed around as FIREBASE_INSTALL_DIR). This repurposes FIREBASE_INSTALL_DIR to point to ${FIREBASE_BINARY_DIR}/opt, and installation root for subprojects that have an install step. * Allow download directory to be specified
* Refactor nanopb decoding methods (#1438)Gravatar rsgowman2018-06-25
| | | Rather than decoding the type, and then the contents, decode them both at once.
* Fix a few implicit converstion warnings (#1439)Gravatar rsgowman2018-06-22
| | | Were showing up in xcode build (but not cmake build)
* Refactored a few methods from anon namespace to remote serializer (#1435)Gravatar rsgowman2018-06-22
|
* Initial creation of the local serializer. (#1415)Gravatar rsgowman2018-06-21
| | | Added a single, basic test as a motivator.
* Merge and resolve conflicts from release-5.3.0Gravatar Paul Beusterien2018-06-20
|\
* | Remove Limbo Document GC (#1413)Gravatar Greg Soltis2018-06-20
| | | | | | | | | | | | * Remove usage of eager garbage collector for tracking limbo document references * Fix style
* | Removing the target state on stream error (#1420)Gravatar Sebastian Schmidt2018-06-20
| |
* | Hookup serializer_test.cc to the xcode based test suite (#1343)Gravatar rsgowman2018-06-18
|\ \
* | | Avoid closing unintialized substreams (#1411)Gravatar Mina Farid2018-06-18
| | | | | | | | | | | | | | | * A substream should not be closed if pb_make_string_substream() failed to create it and returned false. * Fixed a potential wrong error message.
| * | Fix retain self warnings that crept inGravatar Marek Gilbert2018-06-15
| | |