Skip to content

Commit 6c477b1

Browse files
myleshortonclaude
andauthored
ci(android): create placeholder app.env so compile-check bundles assets (#8828)
The android-compile-check gate (added in #8827) failed at asset bundling — 'No file or variants found for asset: app.env' — because app.env is a declared pubspec asset that only the release workflow decodes (from a secret). Kotlin and Dart compiled fine; the build only choked at bundling. This gate is compile-only and never runs the app, so touch an empty app.env to satisfy bundling without needing the secret. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 86d65ef commit 6c477b1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/android-compile-check.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ jobs:
124124
make pubget
125125
make gen
126126
127+
# app.env is a declared pubspec asset, normally decoded from a secret by
128+
# the release workflow. This compile-only gate doesn't run the app, so an
129+
# empty placeholder is enough to satisfy asset bundling without the secret.
130+
- name: Create placeholder app.env
131+
run: touch app.env
132+
127133
# Builds the gomobile AAR, then compiles the debug APK (all app Kotlin).
128134
# A Kotlin compile error fails this step — the whole point of the gate.
129135
- name: Build debug APK (compiles Kotlin)

0 commit comments

Comments
 (0)