Commit Graph
61 Commits
Author SHA1 Message Date
Chuan Ren 663225526e Add support of Game Center sign in (#2127) 2018-11-30 17:30:22 -08:00
Benoit St-Pierre 67ece3fe35 Revert "Add Firebase Source to Header Search Path" (#2123)
* Revert "Custom fdl domain (#2121)"

This reverts commit ebea1eff17.

* Revert "enable disabled passed integration test (#2120)"

This reverts commit 48e5f7a33b.

* Revert "Wire together LRU GC (#1905)"

This reverts commit 305f87215e.

* Revert "Fix build under linux/gcc (#2116)"

This reverts commit b0a4b6c827.

* Revert "Implement PatchMutation::ApplyToLocalView (#1973)"

This reverts commit f66b5b5b2a.

* Revert "Add Firebase Source to Header Search Path (#2114)"

This reverts commit 0540361852.
2018-11-27 07:53:50 -05:00
Benoit St-Pierre 0540361852 Add Firebase Source to Header Search Path (#2114)
This resolves the annoying Xcode errors that claim `FIRAppInternal.h` can't be found.

It also makes it *much* easier to "Jump to definition" now.
2018-11-22 17:32:13 -05: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
Chuan Ren a1966bb639 Add test for verify iOS client (#2096) 2018-11-19 15:34:18 -08: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
Paul Beusterien c27db6d477 Fix analyze errors (#2047) 2018-11-05 13:07:22 -08:00
Paul Beusterien 57ba70503b Delete deprecated files (#2038) 2018-11-01 15:39:10 -07:00
Sebastian Schmidt 77f1bee060 Adding AppCode Diff (#1996) 2018-10-24 13:47:36 -07:00
Paul Beusterien 8680441341 Remove cruft from project file (#1975) 2018-10-21 15:14:45 -07:00
Paul Beusterien 81fb6a03ef Remove need for [FIRApp configure] in Messaging unit tests (#1927)
* Remove need for [FIRApp configure] in Messaging unit tests
* Add missing file to test target
2018-10-10 15:24:04 -07:00
Paul Beusterien 467354a58f Do Messaging's Analytics logging via Interop (#1902) 2018-10-09 16:34:06 -07:00
Paul Beusterien e2cae239bc Remove testing workaround (#1848)
* Turn off -all_load to workaround Analytics duplicate symbol bug b/116139404
2018-09-19 15:25:24 -07:00
Paul Beusterien c724f9d1e8 Open Source FirebaseDynamicLinks (#1842) 2018-09-19 12:08:51 -07:00
Paul Beusterien 5fa1c93ae0 Fix tvOS build with Xcode 10 (#1819) 2018-09-13 15:15:07 -07:00
Ryan Wilson de37b4602a Move Storage to Interop process (#1660)
* Move Storage to Interop process.

* Testing refactor.

* Fix tests, add common infrastructure for interop.

* Further re-working and updated comments.

* Style.sh

* Removed unnecessary import, updated doc comments.

* Address review comments.

* Address comments, fix copyWithZone assignment.
2018-09-04 14:31:15 -04:00
Paul Beusterien 4c96a5f7c1 Revert "Fix Auth_Tests_tvOS build config (#1717)" (#1722)
This reverts commit 307e0778c2.
2018-08-20 17:10:46 -07:00
Paul Beusterien 307e0778c2 Fix Auth_Tests_tvOS build config (#1717) 2018-08-20 12:56:53 -07:00
bstpierr 515e51be31 pod deintegrate 2018-08-09 10:39:20 -04:00
bstpierr f4025e95dc Remove Messaging FIRApp Class Category
Merge the config setup to FIRMessaging rather than a FIRApp class category.
2018-08-09 10:30:15 -04:00
Paul Beusterien c586dc8747 Separate Xcode project and tests for GoogleUtilities (#1521) 2018-07-12 12:03:50 -07:00
Paul Beusterien c6b4b03fff Move GoogleUtilities out of Firebase directory (#1516) 2018-07-11 08:28:35 -07:00
Paul Beusterien cce28ec727 Remove one more umbrella header import in Auth Tests (#1502)
* Remove one more umbrella header import in Auth Tests
* Add -ObjC for Auth Mac
* Scheme cleanups
* Make sure the FirebaseAuth framework gets linked for tvOS
2018-07-09 12:55:47 -07:00
Paul Beusterien 98b6eef71e Split GoogleUtilities from FirebaseCore (#1370) 2018-07-06 09:37:23 -07:00
Ryan Wilson 2f6bf8d669 Add FirebaseCore component interoperability. (#1437)
* Add FirebaseCore component interoperability.

This puts in place the system that will allow SDKs to register with
Core and retrieve functionalities provided by other SDKs.

* Updated documentation.

* Add copywrite, fix log messages.

* Explicitly import headers from Private dir
2018-06-28 13:48:13 -04:00
Paul Beusterien 66c1142f61 Disable sanitizers (#1456) 2018-06-26 09:35:50 -07:00
Paul Beusterien d897c43472 Always run sanitizers with AllUnitTests_iOS (#1447)
* Always run sanitizers with AllUnitTests_iOS
* increase timeout value
2018-06-25 17:19:02 -07:00
Ryan Wilson fe31c8a039 Add public FIRAnalyticsConfiguration tests. (#1361) 2018-05-30 22:25:57 -04:00
Paul Beusterien bb8c87a028 merge 2018-05-08 10:59:19 -07:00
Paul Beusterien 9c689df385 Add -all_load to Firebase unit test runs (#1226) 2018-05-04 10:11:42 -07:00
Paul Beusterien e413e22142 Remove workaround for Analytics modular header issue (#1142) 2018-04-25 08:34:10 -07:00
Paul Beusterien 6a432ad628 Eliminate an Auth tvOS build warning (#1159) 2018-04-24 15:39:53 -07:00
Benoit St-Pierre 9eea8d4fc4 Add unit tests for FirebaseCore (#751)
* Add unit tests for FIRMutableDictionary

Basic unit tests to increase overall code coverage.

* Add unit tests for FIRReachabilityChecker

Basic unit tests to increase overall test coverage.

* Add unit tests for FIRNetwork

Basic unit tests to increase overall test coverage.

This also includes a mock HTTP server to serve mock network responses
through the network stack.

* Remove +internal from imports

This was unnecessary.

* Move Example/Tests/Core/Utils files to Example/Tests/Core

This simplifies build files to include the correct dependencies

I had also missed some tvOS test fixes.

* PR Feedback

Fixed some style issues and updated GTMHTTPServer comments.

* Moved GTMHTTPServer.h into third_party directory

* Revert Firebase Xcode project for merging.

* Add tests to project file.
2018-04-19 15:56:11 -04:00
Ryan Wilson ad321bb279 Match previous systemVersion functionality (#1120)
* Match previous systemVersion functionality

* style.sh

* Add new test file to test targets
2018-04-16 19:29:53 -04:00
Paul Beusterien 42bc113754 Travis static library testing (#1047)
* Add Objective C example app for Messaging
* Travis static library testing
* static lib build fixes
2018-04-09 09:11:21 -07:00
Paul Beusterien 6ea2af1564 Update unit test options for with or without use_frameworks (#1037) 2018-04-06 11:19:18 -07:00
Ben Hamilton (Ben Gertzfield) cb1f65dfcf Migrate Firebase off ObjC module @import statements (#992)
* Migrate Firebase off @import statements

* - Migrate tests and test utils from @import to #import.
  - Update Xcode projects for tests to explicitly link in framework deps.
  - Update check_no_module_imports.sh to look for @imports in tests/test utils/
    integration tests.

* Ensure check_no_module_imports.sh explicitly exits with code 0 on success.
2018-03-29 08:44:48 -07:00
Morgan Chen c67031386d Remove FIRMessagingInstanceIDProxy 2018-03-27 12:37:27 -07:00
Paul Beusterien 8ef0f1490a Adds Email link sign-in (#882) 2018-03-07 07:47:09 -08:00
Sebastian Schmidt 12faf205f3 Cleaning up implicit retain for the RTDB and Storage 2018-02-13 10:27:53 -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
Paul Beusterien 03b45533db Add Analytics test target and build tests for deprecated headers (#520) 2017-12-01 15:08:29 -08:00
Paul Beusterien 3e592526ec Buildable and interoperable source pods (#444) 2017-11-21 17:02:22 -08:00
Paul Beusterien a9dc2f4c42 Add images and icons to silence Xcode 9 warnings (#396) 2017-10-20 16:42:25 -07:00
Paul Beusterien 05108693ee Remove Stubs.swift from Auth_Example build target (#317) 2017-09-26 14:54:54 -07:00
Zsika Phillip f333bd5c18 User meta data (#292)
* Add user metadata

* Small improvements

* Addresses comments

* Fixes broken tests

Adds FIRUserMetadata to unbrella file.
2017-09-21 16:35:27 -07:00
Paul Beusterien 9447e72cab Consolidate AuthSamples into main Firebase Xcode project (#288) 2017-09-19 11:18:04 -07:00
Paul Beusterien 1c97e8266a Move mugs derived code to third_party with proper LICENSE (#247) 2017-09-13 15:35:01 -07:00
Zsika Phillip 36c20d92b7 Add FirAuthUrlPresenter (#222)
* Adds FIRAuthURLPResenter and FIRAuthUIDelegate
2017-09-01 13:38:12 -07:00