mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-11 22:55:59 +05:45
* 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.
Cloud Functions for Firebase iOS SDK
Development
Follow the subsequent instructions to develop, debug, unit test, and integration test FirebaseFunctions:
$ git clone git@github.com:firebase/firebase-ios-sdk.git
$ cd firebase-ios-sdk/Functions/Example
$ pod update
$ open FirebaseFunctions.xcworkspace
Running Unit Tests
Choose the FirebaseFunctions_Tests scheme and press Command-u.
Running Integration Tests
Before running the integration tests, you'll need to start a backend emulator for them to talk to.
- Make sure you have
npminstalled. - Run the backend startup script:
Backend/start.shIt will usenpm installto automatically download the libraries it needs to run the Cloud Functions Local Emulator. The first time you run it, it will ask for a projectId. You can put anything you like. It will be ignored. - Create the workspace in Functions/Example with
pod install. open FirebaseFunctions.xcworkspace- Choose the FirebaseFunctions_IntegrationTests scheme and press Command-u.
- When you are finished, you can press any key to stop the backend.