Firebase Setup
firebase_setupConfigures Firebase Analytics for an iOS app: creates GCP project, registers app, and writes GoogleService-Info.plist to Resources/, with human approval.
Instructions
Set up Firebase Analytics: GCP project, iOS app and GoogleService-Info.plist into Resources/ (live write, needs human approval).
Use when: once per app (mandatory for every app). Requires gcloud auth and firebase-tools. Returns: {ok, project_id, app_id, google_analytics, console, plist} or an approval_required refusal.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_dir": "<app_dir>",
"bundle_id": "<bundle_id>",
"app_name": "<app_name>"
},
"name": "firebase_setup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_dir | Yes | Absolute path to the app project directory (contains app.spec.json), e.g. /Users/me/Apps/MyApp. | |
| app_name | Yes | App name as shown on the App Store (globally unique, max 30 characters). | |
| bundle_id | Yes | App bundle identifier in reverse-DNS form, e.g. com.example.app. | |
| approval_id | No | Approval id from a previous approval_required refusal; omit on the first call. The human approves out-of-band with `appfactory approve <id>`, then call again with the same arguments and this id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||