Commit Graph
22 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
Paul Beusterien 67c333e4cc Functions - new public header structure (#6193) 2020-08-03 16:28:14 -07:00
Paul Beusterien 9cf6a243e6 Functions: Repo-relative headers and SPM (#5858) 2020-06-19 12:14:22 -07:00
Paul Beusterien e15724a436 Migrate from interop pods to source_files header access (#5760) 2020-06-09 06:09:27 -07:00
Paul Beusterien d4621a636f Use preserve_paths instead of CocoaPods private (#5758) 2020-06-09 05:21:28 -07:00
Ryan Wilson 2cac1f520e Only assign errors if parameter is non-NULL. (#4168)
* Only assign errors if parameter is non-NULL.

This fixes #4164.

* Remove unnecessary commenting.

* Remove other unnecessary comment.
2019-10-29 09:17:15 -04:00
Jason Hu 59a42fa4f2 Fix XCode Analysis Issues for XCode 10.1 (#3014) 2019-05-17 09:01:35 -04:00
Bryan Klimt 41d2f1263a Tweak Functions error messages to be consistent with Android and C++. (#2841)
* Tweak Functions error messages to be consistent with Android and C++.
* Fix style errors.
2019-04-17 17:01:09 -07:00
Maksym Malyhin 55814996a1 Cocoapods 1.7.0 multiproject support (b/128794527) (#2751) 2019-04-08 22:38:51 -04:00
Bryan Klimt 075e586c9a Add ability to set a timeout on Functions. (#2329)
Changes the default timeout for FirebaseFunctions to 70s and adds an API to override that timeout on a per-function basis.
2019-02-25 10:10:20 -08: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
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 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 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 0ea024468e Fix analyze of FirebaseFunctions (#1742) 2018-08-27 15:26:05 -07:00
Bryan Klimt f08edbb85c Add a couple of new small Functions APIs. (#1434)
* Add a Functions constructor that allows setting a region.
* Add a method to set an emulator origin to use.
* Update the changelog
2018-06-21 15:25:13 -04:00
Paul Beusterien a7b4479bce Add explicit Functions umbrella (#1187) 2018-04-26 06:41:18 -07:00
Ryan Wilson 6102886354 [BREAKING] Remove FIR prefix on FIRFunctionsErrorCode (#955)
[THIS IS A BREAKING CHANGE]
2018-04-09 16:50:52 -07:00
Bryan Klimt e78f9d41d3 Fix some formatting issues. 2018-03-27 16:50:32 -07:00
Paul Beusterien 03275eb249 Fix Functions copyrights (#951) 2018-03-20 14:01:32 -07:00
Paul Beusterien b841009ea1 Run scripts/style.sh on Functions (#949) 2018-03-20 12:52:11 -07:00
Paul Beusterien b7f35a0b76 Initial Firebase Functions (#948) 2018-03-20 11:59:03 -07:00