Commit Graph
66 Commits
Author SHA1 Message Date
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
Paul Beusterien 1c97e8266a Move mugs derived code to third_party with proper LICENSE (#247) 2017-09-13 15:35:01 -07:00
Sebastian Schmidt 371e00d382 Update CHANGELOG.md for Database (#261)
* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md
2017-09-13 10:16:04 -07:00
Sebastian Schmidt 1df4f7287d Fixing the session identifier for non-default apps (#240) 2017-09-06 16:07:13 -07:00
Ryan Wilson f70eee41f9 Update Changelog for 4.0.2 release. (#217) 2017-08-25 14:01:37 -07:00
Ryan Wilson 566665e3bb Delete app from Database when deleted in Core. (#194)
* Delete an app from Database when deleted in Core.

When a FIRApp is deleted in Core, it should also be deleted from
the instances array in Database.

See #160 for more details.

* Add tests for deleting databases.

* Add call to clean up deleted FIRDatabase instance.
2017-08-17 11:15:25 -04:00
Sebastian Schmidt 55476604aa Inlcuding bandwidth usage in error message for queries without indexes (#201) 2017-08-16 19:08:43 -07:00
Sebastian Schmidt 974680084d Adding ChangeLogs for Storage and Database (#184) 2017-08-07 18:25:38 -07:00
Ryan Wilson 6e00706604 Move Auth notification constant into Core. (#155)
* Move Auth notification constant into Core.

SDKs that want to listen for the internal Auth notifications needed
to copy the notification strings to their own SDK instead of relying
on Auth's definition in order to avoid a dependency on Auth. By moving
them to Core, SDKs can use the constants without taking on another
dependency.

* Remove Auth stub, add app instance to notification.
2017-08-04 15:42:14 -07:00