Commit Graph
335 Commits
Author SHA1 Message Date
Paul Beusterien 6df99be073 Bump FirebaseAnalyticsInterop version (#2315) 2019-02-04 08:23:10 -08:00
Michael Lehenbauer 11b5ddb13d Make scripts/style.sh compatible with newer swiftformat versions (0.38) (#2334)
* Log swiftformat version in non-interactive builds.
* Use a mildly-terrible regex for version check to ensure at least 0.35.0 (travis has 0.35.8).
* Include StorageViewController.swift change swiftformat 0.38 makes (but which seems to be compatible with 0.35)
2019-02-01 14:21:38 -08:00
Ryan Wilson 5982981e12 Prevent Messaging and IID singleton usage during tests. (#2250)
* Prevent Messaging and IID singleton usage during tests.

* Remove other uses of static Messaging instance.

* Removed usages of messagingForTests.

* Remove unused imports, unify testing code.

* Use local import path instead of framework import.
2019-01-28 18:05:16 -05:00
Paul Beusterien 4b9ca8c91f Stop using SpecStaging (#2308) 2019-01-23 17:18:05 -08:00
Gil 45866ee427 Merge release 5.16.0 (#2306)
* Update versions for Release 5.16.0
* Cherry-picking changes for M41 RC1 (#2277)
* Bump gRPC-C++ pod dependency to 0.0.6 (#2274)
* Update changelog for Dynamic Links to v 3.4.0 (#2272)
* Fix Firestore certificate loading in M41 (#2289)
* Stop bundling gRPC certificates with Firestore (#2279)
  * Remove references to roots.pem
  * Remove gRPCCertificates-Firestore.bundle
* Fix size warning in local_serializer.cc
* Suppress documentation warnings in gRPC
* strip extra references to macOS
* Reference updated Carthage docs and backport CHANGELOG (#2291)
* Carthage cert change
* Backport CHANGELOG updates from cl/230001317
2019-01-23 14:16:17 -08:00
dmandar 69f31d976a Migrate to using the FDL API for app re-opens (#2238)
* Allow for pasteboard links with trailing slashes as valid custom domain links.

* Example App: Read the correct domainURIPrefix key from paramvalues dictionary.

* Update comment.

* Migrate the Reopen REST endpoint from AppInvite to FDL.

* Only include long FDLs with a trailing /.

* Run style script.

* Fix typo in test.
2019-01-16 10:14:30 -08:00
Paul Beusterien 3990f6d0c5 Update FirebaseCore deps to 5.2 (#2255)
* SpecsStaging for Firestore
2019-01-14 11:19:52 -08:00
dmandar 09e49e867d Allow for pasteboard links with trailing slashes as valid custom domain links (#2220)
* Allow for pasteboard links with trailing slashes as valid custom domain links.
2019-01-10 16:56:21 -08:00
Chuan Ren a3dfe083bf Support NSSecureCoding for auth credentials (#2242) 2019-01-10 16:45:38 -08:00
Chen Liang ab962ce244 use instanceIDForTest for instance init in unit tests (#2239)
* use instanceIDForTest for instance init in unit tests
* looks like realInstanceID is not needed
* Get InstanceID from SpecsStaging to fix tests
2019-01-10 10:49:43 -08:00
Paul Beusterien 7c53489e03 Travis to Xcode 10.1 and clang-format to 8.0.0 (tags/google/stable/2018-08-24) (#2222)
* Travis to Xcode 10.1
* Update to clang-format 8
* Update clang-format homebrew link
* Work around space in filename style.sh issue
2019-01-02 09:27:31 -08:00
Paul Beusterien 6759b0c04b Fix xcode 9 build of FDLBuilderTestAppObjC (#2219) 2018-12-26 14:23:36 -08:00
Paul Beusterien db62a27239 Fix private tests by removing unnecessary storyboard entries (#2218) 2018-12-26 13:42:30 -08:00
Benoit St-Pierre dd9c760c07 Release 5.15.0 (#2195)
* Update versions for Release 5.15.0

* Create 5.15.0.json

* Update CHANGELOG for Firestore v0.16.1 (#2164)

* Update the name of certificates bundle (#2171)

To accommodate for release 5.14.0.

* Fix format string in FSTRemoteStore error logging (#2172)

* Update CHANGELOG.md

* Update 5.15.0.json
2018-12-17 19:57:13 -05:00
Chen Liang bc0329f48d fix the unit test #1451 (#2187) 2018-12-17 10:50:20 -08: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
Ryan Wilson fbc0897639 Fix tvOS sample's Auth APIs. (#2158) 2018-12-10 08:24:58 -05:00
Benoit St-Pierre bc0855048a Clean up FIRAuth bits from FIRApp (#2110)
* Clean up FIRAuth bits from FIRApp
2018-12-07 09:31:10 -05:00
Ryan Wilson 313f9f658b Silence Storage Unit Test nil warning. (#2150) 2018-12-05 10:56:59 -05:00
Ryan Wilson 3cd4e9c71f Update versions for Release 5.14.0 (#2145) 2018-12-05 07:56:36 -05:00
Chuan Ren 663225526e Add support of Game Center sign in (#2127) 2018-11-30 17:30:22 -08:00
dmandar 6a1a433b34 Add test for deprecated FDLURLComponents init API. (#2133) 2018-11-30 09:20:47 -08:00
dmandar 36b79e633f Move to domainURIPrefix for FIRDynamicLinkComponents (#2119)
* Revert "Revert premature api changes (#2097)"
The new API is optional and current API is fully supported.

This reverts commit 46cb564067.

* Update comments to reflect API changes.

* Mark the FDLURLComponents initializer return as nullable.

* Run Style.

* Allow for new initializer for FIRDynamicLinkComponents to have a nullable instancetype return.

* Update Changelog for v3.3.0

* Keep deprecated method initalization separate.

* Comments updates and other minor fixes.

* Consider domainURIPrefixes for exact matches with incoming short/long URLs.

* Add warning for deprecated API if developer passes in a domain with a scheme.
2018-11-29 13:58:38 -05: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
Chuan Ren ebea1eff17 Custom fdl domain (#2121) 2018-11-26 22:19:29 -08: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
davidair 20a0bda002 Release 5.13.0 (#2101)
* Update versions for Release 5.13.0

* Revert premature api changes (#2097)

* Revert "Add warning for deprecated API to indicate that the passed in domain name's scheme will deduced as https (#2078)"

This reverts commit ceb839293e.

* Revert "Allow setting the domainURIPrefix for custom domain names/paths when creating dynamic links (#2071)"

This reverts commit d917bac047.

* Revert "Minor edits: change domain names in test app plist, fix warnings."

This reverts commit 15f5d46807.

* Revert "Fix style. Run ./scripts/style.sh"

This reverts commit 0e16e6c863.

* Revert "Allow for custom domains in the FDL iOS SDK"

This reverts commit 5e33153f70.

* Version is still 3.2.0
2018-11-20 17:23:55 -05:00
Chuan Ren a1966bb639 Add test for verify iOS client (#2096) 2018-11-19 15:34:18 -08:00
Paul Beusterien 46cb564067 Revert premature api changes (#2097)
* Revert "Add warning for deprecated API to indicate that the passed in domain name's scheme will deduced as https (#2078)"

This reverts commit ceb839293e.

* Revert "Allow setting the domainURIPrefix for custom domain names/paths when creating dynamic links (#2071)"

This reverts commit d917bac047.

* Revert "Minor edits: change domain names in test app plist, fix warnings."

This reverts commit 15f5d46807.

* Revert "Fix style. Run ./scripts/style.sh"

This reverts commit 0e16e6c863.

* Revert "Allow for custom domains in the FDL iOS SDK"

This reverts commit 5e33153f70.

* Version is still 3.2.0
2018-11-19 13:13:47 -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
dmandar d917bac047 Allow setting the domainURIPrefix for custom domain names/paths when creating dynamic links (#2071)
* Add support for creating DL with custom domain names/paths. The new domainURIPrefix parameter requires either a. a valid FDL domain name created in the Firebase console or b. a custom domain name or c. a custom domain name with path registered for DL. All domainURIPrefixes need to start with a valid (https) scheme.

* Fix style.

* style

* Fix typo in DEPRECATED_MSG_ATTRIBUTE, other nits.

* Fix styling.

* Check incoming domainURIPrefix for validity using NSURL and check for an https scheme.
2018-11-13 22:38:54 -08:00
Morgan Chen 3dbcead555 Merge pull request #2061 from morganchen12/gulchangelist
Invalidate non-background url sessions
2018-11-12 12:59:55 -08:00
Mandar 3303750469 Fix style. 2018-11-11 15:43:29 -08:00
Mandar 5d8431cc6c Merge branch 'master' into md-fdl 2018-11-09 16:46:26 -08:00
Mandar e85b0c7af7 Fix warning. 2018-11-09 16:19:49 -08:00
Mandar 15f5d46807 Minor edits: change domain names in test app plist, fix warnings. 2018-11-09 15:54:51 -08:00
Morgan Chen fb9639a0b3 Run style 2018-11-08 15:55:58 -08:00
Mandar bb954291c7 FIRApp is already configured. Remove duplicate configure call. This Fixes unit test failure. 2018-11-08 12:35:20 -08:00
Paul Beusterien 407f5d6584 Update Auth samples to sync with internal changes (#2056) 2018-11-07 14:23:14 -08:00
Paul Beusterien e77ba8c776 Release 5.12.0 (#2051)
* Update versions for Release 5.12.0
* Add missing nanopb flag
* Isolate Firestore nanopb messages in C++ namespaces (#2046)
* Add C++ namespaces and use C++ linkage for nanopb-generated sources.
* Regenerate nanopb sources as C++
* Add generated C++ nanopb sources to the podspec
2018-11-06 13:26:50 -08:00
Paul Beusterien c27db6d477 Fix analyze errors (#2047) 2018-11-05 13:07:22 -08:00
Chuan Ren 3e2d70506d Fix auth multi app support (#2043) 2018-11-02 17:01:54 -07:00
Paul Beusterien 57ba70503b Delete deprecated files (#2038) 2018-11-01 15:39:10 -07:00
Paul Beusterien ea076e38a6 Don't rely on test always being in foreground (#2021) 2018-10-29 13:15:20 -07:00
Paul Beusterien 5e37beb481 Attempt to fix frequent Auth Unit Test flake on OSX (#2017) 2018-10-29 07:00:58 -07:00
davidair b032cccdf1 Changing the internal testing repo (#2003) 2018-10-25 15:02:23 -04:00
Sebastian Schmidt 77f1bee060 Adding AppCode Diff (#1996) 2018-10-24 13:47:36 -07:00
Ryan Wilson ec748a5265 Merge branch 'master' into release-5.11.0 2018-10-24 14:26:35 -04:00