chore: sync upstream capawesome-team/capacitor-firebase at 15c2107d

Merged
RI
3d ago
+4914-2502

What

  • Cherry-pick upstream main from e118657c through 15c2107d5058edb7d5d53dfeb6b7b994566705c9
  • Set .github/upstream-sync.json lastIntegratedUpstreamSha to 15c2107d5058edb7d5d53dfeb6b7b994566705c9
  • Port Firestore native code to upstream's restructured layout under app/capgo paths, including TerminateOptions and the iOS terminate guard when implementation is missing
  • Keep Cap-go workflows, package names, podspecs, README promo sections, and Capacitor 9 wiring

Why

Scheduled upstream sync on issue #30 failed with merge conflicts against the older marker (e118657c). This PR advances the fork to the current upstream head and records the marker so scheduled sync can skip until upstream moves again.

How

  • Cherry-picked five upstream commits: messaging simplify (271ccacc), Firestore restructure (7db7dec6), named Firebase apps (44cce102), Firestore Android null fixes (bd147b19), authentication fixes (15c2107d)
  • Resolved path renames from io.capawesome to app.capgo for App and Firestore Android sources
  • Preserved Cap-go getPluginVersion on App and Firestore while taking upstream API changes

Upstream commits integrated (since e118657c)

SHAChange
271ccaccSimplify convertNotificationPermissionToPermissionState (messaging Web)
7db7dec6Restructure Firestore native code (options classes, callbacks)
44cce102Named Firebase apps (initializeApp, getApps, Firestore appName option)
bd147b19Fix Firestore null value bugs on Android
15c2107dFix five authentication bugs on Android and iOS

Testing

  • bun install
  • bun run fmt
  • bun run lint
  • bun run build
  • bun run verify:web
  • Firestore and App verify:web per package

Not Tested

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

Fixes #30

Open in Web Open in Cursor 

Summary by CodeRabbit

  • New Features
    • Added a Firestore terminate() method across platforms. It stops the current instance; subsequent Firestore calls start a new one.
  • Bug Fixes
    • Crashlytics custom-key calls now return a clear error when the value is missing or null.
    • Firestore network operations now wait for their result before completing, and missing collection-group references report the appropriate error.
  • Documentation
    • Clarified when to clear Firestore persistence and what to expect when terminating an instance, including listener and in-flight operation behavior.