Commit Graph
13 Commits
Author SHA1 Message Date
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
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 b6b3597cc8 Remove a non-existent, unneeded file from xcode project (#1863) 2018-09-24 06:37:11 -07:00
Michael Lehenbauer b88f95c44f Reformat using 'clang-format version 7.0.0 (tags/google/stable/2018-04-24)' (#1681)
This is the version of clang-format that travis is currently using.
2018-08-13 14:18:02 -07:00
Paul Beusterien 98b6eef71e Split GoogleUtilities from FirebaseCore (#1370) 2018-07-06 09:37:23 -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 adc514a894 Check in deintegrated Functions Xcode project file (#1227)
* Add -all_load (See PR #1226)
2018-05-04 10:45:30 -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
Bryan Klimt e78f9d41d3 Fix some formatting issues. 2018-03-27 16:50:32 -07:00
Paul Beusterien 51ffae2650 Run Functions Unit Tests on travis (#954) 2018-03-21 08:16:26 -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