aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Example
Commit message (Collapse)AuthorAge
* Fix FSTLocalDocumentsView to allow multiple mutations while offline (#644)Gravatar rsgowman2018-01-11
| | | | | * Fix FSTLocalDocumentsView to allow multiple mutations while offline. Previously, only the last mutation would actually be visible.
* Run style.sh (#636)Gravatar Michael Lehenbauer2018-01-10
| | | | Run style.sh (w/ clang-format version 6)
* Merge branch 'master' into mikelehen/merge-master-to-firestore-api-changesGravatar Michael Lehenbauer2018-01-09
|\
| * Port StringPrintf from //base (#624)Gravatar Gil2018-01-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Port StringPrintf from //base. Prefer this to approaches based on variadic templates. While the variadic template mechanisms are strictly safer, they result in binary bloat we can't afford. This is essentially the same StringPrintf previously open sourced as a part of protobuf, though updated for C++11 which saves a copy and a temporary buffer on the heap. * Add abseil as a subdirectory of Firestore This saves having to redefine all the libraries that abseil defines as imported libraries. * Rename firebase_firesture_util_log_* targets Cut the log out of the name to reflect that these will get more components besides just logging.
* | Fixing potential race in ServerTimestamp testsGravatar Sebastian Schmidt2018-01-05
| |
| * Use the log_apple.mm logger from C++ on iOS (#593)Gravatar Gil2018-01-01
| | | | | | | | | | | | * Add all .mm files in Firestore/core to the build (which matches log_apple.mm). * Exclude log_stdio.cc * Add log_test.cc to the project
* | Rename all the onlineStateChanged methods to applyChangedOnlineState. (#574)Gravatar Michael Lehenbauer2017-12-19
| |
* | Firestore `isEqual()` on Public Types (#569)Gravatar zxu2017-12-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add bone code for new isEqual and unit test for old isEqual * add bone code for `FIRCollectionReference`, `FIRDocumentSnapshot`, `FIRFieldValue`, `FIRQuerySnapshot`, `FIRSnapshotMetadata`; * change inconsistenciness of `FIRFieldPath.isEqual` implementation; * add unit test (and file) for `FIRDocumentReferenceTest.m`, `FIRFieldPathTest.m`, `FIRQueryTests.testEquals`; `FIRGeoPoint` already has test and Blob is internal type. * Implement isEqual for FIRCollectionReference adding the working code and unit test. * implement isEqual for FIRSnapshotMetadata * Implement isEqual for FIRDocumentSnapshot * Implement isEqual for FIRQuerySnapshot * (un)implement `isEqual` for `FIRFieldValue` Since `FIRFieldValue` both types are singleton, we do not need override `isEqual`. Add test to test the default `NSObject` `isEqual` works just fine. * fix style with `scripts/style.sh` * Implement hash for those with overridden isEqual without hash yet. * refactor to use test helper functions -- FSTTestFirestore, FSTTestPath, FSTTestDocKey * refactor using test helper `FSTTestDocSnapshot`, `FSTTestFieldPath`, `FSTTestQuery`, `FSTTestDoc` * refactoring to use test helper method `FSTTestQuerySnapshot`, * remove unneccessary nil-check, check isKindOfClass instead of isEqual * refactoring: adding `FSTAPIHelpers.{h,m}`, `FSTTest{Collection,Document}Ref`, better naming and style fix * a file forgot in last commit * mainly clean up import and some minor refactoring * fix style via style.sh * minor style fix * add pragma ignored -Wnonnull
| * Merge pull request #576 from firebase/release-4.8.0Gravatar Kyle Ju2017-12-19
| |\ | | | | | | Release 4.8.0
| * | Use angle brackets for nonlocal #includes in Firestore (#580)Gravatar Gil2017-12-19
| | |
* | | Clean up warnings (#578)Gravatar Gil2017-12-18
| | | | | | | | | | | | | | | * Clean up warnings * Remove optional parens around ifs
* | | Expose network management (#566)Gravatar Greg Soltis2017-12-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Expose network management in public API * Clean up a few more references to the internal access of network management * Move test * Update comments * Swap _Nullable for nullable * Fix comment * Add tests, including swift * Styling
* | | Test cleanup: Adds a helper for waiting for FSTVoidErrorBlock callbacks.Gravatar Michael Lehenbauer2017-12-18
| | | | | | | | | | | | | | | | | | | | | * Add helper for waiting for FSTVoidErrorBlock callbacks. * Remove errorEventHandler from FSTEventAccumulator.h too. * Add synchronous enableNetwork / disableNetwork helpers. * Workaround for batch writes test flakiness.
* | | Fixing return type of verifySnapshotWithResolvedTimestampsGravatar Sebastian Schmidt2017-12-18
| | | | | | | | | | | | This should address a crash that happens when a debugger is attached
* | | b/68276665: Raise isFromCache=true events when offline (#567)Gravatar Michael Lehenbauer2017-12-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Plumbs FSTOnlineState changes through to views. * View sets this.current to false on FSTOnlineStateFailed, triggering isFromCache=true events. It will automatically be returned to true once the listen is reestablished and we get a new CURRENT message. * Updated tests (and added one new one) to verify behavior. * Unifies setOnlineStateToUnknown, setOnlineStateToHealthy, and updateAndBroadcastOnlineState into a single updateOnlineState method. * Split disableNetwork into (public) disableNetwork and (private) disableNetworkWithTargetOnlineState methods.. * Some miscellaneous comment cleanup. * Add missing comment per CR feedback.
* | | Adding Swift build testGravatar Sebastian Schmidt2017-12-14
| | |
| | * Update component versions for Firebase 4.8.0 (#561)Gravatar Kyle Ju2017-12-12
| |/
* | MergeGravatar Sebastian Schmidt2017-12-12
|\ \
| * \ Merge branch 'firestore-api-changes' into mrschmidt-timestampsGravatar Sebastian Schmidt2017-12-12
| |\ \
* | | | Addressing commentsGravatar Sebastian Schmidt2017-12-12
| | | |
| * | | Addressing commentsGravatar Sebastian Schmidt2017-12-12
| | | |
| | * | Revisit commit method in FIRWriteBatch (#541)Gravatar zxu2017-12-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * revisit FIRWriteBatch commit * make commitWithCompletion completion nullable; * add commit; * add unit test; * add swift build test for commit; * update CHANGELOG.
* | | | Clang formatGravatar Sebastian Schmidt2017-12-10
| | | |
| | * | Running scripts/style.shGravatar Sebastian Schmidt2017-12-10
| | | |
* | | | Making DocumentSnapshot nullableGravatar Sebastian Schmidt2017-12-10
| |/ / |/| |
| * | Fixing commentGravatar Sebastian Schmidt2017-12-08
| | |
| * | Adding default optionGravatar Sebastian Schmidt2017-12-08
| | |
| * | Method renamesGravatar Sebastian Schmidt2017-12-07
| | |
| * | Addressing all review commentsGravatar Sebastian Schmidt2017-12-07
| | |
* | | Implement NSPredicate-based query (#531)Gravatar zxu2017-12-07
| |/ |/| | | | | | | | | * implement queryFilteredUsingPredicate in FIRQuery; * add unit test and integration test for queryFilteredUsingPredicate; * project change of adding the FIRQueryTests.m file; * refactoring queryFilteredUsingPredicate to split logic into two helpers;
| * Adding SnapshotOptions to deal with pending ServerTimestampsGravatar Sebastian Schmidt2017-12-05
|/
* Merge pull request #521 from firebase/release-4.7.0Gravatar Paul Beusterien2017-12-01
|\ | | | | Core is now 4.7.0
| * Core is now 4.7.0Gravatar Paul Beusterien2017-12-01
| |
* | Fix long line and run style (#517)Gravatar Paul Beusterien2017-11-30
| |
* | Move sources into firebase::firestore and internal namespaces (#494)Gravatar Gil2017-11-30
| | | | | | | | | | | | | | * Move sources into firebase::firestore and internal namespaces Combine support and core/util packages; this distinction wasn't really paying its freight.
* | Fix StringView to properly convert NSStrings (#509)Gravatar rsgowman2017-11-30
|/ | | | | | | | | NSStrings are utf16, so NSString::length returns the number of utf16 characters present in the string. When the string is entirely made up of US-ASCII characters, everything's fine. But when characters requiring 16 bits are present, the size calculations were incorrect. Fixed by calculating the length based on the destination character set (i.e. UTF8).
* Port autoid to C++ and remove FSTUtil (#475)Gravatar Gil2017-11-27
| | | | | | * Port autoid to C++ * Reimplement FSTUtil on top of firestore::CreateAutoId directly * Migrate FSTUtil callers to directly use firestore::CreateAutoId * Remove FSTUtil
* Change FSTExponentialBackoff to use firestore::SecureRandom directly (#492)Gravatar Gil2017-11-27
| | | | | * Migrate FSTExponentialBackoff to Objective-C++ * Change FSTExponentialBackoff to use firestore::SecureRandom directly
* Use a prefix scan when fetching documents matching a query. (#488)Gravatar rsgowman2017-11-22
| | | | Minor optimization (which is already present in the ts code).
* Buildable and interoperable source pods (#444)Gravatar Paul Beusterien2017-11-21
|
* Add SecureRandom (#473)Gravatar Gil2017-11-20
| | | | * Add SecureRandom * Add CMake support for building src/support
* Use NSPrincipalClass as the most reliable way to find tests. (#471)Gravatar Gil2017-11-17
| | | | | | | Unfortunately, using __attribute__((constructor)) doesn't really work because it races with all other constructors run pre-main. As a result it's possible for a test's constructor to run after registration. NSPrincipalClass gets instantiated only after all constructors have run.
* Use fully qualified imports in Firestore (#467)Gravatar Gil2017-11-16
| | | | | | | | | This simplifies the import process back into google3 and allows us to add additional directories to the project without needing to update the project files for each directory we add. This shows up most clearly in the change to Firestore/Example/Firestore.xcodeproj/project.pbxproj: this no longer needs to list essentially every directory in the project as a header search path. * Clang-format configuration for C++ files * Add support C++-only sources to the podspec * Podspec support for fully qualified imports * xcodeproj changes for fully-qualified imports * Use fully-qualified imports in Firestore sources
* Additional support for C++ sources in Firestore (#462)Gravatar Gil2017-11-16
| | | | | * Fix up style from previous PRs * Clang-format configuration for C++ files * Add support C++-only sources to the podspec
* Clang-formatting StorageGravatar Sebastian Schmidt2017-11-09
|
* Make FSTIntegrationTestCase Objective-C++ (#439)Gravatar Gil2017-11-09
| | | | | | | | | | | * Make all FIRLogger functions extern "C" * Make FSTIntegrationTestCase Objective-C++ Keep external interface to FSTIntegrationTestCase Objective-C * Add explicit dependency on Firebase/Community/Core from Tests This fixes a linkage error on a missing _FIRSetLoggerLevel symbol
* Sending an empty write request before tearing down the stream (#438)Gravatar Sebastian Schmidt2017-11-08
|
* Run GoogleTest-based C++ tests in Xcode (#420)Gravatar Gil2017-11-08
| | | | | | * Use GoogleTest as a dependency of Firestore_Tests * Remove top-level leveldb-library from HEADER_SEARCH_PATHS * Add string_util_test to the project and get it to build * Implement FSTGoogleTestTests, a bridge between GoogleTest and XCTest
* Clang-format Objective-C++ too (#419)Gravatar Gil2017-11-07
|
* Moving the Stream class to their own file (#418)Gravatar Sebastian Schmidt2017-10-31
|