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

RI
13h ago
+9179-2665

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

  • 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, and packages/app-check/ paths reintroduced by merge
  • Ported Java from io.capawesome to app.capgo.capacitor.firebase.*; removed obsolete Android callback classes upstream deleted in favor of structured results
  • Took upstream iOS Swift implementations and preserved Cap-go getPluginVersion on bridged plugins

Upstream commits integrated (since e8336a2b)

SHAChange
3b678c45Performance native restructure
8ecf26f3Storage: fix uploadFile and downloadFile
2c2e6333Storage native restructure
31e695e5App: restructure getName and getOptions
0cca68e2Remote Config: fix removeConfigUpdateListener
3d8cbb6dCrashlytics: fix setCustomKey and recordException
3e16ecd8Crashlytics native restructure
67425400Remote Config native restructure
998948bfApp Check: fix log tag on iOS
1a15fe8fApp Check native restructure
e5355e32Messaging native restructure
68e4d3d3Messaging: stop logging criticalAlert as unrecognized on iOS
72084812Authentication: useAppCheckForGoogleSignIn option
6988f573App Check docs: describe iOS provider
db9c549aAuthentication: network, rate limit, and quota error codes on Android

Conflicts resolved

AreaResolution
Android packages/app, appcheck, messaging, performance, remote-config, storageUpstream implementations under app/capgo/...; dropped deleted callback types
Android storage/interfacesUpstream ErrorCallback under app.capgo (removed stray io/capawesome ResultCallback.java)
iOS app, appcheck, crashlytics, messaging, performance, remote-config, storageUpstream Firebase*.swift plus Cap-go getPluginVersion on plugins
packages/appcheck/README.mdCap-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 

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.

Packageverify:iosResultWall
analyticsXCTest on simulatorTEST SUCCEEDED, 4 tests, 0 failures32s
appgeneric iOS buildBUILD SUCCEEDED24s
app-checkSwiftPM generic iOS buildBUILD SUCCEEDED58s
authenticationXCTest on simulatorTEST SUCCEEDED, 5 tests, 0 failures149s
crashlyticsgeneric iOS buildBUILD SUCCEEDED42s
firestoreSwiftPM XCTest on simulatorTEST SUCCEEDED, 4 tests, 0 failures113s
functionsXCTest on simulatorTEST SUCCEEDED, 3 tests, 0 failures34s
messaginggeneric iOS buildBUILD SUCCEEDED48s
performanceXCTest on simulatorTEST SUCCEEDED, 3 tests, 0 failures25s
remote-configgeneric iOS buildBUILD SUCCEEDED59s
storageXCTest on simulatorTEST SUCCEEDED, 3 tests, 0 failures23s

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 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"
Builddefault (false)app-check (true)
this PRPASS: flow sees {"user":null}, no App Check linePASS: 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.swiftFAIL as expected: native Error loading plugin FirebaseAuthentication, result never shownFAIL as expected, same
mutant: plugin no longer reads useAppCheckForGoogleSignInPASSFAIL as expected: useAppCheckForGoogleSignIn: true did not run configureAppCheck()

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