Commit Graph
11 Commits
Author SHA1 Message Date
Ryan Wilson f60577f781 watchOS support for RTDB (#7656)
* Initial attempt for watchOS Database support

* watchOS Package manifest changes for SwiftPM testing.

* Fix iOS compilation

* Further iOS changes

* Further watchOS changes

* Reverted !WATCHOS && 0 change, fixed SharedTestUtils

* Proper logging, using positive if statements

* Properly handle lifecycle changes on watchOS sockets.

Also only log errors if we haven't closed things intentionally.

* Cleanup:

- Removal from outdated sample
- Fixed podspec
- Fixed Swift Package

* Actually restore SwiftPM XCScheme

* Restore ExtensionDelegate.swift

* Revert all changes to ExtensionDelegate.swift

* Cleanup from code review.

* Style

* Added CHANGELOG entry.

* Review comments.

* Style.sh

* Remove unnecessary wrappers for SwiftPM

* Review feedback

* Formatting
2021-03-12 14:19:16 -05:00
Jan Wyszynski 6db2e0d856 Fix startAfter/endBefore for orderByKeys queries (#7403) 2021-02-10 09:42:36 -08:00
Jan Wyszynski ed003f7610 RTDB query gets should not send server requests for listened-to data (#7312) 2021-01-22 10:46:14 -08:00
Jan WyszynskiandSebastian Schmidt 95aac941d9 Implement get for RTDB queries (#7264)
* Implement RTDB Query get

* changelog

* Mark query inactive after callback

* Add tests, fix some issues

* some small fixes

* Fix tests

* Review feedback

* Address review feedback + fixup tests

* Remove extra logs

* Update FirebaseDatabase/Sources/Core/FPersistentConnection.m

Co-authored-by: Sebastian Schmidt <mrschmidt@google.com>

* Review feedback

* Write to unique paths

* Removed FIR prefix

* Add _Nullable specifiers in FRepo.h

* format nullability stuff

* fix get cache test

* goOnline in when get tests finish to avoid interference

* Address review feedback

Co-authored-by: Sebastian Schmidt <mrschmidt@google.com>
2021-01-07 17:41:32 -08:00
Paul Beusterien f8c6459b56 Revert "Implement RTDB Query get (#7110)" (#7262)
This reverts commit 55f27b5482.
2021-01-07 07:36:02 -08:00
Jan WyszynskiandSebastian Schmidt 55f27b5482 Implement RTDB Query get (#7110)
* Implement RTDB Query get

* changelog

* Mark query inactive after callback

* Add tests, fix some issues

* some small fixes

* Fix tests

* Review feedback

* Address review feedback + fixup tests

* Remove extra logs

* Update FirebaseDatabase/Sources/Core/FPersistentConnection.m

Co-authored-by: Sebastian Schmidt <mrschmidt@google.com>

* Review feedback

* Write to unique paths

* Removed FIR prefix

* Add _Nullable specifiers in FRepo.h

* format nullability stuff

* fix get cache test

Co-authored-by: Sebastian Schmidt <mrschmidt@google.com>
2021-01-05 17:07:05 -08:00
Morgan ChenandPaul Beusterien 90d3600c56 Implement unified emulator settings API proposal (#5916)
* Add header for API proposal

* Fix some bugs and add implmentation

* Fix header import

* Fix umbrella header

* Add ways to modify settings object

* Remove unnecessary nodoc

* Update with new API

* Add implementations for Firestore and RTDB

* Revert emulator settings class

* fix style

* Remove bad import and assertion on override

* Prevent database emu from being set after repo init

* Add unified emu to functions

* Add tests

* update header comment

* fix test failures

* remove unused variable

* fix database test

* cast NSInteger to long

* fix style

* Fix functions test in travis

* Remove valueForKeyPath in tests

* fix style

* update comments and remove explicit scheme

* save progress

* Implement reference validation for RTDB

* Add tests

* Add changelog entries

* Remove test logs

* Fix line lengths

* remove underlyingHost

* fix functions tests

* fix integration warnings in functions test

* fix functions test

* Fix infinite loop exposed in integration tests (#6912)

Co-authored-by: Paul Beusterien <paulbeusterien@google.com>
2020-11-06 10:37:06 -08:00
Paul Beusterien a995dc4f59 RTDB - new public header structure (#6171) 2020-07-31 07:22:02 -07:00
Paul Beusterien 01bf549253 Update formatters (#5933) 2020-06-26 14:34:27 -07:00
Paul Beusterien 7cb6f96cfd Repo-relative imports for Database (#5861) 2020-06-22 07:58:52 -07:00
Paul Beusterien fa72963bfd Update FirebaseDatabase to canonical directory structure (#5860) 2020-06-22 07:26:07 -07:00