Skip to content

chore: sync upstream capawesome-team/capacitor-firebase db9c549a - #38

Open
riderx wants to merge 28 commits into
mainfrom
cursor/sync-upstream-db9c549a-32
Open

riderx wants to merge 28 commits into
mainfrom
cursor/sync-upstream-db9c549a-32

Conversation

@riderx

@riderx riderx commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

What

  • Merge upstream main at db9c549a43b60a497840dc0976f3792f2f89ae54
  • Set .github/upstream-sync.json lastIntegratedUpstreamSha to db9c549a43b60a497840dc0976f3792f2f89ae54
  • Port app, appcheck, crashlytics, messaging, performance, remote-config, and storage native restructures plus related fixes under Cap-go package paths
  • Port authentication useAppCheckForGoogleSignIn and Android auth error code fixes from upstream

Why

Scheduled upstream sync on issue #32 failed with merge conflicts after PR #33 integrated e8336a2b. This PR advances the fork to the current upstream head and updates the marker.

How

Upstream commits integrated (since e8336a2b)

SHA Change
3b678c45 Performance native restructure
8ecf26f3 Storage: fix uploadFile and downloadFile
2c2e6333 Storage native restructure
31e695e5 App: restructure getName and getOptions
0cca68e2 Remote Config: fix removeConfigUpdateListener
3d8cbb6d Crashlytics: fix setCustomKey and recordException
3e16ecd8 Crashlytics native restructure
67425400 Remote Config native restructure
998948bf App Check: fix log tag on iOS
1a15fe8f App Check native restructure
e5355e32 Messaging native restructure
68e4d3d3 Messaging: stop logging criticalAlert as unrecognized on iOS
72084812 Authentication: useAppCheckForGoogleSignIn option
6988f573 App Check docs: describe iOS provider
db9c549a Authentication: network, rate limit, and quota error codes on Android

Conflicts resolved

Area Resolution
Android packages/app, appcheck, messaging, performance, remote-config, storage Upstream implementations under app/capgo/...; dropped deleted callback types
Android storage/interfaces Upstream ErrorCallback under app.capgo (removed stray io/capawesome ResultCallback.java)
iOS app, appcheck, crashlytics, messaging, performance, remote-config, storage Upstream Firebase*.swift plus Cap-go getPluginVersion on plugins
packages/appcheck/README.md Cap-go header; upstream SPM symlink, App Attest setup, and FAQ with @capgo/capacitor-firebase-appcheck

Testing

  • bun install
  • bun run fmt
  • bun run lint
  • bun run build
  • bun run verify:web

Not Tested

  • Full verify:android and verify:ios on this VM (no Android SDK, no macOS). CI runs platform builds.

Refs #32

Open in Web Open in Cursor 

View guided diff Turn on auto-fix

Mac verification (mac20)

Built and ran iOS for all 11 packages on a MacInCloud Mac (Apple M4, Xcode 27.2, iOS 27.0 simulator) at HEAD 9b8eceba7599ec7ea0cc7133d659fc819c42b6ca, clean shallow checkout, no local changes. Same stages as the Test iOS platform CI job, run for all packages instead of affected only:

bun i --ignore-scripts
bun run ios:pod:install --summarize               # 11/11 ok, 1m55s
bun run ios:spm:install --summarize               # 11/11 ok, 47s
bun run verify:ios --summarize --continue         # 11/11 ok, 10m08s

Mac only environment difference: IPHONEOS_DEPLOYMENT_TARGET=15.0 is passed to xcodebuild, because Xcode 27 rejects the older deployment target of some CocoaPods targets (CI uses an older Xcode and does not need it). Each run used a fresh throwaway simulator. The Mac was shared and heavily loaded (load avg about 180), so wall times are high.

Package verify:ios Result Wall
analytics XCTest on simulator TEST SUCCEEDED, 4 tests, 0 failures 32s
app generic iOS build BUILD SUCCEEDED 24s
app-check SwiftPM generic iOS build BUILD SUCCEEDED 58s
authentication XCTest on simulator TEST SUCCEEDED, 5 tests, 0 failures 149s
crashlytics generic iOS build BUILD SUCCEEDED 42s
firestore SwiftPM XCTest on simulator TEST SUCCEEDED, 4 tests, 0 failures 113s
functions XCTest on simulator TEST SUCCEEDED, 3 tests, 0 failures 34s
messaging generic iOS build BUILD SUCCEEDED 48s
performance XCTest on simulator TEST SUCCEEDED, 3 tests, 0 failures 25s
remote-config generic iOS build BUILD SUCCEEDED 59s
storage XCTest on simulator TEST SUCCEEDED, 3 tests, 0 failures 23s

Result: 11/11 pass, 22 XCTests, 0 failures, no retries needed. The workdir, the simulator and the DerivedData folders from this run were removed afterwards.

