Skip to content

chore(deps): align 22 SDK 56 packages with what expo expects - #689

Merged
thinkclay merged 2 commits into
mainfrom
chore/align-sdk-56
Sep 1, 2026
Merged

thinkclay merged 2 commits into
mainfrom
chore/align-sdk-56

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

npx expo install --check reported 22 packages out of alignment — including the two implicated in ITMS-90863 (#683): expo-image at 56.0.9 and expo-image-manipulator at 56.0.14, against an expo-modules-core pinned at 56.0.22.

Pulling the shipped 1.17.0 binary apart showed ExpoImage and ExpoImageManipulator carrying (undefined) external references to _exposedDefinition symbols "from ExpoModulesCore" that ExpoModulesCore does not export. That is the shape of a version skew — compiled against one API surface, linked against another. iOS's dyld tolerates it; Apple's stricter Mac-compatibility check does not.

Versions live in three places here

Missing any one leaves the skew in place:

Where Packages
pnpm catalog (pnpm-workspace.yaml) 19
pnpm.overrides in package.json — outranks the catalog @expo/dom-webview
direct dependencies, in two manifests @expo/ui

@expo/metro-runtime is in the catalog but quoted, so a first pass missed it and --check still reported it outdated. Worth knowing for the next bump.

One downgrade, deliberately

react-native-safe-area-context 5.8.0 → 5.7.0. Dependabot moved it forward in #316; Expo SDK 56 is tested against 5.7.0. For a native module the framework's matrix beats newest — and this is exactly the class of drift that produced the symbol mismatch to begin with.

Done as one commit per the policy in #483, not 22 dependabot PRs.

Verified

expo install --check     Dependencies are up to date
typecheck                12/12
test:unit                7/7  --skip-nx-cache
lint                     10/10
prepush build            9/9
Expo autolinking exports match the installed CLI
overrides/catalog aligned (9 comparable pairs)
expo config              1.17.0 / ios 11700 / android 11700

Static checks aren't enough for a native bump, so the app was booted on the new tree and exercised. The safe-area-context downgrade is felt in insets, so the bottom-nav paths matter most:

smoke-hydration     no hydration errors, logged out and logged in
smoke-mobile-nav    3/3 — both roles, bar tappable on every route
smoke-filter-chips  2/2
smoke-move-undo     2/2 — undo holds the write, letting it go sends exactly one

What this does NOT verify

Whether the symbol mismatch is actually gone. That needs a native build and nm -m on the resulting ExpoImage, and builds are blocked on #686 — a build today would ship without its Mapbox token again.

The alignment is correct hygiene regardless of ITMS-90863. The claim that it fixes #683 stays a hypothesis until a binary says otherwise.

🤖 Generated with Claude Code

…microphone

permission nothing uses

Groundwork for the Google Play listing. The console work itself needs a Google
Play developer account and acceptance of the Distribution Agreement, so this is
everything up to that line.

**The permission is the part that matters.** Drafting the Data safety form
surfaced android.permission.RECORD_AUDIO in the resolved Android config, which
would have forced a "Voice or sound recordings" declaration. Checking instead
of declaring found nothing that records audio: no expo-av, no expo-audio, no
WebRTC, no getUserMedia, no mic-adjacent dependency anywhere.

Two sources, and the first fix was not enough. There was an explicit entry,
added incidentally in c6b40b5 ("Building without errors but styles are not
quite building correctly"). Deleting it left RECORD_AUDIO in the resolved
config, because expo-image-picker's plugin adds it unless told otherwise.
`microphonePermission: false` is the real fix; it also blocks the permission,
so a future dependency cannot put it back quietly. The app now declares only
ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION, which the map genuinely uses.

Worth doing because Play prints declared permissions on the store page — a
hiring app appearing to want your microphone costs installs — and because
declaring a data type the app never collects is the worse of the two errors.

**Listing copy** is adapted, not copied. Play has no subtitle, no keyword
field, no promotional text, and an 80-character short description that does
most of the conversion work, so the app name carries search terms the App Store
entry does not need. "Sign in with Apple" is gone (not offered on Android);
"Facebook groups" became "social media groups". check-lengths.py reads the
markdown and verifies the limits — it caught the short description at 81/80,
which Play would have rejected at submission.

**Data safety** is derived from privacy-checklist.md and cross-checked against
the code, not translated field-by-field from the Apple form. Play's "shared"
means transfer to a third party, which excludes PostHog and Sentry as
processors — same conclusion as the ATT answer, different reasoning. Employment
data has no Play data type, which is worth knowing rather than papering over.

**Graphics**: the 1024x500 feature graphic did not exist and now does; the 512
icon already existed and is placed under Play's name. Paths resolve relative to
the script, unlike app-store-assets/make_screenshots.py, which hardcodes
/sessions/affectionate-zen-hypatia/... and cannot run on this machine.

**Screenshots are deliberately absent.** The existing ones are illustrative
mockups by their own generator's admission, and Play requires actual in-app
experience. The iPhone captures are also the wrong shape — 0.461 against Play's
0.5625 floor — so they could not be reused even if they were real. Cropping to
fit would remove a fifth of the height. README.md sets out the order of
operations, and capture_play_screenshots.py frames real captures without
inventing any UI: with no raw input it exits 1 and says so.
`npx expo install --check` reported 22 packages out of alignment. Two of them
are the ones implicated in ITMS-90863 (#683): expo-image at 56.0.9 and
expo-image-manipulator at 56.0.14, against an expo-modules-core pinned at
56.0.22.

Pulling the shipped 1.17.0 binary apart showed ExpoImage and
ExpoImageManipulator carrying `(undefined) external` references to
_exposedDefinition symbols "from ExpoModulesCore" that ExpoModulesCore does not
export. That is the shape of a version skew: compiled against one API surface,
linked against another. iOS dyld tolerates it; Apple's Mac-compatibility check
does not.

Versions live in three places here, and missing any one leaves the skew:

  1. the pnpm catalog in pnpm-workspace.yaml    — 19 packages
  2. pnpm.overrides in package.json             — @expo/dom-webview, which
                                                  OUTRANKS the catalog
  3. direct dependencies                        — @expo/ui, in two manifests

`@expo/metro-runtime` is in the catalog but quoted, so a first pass missed it
and the check still reported it outdated. Worth knowing for the next bump.

One downgrade, deliberately: react-native-safe-area-context 5.8.0 → 5.7.0.
Dependabot moved it forward in #316; Expo SDK 56 is tested against 5.7.0. For a
native module the framework's matrix wins over newest, and this is exactly the
class of drift that produced the symbol mismatch in the first place.

Done as one commit per the policy in #483, not 22 dependabot PRs.

Verified:

  expo install --check     Dependencies are up to date
  typecheck                12/12
  test:unit                7/7  --skip-nx-cache
  lint                     10/10
  prepush build            9/9
  Expo autolinking exports match the installed CLI
  overrides/catalog aligned (9 comparable pairs)
  expo config              1.17.0 / ios 11700 / android 11700

Static checks are not enough for a native bump, so the app was booted on the
new tree and exercised — the safe-area-context downgrade is felt in insets, so
the bottom-nav paths matter most:

  smoke-hydration    no hydration errors, logged out and logged in
  smoke-mobile-nav   3/3, both roles, bar tappable on every route
  smoke-filter-chips 2/2
  smoke-move-undo    2/2, undo holds the write, letting it go sends exactly one

What this does NOT verify: whether the symbol mismatch is actually gone. That
needs a native build and `nm -m` on the resulting ExpoImage, and builds are
blocked on #686 — a build today would ship without its Mapbox token again. The
alignment is correct hygiene regardless; the ITMS-90863 claim stays a
hypothesis until a binary says otherwise.
@thinkclay
thinkclay merged commit a9704c4 into main Sep 1, 2026
3 checks passed
@thinkclay
thinkclay deleted the chore/align-sdk-56 branch September 1, 2026 19:50
thinkclay added a commit that referenced this pull request Sep 15, 2026
…#771)

* ci(types): guard types.ts generation, and finish migration 350's move

Salvages the parts of #719 that are still true. That PR has been open since
2026-09-09, its issue (#707) closed on 09-10, and `main` has moved 28 commits
past its base — so most of it is now either redundant or a regression, but the
guard at its centre never landed and is still the only thing standing between
this repo and a repeat of #707.

**Taken**

`scripts/generate-supabase-types.mjs` (blink-dev's, unchanged). `supabase gen
types` reports what the database in front of it contains, so pointing it at a
database behind the migrations silently deletes every object added since,
straight over types.ts with no diff to review. The script refuses to run when
the migration list and the applied set disagree, generates in memory, and
refuses to write when a table, view, enum or function would disappear —
`--allow-removals` for the deliberate case, like migration 344 dropping
core.application_status. `supa:generate` and the supabase project.json target
now point at it.

Exercised rather than assumed: with no local stack it exits 1 with "Refusing to
generate: could not read the migration list", and types.ts is untouched
afterwards.

The CI halves come too — api-tests.yml regenerates against a fresh
`supabase start` and fails on a diff, and ci.yml adds `expo install --check`
for the Expo SDK skew behind #683/#689.

`feedback.router.ts` moves off `.schema('logs')`. That one is mine to own:
migration 350 moved `user_feedback` to `core` with `ALTER TABLE ... SET SCHEMA`
and I never swept for readers. These two lines are the last ones left on main —
dormant, since `trpc` is not in deploy-functions.sh's deploy list any more, but
wrong.

**Not taken**

`packages/supabase/types.ts` — redundant. main already carries content_reports,
user_blocks, user_feedback, soft_skills_ratings and profile_import_data.

`table-references-exist.test.ts` — this is the conflict, and taking it would go
backwards. #719 restores four BASELINE_BROKEN entries that main has since
resolved properly: soft_skills_ratings and profile_import_data exist as of
migration 354 (#658), core.inquiries' routes were deleted (#476), and
profile_completion_nudges' route was retired. The baseline is empty on main and
fails on stale entries, so merging that file would fail the very test it edits.

`package.json` was applied by hand for the same reason — #719's copy predates
`lint:migrations` and would have deleted both the script and its call from
`lint`. Only the `supa:generate` line is changed here.

Co-Authored-By: blink-dev <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>

* ci(types): compare only the schemas this repo owns

The staleness check failed on its first run, and it was the check that was
wrong, not types.ts. Every difference was in `storage`:

    +          versioning_status: string
    +          archived_at: string | null
    +          is_delete_marker: boolean
    +          is_versioned: boolean

Supabase introspects `storage`, `auth` and `realtime` from whichever
postgres-meta image the CLI pulls — v0.98.0 on that runner — so those schemas
move when the platform ships, not when a migration lands. Regenerating would
not have fixed it, and it would have failed again on the next image bump. A
check that fails for something nobody can act on is one people learn to skip.

`scripts/types-owned-schemas.mjs` slices a generated file down to `public`,
`core`, `community`, `onet` and `logs` — the schemas
packages/supabase/migrations is responsible for — and the workflow compares
those slices instead of the whole file.

Probed in both directions rather than assumed:

  * adding a column to `core.jobs` in a copy → detected
  * adding a column to `storage` in a copy    → ignored

It also generates to /tmp now instead of redirecting over types.ts, so a failed
run no longer leaves a modified working tree behind — the previous version
would have, which is an unpleasant surprise for anyone running it locally.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: blink-dev <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
thinkclay added a commit that referenced this pull request Sep 26, 2026
`expo-modules-core` was pinned at 56.0.22 while [email protected] bundles
~56.0.26 — four patches below the core every other Expo native module is
compiled against. That is the ITMS-90863 shape (#683): compiled against one
ExpoModulesCore API surface, linked against another. iOS dyld tolerates it;
Apple's Mac-compatibility check does not.

## The pin was not load-bearing, and I had guessed wrong about why

#916 recorded my inference that it traced to the custom Animated drawer's
Reanimated/Worklets matrix. It does not. The history:

  72ccda7  added the override at 55.0.7, for the ui-storybook-native app
  a9704c4  set 56.0.22 in "align 22 SDK 56 packages with what expo expects"

That second commit is #689, the fix for ITMS-90863, and its message is
explicit that this version was the REFERENCE POINT rather than a constraint:
"expo-image at 56.0.9 and expo-image-manipulator at 56.0.14, against an
expo-modules-core pinned at 56.0.22". It moved the satellites UP to this pin.

The satellites then moved on with the catalog — expo-image-manipulator is at
56.0.26 today, expo-image at 56.0.13 — and this stayed behind. So the skew
#689 closed had simply inverted: the core is now below the modules compiled
against it.

Nothing consulted it in between because `expo install --check` only inspects
apps/scaffald's DIRECT dependencies, and this is transitive, held by a root
`pnpm.overrides` entry. The check that existed to prevent #683 structurally
could not see the package #683 was about. scripts/check-expo-alignment.mjs
(#907) walks the installed tree and is what surfaced it.

Moved in lockstep — override and catalog — per #501, since the override
outranks the catalog and a half-move is silent. The reason is now written next
to the pin instead of being reconstructible only from two old commits.

## Verified natively, because nothing in CI can see this failure mode

#683 shipped through a green build and was caught at Apple delivery, so a
green CI here proves nothing. Built and ran it:

  expo prebuild --platform ios       ok, no tracked files changed
  pod install                        149 pods, ExpoModulesCore (56.0.26)
  xcodebuild -workspace … Debug      ** BUILD SUCCEEDED **, 0 diagnostics
  launch on iPhone 17 Pro            dev client UI renders, PID alive,
                                     no crash report

The launch is the part that matters. These are dynamic frameworks, so their
symbols resolve at LOAD time — which is exactly how #683 survived a build.
dyld loaded ExpoModulesCore 56.0.26 alongside ExpoImage and
ExpoImageManipulator without a missing-symbol abort. `nm -u` on both of those
frameworks also shows zero undefined `exposedDefinition` symbols, the #683
signature.

Static checks: check-expo-alignment 39/39 agree with no override exception
left, overrides/catalog aligned (9 pairs), `expo install --check` up to date,
Expo autolinking exports match the installed CLI, prepush green.

Also corrected the comment in check-expo-alignment.mjs, which cited this pin
as an example of a deliberate override — it was not one.

Co-authored-by: Claude Opus 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant