@devries-cameron20 / t3code-1 / commits / 67bca6c224
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(mobile): Android fingerprint covers Expo native modules again (#20384)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Oct 16, 2026 at 14:44 UTC 67bca6c224b3caf61dc7824f6487d754bcad8f8c
4 files changed +45 -2
.github/workflows/mobile-eas-production.yml
+23
@@ -234,6 +234,29 @@ jobs:
234 MOBILE_BUILD_PROFILE: ${{ inputs.profile || 'production' }}
235 run: eas build --platform ${{ inputs.platform }} --profile "$MOBILE_BUILD_PROFILE" --auto-submit --non-interactive --no-wait
236
237 + # @expo/fingerprint swallows autolinking errors and returns no Expo module
238 + # sources, so native changes stop moving the hash and OTAs reach binaries
239 + # that lack them. Refuse to publish any OTA from such a fingerprint.
240 + - name: Verify fingerprints hash Expo native modules
241 + if: steps.expo-token.outputs.present == 'true' && (github.event_name == 'push' || inputs.mode == 'update')
242 + working-directory: apps/mobile
243 + env:
244 + EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
245 + PLATFORM: ${{ inputs.platform || 'all' }}
246 + run: |
247 + if [ "$PLATFORM" = "all" ]; then platforms="ios android"; else platforms="$PLATFORM"; fi
248 + failed=0
249 + for platform in $platforms; do
250 + # eas-cli prints an environment-loaded notice to stdout before the
251 + # JSON even with --json, so discard everything before the document.
252 + expo_modules="$(eas fingerprint:generate --platform "$platform" --environment production --json --non-interactive | sed -n '/^{/,$p' | jq --arg reason "expoAutolinking${platform^}" '[.sources[] | select((.reasons // []) | index($reason))] | length')"
253 + if [ "${expo_modules:-0}" -eq 0 ]; then
254 + failed=1
255 + echo ":x: $platform: the native fingerprint hashes no Expo native modules — OTAs and builds skipped" >> "$GITHUB_STEP_SUMMARY"
256 + fi
257 + done
258 + exit "$failed"
259 +
260 - name: Publish OTA update (manual)
261 if: steps.expo-token.outputs.present == 'true' && github.event_name == 'workflow_dispatch' && inputs.mode == 'update'
262 working-directory: apps/mobile
patches/@expo__fingerprint@0.21.5.patch new
+16
@@ -0,0 +1,16 @@
1 +diff --git a/build/sourcer/Expo.js b/build/sourcer/Expo.js
2 +index 785ec516921af68ea5922462a0177112e15c6bb1..8ce5ce7937b83b3677416bf18f4c60d759ba4fcf 100644
3 +--- a/build/sourcer/Expo.js
4 ++++ b/build/sourcer/Expo.js
5 +@@ -368,6 +368,11 @@ async function getExpoAutolinkingAndroidSourcesAsync(projectRoot, options, expoA
6 + }
7 + if (module1.plugins) {
8 + for (const plugin of module1.plugins){
9 ++ // Gradle plugins resolved from Maven (e.g. expo-widgets' glance fork) have no
10 ++ // sourceDir; hashing them would throw and drop every Expo module source.
11 ++ if (typeof plugin.sourceDir !== 'string') {
12 ++ continue;
13 ++ }
14 + const filePath = (0, _Path.toPosixPath)(_path().default.relative(realProjectRoot, plugin.sourceDir));
15 + plugin.sourceDir = filePath; // use relative path for the dir
16 + debug(`Adding expo-modules-autolinking android dir - ${_chalk().default.dim(filePath)}`);
pnpm-lock.yaml
+3 -2
@@ -151,6 +151,7 @@ packageExtensionsChecksum: sha256-EowbsmlBFaoO0Ypufw901RnvdyjKG5dcdk2FRbc7Dr0=
151 patchedDependencies:
152 '@clerk/expo-native-components@0.2.0': 7a808b92da8460750b85818552e13be3fb73d111691c7db76965970351e124e4
153 '@effect/vitest@4.0.5': 2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02
154 + '@expo/fingerprint@0.21.5': 8fba80d6bbce46c72de427fe8c7907462d262a0bfe50c6b2b7ee9c4e0c61e5e1
155 '@expo/metro-config@58.0.14': 90fa980e8b6480631fb2fbb04559834e3c612db40c550cd828f11be297d8d760
156 '@expo/ui@58.0.20': 5a26480373850c1a7943919aa21f904151b335a0cb01042109e0746def37923e
157 '@ff-labs/fff-node@0.11.0': cc71fcec015f4d39bc96ae2e2bf6b0ca678124c722c66a7841efce9d34b5983c
@@ -14630,7 +14631,7 @@ snapshots:
14631 transitivePeerDependencies:
14632 - supports-color
14633
14633 - '@expo/fingerprint@0.21.5':
14634 + '@expo/fingerprint@0.21.5(patch_hash=8fba80d6bbce46c72de427fe8c7907462d262a0bfe50c6b2b7ee9c4e0c61e5e1)':
14635 dependencies:
14636 '@expo/env': 2.5.2
14637 '@expo/spawn-async': 1.8.0
@@ -19629,7 +19630,7 @@ snapshots:
19630 '@expo/config': 58.0.6(typescript@7.0.2)
19631 '@expo/config-plugins': 58.0.9(typescript@7.0.2)
19632 '@expo/devtools': 58.0.2(expo@58.0.14)(react-native@0.88.0(@babel/core@7.29.7)(@react-native/metro-config@0.88.0(@babel/core@7.29.7)(bufferutil@4.1.0)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(utf-8-validate@6.0.6))(react@19.3.0)
19632 - '@expo/fingerprint': 0.21.5
19633 + '@expo/fingerprint': 0.21.5(patch_hash=8fba80d6bbce46c72de427fe8c7907462d262a0bfe50c6b2b7ee9c4e0c61e5e1)
19634 '@expo/local-build-cache-provider': 58.0.6(typescript@7.0.2)
19635 '@expo/log-box': 58.0.12(@expo/dom-webview@58.0.2)(expo@58.0.14)(react-native@0.88.0(@babel/core@7.29.7)(@react-native/metro-config@0.88.0(@babel/core@7.29.7)(bufferutil@4.1.0)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(utf-8-validate@6.0.6))(react@19.3.0)
19636 '@expo/log-box-utils': 58.0.2
pnpm-workspace.yaml
+3
@@ -332,6 +332,9 @@ patchedDependencies:
332 # Android: a nested WebView hands a vertical drag to its scrolling parent at the page's edge.
333 react-native-webview@14.0.1: patches/react-native-webview@14.0.1.patch
334 "@expo/ui@58.0.20": patches/@expo__ui@58.0.20.patch
335 + # Android: Maven-resolved gradle plugins (expo-widgets) have no sourceDir; without this
336 + # skip, the fingerprint silently drops every Expo native module and OTAs reach stale binaries.
337 + "@expo/fingerprint@0.21.5": patches/@expo__fingerprint@0.21.5.patch
338
339 peerDependencyRules:
340 allowAny: