Commit Graph
74 Commits
Author SHA1 Message Date
Sebastian Schmidt 05b7a8ec6f Update Database CHANGELOG.md (#4197) 2019-10-30 12:37:22 -07:00
Morten Bek Ditlevsen 0a04968d3d Workaround for NSDecimalNumber longLongValue issue. (#4109) 2019-10-18 10:56:10 -07:00
Ryan Wilson bbcac27b72 Release 6.10.0 (#4022)
* Update versions for Release 6.10.0

* Cherrypick #3983 and include Database in release. (#3986)

* Remove log argument that causes SocketRocket crash (#3983)

* Add FirebaseDatabase to release.

* Update CHANGELOG with version.

* Cherrypick for #3984 along with CHANGELOG update. (#3988)

* Fix race condition in FIRComponentContainer instance creation (#3984)

* Fix race condition in FIRComponentContainer instance creation

Reported in #3967. Users sometimes seeing a crash when multiple threads
concurrently try to create Firestore instances. By inspection I found
that there's a race here where two threads can check for presence in the
cache, see nothing, proceed to creation, both store a value in the cache,
and both return their copies. This would lead to two Firestores being
created for a single App.

This replaces `dispatch_sync` on a serial queue with good old
`@synchronized` blocks. `dispatch_sync` will self-deadlock if called
from a thread already on the queue while `@synchronized` allows
recursion.

No new tests are added because several tests like
`testDependencyDoesntBlock` already cover this case.

* format

* Update Core CHANGELOG

* Update Core CHANGELOG again

* Fix merge from CHANGELOG
2019-10-09 12:10:33 -04:00
Sebastian Schmidt 2b7ffaa37f Remove log argument that causes SocketRocket crash (#3983) 2019-10-03 07:01:37 -07:00
Paul Beusterien e4e2a49eef RTDB 6.1.0 Changelog update (#3566) 2019-08-12 15:05:11 -07:00
Paul Beusterien 3b1ebfdc70 Update Database for Catalyst (#3512) 2019-08-07 06:55:51 -07:00
Sebastian Schmidt c706ce9508 Support the RTDB emulator (#3491) 2019-08-05 16:54:37 -07:00
Sebastian Schmidt 9bfbb9ece0 Enable clang-format for RTDB (#3506) 2019-08-05 13:27:47 -07:00
davidair 955ef6bb15 Adding missing LICENSE files (#2791) 2019-04-09 18:02:41 -07:00
Paul Beusterien 8edb8f5735 Remove deprecated RTDB API (#2770) 2019-04-08 19:57:31 -07:00
Paul Beusterien fd6f93d89d Begin migrating FIRLoggerService declarations to clients (#2720) 2019-04-08 08:54:21 -07:00
Paul Beusterien 7abbcabf12 Add missing nil check (#2488) 2019-03-09 06:42:36 -08:00
Ryan Wilson 676c616ebb Fix small typos in public documentation. (#2192) 2018-12-17 10:53:46 -05:00
Paul Beusterien 943141e0cd Use registerLibrary for pods in Firebase workspace (#2137)
* Add versioning to Functions and convert to FIRLibrary
* Convert Firestore to FIRLibrary
* Point travis to FirebaseCore pre-release for its deps
* Update user agent strings to match spec
2018-12-13 08:36:08 -08:00
Benoit St-Pierre 54659e8d99 Database Interop Rollforward (#2095)
* Register Database with Interop

+ Add AuthInterop dependency
+ Have Database register with Interop component container
+ Add weak dependency on Auth
~ Cleaned up imports

* Use Interop for Auth token fetching

+ Use macro to get auth component
~ Change `getTokenForcingRefresh:withCallback:` call to use Interop component version of Auth
~ Clean up imports

* Implement necessary protocols

+ Added FIRComponentRegistrant and FIRDatabaseNilProtocol to FIRDatabase

* Squash of my previous local commits for Database Interop

Register Database with Interop:

  + Add AuthInterop dependency
  + Have Database register with Interop component container
  + Add weak dependency on Auth
  ~ Cleaned up imports

Use Interop for Auth token fetching:

  + Use macro to get auth component
  ~ Change `getTokenForcingRefresh:withCallback:` call to use Interop component version of Auth
  ~ Clean up imports

Implement necessary protocols:

  + Added FIRComponentRegistrant and FIRDatabaseNilProtocol to FIRDatabase

Clean up Database tests:

  - Removed all unnecessary header files
  ~ Ran style.sh across all the tests

Cleaned Up project file:

  Some header removals were missed in the last commit.

Sorted some test files

Fix Database Fake App Tests:

  + Added container property
  + Added an Auth fake in the container
  + Added the Shared utils files to the necessary targets
  + Added a missing XCTest reference in a test that didn't compile for me

* Revert "Squash of my previous local commits for Database Interop"

This reverts commit c0d0421237.

* Cleaned Up project file

Some header removals were missed in the last commit.

* Sorted some test files

* Fix Database Fake App Tests

+ Added container property
+ Added an Auth fake in the container
+ Added the Shared utils files to the necessary targets
+ Added a missing XCTest reference in a test that didn't compile for me

* PR Feedback Changes

+ Created new FIRDatabaseComponent class to encapsulate instance creation
+ Updated FAuthTokenProvider to only use an auth instance rather than an app.

* PR Feedback Follow-Up

- Removed FIRDatabase registration code

* pod deintegrate

* Move instance management

Somes tests may still be out of date.

* Fix Auth integration test

* pod deintegrate -- again

* PR Feedback

* PR Feedback

Added the FIRComponentLifecycleMaintainer protocol to FIRDatabaseComponent

* Update Firebase/Database/Api/FIRDatabaseComponent.m

Missed some small changes

* Get integration tests compiling

* Fix some tests

* Fixed more tests

Component needs to be cacheable in order to get the appWIllBeDeleted callback.

* Update target memberships

* Revert project file changes

* Add FIRAuthInteropFake for broken targets

* PR feedback

* Spacing and Style

* Moved `instances` to ivar

* Simplify FIRDatabaseDictionary

It's now keyed on the URL with the app being implied since each app will get its own `FIRDatabaseComponent`

* Fix Database Integration Tests

Have the FakeApp cache DB instances
Use the Full host/URL path to cache DB instances
Simplified shared scheme

```
Test Suite 'Database_IntegrationTests_iOS.xctest' passed at 2018-11-20 07:09:30.520.
	 Executed 326 tests, with 0 failures (0 unexpected) in 66.251 (66.528) seconds
Test Suite 'All tests' passed at 2018-11-20 07:09:30.522.
	 Executed 326 tests, with 0 failures (0 unexpected) in 66.251 (66.530) seconds
```

* Clarify defaultApp use
2018-11-22 06:44:42 -05:00
Benoit St-Pierre 50d27eb6ac Revert "Database Interop (#1865)" (#2093)
This reverts commit 4090195f15.
2018-11-19 09:52:42 -05:00
Benoit St-Pierre 4090195f15 Database Interop (#1865)
* Register Database with Interop

+ Add AuthInterop dependency
+ Have Database register with Interop component container
+ Add weak dependency on Auth
~ Cleaned up imports

* Use Interop for Auth token fetching

+ Use macro to get auth component
~ Change `getTokenForcingRefresh:withCallback:` call to use Interop component version of Auth
~ Clean up imports

* Implement necessary protocols

+ Added FIRComponentRegistrant and FIRDatabaseNilProtocol to FIRDatabase

* Squash of my previous local commits for Database Interop

Register Database with Interop:

  + Add AuthInterop dependency
  + Have Database register with Interop component container
  + Add weak dependency on Auth
  ~ Cleaned up imports

Use Interop for Auth token fetching:

  + Use macro to get auth component
  ~ Change `getTokenForcingRefresh:withCallback:` call to use Interop component version of Auth
  ~ Clean up imports

Implement necessary protocols:

  + Added FIRComponentRegistrant and FIRDatabaseNilProtocol to FIRDatabase

Clean up Database tests:

  - Removed all unnecessary header files
  ~ Ran style.sh across all the tests

Cleaned Up project file:

  Some header removals were missed in the last commit.

Sorted some test files

Fix Database Fake App Tests:

  + Added container property
  + Added an Auth fake in the container
  + Added the Shared utils files to the necessary targets
  + Added a missing XCTest reference in a test that didn't compile for me

* Revert "Squash of my previous local commits for Database Interop"

This reverts commit c0d0421237.

* Cleaned Up project file

Some header removals were missed in the last commit.

* Sorted some test files

* Fix Database Fake App Tests

+ Added container property
+ Added an Auth fake in the container
+ Added the Shared utils files to the necessary targets
+ Added a missing XCTest reference in a test that didn't compile for me

* PR Feedback Changes

+ Created new FIRDatabaseComponent class to encapsulate instance creation
+ Updated FAuthTokenProvider to only use an auth instance rather than an app.

* PR Feedback Follow-Up

- Removed FIRDatabase registration code

* pod deintegrate

* Move instance management

Somes tests may still be out of date.

* Fix Auth integration test

* pod deintegrate -- again

* PR Feedback

* PR Feedback

Added the FIRComponentLifecycleMaintainer protocol to FIRDatabaseComponent

* Update Firebase/Database/Api/FIRDatabaseComponent.m

Missed some small changes

* Get integration tests compiling

* Fix some tests

* Fixed more tests

Component needs to be cacheable in order to get the appWIllBeDeleted callback.

* Update target memberships

* Revert project file changes

* Add FIRAuthInteropFake for broken targets

* PR feedback

* Spacing and Style

* Moved `instances` to ivar

* Simplify FIRDatabaseDictionary

It's now keyed on the URL with the app being implied since each app will get its own `FIRDatabaseComponent`
2018-11-19 07:36:05 -05:00
Allen Humphreys 3f4ffc82b4 Fixes incorrect declaration of the init method 2018-08-31 14:23:35 -05:00
Paul Beusterien 4b3c511e8b Fix analyze issues in Storage and Database (#1741) 2018-08-24 10:13:22 -07:00
Paul Beusterien ec4f365b60 Update database release notes for M29 (#1458) 2018-06-26 09:36:11 -07:00
Paul Beusterien 16132541d4 Fix undefined behavior sanitizer issues in RTDB (#1445) 2018-06-25 10:49:10 -07:00
Ryan Wilson dea3fe9aeb Explicitly import FIRDataSnapshot in private header. (#1276) 2018-05-14 12:14:17 -07:00
Paul Beusterien 5ecdcc5ae1 Fix new Xcode 9.3 warnings (#1183) 2018-04-25 08:32:23 -07:00
Paul Beusterien e46f27a2c4 Eliminate tvOS deprecation warnings in FirebaseDatabase (#1155)
* Delete unused URLEncoded and URLDecoded
2018-04-20 16:04:04 -07:00
Paul Beusterien 2f86a29744 Remove old, unused podspecs (#1129) 2018-04-17 15:20:58 -07:00
Sebastian Schmidt 22334407d3 Fixing concurrent modification when we cancel transaction 2018-04-09 16:32:38 -07:00
Morten Bek Ditlevsen 117e2ac09d Unify the representation of the dotInfoConnected value to always be an __NSCFBoolean 2018-04-09 09:32:29 +02:00
Paul Beusterien 1e769d7084 Delete legacy module map (#964) 2018-03-22 10:21:03 -07:00
Sebastian Schmidt add61e6c01 Update CHANGELOG.md 2018-02-26 13:31:58 -08:00
Sebastian Schmidt d1f7cdafcb Update CHANGELOG.md 2018-02-26 12:10:26 -08:00
Sebastian Schmidt c8d86999c2 Updating RTDB Changelog for v4.1..5 2018-02-26 12:10:04 -08:00
Sebastian Schmidt b6613bdba7 Cleaning up implicit retain for the RTDB and Storage
Cleaning up implicit retain for the RTDB and Storage
2018-02-13 12:53:02 -08:00
Ryan Wilson c7c51a72d2 Fix double parsing on 32 bit devices. (#787) 2018-02-13 14:04:25 -05:00
Sebastian Schmidt 12faf205f3 Cleaning up implicit retain for the RTDB and Storage 2018-02-13 10:27:53 -08:00
Sebastian Schmidt afd7daeb01 Update Changelog for RTDB 4.14 2018-01-10 18:37:17 -08:00
Paul Beusterien f08b5044d6 Add Community Supported tvOS (#590)
Add Community Supported tvOS for Core, Auth, Database and Storage.
Add tvOS unit tests
Add tvOS sample app
Update README.md
Add tvOS to travis testing
2018-01-03 12:12:22 -08:00
Sebastian Schmidt df6ae1beb7 Update CHANGELOG.md 2017-12-13 09:12:01 +08:00
Paul Beusterien ed3e4982f9 Standardize cross module imports with angle bracket syntax (#526)
Qualify all cross-pod imports of FirebaseCore headers
2017-12-04 08:52:11 -08:00
Paul Beusterien 343421d93e FIRAppInternal.h is a published private header (#501) 2017-11-28 13:52:51 -08:00
Ryan Wilson 7386f00178 Replacing FIR_SWIFT_NAME macro with NS_SWIFT_NAME. (#476)
* Replacing FIR_SWIFT_NAME macro with NS_SWIFT_NAME.

This pushes the minimum Xcode version to 7.3, as NS_SWIFT_NAME was
limited before that version (which is why the macro was introduced in
the first place).

* Fixed FIRMessaging header
2017-11-28 06:59:07 -08:00
Sebastian Schmidt bbd95a0143 Updating Changelog for 4.1.2 RTDB release 2017-11-21 12:23:05 -08:00
Sebastian Schmidt 4591d418da Using defereed init to ensure that we init FEmptyNode only once 2017-11-09 15:41:32 -08:00
Ibrahim Ulukaya 07595ce66b Enumerator using generic. Cleaner for .. in .. loop in Swift (#433)
* Enumerator using generic. Cleaner for .. in .. loop in Swift

So 
for childSnapshot in snapshot.children {
you don't need to cast each child. Each cild is already known as DataSnapshot

* Update FIRDataSnapshot.h

* Update FIRMutableData.h

* Update FIRMutableData.m
2017-11-08 17:22:01 -05:00
Ryan Wilson a2632ed24f Fixed capitalization in Xcode. (#361) 2017-10-10 07:54:07 -07:00
Sebastian Schmidt d320aa9d36 Adding RTDB 4.1.1 release notes (#358) 2017-10-10 07:02:28 -07:00
Paul Beusterien fed01fc8d4 Fix warnings exposed by Xcode 9.1 in RTDB (#353) 2017-10-10 06:55:36 -07:00
Sebastian Schmidt 9ce155edbc RTDB Changelog for v4.1.0 (#316)
* RTDB Changelog for v4.1.0

* Update CHANGELOG.md
2017-09-26 13:44:02 -07:00
Sebastian Schmidt c6bde890ce Adding Multi-Resource support to the Firebase iOS SDK (#278)
* Adding Multi-Resource support to the Firebase iOS SDK.

This CL also makes RepoInfo hashable and simplifies RepoManager based on this.
2017-09-15 16:45:46 -07:00
Sebastian Schmidt 06a7c4f330 Update CHANGELOG.md (#280) 2017-09-15 16:44:04 -07:00
Sebastian Schmidt f0442122d3 Don't delete apps that don't exist (#276) 2017-09-15 12:11:33 -07:00