Skip to content

Build debug-signed Android APK when no release keystore is configured#246

Merged
Deniel9204 merged 1 commit into
mainfrom
fix/android-debug-sign-no-keystore
Jun 26, 2026
Merged

Build debug-signed Android APK when no release keystore is configured#246
Deniel9204 merged 1 commit into
mainfrom
fix/android-debug-sign-no-keystore

Conversation

@Deniel9204

Copy link
Copy Markdown
Owner

Unblocks the Android release on the fork (no signing secrets) per the v0.1.0 release plan.

The release jobs failed with RangeError ... 0..1: 2 — empty signing secrets made the CI command --key_password --key_b64 (no values) and setup_android_release.dart indexed past the args.

  • setup_android_release.dart: getArg is bounds-safe, and it skips writing key.properties when no keystore is provided.
  • android/app/build.gradle: release build falls back to signingConfigs.debug when key.properties is absent → installable sideload-only APK instead of unsigned. With a real keystore it release-signs exactly as before.

Found via the v0.1.0 release dry run.

The Android release jobs failed with "RangeError ... 0..1: 2": with no signing
secrets (a fork without ANDROID_KEY_STORE_B64 / ANDROID_KEY_PASSWORD), the CI
command becomes `--key_password --key_b64` with no values, and
setup_android_release.dart indexed past the args.

- setup_android_release.dart: make getArg bounds-safe, and skip writing
  key.properties when no keystore is provided (null/empty/leading "--").
- android/app/build.gradle: the release build now falls back to signingConfigs.
  debug when key.properties is absent, so it produces an installable
  (sideload-only) APK instead of an unsigned one. With a real keystore present
  it still release-signs exactly as before.
@Deniel9204 Deniel9204 merged commit 070bcc6 into main Jun 26, 2026
9 checks passed
@Deniel9204 Deniel9204 deleted the fix/android-debug-sign-no-keystore branch June 26, 2026 18:43
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