chore: sync upstream capawesome-team/capacitor-firebase db9c549a
What
- Merge upstream
mainatdb9c549a43b60a497840dc0976f3792f2f89ae54 - Set
.github/upstream-sync.jsonlastIntegratedUpstreamShatodb9c549a43b60a497840dc0976f3792f2f89ae54 - Port app, appcheck, crashlytics, messaging, performance, remote-config, and storage native restructures plus related fixes under Cap-go package paths
- Port authentication
useAppCheckForGoogleSignInand 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
- Merged upstream commit
db9c549a(same approach as PR #33 and PR #31) - Kept Cap-go workflows,
@capgo/*names,CapgoCapacitorFirebase*podspecs, README branding, and bun tooling - Removed upstream
.changeset/,package-lock.json, andpackages/app-check/paths reintroduced by merge - Ported Java from
io.capawesometoapp.capgo.capacitor.firebase.*; removed obsolete Android callback classes upstream deleted in favor of structured results - Took upstream iOS Swift implementations and preserved Cap-go
getPluginVersionon bridged plugins
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 installbun run fmtbun run lintbun run buildbun run verify:web
Not Tested
- Full
verify:androidandverify:ioson this VM (no Android SDK, no macOS). CI runs platform builds.
Refs #32


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 72084812)
Added at ceaf8ab13ae225fbd6858d806677402bcf596723, no .github change in this PR:
example-app/: minimal Capacitor 8 iOS app (SPM) with the localpackages/authenticationsource,providers: ["google.com"], a placeholderGoogleService-Info.plistandGIDClientID(fake project, not a secret), UIScene life cycle.www/app.jscalls the nativegetCurrentUser()and writes the line only from the settled plugin promise..maestro/firebase-auth-ios.yaml: waits forgetCurrentUser resolved {"user":null}, asserts nogetCurrentUser rejectedline.scripts/run-ios-maestro-firebase-auth.sh <default|app-check> <App.app>: installs the app with the wantedcapacitor.config.jsonvariant, launches it with the console attached, runs the flow, then checks the native plugin log:default(option absent, plugin defaultfalse): no[FirebaseAuthentication] ... App Check for Google Sign-Inline.app-check(useAppCheckForGoogleSignIn: true):configureAppCheck()runs at load and logs the realGIDSignIn.configureresult (the placeholder project gets HTTP 404 fromfirebaseappcheck.googleapis.com).
scripts/build-ios-maestro-example-app.sh:bun install,cap sync ios, unsigned simulatorxcodebuild.
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.