iOS Maestro e2e: useAppCheckForGoogleSignIn (upstream 7208481)

Added at ceaf8ab13ae225fbd6858d806677402bcf596723, no .github change in this PR:

  • example-app/: minimal Capacitor 8 iOS app (SPM) with the local packages/authentication source, providers: ["google.com"], a placeholder GoogleService-Info.plist and GIDClientID (fake project, not a secret), UIScene life cycle.
  • www/app.js calls the native getCurrentUser() and writes the line only from the settled plugin promise.
  • .maestro/firebase-auth-ios.yaml: waits for getCurrentUser resolved {"user":null}, asserts no getCurrentUser rejected line.
  • scripts/run-ios-maestro-firebase-auth.sh <default|app-check> <App.app>: installs the app with the wanted capacitor.config.json variant, launches it with the console attached, runs the flow, then checks the native plugin log:
    • default (option absent, plugin default false): no [FirebaseAuthentication] ... App Check for Google Sign-In line.
    • app-check (useAppCheckForGoogleSignIn: true): configureAppCheck() runs at load and logs the real GIDSignIn.configure result (the placeholder project gets HTTP 404 from firebaseappcheck.googleapis.com).
  • scripts/build-ios-maestro-example-app.sh: bun install, cap sync ios, unsigned simulator xcodebuild.

The CI job needs a .github/workflows/test.yml change, kept out of this PR. The patch is ready for Charly.

Mac verification, Maestro (mac20)

Xcode 27.2, iOS 27.0 simulator (throwaway tori-fb38m), Maestro 2.12.1, tree identical to ceaf8ab1 (sha256 of the flow, scripts, example-app sources and lockfile checked against the box copy).

bash scripts/build-ios-maestro-example-app.sh "$W/dd"          # BUILD SUCCEEDED
IOS_SIMULATOR_UDID=$UDID bash scripts/run-ios-maestro-firebase-auth.sh default   "$APP"
IOS_SIMULATOR_UDID=$UDID bash scripts/run-ios-maestro-firebase-auth.sh app-check "$APP"
Build default (false) app-check (true)
this PR PASS: flow sees {"user":null}, no App Check line PASS: flow sees {"user":null}, log [FirebaseAuthentication] Failed to configure App Check for Google Sign-In: ... HTTP status code: 404
plugin removed from CapApp-SPM/Package.swift FAIL as expected: native Error loading plugin FirebaseAuthentication, result never shown FAIL as expected, same
mutant: plugin no longer reads useAppCheckForGoogleSignIn PASS FAIL as expected: useAppCheckForGoogleSignIn: true did not run configureAppCheck()

The workdir, the simulator and the DerivedData from this run are removed afterwards.

robingenz and others added 16 commits November 27, 2026 13:13
…tion (capawesome-team#1059)

* feat(authentication): add `useAppCheckForGoogleSignIn` configuration option (iOS)

* fix(authentication): always call configure for App Check and document GIDClientID requirement (iOS)

* fix(authentication): skip the App Check setup without GIDClientID and update the docs (iOS)
…eam#1118)

* docs(app-check): describe the App Check provider on iOS

* docs(app-check): follow the README conventions for the iOS provider section
Port native restructures for app, appcheck, crashlytics, messaging,
performance, remote-config, and storage under app.capgo package paths.
Keep Cap-go getPluginVersion and branding. Update upstream sync marker.
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 1eb1b30b-071c-462d-8b82-c1ec16d518e0
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

Copy link
Copy Markdown

Beta npm build

Maintainers can publish a Firebase workspace package from this PR to npm for fast testing.

Comment /publish-beta <package> after the PR checks are green.

Examples:

/publish-beta analytics
/publish-beta packages/analytics
/publish-beta @capgo/capacitor-firebase-analytics

If exactly one package changed, /publish-beta without a package will use that package.

Packages:

  • analytics (@capgo/capacitor-firebase-analytics)
  • app (@capgo/capacitor-firebase-app)
  • appcheck (@capgo/capacitor-firebase-app-check)
  • authentication (@capgo/capacitor-firebase-authentication)
  • crashlytics (@capgo/capacitor-firebase-crashlytics)
  • firestore (@capgo/capacitor-firebase-firestore)
  • functions (@capgo/capacitor-firebase-functions)
  • messaging (@capgo/capacitor-firebase-messaging)
  • performance (@capgo/capacitor-firebase-performance)
  • remote-config (@capgo/capacitor-firebase-remote-config)
  • storage (@capgo/capacitor-firebase-storage)

The workflow will:

  • publish a prerelease package on the beta tag
  • add a pinned pr-38 dist-tag for the selected package
  • update this comment with the install command

Security note: beta publish is only enabled for branches inside this repository.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T12:11:01.273784Z 9b8eceb Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 825122225c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@riderx

riderx commented Nov 29, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 898ac6257d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
@riderx

riderx commented Nov 29, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 9b8eceba75

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants