Commit Graph
22 Commits
Author SHA1 Message Date
Ryan WilsonandMaksym Malyhin 811d4a9e80 Fix pod lib lint for watchOS + add CI test (#7740)
* Fix pod lib lint for watchOS

* Add watchOS build test.

* Code review feedback

* Typo and formatting

* Typo and formatting

* fix typo

* Add missing test util files to tests targets

Co-authored-by: Maksym Malyhin <mmaksym@google.com>
2021-03-17 19:02:59 -04:00
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
Maksym Malyhin feb5ce9517 RTDB FSRWebSocket: suppress diagnostic error (#7460)
* RTDB FSRWebSocket: suppress diagnostic error

* Use macro instead of a constant

* Changelog

* typo
2021-02-04 17:35:15 -05:00
Sebastian Schmidt 464d674f35 Add getData overload to DatabaseReference (#7377) 2021-01-26 16:39:02 -07:00
Jan WyszynskiandSebastian Schmidt 61e4671010 Add method documentation got getDataWithCompletionBlock (#7375)
* Add method documentation got getDataWithCompletionBlock

* Update FirebaseDatabase/Sources/Public/FirebaseDatabase/FIRDatabaseQuery.h

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

Co-authored-by: Sebastian Schmidt <mrschmidt@google.com>
2021-01-25 10:34:37 -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 Wyszynski b1766c2fd6 Implement startAfter and endBefore for RTDB queries (#7209) 2021-01-13 18:34:05 -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 dc1451d513 Disable deprecation warning (#6512) 2020-10-09 16:27:10 -07:00
Paul Beusterien 672256e11e C API for Firebase Version (#6690) 2020-10-07 15:03:20 -07:00
Paul Beusterien 83e898ab5c One Firebase version (#6634) 2020-10-02 12:26:22 -07:00
Sebastian Schmidt 424a58710b Infer Database URL from project ID (#6332) 2020-08-26 20:04:41 +02:00
Paul Beusterien a995dc4f59 RTDB - new public header structure (#6171) 2020-07-31 07:22:02 -07:00
Paul Beusterien d7ddd5bfba SPM: Build and unit test RTDB (#6022) 2020-07-13 11:16:24 -07:00
Paul Beusterien 01bf549253 Update formatters (#5933) 2020-06-26 14:34:27 -07:00
Paul Beusterien 014236c6a7 Fix Changelog location (#5870) 2020-06-22 11:08:51 -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