Skip to content

chore(fonts): commit link-assets manifests as react-native-asset writes them - #722

Merged
islandbitcoin merged 1 commit into
mainfrom
fix/font-asset-manifests
Sep 23, 2026
Merged

islandbitcoin merged 1 commit into
mainfrom
fix/font-asset-manifests

Conversation

@islandbitcoin

Copy link
Copy Markdown
Contributor

Why

Tester finding 22: on a clean checkout, yarn fonts modifies android/link-assets-manifest.json and ios/link-assets-manifest.json.

What the drift is

Only a trailing newline. react-native-asset 2.2.15 writes the manifest without one; the committed files have one, hand-added in ad61bd7. The eight Sora entries and their sha1s already match app/assets/fonts (verified by hashing every file). No pbxproj or build.gradle changes are produced. Prettier ignores ios/ and android/, and there is no lint-staged hook, so nothing re-adds the newline after generation.

The drift is portable, not machine-path-specific: the manifests contain repo-relative paths and sha1s only.

Fix

Commit the generator's exact bytes. Running npx react-native-asset twice more on this branch leaves git status clean.

Validation

  • npx react-native-asset on this commit: no diff.
  • sha1 of each font file equals its manifest entry (8/8 on both platforms).
  • Fonts on a simulator: see the Buzz issue thread for the screenshot evidence.

Buzz issue: 97c23eb68890dc6601627cb1d03e29c28c4339f4eee2adf624925a588d35f49b

🤖 Generated with Claude Code

…es them

A clean checkout of `yarn fonts` (react-native-asset 2.2.15) dirtied
android/link-assets-manifest.json and ios/link-assets-manifest.json. The
only difference is a trailing newline the generator never emits; the
eight Sora entries and their sha1s already match app/assets/fonts. The
newline was hand-added in ad61bd7 and nothing re-adds it (prettier
ignores ios/ and android/), so store the generator's exact bytes and a
repeat run leaves the tree clean.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@bobodread876 bobodread876 reopened this Sep 16, 2026
@islandbitcoin
islandbitcoin merged commit bb7fa45 into main Sep 23, 2026
23 of 25 checks passed
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.

2 participants