• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / supabase-flutter / 29318155135
87%

Build:
DEFAULT BRANCH: main
Ran 14 Jul 2026 08:31AM UTC
Jobs 9
Files 95
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Jul 2026 08:28AM UTC coverage: 87.326% (+0.1%) from 87.204%
29318155135

push

github

web-flow
fix(supabase_common): align platform stats casing with other SDKs (#1596)

## What

Normalizes the platform name reported in the `platform=` segment of the
`X-Client-Info` header so it uses the same casing across all Supabase
SDKs.

Previously the Flutter SDK sent the raw `Platform.operatingSystem`
value, which is always lowercase (`macos`, `ios`, `android`, `linux`,
`windows`). Swift reports properly cased names (`macOS`, `iOS`,
`Android`, `Linux`, `Windows`). This mismatch made it harder to
aggregate stats per platform independently of framework/language.

## Changes

- Added `normalizePlatformName` in `supabase_common` backed by a lookup
map that maps each `Platform.operatingSystem` value to the shared,
Swift-aligned casing. Unknown values pass through unchanged so any new
platform still shows up in stats.
- `conditionalPlatform` (the `dart:io` implementation) now runs
`Platform.operatingSystem` through `normalizePlatformName`. This is the
single source used by both the `supabase` (pure Dart) and
`supabase_flutter` packages, so both are covered.
- Updated tests accordingly.

Only the platforms `dart:io` can actually report are mapped. visionOS,
watchOS, and tvOS aren't Flutter targets, and the alignment discussion
concluded those three aren't valuable to track.

## Context

Follows the casing agreement in supabase-community/core-csharp#2
([discussion](https://github.com/supabase-community/core-csharp/pull/2#discussion_r3571537527)).

2 of 4 new or added lines in 2 files covered. (50.0%)

16 existing lines in 2 files now uncovered.

4775 of 5468 relevant lines covered (87.33%)

4.12 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
0.0
0.0% packages/supabase_common/lib/src/platform/platform_io.dart

Coverage Regressions

Lines Coverage ∆ File
11
95.17
2.13% packages/realtime_client/lib/src/realtime_client.dart
5
90.17
0.06% packages/supabase/lib/src/supabase_client.dart
Jobs
ID Job ID Ran Files Coverage
2 supabase - 29318155135.2 14 Jul 2026 08:32AM UTC 16
82.61
GitHub Action Run
3 storage_client - 29318155135.3 14 Jul 2026 08:33AM UTC 6
94.51
GitHub Action Run
4 functions_client - 29318155135.4 14 Jul 2026 08:31AM UTC 3
98.81
GitHub Action Run
5 realtime_client - 29318155135.5 14 Jul 2026 08:33AM UTC 11
90.13
GitHub Action Run
6 gotrue - 29318155135.6 14 Jul 2026 08:34AM UTC 28
86.47
GitHub Action Run
7 supabase_common - 29318155135.7 14 Jul 2026 08:31AM UTC 10
87.27
GitHub Action Run
8 postgrest - 29318155135.8 14 Jul 2026 08:33AM UTC 10
85.33
GitHub Action Run
9 supabase_flutter - 29318155135.9 14 Jul 2026 08:31AM UTC 10
79.31
GitHub Action Run
7 yet_another_json_isolate - 29102073868.7 10 Jul 2026 03:03PM UTC 1
77.78
GitHub Action Run
Source Files on build 29318155135
  • Tree
  • List 95
  • Changed 6
  • Source Changed 6
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29318155135
  • 97a6fa6e on github
  • Prev Build on main (#29287704963)
  • Next Build on main (#29336359764)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc