Skip to content

build(android): generate AAR dependencies from sdl3Aars list - #88534

Open
dwvwvvwvwb wants to merge 1 commit into
CleverRaven:masterfrom
dwvwvvwvwb:aar-deps-dynamic
Open

build(android): generate AAR dependencies from sdl3Aars list#88534
dwvwvvwvwb wants to merge 1 commit into
CleverRaven:masterfrom
dwvwvvwvwb:aar-deps-dynamic

Conversation

@dwvwvvwvwb

Copy link
Copy Markdown
Contributor

Summary

Build "Dynamically include SDL AARs from sdl3Aars list"

Purpose of change

The dependencies block currently hardcodes exact filenames of SDL AARs (e.g. SDL3-3.4.10.aar). This forces manual updates every time we upgrade SDL versions and creates inconsistency with the sdl3Aars list used for downloading.
This change makes the dependency list automatically reflect the versions defined in sdl3Aars, improving maintainability without altering any functionality.

Describe the solution

Replace the explicit implementation files(...) list with a loop over sdl3Aars in the dependencies block. Each entry generates implementation files("libs/${entry.name}-${entry.version}.aar").
No version numbers are changed – the existing sdl3Aars remains untouched.

Describe alternatives you've considered

  • Using fileTree(dir: 'libs', include: ['*.aar']) – simpler but less explicit; could accidentally include unrelated AARs. Looping over sdl3Aars is safer because it only includes what we explicitly want.

Testing

  • Ran ./gradlew clean to ensure a fresh state.
  • Executed ./gradlew assembleRelease – build completed successfully.
  • No runtime regressions are expected because the resulting classpath is identical (same AAR files, same versions).

Additional context

None – this is a pure build script refactor with zero impact on the game's code or behavior.

Replaced hardcoded SDL AAR dependencies with dynamic loading from sdl3Aars.
@github-actions github-actions Bot added Code: Build Issues regarding different builds and build environments astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

astyled astyled PR, label is assigned by github actions Code: Build Issues regarding different builds and build environments json-styled JSON lint passed, label assigned by github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant