aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Merge pull request #801 from firebase/release-4.9.0Gravatar Paul Beusterien2018-02-14
|\
* | Update README.md with code markup (#800)Gravatar Ryan Wilson2018-02-14
| | | | | | Add code markup to a few paths for consistency.
* | Fixed capitalization of init in test function. (#797)Gravatar Ryan Wilson2018-02-14
| |
* | Improve documentation on auto-init property in FCM. (#792)Gravatar Chen Liang2018-02-13
| |
* | Actually ignore events on inactive streams, rather than just logging that ↵Gravatar Greg Soltis2018-02-13
| | | | | | | | we're going to. (#790)
* | Serialize and deserialize null (#783)Gravatar rsgowman2018-02-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Build (grpc's) nanopb with -DPB_FIELD_16BIT We require (at least) 16 bit fields. (By default, nanopb uses 8 bit fields, ie allowing up to 256 field tags.) Also note that this patch adds this to grpc's nanopb, rather than to our nanopb. We'll need to eventually either: a) we instruct grpc to use our nanopb b) we rely on grpc's nanopb instead of using our own. (^ marked as a TODO for now.) * Add some dependant protos Imported from protobuf. Nanopb requires these to be present (though anything using libprotobuf does not, as these are already built into that.) * Add generated nanopb protos based off of newly added proto definitions * Build the nanopb protos * Serialize and deserialize null
| * Fix off-by-one error in Auth changelog (#789)Gravatar Paul Beusterien2018-02-13
| |
* | fix flaky test (#788)Gravatar zxu2018-02-13
| |
* | Cleaning up implicit retain for the RTDB and StorageGravatar Sebastian Schmidt2018-02-13
|\ \ | | | | | | Cleaning up implicit retain for the RTDB and Storage
| * | style fixGravatar Paul Beusterien2018-02-13
| | |
* | | Keep track of number of queries in the query cache (#776)Gravatar Greg Soltis2018-02-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement schema versions * Style fixes * newlines, copyrights, assumptions * Fix nullability * Raw ptr -> shared_ptr * kVersionTableGlobal -> kVersionGlobalTable * Drop utils, move into static methods * Drop extra include * Add a few more comments * Move version constant into migrations file * formatting? * Fix comment * Split add and update queryData * Work on adding targetCount * More work on count * Using shared_ptr * Implement count for query cache * use quotes * Add cast * Styling * Revert year bump in copyright * Add adversarial key to migration test * Add comment * Fix style
* | | Fix double parsing on 32 bit devices. (#787)Gravatar Ryan Wilson2018-02-13
| | |
| * | Cleaning up implicit retain for the RTDB and StorageGravatar Sebastian Schmidt2018-02-13
| | |
* | | Port Firestore Document to C++ (#777)Gravatar zxu2018-02-12
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * implement SnapshotVersion and test * update project * implement MaybeDocument and test * move snapshot-version from core to model * fix a bug * implement Document and test * implement NoDocument * adding type tag and fix style * fix a few bugs, discovered after merging and test run. * add assert to check FieldValue type and more test for comparision. * address changes * allow moving FieldValue to construct Document. * address changes * add document tests to project * use std::less convention * make Type::Unknown static initializer
* | Update FieldValue of type Reference (#775)Gravatar zxu2018-02-12
| | | | | | | | | | | | | | | | | | | | * update FieldValue of type Reference * address change * fix bad path string literal in test * use ReferenceValue and qualified name
* | Move to explicit nil check. (#782)Gravatar Ryan Wilson2018-02-12
| |
* | Strawman C++ API (#763)Gravatar rsgowman2018-02-12
| | | | | | | | Incomplete, and what does exist in still slightly vague. It's expected that this will change.
* | C++ port: add C++ equivalent of FSTDocumentKey. (#762)Gravatar Konstantin Varlamov2018-02-09
| | | | | | | | | | Also move kDocumentKeyPath to the only point of usage - make it a static member variable of FieldPath.
* | Fix Core CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF warnings (#779)Gravatar Paul Beusterien2018-02-09
| |
* | port Firestore SnapshotVersion in C++ (#767)Gravatar zxu2018-02-09
| | | | | | * implement SnapshotVersion and test
* | port Firestore Auth module in C++ (#733)Gravatar zxu2018-02-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement firestore/auth/user * add user to project and some fixes * implement firestore/auth/{credentials_provider,empty_credentials_provider} * implement firestore/auth/firebase_credentials_provider * refactoring firebase_credentials_provider and add (disabled but working) unit test * add auth test to project * address changes * small fix to style and project * fix the firebase_credentials_provider_test * fix style * address changes * revert the change to static mutex_ * remove my custom plist path * fix style * address changes * refactoring FirebaseCredentialsProvider to fix the issue w.r.t. auth global dispatch queue * add /*force_refresh=*/ tag to bool literal for style purpose * Use a shared_ptr/weak_ptr handoff on FirebaseCredentialsProvider (#778) * Revert "refactoring FirebaseCredentialsProvider to fix the issue w.r.t. auth global dispatch queue" This reverts commit 87175a4146267d403a774f138b85f8d3b532fa4b. * Use a shared_ptr/weak_ptr handoff on FirebaseCredentialsProvider This avoids any problems with callsbacks retaining pointers to objects destroyed by a C++ destructor
* | Let Travis run for `CMake` test and `lint.sh` (#769)Gravatar zxu2018-02-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix nanopb (in cmake build) Look for binaries in the src dir (since that's where we build now.) This error would be masked if a previous build had completed prior to switching nanopb to build out of src. Also, don't patch the protoc path multiple times. This could be triggered by (eg) 'make && make clean && make'. * Add resource_path.{h,cc} to the cmake build * Fix signed/unsigned int comparison warnings * let Travis run for `CMake` test and `lint.sh` * Ensure FieldValue tag_ is initialized during cp/mv ctor. Otherwise, the assignment operator attempts to deallocate based on the (uninitialized) tag_ variable, posssibly leading to segfaults. * address change * fix trailing space * address change * moving Firestore checks closer together * Fix tests that throw exceptions. The (previous) tests checked to ensure that an abort() occurs, but if ABSL_HAVE_EXCEPTIONS is defined on non-macos (which is currently the default) then the assertions will throw a std::logic_error rather than abort()ing. On macos, an exception is thrown too, but the exception doesn't derrive from std::exception, so ASSERT_DEATH_* doesn't catch it (hence why ASSERT_DEATH_* actually works.) To resolve this, I've switched to ASSERT_ANY_THROW. * ./scripts/lint.sh * Move FieldValue::tag_ initializer to be in class. * check Travis ulimit * check travis limit * set make -j 200 instead of unlimited * use cpu core number instead of 200
* | cmake build fixes (#770)Gravatar rsgowman2018-02-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix nanopb (in cmake build) Look for binaries in the src dir (since that's where we build now.) This error would be masked if a previous build had completed prior to switching nanopb to build out of src. Also, don't patch the protoc path multiple times. This could be triggered by (eg) 'make && make clean && make'. * Add resource_path.{h,cc} to the cmake build * Fix signed/unsigned int comparison warnings * Ensure FieldValue tag_ is initialized during cp/mv ctor. Otherwise, the assignment operator attempts to deallocate based on the (uninitialized) tag_ variable, posssibly leading to segfaults. * Fix tests that throw exceptions. The (previous) tests checked to ensure that an abort() occurs, but if ABSL_HAVE_EXCEPTIONS is defined on non-macos (which is currently the default) then the assertions will throw a std::logic_error rather than abort()ing. On macos, an exception is thrown too, but the exception doesn't derrive from std::exception, so ASSERT_DEATH_* doesn't catch it (hence why ASSERT_DEATH_* actually works.) To resolve this, I've switched to ASSERT_ANY_THROW.
| * Version bumps for 4.9.0 (#774)Gravatar Paul Beusterien2018-02-08
|/
* Update deprecation message for Firestore. (#758)Gravatar Ryan Wilson2018-02-08
| | | | | | * Update FIRFirestore.h * Provide full command to enable debugging.
* Explicitly specify the default constructor to FieldPath (#773)Gravatar Gil2018-02-08
| | | | | | | | | | | Xcode prior to 8.3 does not accept an explicitly defaulted constructor (`= default`) for the purposes of default initializing a const object. This fixes a build failure under Xcode 8.2: ``` Firestore/core/src/firebase/firestore/model/field_path.cc:144:26: error: default initialization of an object of const type 'const firebase::firestore::model::FieldPath' without a user-provided default constructor static const FieldPath empty_path; ```
* Update CHANGELOG for Firestore v0.10.1 (#768)Gravatar Gil2018-02-08
|
* Updates version of Firebase Auth in Changelog (#771)Gravatar Zsika Phillip2018-02-07
| | | | | | * Updates version of Firebase Auth in Changelog * addresses comments
* avoid using initWithSuiteName which does not support iOS 7 (#765)Gravatar Chen Liang2018-02-06
|
* Creating CHANGELOG for FCM (#764)Gravatar Chen Liang2018-02-06
| | | | | | * add CHANGELOG for FCM * fix the typo
* C++ port: port FSTFieldPath and FSTResourcePath to C++ (#749)Gravatar Konstantin Varlamov2018-02-06
| | | Similar to Objective-C, FieldPath and ResourcePath share most of their interface (and implementation) by deriving from BasePath (using CRTP, so that factory methods in BasePath can return an instance of the derived class).
* Merge pull request #747 from firebase/rsgowman/nanopbGravatar rsgowman2018-02-06
|\ | | | | Integrate nanopb
* \ Merge pull request #757 from firebase/wilhuff/mergeGravatar Gil2018-02-06
|\ \ | | | | | | Merge updated abseil-cpp to master
* | | Implement Firestore DatabaseInfo and port both Database{Id,Info} C++ to the ↵Gravatar zxu2018-02-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | iOS code (#738) * implement Firestore DatabaseInfo in C++ * temporary stash changes; blocking on the massive renaming of .m to .mm * add database_info_test to project * finish port DatabaseId and fix style, modular fixing DatabaseInfo * port DatabaseInfo * remove FSTDatabase{ID,Info} and their tests from project * fix unit test * use namespace alias * use namespace alias, leftover * address more changes * refactoring to use raw pointer instead of value for property * address changes * remove self-> * fix style * remove the name suffix Alloc * fix a bug
* | | Fix firebaes typo (#755)Gravatar Paul Beusterien2018-02-06
| | |
| | * Fix xcode build errors re nanopbGravatar Rich Gowman2018-02-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | Involves adding PODS_ROOT/nanopb to include path (to allow include <pb.h>) and Firestore/Protos/nanopb to include path (to allow include "google/api/annotations.pb.h" and similar). In both cases, this is to allow auto-generated code to function properly.
| * | Merge branch 'abseil-mirror' into mergeGravatar Marek Gilbert2018-02-06
| |\ \ | | | | | | | | | | | | | | | | | | | | Add StrCat, StrJoin and the rest of //strings from abseil-cpp (#756) From abseil-cpp version bf7fc9986e20f664958fc227547fd8d2fdcf863e
| * | | Merge commit 'abseil-mirror' into mergeGravatar Marek Gilbert2018-02-06
|/| | | | | | | | | | | | | | | | | | | | | | | Update abseil-cpp to a new upstream (#754) Update to bf7fc9986e20f664958fc227547fd8d2fdcf863e
| | * | Add StrCat, StrJoin and the rest of //strings from abseil-cpp (#756)Gravatar Gil2018-02-06
| |/ / | | | | | | From abseil-cpp version bf7fc9986e20f664958fc227547fd8d2fdcf863e
| * | Update abseil-cpp to a new upstream (#754)Gravatar Gil2018-02-06
| | | | | | | | | Update to bf7fc9986e20f664958fc227547fd8d2fdcf863e
| | * Ignore trailing whitespace in autogenerated nanopb filesGravatar Rich Gowman2018-02-06
| | |
| | * Minor refactoringGravatar Rich Gowman2018-02-06
| | |
| | * Downgrade nanopb from 0.4.0-dev to 0.3.8.Gravatar Rich Gowman2018-02-06
| | | | | | | | | | | | Also regenerate the protos
| | * ./style.shGravatar Rich Gowman2018-02-06
| | |
| | * style.sh now ignores generated nanopb filesGravatar Rich Gowman2018-02-06
| | |
| | * Hook up nanopb to firestorep projectGravatar Rich Gowman2018-02-06
| | | | | | | | | | | | | | | Use remote/serializer placeholder class as a hook for the test to ensure nanopb headers can be found, and test can be linked.
| | * Import "well-known" protos (and generated nanopb files)Gravatar Rich Gowman2018-02-06
| | | | | | | | | | | | For use by nanopb (which otherwise doesn't know what to do with these.)
| | * Add generated nanopb protos.Gravatar Rich Gowman2018-02-06
| | | | | | | | | | | | 100% machine generated (except adding of the license).
| | * Add instructions for building nanopb protosGravatar Rich Gowman2018-02-06
| | | | | | | | | | | | Currently only supported on osx
| | * Add ability to build nanopb and protobufGravatar Rich Gowman2018-02-06
| | |