Skip to content

Sort permissions ANDROID-17565#13

Merged
jeprubio merged 4 commits into
mainfrom
feature/ANDROID-17565-SortPermissions
Mar 19, 2026
Merged

Sort permissions ANDROID-17565#13
jeprubio merged 4 commits into
mainfrom
feature/ANDROID-17565-SortPermissions

Conversation

@jeprubio

@jeprubio jeprubio commented Mar 18, 2026

Copy link
Copy Markdown

Apply permission sorting and not only sort by variant.
Added a new test that checks the ordering which was failing with the current code and that now passes.
Also recreated the sample baseline and updated the permissions ordering in old tests.

The changes are only in the order when recreating the permissions, for checking the order keeps not being important.

appendElement("variant") {
setAttribute("name", variantName)
variantPermissions.forEach { permission ->
variantPermissions.sorted().forEach { permission ->

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The fix

@jeprubio
jeprubio requested review from a team, jeslat and yamal-alm and removed request for a team March 18, 2026 16:37

@jeslat jeslat left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks!

@yamal-alm yamal-alm left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

awesome, thanks!

@jeprubio
jeprubio merged commit 57e1172 into main Mar 19, 2026
1 check passed
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.

3 participants