Skip to content

ci: fix release build broken by missing newline in gradle.properties append - #34

Merged
srjn45 merged 1 commit into
mainfrom
fix/release-gradle-props-newline
Jul 23, 2026
Merged

ci: fix release build broken by missing newline in gradle.properties append#34
srjn45 merged 1 commit into
mainfrom
fix/release-gradle-props-newline

Conversation

@srjn45

@srjn45 srjn45 commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Why the v1.1.6 release failed

expo prebuild generates android/gradle.properties without a trailing newline, ending on:

expo.inlineModules.watchedDirectories=[]

The release workflow appends the signing properties with >>, so the first one glued onto that line:

expo.inlineModules.watchedDirectories=[]KEPT_UPLOAD_STORE_FILE=/home/runner/work/_temp/release.jks

Two failures from one bug:

  1. Expo's autolinking plugin execs node ... mirror-kotlin-inline-modules --watched-directories-serialized <property value> at Gradle configure time; JSON.parse of the mangled value makes node exit 1 → Process 'command 'node'' finished with non-zero exit value 1 with stderr swallowed by Gradle's ValueSource (runs 30051310924, 30051853156).
  2. KEPT_UPLOAD_STORE_FILE never existed as a property, so even if the build had survived, it would have fallen back to debug signing (the cert-pin step would have caught it).

It never reproduced locally because local builds read credentials from ~/.gradle/gradle.properties and never append to the generated file.

Fix

Emit a newline before the appended block. Diagnosed via --stacktrace + --info dispatch runs on debug/release-stacktrace; end-to-end verification build with this fix: run 30052740553.

🤖 Generated with Claude Code

expo prebuild generates android/gradle.properties without a trailing
newline, so appending glued KEPT_UPLOAD_STORE_FILE onto
expo.inlineModules.watchedDirectories=[], which made expo autolinking's
mirror-kotlin-inline-modules node exec fail JSON.parse at Gradle
configure time (and silently dropped the store-file property).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@srjn45
srjn45 merged commit f36bf59 into main Jul 23, 2026
2 checks passed
@srjn45
srjn45 deleted the fix/release-gradle-props-newline branch July 24, 2026 00:04
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