8893 Commits
Author SHA1 Message Date
Andrew Heard c06a1d7199 feat(appcheck): read CLI debug token on Simulator (#17017)
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>

In a Simulator, AppCheckDebugProvider now uses the debug token that
`firebase appcheck:debugtokens:create` saves to
~/.config/configstore/firebase-appcheck.json on the host, so apps
launched from Xcode work without manually registering a token. The
token is looked up by each app's Google App ID through
SIMULATOR_HOST_HOME. The lookup is compiled out on devices, macOS and
Mac Catalyst. No public API changes.

Debug tokens are now resolved in this order:
1. AppCheckDebugToken or FIRAAppCheckDebugToken environment variable
2. Token from the CLI config store (Simulator only)
3. Token stored in UserDefaults
4. Newly generated UUID

The config store comes before the stored token so a newly provisioned
token takes effect without reinstalling the app.

Logging:
- I-FAA004003: debug token loaded from the config store.
- I-FAA004004: exchanging the config store token failed; suggests
  re-running the CLI with --force and relaunching.
- I-FAA004002: exchanging an environment variable token failed; now
  names the variables instead of showing an unrelated local token.
- I-FAA004005: the config store exists but can't be read or parsed.
A missing file, or a path where it can't exist (e.g., ~/.config is a
regular file), is silent. Exchange-failure warnings are skipped when
the server is unreachable, and no message includes the token.
CocoaPods-13.2.0.nightly CocoaPods-13.2.0 CocoaPods-13.2.0-beta
2026-11-06 19:23:51 -05:00
Daymon 509b9a3888 chore(m189): update changelog entries (#17028) 2026-11-06 17:59:36 -05:00
Ali Ghaznavi ada5748a0a [Fix] Crashlytics API calls running on the main thread (#17000) 2026-11-06 16:07:04 -05:00
Daymon 00ed1841fb ci(zip-builder): run infra.zip_diff on pull requests only when the zip builder changes (#17026) 2026-11-06 13:00:08 -06:00
Daymon e883de221e test(messaging): run FIRMessagingContextManagerServiceTest under SPM (#17022) 2026-11-06 12:06:14 -06:00
Daymon b4920619a0 ci: run RemoteConfig, AppDistribution and Crashlytics Swift unit tests in SPM CI (#17021) 2026-11-05 21:26:44 -06:00
Daymon 33a58b5ba0 feat(zip-builder): rewrite the zip builder to use SPM as the SoT (#16966) 2026-11-05 15:48:29 -06:00
Nick CookeandAndrew Heard 0e7323b485 refactor(ai): refine LiveServerVoiceActivity public API (#17007)
Co-authored-by: Andrew Heard <andrewheard@google.com>
2026-11-05 16:16:38 -05:00
Daymon fdf29b41b9 build(sharedswift): compile FirebaseSharedSwift in Swift 6 language mode (#17020) 2026-11-05 14:12:42 -06:00
Andrew Heard bc9f9ea1da feat(ai): add FoundationModelsFake for GLM tests (#16995)
Add FoundationModelsFake, a nested Swift package that fakes Apple's
Foundation Models framework, so that GeminiLanguageModel (GLM) can build
and run its unit tests on Linux and on OS versions without the real
framework. It's used only for development and testing.

- GLM depends on the fake through a `FoundationModelsFake` package
  trait, which is on by default where Darwin isn't available (e.g.,
  Linux). With the trait off, the fake isn't built. The root
  `Package.swift` and podspecs can't reach it.
- The fake mirrors Apple's public API and availability in the 27.2
  SDKs, including `@Generable` macro expansions. It omits
  PrivateCloudComputeLanguageModel, OCRTool, BarcodeReaderTool, the
  adapter and feedback APIs, and deprecated APIs.
  SystemLanguageModel is always unavailable. Below Swift 6.4 it
  compiles to an empty module.
- Decoding rejects transcript images with `file:` URLs and schemas
  whose references never resolve, instead of reading local files or
  overflowing the stack.
- Without ImageIO, GLM passes PNG, JPEG, WebP, HEIC, and HEIF images
  through to Gemini after checking their signatures, and rejects
  images that would need re-encoding.
- Add CI jobs that run both packages' tests against the fake: one on
  Linux in a digest-pinned `swift:6.4.2` container, and one on macOS
  with Xcode 27.2. Skip `sdk.ai` for changes that only touch the fake.
2026-11-05 14:13:50 -05:00
Paul BeusterienandNick Cooke 7caaa2da7e fix(database): report the server's reason when it rejects getData (#16724)
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
2026-11-04 22:03:28 -05:00
Nick Cooke 6d057374af auth: follow-up to #16992 (#17010) 2026-11-04 18:53:33 -08:00
Nick Cooke 64ac0df46b Revert "[FIAM] Serialize display callback state and impression reservation" (#17011) 2026-11-04 18:51:46 -08:00
Nick Cooke 8e9d34a81f fix(database): keep active queries marked active after getData (#17009) 2026-11-04 21:35:29 -05:00
Wu ShuwenandNick Cooke a15aff173a [FIAM] Serialize display callback state and impression reservation (#16763)
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
2026-11-04 21:29:16 -05:00
Nick Cooke 110b22f175 fix(ci): skip sdk and spec_testing builds on changelog updates (#17008) 2026-11-04 21:08:21 -05:00
Paul BeusterienandNick Cooke 48debfefff feat(storage): cancel async transfers when the calling task is cancelled (#16840)
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
2026-11-04 21:01:24 -05:00
Paul BeusterienandNick Cooke 96ffea0777 fix(ci): eliminate zero-coverage macOS runner usage (#16901)
Co-authored-by: Nick Cooke <nickcooke@google.com>
2026-11-04 20:55:12 -05:00
Paul BeusterienandNick Cooke b731356c83 fix(database): apply filtered getData results only to the query's view (#16722)
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
2026-11-04 17:14:58 -05:00
Paul BeusterienandNick Cooke d02e553430 fix(database): resend in-flight gets after reconnect (#16719)
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
2026-11-04 16:38:09 -05:00
Paul BeusterienandNick Cooke b72d6f66cd fix(database): return child data from getData under observed parent (#16721)
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
2026-11-04 15:23:49 -05:00
pcfba d58855376c Analytics 13.2.0 (#16996) 2026-11-04 12:47:57 -06:00
Andrew Heard 516f6766bf test(ai): check reasoning in single tool call test (#16999)
Move the `.reasoning` transcript check into
`sessionRespondSingleToolCall` and remove
`sessionRespondWithReasoningAndToolCalls`, which used `gemini-3.8-flash`
and often timed out. All Gemini 3 models are reasoning models and
return thought signatures with function calls, so the default
`gemini-3.5-flash-lite` model covers this and the suite makes one fewer
live call per backend.
2026-11-04 13:20:01 -05:00
Mark Duckworth 75953f54e9 feat(firestore): pipeline window functions (#16715) 2026-11-04 02:31:48 +00:00
Daymon aa0118696e ci(zip): use the Authentication quickstart's own FBSDK Swift package (#16993) 2026-11-03 17:18:27 -06:00
Nick Cooke 29e7573f60 fix(ci): stabilize Auth UI tests and integration test retries (#16992) 2026-11-03 15:51:53 -05:00
4f6b57acda fix(database): Run WebSocket keepalive on the connection worker queue (#16767)
Co-authored-by: Andrew Heard <andrewheard@google.com>
Co-authored-by: Paul Beusterien <paulbeusterien@google.com>
Co-authored-by: Nick Cooke <nickcooke@google.com>
2026-11-03 11:32:47 -05:00
Wu ShuwenandNick Cooke 378715eea2 Serialize Performance custom attribute access (#16761)
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
2026-11-03 11:30:42 -05:00
ismail ramzi b37dd53283 bound compressed encoding index in compact unwind lookup (#16559)
Signed-off-by: Ismail Ramzi <ismail@bugqore.com>
2026-11-03 09:40:07 -05:00
519d9ada9e fix(storage): serialize auth and app check token updates (#16766)
Co-authored-by: Andrew Heard <andrewheard@google.com>
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
Co-authored-by: Nick Cooke <nickcooke@google.com>
2026-11-02 12:06:47 -05:00
Paul Beusterien 9dff5949a5 fix(database): report connection failure when the connect attempt times out (#16725) 2026-11-02 12:02:29 -05:00
Nick Cooke f0b9a94e38 fix(ci): add setup_simulator step to release.spm workflows (#16987) 2026-11-02 11:44:02 -05:00
Paul BeusterienandNick Cooke ecc14ecf61 fix(remoteconfig): buffer real-time stream data across network reads (#16828)
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
2026-11-02 11:24:09 -05:00
Andrew Heard 5ff98b3a5e chore(ai): add Info.plist to FirebaseAI TestApp (#16983)
The TestApp previously relied entirely on Xcode-generated Info.plist
keys (GENERATE_INFOPLIST_FILE with INFOPLIST_KEY_* build settings), so
there was no plist file for other build systems (e.g., Bazel) to use.

Add a minimal Resources/Info.plist and point INFOPLIST_FILE at it.
GENERATE_INFOPLIST_FILE remains enabled, so Xcode still merges the
existing INFOPLIST_KEY_* settings and the Xcode build is unchanged.
The plist is excluded from the FirebaseAITestApp-SPM target's bundle
resources via a membership exception.

Version strings are literals instead of $(MARKETING_VERSION) and
$(CURRENT_PROJECT_VERSION) because rules_apple only expands a small
set of variables; the values match the project's current settings.
2026-11-02 10:58:28 -05:00
Andrew Heard b82cdca747 feat(ai): add image input support to GLM (#16895)
Declare the vision capability in GeminiLanguageModel and translate
prompt image attachments into Gemini inlineData parts. Previously,
any attachment segment in a transcript threw an error.

Key changes and implementation details:

- Pass-through optimization: PNG, JPEG, WebP, HEIC, and HEIF file URLs
  that are already upright are sent unchanged without re-encoding.
  Multi-image files are only passed through if the primary image is
  the first image.
- Re-encoding and normalization: All other image sources (CGImage,
  CIImage, CVPixelBuffer, other formats, or rotated files) are rotated
  to display orientation and encoded as JPEG (quality 0.9, matching
  Transcript Codable conformance). Grayscale, extended-range, and HDR
  images are converted to sRGB, compositing transparency over black.
- Platform portability: Re-encoding relies solely on CoreGraphics,
  ImageIO, and UniformTypeIdentifiers to maintain watchOS support.
- Scoping and validation: Image attachments are supported only in
  prompt entries. Non-file URLs are rejected by scheme to avoid
  leaking tokens or dumping long payloads.
- Ordering: Prompt segments retain their order, with adjacent text runs
  merged into single text parts.
- Tests: Add extensive unit and integration tests covering formats,
  orientations, color spaces, and backend image understanding.
2026-10-30 16:57:47 -04:00
Andrew Heard 25e6b4b589 chore(release): update versions to 13.2.0 (#16970)
Updated versions to 13.2.0 in preparation for the next release.
2026-10-30 16:31:32 -04:00
9ea743a277 Fix Crashlytics abort on binary image records with a non-numeric base or size (#16547)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Ali Ghaznavi <55113970+mghaznav@users.noreply.github.com>
2026-10-30 16:07:56 -04:00
Nick Cooke 5777b16a30 Revert "fix(crashlytics): move settings check and fetch off main thread at startup" (#16980) 2026-10-30 14:33:07 -04:00
Paul BeusterienandNick Cooke d9728c6cae fix(storage): release upload and download tasks after cancel and pause (#16841)
Co-authored-by: Nick Cooke <nickcooke@google.com>
2026-10-30 12:50:41 -04:00
Paul Beusterien 32a88cdfbf fix(remoteconfig): update property wrapper when activation removes its key (#16823) 2026-10-30 12:43:11 -04:00
Paul BeusterienandNick Cooke b24b98fd67 fix(crashlytics): move settings check and fetch off main thread at startup (#16871)
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
2026-10-30 12:23:39 -04:00
Nick Cooke e1e760d7ab fix(ci): support cross-repo setup_simulator action and harden runtime matching (#16974) 2026-10-30 12:04:45 -04:00
Paul Beusterien bd7784b838 fix(crashlytics): read SDK versions from LC_BUILD_VERSION (#16830) 2026-10-30 12:04:06 -04:00
Wu Shuwen 675f23626f Fix legacy IID private key deletion (#16777) 2026-10-30 12:01:35 -04:00
Wu ShuwenandAndrew Heard f393b0cf00 Prevent duplicate Storage requests on resume (#16771)
Co-authored-by: Andrew Heard <andrewheard@google.com>
2026-10-30 11:55:58 -04:00
Paul BeusterienandAndrew Heard dc60b408e7 fix(inappmessaging): stop dropping cached clearcut records on uploader init (#16827)
Co-authored-by: Andrew Heard <andrewheard@google.com>
2026-10-30 11:46:23 -04:00
Paul Beusterien a7f77f6200 fix(auth): read User.metadata and multiFactor under propertyAccessQueue (#16976) 2026-10-30 07:29:08 -07:00
ismail ramzi f3288d3158 bound instruction length to record end in dwarf CIE/FDE parsing (#16884) CocoaPods-13.1.0.nightly 2026-10-29 19:18:02 -07:00
Paul Beusterien a78603793f fix(firestore): stop leaking the FirestoreQuery snapshot listener (#16839) 2026-10-29 16:27:50 -04:00
Mark DuckworthandNick Cooke 6433cdbb8c fix(firestore): graduate pipeline search from preview to GA (#16945)
Co-authored-by: Nick Cooke <36927374+ncooke3@users.noreply.github.com>
2026-10-29 12:50:35 -06:00