Skip to content

Enable lint checks and resource shrinking#13194

Merged
TobiGr merged 14 commits intodevfrom
r8fixes
Feb 20, 2026
Merged

Enable lint checks and resource shrinking#13194
TobiGr merged 14 commits intodevfrom
r8fixes

Conversation

@theimpulson
Copy link
Member

What is it?

  • Bugfix (user facing)
  • Feature (user facing) ⚠️ Your PR must target the refactor branch
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

  • Enables resource shrinking
  • Moves from switch statements to if-else to handle non-final resource ID errors
  • Enables lint checks

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.

Due diligence

@theimpulson theimpulson requested review from Stypox and TobiGr February 5, 2026 03:33
@github-actions github-actions bot added the size/giant PRs with more than 750 changed lines label Feb 5, 2026
@theimpulson
Copy link
Member Author

Resource shrinking was disabled mentioning to support F-Droid's reproducible builds, however, multiple apps have it enabled and they are reproducible without any issues. It shouldn't be any different for us. If there are any issues, we should try to fix them instead as AGP 9.0.0 introduces more optimized resource shrinking and flags.

Copy link
Contributor

@TobiGr TobiGr left a comment

Choose a reason for hiding this comment

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

thanks

@theimpulson theimpulson marked this pull request as draft February 5, 2026 13:17
@ShareASmile ShareASmile added the codequality Improvements to the codebase to improve the code quality label Feb 7, 2026
@theimpulson theimpulson force-pushed the r8fixes branch 2 times, most recently from 2e9108b to 83748c2 Compare February 8, 2026 08:55
@theimpulson theimpulson marked this pull request as ready for review February 8, 2026 14:30
Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

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

Thank you! Let's try how it goes with resource shrinking, as Tobi suggested

@theimpulson theimpulson force-pushed the r8fixes branch 3 times, most recently from 207278b to dea8e49 Compare February 12, 2026 08:47
@theimpulson theimpulson requested review from Stypox and TobiGr February 12, 2026 08:48
Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

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

Looks good from my side! Let's wait for the Weblate discussion to be resolved

AGP 9.0.0 has introduced additional resource shrinking tasks. Its better
to enable and fix this.

Signed-off-by: Aayush Gupta <[email protected]>
Supress missing translation errors as they are done by volunteers

Signed-off-by: Aayush Gupta <[email protected]>
Notifications can be disabled manually even after permission has been granted once.
Always check if they are enabled before notifying the user.

Signed-off-by: Aayush Gupta <[email protected]>
saveCookiesAndFinish method handles back navigation

Signed-off-by: Aayush Gupta <[email protected]>
 ../../src/main/java/us/shandian/giga/get/sqlite/FinishedMissionStore.java:105: Value must be ≥ 0 but getColumnIndex can be -1

Signed-off-by: Aayush Gupta <[email protected]>
 ../../src/main/java/org/schabi/newpipe/local/subscription/dialog/FeedGroupDialog.kt:509: Must be one or more of: InputMethodManager.HIDE_IMPLICIT_ONLY, InputMethodManager.HIDE_NOT_ALWAYS

Signed-off-by: Aayush Gupta <[email protected]>
Abbreviate Download -> DL

Signed-off-by: Aayush Gupta <[email protected]>
…tint

 ../../src/main/res/layout/activity_player_queue_control.xml:208: Must use app:tint instead of android:tint

Signed-off-by: Aayush Gupta <[email protected]>
They should be fixed by translators or weblate in general.

 ../../src/main/res/values-lt/strings.xml:87: For locale "lt" (Lithuanian) the following quantity should also be defined: many (e.g. "1.1 obuolio")
 ../../src/main/res/values-is/strings.xml:318: The quantity 'one' matches more than one specific number in this locale (1, 21, 31, 41, 51, 61, 71, 81, 101, 1001, …), but the message did not include a formatting argument (such as %d). This is usually an internationalization error. See full issue explanation for more.

Signed-off-by: Aayush Gupta <[email protected]>
@TobiGr TobiGr merged commit 35b70c5 into dev Feb 20, 2026
5 checks passed
@TobiGr TobiGr deleted the r8fixes branch February 20, 2026 08:47
@TobiGr TobiGr mentioned this pull request Feb 28, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codequality Improvements to the codebase to improve the code quality size/giant PRs with more than 750 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants