Andrew Heard fff812f864 [Release] Update unreleased changelog entries to `11.12.0` (#14726) 11 месяцев назад
..
Backend baf60edf13 [Functions] Add support for streamable cloud functions (#14395) 1 год назад
Sources f646b3e0a1 [Infra] Move 'functions' workflow to Xcode 16 (#14689) 11 месяцев назад
Tests 5113cfd4f9 [Functions] 'call' API's completion handler should be called on the main thread (#14667) 11 месяцев назад
CHANGELOG.md fff812f864 [Release] Update unreleased changelog entries to `11.12.0` (#14726) 11 месяцев назад
README.md b7d6209e5c Require at least CocoaPods version 1.12.0 (#12322) 2 лет назад

README.md

Cloud Functions for Firebase iOS SDK

Development

Follow the subsequent instructions to develop, debug, unit test, and integration test FirebaseFunctions:

Prereqs

To Develop

  • Run pod gen FirebaseFunctions.podspec --local-sources=./
  • open gen/FirebaseFunctions/FirebaseFunctions.xcworkspace

OR these two commands can be combined with

  • pod gen FirebaseFunctions.podspec --auto-open --gen-directory="gen" --clean

You're now in an Xcode workspace generate for building, debugging and testing the FirebaseFunctions CocoaPod.

Running Unit Tests

Choose the FirebaseFunctions-Unit-unit 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.

  1. Make sure you have npm installed.
  2. Run the backend startup script: Backend/start.sh It will use npm install to 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.
  3. Create the workspace in Functions/Example with pod install.
  4. open FirebaseFunctions.xcworkspace
  5. Choose the FirebaseFunctions-Unit-integration scheme and press Command-u.
  6. When you are finished, you can press any key to stop the backend.