Commit Graph
5 Commits
Author SHA1 Message Date
Maksym Malyhin 02fd66d4e1 Functions: replace InstanceID by Messaging (master) (#6395)
* FIRMessagingInterop introduced

* Typo fix

* Use FIRMessagingInterop in functions

* Functions tests fix

* Delete FUNInstanceIDProxy

* InstanceID cleanup

* ./scripts/style.sh

* Reduce FIRMessagingInterop to required minimum

* Cleanup

* Functions changelog

* Fix FIRMessagingInteropFake.h import

* Update integration tests

* Fix start.sh script

* GHA: add FCM interop to funstions paths
2020-09-03 14:45:56 -04:00
Ryan Wilson fa2aa4f301 Allow Functions to be called without Auth. (#2298)
* Allow Functions to be called without Auth.

This was a regression from previous functionality, but is reverted
mostly to the old functionality. Previously `context` would be `nil` in
the completion handler if no Auth was available, but now `context` still
contains `instanceIDToken` but no `authToken`.

Also cover unit tests for the three states: no auth, auth error, and
valid auth.

* Style fixes.

* Cast Auth fake to prevent warning.
2019-01-22 14:09:48 -05:00
Benoit St-Pierre 87a206e0c1 Functions Interop (#2113)
* Functions Interop

Convert Firebase Functions to use the Auth Interop pod

* Style FIxes

* Style fixes (from clang-format 7)

* Attempt to fix Travis Build

* Add Firebase/Core/Private to header search path

* Switch to using non-internal header

* Add Firebase Core private headers to search path

* Change Podfile to use Interop pods

I also removed a doubly-defined `FRAMEWORK_SEARCH_PATHS`

* Add Private Headers to search path

I also cleaned up some more project settings

* PR Feedback

* Looking for container headers

* PR Feedback

I also attempted moving the FakeApp class to the test targets and further simplified the project file.

* Re-add -all_load

* Set test target headers

I also moved the Podfile pods to the app target rather than the top-level

* Whitespace

* Re-add FirebaseFunctions to search path

* Revert project file back to origin/master

* Found the headers!

- Remove `FUNFakeApp` from app target
+ Add `FUNFakeApp` to test targets
+ Add `$(inherited)` to `HEADER_SEARCH_PATH` as per CocoaPods warning
+ Add `$(SRCROOT)/../../Firebase/Core/Private` to find `FIRComponentContainerInternal` header
~ Change import from frameworks import to regular import

* Revert xcsheme to previous version

* Update FIRFunctions.m

* CL Feedback

- Delete `FUNFakeApp`
+ Add `FIRAuthInteropFake` to test targets
~ Update initializer to use projectID instead of app

* Style fixes

* CL Feedback

* Fix Integration tests

* Set the region to the expected value
* Update node package.json to latest versions
2018-12-06 13:30:08 -05:00
Paul Beusterien 03275eb249 Fix Functions copyrights (#951) 2018-03-20 14:01:32 -07:00
Paul Beusterien b7f35a0b76 Initial Firebase Functions (#948) 2018-03-20 11:59:03 -07:00