Skip to content

Fix APK native-gating: JS-only releases no longer rebuild the APK - #120

Merged
Muawiya-contact merged 1 commit into
developfrom
fix/release-apk-gating
Sep 5, 2026
Merged

Fix APK native-gating: JS-only releases no longer rebuild the APK#120
Muawiya-contact merged 1 commit into
developfrom
fix/release-apk-gating

Conversation

@Muawiya-contact

Copy link
Copy Markdown
Member

What

The production-APK workflow is supposed to skip the build on JS-only releases and only rebuild when the native runtimeVersion changes. It never skipped.

Root cause

release-apk.yml reads the previous runtimeVersion from the apk-latest release notes:

runtimeVersion: 1.3.0. JS updates arrive over the air…

The regex \([0-9][0-9.]*\) greedily includes the sentence-ending period, capturing 1.3.0.. That never equals the clean 1.3.0 from app.config.js, so the gate always concludes "native change" and rebuilds.

Caught by the v1.4.1 release test — a JS-only release that wrongly triggered a full APK rebuild (harmless output, wasted one EAS build).

Fix

  • Anchor the capture on a trailing digit ([0-9][0-9.]*[0-9]) so the period is left out.
  • Drop the period immediately after the version in the notes (use ) as a second guard.

Verified locally against the current apk-latest note (period form), the new em-dash form, and a two-part minor (1.10.2) — all parse to a clean version.

No app/runtime change; workflow-only.

…ersion

The gate reads the previous runtimeVersion out of the apk-latest release
notes with a regex whose [0-9.]* class greedily swallowed the period that
ends the sentence ("runtimeVersion: 1.3.0. JS updates…"), yielding
"1.3.0.". That never equals the clean "1.3.0" from app.config.js, so
every JS-only release looked native and rebuilt the APK needlessly
(v1.4.1 did exactly this).

Anchor the capture on a trailing digit so the period is left out, and
drop the period right after the version in the notes as a second guard.

@Muawiya-contact Muawiya-contact left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@Muawiya-contact
Muawiya-contact merged commit 5c408b0 into develop Sep 5, 2026
@Muawiya-contact
Muawiya-contact deleted the fix/release-apk-gating branch September 5, 2026 16:27
@Muawiya-contact Muawiya-contact mentioned this pull request Sep 5, 2026
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