[PR #5670] [MERGED] build(android): update AGP and Gradle together #6872

Closed
opened 2026-10-23 04:14:29 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5670
Author: @SpicyMarinara
Created: 8/30/2026
Status: ✅ Merged
Merged: 8/30/2026
Merged by: @SpicyMarinara

Base: staging ← Head: chore/5668-android-toolchain


📝 Commits (4)

  • 124ddb7 build(android): update the Gradle toolchain
  • c10582f test(android): update the wrapper checksum proof
  • 1fe3d66 Merge remote-tracking branch 'origin/staging' into chore/5668-android-toolchain
  • 716493d Merge remote-tracking branch 'origin/staging' into chore/5668-android-toolchain

📊 Changes

8 files changed (+19 additions, -21 deletions)

View changed files

📝 .github/workflows/build-apk.yml (+3 -3)
📝 android/README.md (+1 -1)
📝 android/app/build.gradle (+2 -2)
📝 android/app/src/main/AndroidManifest.xml (+1 -2)
📝 android/build-apk.sh (+4 -9)
📝 android/build.gradle (+1 -1)
📝 android/gradle/wrapper/gradle-wrapper.properties (+6 -2)
📝 scripts/regressions/android-local-auth.regression.ts (+1 -1)

📄 Description

Linked issue

Refs #5668

Why this change

The assigned AGP and Gradle bot PRs cannot be evaluated safely in isolation: AGP 9.3 requires Gradle 9.5 or newer. Updating them together also avoids a CI bootstrap that would otherwise recreate the old Gradle 8.5 wrapper.

What changed

  • Updated Android Gradle Plugin from 8.2.2 to 9.3.2.
  • Updated the wrapper configuration and CI bootstrap from Gradle 8.5 to 9.7.1 with the verified distribution checksum.
  • Updated the CI SDK package to Build Tools 36.0.0, the AGP 9.3 default.
  • Removed the manifest package attribute now ignored by AGP and used the existing Gradle namespace.
  • Replaced the two Gradle 10-deprecated property assignments reported by the build.
  • Removed the unreachable local fallback that tried to invoke Gradle only after determining Gradle was absent.
  • Documented the new Gradle 9.5 minimum.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Automated evidence recorded:

  • pnpm check
  • Generated the Gradle 9.7.1 wrapper with its verified SHA-256 checksum
  • ./gradlew assembleDebug --no-daemon --stacktrace
  • ./gradlew assembleDebug --no-daemon --warning-mode all
  • ./build-apk.sh using the documented local system-Gradle path
  • bash -n android/build-apk.sh
  • Ruby YAML parse of the APK workflow
  • git diff --check

Manual verification notes

A real debug APK was assembled successfully through both the pinned wrapper path and the documented local build script. Device installation was not performed.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a docs-i18n follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

android/README.md now states the Gradle 9.5 minimum. This is outside docs/, so no docs-i18n mirror is required. No version or changelog update is needed for this toolchain-only change.

UI evidence (if applicable)

Not applicable.

Summary by CodeRabbit

  • Build & Tooling

    • Updated Android build tools and Gradle versions for improved compatibility with current development environments.
    • Added stronger validation, retry handling, and integrity checks when retrieving Gradle distributions.
    • Build scripts now clearly report when Gradle is unavailable instead of attempting automatic setup.
    • Updated Android project configuration for compatibility with the latest build tools.
  • Documentation

    • Updated Android build prerequisites to require Gradle 9.5 or newer.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/5670 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/30/2026 **Status:** ✅ Merged **Merged:** 8/30/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `chore/5668-android-toolchain` --- ### 📝 Commits (4) - [`124ddb7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/124ddb72e1965f2c79daaddfcae0442a66b508f7) build(android): update the Gradle toolchain - [`c10582f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c10582fd338921bac0ce86d079a4bdb0b154f7b2) test(android): update the wrapper checksum proof - [`1fe3d66`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1fe3d664bd72caeba84856513326a9d88034ce49) Merge remote-tracking branch 'origin/staging' into chore/5668-android-toolchain - [`716493d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/716493dc29b7b1dd839d2162a3c2c9cb00320893) Merge remote-tracking branch 'origin/staging' into chore/5668-android-toolchain ### 📊 Changes **8 files changed** (+19 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/build-apk.yml` (+3 -3) 📝 `android/README.md` (+1 -1) 📝 `android/app/build.gradle` (+2 -2) 📝 `android/app/src/main/AndroidManifest.xml` (+1 -2) 📝 `android/build-apk.sh` (+4 -9) 📝 `android/build.gradle` (+1 -1) 📝 `android/gradle/wrapper/gradle-wrapper.properties` (+6 -2) 📝 `scripts/regressions/android-local-auth.regression.ts` (+1 -1) </details> ### 📄 Description ## Linked issue Refs #5668 ## Why this change The assigned AGP and Gradle bot PRs cannot be evaluated safely in isolation: AGP 9.3 requires Gradle 9.5 or newer. Updating them together also avoids a CI bootstrap that would otherwise recreate the old Gradle 8.5 wrapper. ## What changed - Updated Android Gradle Plugin from 8.2.2 to 9.3.2. - Updated the wrapper configuration and CI bootstrap from Gradle 8.5 to 9.7.1 with the verified distribution checksum. - Updated the CI SDK package to Build Tools 36.0.0, the AGP 9.3 default. - Removed the manifest package attribute now ignored by AGP and used the existing Gradle namespace. - Replaced the two Gradle 10-deprecated property assignments reported by the build. - Removed the unreachable local fallback that tried to invoke Gradle only after determining Gradle was absent. - Documented the new Gradle 9.5 minimum. ## Validation - [ ] pnpm check passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed CONTRIBUTING.md Automated evidence recorded: - pnpm check - Generated the Gradle 9.7.1 wrapper with its verified SHA-256 checksum - ./gradlew assembleDebug --no-daemon --stacktrace - ./gradlew assembleDebug --no-daemon --warning-mode all - ./build-apk.sh using the documented local system-Gradle path - bash -n android/build-apk.sh - Ruby YAML parse of the APK workflow - git diff --check ### Manual verification notes A real debug APK was assembled successfully through both the pinned wrapper path and the documented local build script. Device installation was not performed. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the docs-i18n branch updated to match, or a docs-i18n follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) android/README.md now states the Gradle 9.5 minimum. This is outside docs/, so no docs-i18n mirror is required. No version or changelog update is needed for this toolchain-only change. ## UI evidence (if applicable) Not applicable. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Build & Tooling** * Updated Android build tools and Gradle versions for improved compatibility with current development environments. * Added stronger validation, retry handling, and integrity checks when retrieving Gradle distributions. * Build scripts now clearly report when Gradle is unavailable instead of attempting automatic setup. * Updated Android project configuration for compatibility with the latest build tools. * **Documentation** * Updated Android build prerequisites to require Gradle 9.5 or newer. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:14:29 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6872
No description provided.