Commit Graph
91 Commits
Author SHA1 Message Date
Sebastian Schmidt 23ee2aaf46 Clang format 2017-12-10 23:51:45 -08:00
Sebastian Schmidt e23236bd38 Running scripts/style.sh 2017-12-10 23:07:53 -08:00
Sebastian Schmidt bc179ea4ea Making DocumentSnapshot nullable 2017-12-10 14:40:22 -08:00
Sebastian Schmidt a2f9591f60 Fixing comment 2017-12-08 14:11:19 -08:00
Sebastian Schmidt 84e7f27a3f Adding default option 2017-12-08 14:02:23 -08:00
Sebastian Schmidt bf48b0abc1 Method renames 2017-12-07 19:54:08 -08:00
Sebastian Schmidt 904a141217 Addressing all review comments 2017-12-07 16:03:40 -08:00
zxu 5da88e4b9b Implement NSPredicate-based query (#531)
*   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;
2017-12-07 15:36:15 -05:00
Sebastian Schmidt a8948ced26 Adding SnapshotOptions to deal with pending ServerTimestamps 2017-12-05 23:22:16 -08:00
Paul Beusterien 7fc252bb30 Merge pull request #521 from firebase/release-4.7.0
Core is now 4.7.0
2017-12-01 11:04:57 -08:00
Paul Beusterien 15a8d2d6a0 Core is now 4.7.0 2017-12-01 10:55:33 -08:00
Paul Beusterien f8b22fa78c Fix long line and run style (#517) 2017-11-30 16:25:23 -08:00
Gil 530437ea7a Move sources into firebase::firestore and internal namespaces (#494)
* Move sources into firebase::firestore and internal namespaces

Combine support and core/util packages; this distinction wasn't really
paying its freight.
2017-11-30 12:26:16 -08:00
rsgowman 4ec5f00b1d Fix StringView to properly convert NSStrings (#509)
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).
2017-11-30 13:41:26 -05:00
Gil 7459be46ff Port autoid to C++ and remove FSTUtil (#475)
* Port autoid to C++
* Reimplement FSTUtil on top of firestore::CreateAutoId directly
* Migrate FSTUtil callers to directly use firestore::CreateAutoId
* Remove FSTUtil
2017-11-27 21:00:18 -08:00
Gil 8c4cd9d541 Change FSTExponentialBackoff to use firestore::SecureRandom directly (#492)
* Migrate FSTExponentialBackoff to Objective-C++

* Change FSTExponentialBackoff to use firestore::SecureRandom directly
2017-11-27 12:05:23 -08:00
rsgowman 7936724322 Use a prefix scan when fetching documents matching a query. (#488)
Minor optimization (which is already present in the ts code).
2017-11-22 17:01:26 -05:00
Paul Beusterien 3e592526ec Buildable and interoperable source pods (#444) 2017-11-21 17:02:22 -08:00
Gil 5e49692058 Add SecureRandom (#473)
* Add SecureRandom
* Add CMake support for building src/support
2017-11-20 20:53:08 -08:00
Gil 4a1f29b9b3 Use NSPrincipalClass as the most reliable way to find tests. (#471)
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.
2017-11-17 16:30:57 -08:00
Gil 4fbc96904f Use fully qualified imports in Firestore (#467)
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
2017-11-16 20:52:01 -08:00
Gil 5fbad1b2e2 Additional support for C++ sources in Firestore (#462)
* Fix up style from previous PRs
* Clang-format configuration for C++ files
* Add support C++-only sources to the podspec
2017-11-16 12:05:19 -08:00
Sebastian Schmidt 110f0edf9d Clang-formatting Storage 2017-11-09 17:51:21 -08:00
Gil 86f429b2f0 Make FSTIntegrationTestCase Objective-C++ (#439)
* 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
2017-11-09 09:16:20 -08:00
Sebastian Schmidt 9044d2ce21 Sending an empty write request before tearing down the stream (#438) 2017-11-08 17:04:41 -08:00
Gil c4c7777e75 Run GoogleTest-based C++ tests in Xcode (#420)
* 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
2017-11-08 14:46:50 -08:00
Gil fc9b5447fc Clang-format Objective-C++ too (#419) 2017-11-07 09:42:39 -08:00
Sebastian Schmidt f9b2f91da1 Moving the Stream class to their own file (#418) 2017-10-31 12:32:32 -07:00
Sebastian Schmidt 02ff6bbee9 Closing the write and watch stream after 60s of idleness (#388) 2017-10-30 18:17:16 -07:00
Paul Beusterien 1db9fd83df Really fix pod update warning (#416) 2017-10-30 18:10:51 -07:00
Sebastian Schmidt 8bdce1dfa4 Moving the StreamTest to integration tests (#391) 2017-10-24 12:57:56 -07:00
Sebastian Schmidt 642d304e23 Allowing field deletes with merge-enabled sets (#404) 2017-10-23 11:32:25 -07:00
Michael Lehenbauer aab276a2c8 Port of fix for b/67042460 (retry more often before considering client offline) (#403)
This ensures FSTRemoteStore always tries to connect at least twice before surfacing an FSTOnlineStateFailed
event to external code (which may trigger gets to fail, cached data to be surfaced, etc.).
2017-10-23 10:10:34 -07:00
Michael Lehenbauer 024788e38a Add isEqual() and port DocumentReference array test. (#380)
* Ports the test for the fix I made for Android for DocumentReference objects in arrays (bug not present in iOS).
* Implements isEqual on FIRQuery and FIRDocumentReference.
2017-10-19 08:23:25 -07:00
Gil a64495a33b Fix validation of nested arrays to allow indirect nesting (#377) 2017-10-16 15:56:19 -07:00
Sebastian Schmidt ae171bb226 Adding goOnline/goOffline to the RemoteStore (#347) 2017-10-11 04:51:05 +02:00
Sebastian Schmidt b532b7d191 Fixing XCTAssertEqual order (#356) 2017-10-10 07:45:17 -07:00
Sebastian Schmidt 19d1bb304a Adding NS_SWIFT_NAME for FIRListenerRegistration (#339) 2017-10-06 09:48:03 -07:00
Gil 4dd7ec8e4d Add an NS_SWIFT_NAME for FIRSnapshotMetadata (#334)
Fixes b/67332554

Note that this is a breaking change for Swift users of the API.
2017-10-04 20:45:10 -07:00
Sebastian Schmidt ce2191c04c Adding test for merge with server timestamps (#329) 2017-10-03 15:54:47 -07:00
Gil bde743ed25 Release 4.3.0 (#327)
Initial release of Firestore at 0.8.0
Bump FirebaseCommunity to 0.1.3
2017-10-03 08:55:22 -07:00